Data format conversion program

Completed Posted Dec 31, 2008 Paid on delivery
Completed 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]

C Programming Engineering Microsoft MySQL PHP Project Management Software Architecture Software Testing Visual Basic Windows Desktop

Project ID: #3508482

About the project

26 proposals Remote project Active Jan 2, 2009

Awarded to:

DrAKkareS

See private message.

$30.6 USD in 5 days
(140 Reviews)
5.4

26 freelancers are bidding on average $55 for this job

eperfections

See private message.

$12.75 USD in 5 days
(236 Reviews)
7.1
renardpaul

See private message.

$85 USD in 5 days
(121 Reviews)
6.7
suryavijayvw

See private message.

$84.15 USD in 5 days
(122 Reviews)
5.7
kevneth

See private message.

$85 USD in 5 days
(39 Reviews)
5.6
v5group

See private message.

$42.5 USD in 5 days
(40 Reviews)
5.5
nafarin

See private message.

$57.8 USD in 5 days
(89 Reviews)
5.3
mobipixelso

See private message.

$85 USD in 5 days
(103 Reviews)
5.3
zenecisvw

See private message.

$15.3 USD in 5 days
(35 Reviews)
5.0
vnoutsourcingvw

See private message.

$85 USD in 5 days
(47 Reviews)
4.7
kingcodersl

See private message.

$33.15 USD in 5 days
(75 Reviews)
4.6
icandoitbiz

See private message.

$85 USD in 5 days
(27 Reviews)
4.6
mahfuzmurshed

See private message.

$17 USD in 5 days
(74 Reviews)
4.5
projexpertvw

See private message.

$85 USD in 5 days
(21 Reviews)
4.8
asalah

See private message.

$42.5 USD in 5 days
(33 Reviews)
4.5
rajhansh

See private message.

$42.5 USD in 5 days
(19 Reviews)
4.2
sthustfo

See private message.

$72.25 USD in 5 days
(16 Reviews)
3.8
droxico

See private message.

$42.5 USD in 5 days
(12 Reviews)
3.3
tusharvb7

See private message.

$68 USD in 5 days
(8 Reviews)
2.8
SamuelsYS

See private message.

$34 USD in 5 days
(7 Reviews)
2.8
DannyCoder

See private message.

$51 USD in 5 days
(15 Reviews)
2.6