User's Manual

The way data messages are used is totally user dependent. From a logical point of view the
responsible for data managing are applications running on Host and each DXT connected to the
gateway.
Figure 8 – Data Mode: data flow at application layer
4.2.1.2 Command-mode
If command-mode is used, the Host may send specific commands to SWS gateway in order to
configure it.
4.3 Control Interface
Once SWS GW Application has been started, the Control Interface will be available on the serial
interface ( it can be RS232, USB or Bluetooth)
The Control Interface receives from the Host the serial packets, converts them to internal control
messages and sends the responses to the Host.
All frame formats in this clause are routed in the order in which they are transmitted, that is, from left to
right. For every field the left most byte is the least significant byte and the right most byte is the most
significant byte (little endian).
The serial packets shall be formatted as illustrated in Figure 9 .
Figure 9
Every packet has a START byte and a STOP byte.
4.3.1 Stuff algorithm
When using START and STOP bytes in the Message, it must be ensured that they will not be
confused with the true START and STOP. To achieve this result, an escaping technique called “stuff
Message STOP
Variable 1 Byte 1 Byte
START
Short Range
Network
SWS
Gateway
Short Range
Functionalities
Application
DXT
Application
Host