Code Monkey home page Code Monkey logo

Comments (4)

TMRh20 avatar TMRh20 commented on August 22, 2024

First question is: can I send all the characters in one big payload?

Yeah, per the docs RF24Network supports fragmentation/reassembly.

Which is maximum size supported by the mesh.write/read function?

Technically limited by memory, defined in RF24Network_config.h as #define MAIN_BUFFER_SIZE 144 + 10 . With RPi and RF24Gateway, it supports 1500 Byte payloads no problem, but uses the Linux TCP/IP stack to manage the data.

Otherwise, is it better to send character by character?

Not unless using RF24Ethernet, which will buffer data accordingly, and handle retries, validation, etc.

In this case, I have to avoid ACK (for faster communications) or I can let them enabled? When declaring the msg_type, which is the character to set in order to avoid ACK payload?

See the documentation

from rf24mesh.

ricgyver avatar ricgyver commented on August 22, 2024

Thanks for the reply.

I was thinking to use rf24ethernet. But I would like to separate the ethernet between sensors from internet.
In other words, is it possible on the master arduino node to talk with sensor using 10.0.0.x ip addresses while the user requests come from a client with 192.168.x address?

Because I want to avoid sensors using ip addresses from my router... I prefer to have a private network for sensors with the master routing any request from internet...

Thanks.
Bye

from rf24mesh.

TMRh20 avatar TMRh20 commented on August 22, 2024

As with everything lately, the docs etc all need more info and updates, but there are two main methods of interfacing with RF24Ethernet:

  1. Using a PC capable of SPI, ( interfacing directly with RF24 ) like Raspberry Pi - Uses RF24Gateway
  2. Using a PC capable of SLIP ( Serial Line Interface Protocol ) like any Linux device - Uses an Arduino and the included SLIP example
  3. Todo Look at PPP support

In any case, the PC connected to or serving as the master node controls all networking traffic. It can be configured to block all IP traffic, route IP traffic as required, etc.

Using RF24Ethernet requires a general understanding of networking principles. All IP addresses are statically assigned, so you can configure your network any way your want, all this provides is a network interface, connected to the RF24 mesh network.

from rf24mesh.

ricgyver avatar ricgyver commented on August 22, 2024

Ok thanks for the useful info.
Bye!

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.