Giter VIP home page Giter VIP logo

Comments (19)

enrico1036 avatar enrico1036 commented on August 10, 2024 2

Compilation error (.literal._Z7freeMemv+0x0): undefined reference to __brkval' , (.literal._Z7freeMemv+0x4): undefined reference to __heap_start'
could be resolved changing freeMem() function to

int freeMem() {
  return ESP.getFreeHeap();
}

from lora-mesh.

nootropicdesign avatar nootropicdesign commented on August 10, 2024 1

RadioHead implements the mesh networking. It sends route discovery messages to determine how nodes are connected. If you want to understand mesh networking, study the RadioHead library.

from lora-mesh.

pablocaol avatar pablocaol commented on August 10, 2024

hello I also have the same mistake you could solve it

from lora-mesh.

fmc5046 avatar fmc5046 commented on August 10, 2024

Hi I had this problem too with the ESP32

from lora-mesh.

prlombaard avatar prlombaard commented on August 10, 2024

@pablocaol / @fmc5046 i got the same error, i had to remove the freemem function completely from the code to get it compiled. But after compilation i have my ESPs have a kernel panic (GuruMeditation). It happens as soon as the updateRoutingTable function is called. if i remove the call to UpdateRoutingTable function then the loop() runns OK, obviously not worth anything because routing table not displayed...

from lora-mesh.

badaniels avatar badaniels commented on August 10, 2024

@prlombaard did you ever manage to rectify this problem? I have the same issue. The exact function that it fails on is routes[n-1] = route->next_hop

I cant seem to find where this pointer is referencing, which is possibly why its crashing. If you did rectify it I would love to know.

Thanks

from lora-mesh.

MSATGroup avatar MSATGroup commented on August 10, 2024

I'm also getting this same issue. I'm attempting to use this on a TTGO T-Beam which is ESP32 based. I have hardcoded the nodeId as 2 on one of my boards to test. It appears that the line "manager = new RHMesh(rf95, nodeId);" isn't initialising as I'm getting the "init Failed" warning. Could this be part of the issue?

from lora-mesh.

Vibeesarma avatar Vibeesarma commented on August 10, 2024

#elif RH_TEST_NETWORK==3
where we put this command?

from lora-mesh.

Vibeesarma avatar Vibeesarma commented on August 10, 2024

how does the board create a table in the first stage?

from lora-mesh.

nootropicdesign avatar nootropicdesign commented on August 10, 2024

If you want to use a test network, define the constant in your code so that the Radiohead library knows which network topology to use.

#define RH_TEST_NETWORK 3

Please study the code and Radiohead before you post comments here. These are not defects in my project. Github issues lists are not a help forum.

from lora-mesh.

frd-na avatar frd-na commented on August 10, 2024

@badaniels I also cannot get it to work. Removing the line routes[n-1] = route->next_hop prints the table but table does not update. Have you resolved this issue? Would appreciate some help here. Thanks!

from lora-mesh.

Vibeesarma avatar Vibeesarma commented on August 10, 2024

when we transfer the message from one node to another node how to send that message using this mesh code?. I don't see the message any message send code in the mesh code.

from lora-mesh.

nootropicdesign avatar nootropicdesign commented on August 10, 2024

This code demonstrates the mesh networking implemented in RadioHead. This code does not implement mesh networking. To send a message through the mesh, use sendToWait, just like this demo shows.

from lora-mesh.

Vibeesarma avatar Vibeesarma commented on August 10, 2024

what kind of algorithm did you use to get the routing table?

from lora-mesh.

JoseCarTorBel avatar JoseCarTorBel commented on August 10, 2024

Hello, when I execute this on ESP32 TTGO, I have the next problem:

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
initializing node done
RF95 ready
mem = 354672
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d1051 PS : 0x00060f30 A0 : 0x800d1176 A1 : 0x3ffb1f40
A2 : 0x00000002 A3 : 0x3ffc038d A4 : 0x3ffc0386 A5 : 0x3ffc0250
A6 : 0x00000001 A7 : 0x00000000 A8 : 0x00000002 A9 : 0x00000001
A10 : 0x00000000 A11 : 0x00000002 A12 : 0x0000000a A13 : 0x00e4c000
A14 : 0x7ff00000 A15 : 0x7ffc9800 SAR : 0x0000000e EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000001 LBEG : 0x400ed53c LEND : 0x400ed559 LCOUNT : 0x00000000

Backtrace: 0x400d1051:0x3ffb1f40 0x400d1173:0x3ffb1f60 0x400d571d:0x3ffb1fb0 0x40088db5:0x3ffb1fd0

Someone know how to fix?

from lora-mesh.

prlombaard avatar prlombaard commented on August 10, 2024

@prlombaard did you ever manage to rectify this problem? I have the same issue. The exact function that it fails on is routes[n-1] = route->next_hop

I cant seem to find where this pointer is referencing, which is possibly why its crashing. If you did rectify it I would love to know.

Thanks

Not sure if you had any luck again, sorry i dropped this project, life happened, will have to fire up the things again to have a look. Maybe the latest release of RadioHead fixes this issue.

from lora-mesh.

dougie181 avatar dougie181 commented on August 10, 2024

Hello, when I execute this on ESP32 TTGO, I have the next problem:

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:8896 load:0x40080400,len:5816 entry 0x400806ac initializing node done RF95 ready mem = 354672 Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x400d1051 PS : 0x00060f30 A0 : 0x800d1176 A1 : 0x3ffb1f40 A2 : 0x00000002 A3 : 0x3ffc038d A4 : 0x3ffc0386 A5 : 0x3ffc0250 A6 : 0x00000001 A7 : 0x00000000 A8 : 0x00000002 A9 : 0x00000001 A10 : 0x00000000 A11 : 0x00000002 A12 : 0x0000000a A13 : 0x00e4c000 A14 : 0x7ff00000 A15 : 0x7ffc9800 SAR : 0x0000000e EXCCAUSE: 0x0000001c EXCVADDR: 0x00000001 LBEG : 0x400ed53c LEND : 0x400ed559 LCOUNT : 0x00000000

Backtrace: 0x400d1051:0x3ffb1f40 0x400d1173:0x3ffb1f60 0x400d571d:0x3ffb1fb0 0x40088db5:0x3ffb1fd0

Someone know how to fix?

Yes... Check if (route == NULL) and (route->next_hop == NULL) before attempting to access them. If they are NULL, then do something sensible :-)

from lora-mesh.

Thomasalex2 avatar Thomasalex2 commented on August 10, 2024

Has anyone managed to compile the LoraMesh ino file on ESP32 successfully?

from lora-mesh.

davidefa avatar davidefa commented on August 10, 2024

Hope not to sound inappropriate... but if you want a 'super basic' example of the radiohead mesh library usage for esp32 you can follow this example: https://www.hackster.io/davidefa/esp32-lora-mesh-1-the-basics-3a0920 ( for ttgo/heltec lora boards )

from lora-mesh.

Related Issues (16)

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.