Tip |
---|
You can safely skip the details of this page if you only intend to use the QSL as is. |
Some applications might find the need for more advanced functionality than the QSL provides. The information on this page is intended to help better understand how the QSL works, making it easier to either customize it to better fit your application or use it as an example to access the mote serial API directly. In both cases you should also have a look at Chapter 3 of the SmartMesh IP User's Guide to understand how to interface the SmartMesh IP mote, as well as the SmartMesh IP Mote Serial API Guide for a complete list of commands, replies and notifications.
State Machine
The core functionality of the QSL is implemented through a finite state machine (FSM). The different states of the FSM schedules a sequence of events, one after the other, where each event cause a certain command to be sent to the mote. The mote returns a corresponding reply to each command sent, and the contents of this reply is used to schedule the next appropriate event.
...