how to discard udp packet

luiscolo
Posts: 1
Joined: Fri May 05, 2017 3:25 pm

how to discard udp packet

Postby luiscolo » Fri May 05, 2017 3:49 pm

Hi !
i am doing an artnet node,
it receives several udp broadcast packets, it works fine, but:
some of them must be used and some of them must be discarded,
mi problem is: all the incoming packets appear at the serial port with +IPD command,
and i need to discard the packet not needed before the esp finish to send it by the serial port to take the next packet,
if not, i must read all the incoming packets, the needed and the not needed sequentially,
and the baudrate is insufficient and the overhead for the host processor is big,

can i stop the transfer of an incoming udp packet from the esp trough the serial port before it ends to parse the next one?
thank you in advance,
Luis

pratik

Re: how to discard udp packet

Postby pratik » Sun May 14, 2017 8:01 pm

Sorry, there is no way to stop the UART output of a packet in between and skip to next IPD tag.
This is not a feature of the standard AT command set supported by us.
You may define custom AT commands to get this done though. An ESP8266 developer can create custom AT commands for you that allow you to cancel an IPD tag in the middle of transmission.

Dashaduamp
Posts: 5
Joined: Mon Jun 19, 2017 10:28 am

how to discard udp packet

Postby Dashaduamp » Wed Jun 21, 2017 1:09 pm

Hello All,

In application

udp port listening with 3330

i am sending udp request from port 0.0.0.0:3330 to 0.0.0.0:3330 that is same port in the same machine ...

application works fine with udp sending and receiving also fine . ..

for clarification .... is there any conflicts in the communication ?


Thanks
-Viswa

Who is online

Users browsing this forum: No registered users and 168 guests