manuelbl / JavaDoesUSB

USB library for Java
MIT License
136 stars 10 forks source link

Serial number with binary data #4

Open manuelbl opened 1 year ago

manuelbl commented 1 year ago

Some USB devices, e.g. the ST-Link adapters, return a serial number that isn't a valid Unicode string but rather contains binary data.

A first analysis shows that macOS detects this and treats it differently. This isn't necessarily what we want.

Serial numbers with binary data should be treated consistently across all platforms. And they should retain us much information as possible.