Forums › BB Series Discussions › format of bbr file › Reply To: format of bbr file
Andrew
Hello Feng,
The software is open source, so the .bbr format is exposed if you want to try to extract information from the file.
The two files of significance would be
https://github.com/SignalHound/BBApp/blob/master/BBApp/src/model/playback_toolbar.h
https://github.com/SignalHound/BBApp/blob/master/BBApp/src/model/playback_toolbar.cpp
The format is a bit simplistic, which does make it simple to parse.
It starts with a header, defined in playback_toolbar.h.
Then there are ‘header::sweep_count’ traces which are laid sequentially out as
– (Header 1 time only)
– 64 bit integer, (standard ms from epoch time, when the sweep was captured)
– header::trace_len 32-bit floats representing the “min” trace
– header::trace_len 32-bit floats representing the “max” trace
– (Repeat last 3 lines until eof)
Everything is saved as binary, so fread will work great.
Let us know if you have any other questions.
