-
I'm trying to connect to Puck using latest Chrome and Espruino App on Ubuntu 16.10. The laptop has no problem seeing the Puck and offers it as a pair-able device both in Ubuntu itself and in the pairing pop-up in the Web IDE.
The problem is that it never actually connects, it just sits there saying "connecting". I'm not seeing anything useful in dmesg. Any other suggestions for where to look for logs etc? Bluetooth dongle seems to be using a Broadcom BCM20702A0 chip and Bluez is at 5.41
(Note I also tried installing the standalone Web IDE on Ubuntu but got an error ../cpp/winnus.cpp:10:21: fatal error: windows.h no such file or directory). This is with Node 6.10.0
Thanks!
-
I had same random characters on console as you when using the released v1.86 version. I got the latest build running ok with the following:
c:\python27\python ..\esptool.py --port COM15 --baud 230400 write_flash --flash_freq 40m --flash_mode dio --flash_size 32m 0x0000 "boot_v1.5.bin" 0x1000 espruino_esp8266_user1.bin 0x37E000 blank.bin
-
-
It now builds again but still no serial ports.
I also tried
sudo electron-rebuild --version 0.36.11
giving
Couldn't find electron-prebuilt and no --node-module-version parameter set, always rebuilding > nslog@3.0.0 install /usr/local/lib/node_modules/electron-rebuild/node_modules/nslog > node-gyp rebuild gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, unlink 'build/Makefile' gyp ERR! stack at Error (native) gyp ERR! System Linux 4.1.19-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/electron-rebuild/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/electron-rebuild/node_modules/nslog gyp ERR! node -v v4.4.0 gyp ERR! node-gyp -v v3.3.0 gyp ERR! not ok npm ERR! Linux 4.1.19-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/electron-rebuild/node_modules/npm/bin/npm-cli.js" "rebuild" "--runtime=electron" "--target=0.36.11" "--arch=arm" npm ERR! node v4.4.0 npm ERR! npm v3.8.1 npm ERR! code ELIFECYCLE npm ERR! nslog@3.0.0 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nslog@3.0.0 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the nslog package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs nslog npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls nslog npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /usr/local/lib/node_modules/npm-debug.log Process exited with code: 1 Error: Process exited with code: 1 at ChildProcess.<anonymous> (/usr/local/lib/node_modules/electron-rebuild/lib/spawn.js:55:26) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:827:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
I need to try on a non-RPi box to see if it's Pi or ARM specific.
-
No success with starting back with completely clean slate (all node_modules and .node-gyp directories deleted) and just doing npm install espruino-web-ide. Now it won't even install.
pi@raspberrypi:~ $ npm install espruino-web-ide npm WARN optional dep failed, continuing xpc-connection@0.1.4 > nslog@3.0.0 install /home/pi/node_modules/espruino-web-ide/node_modules/electron-rebuild/node_modules/nslog > node-gyp rebuild make: Entering directory '/home/pi/node_modules/espruino-web-ide/node_modules/electron-rebuild/node_modules/nslog/build' CXX(target) Release/obj.target/nslog/src/main.o CXX(target) Release/obj.target/nslog/src/nslog_linux.o SOLINK_MODULE(target) Release/obj.target/nslog.node COPY Release/nslog.node make: Leaving directory '/home/pi/node_modules/espruino-web-ide/node_modules/electron-rebuild/node_modules/nslog/build' - > electron-prebuilt@0.36.11 postinstall /home/pi/node_modules/espruino-web-ide/node_modules/electron-prebuilt > node install.js | > usb@1.1.1 install /home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb > node-pre-gyp install --fallback-to-build make: Entering directory '/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build' CC(target) Release/obj.target/libusb/libusb/libusb/core.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o AR(target) Release/obj.target/usb.a COPY Release/usb.a CXX(target) Release/obj.target/usb_bindings/src/node_usb.o CXX(target) Release/obj.target/usb_bindings/src/device.o CXX(target) Release/obj.target/usb_bindings/src/transfer.o SOLINK_MODULE(target) Release/obj.target/usb_bindings.node COPY Release/usb_bindings.node COPY /home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/build' > serialport@2.0.6 install /home/pi/node_modules/espruino-web-ide/node_modules/serialport > node-pre-gyp install --fallback-to-build make: Entering directory '/home/pi/node_modules/espruino-web-ide/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o CXX(target) Release/obj.target/serialport/src/serialport_unix.o CXX(target) Release/obj.target/serialport/src/serialport_poller.o SOLINK_MODULE(target) Release/obj.target/serialport.node COPY Release/serialport.node COPY /home/pi/node_modules/espruino-web-ide/node_modules/serialport/build/Release/node-v46-linux-arm/serialport.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/home/pi/node_modules/espruino-web-ide/node_modules/serialport/build' > bluetooth-hci-socket@0.4.2 install /home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket > node-gyp rebuild make: Entering directory '/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/build' CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o SOLINK_MODULE(target) Release/obj.target/binding.node COPY Release/binding.node make: Leaving directory '/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/build' > espruino-web-ide@0.60.4 install /home/pi/node_modules/espruino-web-ide > electron-rebuild > bluetooth-hci-socket@0.4.2 install /home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket > node-gyp rebuild make: Entering directory '/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/build' CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o SOLINK_MODULE(target) Release/obj.target/binding.node COPY Release/binding.node make: Leaving directory '/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/build' > usb@1.1.1 install /home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb > node-pre-gyp install --fallback-to-build Unknown Runtime: 'electron' node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: Unknown Runtime: 'electron' node-pre-gyp ERR! stack at get_runtime_abi (/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-gyp/lib/util/versioning.js:60:19) node-pre-gyp ERR! stack at Object.module.exports.evaluate (/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-gyp/lib/util/versioning.js:249:19) node-pre-gyp ERR! stack at install (/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-gyp/lib/install.js:138:31) node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-gyp/lib/node-pre-gyp.js:48:37) node-pre-gyp ERR! stack at run (/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30) node-pre-gyp ERR! stack at Object.<anonymous> (/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1) node-pre-gyp ERR! stack at Module._compile (module.js:409:26) node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:416:10) node-pre-gyp ERR! stack at Module.load (module.js:343:32) node-pre-gyp ERR! stack at Function.Module._load (module.js:300:12) node-pre-gyp ERR! System Linux 4.1.18-v7+ node-pre-gyp ERR! command "/usr/local/bin/node" "/home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/pi/node_modules/espruino-web-ide/node_modules/bleat/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb node-pre-gyp ERR! node -v v4.4.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.4 node-pre-gyp ERR! not ok npm ERR! Linux 4.1.18-v7+ npm ERR! argv "/usr/local/bin/node" "/home/pi/node_modules/espruino-web-ide/node_modules/electron-rebuild/node_modules/npm/bin/npm-cli.js" "rebuild" "--runtime=electron" "--target=0.36.11" "--arch=arm" npm ERR! node v4.4.0 npm ERR! npm v3.8.1 npm ERR! code ELIFECYCLE npm ERR! usb@1.1.1 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the usb@1.1.1 install script 'node-pre-gyp install --fallback-to-build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the usb package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs usb npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls usb npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/node_modules/espruino-web-ide/node_modules/npm-debug.log Process exited with code: 1 Error: Process exited with code: 1 at ChildProcess.<anonymous> (/home/pi/node_modules/espruino-web-ide/node_modules/electron-rebuild/lib/spawn.js:55:26) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:827:16) at Socket.<anonymous> (internal/child_process.js:319:11) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at Pipe._onclose (net.js:475:12) npm ERR! Linux 4.1.18-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "espruino-web-ide" npm ERR! node v4.4.0 npm ERR! npm v2.14.20 npm ERR! code ELIFECYCLE npm ERR! espruino-web-ide@0.60.4 install: `electron-rebuild` npm ERR! Exit status 255 npm ERR! npm ERR! Failed at the espruino-web-ide@0.60.4 install script 'electron-rebuild'. npm ERR! This is most likely a problem with the espruino-web-ide package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! electron-rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs espruino-web-ide npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls espruino-web-ide npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/npm-debug.log
-
-
-
This is great to see! Nearly works for me with Pico plugged into Raspberry Pi 3
Needed the following to install it:
sudo apt-get install libudev-dev sudo npm install --unsafe-perms -g espruino-web-ide
But when I click Connect, I just get "Searching" in the ports popup. Tried with and without sudo. Also tried passing /dev/ttyACM0 as a parameter. No error printed out in terminal or inside the IDE's log.
Any ideas?
-
-
-
Another minimal one I spotted this morning is http://dietpi.com/ - UK-based developer. Needs a 1GB card but compares very favourably to standard distro: https://docs.google.com/spreadsheets/d/1mDHGZC-H6tU6_O8kuLTG8d4A8Nt7lV1Q7MXTR_6qw30/edit#gid=0
-
-
-
No joy with older build and mouse code. No HID device appears. Works ok on OSX.
A full drive uninstall/delete gives the same HID error as the keyboard code.
Shows "STM32 Virtual COM Port" in the installation step when plugging in again but you don't actually get a COM port, you have to reinstall the driver fully to get that.
-
-
I've managed to make some progress on Windows. I had to uninstall/delete the ST Driver from inside Device Manager. Once I did that and unplugged/plugged the Pico, a USB HID device appeared and installed. However it does not work (This device cannot start. (Code 10) {Operation Failed} The requested operation was unsuccessful.)
These are the logs from Windows:
Driver Service Added (usbser) Driver Management has concluded the process to add Service usbser for Device Instance ID USB\VID_0483&PID_5740\00000000001A with the following status: 0. Device installed (stmcdc.inf) Driver Management concluded the process to install driver stmcdc.inf_amd64_9422b577b75e16b8\stmcdc.inf for Device Instance ID USB\VID_0483&PID_5740\00000000001A with the following status: 0x0. Device deleted Device USB\VID_0483&PID_5740\00000000001A was deleted. Class Guid: {4D36E978-E325-11CE-BFC1-08002BE10318} Device Configured (input.inf) Device USB\VID_0483&PID_5740\00000000001A was configured. Driver Name: input.inf Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} Driver Date: 06/21/2006 Driver Version: 6.3.9600.17041 Driver Provider: Microsoft Driver Section: HID_Inst.NT Driver Rank: 0xFF3101 Matching Device Id: USB\Class_03&SubClass_01 Outranked Drivers: input.inf:USB\Class_03:00FF3202 Device Updated: false Device not started (Hid Usb) Device USB\VID_0483&PID_5740\00000000001A had a problem starting. Driver Name: input.inf Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA} Service: HidUsb Lower Filters: Upper Filters: Problem: 0xA Status: 0x0
-
-
-
-
-
-
Thanks Gordon.
No behaviour change on that latest firmware.
I'll see if I have any ST drivers installed and will uninstall.
On MBP, it works fine the first time but repeats last character the second time and I have to pull the Pico to stop it.
Code here: https://gist.github.com/conoro/09c3fdf97a68d073f80f
-
@Gordon I'm having mixed success with the HID code here, using your simple Keyboard Hello World with the firmware from 15th July.
It doesn't work at all on Windows 8.1 64-bit. I never see any characters appear. Tried a variety of hubs and directly plugged in.
On OSX, it acted very strangely with context menus popping up randomly, until I removed the setModifiers calls. Now it works every few button presses but also sends the last character repeatedly on many attempts.
However I'm thrilled to get some code running which turns the Pico into a OTP Fob and successfully generates the same codes as Google Authenticator for one of my logins. If the USB HID code worked every time, then the Pico would be as good as a YubiKey :-)
-
Doh, I missed the --experimental bit! Working perfectly now.
I had to do some more fiddling with installing nw etc but the standalone one now runs too. However it can't see any ports. I'm playing with those setcap commands now.
Thanks for the help.