-
• #2
What kind of device are you trying to connect to?
ttyAMA0 is the Raspberry Pi's built-in UART - it'll be sending characters to a pin on the Pi's pin header.
It's a good sign that is working - if you plugged in a USB device it should appear as
/dev/ttyACM0
and assuming the baud rate is correct it'd work fine -
• #3
Hello Gordon!
I am connecting to the Puck.js via Bluetooth LE.
I can not upload code and not type in the left lane.
:-(My suspicions are falling on the page ... See!
1) The page makes several calls to / serial / ports, but after connecting the last call stays open until timeout.
2) When disconected the server docker crashes with error.
What do you think?
3 Attachments
-
• #4
I think that's fine.
As I said above - ttyAMA0 is the wrong port - it's not surprising nothing happens.
And you're trying to connect to Puck.js? When you first start the IDE server, does it say anything?
Most likely you just hadn't entered the command:
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
before running node.js, so it doesn't have access to the BLE device
-
• #5
When I start the IDE serve say only "listening port xxxx"...
I was run setcap, but nothing! Problem continue!
Dockerfile
FROM hypriot/rpi-node:7.4.0 MAINTAINER Humberto Sales # Install dependencies RUN apt-get -yqq update && \ apt-get -yqq --no-install-recommends install bluetooth bluez libbluetooth-dev libudev-dev # apt-get -yqq autoremove && \ # apt-get -yqq clean && \ # rm -rf /var/lib/apt/lists/* /var/cache/* /tmp/* /var/tmp/* RUN ln /usr/local/bin/node /usr/bin/node RUN sudo npm install -g espruino-web-ide # sudo npm cache clean RUN sudo setcap cap_net_raw+eip $(eval readlink -f `which node`) # Installing serialport manual, because node-gyp crash # https://github.com/espruino/EspruinoWebIDE/issues/161 RUN sudo npm install -g serialport EXPOSE 8080 CMD espruino-server
-
• #6
When I start the IDE serve say only "listening port xxxx"...
Have you connected a Web Browser to
localhost:8080
?
Hello,
I created Docker image with espruino-web-ide, but it has some problems. The left lane shell in Espruino Web Ide not write. I am connected to device, but tutorial step 1 not work (1+2).
Prints attached...
Can you help me?
Sorry for bad english.
Docker repository
Running docker container
*Last version today is 1.0.1.*
2 Attachments