Hello to the Team,
I completed a link between a TX and an RX using Nordic nRF24L01Plus.
I programmed it in Basic, with Bascom, on a shield Arduino AVR and all is well ...
I try now to realize the same system with Shields PICAXE 28X2-Module Ax401 after having adapted the program, keeping the same process of initialization and transmission.
Since the Picaxe does not handle indexed variables, I used the SchratchPad-RAM and its Pointer.
The values read from the SPI are placed at addresses 0 to 32.
Values sent to the SPI will be read at addresses 33 to 65
But, after many hours of work, sleepless nights and research ... it still does not work !?
If you could take a look at it or tell me how you use this module nRF24L01+ with a Picaxe, I am interested !
I have not found any examples of programs.
Mine uses several routines "DEBUG" consisting of visualizing on the Terminal the state of the various registers throughout the course of the program.
And what I find abnormal:
- In spite of the fact that EN_AA = 1, bit 3 of the CONFIG register (bit3 => EN_CRC) remains at 0 whereas the datasheet specifies "Bit3 EN_CRC forced High if one of the bits in the EN_ ° AA is high". So, the CRC is never activated.
- If I force it to 1 (by adding 8), it does not change the issue of emission.
- I also notice that after writing 5 bytes in the TX FIFO, the register FIFO_STATUS tells me that the TX_FIFO remains empty !?? Normal so that nothing is transmitted but ... why is this TX_FIFO left empty? Do you have an idea ??
- In addition, is it possible to read the contents of the TX FIFO? I do not see any command to do this! If yes, how ?
Here is to start thid post
Attached is the program TX (Transmitter) and a pasted/copy, in an excel file (delete .txt extension), of the results read on the Terminal.
Thank you in advance for your help that will restore my peace of mind
I completed a link between a TX and an RX using Nordic nRF24L01Plus.
I programmed it in Basic, with Bascom, on a shield Arduino AVR and all is well ...
I try now to realize the same system with Shields PICAXE 28X2-Module Ax401 after having adapted the program, keeping the same process of initialization and transmission.
Since the Picaxe does not handle indexed variables, I used the SchratchPad-RAM and its Pointer.
The values read from the SPI are placed at addresses 0 to 32.
Values sent to the SPI will be read at addresses 33 to 65
But, after many hours of work, sleepless nights and research ... it still does not work !?
If you could take a look at it or tell me how you use this module nRF24L01+ with a Picaxe, I am interested !
I have not found any examples of programs.
Mine uses several routines "DEBUG" consisting of visualizing on the Terminal the state of the various registers throughout the course of the program.
And what I find abnormal:
- In spite of the fact that EN_AA = 1, bit 3 of the CONFIG register (bit3 => EN_CRC) remains at 0 whereas the datasheet specifies "Bit3 EN_CRC forced High if one of the bits in the EN_ ° AA is high". So, the CRC is never activated.
- If I force it to 1 (by adding 8), it does not change the issue of emission.
- I also notice that after writing 5 bytes in the TX FIFO, the register FIFO_STATUS tells me that the TX_FIFO remains empty !?? Normal so that nothing is transmitted but ... why is this TX_FIFO left empty? Do you have an idea ??
- In addition, is it possible to read the contents of the TX FIFO? I do not see any command to do this! If yes, how ?
Here is to start thid post
Attached is the program TX (Transmitter) and a pasted/copy, in an excel file (delete .txt extension), of the results read on the Terminal.
Thank you in advance for your help that will restore my peace of mind
Attachments
-
13.1 KB Views: 10
-
41 KB Views: 14