469,332 Members | 7,111 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

pyserial win32 port numbering

http://pyserial.sourceforge.net/

"port numbering starts at zero, no need to
know the port name in the user program"
But the implementation in SerialWin32 is
just
(Portnum +1)
So there is no 'start' to the port numbering at all:
there is no assurance that you will have a pySerial
serial port Zero, even if you have 57 Windows Serial
ports.
Renumbering the serial ports to start at zero would sort of make sense
if it was done in a semi-portable way - so you could move from one
machine with two serial ports to another machine with two serial ports.

In Windows, that requires enumerating the serial ports, and assigning a
logical pySerial port number to each.

This is going to become more of a problem, because Windows logo
compliant PC's by definition do not have a serial port 1 or 2 so the
pySerial logical port numbers are likely to start at 2 or 4.

It's already a problem on PC's that have PCI serial port cards (not ISA
serial port cards). The pySerial logical port numbering typically goes
something like 0, 4,5, mapping the Windows serial ports 1,5,6

(david)
Aug 14 '07 #1
0 1825

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Bob Greschke | last post: by
17 posts views Thread by luca72 | last post: by
2 posts views Thread by Jon | last post: by
12 posts views Thread by TonyAm | last post: by
3 posts views Thread by naveen.sabapathy | last post: by
1 post views Thread by JAMoore84 | last post: by
6 posts views Thread by Joe G \(Home\) | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.