non-interactive BBB getting started web page

[I have not seen this discussed yet. I am starting to think it may be just me.]

[This is from memory as I am not near the boards any more.]

I have BBB A5 w/ production image (just got it yesterday)

I have Ubuntu 12.04 64 bit host

I have Firefox 18.0.2 (stock Ubuntu browser)

I boot the BBB w/ only a USB cable.
I get the storage, network, and serial devices. (cool)

serial port works*

I verified that I have a new ethN and it is 192.168.7.1 (cool) and I can ping 192.168.7.2.

(I also verified that I can ssh into the board.)

I browse to the start.htm file on BBB mount.

I click the link for http://192.168.7.2/

The page gets served fine.

It auto checkmarks the first two item in the todo list. (have to look into how this is done)

The top of the page say something like: “do you know that this page can be interactive?” and gives me a place to put an IP address.

Looking at the screen shots I believe this is suppose to show something like “Verified connection, your bone is SN XYZ and at IP address 192.168.7.2”

None of the scripts really do anything even after I put in the IP address. Cloud9 IDE starts and lets me edit files but I can’t run anything w/ that either.

I suspect some low level thing like Socket.IO is not working on 64 bit Linux.

(I do have ia32-libs installed)

I was able to run Cloud9 scripts on the stock BB A6A a few days ago but I can’t swear the setup was the same. It was still Ubuntu 12.04 & Firefox 18 and I think that machine is 64 bit.

Any commiserators? Any suggestions?

  • serial port verification
    (The serial port shows up as /dev/ttyACM0 on the host and something like /dev/ttyGS0 on the BBB side. I verified that it works using echo & cat from the BBB side while running screen on the host side. It would be nice if BBB boot would start a getty on the /dev/ttyGS0 device.)

Here is the complete web developer console log for host firefox. The last line looks like a problem.

[22:14:31.858] Expected declaration but found ‘url()’. Skipped to next declaration. @ http://192.168.7.2/static/common.css:8
[22:14:31.858] Unknown property ‘zoom’. Declaration dropped. @ http://192.168.7.2/static/common.css:113
[22:14:31.858] Error in parsing value for ‘cursor’. Declaration dropped. @ http://192.168.7.2/static/common.css:149
[22:14:31.883] Error in parsing value for ‘font’. Declaration dropped. @ http://192.168.7.2/static/beagle.css:5
[22:14:31.883] Unknown property ‘-moz-border-radius’. Declaration dropped. @ http://192.168.7.2/static/beagle.css:74
[22:14:31.883] Error in parsing value for ‘background’. Declaration dropped. @ http://192.168.7.2/static/beagle.css:79
[22:14:31.883] Unknown property ‘-moz-box-shadow’. Declaration dropped. @ http://192.168.7.2/static/beagle.css:143
[22:14:31.883] Expected declaration but found ‘*’. Skipped to next declaration. @ http://192.168.7.2/static/beagle.css:181
[22:14:31.883] Expected ‘:’ but found ‘;’. Declaration dropped. @ http://192.168.7.2/static/beagle.css:221
[22:14:31.883] Expected declaration but found ‘#525252’. Skipped to next declaration. @ http://192.168.7.2/static/beagle.css:221
[22:14:31.884] Unknown property ‘zoom’. Declaration dropped. @ http://192.168.7.2/static/beagle.css:304
[22:14:31.884] Error in parsing value for ‘filter’. Declaration dropped. @ http://192.168.7.2/static/beagle.css:318
[22:14:31.897] Unknown property ‘align’. Declaration dropped. @ http://192.168.7.2/:26
[22:14:31.986] Unknown property ‘zoom’. Declaration dropped. @ http://192.168.7.2/static/jquery-ui.css:13
[22:14:31.986] Error in parsing value for ‘filter’. Declaration dropped. @ http://192.168.7.2/static/jquery-ui.css:14
[22:14:31.987] Unknown property ‘-moz-border-radius-topleft’. Declaration dropped. @ http://192.168.7.2/static/jquery-ui.css:459
[22:14:31.987] Unknown property ‘-moz-border-radius-topright’. Declaration dropped. @ http://192.168.7.2/static/jquery-ui.css:460
[22:14:31.987] Unknown property ‘-moz-border-radius-bottomleft’. Declaration dropped. @ http://192.168.7.2/static/jquery-ui.css:461
[22:14:31.987] Unknown property ‘-moz-border-radius-bottomright’. Declaration dropped. @ http://192.168.7.2/static/jquery-ui.css:462
[22:14:31.987] Unknown property ‘-moz-border-radius’. Declaration dropped. @ http://192.168.7.2/static/jquery-ui.css:466
[22:14:31.987] Error in parsing value for ‘filter’. Declaration dropped. @ http://192.168.7.2/static/jquery.terminal.css:6
[22:14:31.987] Expected media feature name but found ‘-webkit-min-device-pixel-ratio’. @ http://192.168.7.2/static/jquery.terminal.css:34
[22:14:31.987] Unknown pseudo-class or pseudo-element ‘-webkit-selection’. Ruleset ignored due to bad selector. @ http://192.168.7.2/static/jquery.terminal.css:52
[22:14:31.987] Unknown pseudo-class or pseudo-element ‘selection’. Ruleset ignored due to bad selector. @ http://192.168.7.2/static/jquery.terminal.css:57
[22:14:32.489] Unknown property ‘box-sizing’. Declaration dropped. @ http://192.168.7.2/:15
[22:14:32.489] Unknown property ‘appearance’. Declaration dropped. @ http://192.168.7.2/:100
[22:14:32.490] Unknown property ‘-moz-border-radius’. Declaration dropped. @ http://192.168.7.2/:216
[22:14:32.490] Unknown property ‘-moz-box-shadow’. Declaration dropped. @ http://192.168.7.2/:289

[22:14:32.556] ReferenceError: testForConnection is not defined @ http://192.168.7.2/static/beagle-ui.js:68

Jason,

I found a fix for this. I don’t think it has anything to do with Linux 64bit, I think it is Firefox 18’s JavaScript vs whatever your testing with.

In /usr/share/bone101/static/beagle-ui.js I moved the definition of testForConnection() to the top of the $(docuement).ready function; before its first use.

With this change I now get the green box w/ SN and IP address and the “turn all LEDS on” example script runs.

I have not looked at cloud9 again.

All,

For others that want to try this, I will attach the new beagle-ui.js that I used. However it may not make it through some firewall.

Bill

beagle-ui.js (4.6 KB)

Jason,

I found a fix for this. I don't think it has anything to do with Linux
64bit, I think it is Firefox 18's JavaScript vs whatever your testing with.

In /usr/share/bone101/static/beagle-ui.js I moved the definition of
testForConnection() to the top of the $(docuement).ready function; before
its first use.
With this change I now get the green box w/ SN and IP address and the "turn
all LEDS on" example script runs.

Yeah, I found this one already---sorry for not replying faster or
sharing proactively. What still confuses me is that all JavaScript
references I can find tell me the code is OK. This seems to be a bug
in Firefox. Anyway, doesn't matter where the blame is when you just
want it to work.

I've also found that when looking at the Bonescript pages from the web
that the host needs to be set in the io.connect for Socket.io. I'm
working on updating the website to define that without needing it to
come from the board so that you don't need to update the software on
your board.

Hi every one!

I’m using Windows 7 with both Firefox (22.0) and Chrome (28.0.1500.72)
I got the same problem on both two browsers.
I found your solution given here and try… unfortunately, it’s unable to run for me!
Then, I have some test with node.js and socket.io installed on my Windows with browsers.
I found that node.js and socket.io run well with ‘old’ version of browsers, or the browser based on web-kit (inside ‘beaglebone-getting-started.zip’ that can be downloaded on BBB getting started page)
That means both Chrome and Firefox had made some changes up to these current release and socket.io with node.js program must be changed accordingly in BBB.
With some recommended notes from socket.io, I have made some changes to ‘/usr/lib/node_modules/bonescript/server.js’ as following:

  • In ‘function addSocketListeners(server)’
  • Righ under ‘var io = socketio.listen(server);’
  • Insert:
    ‘io.configure(function () {
    io.set(‘transports’, [‘xhr-polling’]);
    });’
  • Then reboot the BBB and see result!
    It now works for both FireFox and Chrome with current release!

Hieu, Nguyen.

Hi every one,

For my prev. post, I have attached that file here for your reference.

Hieu, Nguyen.

server.js (6.5 KB)