-
-
Hi guys.
I have a case where my device is visible but I do not have any web bluetooth button appearing in theNative
IDE. Here is the console output:We have chrome.serial - not using 'serialport' module 'winnus' module not found, no Windows Bluetooth Low Energy Error: The specified module could not be found. \\?\C:\Program Files\EspruinoIDE\node_modules\winnus\build\Release\winnus.node serial_audio: Audio Sample rate : 44100 serial_audio: Audio Serial Baud 9600 Bit time 4.59375 Web Bluetooth available, but Windows Web Bluetooth is broken in <=56 - not using it GET chrome.storage.sync = {"AUTO_SAVE_CODE":true,"BAUD_RATE":"9600","BLOCKLY_EXTENSIONS":"|bluetooth|robot|","BLOCKLY_LANGUAGE":"en","BLOCKLY_TO_JS":false,"BLUETOOTH_LOW_ENERGY":true,"BOARD_JSON_URL":"http://www.espruino.com/json","CODE":"console.log(\"Hello\");","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 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 device: jpthingy f8:1a:18:1b:ba:f5 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: f8:1a:18:1b:ba:f7 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: f8:1a:18:1b:ba:f7 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: f8:1a:18:1b:ba:f7 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: f8:1a:18:1b:ba:f7 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: f8:1a:18:1b:ba:f7 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: f8:1a:18:1b:ba:f7 Found device: jpthingy f8:1a:18:1b:ba:f5 Found device: f8:1a:18:1b:ba:f7 Found device: jpthingy f8:1a:18:1b:ba:f5 noble stopping scan noble starting scan
The device is a Nordic "Thingy" based on NRF52. I don't use Puck.js because I temporarily lost it . . .
I tried with both CSR and Broadcom based BLE dongles, same result. In both cases the IDE finds the device but when I select a port, no Bluetooth port appears. Check box
Connect over Bluetooth Smart (BTLE) via 'noble'
is checked. Espruino Native IDE version is win64_0v65.9. Any idea? -
That would be a nice to have indeed! I will keep this idea in mind for later.
@Gordon I know that unofficial boards may not benefit from any support, but I ask the question anyway (it might also be helpful for Puck.js users): Is there a way of flashing the
.hex
over OTA or do we absolutely need to give it a.zip
archive? nightly builds for the NRP52 kit seems to be.hex
only... -
Any support planned for the Nordic Thingy dev kit? https://www.nordicsemi.com/eng/Products/Nordic-Thingy-52
It runs on nRF52832.
-
Often the I2C master [here, the stm32] is strong enough to force a line to 0V through a 4k7 resistor. I bet the problem here is the RTC itself which should probably have weak output drivers unable to push the lines to zero Volts (thus, very low current drained which is a good point for a RTC in term of power consumption).
-
I2C is an addressed bus. This means you can have multiple
slaves
communicating with (usaually) a singlemaster
. Often, different kind of I2C devices have different addresses. Your I2C lcd is not likely to have the same address as your Chirp.
The difficulty comes with multiples devices of same kind, such as two or more Chirps. In some way you have to differentiate them on the I2C bus. Fortunately, Chirp seems to provide a way of doing it: https://github.com/Miceuz/i2c-moisture-sensor/blob/master/README.md#address-change-exampleI never tried. Please share your thoughts on this method if you try it! :-)
-
@furuskog if you have access to I2C on the puck, you probably will succeed in integrating this chirp sensor.
I2C1.setup({scl:B6,sda:B7});
You just have to change the name of SCL and SDA lines and it should just work. -
Also, why would someone choose the Espruino WiFi when they are connecting via LoRa? "If you're using this breakout board then you can place it in breadboard alongside an Espruino Pico or WiFi, making sure it connects as follows..."
LoRa and WiFi are totally different. With LoRa you will achieve very low power consumption. With WiFi you will benefit from relatively high bandwidth. As always, it depends on what you want to do :-)
-
I wrote a guide for that a few months ago. It is not totally completed but you should still be able to make your first experiments by following it:
https://github.com/yerpj/TTN_with_Espruino/blob/master/QuickStart.md -
-
-
Improve LED color blending: Replace 3 discrete R, G, B LEDs with a composite RGB LED. Probably save board space, too.
I am using Rohm SMLP34RGB2W3 for a long time. very bright, very small, a few cents in quantity.
-
-
-
-
-
-
-
-
-
@Gordon I tried the method
getStatus()
of the module RN2483 (LoRa)
https://github.com/espruino/EspruinoDocs/blob/master/devices/RN2483.js#L61>lora.getStatus() ["sys get hweui\r\n" =undefined ] "AAAAAAA" <--- "AAAAAAA" ] "AAAAAAAAAAAAAAAA\r\n" <--- "AAAAAAAAA\r\n" ["sys get vdd\r\n" ] "3" <--- "3" ] "3233\r\n" <--- "233\r\n" ["mac get appeui\r\n" ] "0" <--- "0" ] "00000000000000" <--- "0000000000000" ] "0000000000000000\r\n" <--- "00\r\n" ["mac get deveui\r\n" ] "0" <--- "0" ] "AAAAAAAAAAAAA" <--- "AAAAAAAAAAAA" ] "AAAAAAAAAAAAAAA\r\n" <--- "AA\r\n" ["mac get band\r\n" ] "8" <--- "8" ] "868\r\n" <--- "68\r\n" ["mac get dr\r\n" ] "5" <--- "5" ] "5\r\n" <--- "\r\n" ["mac get rxdelay1\r\n" ] "1" <--- "1" ] "1000\r\n" <--- "000\r\n" ["mac get rxdelay2\r\n" ] "2" <--- "2" ] "2000\r\n" <--- "000\r\n" Uncaught Error: Unhandled promise rejection: Error: Function "b" not found! >
-
-
-
@DrAzzy from my own experience, for such a device it will be far better to use a dipole antenna. The one pointed by Gordon should be a good candidate.
OK the problem was the device flashing process, not the BLE adapter itself. For a reason, the
J-Flash Lite
tool did not flash the NRF52 the first time.After some tests, both my CSR and Broadcom based BLE dongles are working fine :-)