veonik / arduino-cc1101

Arduino library for interfacing with CC1101 transceivers.
GNU Lesser General Public License v3.0
156 stars 52 forks source link

Are FSK & GMSK supported? #11

Open whid-injector opened 6 years ago

whid-injector commented 6 years ago

Hi, I quickly looked at the exmaple sketch and I didn't find any llace were is defined the modulation. Shall infer it is hardcoded to ASK? Or somewhere is possible to switch between those modulations supported by cc1101?

tyler-sommer commented 6 years ago

Hi there, thanks for opening this!

If I understand correctly, the modulation is set here: https://github.com/veonik/arduino-cc1101/blob/master/src/cc1101.cpp#L236 I'm not sure what additional procedures, if any, need to occur when changing the modulation during runtime, however. If you get a chance to try it out, I'd love to hear the results!

Cheers

whid-injector commented 6 years ago

Hi, I was digging a bit more and I found this: The modulation registry is on MDMCFG2: https://github.com/SpaceTeddy/CC1101/blob/6f34280a4cd34d409b3f00087b38723b1a409785/cc1100_raspi.cpp#L1010

//-------[set Modulation type 2-FSK=0; GFSK=1; ASK/OOK=3; 4-FSK=4; MSK=7]------

:+1: