-
• #2
Are you using the Chrome Web Browser on your Tablet, or some other browser? It may have be be Chrome to work.
Also, you don't need to have paired with the Espruino device - in fact it might potentially make it harder for the Web IDE to find the device.
-
• #3
Yes, I am using Chrome.
So, I unpaired, and then tried again and still getting no ports.
-
• #4
No navigator.bluetooth - Web Bluetooth not enabled
doesn't sound promising. Could you go to:https://googlechrome.github.io/samples/web-bluetooth/device-info.html
and see if that works?
Also try
chrome://version
in the address bar and see what version it gives you on the first line. -
• #5
Chrome Version 50.0
Ok, I enabled the following:
Type in chrome browser:
chrome://flags
Then enable:
Experimental Web Platform Features
and
Web BluetoothNow when I click the connect button, the IDE shows the "Select a Port" window.
When I click it, it does not find the puck. I have it in pairing mode, but no pairing.
Oh, and I turned Wi-Fi off (reading some past posts) -
• #6
Here is the console:
No chrome.serial - Chrome Serial disabled
No chrome.sockets - Chrome Socket disabled
serial_audio: Audio Sample rate : 44100
serial_audio: Audio Serial Baud 9600 Bit time 4.59375
WebSocket relay support enabled - running in web browser
WebSocket localhost support (EspruinoHost) enabled - running in web browser
serial_frame: Running in a frame - enabling frame messaging
No chrome.storage API - disabling Offline mode
Initialising SettingsConsole
Initialising Utils
Initialising Config
Initialising Notifications
Initialising Status
Initialising App
Initialising File
Initialising Code
Initialising Serial- Initialising Serial Web Audio
- Initialising Serial Web Bluetooth
- Initialising Serial Websocket Relay
- Initialising Serial Websocket to EspruinoHost
- Initialising Serial window.postMessage
Initialising SerialWebSocketRelay
Initialising SerialWebSocketLocal
Initialising Terminal
Initialising CodeWriter
Initialising Modules
Initialising Env
Initialising Flasher
Initialising EditorBlockly
Initialising EditorJavaScript
Initialising Send
Initialising MenuPortSelector
Initialising MenuSettings
Initialising MenuFlasher
Initialising SettingsAbout
Initialising SettingsFlasher
Initialising BoardJSON
Initialising VersionChecker
Initialising Compiler
Initialising Assembler
Initialising GetGitHub
Initialising Unicode
Initialising Minify
Initialising SaveOnSend
Initialising SetTime
Initialising Tutorial
Initialising Webcam
Initialising FontSize
Initialising UiMode
Initialising URLHandler
Initialising CodeLink
Initialising Project
Initialising Testing
Initialising Notification_Sound
Initialising Tern
Initialising Debugger
Initialising Tour
Initialising HelpLinks
Initialising Arrows
Loaded code from storage.
serviceworker> active
Handling URL "https://www.espruino.com/ide/"
- Initialising Serial Web Audio
-
• #7
Ok, that's your problem - try upgrading Chrome.
Chrome is now on version 68 - version 50 is over 2 years old now and is from before Web Bluetooth support was added.
-
• #8
Ok, I have upgraded to Chrome 68, but when I try and connect it tells me "no compatible devices found"
Here is the console:
No chrome.serial - Chrome Serial disabled
No chrome.sockets - Chrome Socket disabled
serial_audio: Audio Sample rate : 44100
serial_audio: Audio Serial Baud 9600 Bit time 4.59375
WebSocket relay support enabled - running in web browser
WebSocket localhost support (EspruinoHost) enabled - running in web browser
serial_frame: Running in a frame - enabling frame messaging
No chrome.storage API - disabling Offline mode
Initialising SettingsConsole
Initialising Utils
Initialising Config
Initialising Notifications
Initialising Status
Initialising App
Initialising File
Initialising Code
Initialising Serial- Initialising Serial Web Audio
- Initialising Serial Web Bluetooth
- Initialising Serial Websocket Relay
- Initialising Serial Websocket to EspruinoHost
- Initialising Serial window.postMessage
Initialising SerialWebSocketRelay
Initialising SerialWebSocketLocal
Initialising Terminal
Initialising CodeWriter
Initialising Modules
Initialising Env
Initialising Flasher
Initialising EditorBlockly
Initialising EditorJavaScript
Initialising Send
Initialising MenuPortSelector
Initialising MenuSettings
Initialising MenuFlasher
Initialising SettingsAbout
Initialising SettingsFlasher
Initialising BoardJSON
Initialising VersionChecker
Initialising Compiler
Initialising Assembler
Initialising GetGitHub
Initialising Unicode
Initialising Minify
Initialising SaveOnSend
Initialising SetTime
Initialising Tutorial
Initialising Webcam
Initialising FontSize
Initialising UiMode
Initialising URLHandler
Initialising CodeLink
Initialising Project
Initialising Testing
Initialising Notification_Sound
Initialising Tern
Initialising Debugger
Initialising Tour
Initialising HelpLinks
Initialising Arrows
No code in storage.
Handling URL "https://www.espruino.com/ide/"
serviceworker> active
Couldn't connect to wss://localhost:31234 - disabling websockets for this session
ERROR: serial_frame: getPorts timeout, disabling
ERROR: getURL("/serial/ports") error :
/serial/ports doesn't exist - disabling WebSocket support
>>> Connecting...
Set Slow Write = true
BT> ERROR: NotFoundError: User cancelled the requestDevice() chooser.
ERROR: [notify_error] Connection Failed.
>>> Connection Failed.
- Initialising Serial Web Audio
-
• #9
I don't need to use Web Bluetooth, I just want to be able to program the Puck.
I have windows machines and an Android tablet (issues above). Any other ways I can program it with the IDE?
-
• #10
Thr 2018.08.02
Hello @Terrence7
Does this help?
http://www.espruino.com/Puck.js
Firmware Updates
via nRF Toolbox App (iOS & Android)
On your Bluetooth LE capable phone, install the nRF Toolbox app
nRF Toolbox app
https://play.google.com/store/apps/details?id=no.nordicsemi.android.nrftoolbox&hl=en_US
Right off Nordic site:
https://www.nordicsemi.com/eng/Products/Nordic-mobile-Apps/nRF-Toolbox-AppSource code available to download for iOS , Android 4.3 or later and Windows Phone here.
I've struggled with one Puck not connecting to do the firmware update, I have and without the availability of a smart phone, I believe I'm out of luck. As there aren't wires, need to communicate via Bluetooth and the nRF Toolbox app in order to perform the update. -
• #11
"no compatible devices found"
Could you get a screenshot of the error? Could the Puck still be paired to either the Android or a Windows device? It can only be connected to one computer at once, so if it's connected to something already it won't show up to other devices for connecting.
Any other ways I can program it with the IDE?
The Native Web IDE should work on Windows: http://www.espruino.com/Web+IDE#as-a-native-application
Either Windows 10 PCs natively (after pairing), or any Windows PC with a standard $10 bluetooth dongle (see here) should work - surely one of your Windows machines will work like that?
You can also use EspruinoHub on a Raspberry Pi 3 or Pi Zero W - you can then connect to
raspberrypi.local:1888/ide
and can program Espruino through thatI have and without the availability of a smart phone, I believe I'm out of luck.
Firmware updates are now available via the Web IDE website
espruino.com/ide
if you have Web Bluetooth. However if you're on Windows and you don't have access to a Smartphone (or a friend that you can borrow one off for 10 mins) then yes, updating will be hard. However very soon Google should be producing a working Web Bluetooth for Windows 10, so that should all get solved.As there aren't wires, need to communicate via Bluetooth
You can connect a $5 USB-TTL converter to program it if you want to: http://www.espruino.com/Puck.js#serial-console
-
• #12
I just saw your other post - try booting the Puck outside of Bootloader mode. The IDE is designed to connect to a normal Puck, not the bootloader itself.
I am using an android 6.0 tablet.
It show the puck.js b80e is paired.
When I go to the Espruino Web IDE and hit the connect button, it shows No Ports Found.
Here is a dump of the console.
I noticed "Web Bluetooth not enabled"
I can't seem to find a setting in Android to turn web Bluetooth on.
No chrome.serial - Chrome Serial disabled
No chrome.sockets - Chrome Socket disabled
serial_audio: Audio Sample rate : 44100
serial_audio: Audio Serial Baud 9600 Bit time 4.59375
WebSocket relay support enabled - running in web browser
WebSocket localhost support (EspruinoHost) enabled - running in web browser
serial_frame: Running in a frame - enabling frame messaging
No chrome.storage API - disabling Offline mode
Initialising SettingsConsole
Initialising Utils
Initialising Config
Initialising Notifications
Initialising Status
Initialising App
Initialising File
Initialising Code
Initialising Serial
Initialising SerialWebSocketRelay
Initialising SerialWebSocketLocal
Initialising Terminal
Initialising CodeWriter
Initialising Modules
Initialising Env
Initialising Flasher
Initialising EditorBlockly
Initialising EditorJavaScript
Initialising Send
Initialising MenuPortSelector
Initialising MenuSettings
Initialising MenuFlasher
Initialising SettingsAbout
Initialising SettingsFlasher
Initialising BoardJSON
Initialising VersionChecker
Initialising Compiler
Initialising Assembler
Initialising GetGitHub
Initialising Unicode
Initialising Minify
Initialising SaveOnSend
Initialising SetTime
Initialising Tutorial
Initialising Webcam
Initialising FontSize
Initialising UiMode
Initialising URLHandler
Initialising CodeLink
Initialising Project
Initialising Testing
Initialising Notification_Sound
Initialising Tern
Initialising Debugger
Initialising Tour
Initialising HelpLinks
Initialising Arrows
No code in storage.
Handling URL "https://www.espruino.com/ide/"
serviceworker> active
No navigator.bluetooth - Web Bluetooth not enabled
Couldn't connect to wss://localhost:31234 - disabling websockets for this session
ERROR: serial_frame: getPorts timeout, disabling
ERROR: getURL("/serial/ports") error : Not Found
/serial/ports doesn't exist - disabling WebSocket support