Sending sensor data to other node using ESP-MESH

omborse__
Posts: 11
Joined: Tue May 21, 2019 5:30 am

Sending sensor data to other node using ESP-MESH

Postby omborse__ » Tue May 21, 2019 6:41 am

Hello Everyone,
I'm new to mesh and wants to send sensor data from one node to another, for trial i'm using 5 esp32-WROVER-B boards, I'm using internal_communication example for this so using this, connection between the different boards is done but i'm not able to send data from one node to another. Do i have to use ESP-MDF for sending data? Can't i do it with ESP-IDF ? please help...if anyone has a code that would be grateful and sorry for bad english.
thanks

ESP_yudong
Posts: 68
Joined: Wed May 16, 2018 12:31 pm

Re: Sending sensor data to other node using ESP-MESH

Postby ESP_yudong » Tue May 21, 2019 2:13 pm

It might be a little easier if you use ESP-MDF.
If you want to send data from one node to another use IDF only.
First, you need to know how to use esp_mesh_send() https://docs.espressif.com/projects/esp ... esh_opt_ti
The mac address of the destination node need to be set to the parameter “to”.

Feel free to ask if you have any more question.

omborse__
Posts: 11
Joined: Tue May 21, 2019 5:30 am

Re: Sending sensor data to other node using ESP-MESH

Postby omborse__ » Thu May 23, 2019 10:31 am

ESP_yudong wrote: It might be a little easier if you use ESP-MDF.
If you want to send data from one node to another use IDF only.
First, you need to know how to use esp_mesh_send() https://docs.espressif.com/projects/esp ... esh_opt_ti
The mac address of the destination node need to be set to the parameter “to”.

Feel free to ask if you have any more question.
Thank you for your reply.
So tried to send data using esp_mesh_send but getting "mesh: <nvs>writGuru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled" error.
here is the log..

I (5617) mesh: [DONE]connect to router:AndroidAP, rssi:-31, 10:07:b6:ac:a1:5d[layer:0, assoc:0], my_vote_num:1/voter_num:1, rc[b4:e6:2d:d5:d6:de/-31]
I (14007) wifi: n:1 1, o:1 0, ap:1 1, sta:1 0, prof:1
I (14997) wifi: state: init -> auth (b0)
I (14997) wifi: state: auth -> assoc (0)
I (15007) wifi: state: assoc -> run (10)
I (15067) wifi: connected with AndroidAP, channel 1
I (15067) wifi: pm start, type: 0

I (15067) mesh: [scan]new scanning time:600ms
W (15067) wifi: [beacon]new interval:300ms
[0;31mE (15077) event: invalid static ip[0m
[0;33mW (15077) mesh_main: <MESH_EVENT_ROUTING_TABLE_REMOVE>remove 1, new:1[0m
[0;32mI (15087) mesh_main: <MESH_EVENT_PARENT_CONNECTED>layer:0-->1, parent:10:07:b6:ac:a1:5d<ROOT>, ID:77:77:77:77:77:77[0m
I (15087) mesh: <nvs>writGuru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400d2b9f PS : 0x00060030 A0 : 0x8008ce4c A1 : 0x3ffbc860
A2 : 0x3ffbcab0 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x00000070
A6 : 0x00000000 A7 : 0x00000001 A8 : 0x8008d052 A9 : 0x3ffd5400
A10 : 0x00000003 A11 : 0x00060023 A12 : 0x00060023 A13 : 0x00000001
A14 : 0x00060021 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x400d2b9f:0x3ffbc860 0x4008ce49:0x3ffbcb70

Rebooting...

Thanks ..

Who is online

Users browsing this forum: No registered users and 117 guests