LPC54628 UDP example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54628 UDP example

1,246件の閲覧回数
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,235件の閲覧回数
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,230件の閲覧回数
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 件の賞賛
返信