@Ryan:

I was trying to ditch the pyserial lib specifically because of problems on
Windows, notably:

   https://github.com/pyserial/pyserial/issues/283

But since I have a workaround, I'll stick with that until someone tells me
how to do it with libftdi...

- Robert


On Thu, Mar 8, 2018 at 5:59 PM, Ryan Tennill <[email protected]>
wrote:

>
>
> On 3/8/2018 7:48 PM, Robert Poor wrote:
>
>> [Disclaimer: I'm using the pylibftdi library as my sole access to the
>> libftdi library, so pardon any translation errors...]
>>
>> I'm running in an environment where there may be multiple FTDI devices
>> plugged in.  And I'm running other code (a Modbus library) that needs to
>> know the port names (i.e. /dev/cu.usbxxx on unix/osx or COMxx on Windows)
>> for each FTDI device.
>>
>> I'm using ftdi_usb_find_all() (via pylibftdi's Device.list_devices()) to
>> get the list of serial numbers -- that works.  But I need to know the port
>> names for each device.
>>
>> Is there a call in libftdi that will produce the port name for a given
>> serial number?
>>
>> TIA.
>>
>> - rdp
>>
>> Pyserial can do this. http://pyserial.readthedocs.io/en/latest/tools.html
>
> Not sure how well it works on osx/windows but I know it works on Linux.
>
> Ryan
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [email protected]
>
>


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   

Reply via email to