readme.txt
来自「主要用于无线传感网络的编写的书籍.对于初学者有着很大的用处」· 文本 代码 · 共 42 行
TXT
42 行
+---------------------------------------------------------------------------+| .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 + =
减小字号Ctrl + -
显示快捷键?