I have several Arduinos connected to a Raspberry PI 2. When I update node-red-node-arduino to the recent version 0.3.1 (which isn't that recent), the Nodes do not connect to the configured Arduinos anymore, once I restart node-red afterwards, as it requests me to do.
It seems to be somewhat working when only 1 Arduino is plugged in, but as soon as there are like 2 and you make a reboot or sometimes just a full deploy, it's not so sure anymore. Sometimes the nodes do connect to one Arduino, not necessarily the right one, but mostly they don't connect to any. If they do however, it seems some nodes connect to, for example Arduino present on /dev/tty/ACM1 . But others don't, although they are still configured to connect to the same one. Another problem is, that it isn't even that apparent.
If an input or output node displays connected, it sometimes doesn't work. If it displays disconnected, it sometimes does work anyway. Surprise. Usually it doesn't. Changing the config nodes may rarely cause some to work, but as soon as you hit deploy, others, which were tested to have worked before, suddenly won't work anymore or may connect to a wrong one.
If you flip a coin you'd have better chances.
It's interesting, that if I start with a blank flow and start adding nodes to it, each safely connects even to different Arduinos. But as the nodes become more and more it all of a sudden starts to go nuts. No clue why. While the configuration seemingly stays the same, it doesn't seem to persist between reboots or even node-red-restart anymore. Sometimes not even between full deploys. That never happens with the old version.
The nodes of the old version (0.0.18) I've used so far, always connected to the right Arduino, depending on which USB-Port they are plugged in on reboot. Also, they always safely connected to the configured pin, and applied a pullup or what have you. And if one is connected, it was always safe to assume, that the rest, configured to connect to the same, are connecting as well, and not just say so. I wonder if others have similar issues, and why the old version works, but was replaced.
When I attempted to update node-red, it seems like the new version of it, doesn't support the old node-red-node-arduino version anymore. The new version of node-red-node-arduino, shows the same behavior with the new node-red version also, so sadly that does not solve the problem. I'm still on v1.0.3 because of that.
If someone smarter than me could help me with it, I would much appreciate it!
I have about 220 Arduino GPIO pins in use for my node-red home automation on 4 Arduino Mega running Firmata connected to an Raspberry PI 2 via USB. This was working reliable for 2 years now, but because of that problem, I can't really update node-red anymore and I'd rather not change the hardware setup just for being update capable, if I can avoid it, you see.
I was desperate to get things working and after a lightning fried my automation, I found node-red and tucked it together quick and dirty and stupid me added stuff while I was on it... It never changed since, cause that crime is a bit of a space problem now.