muccc / iridium-toolkit

A set of tools to parse Iridium frames
482 stars 112 forks source link

bch time #40

Closed tianyasy closed 2 years ago

tianyasy commented 2 years ago

the bch message brings the time( it seems like the frame_id), does it mean the time the sv build the bch frame?

Sec42 commented 2 years ago

Not sure what you mean by "bch". If you mean the time in the IBC frames: to our current knowledge that references the time of the start of the signal (preamble) of the start of the frame that contains the IBC packet.

And of course you then need to take the travel time of the signal from satellite to the receiver into account.

I have some changes to reassembler.py in the works that will hopefully clarify this a bit.

schneider42 commented 2 years ago

Addendum: It specifies the time at the start of the 90 ms L-Band frame that contained the IBC frame. The slot value tells you in which DL slot the IBC frame was sent.

The following code show cases the exact calculation. Please take into account that the time the signal took to reach you is not compensated.

https://github.com/muccc/iridium-toolkit/blob/39f12003fdee7494534d01398eecb45bc6b85d6e/reassembler.py#L520-L536