Get SERIAL NUMBER from device using Datalogic SDK

Hi,

i made an app for Datalogic Skorpio X5 with android 10 and i want to get SERIAL NUMBER for each device, so i can associate serial number to user logged in. In android 10+ google removed the possibility to use Build.getSerial() so i decided to use it from Datalogic SDK.

Unfortunally com.datalogic.device.info.SYSTEM.SERIAL_NUMBER always NULL (version 1.31).
I checked the project on GITHUB and i found that the stati string is set to NULL… Why? Is there another method to retrive serial number?

My goal is to link each device to a user. We have 250+ skorpio x5 managed by Microsoft Intune. On Intune web portal i can see the list of my devices and in case of problem i need to identify exactly the device without looking for serial number on each device.

Thank you

Hello @Thomas_Vetrugno,

As reported in the SDK documentation (see SYSTEM - Datalogic SDK version 1 | Android Add-on) the SERIAL_NUMBER field has been made available starting from the SDK revision 1.28.
This required two elements:

  1. that your application is built by referencing a version of SDK equal or greater than 1.28
  2. and that the firmware of the device supports the SDK 1.28.

In case of and Android Studio application, for the first requirement, you typically need to edite the module’s build.gradle file by adding a dependency for example in this way:

dependencies {
    implementation 'com.github.datalogic:datalogic-android-sdk:1.30'
}

About the SDK version supported by your device, you can check it by looking under “Settings” / “Datalogic Setting” / “Device Information”:

.

If the firmware of your device does not support SDK 1.28 yet, you need to update the FW to the most recent release.

NOTE:
You can find the official documentation on the SDK version supported by your device by checking the history contained into the Release Notes document of the latest firmware of the Datalogic Skorpio X5 (currently v2.12.008) .

~

NOTE:
Another quick reference table for the supported devices, is available also on the SDK online documentation, at the section Datalogic Android SDK - Supported devices

Firmware Update
The firmware update for Andriod Datalogic devices with GMS support requires a valid Shield Service Contract. For more information on the Datalogic Shield program, please visit: www.datalogic.com/Shield .

Here are step-by-step instructions on how to update a Datalogic device with Shield firmware: download PDF here .
Note that the Shield program has a grace period allowing “free” downloads for 90 days from the device ship date (could be ship date to distributor or reseller).
This date is the same as warranty start date as can be found using the warranty lookup tool we have on our extranet: https://partnernet.datalogic.com/warranty-status-look-up/26/16/fm

If instead your device is a demo unit, please contact your business partner or our local sales contact for a replacement.

Simone Callegari
Datalogic Mobile Products Specialist - SW Engineer

For further info on getting SERIAL NUMBER on different device OSs releases, see also:

Simone Callegari
Datalogic Mobile Products Specialist - SW Engineer

Thank you for the response, very helpfull! On the devices we have version 1.27, that’s why serial_number isn’t working.
Thank you again

1 Like