Page 2 of 2

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

Posted: Thu Dec 24, 2020 1:50 pm
by Roberthh
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.

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

Posted: Thu Dec 24, 2020 4:21 pm
by serdio
AP is OK, 2.4GHz and number of ESP devices connected.

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

Posted: Fri Dec 25, 2020 5:58 pm
by serdio
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

>>>

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

Posted: Fri Dec 25, 2020 6:25 pm
by serdio
but connect() is not connected yet

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

Posted: Fri Dec 25, 2020 7:54 pm
by Roberthh
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.

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

Posted: Sat Dec 26, 2020 6:43 am
by serdio
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

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

Posted: Sat Dec 26, 2020 5:05 pm
by Roberthh
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.

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

Posted: Sun Dec 27, 2020 8:31 am
by serdio
If all "original" firmware has been replaced by wm_w600_lfs.fls with upython, how can it behave differently relative to other modules?

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

Posted: Sun Dec 27, 2020 9:16 am
by Roberthh
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?

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

Posted: Sun Dec 27, 2020 9:37 am
by serdio
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