Hi all,
What's the best format of data exported from PC software into an electronic product (via USB).
The product is an electronic game counter. Players type in their scored points and select their name, then the level they finished. Later on, the device is connected to USB to import score data (in TXT format), PC software displays graph's of who scored what where etc. Using the same software, user's can add levels, and add players (and much more).
What I don't understand is in what format data should be exported from the PC software so the device can use it? Data would be something like:
>> admin
device name,my electronic pet
password,hellokitty
>> players
john,322
jeremy,300
james,50
terry,41
sarah,392
>> stages
Level 1,16
Level 2,15
Level 3,300
Centre point,245
So, their would be a list of players (anything from 2 to 200), stages (same, 2 to 200) - Their will be sub-categories as well. The device itself will have a USB connection, a simple Dot Matrix LCD, and an 8-bit MCU with C-Language code/software. What I'd like to know is how the PC software should export the above data?
For example, it could be exported in a TXT file, and when for example the players need to be displayed 1 by 1 on the LCD - the MCU will search in TXT file for PLAYERS sub-section, then display Line 1/row 1, then row 2, etc etc (I don't know the right terms) - at the end of PLAYERS, i guess some sort of END or return to row 1 prompt?
But then I think... TXT file is not appropriate - some other file extension would be easier for the MCU to work with...
Hoping for some insight - many thanks
What's the best format of data exported from PC software into an electronic product (via USB).
The product is an electronic game counter. Players type in their scored points and select their name, then the level they finished. Later on, the device is connected to USB to import score data (in TXT format), PC software displays graph's of who scored what where etc. Using the same software, user's can add levels, and add players (and much more).
What I don't understand is in what format data should be exported from the PC software so the device can use it? Data would be something like:
>> admin
device name,my electronic pet
password,hellokitty
>> players
john,322
jeremy,300
james,50
terry,41
sarah,392
>> stages
Level 1,16
Level 2,15
Level 3,300
Centre point,245
So, their would be a list of players (anything from 2 to 200), stages (same, 2 to 200) - Their will be sub-categories as well. The device itself will have a USB connection, a simple Dot Matrix LCD, and an 8-bit MCU with C-Language code/software. What I'd like to know is how the PC software should export the above data?
For example, it could be exported in a TXT file, and when for example the players need to be displayed 1 by 1 on the LCD - the MCU will search in TXT file for PLAYERS sub-section, then display Line 1/row 1, then row 2, etc etc (I don't know the right terms) - at the end of PLAYERS, i guess some sort of END or return to row 1 prompt?
But then I think... TXT file is not appropriate - some other file extension would be easier for the MCU to work with...
Hoping for some insight - many thanks