I'm working on a project with ESP32 on Arduino to create something like a bidirectional pipe between Serial2@1000000baud and WebSocket or BluetoothSPP. The code also manage connection stuff (WebServer, captive portal, mdns,...) to allow users to easily configure a wifi connection and name its ESP.
You can find my source code on this github : https://github.com/Luos-Robotics/ESP_Luos_pipe
Everything is kind of working, but I have a lot of trouble and strange crash with this code.
One of them is data loss on reception on Serial2.
In my setup I have a host controler sending Json using serial and the ESP should get those data and send them using Wifi or Bluetooth (or drop it if nobody is connected)
Just to be sure I use a logic analyser to check messages from host integrity, I check 5000 messages and there are all OK.
Here is some normal messages :
Code: Select all
{"modules":' '{"gate":' '{},' '"dxl_6":' '{"temperature":' '26.00}}}
{"modules":' '{"gate":' '{},' '"dxl_6":' '{"rot_position":' '45.31,' '"temperature":' '26.00}}}
{"modules":' '{"gate":' '{},' '"dxl_6":' '{}}}
Code: Select all
{"modules": {"gate": {}, "dxl_6": {"rot{"modules": {"gate": {}, "dxl_6": {"rot{"modules": {"gate": {}, "dxl_6": {}}}
modules": {"gate": {}, "dxl_6": {}}}
{"modules": {"gate": {}, "dxl{"modules": {"gate": {}, "dxl_6": {"rot_position": 45.31}}}
Do you already have experienced something similar with ESP?
Do you have any solution to get all those data?