-
-
-
-
-
This is with the 65.9 exe:
Can't see any bluetooth to disable. Under the USN icon there is an option to eject the generic blue tooth device.
Here is the log:We have chrome.serial - not using 'serialport' module Disable Web Bluetooth as we have Winnus instead serial_audio: Audio Sample rate : 48000 serial_audio: Audio Serial Baud 9600 Bit time 5 Web Bluetooth available, but Windows Web Bluetooth is broken in <=56 - not using it GET chrome.storage.sync = {"AUTO_SAVE_CODE":true,"BAUD_RATE":"115200","BLOCKLY_EXTENSIONS":"|bluetooth|robot|","BLOCKLY_LANGUAGE":"en","BLOCKLY_TO_JS":false,"BOARD_JSON_URL":"http://www.espruino.com/json","CODE":"require(\"http\").get(\"https://www.google.com\", function(res) {\n res.on('data', function(data) { console.log(data); });\n});","COMPILATION":true,"COMPILATION_URL":"http://www.espruino.com:32766","ENABLE_Testing":false,"ENV_ON_CONNECT":true,"FONT_SIZE":12,"MINIFICATION_DeadCode":true,"MINIFICATION_LEVEL":"","MINIFICATION_Literal":true,"MINIFICATION_Mangle":true,"MINIFICATION_Unreachable":true,"MINIFICATION_Unused":true,"MODULE_AS_FUNCTION":false,"MODULE_EXTENSIONS":".min.js|.js","MODULE_MINIFICATION_LEVEL":"ESPRIMA","MODULE_URL":"http://www.espruino.com/modules","NPM_MODULES":false,"RESET_BEFORE_SEND":true,"SAVE_ON_SEND":0,"SERIAL_AUDIO":"0","SERIAL_TCPIP":"","SERIAL_THROTTLE_SEND":false,"SET_TIME_ON_WRITE":false,"SHOW_CODE_LINK_ICON":false,"SHOW_RELOAD_ICON":false,"SHOW_WEBCAM_ICON":0,"STORE_LINE_NUMBERS":true,"Sound_Error":"","Sound_Info":"","Sound_Success":"","Sound_Warning":"","Speak_Error":false,"Speak_Info":false,"Speak_Success":false,"Speak_Warning":false,"UI_MODE":"Normal","WEB_BLUETOOTH":false} Initialising SettingsConsole Initialising Utils Initialising Config Initialising Notifications Initialising Status Initialising App Initialising File Initialising Code Initialising Serial - Initialising Serial Chrome Serial - Initialising Serial Chrome Socket - Initialising Serial Noble - Initialising Serial Windows NUS BLE - Initialising Serial Audio 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 NPMModules Initialising ExamplePlugin Initialising Unicode Initialising SaveOnSend Initialising Minify 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 SettingsProfile Initialising HelpLinks Loaded code from storage. noble starting scan Found UART device: Puck.js 21d9 d8:84:27:2c:21:d9 Found UART device: Puck.js c768 e8:5a:f0:ae:c7:68 Found device: BB-3370 fa:dd:31:4a:33:70 Found device: BB-3370 fa:dd:31:4a:33:70 Found device: ac:bc:32:68:9d:8b Found device: BB-3370 fa:dd:31:4a:33:70 Found device: BB-3370 fa:dd:31:4a:33:70 Found UART device: Puck.js 21d9 d8:84:27:2c:21:d9 Found device: 3a:9f:95:92:b0:9e Found device: 3a:9f:95:92:b0:9e Found device: BB-3370 fa:dd:31:4a:33:70 Found UART device: Puck.js c768 e8:5a:f0:ae:c7:68 Found device: ac:bc:32:68:9d:8b Found device: BB-3370 fa:dd:31:4a:33:70 >>> Connecting... Set Slow Write = true BT> Connecting BT> ERROR Connecting ERROR: Unable to open device (connectionInfo=undefined) ERROR: [notify_error] Connection Failed. >>> Connection Failed. Found UART device: Puck.js 21d9 d8:84:27:2c:21:d9 Found UART device: Puck.js c768 e8:5a:f0:ae:c7:68 Found device: 3a:9f:95:92:b0:9e Found device: BB-3370 fa:dd:31:4a:33:70 Found device: 3a:9f:95:92:b0:9e Found device: BB-3370 fa:dd:31:4a:33:70 Found device: ac:bc:32:68:9d:8b Found device: ac:bc:32:68:9d:8b noble stopping scan
-
I copied the usb.js file out of the tree and tried adding (and copy back):
usb.findByIds(0x0a12, 0x0001) ||
this._usbDevice = usb.findByIds(0x0a12, 0x0001) || usb.findByIds(0x0a5c, 0x21e8) || usb.findByIds(0x19ff, 0x0239) || usb.findByIds(0x0a12, 0x0001) || usb.findByIds(0x0b05, 0x17cb) || usb.findByIds(0x8087, 0x07dc);
Same connection error.
-
Using the info here: http://forum.espruino.com/comments/13376334/
I could not modify the usb.js directly - and then saw above it trys to load from ENV vars.
So I set this:
C:\Users\rhys>set BLUETOOTH_HCI_SOCKET_USB_VID=0x0a12 C:\Users\rhys>set BLUETOOTH_HCI_SOCKET_USB_PID=0x0001 cd C:\Program Files\EspruinoIDE nw.exe
Still the error - the console log shows:
noble starting scan Found UART device: Puck.js 21d9 d8:84:27:2c:21:d9 Found UART device: Puck.js c768 e8:5a:f0:ae:c7:68 Found device: BB-3370 fa:dd:31:4a:33:70 Found device: BB-3370 fa:dd:31:4a:33:70 Found UART device: Puck.js 21d9 d8:84:27:2c:21:d9 Found UART device: Puck.js c768 e8:5a:f0:ae:c7:68 >>> Connecting... Set Slow Write = true BT> Connecting BT> ERROR Connecting ERROR: Unable to open device (connectionInfo=undefined) ERROR: [notify_error] Connection Failed. >>> Connection Failed.
This is with espruino_ide_win64_0v65.8.exe
-
@Gordon
Thanks - appears to work windows 10 64 bit.The USB device appeared as "Generic Bluetooth Radio" in Zadig.
When trying to connect - it says "connection failed" ;-(
-
-
Thanks.
Noting the change so I can add to my build.
https://github.com/espruino/Espruino/commit/fc381569987389625054bf57368a4df99d9890b8 -
Hi @Gordon
From here:
http://www.espruino.com/InternetHTTPS
The only board currently supporting this is the Espruino Pico. To use HTTPS simply use it in the URL of any normal HTTP request:
require("http").get("https://www.google.com", function(res) { res.on('data', function(data) { /* ... */ }); });
To specify keys and certificates, you can use an options object - see require('tls').connect(...)
Does the get with https work without loading keys as implied above?
-
-
-
-
-
@Gordon
With regards toUtilTimer
I think the rtos can take care of this for us.
Documentation is a bit thin, so you need to look at github sources of examples, and the likes of the arduino port to find the usage. -
-
Couple of corrections...
The spi Neil added were just stubs, I have fleshed them out properly, and tried to get working with a Nokia display - no success yet, but getting close.
The i2c is working - I have tested writing 8 bit to an i2c display - I've got output, but input has not been tested. An i2c scan does not work properly.
One wire should work but doesn't yet. I'm not sure if interupts are the issue- I've tried to disable them, but not working yet. It could be related to the timings- I've got a few things to try yet. I don't have anything to measure the logic levels - using a led I can see it is on faintly which suggests the pin is toggling state.
Gpio is now working for all pins, and a setwatch on the inbuilt flash button is working.
The telnet sources compile - and it appears to listen on the port - but no input or output.
Websockets are working, the crypto sources all compile, but https is not working yet. Might need @Gordon s help to debug when he is less busy!
-
@MaBe
I just tried and I'm getting the same as you - for some reason theFlashStore=require("FlashStore")
module is not getting found.I'll look into it.
-
-
-
Thanks $109 for the logic 4 seems very reasonable. Can the bottom of the range one be used for i2c and onewire?