Hello! Yes sure, there is a way how to do it. You can reset settings to initial values using wb-mcu-fw-flasher tool (Сервисная утилита wb-mcu-fw-flasher — Wiren Board). It will be better to have only one device connected to RS-485 port before starting flashing (to prevent flashing another device in case of mistake).
At first read a signature of your device using following command (use your own boudrate, parity, stopbits, port and address in arguments of modbus_client tool (Утилита «modbus_client» — Wiren Board), because they can be different) :
echo -e $(modbus_client -mrtu -b9600 -pnone -s2 /dev/ttyRS485-1 -a 25 -t3 -r 290 -c 12 | grep Data | sed -e 's/.*Data://' -e 's/ 0x00/\\x/g')
If signature of the new firmware is not same with the signature of your device, flashing is impossible.
If you use our controller Wirenboard 6, please, don’t forget to stop driver wb-mqtt-serial before any usage of manual communication or flashig commands:
service wb-mqtt-serial stop
And then (before normal work) you should start it again:
service wb-mqtt-serial start
Download suitable firmware from here (http://fw-releases.wirenboard.com), according to signature of your device.
Then follow steps in section “Загрузка прошивки в устройство” (“Loading firmware to device”) here: Обновление прошивки Modbus-устройств Wiren Board — Wiren Board .
You should use the key “-e” of wb-mcu-fw-flasher to reset settings of your device. Memory of the device will be erased and then it will be flashed. For example for device connected to port RS-485-1 with address 25 and default communication parameters run following command:
wb-mcu-fw-flasher -b9600 -pN -s2 -e -j -d /dev/ttyRS485-1 -a 25 -f ./firmware.wbfw
For connection to the device after settings reset use following parameters: address 1, baudrate 9600, parity N (none), stop bits 2.