Author Topic: Serial over UDP using ESP8266  (Read 7285 times)

0 Members and 1 Guest are viewing this topic.

Offline edgaras006Topic starter

  • Contributor
  • Posts: 33
  • Country: lt
Serial over UDP using ESP8266
« on: October 08, 2023, 04:28:24 am »
Hello,

I need serial over UDP using ESP8266 module Wroom-02. I managed to make it receive data, but am unable to send it. Receiving end will be windows 11 machine, data rate 500K baud.

This job has no dead line, but the sooner the better.
 

Offline YTusername

  • Regular Contributor
  • *
  • Posts: 83
  • Country: tr
    • Atadiat
Re: Serial over UDP using ESP8266
« Reply #1 on: October 16, 2023, 07:27:11 am »
This is something done by the ESP community before. There is a project called esp-link for implementing a WiFi-Serial bridge with a dashboard. I've made a tutorial regarding this, found here.
 

Offline edgaras006Topic starter

  • Contributor
  • Posts: 33
  • Country: lt
Re: Serial over UDP using ESP8266
« Reply #2 on: October 18, 2023, 12:42:48 pm »
Thank you. I had searched a lot, but failed to find this one. I will fallow tutorial and hopefully it works.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Serial over UDP using ESP8266
« Reply #3 on: November 03, 2023, 09:24:19 am »
How are you programming the ESP8266?   What libraries?

I did some UDP TX/RX on an ESP once using arduino to hack something together quickly.
I think it was a ESP32 but it was very trivial to send/receive data over UDP and should be identical for ESP8266.

I have no idea if the arduino backend can handle 500K baud.

Even if you don't want to program it in arduino, can be useful to test and confirm everything else in your setup is not the problem for UDP tx/rx.
Don't want to spend 5 hours chasing a UDP coding bug only to find it was actually the windows firewall blocking receiving commands etc..
« Last Edit: November 03, 2023, 09:33:31 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline edgaras006Topic starter

  • Contributor
  • Posts: 33
  • Country: lt
Re: Serial over UDP using ESP8266
« Reply #4 on: November 03, 2023, 08:32:04 pm »
Georgy.Moshkin helped my to figure this out. He found AT commands firmware which works with windows 11 and it did. Before that I tried programming Arduino, but it took ages to connect and did not transmit messages. Only reception worked. I also thought that it was windows firewall, but it was not. AT firmware + standard commands works wonders.

Also AT firmware connect to DHCP Wifi much faster than arduino code and draws significantly less power, and supports UART speeds I need.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf