Wemos W600-Pico

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.
hansamann
Posts: 7
Joined: Thu Jun 09, 2016 1:37 pm

Wemos W600-Pico

Post by hansamann » Sat Jan 25, 2020 4:28 pm

I've read about the W600-Pico and ordered a few. After installing the driver for Mac, I can connect to the REPL on this tiny $2 board. All cool - it seems to connect to the internet, too.

Who else has got some experience? How woudl I save a program to the W600 permanently, so it starts again when plugged in?

thx
Sven

User avatar
tve
Posts: 210
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: Wemos W600-Pico

Post by tve » Sun Jan 26, 2020 4:44 pm

I just got two of 'em. So far not much joy. I can get to the repl using miniterm but none of the tools (pyboard, rshell, mpfshell) can connect because the firmware prints double \r and thereby defeats the read_until in pyboard.

kevinkk525
Posts: 735
Joined: Sat Feb 03, 2018 7:02 pm

Re: Wemos W600-Pico

Post by kevinkk525 » Sun Jan 26, 2020 5:49 pm

Guess webrepl is an option then.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
tve
Posts: 210
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: Wemos W600-Pico

Post by tve » Mon Jan 27, 2020 6:02 am

Dang, got all the way through compiling MP from their repo to discover that mbedtls is not included unless one has 2MB flash. I got two Wemos W600-PICO with 1MB flash. I think they're going straight into the recycling bin...

kevinkk525
Posts: 735
Joined: Sat Feb 03, 2018 7:02 pm

Re: Wemos W600-Pico

Post by kevinkk525 » Mon Jan 27, 2020 6:36 am

I don't need tls since all my stuff runs in local network..
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
tve
Posts: 210
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: Wemos W600-Pico

Post by tve » Mon Jan 27, 2020 8:21 am

> I don't need tls since all my stuff runs in local network..

... and you think Wifi can't be hacked ;-)

kevinkk525
Posts: 735
Joined: Sat Feb 03, 2018 7:02 pm

Re: Wemos W600-Pico

Post by kevinkk525 » Mon Jan 27, 2020 10:59 am

oh it sure can and maybe some of my friends with my wifi password could be a risk too but I'm not that paranoid at the moment :D
What should an attacker do with all my smarthome nodes? Read all my temperatures? Ring the doorbell until I die :lol: It really depends on what you are connecting.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
tve
Posts: 210
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: Wemos W600-Pico

Post by tve » Mon Jan 27, 2020 6:28 pm

This is getting quite off-topic, but do you read the stories about all the hackable IoT products people find, from lightbulbs to refrigerators to routers, to cars? And perhaps each time you snicker at those "dumbass", "incompetent", "just out for a quick buck", "irresponsible", etc companies? Well, I do, but then one morning I looked into the mirror and realized that all the esp8266's, and little arduinos, and stm32's around my property are just as naively insecure. So I decided to stop with the cheap schadenfreude about those "idiot" companies and try to do better myself and only deploy "secure" devices myself ("secure" in quotation marks because ultimately everything can be hacked with enough effort and money). I decided I was going to figure out just how much extra work and inconvenience security requires and see whether there's anything I can do to nudge the state of the art into a more secure direction.

Back to the thread's topic (sorry, my fault for getting off), so far I'm finding that MP on the W600 works, but it doesn't "just work", i.e., every step has a bump in the road. But so far the author of the PR is responding, which is very positive. I'm posting my issues on the PR https://github.com/micropython/micropython/pull/4679

kevinkk525
Posts: 735
Joined: Sat Feb 03, 2018 7:02 pm

Re: Wemos W600-Pico

Post by kevinkk525 » Mon Jan 27, 2020 6:57 pm

The devices you mention are all internet connected devices and I agree that you have to be very careful about those as they are more likely to get attacked/hacked. If my device is only sending/receiving messages locally through mqtt the attack surface is a lot smaller.
But of course to be more secure you need to use TLS.

Anyway I'm going to buy a few W600-Pico once they are available again.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

moshel
Posts: 5
Joined: Wed Jan 29, 2020 2:36 am

Re: Wemos W600-Pico

Post by moshel » Wed Jan 29, 2020 2:49 am

New to micropython, just got this board and nothing really works....
environment in mint 18.03

tried to connect to it with minicom but got no reply:

Code: Select all

sudo minicom /dev/ttyUSB0

Code: Select all

Welcome to minicom 2.7

OPTIONS: I18n 
Compiled on Nov 15 2018, 20:18:47.
Port /dev/tty8, 15:39:52

Press CTRL-A Z for help on special keys

port exists :

Code: Select all

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 011: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
python -m serial.tools.list_ports shows /dev/ttyUSB0

I have tried reflashing the device with the w600tool but i get:

Code: Select all

sudo -H python3.7 /home/m/.local/lib/python3.7/site-packages/w600tool.py -b 115200 -p /dev/ttyUSB0 -u wm_w600.fls
Opening device: /dev/ttyUSB0
Push reset button to enter bootloader...
Erasing secboot
Warning: Cannot switch speed
Error: Could not recover from speed switch failure => Try again, or set upload-baud to 115200
tried pressing the reset when the message appears but no real change.

Any help will be greatly appreciated!!!

Post Reply