Hello everybody,
I have one question.
Is it possible to make a hardlock or dongle for arduino mini pro board?
For example, if I want to change parameters in device I need to insert a hardlock first.
Hardlock needs to be assign to particular device.
Sure, you can use the Lock bits. Then a high voltage programmer is required to reprogram the board, and the contents are not obtainable thru standard electrical means.
VladimirKojic:
For example, if I want to change parameters in device I need to insert a hardlock first.
Do you mean that user with a special device could plug it in and thereby get access to options within a program that are unavailable without the device?
Or are you just looking for a method to prevent someone from uploading a different program to the Arduino - which, I think, is what @CrossRoads was referring to?
First option. I want to prevent other users to use some features if they dont have a dongle.
For example: I have a machine that works in one speed. If I want to change the speed of machine I need to insert a dongle.
You could have a text file on the USB that contained a password. Set a global boolean variable like adminMode and set it to true when a USB is plugged in with that text file on it.
Then make the dongle another 'arduino' that only responds to your promini.
Set the Lock bits so it only be copied by delidding thru chemical means etc.
If the promini and the dongle don't handshake correctly, then no updates happen.
"I assume that I can clone a dongle if I want to have more then one."
"If so, the user can copy it and that is what I want to prevent."
Resolve the conflict in requirements.
With another processor, you, "the creator", can program more of them. With Lock bits, a "user" cannot readily copy it.
I am trying to make a handshake between two arduino boards but the question is how can I make condition that if the reading of alphanumeric string of 16 characters corespond?
If slave arduino contain same string as master arduino then the master arduino allow some action.
How clever the users trying copy the dongle are? Do you expect them to reverse engineering it, intercepting data etc. or is copying USB/SD card top of their abilities?
Then they will disassemble the machine when you are not looking and replace the Arduino with another one which will accept their dongle and not yours
There are dedicated chips including encrypted memory and secure communication. You may try to look at those. But I think some sort of handshaking on two Arduino-like should suffice. Possibly some small ATTiny in the dongles?