Reading serial number etc. via API

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

Reading serial number etc. via API

Postby einzelheinz » Fri Aug 16, 2019 9:33 am

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

User avatar
admin
Site Admin
Posts: 295
Joined: Tue Jan 26, 2016 7:06 pm
Contact:

Re: Reading serial number etc. via API

Postby admin » Fri Aug 16, 2019 3:26 pm

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

smoker77
Posts: 239
Joined: Sat Feb 06, 2016 4:03 pm

Re: Reading serial number etc. via API

Postby smoker77 » Sat Aug 17, 2019 7:33 pm

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.
Attachments
mm_api_cpu_id.PNG


Return to “FAQ”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests