Unfortunately I had some problems with the first steps. The WiPy starts the WiFi in Acess Point mode. I was not able to reach it from my Desktop PC, which is connected by a standard WLAN capable router.
Even I ordered the expansion board which provides UART like access, it was not configured that way. You first have to reach the board somehow, I used a stand alone laptop, to change the boot.py file on it and arrange that the on board UART is used.
This is described here.
I used again the Laptop ftp client to get the boot.py to add the following lines
from machine import UART import os uart = UART(0, baudrate=115200) os.dupterm(uart)
and to put it back to the WiPy. From this point on, I can use any kind of serial console to access the WiPy via USB
sudo picocom -b 115200 /dev/ttyUSB1 Terminal ready >>> >>> os.uname() (sysname='WiPy', nodename='WiPy', release='1.0.0', version='v1.4.6-21-gff736d6 on 2015-09-27', machine='WiPy with CC3200')
To reach the WiPy in my home network it needs to have a fixed IP. So again, I added the following code to boot.py.
# boot.py -- run on boot-up # can run arbitrary Python, but best to keep it minimal # # enable the UART on the USB-to-serial port from machine import UART import os uart = UART(0, baudrate=115200) os.dupterm(uart) # import machine from network import WLAN wlan = WLAN() # get current object, without changing the mode if machine.reset_cause() != machine.SOFT_RESET: wlan.init(WLAN.STA) # configuration below MUST match your home router settings!! wlan.ifconfig(config=('192.168.2.61', '255.255.255.0', '192.168.2.105', '184.108.40.206')) if not wlan.isconnected(): # change the line below to match your network ssid, security and password wlan.connect('dlinkrouter', auth=(WLAN.WPA2, 'kennwort'), timeout=5000) while not wlan.isconnected(): machine.idle() # save power while waiting print('connected to WLAN using 192.168.2.61\n')
I used the the update-wipy.py script on my host, take care, to use python > 3 on the host.
vim: se spell spelllang=en fileencoding=utf8 wrap :