FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: FT_GetDeviceInfoList non-ASCII serial problem  (Read 10275 times)

terminator_le

  • Newbie
  • *
  • Posts: 1
    • View Profile
FT_GetDeviceInfoList non-ASCII serial problem
« on: November 14, 2022, 01:47:51 PM »

we have encountered a problem with libftd2xx v1.4.27 on linux
FT_GetDeviceInfoList fills FT_DEVICE_LIST_INFO_NODE.SerialNumber with ASCII characters only
any non-ASCII character gets replaced with `?` == 0x3f
problem location best guess is: libusb_get_string_descriptor_ascii() at libusb included within driver package
same problem is with FT_GetDeviceInfo

while the same code works well on windows: serial number is returned correctly

can you please give a hint: how to retreive serial number value without any non-ASCII replacement?
« Last Edit: November 15, 2022, 06:51:47 AM by terminator_le »
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 892
    • View Profile
Re: FT_GetDeviceInfoList non-ASCII serial problem
« Reply #1 on: November 15, 2022, 04:35:59 PM »

Hello,

The solution would be to only use Serial Number or Description with ASCII characters.

You can use D2xx Programming functions in Linux to reprogram or you can use FT_PROG on Windows.

The alternative driver that you can try is LibFTDI which is an open source library/driver but is not created/supported by FTDI:

https://www.intra2net.com/en/developer/libftdi/

This third party solution includes the source so may suit you if you need to make changes to the source.

Best Regards,
FTDI Community
Logged