REPL via expansion board USB - missing jumpers?

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
gerwindehaan
Posts: 3
Joined: Sat Oct 10, 2015 8:35 am

REPL via expansion board USB - missing jumpers?

Post by gerwindehaan » Sat Oct 10, 2015 8:52 am

I am trying to enable the REPL via UART using the microUSB connector on the expansion board.
I tried to enable the terminal duplication manually when logged in via WiFi, and via boot.py through the following code:

Code: Select all

# enable the UART on the USB-to-serial port
from machine import UART
import os
uart = UART(0, baudrate=115200)
os.dupterm(uart)
Then, I try to connect from my OSX station using

Code: Select all

screen /dev/tty.usbserial-DB00IANO 115200
I noticed people had used this, but no success for me.

Then I noticed people posting images of the expansion board with a bunch of jumpers on it, while mine doesn't come with any jumpers.
WiPy_Expansion_Board_Jumpers_Annotated.jpg
WiPy_Expansion_Board_Jumpers_Annotated.jpg (110.82 KiB) Viewed 7713 times
Looking at the designs https://github.com/wipy/wipy/tree/maste ... Board-v1.2 it appears JP3A , JP3B, JP3C and JP3D should connect the onboard FTDI serial-to-USB to the UART ports of the WiPy board. This might be the reason I get no tty response.

I don't have any electronics prototyping gear at hand now, but I'm going to scavenge some stuff to test this assumption. Can anyone confirm? Are there other features that can be en/disabled by the jumpers?

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: REPL via expansion board USB - missing jumpers?

Post by danicampora » Sat Oct 10, 2015 11:37 am

Yes, you need the jumpers in place. Sorry that yours was shipped without them...

hugohase
Posts: 11
Joined: Fri Oct 23, 2015 6:21 pm

Re: REPL via expansion board USB - missing jumpers?

Post by hugohase » Fri Oct 23, 2015 6:27 pm

Hallo, just received wipy from Kickstarter.
MicroPython v1.5-1-ge954604 on 2015-10-21; WiPy with CC3200

Your Example didn't work, only wild character on screen.
By removing Baudrate it works.

I hope this helps.

Code: Select all

from machine import UART
import os
uart = UART()
os.dupterm(uart)
Mac:

Code: Select all

screen /dev/tty.usbserial-DEADBEEF

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

Re: REPL via expansion board USB - missing jumpers?

Post by platforma » Sat Oct 24, 2015 9:33 pm

@hugohase

You need to set the baudrate when invoking screen from your terminal, I'm not sure what it defaults to otherwise, I've been using picocom for a while now. For example:

Code: Select all

screen /dev/tty.usbserial-DEADBEEF 115200

Post Reply