Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    what is this data anyway? Commented Jun 30, 2015 at 9:05
  • 1
    There's no spec for the format or anything? If you're just reverse engineering then you're gonna keep encountering the unexpected until youn don't - back engineering is rarely easy. Else, if it's documented, then instead of handling outside data samples, try instead to create your own that some program which already understands to also understand yours. Commented Jun 30, 2015 at 9:14
  • 1
    @mikeserv I added the link to specs in the body of the question and also a picture about a general format. Note I simplified the challenge for this question by only considering splitting by event trailers called fafafafa. Commented Jun 30, 2015 at 9:21
  • Ok, you're doing the wrong thing entirely. You need to write a program - C or something - that can handle arbitrarily sized data blocks in a stream byte for byte and which can adjust its buffers on the fly. You're wasting your time w/ grep and similar here. The fafafa doesn't always mean fafafa - sometimes its a contextual delimiter and sometimes its data. Commented Jun 30, 2015 at 9:29
  • 1
    Well, by my (brief) reading of it, I guess the ADC mode should be safe. Have you run strings -1 on the binary? You should get like increment\nletter\nincrement\nletter... most of the time... Commented Jun 30, 2015 at 9:42