If this were a larger project I think generating my own ID's would be the way to go. I'll have to look into it more, but at first glance it looks like it'll get the job done.ĮlEscalador and scruss I think your solutions will work, but they achieve the same thing with more work.
I'll just have to deal with getting the serial number, checking if its been used, and printing the stickers for each of them. Thank you all for the answers! I think for now I like rpdom's solution of using the Pi's serial number since it allows me to use the exact same SD card image for all of them. Their Pi will automatically connect to a channel named, and they can enter that same channel name into their mobile app to connect to the Pi and send/receive messages. Like ElEscalador said, I'm not trying to secure my Pi (I've seen many threads asking that question), this is for manufacturing convenience.ĭougieLawson, I think maybe you're misunderstanding that the person who buys the Pi MUST know this unique ID. Any way that I can automate this or speed up the process is better than doing each manually. To summarize: I want a way to copy SD cards and give them each a hard-coded unique ID/product key and print that ID on a sticker to include in the box. I think using an SD duplicator would still help even if I have to manually generate and add an ID afterwards. csv format on my PC which I could then print on stickers, but the CID is 120 characters and I can't have my users manually entering that on their phone lol. Nexcopy provides a way for me to make 20 duplicates at a time and get the unique CID of each in. I want the user to be able to download my app, enter their unique ID from the sticker into the app, and have their phone subscribe to the same channel so they can control my product remotely. Why am I doing this? When my product is turned on and connected to the internet it will subscribe to a Pubnub channel with the name "company_". I expect 100-1000 sales in the first year so manually doing this for each of them isn't ideal. I also want to print this ID on a sticker and include it in the box of the corresponding RPi. The best solution I've found is Nexcopy, but I'm not sure it solves my problem.īasically my issue is that I will be selling a product with an RPi built in and I want the SD cards of each product to be the same except with a unique ID (~16 characters) hard-coded into each of them.
Hi, I have been trying to figure out the simplest way to solve this problem and haven't come across anything similar online so if you have any suggestions or relevant links I really appreciate the help.