-->
Page 1 of 1

Real-time data streaming over WiFi

PostPosted: Sat Dec 07, 2019 10:16 am
by borelg
Dear Forum,
I am trying to understand what is the most effective way to stream data from an ESP8266 node via WiFi to my PC.

Let me shortly describe the application that I am working on.
I would like to setup a wireless IMU node based on ESP8266 and the MPU6050 [https://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/] that I have in this convenient board GY-521.

All about the interface and acquiring the data from the MPU6050 is already working.
I am now working on how to transmit the data to my pc.
I thought that an UDP streaming might be a good solution. I would have to transmit 6 Bytes with 100Hz frequency.

Unfortunately the UDP connection does not seem to be extremely reliable and I get come transmission error over serial from time to time.

Do you have any suggestion regarding the best way to stream data that are sampled at 100Hz via WiFi?

Thank you very much in advance! :)

Re: Real-time data streaming over WiFi

PostPosted: Thu Dec 19, 2019 12:52 am
by Adjie
Why don't use TCP instead? If you prefer reliability over speed then TCP will be more suitable. ~1KB/s isn't that much to handle, IMO.

Re: Real-time data streaming over WiFi

PostPosted: Sun Jan 26, 2020 2:14 pm
by Dovregubben
Have you considered using the MQTT protocol?

Have a look at the examples in

https://github.com/aslake/mipy_esp

This is a stable framework for ESP streaming of data over Wifi.

Re: Real-time data streaming over WiFi

PostPosted: Thu Feb 11, 2021 4:21 am
by RitchieH
Hi there,

I'm looking at exactly the same situation. Could you post your code?

Thanks!