472,146 Members | 1,301 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

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 1951

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
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.