Is there a way to retrieve the serial number (or another unique identifier) of a Datalogic Joya A6 cradle programmatically? We weren’t able to find a method in the online API documentation, only the slot numbers (1,2 or 3) seem retrievable.
Currently the only option we see is programming the 512 bytes in the CustomArea with a unique id before a wall of cradles can be used. This isn’t ideal, because other apps can overwrite this data.
Is there another, more robust, solution?
At the present moment we do not provide any API for reading the Joya Cradle serial number.
Joya Cradles, especially wall-mounted ones, are often assembled in batteries of numerous elements, for convenience in a haphazard manner (i.e. not installed sorted by serial number).
The Custom Area is precisely intended to allow an identifier to be assigned to each single cradle.
Unfortunately, there is no preemptive way to prevent two applications from overwriting the custom area. Since these are applications that run in a controlled environment, the integrator is considered to have full control of the applications running on the device.
If you are concerned about conflicts between multiple applications and need to ensure that no one has changed the custom area’s values, you can add a CRC to the array of values, and check for the array integrity each time you use those values again.
L3 Mobile Computer Specialist Support SW Engineer | Datalogic
Thank you for your reply.
In the meantime we’ve confirmed that at least one other app on the device writes to the Cradle custom area, so currently our only option is to coordinate with the developers of this app and trust each other. This is not ideal.
Does this mean that technically it would be possible? In that case I’d like to make that feature request.
At the moment this is not possible, but we are always happy about new suggestions and ideas for improvement and we forwarded your message internally. However, we cannot give you a time frame for a possible implementation in the future.
If you need to solve any specific issue, I suggest you to get in contact with our local technical support team, by filling the module at Technical Support - Datalogic, or eventually by searching for the same Datalogic Support page for your language.
Mobile Products L3 Specialist SW Engineer
In addition to our feature request for a unique identifier from our previous post, we have a question.
What happens when two apps simultaneously attempt to READ from the cradle CustomArea? Will this work without issue?