Can't read from iceFUN usb serial device using pyserial

I'm trying to get the icefunprog programmer (which uses pyserial) working for an iceFUN FPGA board. When I connect the board I get the expected sort of messages:
Nov 27 17:55:39 bob kernel: ugen1.9: <Devantech Ltd. iceFUN> at usbus1
Code:
Nov 27 17:55:39 bob kernel: umodem1 on uhub1
Nov 27 17:55:39 bob kernel: umodem1: <Devantech Ltd. iceFUN, class 2/0, rev 2.00/1.00, addr 58> on usbus1
This creates the expected /dev/ttyU and /dev/cuaU ports. Using the latter, I have tried to run icefunprog, and it never receives anything back from the iceFUN board.

Using exactly the same code on a Mac, it all works fine, using the outrageous name of /dev/tty.usbmodem000000001

Is pyserial known to be broken on FreeBSD, or is this a more general problem with USB serial ports?
 
Surely you mean /dev/cuaU0 and /dev/ttyU0 (where the "0" can be 0 - 9)?
pyserial isn't broken on FreeBSD, but some serial chips are known to be difficult to work with on FreeBSD.
Do you know what serial chip the FPGA board uses? And what speed icefunprog connects at?
 
I left the numbers off of the end as I assumed it would be understood.

The board uses a PIC16LF1459 for it's usb interface, as well as other utilities. According to the code it connects at 19200, no parity and two stop bits. Does any of that actually do anything when over usb?
 
Hmm, the difficult devices were ... different, and they also connected at a much higher speed. So it's probably now that then.
 
Back
Top