Bsd server send function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bsd server send function

1,152 Views
Asmita
Contributor I

I am using LPC1768 from NXP. my application is to send and receive data via ethernet interface. I am using DP83848 as phy chip. I have used BSD server example code and customize it for my project. I am using retv function and able to send data from PC to microcontroller and perform required operations. But for sending data from microcontroller to PC I am using inbuilt send function in BSD server example, but I am not able to see any activity in Wireshark. I guess socket itself not getting created while sending. Need help to resolve. dbuf is the buffer storing received commands and same buffer for sending. Can you help me with some example on the flow how to write the code or any settings I need to change in bsd server example to enable send function.

0 Kudos
Reply
2 Replies

1,100 Views
frank_m
Senior Contributor III

As ZhangJennie suggested, use the provided SDK samples.

Lwip is a "lightweigt" IP stack, which does not implement the full BSD stack. Thus, plain BSD code would need some extra effort to get it running.

0 Kudos
Reply

1,105 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

For LPC1768/69, we only have lpcopen sample package

https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcop...

there is lwip and webserver related demo included. besides, we don't have other samples.

 

Have a nice day

Jun Zhang

0 Kudos
Reply