# HG changeset patch # User Alexey K lepik.stv@gmail.com # Date 1444479413 -10800 # Sat Oct 10 15:16:53 2015 +0300 # Node ID 2bf8f254d6ac3fce89b0693b6feb9568a4bcf29e # Parent f8d7a8b1f4f57f36be6f6130f83cb8f36dc1b2d5 [patch] doesn't recognize multiple comm ports in Win 7 - issue #2783 Description of the problem in the MSDN: https://msdn.microsoft.com/ru-ru/en-en/library/aa363858(v=vs.85).aspx "To specify a COM port number greater than 9, use the following syntax: "\.\COM10".
Hmm, I was not aware of this bug, but it looks like Jim has confirmed. I really can't think of why this would have changed with the build machine rebuild, as it ended up nearly identical to the original.
diff -r f8d7a8b1f4f5 -r 2bf8f254d6ac chirp/platform.py --- a/chirp/platform.py Thu Oct 08 12:02:04 2015 +0300 +++ b/chirp/platform.py Sat Oct 10 15:16:53 2015 +0300 @@ -29,7 +29,7 @@
ports = [] for i in range(1, 257):
- portname = "COM%i" % i
- portname = "\\.\COM%i" % i
This will result in the drop-down box looking strange for people. Can you please abstract out the act of changing the name? So, for testing, you should test the augmented name, but add just "COM10" to the ports list. Then, we need some indirection again when we go to open the port that they select. Presumably we should just add an opens_serial_port() method to the Platform like list_serial_ports().
Can you take care of that?
Jim, could you test that manually typing in the above pattern allows you to get to COM10+ on your box?
Thanks!
--Dan