monteslu / node-red-contrib-gpio

A set of node-red nodes for connecting to johnny-five IO Plugins
MIT License
41 stars 31 forks source link

Restart failure #18

Open scargill opened 8 years ago

scargill commented 8 years ago

Hi there

I've been investigating a failure in the ARDUINO node - talking to DAVE at the Node-Red forums. We have solved that issue - and I note it is present in the contrib-GPIO node also.

The issue is - take the GPIO node - set to FIRMATA - assign a serial port (I used a USB serial port). Set a timer to send 1 and 0 every second.

Start the GPIO node. It will work perfectly. Now make a change to the port number. If you then reboot Node-Red - OR do a FULL DEPLOY - it will be fine. However, it you do as many of us do - DEPLOY only changed nodes - your GPIO node will reliably fail. It will sit there CONNECTING.

When Dave at IBM identified this - he managed to fix it this morning in the ARDUINO node.

Of course contrib-GPIO is more powerful but has exactly the same bug. Can I beg you to take a look. I think the issue is it is not disconnecting and reconnecting when you do a partial deploy.

Here is the conversation as regards the Arduino node https://groups.google.com/forum/#!topic/node-red/TuRgwBIbFOM

And here is my blog entry on the subject - I hope this helps. http://tech.scargill.net/raspberry-pi-node-red-serial-woes/

monteslu commented 8 years ago

hey @scargill sorry I just now noticed this issue. Will take a look ASAP. Thanks!

scargill commented 8 years ago

Oh excellent – please let me know how that goes and I’ll update my blog accordingly…..

From: Luis Montes [mailto:notifications@github.com] Sent: 10 August 2016 20:19 To: monteslu/node-red-contrib-gpio node-red-contrib-gpio@noreply.github.com Cc: Peter Scargill pete@scargill.org; Mention mention@noreply.github.com Subject: Re: [monteslu/node-red-contrib-gpio] Restart failure (#18)

hey @scargill https://github.com/scargill sorry I just now noticed this issue. Will take a look ASAP. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/monteslu/node-red-contrib-gpio/issues/18#issuecomment-238956088 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABzUg9xMKcYrPUcvs6mY5OJGey2pSCUyks5qehYogaJpZM4JNfsj .

alex88 commented 3 years ago

Hi everyone, is there any update on this? I'm doing a simple "deploy" and once every while I get the nodes in "connecting" and they stay there until I do a full restart of node-red. Is it still a known issue?

JohnGuan commented 3 years ago

Hi everyone, is there any update on this? I'm doing a simple "deploy" and once every while I get the nodes in "connecting" and they stay there until I do a full restart of node-red. Is it still a known issue?

Me too...