[Oberon] FPGA - nRF24L01 connection

Tomas Kral thomas.kral at email.cz
Wed Apr 11 11:32:56 CEST 2018


Hi,

I think I have done, best I could to set parameters to match
`SCC.Mod', I should think. I now use `RF24' linux(RPI) generic
examples, as `MySensors' gateway abstracts from it and uses specific
sensor messages, different to Oberon.

I have coded simple ping/pong procedures in Oberon, and I run similar
in c++ on RPI.

It should send payloads with header back and forth, but still nothing
received at either end!!!

`SCC.Mod' never sets RX_ADDR_P0,1 for pipes 0,1 nor TX_ADDR, which I
do not understand???

In the RPI `RF24' example code, I set pipe 0,1 addresses to reset
defaults.

const uint64_t pipes[2] = { 0xE7E7E7E7E7LL, 0xC2C2C2C2C2LL };

Also I set these to match `SCC.Mod'

// Setup and configure rf radio
  radio.begin();
  radio.setChannel(5);
  radio.maskIRQ(1,1,1);

// optionally, increase the delay between retries & # of retries
  radio.setRetries(50,50);

// Dump the configuration of the rf unit for debugging
  radio.printDetails();

================ SPI Configuration ================
CSN Pin  	 = CE0 (PI Hardware Driven)
CE Pin  	 = Custom GPIO25
Clock Speed	 = 4 Mhz
================ NRF Configuration ================
STATUS		 = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7
TX_FULL=0
RX_ADDR_P0-1	 = 0xe7e7e7e7e7 0xc2c2c2c2c2
RX_ADDR_P2-5	 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR		 = 0xe7e7e7e7e7
RX_PW_P0-6	 = 0x20 0x20 0x00 0x00 0x00 0x00
EN_AA		 = 0x3f
EN_RXADDR	 = 0x02
RF_CH		 = 0x05
RF_SETUP	 = 0x07
CONFIG		 = 0x7e
DYNPD/FEATURE	 = 0x00 0x00
Data Rate	 = 1MBPS
Model		 = nRF24L01+
CRC Length	 = 16 bits
PA Power	 = PA_MAX

 ************ Role Setup ***********
Choose a role: Enter 0 for pong_back, 1 for ping_out (CTRL+C to exit) 
>

I need help, as I have very little understanding of it.
Many thanks in advance.


-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list