Display Device Name as QR Code in Lockdown

Solved
LC
Leon Callsen Silver Contributor
Taneri Consulting GmbH (TCG Global)

Hi Everyone, 

I hope you all had a great start into the week. 

I am searching for a solution to display a QR or other type of barcode in the starting page of a lockdown. 
We want to use a barcode instead of the device name to identify the devices. 
At the moment there are stickers on the outside of the device but in an industriell environment the devices often loose the stickers. 

Any idea how to do this? 

Thank you very much. 

13 days ago
Android
ANSWERS
RS
Rafael Schäfer Diamond Contributor
13 days ago

I think you need to put the generation into the Lockdown as JS code which stores the devicename as QR as a picture and then show that in Lockdown.

never done this (neither in Soti nor outside) but maybe this could help:

https://davidshimjs.github.io/qrcodejs/

LC
Leon Callsen Silver Contributor
13 days ago

Hi Rafael, 

Thank you very much for the input. 
Do you think I could automate the generation of device names?
What I see there will be a need for hundreds of customs lockdown templates. 

RS
Robert Schäfer
12 days ago

Hi Leon,

You would utilise the macro %Devicename% to pull in the device name from MobiControl and use that in your javascript to generate a QR code uniquely per device. That means you have one kiosk template.

However, because of the way the lockdown works, it would regenerate the QR code each time the lockdown loads e.g. pressing the home button, restarting the device ect. Depending on the library you use for generating the QR code there may be a slight delay before the QR code appears. I don't think there should be a performance impact to general kiosk functionality though.

The device name itself you would set in mobicontrol which if you can auto generate in various different ways.

 

 

RS
Rafael Schäfer Diamond Contributor
12 days ago

@Robert Schäfer No recreation if you check first if the QR-code image already exists. And to work around device name changes, you could use the %devicename% for naming and pointing to the file, so QR code would be only (re-)created when device got renamed and also trigger a checkin when creation was done.

This should cover the delay a bit and solve the quite often recreation of the QR code.

But yes, ofc you have to use the macro to have only one template, sorry i thought that was clear @Leon Callsen as i thought you use that already for displaying the name in the lockdown.

But first you might to need to check if this QR code generation in general works in lockdown and then move/change it step by step to the way you need it finally as much flexible as possible.

Solution