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.
and enabled SPI via  http://elinux.org/BeagleBone_Black_Enable_SPIDEV



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.






2014-04-07 2:42 GMT+02:00 Tom Davies <[email protected]>:

> What do you want to do?
>
> What did you try?
>
> What happened?
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/pwbr2hIDeU8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to