HOWTO: getting WiPy on the network

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
cswiger
Posts: 13
Joined: Fri Oct 16, 2015 9:51 pm

HOWTO: getting WiPy on the network

Post by cswiger » Fri Oct 16, 2015 10:20 pm

Got this working and though it would be helpful to put all the steps in one place - to get the WiPy connected to your network:

1) connect gpio pins to your serial device (ftdi, etc)
pin1 is reset
pin 2 GP2 Rx <-- FTDI Tx
pin 3 GP1 Tx --> FTDI Rx

Connect to your wipy-wlan-xxxx access point with default password 'www.wipi.io'
telnet to 192.168.1.1 with username 'micro' and password 'python' and run this:

>>> from machine import UART
>>> import os
>>> uart = UART(0, baudrate=115200)
>>> os.dupterm(uart)

Now open your serial terminal at 115200 baud and run this:

>>> from network import WLAN
>>> wifi = WLAN(WLAN.STA)
>>> wifi.ifconfig(0, ('192.168.1.235', '255.255.255.0', '192.168.1.1', '192.168.1.1'))
>>> wifi.connect(ssid='myAP', auth=(WLAN.WPA2, 'myAPwpa2passphrase'))

Now you can telnet in over your network - Have fun and get your things on the Internet!

User avatar
platforma
Posts: 258
Joined: Thu May 28, 2015 5:08 pm
Location: Japan

Re: HOWTO: getting WiPy on the network

Post by platforma » Sun Oct 18, 2015 7:42 pm

I don't think you should be running the ifconfig function. The config defaults to DHCP which is probably preferable when you're connecting to a network. Those IP/gateway/DNS might not work for everyone, for example my network has 10.10.* addresses. The same should work without the ifconfig call. Perhaps you might want to re-test and edit your post to avoid confusing others!

Cheers!

Post Reply