![]() |
MySensors Library & Examples
2.3.2-95-g0c695e3e
|
Collaboration diagram for CC1101:These options are specific to the CC1101 family of wireless transport modules.
The following chips are supported by this driver:
Macros | |
| #define | MY_RADIO_CC1101 |
| Define this to use CC1101 based radios for sensor network communication. | |
| #define | MY_CC1101_CS_PIN DEFAULT_CC1101_CS_PIN |
| CC1101 SPI chip select pin. | |
| #define | MY_CC1101_GD0_PIN DEFAULT_CC1101_GD0_PIN |
| cc1101 GD0 pin | |
| #define | MY_CC1101_GD0_NUM digitalPinToInterrupt(MY_CC1101_GD0_PIN) |
| #define | MY_CC1101_FREQUENCY (CC1101_433MHZ) |
| The base frequency to use. More... | |
| #define | MY_CC1101_CHANNEL 4 |
| The channel number to use. More... | |
| #define | MY_CC1101_SYNC_WORD 0xF543 |
| Sync word, can be used to separate networks. More... | |
| #define | MY_CC1101_MODEM_CONFIGURATION CC1101_MODEM_M_BR38_4_FD20 |
| Defines the model speed and modulation parameters. More... | |
| #define | MY_CC1101_POWER_LEVEL CC1101_POWER_AUTO |
| Sets the transmit power level. More... | |
| #define | MY_CC1101_ATC_TARGET_DBM (-50) |
| Sets the target RSSI level for the ATC. Defaults to -50dBm. | |
| #define | MY_CC1101_MAX_POWER_LEVEL (7) |
| Sets the maximum allowable output power level for AUTO. Default: 10dBm (10mW) More... | |
| #define MY_CC1101_CHANNEL 4 |
The channel number to use.
The actual carrier frequency is given by the base frequency, plus the channel bandwidth x channel number.
The defaults of this driver set a base frequency of 433.1MHz, a bandwidth of 200KHz and channel 4, giving a carrier frequency of 433.9MHz.
Definition at line 1331 of file MyConfig.h.
| #define MY_CC1101_FREQUENCY (CC1101_433MHZ) |
The base frequency to use.
This must match the hardware version of the CC1101 radio. Additional information: https://en.wikipedia.org/wiki/Short_Range_Devices
Definition at line 1317 of file MyConfig.h.
| #define MY_CC1101_MAX_POWER_LEVEL (7) |
Sets the maximum allowable output power level for AUTO. Default: 10dBm (10mW)
Please check local regulations!
| #define MY_CC1101_MODEM_CONFIGURATION CC1101_MODEM_M_BR38_4_FD20 |
Defines the model speed and modulation parameters.
Available options (all 2FSK modulation):
Slower speeds can provide for longer range, though as they have a longer transmit time, they can consume more power overall.
| #define MY_CC1101_POWER_LEVEL CC1101_POWER_AUTO |
Sets the transmit power level.
There are 8 options, CC1101_POWER_[0-7] which range from -30dBm to 10dBm.
For nodes this defaults to CC1101_POWER_AUTO which uses signal reports to automatically adjust the level.
For gateways, this defaults to CC1101_POWER_6. Using AUTO for gateways and repeaters may be a problem if there are multiple nodes that will have different reception quality, so only use AUTO if nodes have similar distance and reception.
| #define MY_CC1101_SYNC_WORD 0xF543 |
Sync word, can be used to separate networks.
Sync word can be used to differentiate multiple networks on a channel.
The CC1101 radio transmits this at the start of each packet and on reception discards packets with mismatched sync words. You can change this to create multiple logical networks on the same radio channel, or avoid interference from nearby CC1101 based radios not in your network.