Upgrading breaks GPIO switching - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: Node Red (https://forum.openmarine.net/forumdisplay.php?fid=15) +--- Thread: Upgrading breaks GPIO switching (/showthread.php?tid=3219) |
Upgrading breaks GPIO switching - jamos.tan@gmail.com - 2021-01-20 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: 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! RE: Upgrading breaks GPIO switching - jamos.tan@gmail.com - 2021-01-20 I have just downloaded the newest openplotter headless image, and can confirm that in this image the same error appears. I do have to admit, I installed Pypilot. And Node-Red ofcourse. But, just to confirm with a "clean" (sort of) install the same happens. RE: Upgrading breaks GPIO switching - jamos.tan@gmail.com - 2021-01-29 I honestly think I have read all the forums out there, and am starting to think of alternatives to node-red. I've found something that seems interesting here: https://github.com/fx89/piinterface I do prefer node-red over anything, because I don't want to run to many things on the pi. But, I don't know of a way to fix node-red. RE: Upgrading breaks GPIO switching - PaddyB - 2021-01-29 (2021-01-29, 12:58 PM)jamos.tan@gmail.com Wrote: I honestly think I have read all the forums out there, and am starting to think of alternatives to node-red. Did you try asking on the slack signalk/node red channel or the node-red channel? More likely to get a response there, not really an openplotter issue. RE: Upgrading breaks GPIO switching - jamos.tan@gmail.com - 2021-01-31 (2021-01-29, 07:48 PM)PaddyB Wrote:(2021-01-29, 12:58 PM)jamos.tan@gmail.com Wrote: I honestly think I have read all the forums out there, and am starting to think of alternatives to node-red. Hi PaddyB, yes, I did. There was one response, but that was it. Still waiting for others to join but I think the chance is low as there have been more messages so now it is a bit hidden. Do you have any idea maybe? RE: Upgrading breaks GPIO switching - PaddyB - 2021-01-31 (2021-01-31, 04:45 PM)jamos.tan@gmail.com Wrote: Hi PaddyB, yes, I did. There was one response, but that was it. Still waiting for others to join but I think the chance is low as there have been more messages so now it is a bit hidden. Do you have any idea maybe? Haven't tried it so can't help I'm afraid, there's a node-red slack group as well. RE: Upgrading breaks GPIO switching - jamos.tan@gmail.com - 2021-02-01 Ok, have fixed it for anyone wondering. I am using a compute module and I had to change the GPIO mode to BCM mode in the python script for the mode. Then, instead of selecting the pins in the GUI of node-red, I had to manually fill in the PIN numbers. Be carefull though, if possible test the output first by running gpio allreadall In my case, this fixed it. |