February-21st-2023, 12:51 PM
I tried it myself with Node-RED. Instead of installing Modbus node I just was installing the standard node-red serial port node first to make some basic tests.
I configured the /dev/ttymxc0 also manually and after I deployed the Node-RED flow my Node-RED container was immediately crashing.
After the crash I went back to my main Linux where I have started the container from and used the "docker logs <container ID>" command with the container ID of the crashed container.
It said "segmentation fault". So the serial port node causes to crash the Node-RED.
Since Node-RED is not Hilscher software, I cannot say why it crashes.
I searched on the internet for such kind of problem and I found others having such an issue too in the past under different conditions
https://github.com/serialport/node-seria...ssues/2438
https://discourse.nodered.org/t/segment-...nwrt/63842
https://stackoverflow.com/questions/5412...tion-fault
So it seems you are not alone with this problem. It seems Node-RED and the implementation of serial port function is buggy.
In the end to be honest I can't tell you why the serial port function crashes. We have proved that unter normal Linux conditions using "echo 'hello' > ..." works, so the phyiscal hardware is properly working. It is the used software that does not work.
I don't know how to help you now with 3rd party software now.
I configured the /dev/ttymxc0 also manually and after I deployed the Node-RED flow my Node-RED container was immediately crashing.
After the crash I went back to my main Linux where I have started the container from and used the "docker logs <container ID>" command with the container ID of the crashed container.
It said "segmentation fault". So the serial port node causes to crash the Node-RED.
Since Node-RED is not Hilscher software, I cannot say why it crashes.
I searched on the internet for such kind of problem and I found others having such an issue too in the past under different conditions
https://github.com/serialport/node-seria...ssues/2438
https://discourse.nodered.org/t/segment-...nwrt/63842
https://stackoverflow.com/questions/5412...tion-fault
So it seems you are not alone with this problem. It seems Node-RED and the implementation of serial port function is buggy.
In the end to be honest I can't tell you why the serial port function crashes. We have proved that unter normal Linux conditions using "echo 'hello' > ..." works, so the phyiscal hardware is properly working. It is the used software that does not work.
I don't know how to help you now with 3rd party software now.
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)