This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to make communication between two stm8s+nrf24l01 (ie.one(stm8s+nrf24l01) as transmitter and one(stm8s+nrf24l01) as receiver)?can anyone help

hello , i am trying to make communication between two (stm8s+nrf24l01) modules for which i am using this link zewaren.net/.../110, by this code i am able to transmit data from one side and receive data to the another side but it can happen only one next time i will not able to send data and receive data. can anyone please tell me why it is happening by refering this code. or if anyone had made this communication then will you please share your code.or give me suggestions. controller:stm8s and nrf24l01 IDE:IAR workbench

Thank you

Pallavi

Parents
  • Hi

    Can you try to add an incrementing counter in the packet and see if it solves the issue?

    If it does then the problem is most likely that the nRF24L01 TX module is being reset between each packet, so that the packet is discarded in the receiver as a re-transmission.

    If the payload content, address and PID is identical between packets then the packet will be discarded.

    Best regards

Reply
  • Hi

    Can you try to add an incrementing counter in the packet and see if it solves the issue?

    If it does then the problem is most likely that the nRF24L01 TX module is being reset between each packet, so that the packet is discarded in the receiver as a re-transmission.

    If the payload content, address and PID is identical between packets then the packet will be discarded.

    Best regards

Children
No Data
Related