board: tw-02 based on w600 wifi problem

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
User avatar
Roberthh
Posts: 2541
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: board: tw-02 based on w600 wifi problem

Post by Roberthh » Thu Dec 24, 2020 1:50 pm

When running, my device continuously changes between ~30mA and ~100mA. The higher current is required by the device only for sending, not for receiving. So it seems that your device never starts sending in STA mode, most likely because it cannot detect any access points. Please check the operation mode of you access point. The W600 can only work in the 2.4 GHz band.

serdio
Posts: 12
Joined: Thu Dec 24, 2020 6:49 am

Re: board: tw-02 based on w600 wifi problem

Post by serdio » Thu Dec 24, 2020 4:21 pm

AP is OK, 2.4GHz and number of ESP devices connected.

serdio
Posts: 12
Joined: Thu Dec 24, 2020 6:49 am

Re: board: tw-02 based on w600 wifi problem

Post by serdio » Fri Dec 25, 2020 5:58 pm

OK, good news, scan() start working after playing with oneshot()

Code: Select all

>>> import easyw600

>>> easyw600.scan()
>>> easyw600.scan()
>>> easyw600.scan()
>>> easyw600.scan()
>>> easyw600.scan()

>>> easyw600.oneshot()
wait conneting...
###### here I press Ctrl-C
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "easyw600.py", line 22, in oneshot
KeyboardInterrupt: 

>>> easyw600.scan()
                     myap1  101331c7a2a1	 4	 -42	 32	 False
     DIRECT-05-HP LaserJet  5eea1d55f305	 4	 -60	 32	 False
                     myap2  bc0f9a9f9fd8	11	 -52	 32	 False

>>>

serdio
Posts: 12
Joined: Thu Dec 24, 2020 6:49 am

Re: board: tw-02 based on w600 wifi problem

Post by serdio » Fri Dec 25, 2020 6:25 pm

but connect() is not connected yet

User avatar
Roberthh
Posts: 2541
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: board: tw-02 based on w600 wifi problem

Post by Roberthh » Fri Dec 25, 2020 7:54 pm

OK, good news, scan() start working after playing with oneshot()
That's interesting. As far as I recall. I never used oneshot(). And even if, not on all boards I have.

serdio
Posts: 12
Joined: Thu Dec 24, 2020 6:49 am

Re: board: tw-02 based on w600 wifi problem

Post by serdio » Sat Dec 26, 2020 6:43 am

Chip W600-B800

I don't understand the trick with oneshot()
If all "original" firmware has been replaced by wm_w600_lfs.fls with upython, how can it behave differently relative to other modules?

The module tw-02
Image

User avatar
Roberthh
Posts: 2541
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: board: tw-02 based on w600 wifi problem

Post by Roberthh » Sat Dec 26, 2020 5:05 pm

I have the same chip on my board. W600-B800. Only the numbers on the second line are different.
E973541843 on the wemos w600-pico and E910641836 on the Thingsturn TB-01. The Wemos device is most likely the newer one.
On your picture I read E392492016 or E992492016. Could be the batch numbers.

serdio
Posts: 12
Joined: Thu Dec 24, 2020 6:49 am

Re: board: tw-02 based on w600 wifi problem

Post by serdio » Sun Dec 27, 2020 8:31 am

If all "original" firmware has been replaced by wm_w600_lfs.fls with upython, how can it behave differently relative to other modules?

User avatar
Roberthh
Posts: 2541
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: board: tw-02 based on w600 wifi problem

Post by Roberthh » Sun Dec 27, 2020 9:16 am

That is indeed strange. Maybe it's still something in the environment. If you have more than one W600 unit, can you set up one of them as AP and connect to it with the other one?
Or something left over in flash. Did you try a full erase with w600tool.py resp. wm_tool.exe before uploading the image?

serdio
Posts: 12
Joined: Thu Dec 24, 2020 6:49 am

Re: board: tw-02 based on w600 wifi problem

Post by serdio » Sun Dec 27, 2020 9:37 am

It works now!!! Full erase is what was missing

Thank you!!!

Code: Select all

$ ./w600tool.py -e -p /dev/ttyUSB0
Opening device: /dev/ttyUSB0
Push reset button to enter bootloader...
Erasing secboot
Erasing image

$ ./w600tool.py -p /dev/ttyUSB0 -u ../wm_w600_lfs_threading.fls 
Opening device: /dev/ttyUSB0
Erasing secboot
Switched speed to 1000000
Uploading ../wm_w600_lfs_threading.fls
0% [══════════════════════════════] 100% | ETA: 23:59:59
Total time elapsed: 00:00:18
Reset board to run user code...

Code: Select all

>>> import easyw600
>>> easyw600.scan()
[SKIP list of AP]
>>> easyw600.connect(ssid, pass)
connecting... 
connected, ip is 192.168.8.103

Post Reply