Reading serial number etc. via API

Frequent questions asked online, offline, in forums are answered here
Post Reply
Posts: 6
Joined: Thu May 30, 2019 1:25 pm

Reading serial number etc. via API

Post 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 ... -(compass)

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

Any ideas?



User avatar
Site Admin
Posts: 305
Joined: Tue Jan 26, 2016 7:06 pm

Re: Reading serial number etc. via API

Post by admin »

Yes, you connect over USB and see in the Dashboard - top-right corner.
Regarding API - my colleague will check and comment later

Posts: 327
Joined: Sat Feb 06, 2016 4:03 pm

Re: Reading serial number etc. via API

Post by smoker77 »


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.

Post Reply