Closed janek83 closed 11 years ago
You should never have to re-enter msprf24_activate_rx() if you never exit it. My examples don't include that because they work. I am quite puzzled here though. Is something happening to your CE line? Wonder if it's a genuine silicon bug or bad chip.
I've found out what was wrong studying your example of TX node :)
It was my fault on transmitter side. I've enabled AUTO ACKs but set pipe 0 address to different address than TX address - that was the reason and source of all weirdness.
Now everythings work like it should, sorry to bother you spirilis, you've made a great lib :)
Sweet, good luck!
Hello Spirilis, I'm trying with ACK PAYLOAD, practicly without variations from Ike's programs, I activate it whit "msprf24_enable_feature(RF24_EN_ACK_PAY); // ACK Payload" and in the PRX I use "w_ack_payload", pipe 0, same address for PTX and PRX for payload and ack payload, th PRX seems to work, when I see the IRQ for Tx and Rx, are set, but the PTX, always is in IRQ_ERROR.
Please give me any idea, I don't know what I'm doing wrong.
Thanks, ANDRÉS FELIPE RODRÍGUEZ
Hmm, tbh I never tested that feature. Won't be of much help here.
Hello, I've been keeping on with this ack payload issue, and works without changing anything in your code , I started debbug on my launchpad, and I stopped it for no reason and suddenly works, I mean the bits 6 and 5 were set in PTX in the rf_irq register, but when I started over, the error bit 4 was set again, could this give some idea, anything you could tell me would be fine. Thanks
Ok, Eric Ack_paylaod working sweet.
Hi,
I',m having problem with RX mode. I am using a little modified example of receiver:
But it stops receiving after first packet received (red LED stays lit forever after receiving), so after a while I've added msprf24_activate_rx() on end of loop, right before LPM4 call. Now it works but for random amount of time, ie: 1 to 20 of times, then hangs again. Transmitter sends the same date every 2 seconds.
Received data corresponds to what was send
I'm running on 8MHz with 8MHz SMCLK, dynamic payload, rf_addr_width(3), msprf24_set_retransmit_delay(1000) - in traansmitter code msprf24_set_retransmit_count(3) - in traansmitter code
Wires length (Launchpad <-> nrf24l01+) about 20cm.
What might be wrong? Why adding msprf24_activate_rx() is necessary on every wake up but not present in your examples? Your example of receiver also stops after first packet.