[chirp_devel] [patch] doesn't recognize multiple comm ports in Win 7 - issue #2783
Alex K
Sat Oct 10 12:24:04 PDT 2015
Yes, in the select list of the port, the port looks like "\\.\COM10". A bit
discouraged, but it works. I'll try to find and correct the selection list.
Ok. I get it. I'm not very familiar with the structure of the CHIRP. But
give me a day or two, I'll deal with it.
2015-10-10 18:42 GMT+03:00 Dan Smith via chirp_devel <
chirp_devel at intrepid.danplanet.com>:
> > # HG changeset patch
> > # User Alexey K <lepik.stv at 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
> _______________________________________________
> chirp_devel mailing list
> chirp_devel at intrepid.danplanet.com
> http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
> Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20151010/c9d53daa/attachment-0001.html
More information about the chirp_devel
mailing list