Thanks for the great work, Scott.
Can you describe the checksum byte mentioned earlier in this thread?
Since it appears that open source may not be possible, could you write a brief summary of anything you learned about the format that isn't in Tom's .doc?
How about this.... Use what you've learned from Tom's doc to develop your OSX graphical log parser. Post your free program on this forum and I'll send you my source code as a reference. You can use it to improve your program, you just can't give my source code to anyone else.
As far as the check sum goes. Here's some code to do it. Given that the first three bytes are of a record are in header[3]. The remaining bytes are in buf[]
Code:
//calculate checksum
length = header[2];
for (i=0, xsum=header[2]; i< length; i++)
xsum+= (unsigned)buf[i];
xsum&=0xff;
if(xsum)
{
fprintf(stderr,"Bad record\n");
continue; // Skip record
}
Last edited: