Having problems with nrf24l01 when trying to send multiple bytes


+ Reply to Thread
Results 1 to 6 of 6
  1. #1

    Default Having problems with nrf24l01 when trying to send multiple bytes

    I've got everything working well using single byte payloads but when I try to send multiple byte payloads (tried 2 and 5 bytes so far). All I get is the last byte sent no matter how I try to send and receive it. I've tried 10 different code layouts on the transmit and receive side and checked the registers 100 times yet I can't figure out the problem. Both a and b end up displaying 3 instead of a displaying 1 and b displaying 3. Does anyone know what's going on?

    Code for 2 byte receive:

    Code:
    low csn
    shiftout si, sck, 1, [01100001, 0, 0]
    shiftin so, sck, 0, [a, b]
      
    
    high csn
    code for 2 byte transmit:

    Code:
    low csn
    shiftout si, sck, 1, [10100000, 1, 3] 
    high csn

  2. #2

    Default Re: Having problems with nrf24l01 when trying to send multiple bytes

    Multi byte problem solved, now I can't get them to work with anything but default addresses. Any change to one or both and I lose link. Any ideas? I write 5 bytes to the tx_addr register on the tx and the same 5 bytes to the rx address register for pipe 0 (forget the exact name) and lose link, comment out the code and regain link. ???

  3. #3
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    808

    Default Re: Having problems with nrf24l01 when trying to send multiple bytes

    if you want to post your complete code for the test setup might be better than describing the outcome

  4. #4

    Default Re: Having problems with nrf24l01 when trying to send multiple bytes

    Never mind, got it fixed a little while ago, didn't realize I had to set both registers on both modules even for 1 way data transfer.

  5. #5

    Default Re: Having problems with nrf24l01 when trying to send multiple bytes

    Hi Rudyauction509

    Would you be willing to share your code?

    What an odd handle, private joke?

    George

  6. #6
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    808

    Default Re: Having problems with nrf24l01 when trying to send multiple bytes

    here some stuff i found on the net , cant remember where it was but it a good start
    Attached Files Attached Files

Similar Threads

  1. How do i Send Multiple SMS messages?
    By isaac in forum GSM
    Replies: 1
    Last Post: - 13th April 2012, 21:10
  2. Problems receiving what I thought were four HEX bytes?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 15th January 2012, 06:04
  3. Replies: 6
    Last Post: - 31st August 2007, 09:31
  4. Problems controlling multiple pics
    By gandora in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 29th May 2007, 08:59
  5. Serin/Out for multiple bytes
    By mankan in forum General
    Replies: 1
    Last Post: - 5th June 2006, 19:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts