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

KISS TNC over UART - is possible? #20

Open
UT4UUB opened this issue Jul 12, 2023 · 9 comments
Open

KISS TNC over UART - is possible? #20

UT4UUB opened this issue Jul 12, 2023 · 9 comments

Comments

@UT4UUB
Copy link

UT4UUB commented Jul 12, 2023

I think, will be great somethin like KISS TNC over UART. For BBS, Packet Radio, APRS. Is possible?

@kronicd
Copy link

kronicd commented Jul 13, 2023

Absolutely I would love to see this. With the new AFSK messaging support it seems it would be a matter of adding UART instead of keyboard/display IO and it would be incredible!

An AUD$28 HT with a KISS TNC onboard would be an absolute game changer.

Not that the spectrum graph and RSSI implementation isn't already a game changer... Thanks for the amazing work!

@kronicd
Copy link

kronicd commented Jul 14, 2023

After testing I have confirmed that BK4819 produces FSK, not AFSK. It will not be useful for general ham radio packet radio (APRS/BBS).

UART FSK may still have some use, but will not be compatible with existing ham infrastructure.

@troilus
Copy link

troilus commented Jul 14, 2023

After testing I have confirmed that BK4819 produces FSK, not AFSK. It will not be useful for general ham radio packet radio (APRS/BBS).

UART FSK may still have some use, but will not be compatible with existing ham infrastructure.

Is FFSK work?

@drspastic
Copy link

from the datasheet:
Besides speech communication, the
BK4815N on-chip FSK data modem
supports F2D and F1W emission to be
used in both FRS and DPMR band for text
message and GPS information exchange.

@kronicd
Copy link

kronicd commented Jul 16, 2023 via email

@kronicd
Copy link

kronicd commented Jul 16, 2023

BK4819_Datasheet_V1.01.pdf

The BK4819 datasheet here states that F2D is indeed included!

@darksidelemm
Copy link

If it indeed does support AFSK (which i think the register map is calling FFSK1200/2400) there are some other considerations:

  • APRS / packet uses NRZI encoding. This would have to be encoded/decoded in software.
  • Apparently packet transmissions use a preamble of 0x7E. It looks possible to configure the FSK modem to use custom sync bytes, and only use 2 of them, so you could maybe set these both to 0x7E and have it trigger on an APRS packet?

Certainly some interesting possibilities, but lots of testing to be sure it works!

@rogerclarkmelbourne
Copy link

rogerclarkmelbourne commented Aug 3, 2023

Generation of NRZI encoding is trivial, there is plenty of code to generate this on github

The flag bytes 0x7e have to be NRZ encoded before sending, so you just build the entire packet including the flags pramble and then send it to the chip.
You just don't include the flag bytes in the CRC calculation
Then assuming the baud rate can be set to 1200 and the tones set to 1200 and 2200Hz , it should work.

@darksidelemm
Copy link

Sure, encoding will probably be fine. Reception might be more difficult...

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

6 participants