Перейти к содержанию

Навигация

WB Modbus Devices Firmware Update/en: различия между версиями

Новая страница: «If you do not know the exact hardware type of the device, you can read its signature with the command: <pre> export mbusaddr=1; echo -e `modbus_client --debug -…»
(Новая страница: «Connect the device to RS-485.»)
(Новая страница: «If you do not know the exact hardware type of the device, you can read its signature with the command: <pre> export mbusaddr=1; echo -e `modbus_client --debug -…»)
Строка 106: Строка 106:
Connect the device to RS-485.
Connect the device to RS-485.


Если вы не знаете точного аппаратного типа устройства, то его сигнатуру можно прочесть командой:
If you do not know the exact hardware type of the device, you can read its signature with the command:
<pre>
<pre>
export mbusaddr=1;  echo  -e `modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a$mbusaddr -t0x03 -r290 -c 12 | grep Data | sed -e 's/0x00/\x/g' -e 's/Data://' -e 's/s//g'`|  xxd -r -p && echo ''
export mbusaddr=1;  echo  -e `modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a$mbusaddr -t0x03 -r290 -c 12 | grep Data | sed -e 's/0x00/\x/g' -e 's/Data://' -e 's/s//g'`|  xxd -r -p && echo ''
</pre>     
</pre>     
Задайте адрес прошиваемого устройства в переменной mbusaddr.
Specify the address of the flash device in a  mbusaddr variable.


В выводе команды вы получите сигнатуру устройства, например, '''wbmr6c'''.
В выводе команды вы получите сигнатуру устройства, например, '''wbmr6c'''.
12 063

правки