|
420 | 420 | #define MY_RF24_CHANNEL (76)
|
421 | 421 | #endif
|
422 | 422 |
|
| 423 | +/** |
| 424 | + * @def MY_RF24_INVERTED_ACK |
| 425 | + * @brief Assume that this node's radio auto-ack bit is reversed |
| 426 | + * |
| 427 | + * Define this if this node has a wireless chip with AutoACK bit reversed |
| 428 | + * compared to wireless chip in the gateway. Read this for more details. |
| 429 | + * |
| 430 | + * There are a dozen nRF24L01+ clones out there in the wild. A few of them (SI24R01) |
| 431 | + * have their AutoACK bit inverted, due to a bug in the original doc they ripped off |
| 432 | + * |
| 433 | + * If this define doesn't help with your setup (and your clones are even weirder), |
| 434 | + * here are a few more tricks: |
| 435 | + * |
| 436 | + * 1. Assign a static Parent ID and Node ID for your node. |
| 437 | + * |
| 438 | + * #define MY_NODE_ID 1 |
| 439 | + * #define MY_PARENT_NODE_ID 0 |
| 440 | + * #define MY_PARENT_NODE_IS_STATIC |
| 441 | + * |
| 442 | + * However you loose the automated 'mesh' organisation function of the network. |
| 443 | + * That is not fun, but it's okay for some leak sensors that should have this static |
| 444 | + * anyway. |
| 445 | + * |
| 446 | + * 2. Try different speeds. Some of the fakes I got don't play along with genuine |
| 447 | + * chips nicely when the speed is 250Kbps. 1Mbps and 2Mbps work fine. |
| 448 | + * |
| 449 | + * 3. Put your finger on the PCB antenna. If the thing starts working, you are missing |
| 450 | + * a 1 pF capacitor on the module. See this post: |
| 451 | + * |
| 452 | + * https://ncrmnt.org/2021/01/03/nrf24l01-fixing-the-magic-finger-problem/ |
| 453 | + * |
| 454 | + * |
| 455 | + * Obligatory reading material: |
| 456 | + * |
| 457 | + * https://sigrok.org/wiki/Protocol_decoder:Nrf24l01 - A list of clones and their 'features' |
| 458 | + * https://hackaday.com/2015/02/23/nordic-nrf24l01-real-vs-fake/ - Hack-a-Day article describing the problem |
| 459 | + * https://forum.mysensors.org/topic/9947/nrf24l01-si24r1 - mysensors forum thread |
| 460 | + * https://ncrmnt.org/2015/03/13/how-do-i-cost-optimize-nrf24l01/ - Missing components on some COB fakes |
| 461 | + * |
| 462 | + */ |
| 463 | +//#define MY_RF24_INVERTED_ACK |
| 464 | + |
423 | 465 | /**
|
424 | 466 | * @def MY_RF24_DATARATE
|
425 | 467 | * @brief RF24 data rate.
|
|
0 commit comments