LPC54628 UDP example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC54628 UDP example

1,249 次查看
aswinprabhu
Contributor III

Hi,

Can someone please direct me to some easy to understand example codes for transmitting data from LPC54628 to a PC (only transmit, no receive) via UDP? Requirement is to transmit ~250 bytes of data every 1 second.

 

Needless to say, I have no idea how UDP/ Ethernet works. I tried going through the 'lpcxpresso54628_lwip_udpecho_bm' example that is part of SDK_2.9.0. But I am unable to find the code section where the actual transmission of UDP data from the microcontroller takes place. If I can find that, I assume I can pass my data (250 bytes of data) to that code section and it will do the rest.

 

Any help would be greatly appreciated. Thanks..

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

1,238 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

Recommend you first study some basic UDP knowledge from google or others, then

debug the SDK demo step by step, also refer to User Manual of LPC54628, you can know

the basic configuration and process.

In the SDK demo, it use this function etharp_output() to send.

 

BR

Alice

1,233 次查看
aswinprabhu
Contributor III

Thank you for mentioning the function that is used by the SDK demo for transmitting packets. While searching for etharp_output() function I came across udp.c in lwip/ipv4 and found some more functions as well.

 

Also, I have started reading about UDP on Google. Thanks once again.

0 项奖励
回复