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

POCSAG protocol decoder for subghz #2055

Closed
wants to merge 27 commits into from
Closed

Conversation

Shmuma
Copy link
Contributor

@Shmuma Shmuma commented Nov 26, 2022

What's new

  • POCSAG protocol used in pager networks (https://hampager.de/#/). All four types of messages (functions) are supported: BCD, alpha-numeric, alert1 and alert2. CRC of codewords are not validated (yet).

Technically, this is just a first step towards "flipper as a pager" activity and proper FAP is planned for this. But having POCSAG decoder in codebase might still be useful:

  • for procotols experimentation
  • as an example of fixed-rate protocol decoder. As far as I know, this is the only protocol of this sort in flipper, all others are using pulse-width.

POCSAG requires 9-15kHz bandwidth, which is not compatible with default FM modulations. File setting_user.pocsag contains example of custom CC1101 preset to receive POCSAG messages.

Verification

  • You can use provided raw recordings (with all 4 kinds of messages). To test POCSAG "in the wild", MMDVM RPi hat could be used to send the messages over the radio.

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

@Shmuma Shmuma requested a review from gsurkov as a code owner November 26, 2022 16:15
@Shmuma Shmuma marked this pull request as draft November 26, 2022 16:28
@Shmuma Shmuma marked this pull request as ready for review November 26, 2022 16:48
@hedger
Copy link
Member

hedger commented Nov 27, 2022

  • This protocol requires a non-standard modulation profile that's not a part of main firmware
  • SubGHz GUI is suboptimal for displaying text-based messages.

I think this PR should be converted to a separate paging app, similar to Weather Station.

@Shmuma
Copy link
Contributor Author

Shmuma commented Nov 28, 2022

I think this PR should be converted to a separate paging app, similar to Weather Station.

Fully agree. I believe it will happen eventually. But this is more convenient for testing to have this protocol in mainstream rather than is some separate fork.

In the end, weather protocols were also implemented in subghz first and then migrated into separate app.

@skotopes
Copy link
Member

We'd rather to see it as separate app from the beginning. WS was initially implemented in subghz app only because there were no appropriate APIs available for faps.

@skotopes skotopes closed this Nov 29, 2022
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

Successfully merging this pull request may close these issues.

5 participants