06-25-2012 08:59 PM
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
06-25-2012 10:39 PM
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.
06-26-2012 07:09 AM
How exactly are the data stored? In what exact format? Are we looking a string (ex: "FF") or binary data (ex: 0xFF)?
06-26-2012 07:48 AM
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.
06-26-2012 08:48 AM
@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.
06-26-2012 08:51 AM
String subset and Convert hexstring to number should get the data out.
/Y
06-26-2012 10:15 AM
@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.
06-26-2012 12:47 PM
@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