BA-BLE: Difference between revisions
→MODBUS
(→MODBUS) |
|||
| Line 358: | Line 358: | ||
[[MODBUS ТД-500|Описание протокола MODBUS]] | [[MODBUS ТД-500|Описание протокола MODBUS]] | ||
Example of communication log between the tracker and BA-BLE via MODBUS protocol | |||
[[Файл:Пример лога MODBUS.png]] | [[Файл:Пример лога MODBUS.png]] | ||
01 03 00 00 00 04 44 09 - | 01 03 00 00 00 04 44 09 - request from the tracker to issue data to 1 address | ||
* 01 - | * 01 - network address | ||
* 03 - | * 03 - read command | ||
* 00 - | * 00 - Low byte of the read register (value is ignored) | ||
* 00 - | * 00 - High byte of the read register (value is ignored) | ||
* 00 - | * 00 - Low byte of the quantity | ||
* 04 - | * 04 - High byte of quantity | ||
* 44 - | * 44 - Low byte of CRC-16/MODBUS | ||
* 09 - | * 09 - High byte of CRC-16/MODBUS | ||
01 03 08 15 00 01 00 00 00 00 00 55 35 - | 01 03 08 15 00 01 00 00 00 00 00 55 35 - response at address 1 | ||
* 01 - | * 01 - network address | ||
* 03 - | * 03 - Command confirmation, always 03 | ||
* 08 - | * 08 - Number of unloaded bytes (always 8) | ||
* 15 - Температура HEX (21°C) | * 15 - Температура HEX (21°C) | ||
* 00 - | * 00 - High byte of HEX level | ||
* 01 - | * 01 - Low byte of HEX level | ||
* 00 00 00 00 00 - | * 00 00 00 00 00 - Always 0 | ||
* 55 - | * 55 - Low byte of CRC-16/MODBUS | ||
* 35 - | * 35 - High byte of CRC-16/MODBUS | ||
02 03 00 00 00 04 45 EB - | 02 03 00 00 00 04 45 EB - request from the tracker to issue data to 2 address | ||
* 02 - | * 02 - network address | ||
* 03 - | * 03 - read command | ||
* 00 - | * 00 - Low byte of the read register (value is ignored) | ||
* 00 - | * 00 - High byte of the read register (value is ignored) | ||
* 00 - | * 00 - Low byte of the quantity | ||
* 04 - | * 04 - High byte of quantity | ||
* 45 - | * 45 - Low byte of CRC-16/MODBUS | ||
* EB - | * EB - High byte of CRC-16/MODBUS | ||
02 03 08 E0 00 25 00 00 00 00 00 93 EE - | 02 03 08 E0 00 25 00 00 00 00 00 93 EE - response at address 2 | ||
* 02 - | * 02 - network address | ||
* 03 - | * 03 - Command confirmation, always 03 | ||
* 08 - | * 08 - Number of unloaded bytes (always 8) | ||
* E0 - Температура HEX (-32°C) | * E0 - Температура HEX (-32°C) negative values go in reverse order from the maximum 255, i.e. 224 is 224-256 -32°C | ||
* 00 - | * 00 - High byte of HEX level | ||
* 25 - | * 25 - Low byte of HEX level (level 37) | ||
* 00 00 00 00 00 - | * 00 00 00 00 00 - Always 0 | ||
* 93 - | * 93 - Low byte of CRC-16/MODBUS | ||
* EE - | * EE - High byte of CRC-16/MODBUS | ||
== '''<big>RS-232</big>''' == | == '''<big>RS-232</big>''' == | ||