Example of reading the measured value with the CURL command
Access to resources
status.xml
does not require authorization.
Reading values from the
value.txt
resource:
curl "http://192.168.111.15/value.txt" -w "\n"
Reading the Final_Value value from the status.xml file
curl "http://192.168.111.15/status.xml" -w "\n" 2>/dev/null | grep 'valFinal'
| awk -F "[><]" '/valFinal/{print $3}'
8.13 Description of the communication protocol
Nano TC Sensor communication data frame.
Command
Byte
number
1
2
3
4
5
6
7
8
9
10
11
Byte
name
SOF
CMD
Channel
Data1
Data2
Data3
Data4
Data5
Data6
Data7
CRC Returns
Temperature
reading
dec
15
13
0
X
X
X
X
X
X
X
CRC
4bytes
+ CRC
hex
0x0F
0x0D
0x00
X
X
X
X
X
X
X
CRC
4 bytes
+ CRC
As default modules are listening on TCP port 9761.
Reading the current value from the Nano TC Sensor.
SOF
CMD
CH
D1
D2
D3
D4
D5
D6
D7
CRC
0x0F
0x0D
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x1C
CRC = (BYTE) SUM (SOF+CMD+CH+D1..D7)
User manual Nano Analog PoE v2
Page
30
of
32
[B01]