This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgrading breaks GPIO switching
#1
Hi,

I have just upgraded two things, and I don't know which one cause the issue. Here's what I did:

1 - upgrading Pypilot to the latest 2.1.1 beta
2 - upgraded to newest SignalK version 1.37.5 
3 - Upgraded to newest Node-Red signalK webapp 2.10.0

( 2 & 3 seems to remove the need of authenticating with signalk, in order to use node-red)

The trouble I am having now is:

- the gpio pins in Node-red went to the "stopped" status.

I suspect it may have to do with some of the Python dependencies that where upgraded during Pypilot, and that the Node ( node-red-node-pi-gpio ) is not ready for this change. Or, that the authentication change from SignalK upgrade together with the node-red upgrade caused it.

I don't know how to revert things or troubleshoot, but I read these forums tried the suggestions to no success:

Node-red-node-pi-gpio output stopped - General - Node-RED Forum
Rpi-gpio input node "stopped" - General - Node-RED Forum

Screenshot of error:

[Image: issue.png]

Debug:

nrgpio python command not running

Flow:

Code:
[{"id":"bc3b26f0.b8e538","type":"tab","label":"Digital switching","disabled":false,"info":""},{"id":"881428ed.66fe88","type":"rpi-gpio out","z":"bc3b26f0.b8e538","name":"","pin":"11","set":true,"level":"0","freq":"","out":"out","x":507.00000762939453,"y":607.9999809265137,"wires":[]},{"id":"f2e0c618.e273a8","type":"ui_switch","z":"bc3b26f0.b8e538","name":"","label":"Bilgepump","tooltip":"","group":"128c16df.aca7c9","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":111.00001525878906,"y":605.999981880188,"wires":[["dc85b9c0.6224e8"]]},{"id":"d84875a5.c0eac8","type":"rpi-gpio out","z":"bc3b26f0.b8e538","name":"","pin":"13","set":true,"level":"0","freq":"","out":"out","x":506.00000762939453,"y":712.9999828338623,"wires":[]},{"id":"ebcdeed7.ef20f","type":"ui_switch","z":"bc3b26f0.b8e538","name":"","label":"Navigation lights","tooltip":"","group":"128c16df.aca7c9","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":120.00000381469727,"y":711.9999828338623,"wires":[["44d8134.d8cbcec"]]},{"id":"64ef7315.b4520c","type":"rpi-gpio out","z":"bc3b26f0.b8e538","name":"","pin":"15","set":true,"level":"0","freq":"","out":"out","x":508.00000762939453,"y":818.9999828338623,"wires":[]},{"id":"40435efa.df70f","type":"ui_switch","z":"bc3b26f0.b8e538","name":"","label":"Anchor light","tooltip":"","group":"128c16df.aca7c9","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":112.00000381469727,"y":817.9999828338623,"wires":[["a3dbd1e7.22bd8"]]},{"id":"555cc884.85ff18","type":"rpi-gpio out","z":"bc3b26f0.b8e538","name":"","pin":"12","set":true,"level":"0","freq":"","out":"out","x":511.00000762939453,"y":912.9999828338623,"wires":[]},{"id":"951e8cb8.3a2fb","type":"ui_switch","z":"bc3b26f0.b8e538","name":"","label":"Ventilation","tooltip":"","group":"128c16df.aca7c9","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"1","onvalueType":"num","onicon":"","oncolor":"","offvalue":"0","offvalueType":"num","officon":"","offcolor":"","x":115.00000381469727,"y":911.9999828338623,"wires":[["ffbff4b0.542f08"]]},{"id":"c31a67c4.8447e8","type":"signalk-send-pathvalue","z":"bc3b26f0.b8e538","name":"","source":"","x":1164,"y":464.9999694824219,"wires":[]},{"id":"dc85b9c0.6224e8","type":"function","z":"bc3b26f0.b8e538","name":"state","func":"msg.topic = \"electrical.digital.switch.bilgepump\";\nflow.set('switch', msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":257.00003814697266,"y":608.999981880188,"wires":[["881428ed.66fe88","c31a67c4.8447e8"]]},{"id":"44d8134.d8cbcec","type":"function","z":"bc3b26f0.b8e538","name":"state","func":"msg.topic = \"electrical.digital.switch.navlights\";\nflow.set('switch', msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":273.00000381469727,"y":711.9999761581421,"wires":[["d84875a5.c0eac8","c31a67c4.8447e8"]]},{"id":"a3dbd1e7.22bd8","type":"function","z":"bc3b26f0.b8e538","name":"state","func":"msg.topic = \"electrical.digital.switch.anchorlight\";\nflow.set('switch', msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":252,"y":817.9999761581421,"wires":[["64ef7315.b4520c","c31a67c4.8447e8"]]},{"id":"ffbff4b0.542f08","type":"function","z":"bc3b26f0.b8e538","name":"state","func":"msg.topic = \"electrical.digital.switch.ventilation\";\nflow.set('switch', msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":251,"y":909.9999761581421,"wires":[["555cc884.85ff18","c31a67c4.8447e8"]]},{"id":"128c16df.aca7c9","type":"ui_group","name":"Digital switching","tab":"f561b8b4.68b0e8","order":5,"disp":true,"width":"6","collapse":false},{"id":"f561b8b4.68b0e8","type":"ui_tab","name":"AyeAye Systems Dashboard","icon":"dashboard","disabled":false,"hidden":false}]

Hope someone can help!
Reply


Messages In This Thread
Upgrading breaks GPIO switching - by jamos.tan@gmail.com - 2021-01-20, 12:46 PM
RE: Upgrading breaks GPIO switching - by PaddyB - 2021-01-29, 07:48 PM
RE: Upgrading breaks GPIO switching - by PaddyB - 2021-01-31, 06:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)