HI ,I have a beaglebone black board and I want to control P9_15(GPIO48) outputing high or low levels by Johnny5 . I am a new user of beaglebone black board and Node-RED, there are some problems in configuring gpio out node of Johnny5. My current flow is simple as follows:
[{"id":"f5e61d75.93bc1","type":"tab","label":"Flow1","disabled":false,"info":""},{"id":"5aada02c.0fd5","type":"inject","z":"f5e61d75.93bc1","name":"ON","topic":"x","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":180,"wires":[["4a75b5cb.32488c"]]},{"id":"4a75b5cb.32488c","type":"gpio out","z":"f5e61d75.93bc1","name":"P9-15","state":"OUTPUT","pin":"48","i2cDelay":"0","i2cAddress":"","i2cRegister":"","outputs":0,"board":"cc553fd0.3e82a","x":510,"y":200,"wires":[]},{"id":"6551b710.a6e528","type":"inject","z":"f5e61d75.93bc1","name":"OFF","topic":"x","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":290,"y":240,"wires":[["4a75b5cb.32488c"]]},{"id":"cc553fd0.3e82a","type":"ioplugin","z":"","name":"","username":"","password":"","boardType":"beaglebone-io","serialportName":"","connectionType":"local","mqttServer":"","pubTopic":"","subTopic":"","tcpHost":"","tcpPort":"","sparkId":"","sparkToken":"","beanId":"","impId":"","uuid":"","token":"","sendUuid":"","samplingInterval":"100"}]
I don’t sure how to configure gpio out node of Johnny5. When I edit gpio out node of Johnny5, there have some Properties need to be configured including Pin parameter. At first, I thought the Pin parameter should be filled with the 48 (number format). But after deployment, I clickd on the inject ON node and found an error message in the system as follows: msg : error."TypeError: Cannot read property 'index' of undefined".
So, I changed the Pin parameter to P9_15 and GPIO_48 (symbol format). But after deployment, the following error message appeared when clicking on inject ON node: msg : error "Error: EACCES: permission denied, open '/sys/devices/platform/ocp/ocp:P9_15_pinmux/state'".
I think this problem should not be caused by inject ON node. it should be caused by a GPIO configuration error.but I don’t know how to correct. I hope someone can help me solve this problem, because if I can't control GPIO, then I can't control external devices. Here I express my gratitude in advance to those who can help me.