L
L
La2ha2013-02-26 10:26:21
Arduino
La2ha, 2013-02-26 10:26:21

HEX to BIN

I'm sorry, maybe I'm asking stupidity (I'm digging into something that has nothing to do with my kind of activity), but almost the whole night of searching on Google did not lead to success.
I'm trying to flash a chip from a printer using arduino.
There is a Hex code .

like this
45 32 50 21 4C 61 6E 63 00 00 01 00 01 00 00 01
00 00 00 00 00 00 00 02 00 00 32 34 30 32 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 90 F2 A3 01 00 00 00 00 00 00 00 00
00 00 00 58 45 52 4F 58 00 00 00 00 00 00 00 00
00 00 96 AF 00 00 C8 EA 00 00 C8 EA 00 00 00 00
00 00 34 BC 00 00 46 50 00 00 4A 38 00 00 00 00
00 00 00 00 FF FF 00 4B 00 00 00 00 00 00 00 00
00 00 00 58 45 52 4F 58 00 00 00 00 00 00 00 00
00 00 96 AF 00 00 C8 EA 00 00 C8 EA 00 00 00 00
00 00 34 BC 00 00 46 50 00 00 4A 38 00 00 00 00
00 00 00 00 FF FF 00 4B 00 00 00 00 00 00 00 00
00 00 00 58 45 52 4F 58 00 00 00 00 00 00 00 00
00 00 96 AF 00 00 C8 EA 00 00 C8 EA 00 00 00 00
00 00 34 BC 00 00 46 50 00 00 4A 38 00 00 00 00
00 00 00 00 FF FF 00 4B 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 FF FF FF 00 FF
FF 01 44 00 04 00 00 10 13 11 20 CD 20 00 00 11
04 52 08 20 FF FF FF FF 0A

Which must be written to the chip.
It turns out to write, but not it, but the byte data type in the form of 0x58 or 1011000.
All the converters that I found somehow did something wrong, but in the form of 0x58 it didn’t give anything at all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2013-02-26
@La2ha

yadi.sk/d/OBk9aVOo2tU1p is this what you wanted?

M
mporshnev, 2013-02-26
@mporshnev

Or just paste the code into a text editor and autocorrect the spaces to "0x". Where it turned out clumsily correct manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question