Knowledge Base
HOME » KNOWLEDGE BASE » FORUM

Problem configuring OOK mode

Hello,

I'm able to get two SX1272s to communicate over FSK using the SX1272PingPong example, but when I try to change to OOK they aren't receiving each other's messages.

I've kept the example code identical other than adding in this line under "case MODEM_FSK" in "SetModem", in the "sx1272.cpp" library file:

Write( REG_OPMODE, ( Read( REG_OPMODE ) & RF_OPMODE_MODULATIONTYPE_MASK ) | RF_OPMODE_MODULATIONTYPE_OOK );

It seems like this is all that's needed to go from FSK to OOK mode (keeping all other params / registers the same as what was set through the example FSK code).

What am I missing to enable OOK?

Thank you,
Steven
File Attachments
sx1272.cpp_.zip  (File Size: 8KB - Downloads: 10)