AnsweredAssumed Answered

STM32F407 + UDP+LWIP big packet problem

Question asked by Lorant Bugar on Aug 16, 2017
Latest reply on Aug 16, 2017 by waclawek.jan

Dear Forum,
I bring forth a frustration question yet I'm uncertain how to approach it.

 

I have STM32F402, and I can communication over UDP . In cube I reviewed every options but my problem do not solved. 

If I can sending data over UDP  smaller than 1514 byte is every OK - I have Java applicaton to receive and monitoring data from UDP and works good ,  but if I can send over 1514 byte in wireshark seeing every fragmented data and full packet good . But in PC doesnt see any packet. Maybe problem is in header or fragmentation .. I dont know.

 

Please help me.

 

My code : 

 

void udpinit(void){

 

udp_p = udp_new();
udp_bind(udp_p,IP_ADDR_ANY,port);
udp_connect(udp_p, IP_ADDR_BROADCAST, port);
}

 

void packet_send(void){


struct pbuf *TxBuffer_p;
TxBuffer_p = pbuf_alloc(PBUF_TRANSPORT, sizeof(adc_data), PBUF_RAM);

memcpy(TxBuffer_p->payload,adc_data,sizeof(adc_data));

udp_send(udp_p,TxBuffer_p);

pbuf_free(TxBuffer_p);

 

}

Outcomes