问题标签 [tinyos]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
tinyos - TinyOS PC 到微尘通信
我正在为我的无线传感器网络项目编写一个软件。现在我关心将各种数据包注入网络。
我正在使用 MIB520 接口板和安装在 IRIS 微尘上的 TinyOS-2.1.2。我尝试了来自 sdk/c/sf 的各种实用程序,以及来自 net.tinyos.sf.* 和 net.tinyos.tools.* Java 包的工具。
到目前为止我尝试了什么:
我一直在使用我的mote上安装的apps/BaseStation和apps/BaseStation15.4,或者使用apps/test/TestSerial对其进行闪烁。我通过 USB 读取从 mote 发送的数据没有问题。我可以使用 net.tinyos.tools.SerialForwarder 或来自 sdk/c/f 或 net.tinyos.tools * 的实用程序很好地阅读它。
但是当谈到从 PC 向 mote 发送数据时,似乎没有任何效果。我使用了 net.tinyos.tools.Send、serialsend.c、sf.c 和 sfsend.c。 SerialForwarder会在一段时间后抛出错误消息,而 C 实用程序会抛出“no ack”错误。
在 TinyOS wiki 和 SO 上搜索答案后,我认为可能是 mote 发送“ack”消息的问题。按照这里的建议,我正在寻找一种生成合法数据包并将其发送到 mote 的方法。
在 wiki 上的文章之后,我找到了适当的 TEP 并使用了其中列出的位(“7e 40 09 00 be ef 05 7d 5d 06 01 02 03 04 05 7e”)。
我使用 Wireshark 嗅探 USB,我在 USB 上将数据发送到 mote,我看到发送到 mote 的相同位。我的理论是 mote 无法识别我发送的输入,或者我错误地使用了实用程序。无论如何,这个特定事件永远不会被触发:
我的问题是,我该如何从 PC 向 mote 发送数据?也许有一些我忽略的现成实用程序?我一直在按照 BaseStation15.4 中的说明进行操作,但我被卡住了。
编辑:
来自 BaseStation/README.txt “只有当消息成功排队以传递到无线电链路时,BaseStation 才会确认通过串行链路到达的消息。” 这将解释 serialsend.c 中的“no ack”和 SerialForwarder.java 中的“write failed”。
但是,UartReceive.receive() 事件仍然不会被触发,即使在清除它的主体(在 BaseStation 中)并且只留下 LED 切换之后也是如此。
tinyos - Telosb 低功耗模式:
我正在做一个涉及切换 Telosb 状态的项目,我想知道如何让微尘进入“睡眠”(低功耗)状态以及如何唤醒微尘。
timer - 微型操作系统计时器未重置
我目前正在研究 tinyos,我正在尝试重置计时器,让我们说它在 45 秒运行时设置为 2 秒,但它不工作,我不知道为什么,
有人可以帮我弄清楚吗
这是代码:
现在实际上它应该将计时器重置为偏移,但它没有重置它。两个 printf 语句都给出了相同的时间。
tinyos - HplAtm128UartC 中的 TinyOS Mote 到 PC 通信错误
早上好,我正在尝试将 TinyOS 用于 WSN。我正在使用 app 文件夹,其中有: - BaseStation - BaseStation 15.4 - test/TestSerial
但是对于所有应用程序,当我执行“制作虹膜”时,它会生成错误:
在组件
HplAtm128UartC': ../../tos/chips/atm128/HplAtm128UartC.nc:59: cannot find
HplUart0Config' ../../tos/chips/atm128/HplAtm128UartC.nc:64: 找不到 `HplUart1Config' make: *** [exe] 错误 1
我该如何解决?
pointers - 编译nesc时指针错误
我在 nesc 中有以下方法/事件。我收到一个错误
在这段代码的第 4 行。该错误具体是:“'*'之前的语法错误。然后它说adammsg在下一行中未声明
谁能告诉我我的错误可能是什么?我已经坚持了一段时间,这让我发疯了。我正在开发 Tinyos 中包含的 RadioCountsToLeds 应用程序。具体来说,我正在尝试注入数据包-将它们发送到节点-然后对存储在数据包中的信息进行计算。
谢谢!
communication - TinyOs nesc 数据包确认
我想编写一个微尘无线电通信程序,并希望接收方向发送方确认。我知道这PacketAcknowledgements
是推荐的,但有一些问题我不确定这个界面。
java - Mote-PC串口通信课上tinyos的一些问题
我现在在学习 tinyos 时遇到了一些关于 java 的问题。
还有一些关于我的 java 和 tinyos.sh 的设置
如果有任何建议,请告诉我。
tinyos - 为 TOSSIM 编译 tkn154 测试应用程序时出错
我正在尝试在 tinyos-2.1.2/apps/tests/tkn154 下编译示例应用程序。telosb 和 micaz motes 的应用程序编译没有任何错误(使用 make telosb 或 make micaz)。
但是,在使用“make micaz sim”为 TOSSIM 模拟编译它时,我遇到了一些问题(附在下面)。谁能告诉我错误在哪里。
谢谢并恭祝安康,
终端输出:
mkdir -p simbuild/micaz 将目标文件放入 simbuild/micaz 将 XML 模式写入 app.xml 将 TestAssociateAppC 编译为目标文件 sim.o ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node() -fnesc-gcc=gcc -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app .c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -I/opt/tinyos-2.1.2/apps/tests/tkn154/nonbeacon-enabled/TestAssociate/device/.. - DIDENT_APPNAME=\"TestAssociateAp\" -DIDENT_USERNAME=\"kbhargava\" -DIDENT_HOSTNAME=\"精度\" -DIDENT_USERHASH=0x78c52cfbL -DIDENT_TIMESTAMP=0x57e996e9L -DIDENT_UIDHASH=0xe5bdc59eL -I/opt/tinyos-2.1.2/tos/lib mac/tkn154 -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/dummies -I/opt/tinyos-2.1。2/tos/lib/mac/tkn154/interfaces/MCPS -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/MLME -I/opt/tinyos-2.1.2/tos/lib/ mac/tkn154/interfaces/private -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/public -I/opt/tinyos-2.1.2/tos/platforms/micaz/mac/tkn154 - I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer -I/opt/tinyos-2.1。 2/tos/chips/cc2420_tkn154 -Wno-nesc-data-race TestAssociateAppC.nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc -dump=tags -fnesc-dumpfile=app.xml 在来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62 的文件中,来自 TestAssociateAppC.nc:39:在界面中2/tos/lib/mac/tkn154/interfaces/MLME -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/private -I/opt/tinyos-2.1.2/tos/lib/ mac/tkn154/interfaces/public -I/opt/tinyos-2.1.2/tos/platforms/micaz/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154 -I/ opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer -I/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 -Wno-nesc-data-race TestAssociateAppC.nc -fnesc-dump =components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1 包含的文件中.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自 TestAssociateAppC.nc:39:在界面中2/tos/lib/mac/tkn154/interfaces/MLME -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/private -I/opt/tinyos-2.1.2/tos/lib/ mac/tkn154/interfaces/public -I/opt/tinyos-2.1.2/tos/platforms/micaz/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154 -I/ opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer -I/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 -Wno-nesc-data-race TestAssociateAppC.nc -fnesc-dump =components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1 包含的文件中.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自 TestAssociateAppC.nc:39:在界面中2/tos/platforms/micaz/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/ tkn154/timer -I/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 -Wno-nesc-data-race TestAssociateAppC.nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc -dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc 包含的文件中:62,来自 TestAssociateAppC.nc:39:在界面中2/tos/platforms/micaz/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/ tkn154/timer -I/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 -Wno-nesc-data-race TestAssociateAppC.nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc -dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc 包含的文件中:62,来自 TestAssociateAppC.nc:39:在界面中nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在从/包含的文件中opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自TestAssociateAppC.nc:39:在界面中nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在从/包含的文件中opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自TestAssociateAppC.nc:39:在界面中Timestamp':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/Timestamp.nc:67: warning: declaration of
time' 阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置在 /opt/tinyos-2.1.2/tos/lib/mac/tkn154/TKN154NonBeaconEnabledP.nc:97 包含的文件中,来自/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:68,来自TestAssociateAppC.nc:39:在组件DataP':
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/DataP.nc: In function
MCPS_DATA.request'中:/opt/tinyos-2.1.2/tos/ lib/mac/tkn154/DataP.nc:103: union has no member named ieee154'
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/DataP.nc:105: union has no member named
ieee154' 在 /opt/tinyos-2.1.2/tos/lib/mac/tkn154/TKN154NonBeaconEnabledP.nc:98 包含的文件中,来自 /opt/ tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:68,来自 TestAssociateAppC.nc:39:在组件中PibP':
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In function
Packet.clear':/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:566:联合没有名为ieee154'
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:567: union has no member named
ieee154 的成员'/opt/tinyos-2.1.2/tos/lib/mac/ tkn154/PibP.nc:568:联合没有名为ieee154'
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In function
Packet.payloadLength'的成员:/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:573:联合没有名为ieee154'
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In function
Packet.setPayloadLength'的成员:/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:578:工会没有名为ieee154'
In file included from /opt/tinyos-2.1.2/tos/lib/mac/tkn154/TKN154NonBeaconEnabledP.nc:100,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:68,
from TestAssociateAppC.nc:39:
In component
DispatchUnslottedCsmaP' 的成员:/opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP .nc:在函数updateState':
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:255: warning: declaration of
下一个'阴影全局声明/opt/tinyos-2.1.2/tos/lib/tossim/heap.c:71:警告:阴影声明的位置/opt/tinyos-2.1.2/tos/lib/ mac/tkn154/DispatchUnslottedCsmaP.nc: 在函数中tryTransmit':
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:328: warning: declaration of
next' 阴影全局声明 /opt/tinyos-2.1.2/tos/lib/tossim/heap.c:71:警告:阴影声明的位置 /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP .nc:在函数tryReceive':
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:343: warning: declaration of
下一个'阴影全局声明/opt/tinyos-2.1.2/tos/lib/tossim/heap.c:71:警告:阴影声明的位置/opt/tinyos-2.1.2/tos/lib/ mac/tkn154/DispatchUnslottedCsmaP.nc: 在函数中trySwitchOff':
/opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:357: warning: declaration of
next' 阴影全局声明 /opt/tinyos-2.1.2/tos/lib/tossim/heap.c:71:警告:阴影声明的位置 在 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 包含的文件中/CC2420TKN154P.nc:39,来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:64,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC .nc:91,来自 TestAssociateAppC.nc:39:在 C 文件中:/opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:在顶层:/opt/tinyos-2.1.2/tos/芯片/cc2420/CC2420.h:132: nx_bool'
/opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:132: warning: no semicolon at end of struct or union
/opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:133: syntax error before
ack'之前的语法错误'/opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:134: timesync'
/opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:143: syntax error before
}'之前的语法错误/opt/tinyos-2.1.2/ tos/chips/cc2420/CC2420.h:143:警告:类型默认为int' in declaration of
cc2420_metadata_t' /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:143:警告:数据定义在/opt/tinyos-2.1.2/tos/chips/包含的文件中没有类型或存储类cc2420_tkn154/CC2420TKN154P.nc:65,来自/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:64,来自/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/ ieee802154NonBeaconEnabledC.nc:91,来自 TestAssociateAppC.nc:39:在接口CC2420Tx':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420Tx.nc:52: warning: declaration of
时间戳的阴影全局声明 /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:135:警告:组件CC2420TKN154P':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc: In function
waitBackoffDoneUnslottedCsma中阴影声明的位置':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:524:警告:声明dummy' shadows global declaration
/opt/tinyos-2.1.2/tos/lib/tossim/sim_noise.c:283: warning: location of shadowed declaration
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc: In function
waitBackoffDoneSlottedCsma':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:646:警告:dummy' shadows global declaration
/opt/tinyos-2.1.2/tos/lib/tossim/sim_noise.c:283: warning: location of shadowed declaration
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc: At top level:
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:822: warning: declaration of
时间声明'阴影全局声明/usr/include/time.h:192:警告:阴影声明的位置/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:901:警告:time' shadows global declaration
/usr/include/time.h:192: warning: location of shadowed declaration
In file included from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:72,
from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91,
from TestAssociateAppC.nc:39:
In component
CC2420ControlP'的声明:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:58:接口CC2420Ram 未找到 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:59: 接口 CC2420Register not found /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:67: 接口CC2420Strobe not found /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:在函数CC2420Power.startOscillator':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:203: interface has no command or event named
写入中'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:207:接口没有命令或事件命名strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:209: interface has no command or event named
写'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:215:接口没有名为write'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
CC2420Power.stopOscillator的命令或事件':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/ CC2420ControlP.nc:236:接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
CC2420Power.rxOn' 的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:248:接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:249: interface has no command or event named
strobe 的命令或事件'/opt /tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:在函数CC2420Power.rfOff':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:261: interface has no command or event named
选通中'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:在函数CC2420Power.flushRxFifo':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:269: warning: declaration of
虚拟'阴影全局声明/opt/ tinyos-2.1.2/tos/lib/tossim/sim_noise.c:283:警告:阴影声明的位置/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:278:接口没有命令或事件命名read'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:283: interface has no command or event named
strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:284: 接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
CC2420Config.sync 的命令或事件': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/ CC2420ControlP.nc:399:接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
CC2420Power.rssi'的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:425:接口没有名为read'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
InterruptCCA.fired'的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:451:接口没有名为write'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
writeFsctrl'的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc :468: 接口没有命令或事件名为write'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
writeMdmctrl0': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:481: 接口没有命令或事件名为write'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function
writeId':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:511:接口没有名为write'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:515: interface has no command or event named
write'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP的命令或事件。 nc: In function writeTxPower':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:519: interface has no command or event named
write' 在 /opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:39 包含的文件中,来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 /CC2420ControlTransmitC.nc:88,来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC .nc:91,来自 TestAssociateAppC.nc:39:在界面中GpioCapture':
/opt/tinyos-2.1.2/tos/interfaces/GpioCapture.nc: At top level:
/opt/tinyos-2.1.2/tos/interfaces/GpioCapture.nc:61: warning: declaration of
time' 阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置在 /opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:47 包含的文件中, 来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:88, 来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, 来自 /opt/tinyos -2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91,来自 TestAssociateAppC.nc:39:在组件中Atm128GpioCaptureC':
/opt/tinyos-2.1.2/tos/chips/atm128/timer/Atm128GpioCaptureC.nc:71: warning: declaration of
time' 阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置在 /opt/tinyos-2.1.2/tos/chips/atm128/timer/HplAtm128Timer1C.nc:53 包含的文件中,来自/opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:48,来自/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:88,来自/opt /tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91,来自 TestAssociateAppC.nc: 39:在组件中HplAtm128Timer1P':
/opt/tinyos-2.1.2/tos/chips/atm128/timer/HplAtm128Timer1P.nc:215: warning: declaration of
time' 阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置在 /opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:53 包含的文件中, 来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:88, 来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, 来自 /opt/tinyos -2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91,来自TestAssociateAppC.nc:39:在组件HplAtm128InterruptPinP':
/opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:62: component arguments must be constants
In component
HplAtm128InterruptPinP'中:/opt/tinyos-2.1.2/tos/chips/atm128/pins/ HplAtm128InterruptC.nc:63:组件参数必须是组件中的常量HplAtm128InterruptPinP':
/opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:64: component arguments must be constants
In component
HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:65: 组件参数必须是常量在组件HplAtm128InterruptPinP':
/opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:66: component arguments must be constants
In component
HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128 /pins/HplAtm128InterruptC.nc:67:组件参数必须是常量 在组件HplAtm128InterruptPinP':
/opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:68: component arguments must be constants
In component
HplAtm128InterruptPinP' 中:/opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:69:组件参数必须是常量 在包含的文件中来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91,来自 TestAssociateAppC .nc:39:在组件中CC2420ControlTransmitC':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:91: component CC2420SpiC not found
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:91: component
CC2420SpiC' 不是通用的 在 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:113 包含的文件中,来自 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc: 83,来自/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91,来自TestAssociateAppC.nc:39:在组件CC2420TransmitP':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:65: interface ChipSpiResource not found
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:66: interface CC2420Fifo not found
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:80: interface CC2420Receive not found
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function
CC2420Tx.loadTXFIFO'中:/opt/tinyos-2.1.2 /tos/chips/cc2420_tkn154/CC2420TransmitP.nc:164:接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:167: interface has no command or event named
write'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc 的命令或事件:在顶层:/opt/tinyos- 2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:173: writeDone' is not in interface
TXFIFO' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: 在函数中TXFIFO.writeDone':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:178: interface has no command or event named
写入'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:182:接口没有名为write'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function
CC2420Tx.send的命令或事件':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/ CC2420TransmitP.nc:203: 接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:203: interface has no command or event named
strobe 的命令或事件'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:211: 接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level:
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:245: warning: declaration of
时间的命令或事件'阴影全局声明/usr /include/time.h:192:警告:阴影声明的位置 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:在函数CaptureSFD.captured':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:297: interface has no command or event named
sfd'/opt/tinyos-2.1.2 /tos/chips /cc2420_tkn154/CC2420TransmitP.nc:320:接口没有名为sfd_dropped'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function
CC2420Tx.modify 的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:336:接口没有名为的命令或事件write'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level:
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:351:
释放'不在接口ChipSpiResource'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function
ChipSpiResource.releasing':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:353:接口没有命令或事件名为abortRelease'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level:
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:363:
接收'不在接口CC2420Receive'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function
BackoffAlarm.fired': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:386:接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function
signalDone'的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: 413: interface has no command or event named attemptRelease'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level:
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:417:
readDone' is not in interface TXFIFO'
In file included from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:51,
from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:141,
from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91,
from TestAssociateAppC.nc:39:
In component
CC2420ReceiveP': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:214: warning: declaration of time' shadows global declaration
/usr/include/time.h:192: warning: location of shadowed declaration
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:214:
sfd' is not in interface CC2420Receive'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:224:
sfd_dropped '不在接口中CC2420Receive'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:262:
readDone' 不在接口中RXFIFO'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc: In function
RXFIFO.readDone': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:288: 接口没有名为continueRead'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:321: interface has no command or event named
continueRead'/opt /tinyos-2.1.2/tos/chips/cc2420_tkn154/ 的命令或事件CC2420ReceiveP.nc:337:接口没有名为continueRead'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:364: interface has no command or event named
接收的命令或事件'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:在顶层:/opt/tinyos-2.1.2/tos/chips /cc2420_tkn154/CC2420ReceiveP.nc:391: writeDone' is not in interface
RXFIFO' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc: 在函数flush':
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:457: interface has no command or event named
选通中' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP .nc:458:接口没有名为strobe'
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc: In function
接收的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:474:接口没有名为的命令或事件beginRead'
In component
CC2420ReceiveC':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:在顶层:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:52:组件CC2420SpiC' is not generic
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:69: no match
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:70: cannot find
RXFIFO' ... /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:75: 找不到MDMCTRL1'
In component
CC2420ControlTransmitC': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:92:不匹配/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:93:找不到SRXON'
...
/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:139: cannot find
SACKPEND' 在 /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:24 包含的文件中:/opt/tinyos-2.1.2/tos/platforms/mica/MicaTimer.h:121:2:错误:#error“未知时钟速率。MHZ 必须定义为 1、2、4 或 8 之一。” 在 /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:24 包含的文件中,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc :8,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92,来自 TestAssociateAppC.nc:39:在 C 文件中:/opt/tinyos-2.1.2/tos /platforms/mica/MicaTimer.h:126:MHZ' undeclared here (not in a function)
/opt/tinyos-2.1.2/tos/platforms/mica/MicaTimer.h:126: enumerator value for
PLATFORM_MHZ' 不是整数常量 在 /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32 包含的文件中,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/ timer/Alarm62500hz32C.nc:8,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92,来自 TestAssociateAppC.nc:39:在组件AlarmOne16C':
/opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:30: syntax error before
TOne' 中包含的文件中 / opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:34,来自 /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32,来自 /opt/tinyos-2.1。 2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92,来自 TestAssociateAppC.nc :39: 在组件中InitOneP':
/opt/tinyos-2.1.2/tos/platforms/mica/InitOneP.nc:24:
MICA_PRESCALER_ONE' 此处未声明(不在函数中) 在 /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32 包含的文件中,来自 /opt/tinyos-2.1.2/tos/platforms/telosb /mac/tkn154/timer/Alarm62500hz32C.nc:8,来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92,来自 TestAssociateAppC.nc:39:在组件AlarmOne16C':
/opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:35:
TOne'此处未声明(不在函数中)/opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:41:找不到Alarm'
In file included from /opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:28,
from /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92,
from TestAssociateAppC.nc:39:
In component
CounterOne16C':/opt/tinyos-2.1.2/tos/platforms/mica/CounterOne16C .nc:24:TOne'
/opt/tinyos-2.1.2/tos/platforms/mica/CounterOne16C.nc:29:
此处未声明 TOne' 之前的语法错误(不在函数中)/opt/tinyos-2.1.2/tos/platforms/mica/CounterOne16C.nc:31:找不到Counter'
In file included from /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92,
from TestAssociateAppC.nc:39:
In component
Counter32khz32C': /opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:29: TOne' undeclared here (not in a function)
/opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:30:
MICA_DIVIDE_ONE_FOR_32KHZ_LOG2' 此处未声明(不在函数中)/opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C .nc:31: counter_one_overflow_t' undeclared here (not in a function)
/opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:34: no match
In file included from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8,
from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92,
from TestAssociateAppC.nc:39:
In component
Alarm32khz32C': /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:33: TOne' undeclared here (not in a function)
/opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:34:
MICA_DIVIDE_ONE_FOR_32KHZ_LOG2' 此处未声明(不在函数中)/opt/tinyos-2.1.2/tos/平台/云母/Alarm32khz32C.nc:37:不匹配/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm32khzTo62500hzTransformC.nc:53:2:警告:#warning“警告:MAC时间不符合标准!” make: *** [sim-exe] 错误 1
tinyos - 如何使用 tinyOS 在传感器节点中进行双向通信?
使用 AMSend.send(AM_BROADCAST_ADDR, msg, len) 可以通过无线电发送数据包。在 receive.receive 中,我可以检查我从哪个节点收到消息。但是如何将消息发送回我收到消息的同一节点。我有节点 ID,如何获取接收数据的网络地址并将其发回给它。不仅仅是确认数据包。收到数据后,我需要发送数据。任何帮助将不胜感激。
networking - nesC/TinyOS 中环形算法中的令牌传递
如何在 TinyOS 中为微尘创建令牌传递协议?
我正在尝试创建一个令牌传递算法,将令牌从一个节点传递到另一个节点,但是我没有成功。