This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137: Packets not receiving without Wireshark application.

Part Number: TMS570LS3137

Hello Everyone,

We have used TMS5703137CGWTMEP Microcontroller in our design. and ETHERNET UDP protocol is used with LWIP library, but we are facing some issue while receiving packets from controller to pc,

without wireshark application, the PC side UDP packets are not receiving, when we open wire shark, packets are received from controller in the PC side. 

phy : DP83848MPHP

//UDP CODE

uint8 emacAddress[6U] = {0x00U, 0x08U, 0xEEU, 0x03U, 0xA6U, 0x6CU};
uint32 emacPhyAddress = 1U;

lwIPInit(0, emacAddress, 0xA2C0251F, 0Xffff0000, 0, IPADDR_USE_STATIC);

IntMasterIRQEnable();
_enable_FIQ();

for(i=0;i<1454;i++)
data[i]=i;

p = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);

p->next=0;
p->len=256;
p->tot_len=256;
p->payload = (void *)data;

ip_src.addr = 0xA2C0251F; //162.192.37.31 controller ip
ipaddrsrccpy= ip_src.addr;
ip_des.addr = 0xA2C0251E;//162.192.37.30 pc ip
net_mask.addr=0xFFFF0000;//255.255.0.0
gw_addr.addr=0;


pcb = udp_new();
udp_recv(pcb, LocatorReceive, NULL);
error = udp_bind(pcb,&ip_src,60000);
error = udp_connect(pcb,&ip_des,60001);

Can anybody please explain me how to solve the issue.

attached MSP430FR5989-EP ckt in our design for reference.

  • Hello,

    Your code doesn't send data to the destination. If PC send data to your EVM, does you EVM gets the data correctly? The call back function "LocatorReceive" is called when it receive a UDP packet from your PC.

  •  hi QJ Wang

    i am sending data from below code,

    void CEthernetTelemetry(uint16_t Packet_size, uint8_t DataFrameFormat[])//UDP CODE
    {
    uint16_t i=0;
    pbuf_free(p);
    p = pbuf_alloc(PBUF_TRANSPORT, Packet_size, PBUF_RAM);//PBUF_IPUDP_HLEN
    p->next=0;
    p->len=Packet_size;
    p->tot_len=Packet_size;

    for(i=0;i<Packet_size;i++)
    {
    *((uint8 *)p->payload+i)=DataFrameFormat[i];
    }

    udp_send(pcb,p);
    }

    From PC to EVM data coming correctly, without wireshark application.

    problem is from EVM TO PC ,data is coming only when we opened wireshark.

    Thank you

    Regards

    Ullas

  • Hi Ullas,

    Have you solved the issue?