lilygo-ttgo-twatch-2020-micropython icon indicating copy to clipboard operation
lilygo-ttgo-twatch-2020-micropython copied to clipboard

no example with AP / STA connection (wifi) ...and i have issues

Open picpic020960 opened this issue 5 years ago • 5 comments

Bonjour ,

some issues with AP / STA connection on last prebuild firmware. (MicroPython v1.9.4-2811-gf0cb439ba-dirty on 2020-07-23; LilyGO-TTGO-T-Watch-2020-V1 with ESP32)

simple sketch never connect at local network : sta.isconnected() ==> false but some time (not clear) sta.status() ==> 1001 = connected

help or debug mode ?

Thank's a lot & Regards

picpic020960 avatar Oct 02 '20 21:10 picpic020960

I know about this bug. I have updated micropython and lvgl to the latest versions. You can see it in the 1.13 branch. Can you check this bug on the updated micropython?

OPHoperHPO avatar Oct 12 '20 16:10 OPHoperHPO

I'm watching this this weekend

picpic020960 avatar Oct 13 '20 14:10 picpic020960

Bonjour ,

bin 1.13 upload with :

esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 2000000 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 firmware113.bin

and with thonny ... bad :

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:5204 load:0xc8400780,len:469762102 1162 mmu set 00010000, pos 00010000 1162 mmu set 00020000, pos 00020000 1162 mmu set 00030000, pos 00030000 1162 mmu set 00040000, pos 00040000 1162 mmu set 00050000, pos 00050000 1162 mmu set 00060000, pos 00060000 1162 mmu set 00070000, pos 00070000 1162 mmu set 00080000, pos 00080000

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Could not enter REPL. Trying again with 1 second waiting time... Could not enter REPL. Trying again with 3 second waiting time... Could not enter REPL. Trying again with 5 second waiting time... Could not enter REPL. Giving up. Read bytes:

Your options:

  • check connection properties;
  • make sure the device has suitable firmware;
  • make sure the device is not in bootloader mode;
  • reset the device and try again;
  • try other serial clients (Putty, TeraTerm, screen, ...);
  • ask for help in Thonny's forum or issue tracker.

Backend terminated or disconnected. Use 'Stop/Restart' to restart.

return to release bin version :

MicroPython v1.9.4-2811-gf0cb439ba-dirty on 2020-07-23; LilyGO-TTGO-T-Watch-2020-V1 with ESP32 Type "help()" for more information.

More test ?:

picpic020960 avatar Oct 14 '20 19:10 picpic020960

Hi @picpic020960,

It looks like there are errors in the instructions for flashing the image. And it doesn't work for the new version of micropython. I will fix it soon. So currently there is only one way to launch a new micropython. You need to rebuild it yourself and flash it via "make -C ports/esp32 deploy".

OPHoperHPO avatar Oct 17 '20 04:10 OPHoperHPO

not easy to switch to ESP-IDF. I will need courage

picpic020960 avatar Oct 22 '20 17:10 picpic020960