Home>Posts>I/O Embedded & IoT, I/O HUB>Controlling a BeagleBone Black from a Remote Device using Socket.IO

Controlling a BeagleBone Black from a Remote Device using Socket.IO

By ·Categories: I/O Embedded & IoT, I/O HUB·Published On: July 31st, 2013·0.5 min read·

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

Share

About the Author: Roland Groeneveld

Roland Groeneveld is the President & CEO of Logic Supply. He has been with the company, since, well the beginning. He and Lisa founded Logic Supply in 2003 shortly after VIA introduced the Mini-ITX form factor in 2002.
Follow OnLogic on LinkedIn

9 Comments

  1. MarkusR November 14, 2013 at 7:28 pm

    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.

  2. Andrew December 10, 2013 at 6:20 am

    Thanks for this tutorial.

    Worked for me.

    Andy

  3. Mehmet Tuğrul May 1, 2014 at 11:51 am

    Thanks for this tutorial. I can’t playing this because i don’t understand installing of socket.io. Can you help me

  4. jae May 12, 2014 at 10:06 am

    it’s really great. but i am hard to understand all the steps…..
    so can you upload more detail version?????

  5. Roland Groeneveld May 13, 2014 at 10:42 am

    For more detailed information, please see http://inspire.logicsupply.com/p/connecting-to-smart-phone.html

  6. HARSOCKS January 18, 2016 at 4:51 am

    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 ?

  7. Karl Renner July 1, 2016 at 5:26 pm

    I see the same problem described by HARSOCKS.

  8. Matt March 16, 2017 at 10:36 pm

    Port 8080 is most likely being used, change it to something like 3001 or another free port

  9. Paul February 23, 2018 at 6:45 am

    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#

Leave A Comment

SHARE

Have a project? Let's talk

More Articles

WHITEPAPER

Learn the 5 ways Fanless Computers can help your business

Get the Whitepaper
View All Articles

OnLogic Industrial Computers

Discover OnLogic's multitude of industrial computers that will help you to advance your IoT project

Shop OnLogic

Learn more at OnLogic.com

OnLogic Industrial PCs: Designed to last. Built to order. Delivered in days. Visit our online store at OnLogic.com