LonelyWolf / stm32

STM32 stuff
The Unlicense
949 stars 496 forks source link

idea: make it easier to determine if radio is working at all #25

Open lafar6502 opened 4 years ago

lafar6502 commented 4 years ago

The problem: you have two boards and two nrf24l01 radios and you're trying to make them communicate. And nothing seems to work. You check your code, wiring, experiment with changes here and there but no luck - no communication. Radios are set up to transmit and receive but nothing happens. Now you have no idea what is wrong - is it the transmitter side or receiver side? Are the radios working at all? Maybe one is broken, but which one? Or is it software? Or wiring? Basically you have no idea where the problem may be. Or it worked yesterday but today doesnt work and you have no idea why. You try to find a problem but where to start? There's no indication which radio works and which doesnt, software doesnt report any problems, so without any specialized equippment you can only guess. So my suggestion is to add some diagnostic function to the library - check if we're talking to the hardware at all, check if it responds in expected way, if there are some transmission attempts, even unsuccessful - report it - some sanity check protocol - and try to extract as much information as possible.

classbproject commented 3 years ago

There is a ‘nRF24_Check()’ function but that only checks if the radio is physically present. Also there is code in the nrf24.c file to dump all info on the UART.