Page 1 of 1

Send data from one ESP32 to another

Posted: Sat May 18, 2019 6:59 pm
by Edgars Sturms
Hi,

I'm currently trying to implement indoor positioning system using 4 ESP32 microcontrollers where one board is a 'master' and other three are 'slaves'. The slaves are configured as AP, so I can use 'HTTP_GET' request from 'master' to get the needed data from 'slave' nodes. So far so good.. But the problem rises when I try to get the position of a BLE beacons. Because I need to scan beacons to get their RSSI values to each ESP32 and also transfer this data then to 'master', I need to use both WiFi and Bluetooth libraries. The main problem WHY I cannot use this approach/architecture is that my ESP32's has not enough flash memory. :( The specification told that it'll have 4x more memory..

The following error is shown:
"Sketch uses 1661386 bytes (126%) of program storage space. Maximum is 1310720 bytes."

I also tried to include only needed header files, but it also didn't do much..

The question:
How can I transfer small data like 10bytes or so from each 'slave' to 'master' without adding HUGE libraries ?
I know that it can be done using bluetooth signals but I couldn't find understandable samples. I'm beginner at this.. :'(
This is for my bachelor theses, not much time left.. please help!

BR,
Ed

Re: Send data from one ESP32 to another

Posted: Mon May 20, 2019 8:51 am
by rodmcm
If you search this site you will find that using WIFI with Bluetooth is almost impossible due to the large compiled size of the two together.
I have overcome this only by using two ESp32'a one for the WIFI connection and one for the bluetooth with a standard hardwired serial in-between
There seems to be a lot of issues with ESP32 in combined usage WIFI and I2C is another one..

Re: Send data from one ESP32 to another

Posted: Tue May 21, 2019 10:21 am
by dsyleixa
you may also use UART RX/TX between both ESPs, but not wired by cables but with 2 paired HC05 modules in between for WL transmission, using just the standard Serial communication though.

Re: Send data from one ESP32 to another

Posted: Fri Jun 28, 2019 4:30 am
by flywire
Hmm, connect external bluetooth modules to bypass integrated bluetooth modules. Sucks

Re: Send data from one ESP32 to another

Posted: Fri Jun 28, 2019 4:53 am
by ESP_Sprite
The maximum size is limited by the partition layout of your flash. You can change that; some quick Googling turns up e.g. this.

Re: Send data from one ESP32 to another

Posted: Tue Jul 02, 2019 10:45 pm
by plajjd
We are successfully using WiFi and BLE on the same ESP32 device. But we did have to increase the flash partition size to 1.3 Meg.

Phil.

Re: Send data from one ESP32 to another

Posted: Mon Jul 08, 2019 1:15 pm
by flywire
An example would be nice.