I'm planning to run a business Charging Station. To register that charging station in my server I need the custom id (Device ID).
In my scenario. I have an img of my program. Anyone can download the img and put it on their raspberrypi. I want to create a custom id for every raspberry pi.
I'm planning to use serial and hardware from /proc/cpuinfo
. But I don't have any idea on how to do base on my preferred id.
Do you have any Idea?
Preffered ID:
IDHQ321001
IDAZ74190i
IDHQ621AQW
/proc/cpuinfo
or how to generate these "preferred ID" strings? How are the two supposed to be related & is it unique to the Raspberry Pi? – Roger Jones Apr 27 '20 at 08:05BCM2835
- there's no point using that as any sort of input to your algorithm - now, since the serial number is 64 bits, to get 8 byte serial number will require some hashing, since you simply can't represent 64 bits in 8 bytes – Jaromanda X Apr 27 '20 at 09:09