[chirp_devel] little utility to watch and print binary changes to files

Jens J.
Thu Oct 31 15:49:52 PDT 2013


Here is a quick and dirty "binary diff watcher" to show hex and binary differences and the offsets of two files.

The general idea is to take control sample image file, and then edit a second copy of it in whatever program so that you can see what is getting twiddled.

This is a little bit faster cycle than looking at in a hex editor.

If we can refine this a bit and make it more useful, perhaps it's worthy of committing to tools folder...

-Jens
AF5MI

usage:
bincmp.py [--offset <start_at_hex_offset>] [--watch] -1 <file1> -2 <file2>

example:
$./bincmp.py -1 ft90-test.img -2 ft90-test2.img 
1: ft90-test.img  2: ft90-test2.img
@0105h
1:41h, 01000001b
2:44h, 01000100b
@010Fh
1:00h, 00000000b
2:33h, 00110011b
bytes read: 4063
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20131031/03db4d0f/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bincmp.py
Type: text/x-python
Size: 1407 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20131031/03db4d0f/attachment-0001.py 


More information about the chirp_devel mailing list