LM5 RS485 check - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Hardware (https://forum.logicmachine.net/forumdisplay.php?fid=12) +--- Thread: LM5 RS485 check (/showthread.php?tid=1939) |
LM5 RS485 check - gtsamis - 03.03.2019 Hi, I have an LM5 communicating with an arduino board via RS485 serial port. It was working for several months but suddenly it stooped without any obvious reason. Is there any easy way to check if there is a hardware problem with the RS485 port? Thank you in advance George RE: LM5 RS485 check - admin - 03.03.2019 You can connect two RS485 ports on LM5 together and write a script to test communication between them. RE: LM5 RS485 check - gtsamis - 07.03.2019 (03.03.2019, 16:24)admin Wrote: You can connect two RS485 ports on LM5 together and write a script to test communication between them. Didn't though about it... thank's! RE: LM5 RS485 check - edgars - 10.06.2019 here is the script for RS485 self-test with either OK or ERROR message in Alerts. Make sure to adjust port names accordingly (2nd, 3rd lines): Code: require('serial') RE: LM5 RS485 check - edgars - 10.06.2019 Here is a nice article about necessity to use 3 wires when interconnecting RS485 devices. Might help somebody to protect RS485 or the whole device from the damage RE: LM5 RS485 check - davidchispas - 23.09.2019 Hi. I have a problem every time I restart the LM. The rs485 port of the dali installation is not enabled, needing to re-enter the dali configuration and enable it. I have another LM in another similar installation and it doesn't fail. I already updated the firm and the Dali package, and still doing the same. Can you think of it? Thank you RE: LM5 RS485 check - Daniel - 23.09.2019 Most likely your SD card is in read only mode and the configuration is not saved. Try changing any other configuration, reboot and see if it is still changed. RE: LM5 RS485 check - davidchispas - 23.09.2019 (23.09.2019, 15:35)Daniel. Wrote: Most likely your SD card is in read only mode and the configuration is not saved. Try changing any other configuration, reboot and see if it is still changed.The rest of the configuration is saved perfectly. Scripts, group addresses, objects ... Where can I see if it is in read mode? RE: LM5 RS485 check - Daniel - 23.09.2019 Which FW? RE: LM5 RS485 check - davidchispas - 23.09.2019 (23.09.2019, 16:34)Daniel. Wrote: Which FW? LM5 Power with extensions: https://dl.openrb.com/lm-18-imx6/lm5m3ex-20180828.img and genohm-scada-dali_20181128_imx6.ipk RE: LM5 RS485 check - Daniel - 24.09.2019 which port do you use? RE: LM5 RS485 check - davidchispas - 24.09.2019 (24.09.2019, 07:54)Daniel. Wrote: which port do you use?I have 6 Dali catwalks. I use internal dali 1 and 2, and then 4 gateways connected to / dev / RS485-1. The equipment works perfectly, the only thing, that when it restarts it loses the configuration of the port / dev / RS485-1. I have another installation with 3 more gateways, and I have no problems. RE: LM5 RS485 check - edgars - 25.09.2019 Hi David, I expect that objects/icons were saved before the microSD got in read-only mode. Have you tried to add some new object/icon now, then Sync DB and then reboot. Are they saved? We have tried, its working fine. So I suspect its microSD which need to be replaced following this procedure. RE: LM5 RS485 check - admin - 26.09.2019 Can you post a screenshot of partitions table? System config > Status > System status > Partitions. You might have a device with separate flash storage for the database so object changes will be saved even when SD card is read-only. |