Page 1 of 1

Reading serial number etc. via API

Posted: Fri Aug 16, 2019 9:33 am
by einzelheinz
Hi all,

is it possible to read a unique identifier / serial number identifying a device via USB/serial?

Motivation: We have the hedgehog directly being read. We calibrate the IMU data as described in https://github.com/praneshkmr/node-lsm3 ... r-(compass)

and we would like to store the offsets for a given hedgehog, so that they can be configured automatically.

Any ideas?

Regards,

Andreas

Re: Reading serial number etc. via API

Posted: Fri Aug 16, 2019 3:26 pm
by admin
Yes, you connect over USB and see in the Dashboard - top-right corner.
Regarding API - my colleague will check and comment later

Re: Reading serial number etc. via API

Posted: Sat Aug 17, 2019 7:33 pm
by smoker77
Hello,

Reading of CPU ID is already implemented in API.
The example coming with API prints CPU ID of all detected devices (see attached screenshot).

The function in the example which reads ID is:
bool mmGetVersionAndId(uint8_t address, MarvelmindDeviceVersion *mmDevVersion);
CPU ID returned by this function is 32-bit integer value which if printed as hexadecimal will be shown like on the screenshot and on the sticker on the beacon or modem.