pyserial on freebsd 10.10 i386

Nagy László Zsolt gandalf at shopzeus.com
Sat Oct 18 11:17:18 CEST 2014


I'm trying to open a serial port with pyserial on a Compaq Deskpro EN 
machine. Operating system is FreeBSD 10.10 RELEASE, i386.

root at merleg:~ # kldload scc
root at merleg:~ # python2.7 -m serial.tools.list_ports
no ports found
root at merleg:~ # whoami
root


Here are all the devices:

root at merleg:~ # ls /dev

acpi            ctty            klog            stdin           ttyva
ad0             cuau0           kmem            stdout          ttyvb
ad0p1           cuau0.init      log             sysmouse        ttyvc
ad0p2           cuau0.lock      lpt0            ttyu0           ttyvd
ad0p3           cuau1           lpt0.ctl        ttyu0.init      ttyve
ada0            cuau1.init      mdctl           ttyu0.lock      ttyvf
ada0p1          cuau1.lock      mem             ttyu1           ufssuspend
ada0p2          devctl          midistat        ttyu1.init      ugen0.1
ada0p3          devstat         mixer0          ttyu1.lock      ugen0.2
agpgart         fd              nfslock         ttyv0           uhid0
apm             fd0             null            ttyv1           ukbd0
apmctl          fido            pass0           ttyv2           urandom
atkbd0          geom.ctl        pass1           ttyv3           usb
audit           gptid           pci             ttyv4           usbctl
bpf             io              ppi0            ttyv5           xpt0
bpf0            kbd0            pts             ttyv6           zero
cd0             kbd1            random          ttyv7
console         kbd2            sndstat         ttyv8
consolectl      kbdmux0         stderr          ttyv9


And here is what I see in dmesg:

root at merleg:~ # dmesg | grep uart

uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0

uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0

Obviously the question is: how do I open the COM port from pyserial on 
this machine?






More information about the Python-list mailing list