Trying to work out how to get the device serial number, I’ve come up with the following but looks like the hal system space is not available in the user space. Is there something I can do to make it available?
So we can retrieve the serial number when the device is in listening mode and connected to a USB terminal by typing the letter “i”. With this being known there must be a way to do this within the firmware.
I would like to rename the device’s advertising name with “SomeName-123456” with the last six of the serial as is currently used in the advertised name. I would just like to replace “Argon” with our product name.
Listening mode is built into the firmware and executes in that context. It has access to more than what is exposed to user mode programs. As far as I can tell Device serial number is not exposed. Only Device ID, which is also unique, but not the same as serial number. I suspect that to get serial number from your code you would have to modify DeviceOS.