Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapper for the horus binary encoder functions #183

Open
darksidelemm opened this issue Sep 16, 2023 · 1 comment
Open

Wrapper for the horus binary encoder functions #183

darksidelemm opened this issue Sep 16, 2023 · 1 comment

Comments

@darksidelemm
Copy link
Member

Would be useful to have a python library which allows generation of horus binary packets, output either as audio, IQ, or perhaps something that can be fed into rpitx.

It looks like the horus_l2_encode_tx_packet function is available within libhorus, so we can probably call that from python using ctypes.

@darksidelemm
Copy link
Member Author

Starting to make a stab at this.

  • ctypes wrappers for the horus_l2 encode/decode functions.
  • Wrapper for CRC16 functions (or can probably just use the existing crcmod ones?
  • Generic decoder wrapper, which checks the checksum and only outputs if the checksum passes (not sure what we'll use this for, but might be handy)
  • Horus v2 packet encoder function.
  • Helper functions to convert encoded packets to useful output formats.
  • Maybe a fsk_mod wrapper to encode packets to audio output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant