Go to advanced search

by gnulnulf
Mon Sep 09, 2013 11:53 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

have your tried multiple connections? you can have multiple channels. If I recall correct only one sending..
You should always use a protocol with acknowlegdement if you want to be sure it was received. Just design with lost packages.
by gnulnulf
Tue Jul 02, 2013 5:21 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

@noob001: I see the problem, both compatibility and wiringPi claim functions like millis and pinMode.
I don't know why an io lib would need to define millis, others would question millis in compatibility 8-)

When wiringPi is nearly always installed we could try to use that as a standard IO lib.
by gnulnulf
Sat Jun 29, 2013 1:57 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

The nrf has two control lines. the spi chipselect and another chip select. The first can be controlled by the hardware SPI, the second needs to be controlled using GPIO. Because it's an output, only digitalwrite is needed. Pinmode is used to set is as an output pin. Why do you need digititalread? Fo...
by gnulnulf
Sat Jun 29, 2013 11:46 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

I noticed it to. I ran into a bug with the spi implementation.
If I have some spare time I will try to make the library with Wiring or Wiring aware.
by gnulnulf
Fri Mar 29, 2013 10:17 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

and we've almost looped back to the portable RF24 lib :D
by gnulnulf
Wed Mar 20, 2013 5:21 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

is the bcm lib not always setting CE0 and CE1? always setting the SPI_CE to custom would work for the nrf. Any GPIO would do then and maybe we should avoid using the CE0/CE1 in total to leave those for proper spi use. if the bcm is working better we should completely drop the other one. Both are wor...
by gnulnulf
Fri Mar 15, 2013 8:19 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

could it be the difference between SPI-CE per byte or per command? should the commands like void bcm2835_spi_transfern ( char * buf, uint32_t len ) be used in uint8_t RF24::read_register(uint8_t reg, uint8_t* buf, uint8_t len) { uint8_t status; status = bcm2835_spi_transfer( R_REGISTER | ( REGISTER_...
by gnulnulf
Fri Mar 15, 2013 7:25 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

I was now trying to use the same code to a mcp23s17 to see if the spi comms work. But work and sleep kept me from completing that test :D
by gnulnulf
Wed Mar 13, 2013 8:07 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

I created a bcm branch, my module reacts the same as the spi lib without the manual SPI-CE .
Do you have pongtest running with the librf24-bcm?
by gnulnulf
Wed Mar 13, 2013 7:34 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

I can clone it 8-) the library compiles with warnings, the examples point to the old librf24. I got the pongtest running but no communication: ROLE: Pong back STATUS = 0x4e RX_DR=1 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0 RX_ADDR_P0-1 = 0x4e4e4e4e4e 0x4e4e4e4e4e RX_ADDR_P2-5 = 0x4e 0x4e 0x4e 0x4e TX_ADD...
by gnulnulf
Wed Mar 13, 2013 5:12 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

I was looking into that library to see the difference from purindas lib. It should not be hard to change the spilib.
by gnulnulf
Wed Mar 13, 2013 10:24 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

it makes sense.. but it did not work for me..
by gnulnulf
Tue Mar 12, 2013 10:01 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

ok, I was wrong about the CE/CSN. But I don't think it the SPI-chip-enable should be controlled by our code. The spidev should take care of that.. I pushed my test to git, which uses the GPIO "CE" on any GPIO and the CSN on CE0 or CE1 depending on the device name. Does anyone knows what's wrong with...
by gnulnulf
Tue Mar 12, 2013 9:21 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

After changing the CE/CSN and setting the csn to 8 again it's more stable.. Now sending 380111...ok...Got response 380111, round-trip delay: 32 Now sending 381145...ok...Got response 381145, round-trip delay: 31 Now sending 382177...ok...Got response 382177, round-trip delay: 33 Now sending 383210.....
by gnulnulf
Tue Mar 12, 2013 7:58 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

After reading the datasheet again i'm puzzled too... it works.... but the ce and csn are connected wrong on the rpi...
by gnulnulf
Thu Mar 07, 2013 9:10 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

correct.
ce on the nrf goes to GPIO8(CE0) for /dev/spidev0.0 or GPIO7(CE1) for /dev/spidev0.1
CSN goes to a normal IO pin.

(I still don't know why one would use more then one control pin on an spi device.... except for an interrupt pin)
by gnulnulf
Thu Mar 07, 2013 6:05 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

send/receive refers to the spi send/receive, not the wireless part. On the pi CE is controlled by the spidev0.N device. [email protected]:/usr/src/rf24-gnulnulf/RF24# /opt/librf24-examples/bin/pongtest RF24/examples/pingpair/ ROLE: Pong back SPI device = /dev/spidev0.0 SPI speed = 8000000 CSN GPIO = ...
by gnulnulf
Thu Mar 07, 2013 5:02 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

Hmmm... good point.
when removing all the ce() it still works..
by gnulnulf
Mon Feb 18, 2013 3:46 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

@rbe, can you use the ping/pong tests to seebif the hardware is connected correct? If the addresses are all zero/FF the connection is incorrect.
by gnulnulf
Sun Feb 17, 2013 9:53 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

For those that are interested - when testing, the RPi will drop about 1 in 10 messages for me. But by using an interrupt, it is now as flawless as arduino to arduino. Interrupt is done via wiringPi: o git clone git://git.drogon.net/wiringPi o cd wiringPi o ./build then add following to setup (where...
by gnulnulf
Thu Feb 14, 2013 7:01 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

Is it a bug in the original arduino lib, or some porting residue?
by gnulnulf
Thu Feb 14, 2013 5:50 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

Should the wait be implemented in the library itself?
by gnulnulf
Wed Feb 13, 2013 9:29 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

Within the same room pa_low seemed to work better.
by gnulnulf
Sun Feb 10, 2013 11:04 am
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

Maybe its better to change the makefile to make lib, make libinstall and make examples... or cheat with a symbolic link ...
Ideas are welcome.
by gnulnulf
Tue Feb 05, 2013 6:39 pm
Forum: HATs and other add-ons
Topic: NRF24L01 RF Transceiver
Replies: 252
Views: 138983

Re: NRF24L01 RF Transceiver

I have put a pongtest along with the pingtest in the github. Somehow the RF24-arduino part did not match the rpi part on git. I won't say it's perfect now but it seems to work in my setup. [email protected]spberrypi:/usr/src/rf24-gnulnulf/RF24/librf24-rpi/examples# ./pingtest RF24/examples/pingpair/ ROLE: Pin...

Go to advanced search