31
Jul
Controlling a BeagleBone Black from a Remote Device using Socket.IO
We just posted a tutorial on how to use Socket.IO and BoneScript to control a BeagleBone Black from a remote device. With the example code you’ll be able to control the brightness of LED’s from a mobile device (cell phone, tablet) and use motion to control the LED’s. The code uses Node.js as the web server, Socket.IO for communication between the web page and the BeagleBone Black, and Mobile JQuery for the web page lay-out.
Find the tutorial and code on: https://github.com/lgxlogic/BoneScript-SocketIO
Don’t forget to follow Logic Supply on Google+ for more information and tutorials
Curious. I had to uncheck “Run in debug mode” in cloud9 to get it to actually run. Buggered the heck out of me until I figured that out. Was having problems with bunch of other examples as well.
Thanks for this tutorial.
Worked for me.
Andy
Thanks for this tutorial. I can’t playing this because i don’t understand installing of socket.io. Can you help me
it’s really great. but i am hard to understand all the steps…..
so can you upload more detail version?????
For more detailed information, please see http://inspire.logicsupply.com/p/connecting-to-smart-phone.html
I couldn’t make this worked.
MY Cloud9 IDE just throw this out :
Server running on: http://192.168.169.2:8080
/usr/local/lib/node_modules/bonescript/src/my.js:228
callback(resp);
^
TypeError: undefined is not a function
at onUnloadSlot (/usr/local/lib/node_modules/bonescript/src/my.js:228:13)
at unloadSlot (/usr/local/lib/node_modules/bonescript/src/my.js:218:13)
at onWriteSlots (/usr/local/lib/node_modules/bonescript/src/my.js:193:43)
at onReadSlots (/usr/local/lib/node_modules/bonescript/src/my.js:182:13)
at onFindCapeMgr (/usr/local/lib/node_modules/bonescript/src/my.js:157:9)
at Object.exports.load_dt (/usr/local/lib/node_modules/bonescript/src/my.js:140:5)
at onDTBOExists (/usr/local/lib/node_modules/bonescript/src/my.js:315:26)
at onDTBOExistsTest (/usr/local/lib/node_modules/bonescript/src/my.js:262:13)
at Object.exports.create_dt (/usr/local/lib/node_modules/bonescript/src/my.js:257:9)
at Object.exports.setPinMode (/usr/local/lib/node_modules/bonescript/src/hw_capemgr.js:102:12)
Is there anyone with the same problem ?
I see the same problem described by HARSOCKS.
Port 8080 is most likely being used, change it to something like 3001 or another free port
Hi, I also have the same problem reported, shown below. I tried changing ports but it doesn’t help. Can anyone help with this? Thanks
root@beaglebone:/var/lib/cloud9# node HtmlLedDemo.js
Option log level is not valid. Please refer to the README.
Option browser client minification is not valid. Please refer to the README.
Option browser client etag is not valid. Please refer to the README.
Server running on: http://192.168.0.87:8080
/var/lib/cloud9/node_modules/bonescript/src/my.js:245
callback(resp);
^
TypeError: callback is not a function
at onUnloadSlot (/var/lib/cloud9/node_modules/bonescript/src/my.js:245:13)
at unloadSlot (/var/lib/cloud9/node_modules/bonescript/src/my.js:235:13)
at onWriteSlots (/var/lib/cloud9/node_modules/bonescript/src/my.js:210:43)
at onReadSlots (/var/lib/cloud9/node_modules/bonescript/src/my.js:199:13)
at onFindCapeMgr (/var/lib/cloud9/node_modules/bonescript/src/my.js:174:9)
at Object.exports.load_dt (/var/lib/cloud9/node_modules/bonescript/src/my.js:157:5)
at onDTBOExists (/var/lib/cloud9/node_modules/bonescript/src/my.js:332:26)
at onDTBOExistsTest (/var/lib/cloud9/node_modules/bonescript/src/my.js:279:13)
at Object.exports.create_dt (/var/lib/cloud9/node_modules/bonescript/src/my.js:274:9)
at Object.exports.setPinMode (/var/lib/cloud9/node_modules/bonescript/src/hw_capemgr.js:102:12)
root@beaglebone:/var/lib/cloud9#