?? readme.txt
字號:
+---------------------------------------------------------------------------+| .o0 README For Serial Communication Library 0o. |+---------------------------------------------------------------------------+OVERVIEW The serial comunication library communicates with the motes over the serial port. It allows you to access any of the ISO layers of communication. At the application level, simply use the functions readNetworkPacket and writeNetworkPacket.FILES library/ readme.txt - this readme file physical/ - use this for opening and closing the serial port serial_connect.h serial_connect.c link/ - use this for byte-level communication (MAC protocols) frame.h frame.c network/ - use this for packet structures (IP protocols) packet.h packet.c transport/ - use this for reliable transport (TCP protocols) readme - tells you that there is no distinct transport layer in the TinyOS Active Message system.HOW TO USE Use the library/debug/debug.h function "setupDebug" at the start of your program to control what messages will be printed to the screen. Simple reading: call readNetworkPacket inside a while loop. You can print the packet using the printPacket function. Simple writing: call writePacket. Reading and Writing at the same time: use fork() to create two processes and have one do the reading and the other do the writing. Otherwise, it is almost impossible to syncronize the reads and writes.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -