Giter Club home page Giter Club logo

Comments (9)

TMRh20 avatar TMRh20 commented on May 27, 2024

Hey aliasdoc, I'm not really in the loop right now as far as the current state of the mysensors RPi code. When I try the code at https://github.com/mysensors/Raspberry there are problems compiling.
Are you using different code? What is the code you are using?

from rf24.

aliasdoc avatar aliasdoc commented on May 27, 2024

Hi TMRh20, yes I use another code, I port the MySensors version in development tree ( https://github.com/mysensors/Arduino/tree/development) to RPi and use this version of RF24 (https://github.com/mysensors/Arduino/tree/development/libraries/RF24/RPi) compiling and communication is ok, but write() function of this library always return false. I also make tests with getting started example and it return false, but the receptor receive payload, I think there are problem with ACK.

from rf24.

TMRh20 avatar TMRh20 commented on May 27, 2024

In taking a quick look, it looks like you might just need to call enableDynamicAck(); in both devices.
Currently it has to be set for the optional multicast write/read, but I'm thinking it might be best to enable that by default to avoid confusion. The gettingstarted_call_response example should be getting an ACK response with that enabled??.

from rf24.

aliasdoc avatar aliasdoc commented on May 27, 2024

Yes it fails, I make tests with gettingstarted sketch (arduino) and gettingstarted_call_response (RPi) with enableDynamicAck(); in both

from rf24.

aliasdoc avatar aliasdoc commented on May 27, 2024

RF24 library used with RPi is not the same as Arduino, I think, the problem is here, you have another port for RPI or not ?
RPi version : https://github.com/mysensors/Arduino/tree/development/libraries/RF24/RPi
Arduino version: https://github.com/mysensors/Arduino/tree/development/libraries/RF24

from rf24.

TMRh20 avatar TMRh20 commented on May 27, 2024

No other port, those are almost the same as https://github.com/TMRh20/RF24 (without the latest changes)

Could you send me all your code at [email protected] or post it somewhere I can see it, just so I can easily recreate the problem?

from rf24.

aliasdoc avatar aliasdoc commented on May 27, 2024

check your mail ;)

from rf24.

aliasdoc avatar aliasdoc commented on May 27, 2024

Now it works, I port the RF24 library of arduino to RPi, enable DynamicAck and now all is ok.

from rf24.

TMRh20 avatar TMRh20 commented on May 27, 2024

Alright, the acks seemed to work ok if I removed RF24::setAutoAck(BROADCAST_PIPE,false); from MySensor.cpp , but not sure if that would have fixed it all the way.

from rf24.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.