NEOCORTEC A/S NC2400C1 Manual De Usuario

Descargar
Página de 16
 
 
- 15 of 16 – 
 
 
neo.cortec
.
9  Examples 
9.1  Acknowledged Payload data transmission through the network 
In the following example, payload data is send from a sensor node to a PC which is 
attached to another node in the NEOCORTEC network. 
 
 
Figure 3 - Network example 
 
In the example, the Originator node has the NEOCORTEC ID 0x00 20 and the Receiving 
node has the NEOCORTEC ID 0x00 2A. Port 0x00 is used throughout the example. 
This example only uses the Application API.  
When the uController has a sensor measurement that it wants to send to the PC, this is 
what happens: 
 
1) uController sends a frame to the Originator node. The frame instructs the Originator 
node to send the sensor data to the Receiving node. The sensor data is 1 byte and has 
the value 0x23: 
 
Section 
Code 
Length  UART Payload 
Content  0x03 
0x04 
0x002A0023