Pages: [1]   Go Down
Author Topic: Generate Serial number (id code) with sd card???  (Read 940 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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....
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 224
Posts: 13921
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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?)
Logged

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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....


Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 224
Posts: 13921
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-wink

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.
Logged

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: