
Wireless Sensor Networks MicroStrain, Inc. ©2011 by MicroStrain, Inc. 459 Hurricane Lane, Suite 102 Williston, VT 05495 Phone 802-862-6629 Fax 802-863-4093 www.microstrain.com [email protected] ISSUED: 9 June 2011 Important Disclaimer The SDK is provided “as is” and any expressed or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall MicroStrain or its contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this SDK, even if advised of the possibility of such damage. MicroStrain will make every effort to amplify the instructions contained in the Data Communications Protocol manual and sample code but will neither undertake to detail the functioning of the hardware or firmware in the Node Commander® family nor debug the purchaser‟s code. 2 MicroStrain, Inc. Table of Contents OVERVIEW ................................................................................................................................................................ 4 COMMANDS OVERVIEW ....................................................................................................................................... 5 Base Station Commands ........................................................................................................................................... 5 Node Commands....................................................................................................................................................... 5 Data Format (MSB, LSB) ......................................................................................................................................... 6 Checksum ................................................................................................................................................................. 7 RSSI .......................................................................................................................................................................... 8 LQI ............................................................................................................................................................................ 8 BASE STATION COMMANDS ................................................................................................................................ 9 Ping Base Station ...................................................................................................................................................... 9 Read Base Station EEPROM .................................................................................................................................. 10 Write Base Station EEPROM ................................................................................................................................. 11 NODE COMMANDS ................................................................................................................................................ 12 Short Ping ............................................................................................................................................................... 12 Long Ping................................................................................................................................................................ 13 Read Node EEPROM ............................................................................................................................................. 14 Write Node EEPROM ............................................................................................................................................ 15 Initiate Sleep Mode ................................................................................................................................................. 16 Stop Node ............................................................................................................................................................... 17 Trigger Datalogging Session ................................................................................................................................... 18 Download Page ....................................................................................................................................................... 19 Erase Session Data .................................................................................................................................................. 22 Initiate Real-Time Streaming .................................................................................................................................. 23 Initiate Low Duty Cycle.......................................................................................................................................... 25 Initiate High-Speed Streaming ................................................................................................................................ 27 Read Single Sensor ................................................................................................................................................. 30 Auto-Balance Channel ............................................................................................................................................ 31 OTHER DETAILS .................................................................................................................................................... 32 Broadcast Address .................................................................................................................................................. 32 Node Discovery ...................................................................................................................................................... 33 Calibration Coefficients .......................................................................................................................................... 34 Channel Mask ......................................................................................................................................................... 39 CP210x USB to UART Bridge Controller .............................................................................................................. 41 Suggested Debugging Tools ................................................................................................................................... 42 LookRS232 ......................................................................................................................................................... 42 Serial Port Monitor ............................................................................................................................................ 43 Comm Operator ................................................................................................................................................. 43 SUPPORT .................................................................................................................................................................. 44 Web ......................................................................................................................................................................... 44 Live Chat ................................................................................................................................................................ 44 Email ....................................................................................................................................................................... 44 Telephone ............................................................................................................................................................... 44 SKYPE .................................................................................................................................................................... 44 3 Overview MicroStrain, Inc. Overview This document describes the data communications protocol for the MicroStrain 2.4 GHz Node Commander® product line which includes the following devices: Device Firmware V-Link® Node 4.99 to 6.XX G-Link® Node 4.99 to 6.XX SG-Link® Node 4.99 to 6.XX SG-Link® OEM Node 6.03 to 6.XX Serial Base Station 2.07 and higher USB Base Station 2.07 and higher Analog Base Station 2.07 and higher If your equipment has firmware earlier than stated in the above table, there may be a requirement to upgrade in order to take full advantage of this protocol. Communication between the Serial Base Station or the RS-232 interface of the Analog Base Station and the host computer is via a standard RS-232 connection as shown in the RS-232 Signals Definition and RS-232 Asynchronous Character Format tables. RS-232 Signals Definition Signal Name Direction Function TxD Transmit Data Host to Base Station Asynchronous Serial Data from Host RxD Receive Data Base Station to Host Asynchronous Serial Data to Host GND Signal Ground N/A Signal Ground Reference RS-232 Serial Port Configuration Baud Rate 115.2K Parity None Data Bits 8 Stop Bits
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages44 Page
-
File Size-