Missing pyb, serial console and FTP problem.

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Theo
Posts: 4
Joined: Fri Oct 09, 2015 4:42 pm

Missing pyb, serial console and FTP problem.

Post by Theo » Fri Oct 09, 2015 10:12 pm

Hi Daniel,

Yesterday I received my WiPy, thank you you very much for the well organized expedition of this KS project!

A couple of remarks though:
First; there does not seem to be a pyb module included in my firmware :(
See https://www.dropbox.com/s/tgtlnayq7xqqm ... b.png?dl=0
Has the pyb module been renamed maybe?

Second; no matter which combination of bps/parity/stopbit I choose, I cannot connect to the serial console that is supposed to run in the firmware besides telnet and FTP. My PC installed an USB to serial driver when I connected the WiPy with USB, and assigned a serial port (COM9 in this case), but I get no prompt using PuTTY or another serial comms program.

Third; using a browser in FTP mode to view the contents of /flash is no problem, but when I try e.g. winSCP or even ftp.exe, all I get is errors in WinSCP or a frozen ftp.exe program.
Is there something I'm missing?

I hope you can address and solve these issue Daniel, at the moment my WiPy isn't working as I expected unfortunately.
Thanks.

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

Re: Missing pyb, serial console and FTP problem.

Post by danicampora » Sat Oct 10, 2015 5:48 am

Hi Theo,

Yes, pyb has been renamed to "machine", the new API is here:

https://github.com/micropython/micropyt ... rdware-API

In order to enable REPL duplication on the UART, you need to do this:

Code: Select all

from machine import UART
import os
uart = UART(0, baudrate=115200)
os.dupterm(uart)
Regarding FTP, it needs to be set to "passive" mode on the client side. Please try FileZilla and follow this:
Note regarding FileZilla:

Do not use the quick connect button, instead, open the site manager and create a new configuration. In the "General" tab make sure that encryption is set to: "Only use plain FTP (insecure)". In the Transfer Settings tab limit the max number of connections to one, otherwise FileZilla will try to open a second command connection when retrieving and saving files, and for simplicity and to reduce code size, only one command and one data connections are possible.
I haven't tested WinSCP, but I'll do it now to check if there are any issues. I'll get back to you ASAP.

Cheers,
Daniel

Theo
Posts: 4
Joined: Fri Oct 09, 2015 4:42 pm

Re: Missing pyb, serial console and FTP problem.

Post by Theo » Sat Oct 10, 2015 8:24 am

Hi Daniel,

Thank you very much for your answer. The pyb problem is hereby solved, and also the FTP works flawless using FileZilla.

Unfortunately, I found out that the solder joints of the PCB-side micro-USB connector appear to be "dry joints" (i.e. have not been heated and flowed well enough), because when I wanted to remove the cable from the WiPy, I ripped the connector completely off the PCB, leaving the underside of the connector and pads virtually without solder but intact. The four ground pads on the outside have come off though :(.
(Source: I'm an electronics/test engineer myself).

https://www.dropbox.com/s/y41o16m4oq6z0 ... 9.jpg?dl=0

Suggestion please?
Thanks Daniel.

gerwindehaan
Posts: 3
Joined: Sat Oct 10, 2015 8:35 am

Re: Missing pyb, serial console and FTP problem.

Post by gerwindehaan » Sat Oct 10, 2015 9:05 am

I also cannot connect via UART, just placed a new post awaiting moderator acception. This was the vein of my post and assumption:
I noticed people posting images of the expansion board with a bunch of jumpers on it, while mine doesn't come with any jumpers. 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.
Can you verify the absence of (closed) jumpers at the indicated positions?
Attachments
WiPy_Expansion_Board_Jumpers_Annotated.jpg
WiPy_Expansion_Board_Jumpers_Annotated.jpg (110.82 KiB) Viewed 10961 times

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

Re: Missing pyb, serial console and FTP problem.

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

Sorry that your exp board was shipped without jumpers. You indeed need to place them in order to get the usb-serial connection working.

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

Re: Missing pyb, serial console and FTP problem.

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

Theo, please pm me your full KS name and I'll ship you a replacement board.

Cheers,
Daniel

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

Re: Missing pyb, serial console and FTP problem.

Post by danicampora » Sat Oct 10, 2015 12:18 pm

Theo, your connector might had a solder problem, but anyway it takes quite some force to snap the pads from the PCB. Is there any reason you had to pull the cable so hard?

Cheers,
Daniel

Theo
Posts: 4
Joined: Fri Oct 09, 2015 4:42 pm

Re: Missing pyb, serial console and FTP problem.

Post by Theo » Sat Oct 10, 2015 1:06 pm

Hi Daniel,

I don't think I exerted that much force really, maybe I pulled a bit "up" as well as back, but not so much that the connector would come off under normal circumstances. I can of course send the damaged one back to you if you want to examine the soldering for yourself, a replacement would be very much appreciated nonetheless.

Thanks,
Theo

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

Re: Missing pyb, serial console and FTP problem.

Post by danicampora » Sat Oct 10, 2015 1:28 pm

No need to ship it back. Just PM me your name and I'll send another board to you.

BeranekCZ
Posts: 2
Joined: Mon Oct 12, 2015 9:12 pm

Re: Missing pyb, serial console and FTP problem.

Post by BeranekCZ » Mon Oct 12, 2015 9:18 pm

Hi, I had same problem. Every tutorial works with pyb. So I was looking for pyb and nothing. Thanks for information about package renaming. It was quite confusing.

Post Reply