Data format conversion program
$30-100 USD
Paid on delivery
Data conversion problem, mostly hex to decimal, simple math.? Input a text file and output same file with computed data.
## Deliverables
Command line program is fine with command line parameters for input and output files.
Simple one-screen GUI form is also OK.
Visual C++ Express 2008 or Visual Basic Express 2008 please so I can self-maintain.? Simple straightforward code, don't get fancy or so efficient I cannot read the code.
Read in a .txt file and output a .txt file.? Sample input file is shown below.
Output file is same as input file, but to the right of the core data, insert additional information computed from the hex information.
There are many different record types, but the ones of interest right now start with [A4][09][4E][00].
So, RECORD TYPE 1 example:?
1031332.4060 Rx - [A4][09][4E][00][82][B2][7E][7C][D3][7B][B2][7A][B1]
After the? [A4][09][4E][00], convert the next byte? to Decimal and append to the line.
The next byte is a data point count.? Counts roll over after FF back to 00
Case Count {
? ? ? ? No change - output "-"
? ? ? ? Increment by 1 - Output "-"
? ? ? Incrememnt by? more than 1, output the # of missed counts, so if it changes from A3 to A5, output a? 1, if it changes from? B8 to BC then output a 4.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
The next six bytes should be combined in pairs and converted to decimal and output as three integers with spaces between them.? (not sure of byte order... source code should allow me to adjust this if needed)
The last byte is ignored.
So... the above line becomes something like:
1031332.4060 Rx - [A4][09][4E][00][82][B2][7E][7C][D3][7B][B2][7A][B1] 82? -? AAAAA BBBBB CCCCC
where AAAA BBBBB CCCC are the combination of the byte pairs converted to decimal, and the - assumes that there is no change or only single increment in the count.
Record Type 2:?
1031334.6090 Rx - [A4][03][40][00][01][02][E4]? ?
Append to the line "Rx Error"
VARIANCES/COMMENTS:
If there is any text after the last ], this is a comment someone has put in the .txt file, insert the newly programmed information (per above), and THEN output the comments that have been added.? Ie if the example is?
1031332.4060 Rx - [A4][09][4E][00][82][B2][7E][7C][D3][7B][B2][7A][B1]? ? Here Is A Note
you output:
1031332.4060 Rx - [A4][09][4E][00][82][B2][7E][7C][D3][7B][B2][7A][B1] 82? -? AAAAA BBBBB CCCCC? ? ? //? Here Is A Note
OTHER RECORD TYPES:
There are likely a few other record types; the code should be written so it is easily maintainable and modifyable by yourself the coder, or myself, or a different coder.? For now, if they are a different type, then please just output the orig. line with nothing appended.
A sample data file is as follows:
1031332.4060 Rx - [A4][09][4E][00][82][B2][7E][7C][D3][7B][B2][7A][B1]
1031332.6090 Rx - [A4][09][4E][00][82][B2][7E][7C][D3][7B][B2][7A][B1]
1031332.8120 Rx - [A4][09][4E][00][81][B3][50][7E][7E][7C][D3][7B][55]
1031333.0150 Rx - [A4][09][4E][00][81][B3][50][7E][7E][7C][D3][7B][55]
1031333.2030 Rx - [A4][09][4E][00][81][B4][1E][80][50][7E][7E][7C][64]
1031333.4060 Rx - [A4][09][4E][00][81][B4][1E][80][50][7E][7E][7C][64]
1031333.6090 Rx - [A4][09][4E][00][81][B5][DD][81][1E][80][50][7E][3B]? ? ? 1031333.8120 Rx - [A4][09][4E][00][81][B5][DD][81][1E][80][50][7E][3B]
1031334.0150 Rx - [A4][09][4E][00][81][B6][97][83][DD][81][1E][80][02]
1031334.2030 Rx - [A4][09][4E][00][81][B7][79][84][97][83][DD][81][60]
1031334.4060 Rx - [A4][09][4E][00][81][B7][79][84][97][83][DD][81][60]
1031334.6090 Rx - [A4][03][40][00][01][02][E4]? ? ? ? ? ?
1031334.8120 Rx - [A4][03][40][00][01][02][E4]
1031335.0150 Rx - [A4][09][4E][00][81][B9][18][87][5E][85][79][84][62]
1031335.2030 Rx - [A4][09][4E][00][81][B9][18][87][5E][85][79][84][62]
1031335.4060 Rx - [A4][09][4E][00][83][BA][D0][88][18][87][5E][85][C6]
1031335.6090 Rx - [A4][09][4E][00][83][BA][D0][88][18][87][5E][85][C6]
1031335.8120 Rx - [A4][09][4E][00][85][BB][81][8A][D0][88][18][87][11]
1031336.0150 Rx - [A4][09][4E][00][85][BB][81][8A][D0][88][18][87][11]
1031336.2030 Rx - [A4][09][4E][00][87][BC][2C][8C][81][8A][D0][88][2B]
1031336.4060 Rx - [A4][09][4E][00][87][BC][2C][8C][81][8A][D0][88][2B]
1031336.6090 Rx - [A4][03][40][00][01][02][E4]
1031336.8120 Rx - [A4][09][4E][00][87][BD][E0][8D][2C][8C][81][8A][1F]
1031337.0150 Rx - [A4][09][4E][00][87][BD][E0][8D][2C][8C][81][8A][1F]
Project ID: #3508482