I have a speech file on a alarm device i'd like to change/rerecord. the files are in VOX format ADPCM (NLEN1.bin) and i can play them in audacity. and re record them in cool edit. successfully created the same 512kb file size the problem is putting them back to the alarm device. i need to supply a bsc file with CRC values from the speech files. how do i get the CRC values for my new recorded speech files?
if i do a CRC check on the original files i cant get the values given in the bsc file. since i am reverse engineering, i assume i need CRC16
BSC file:
4278904898 NLEN1.bin
4280806306 NLEN2.bin
4280731940 NLEN3.bin
4291163785 NLEN4.bin
With a bit of "observing" with IDA and Udis86 and also a bit of Python hacking, I was able to determine the checksum scheme used with the
.bin
and.bsc
files.Here's a little Python code (from within 'ipython') that shows how to generate the required checksum:
N.B.: The program appeared to sum exactly 524288 bytes in each
.bin
file.N.B.: The Python above could be made faster/smaller if desired.
EDIT
Here's the "script" without the ipython line numbers, etc., and hopefully works on your Windows platform.