Code Monkey home page Code Monkey logo

Comments (5)

TMRh20 avatar TMRh20 commented on August 22, 2024

You should be seeing something like this:

Model            = nRF24L01+
CRC Length       = 16 bits
PA Power         = PA_MAX
1739178: MAC Received on 0 id 26614 from 04444 to 0100 type 194
1739179: MAC Sending to 04444 via 04444 on pipe 0
1739179: NET Pipe 0 on node 04444 has address cccccc3ecc
1739180: MAC Sent on cccc3ecc ok
1739235: MAC Received on 0 id 26614 from 04444 to 00 type 195

Make sure to do a full recompile after modifying the debug options: make install -B or make clean

If you still see nothing, even with RF24Network debug enabled, then the RPi is just not receiving anything... printDetails() output looks good...

from rf24mesh.

jetiston avatar jetiston commented on August 22, 2024

Nothings happens. I wonder if it the arduino is the one not sending anything. But it outputs this when I run the RF24Mesh_Example

48 MSH: Poll
49: NET Sending id 1 from 04444 to 0100 type 194
53: MAC Sending to 00 via 00 on pipe 0
56: NET Pipe 0 on node 00 has address ccccccccc3
61: MAC Sent on ccccccc3 ok
119 MSH: No poll from level 0

so it's safe to assume it's sending something right?

But I have a question regarding that output. It is sending a packet from 04444 (w/c is the node) to 0100 but it sends it to 00 which is the RPi. So maybe the RPi doesn't recognise it as a packet for itself? or is my interpretation wrong?

from rf24mesh.

TMRh20 avatar TMRh20 commented on August 22, 2024

0100 is just a false address used to indicate a multicast payload
04444 is the default address for renewal

It looks ok, just not getting a poll response

from rf24mesh.

jetiston avatar jetiston commented on August 22, 2024

Okay. So it seems that it actually doesn't receive anything.
I tried doing network.multicast. When the rpi master is doing the multicast the arduino nodes receives but when the node does a multicast nobody receives it. I think that's why there's no poll response.

Why do you think this happens?

should I close the topic and make a new one at rf24network?

from rf24mesh.

TMRh20 avatar TMRh20 commented on August 22, 2024

I'm guessing one of your devices just isn't working properly. I would suggest testing down the stack a bit, I usually like to start at the bottom and work my way up when things are just not working.

  1. Load up the basic RF24 gettingstarted_call_response sketch
    a: Ensure the RF24 radio(7,8); is using the correct pins
    b: If using RPi and Arduino, the radio numbers should be pre configured.
    c: Either power cycle the Arduinos after uploading, or Add the line radio.setAutoAck(1); after radio.begin() to ensure AA is enabled after using RF24Mesh

If that works, you know your radios are connected properly and functioning. If not, most likely a config/hookup/hardware issue.

If not working, we need to get the printDetails() output, so:
a: Add this to the top includes to get basic debug info on Arduino:

#include <SPI.h>
#include "RF24.h"
#include <printf.h>

in setup add:

printf_begin();

anywhere after Serial.begin();

and then uncomment radio.printDetails() to get debug output on Arduino.

else:

  1. Test with RF24Network helloworld examples similarly if working at RF24 layer. Make sure the pins in RF24 radio(7,8) are set correctly, everything else is configured.
  2. If the above all works, RF24Mesh should also work...

Please keep adding to this issue, even if issues are found at lower layers. If resolved, it may help others with similar issues.

from rf24mesh.

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.