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

nrf24l01 enableDynamicACK on Raspberry Pi Python

i am using nrf24l01+ on arduino devices, one arduino device as master, and other arduino devices as slaves.  I like master to broadcast a radio (dataToSend) toward all slaves, without ACK, on a particular radio.write as below.  To clarify, i am using arduino IDE and the popular library by Tmhr20.  With below two commands " radio.enableDynamicAck();" and "radio.write(&dataToSend, sizeof(dataToSend), 1);", the code is working perfectly on arduino devices.  However, for a special application, i need to replace master device from Arduino to Raspberry pi (using python3 language), then i found huge problem -- i could not find equivalent commands of "radio.enableDynamicAck();" and "radio.write(&dataToSend, sizeof(dataToSend), 1);" on raspberry pi running with python3.  Can someone advise me?   I do not have enough knowledge to write my own library and i have to rely on the existing available library or functions.  I am able to use raspberry pi python3 to run generic functions, but i just could not find equivalent commands of "radio.enableDynamicAck();" and "radio.write(&dataToSend, sizeof(dataToSend), 1);"

void setup() {   // this is arduino code
    ...
    radio.enableDynamicAck();  // this is the key, so i can control no ack below
    ...
}

void loop()    {   
    ...                                                         
    radio.write(&dataToSend, sizeof(dataToSend), 1);   // 1 mean no ACK for this particular radio write
    ...     
}   

Parents
  • I am not familiar with how the arduino library configure the radio, so unless they have documented this somehow, you will need to read-out the actual radio configuration from the radio registers to know how it's setup and then "translate" this into the python api. Hopefully someone can help you on this or know of someone that have already done this.

Reply
  • I am not familiar with how the arduino library configure the radio, so unless they have documented this somehow, you will need to read-out the actual radio configuration from the radio registers to know how it's setup and then "translate" this into the python api. Hopefully someone can help you on this or know of someone that have already done this.

Children
No Data
Related