var wifi = require("Wifi"); wifi.scan((ap)=>print(ap)); #6457
Replies: 1 comment
-
Posted at 2022-02-20 by @MaBecker Ok, so let's continue this here. Posted at 2022-02-20 by @MaBecker Will setup a ESP8266 with Espruino 2v12 and run some wifi test. Posted at 2022-02-20 by 影之刃 How to set Posted at 2022-02-20 by 影之刃 ESP 32 is OK but in esp8266 is []; Attachments: Posted at 2022-02-21 by Frida With latest software 2v12.40 on an esp8266-01 it works for me. Attachments: Posted at 2022-02-21 by @MaBecker Latest software is alway here to find . Posted at 2022-02-25 by 影之刃 no Attachments: Posted at 2022-02-25 by 影之刃 [ ] Attachments: Posted at 2022-02-25 by @MaBecker please share a picture of the board you use Posted at 2022-02-25 by 影之刃 My board is ok in arduino Attachments: Posted at 2022-02-25 by @MaBecker Thanks for sharing. Please try the 4mb image. Posted at 2022-02-25 by @MaBecker This one Attachments: Posted at 2022-02-25 by 影之刃 address in 0x0? or in 0x1000? Posted at 2022-02-25 by 影之刃 help me to espruino_..._combined_4096.bin Posted at 2022-02-25 by 影之刃 look Attachments: Posted at 2022-02-25 by 影之刃 look Attachments: Posted at 2022-02-25 by 影之刃 no Attachments: Posted at 2022-03-03 by stumin I have the same problem with the same board shown above. It seem that the WiFi is not working properly on WeMos Dev board (weak WiFI, maybe?) with Espruino. Please try with other board. I try on an old NodeMcu board and it went ok. I said, 'weak WiFi' because running scan with MicroPython on the WeMos board returned only a few AP where there should be plenty. Give it a try on another dev board other then WeMos. Posted at 2022-03-04 by 影之刃 it in arduino is OK! Posted at 2022-03-04 by 影之刃 My ROM is 32M字节 Posted at 2022-03-05 by @MaBecker Ok, there is maybe a explanation for the different results: Espruino is using SDK ESP8266_NONOS_SDK-2.2.1.tar.gz and arduino using a newer one. Posted at 2022-03-05 by 影之刃 我希望你能修它 Posted at 2022-03-05 by stumin Wemos NodeMCU V3 is a nice dev board. It is ashamed that Espruino WiFi is not Wemos NodeMCU V3 ESP8266
now on another board. AI ESP-12S ESP8266
So newer SDK does not solve the problem. I think it is a hardware problem. Can the chip did not get enough power during WiFi operation. I say this because I got brown out when using Espruino on ESP32 hub without external power. Posted at 2022-03-05 by @MaBecker @StuMin Thanks for sharing your test results. Is it possible to share how you managed to compile with the SDK? Would like to run some device tests and then we could think about switching to this SDK. Posted at 2022-03-05 by stumin You need to compile the espruino firmware locally on your own PC. I did my compilation on: $ uname -a One this we need to change in user_main.c under Espruino/targets/esp8266 The firmware would not compile without the user_pre_init(). Insert this block of code void ICACHE_FLASH_ATTR user_pre_init(void) // This isn't an ideal approach but there's not much point moving on unless return; Above the void user_init() function. Insert user_pre_init() as the first statement in the user_init() function void user_init() { I do not use the Espruino/scripts/provision.sh to build, but my own simple script: #!/usr/bin/sh make V=1 RELEASE=1 BOARD=ESP8266_4MBmake V=1 RELEASE=1 BOARD=ESP8266_ME Note that used ESP8266_ME board which is a copy of ESP8266_4MB.py with 'FILESYSTEM', 'FLASHFS' included in the libraries. Please give it a try. Posted at 2022-03-05 by stumin Sorry for the markdown rendering of the listing. Posted at 2022-03-06 by @MaBecker @StuMin Thanks fo sharing, make works. Let's mode this to a new conversation. Posted at 2022-03-06 by stumin Good I'm glad. How the tests when? Posted at 2022-03-07 by 影之刃 是不是设置功率参数问题 Posted at 2022-03-07 by @MaBecker Ok, look's like you still think your board is not the issue. Please try this snippet and if it doesn't work you might be better with a different board.
Posted at 2022-03-07 by stumin People were reporting problems with WiFi on newer Wemos esp8266 V3 board. Boards with lower version (<3) seem to work fine. I have several of these boards and I've try on 3 of those. Sorry, no luck. Posted at 2022-03-07 by 影之刃 is [ ] Posted at 2022-03-07 by 影之刃 [ ] Attachments: Posted at 2022-03-07 by 影之刃 是它吗? Attachments: Posted at 2022-03-07 by 影之刃 CH340 Posted at 2022-03-07 by 影之刃 were are you from? Posted at 2022-03-07 by 影之刃 but it in arduino is ok Posted at 2022-03-07 by 影之刃 Can the project be ported to Arduino platform for compilation? Posted at 2022-03-17 by BobFrankston I'm jumping in without context. Given that the ESP chips have Wi-Fi but it isn't available on some devices. Does this mean I can compile a version for the Bangle.js 2 w/Wi-Fi? There's still a lot of static friction in my coming up to speed. For now I want to just understand what's possible and, perhaps, what's feasible. Posted at 2022-03-17 by @MaBecker serial attached http://www.espruino.com/ESP8266 or spi http://www.espruino.com/WIZnet I use nrf52 and a WIZ850io clone with custom build firmware Posted at 2022-03-18 by stumin Bangle.js 2 is a smart watch. Wired connected WiFi device to it would be impractical. I would rather look at the possibility of using BLE to WiFi bridge. Posted at 2022-03-18 by BobFrankston Alas, the chip does not support Wi-Fi. I am curious as to why you consider it impractical on principle. Posted at 2022-03-18 by stumin You can not easily access the UART/SPI pins without opening the watch from its casing. This means practically destroying your Bangle.js 2. Posted at 2022-03-18 by BobFrankston Oh -- I found Bangle.js 2 doesn't have WI-Fi so it's moot. I was thinking of other devices. Posted at 2022-03-26 by 影之刃 If the connection succeeds once, the subsequent connection fails, V3 is too Posted at 2022-03-26 by 影之刃 34/5000 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-02-20 by 影之刃
| |_ ___ ___ _ ||___ ___
| | -| . | | | | | | . |
||| || |||||_|
|| espruino.com
2v12 (c) 2021 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0x1c chip 0x3016
[ ]
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions