piotr022 / UV_K5_playground

426 stars 66 forks source link

KISS TNC over UART - is possible? #20

Open UT4UUB opened 1 year ago

UT4UUB commented 1 year ago

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

kronicd commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

If the message functionality could be moved to use F2D then it should work with APRS & BBS :O

On Sat, 15 July 2023, 1:15 am drspastic, @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/piotr022/UV_K5_playground/issues/20#issuecomment-1636150417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEGU5M34CZXPW7KTDHFNULXQF5BPANCNFSM6AAAAAA2HDY53E . You are receiving this because you commented.Message ID: @.***>

kronicd commented 1 year ago

BK4819_Datasheet_V1.01.pdf

The BK4819 datasheet here states that F2D is indeed included!

darksidelemm commented 1 year ago

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

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

rogerclarkmelbourne commented 1 year ago

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 commented 1 year ago

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