Go Down

Topic: Generate Serial number (id code) with sd card??? (Read 1 time) previous topic - next topic


Hi everyone....
is it possible if i would have to create three different text files to sd .....each with serial code inside...??
1.) the first text file would be an id code.....and then arduino reads it ...if the code is validated....arduino will let it pass to the system....if that code is mismatched with what is programmed in arduino...it will not be able to get through the system...(i'm hoping that arduino will first read this text file and then only reads the second one if the id code is valid)
2.) the second text file would be a security code....this is where validity comes whether the card is already used or not.......i'd actually want to dynamically code a serial number that takes only a portion from it and the arduino will only check that portion (it's like checksum......there'd be two portion on the code that will be basis for the checking of the arduino)
3.) third text file would be the data (say,  data would be 20)....it's actually in terms of int.....is it possible? or is it uniform hex throughout...?

please do help...i'd really appreciate it....


is it possible  ...

Yes, I read nothing in your requirements that cannot be done.

Can you post your code you have written sofar?
What works?
What doesn't? (what did you expect and not get?)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


sir i've actually not yet written any that'd be as far gone as generating serial number with sd.....i did a code that only lets arduino read the text files....and i did a while loop ...which ( i made menu program) can only make the menu be activated if card is inserted....but i've not done any with serial number coding...could you please help me sir???

i'm actually expecting that for the first text file....arduino would have to first check if it is valid.....then if it's validated....that'd would be the time the arduino can only go reading the second text file consisting the other security code.....and so on....


Please post your code you have sofar, that makes it easier for me to help you - as I don't want to type too much myself ;)

update - and please use the # button to get proper tags around your code ...
and do a CTRL T in the programming environment to reindent the code

makes it more readable.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131