📄 readme
字号:
Title: TestDIP ApplicationAuthor: Kaisen Lin1. SETTING UP THE TESTYou need to first generate the code for compilation. The gentest.pyscript reads in the Master files and creates TestDIPC.nc (theconfiguration) and TESTDIPP.nc (the module). It takes two parameters,the total number of items and the number of new items. The items thatare random are chosen randomly.If you want 128 total items in the dissemination set, where 96 ofthose 128 items are new, you would type:python gentest.py 128 96After the configuration and module have been generated, you can usethe normal compilation method (e.g. make telosb).2, READING THE LEDSWhen an node receives a new item, it toggles LED0. When a nodecompletes all items, it turns all LEDs on.3. SERIAL MESSAGEStypedef nx_struct dip_test_msg_t { nx_am_addr_t id; nx_uint8_t count; nx_uint8_t isOk;} dip_test_msg_t;When a node receives a new item, it sends a dip_test_msg_t through theserial interface.id is the node idcount is how many new items it has received so farisOk will be true if the data value was as expected4. PACKET INJECTORYou can also use the injector to send data packets via abasestation. The syntax to do that is:java DipInject [key] [version] [data in quotes delimited by space]key is the data key in hexadecimalversion is the version number in decimaldata is the actual data in quotes delimited by spaceFor example, if you want to send key 10, version 2, and data "ab cdef". You would type:java DipInject 0a 2 "ab cd ef"For this specific test application, your data needs to be "ef be". Youwill need a SerialForwarder running for this work.5. TIMINGWith a single sender and single receiver on a table using TelosBnodes, it takes approximately:3.5 minutes for a node to receive 128 out of 128 items. 4.0 minutes for a node to receive 240 out of 240 items.With a single sender and two receivers on Mirage MicaZ nodes, it takesapproximately:2 minutes for both nodes to receive 96 out of 96 items.With 128 items or more, MicaZ nodes don't receive anything. Memory limitation?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -