Hello
I'm having hard time trying to get 8266-Rtos to do a directed UDP Broadcast (192.168.1.255)
The example Server in the IDF does work but loses so many packets , This doesn't happen with
2 Android Phones using the same Subnet .
Sending a Unicast packet to the chip works with almost 99% success .
Now , in the example The Server Responds to the IP which sent The Broadcast Msg .
testing this with packet sender -> It works sometimes but again there is a big loss in packets .
But The total failure comes from trying to make an Android Phone receives the broadcast from 8266, this didn't
work at all .
Is there any example that can show who this should work ?
I understand that Broadcasting is not recommended , and it's advised to to multicast
But The situation we have can't use muticast , Cause there will be different Chips on different Subnets , So we need
Broadcast to work .
Also , 2 Android phones Do Broadcast and almost no data loss too , So I don't think it's the router
blocking the packets .
The sample I'm using to test this is the udp_server in the examples , and I only change the Address of sending
when I try to make a Directed Broadcast .
But Unicast , or Broadcast doesn't Reach to Android Phones , while sending through NC from linux or packet sender
does reach the mobile with no or very minimum loss of packets .
Wireshark Doesn't show packets sent from ESP8266
I understand this is confusing , so to make this more clear :
---------------------------------------------------------------------------
1-Sending From packet sender to ESP8266 Unicast -> works 99%
2-Sending From packet sender to ESP8266 Multicast -> works maybe only 10% of cases .
3-Sending from Android Phone to ESP8266 Multicast -> The chip gets the packet 10% of cases , but it never responds to it .
4-Testing Broadcast from ESP8266 -> 10% of cases reach packet sender but never Android phones .
5-sending Broadcast from packet sender -> 99% of time reaches the Android mobiles .
Thanks for any help or direction
ESP8266-RTOS SDK , Directed Broadcast Fails
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Bing [Bot] and 193 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.