Thanks to visit codestin.com
Credit goes to github.com

Skip to content

garbled text after setting SN with set_serial_number #429

@Give-me-yasoo

Description

@Give-me-yasoo

Environment

OS: Ubuntu 18.04.5 LTS (bionic)

Python: 3.6+

pyftdi: 0.53

Chip: FTDI FT232R (VID=0x0403, PID=0x6001)

Development setup: Windows (PyCharm SSH remote to Ubuntu host)

Problem (Serial Number Garbled)

When setting a serial number with pyftdi:

from pyftdi.eeprom import FtdiEeprom

eeprom = FtdiEeprom()
eeprom.open("ftdi://::/1")
eeprom.set_serial_number("ADDNAAIMC01")
eeprom.commit()
eeprom.close()

After replugging the device:

Ftdi.list_devices() shows garbled characters instead of "ADDNAAIMC01".

lsusb -v cannot display a valid serial string (iSerial).

However, reading back with eeprom._config.get('serial') still shows the correct "ADDNAAIMC01".

When programming the same serial with FT_Prog on Windows, everything works correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions