I’ve have the Nordic Serial Interface Board (call it SIB) receiving data from the Nordic FOB, and sending packets like the FOB sends to my hardware (which uses the nRF24L01). It was “scary easy” to get this far.
I’m thinking about changing the packet size to accomodate a 10 byte protocol when I use a PC instead of the FOB to communicate to my hardware. So, I have a couple of questions about the nRF_USB2Serial.c code.
The source has Pete Doter as the author. Is he a member here, so I could send him a P.M?
My first question is why the code seems to ignore received 0x0 bytes, like on line 220:
for (x = 0; x < 4; x++)
{
if (rf_rx_array != 0) put_char(rf_rx_array);
}
I noticed that I only get three characters from the FOB, and the FOB always sends 0x0 as the last character. But, since a fixed block size of four is used by the FOB code, the sample transceiver code, and the nRF_USB2Serial.c, it isn’t needed as an end of line character. Is there some issues with sending 0x0 up someother place?
Thanks,
Dave Thomas