
TinyOS / NS-2 for『WSN』
文章平均质量分 80
iteye_12894
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
改变Telos 系列节点Serial baud rate
如果节点与PC通信时出现非正常丢包或者serial不稳定当收包速率很快是, 可以尝试把串口的Baud rate从115200减小到57600(对于telo节点)。telo节点的话可以在TOSROOT/tos/platforms/telosa/TelosSerialP.nc中修改:1. 把msp430_uart_telos_config中ubr的值从UBR_1MHZ_115200改为UBR_...2009-08-21 18:50:28 · 287 阅读 · 0 评论 -
OMNeT++中文用户手册(完全版)
http://www.netforum.com.cn/viewthread.php?tid=17730&extra=page%3D1http://www.netforum.com.cn/forumdisplay.php?fid=31目 录第一章 无线传感器网络概述 6概述 61.1 NS-2 61.2 OPNET ...2009-11-18 22:36:44 · 3549 阅读 · 3 评论 -
TinyOS使用MIG时报错!
在Makefile中加入启用MIG的选项后,编译出现一下错误:error: 6lowpan.h: No such file or directory......找不到头文件,但是检查环境变量都没有问题。 原来在调用MIG时需要指定包含的文件, 通过使用mig tool的 -I 选项。在Makefile中生成MIG的命令加入头文件的路径 BUILD_EXTRA_D...2009-04-06 01:30:12 · 187 阅读 · 0 评论 -
Tinyos 2.0 笔记小结(1)
1. configure组件注意事项 一般在configure的配置中很少用到 uses interface (外部规格元素)。 常见的都是定义provides interface, 然后用“=”与相关的provider想关联(配线)。但如果定义了uses interface, 也同样需要用“=”与相关的user(内部)或provider(外部)想关联(配线)。 因为nesC 有三...2009-03-16 20:11:34 · 184 阅读 · 0 评论 -
Tinyos 2.0使用笔记
1.编译与安装程序到节点 引用$ make mica2 编译mica2 platform 引用$ make mica2 install编译并安装 (using the default parallel port programmer) Blink for the mica2 引用$ make mica2 reinstall mib510,/dev/ttyS0安装已经...2009-03-06 19:48:30 · 210 阅读 · 0 评论 -
Tinyos 中常用术语
[b]EOFF[/b] 关断能量损耗 用于 device off, stopping 等命令[b]RSSI[/b] [url=http://en.wikipedia.org/wiki/Received_Signal_Strength_Indication]相关资料[/url]In telecommunications, received signal strength indicati...2009-03-05 03:32:44 · 188 阅读 · 0 评论 -
什么是 nx_ type
nx_ types 是在nesC 1.2,tinyos中用到的platform independent types. 这个类型的数据可以适用任何平台。To accomplish this goal, nesC 1.2 introduces platform independent types.(network types) Platform independent simple t...2009-03-01 03:29:14 · 215 阅读 · 0 评论 -
TinyOS 下安装 JNI 的问题
1. "java not found, not installing jni code" 问题 (在cygwin中) 运行tos-locate-jre --jni看是否有结果输出。如果没有的话,检查注册表中以下两个键值是否正确(tos-locate-jre 读取注册表中的键值) \HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentV...2009-02-25 00:05:29 · 447 阅读 · 0 评论 -
『TinyOS』学习笔记 #11?
Lesson 11 TOSSIM Compiling TOSSIM make micaz sim Running TOSSIM with Python tos的模拟器是在python中运行 运行TOSSIM simulation 用到 runNextEvent function。it returns 0. This means that ther...2009-02-20 01:09:00 · 453 阅读 · 0 评论 -
TinyOS在Linux下编译的问题 sudo make <platform>
安装好TinyOS后,正准备编译一下Blink这个例子小试牛刀一下。 在Blink/下输入 make micaz 出现权限问题, 这个问题好解决, 键入 sudo make micaz 原以为可以顺利进行,却没想到提示错误: msp430-gcc 找不到文件 键入msp430-gcc 可以运行, 但是sudo msp430-gcc 就出现"command not found"...2009-02-19 01:00:06 · 208 阅读 · 0 评论 -
几种用于WSN的仿真工具
为评价无线传感器网络协议算法的性能,仅通过实验是无法实现的,特别是包含大量节点的大规模无线传感器网络,更是很难通过实验来实现(实际上,上百个节点的实验己经比较难以管理与实现)。 为了实现无线传感器网络的仿真,研究人员设计开发(或在现有平台建立无线传感器网络模型)了许多的仿真平台,包括NS-2, OPNET, SensorSim, EmStar, OMNet, G1oMoSim, TOSS...原创 2009-12-09 15:26:34 · 265 阅读 · 0 评论 -
ns2 中得到Agent的实例
下面代码说明了如何访问其他节点的Agent,以AODV协议为例添加以下代码到aodv.cc. 用这种方法也可以访问其他对象,比如 mobilenode, 等等. AODV* aodvagent;// set i to be the node idchar command[256];// [Agent/AODV info instances] 返回一个a...2009-06-16 21:02:06 · 216 阅读 · 0 评论 -
TinyOS编译问题
1. 有时候编译提示找不到某个文件时, 可能是由于在linux下,用cp命令或SSH复制源代码(从FAT文件格式到ext格式,或反之), 文件名由大写转成小写而导致找不到相应的文件夹。 可以尝试重新复制或者把小写的文件名改回为大写。...2009-08-18 20:47:38 · 176 阅读 · 0 评论 -
改变节点transmission power, radio power level (tx_power)
使用 CC2420Packet 中 setPower 来改变每个消息包的tx power[code="c"] /** * Set transmission power for a given packet. Valid ranges are * between 0 and 31. * * @param p_msg the message. * @par...原创 2009-08-11 20:03:03 · 1001 阅读 · 0 评论 -
Tcl/tk 小记
1. 检查variable变量是否声明在使用Tcl时候会经常遇到no such variable的错误, 往往是由于访问不存在的变量导致的。使用 [color=red]info exists[/color]来检查variable变量是否声明如果是访问一个对象的变量,还需要先用instvar来绑定, 否则无法对正确的变量进行检查:$self instvar varname_ #这...2009-07-22 23:43:32 · 261 阅读 · 0 评论 -
NS无线仿真中无法设置节点颜色的解决方案
NS中提供了配置节点与流量颜色标识的方法,给一条流“上色”是经常用的方法,但是在无线仿真的时候不好用,经常出现只有fid=0的流上了颜色,经过仔细研究源代码,发现有下面一段,[cmu-trace.cc] // A simple hack for scadds demo (fernandez's visit) -- Chalermek int pkt_color = 0;...原创 2009-07-22 18:57:08 · 331 阅读 · 0 评论 -
awk: malloc(): memory corruption 错误
问题如下:*** glibc detected *** awk: malloc(): memory corruption: 0x080c67f8 ***======= Backtrace: =========/lib/tls/i686/cmov/libc.so.6[0xb7e35356]/lib/tls/i686/cmov/libc.so.6[0xb7e3655a]/lib/t...2009-07-09 21:56:36 · 1446 阅读 · 0 评论 -
ns2 对无线网络模拟
在模拟无线网络时需要对tcl模拟脚本文件的参数进行设置,比如Pt, CPThresh, CSThresh and RXThresh。 我们需要借助ns提供的threshold工具来计算相应的参数(extra utility called threshold,在 \ns-2.33\indep-utils\propagation中)比如无线传感网络。编译thresholdg++ -...2009-07-06 19:52:02 · 230 阅读 · 0 评论 -
使用Gnuplot 绘制ns2模拟结果图
Gnuplot(command-driven interactive function plotting program)是linux下的一种绘图工具。在命令行下输入gnuplot来启动, 然后输入plot “awk-file”。 awk-file中含有X和Y轴的数据。gnuplot的环境参数参数的使用通过set来设定参数,用unset来取消设定, show来显示当前参数...原创 2009-06-25 17:48:37 · 945 阅读 · 0 评论 -
ns2模拟无线网络的NAM动画
无线的各个参数[code="tcl"]##############################################set val(simDur) 5.0 ;#simulation durationset val(basename) udp;#basename for this project or scenarioset val(statIntvl) ...2009-06-24 22:26:32 · 715 阅读 · 0 评论 -
ns2 模拟WSN协议之手记
ns2中模拟WSN,用Timestamp时间戳计算点对点Delay延迟时如果在发包时调用了[code="cpp"]Scheduler::instance().schedule(target_, p, JITTER); //这里用JITTER来避免与邻居同时发包来减少collision[/code]但是这个也同时delay了发包时间。所以给发包加timestamp时应该把它计算...2009-06-23 23:55:19 · 308 阅读 · 0 评论 -
『TinyOS』学习笔记 #2
Lesson 3 : Mote-mote radio communication Active Message InterfacesSince it is very common to have multiple services using the same radio to communicate, TinyOS provides the Active Message (AM) la...2009-02-18 01:54:29 · 140 阅读 · 0 评论 -
『TinyOS』学习笔记 #1
Lesson 1 provides and uses interfacesA component provides and uses interfaces. The provided interfaces are intended to represent the functionality that the component provides to its user in its s...2009-02-08 00:55:57 · 155 阅读 · 0 评论 -
NS by Example 笔记(7)RED Queue Monitor Example
RED Queue Monitor Example Example 5中OTcl脚本建立了网络拓扑并运行Figure 15所描述的模拟场景。 备注RED队列可以持有最多25个数据包用于连接r1-r2, 并且我们可以看到RED队列如何通过测量当前队列大小和平均队列大小的动态变化来运行。 Figure 15. RED Queue Monitor Example Setup Exam...2009-01-17 01:56:52 · 161 阅读 · 0 评论 -
NS by Example 笔记(6)Trace Analysis Example
Trace Analysis Example #Create a simulator objectset ns [new Simulator]#Define different colors for data flows (for NAM)$ns color 1 Blue$ns color 2 Red#Open the NAM trace fileset nf [open ...2009-01-17 01:07:38 · 131 阅读 · 0 评论 -
NS by Example 笔记(5)Packet
数据包 Packet 一个NS数据包包含一个报头的堆栈头文件和一个可选的数据空间(见 Figure 12)。"Simple Simulation Example"小节中简要提到, 数据包的报头格式被初始化在创建模拟对象Simulator object后, 所有已注册(或可能用到)的报头,比如 common header通常被任何需要它的对象使用、IP header、TCP header、...2009-01-17 00:08:47 · 201 阅读 · 0 评论 -
NS by Example 笔记(4)Network Components
Network Components 网络组件 Figure 6 显示了NS中部分OTcl类的等级结构。 Figure 6. Class Hierarchy (Partial) 层级的根节点是TclObject 类, 它是所有OTcl 库对象(scheduler, network components, timers and the other objects including...2009-01-16 21:38:18 · 232 阅读 · 0 评论 -
NS by Example 笔记(3)Event Scheduler
Event Scheduler NS的离散的事件调度机制。 事件调度机制的主要用途是网络组件模拟包处理时的延迟或计时器。Figure 5 演示每个网络对象使用一个事件调度器。 注意一个网络对象发起一个事件后,这个事件将交给同一个对象(发起者)来处理当到达预定的时间。 网络对象之间的data path 与他们的 event path 不同。实际上, 当数据包从一个网络对象传到另一个发送者s...2009-01-16 03:05:32 · 135 阅读 · 0 评论 -
NS by Example 笔记(2)Simple Simulation Example
介绍了如何建立一个简单的网络模拟 网络中有4个节点(n0, n1, n2, n3) , n0 与 n2, n1 与 n2 相连(双工)并且有 2 Mbps 带宽和 10 ms 的延迟。 n2 与 n3 相连, 带宽 1.7 Mbps 并且延迟 20 ms。 每个节点使用 DropTail 队列, 且队列的最大的大小为10。 一个"tcp" 代理附加到 n0, 并且连接到一个 tcp ...2009-01-16 00:19:41 · 128 阅读 · 0 评论 -
NS by Example 笔记(1)OTcl: The User Language
原教材地址 http://nile.wpi.edu/NS/ 读过原文的笔记,写成中文以后也便于理解。并没有100%对原文逐字翻译,所以有歧义的地方还需要参考原文。 OTcl: The User Language 基本上, ns是一个带有模拟对象库的OTcl解释器。 例题1:如何建立procedure 并运行, 变量赋值,for循环。 OTcl 是具有面向对象的 Tcl 语言,就像...2009-01-15 23:42:33 · 168 阅读 · 0 评论 -
Low Rate Wireless Personal Area Networks
NS2 Simulation Platform for 802.15.4Ns2 模拟器模拟无线感应器网络2009-01-10 22:49:22 · 160 阅读 · 0 评论 -
『TinyOS』 nesC 1.1 语言参考手册
[b]1 简介[/b] nesC 是对 C 的扩展 [2] ,它基于体现 TinyOS 的结构化概念和执行模型而设计 [1] 。 TinyOS 是为传感器网络节点而设计的一个事件驱动的操作系统,传感器网络节点拥有非常有限的资源 ( 举例来说., 8K 字节的程序储存器,512个字节的随机存取储存器) 。TinyOS 用 nesC 重新编写。本手册描述 nesC 的 1.1 版本, 在第 3...原创 2009-01-09 05:00:23 · 208 阅读 · 0 评论 -
NS by Example 笔记(8)Example Utilities
Trace Analysis Utilities这里收集了几个非常有用到的追踪分析工具: 用于提取信息列的perl工具"column"。 它把输出的文本分成多个列,并用空白隔开。 perl脚本stats.pl 打印一些stats沿着瓶颈连接(node 1 to node 2在这例子中,例子输出文件stats.tr)。运行命令: stats.pl -l1 1 -l2 2 -m...2009-01-17 02:42:07 · 120 阅读 · 0 评论 -
NS by Example 笔记(9)Where to Find What?
Where to Find What?了解什么信息保存在什么文件夹或文件中。Figure 17 说明了部分的模拟程序的文件夹结构(ns-allinone-2.1b package)。 Figure 17. NS Directory Structure ns-2 存放了所有的模拟程序的实现代码(不论C++ 还是OTcl 代码), 测试验证(validation test)的OTcl脚本和...2009-01-17 03:50:08 · 122 阅读 · 0 评论 -
NS by Example 笔记(18)Hot Links
Congestion Control Research Group: http://perform.wpi.edu/cc/ VINT Project Home Page: http://www.isi.edu/nsnam/vint/ NS Home Page: http://www.isi.edu/nsnam/ns/ NS Installation: http://ww...2009-01-22 21:56:42 · 156 阅读 · 0 评论 -
NS by Example 笔记(17)SRM Example
SRM using NS-2 这一节给出一个关于在NS中实现SRM的概况。运行一个SRM模拟需要 建立并配置代理creating and configuring the agent添加一个应用层的数据源application level data source (a traffic generator) 启动代理和流量产生器starting the agent and the tr...2009-01-19 01:41:50 · 214 阅读 · 0 评论 -
NS by Example 笔记(16)Web Server Example
Web Server Example(Obsolete: work with ns-2.1b4a) Web Server模拟脚本和网络拓扑。 脚本文件"ex-web.tcl"和"dumbbell.tcl" (This example is from the 5th VINT/NS Simulator Tutorial/Workshop). Note that you should chang...2009-01-19 01:39:13 · 141 阅读 · 0 评论 -
NS by Example 笔记(15)Multicasting Example
Multicasting Example(Obsolete: work with ns-2.1b4a) multicasting例子的模拟脚本和NAM中模拟的截图, 模拟脚本"ex-mcast.tcl". Figure 33. The NAM screen capture of the multicasting simulation # Polly Huang 8-7-98...2009-01-19 01:38:14 · 152 阅读 · 0 评论 -
NS by Example 笔记(14)LAN Example
LAN Example(Obsolete: work with ns-2.1b4a) LAN例子的模拟脚本并演示了它的网络拓扑和模拟场景。 模拟脚本 "ex-lan.tcl"。 Figure 32. LAN simulation network topology and scenario # Author: Jae Chung# Date: 7/20/99## Th...2009-01-19 01:36:54 · 179 阅读 · 0 评论 -
NS by Example 笔记(13)Pareto On/Off
Mini-HOWTO: Pareto On/Off Traffic Generator 描述 Description Pareto(柏拉图) On/Off Traffic Generator (POO_Traffic) 是一种流量生成器traffic generator (一种应用程序) 包含在OTcl类Application/Traffic/Pareto。 POO_Traffic产生网...2009-01-19 01:35:22 · 639 阅读 · 1 评论