12 063
правки
(Новая страница: «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> | ||
Specify the address of the flash device in a mbusaddr variable. | |||
В выводе команды вы получите сигнатуру устройства, например, '''wbmr6c'''. | В выводе команды вы получите сигнатуру устройства, например, '''wbmr6c'''. |
правки