Hi,
I want to make communication between an arduino and a bbb. Both have an nrf24l01+ module.
I have plug a nrf24 to the spi0 on my beaglebone.
I use then node-nrf module and this script :
var NRF24 = require('nrf'),
spiDev = "/dev/spidev1.0",
cePin = 16, irqPin = 19;
pipes = [0xF0F0F0F0E1, 0xF0F0F0F0D2],
role = 'ping';
var nrf = NRF24.connect(spiDev, cePin, irqPin);
//nrf._debug = true;
nrf.channel(0x4c).transmitPower('PA_MAX').dataRate('1Mbps').crcBytes(2).autoRetransmit({count:15, delay:4000}).begin(function () {
nrf.printDetails();
if (role === 'ping') {
console.log("PING out");
var tx = nrf.openPipe('tx', pipes[0]),
rx = nrf.openPipe('rx', pipes[1]);
rx.pipe(tx);
} else {
console.log("PONG back");
var rx = nrf.openPipe('rx', pipes[0]),
tx = nrf.openPipe('tx', pipes[1]);
rx.pipe(tx);
}
});
but nothing append on my BBB.
the call of nrf.printDetails() print ll default values and not my configuration result.(.channel(0x4c).transmitPower('PA_MAX').dataRate('1Mbps').crcBytes(2));
cePin is plug on P9_15 and irqPin on P9_16
thanks for your help.