Coder Social home page Coder Social logo

bch time about iridium-toolkit HOT 2 CLOSED

muccc avatar muccc commented on September 24, 2024
bch time

from iridium-toolkit.

Comments (2)

Sec42 avatar Sec42 commented on September 24, 2024

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.

from iridium-toolkit.

schneider42 avatar schneider42 commented on September 24, 2024

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.

def process(self,q):
q.uxtime=datetime.datetime.utcfromtimestamp(q.time)
# correct for slot:
# 1st vs. 4th slot is 3 * (downlink + guard)
q.itime+=datetime.timedelta(seconds=q.slot*(3 * float(8.28 + 0.1))/1000)
# correct to beginning of frame:
# guard + simplex + guard + 4*(uplink + guard) + extra_guard
q.itime+=datetime.timedelta(seconds=(1 + 20.32 + 1.24 + 4 * float(8.28 + 0.22) + 0.02)/1000)
# correct to beginning of signal:
# our timestamp is "the middle of the first symbol of the 12-symbol BPSK Iridium sync word"
# so correct for 64 symbols preamble & one half symbol.
q.itime+=datetime.timedelta(seconds=(64.5/25000))
# no correction (yet?) for signal travel time: ~ 2.6ms-10ms (780-3000 km)

from iridium-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.