LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

whats the best way to extract hex data from control code a Intel format

Does anyone know an easy way to extract the green set of data from this EEPROM dump?

 

 

:020000040000FA

:10420000110022003300440055006600770088004A

:104210009900AA00BB00CC00EE00FF00FF00FF00E9

:10422000FF00FF00FF00FF00FF00FF00FF00FF0096

:10423000FF00FF00FF00FF00FF00FF00FF00FF0086

:10424000FF00FF00FF00FF00FF00FF00FF00FF0076

:10425000FF00FF00FF00FF00FF00FF00FF00FF0066

:10426000FF00FF00FF00FF00FF00FF00FF00FF0056

:10427000FF00FF00FF00FF00FF00FF00FF00FF0046

:10428000FF00FF00FF00FF00FF00FF00FF00FF0036

:10429000FF00FF00FF00FF00FF00FF00FF00FF0026

:1042A000FF00FF00FF00FF00FF00FF00FF00FF0016

:1042B000FF00FF00FF00FF00FF00FF00FF00FF0006

:1042C000FF00FF00FF00FF00FF00FF00FF00FF00F6

:1042D000FF00FF00FF00FF00FF00FF00FF00FF00E6

:1042E000FF00FF00FF00FF00FF00FF00FF00FF00D6

 :10430000FF00FF00FF00FF00FF00FF00FF00FF00B5

:10431000FF00FF00FF00FF00FF00FF00FF00FF00A5

:10432000FF00FF00FF00FF00FF00FF00FF00FF0095

:10433000FF00FF00FF00FF00FF00FF00FF00FF0085

 :10434000FF00FF00FF00FF00FF00FF00FF00FF0075

 :10435000FF00FF00FF00FF00FF00FF00FF00FF0065

:10436000FF00FF00FF00FF00FF00FF00FF00FF0055

:10437000FF00FF00FF00FF00FF00FF00FF00FF0045

:10438000FF00FF00FF00FF00FF00FF00FF00FF0035

:10439000FF00FF00FF00FF00FF00FF00FF00FF0025

:1043A000FF00FF00FF00FF00FF00FF00FF00FF0015

 :1043B000FF00FF00FF00FF00FF00FF00FF00FF0005

:1043C000FF00FF00FF00FF00FF00FF00FF00FF00F5

 :1043D000FF00FF00FF00FF00FF00FF00FF00FF00E5

 :1043E000FF00FF00FF00FF00FF00FF00FF00FF00D5

 :1043F000FF00FF00FF00FF00FF00FF00FF00FF00C5

 :02401200FF3F6E

 :00000001FF

0 Kudos
Message 1 of 8
(3,114 Views)

You could use a regular expression like the following. You didn't indicate if you needed to do this for all the lines or just one. But you should get the general idea.

 

Intel Regex.png



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 8
(3,104 Views)

How exactly are the data stored?  In what exact format?  Are we looking a string (ex: "FF") or binary data (ex: 0xFF)?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 8
(3,087 Views)

crossrulz,


Intel Hex Format is a text format describing binary data, usually used for chip programming devices. Besides records for the actual data itself it also allows for addressing records, such that you only need to have the data in the file that needs to be written to the chip, even if the various areas are all over the address range of the chip. Since it is a well known format for hardware developers, some people coming here assume that everybody knows what it is. Of course many true softies may never have heard of it.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 8
(3,078 Views)

@rolfk wrote:

crossrulz,


Intel Hex Format is a text format describing binary data, usually used for chip programming devices. Besides records for the actual data itself it also allows for addressing records, such that you only need to have the data in the file that needs to be written to the chip, even if the various areas are all over the address range of the chip. Since it is a well known format for hardware developers, some people coming here assume that everybody knows what it is. Of course many true softies may never have heard of it.


rolfk, thanks for the information.  I was not aware of this.  I guess I am a true softie even with my EE background.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 8
(3,068 Views)

String subset and Convert hexstring to number should get the data out.

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 8
(3,065 Views)

@Yamaeda wrote:

String subset and Convert hexstring to number should get the data out.

/Y 


You could do this but why? The above regular expression will grab all the desires parts in one shot. Using the string subset method you would need a loop and keep track of the index to grab all of the desired parts.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 7 of 8
(3,054 Views)

@Mark_Yedinak wrote:

@Yamaeda wrote:

String subset and Convert hexstring to number should get the data out.

/Y 


You could do this but why? The above regular expression will grab all the desires parts in one shot. Using the string subset method you would need a loop and keep track of the index to grab all of the desired parts.


I love regexp's but i find it often takes me a long time to set them up correctly. They are Magic, as in: "Any technology advanced enough is indistinguishable from magic." 😉

 

 /Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(3,045 Views)