heimcontrol.js
heimcontrol.js copied to clipboard
duino info found board at undefined
Hi, I installed heimcontrol.js on my Raspberry Pi and everything seems to work fine. But when I tried to control something connected to the arduino it's no working. I activate debug mode for the duino module :
1412881365887 duino info attempting to find Arduino board 1412881366198 duino info found board at undefined 1412881366205 duino info binding serial events 1412881367027 duino info board ready 1412881367033 duino info sending debug mode toggle on to board 1412881367039 duino write 9900001
When I try to turn on a LED with the heimcontrol interface, the debugger show :
1412881117347 duino info digitalWrite to pin 10: 255 1412881117349 duino write 0110255
But the LED isn't turning on. So I tried with the example led.js in node_modules/duino/examples and the LED is flashing. The debug output :
1412880287015 duino info attempting to find Arduino board 1412880287195 duino info set pin 10 mode to out 1412880287204 duino info serial not ready, buffering message: 0010001 1412880287321 duino info found board at undefined 1412880287325 duino info binding serial events 1412880287840 duino info board ready 1412880287852 duino info sending debug mode toggle on to board 1412880287854 duino write 9900001 1412880287864 duino info processing buffered messages 1412880287866 duino info writing buffered message 1412880287869 duino write 0010001 1412880288884 duino info digitalWrite to pin 10: 255 1412880288886 duino write 0110255 1412880289892 duino info digitalWrite to pin 10: 000 1412880289894 duino write 0110000
So the problem seems to be with heimcontrol.js.
Anybody having the same issue?
Thanks, Chaos06
Do you see the line
1412880287869 duino write 0010001
when using Heimcontrol? It means "set pin 10 to output mode" – if that’s not present, that would be the problem. But I’m not sure why HC would fail to set the mode. I’ll have a look at the source…
Yeah the line was there, but the Arduino wasn't doing anything. I just reboot everything (for the tenth time) and now I can control the led with Heimcontrol. I don't understand why now it's working...
Thanks for the quick reply and your work on Heimcontrol, it is really nice!
Sure, thanks for the kind words. I can’t take credit for Heimcontrol, but I try to improve it. :)