|
From: | address@hidden |
Subject: | Re: [lwip-users] ethernet external loopback test using lwip |
Date: | Fri, 25 Oct 2019 20:53:42 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
Am 25.10.2019 um 15:17 schrieb vinu:
Hi all, I need to run an external loopback test (using an Ethernet loopback cable) using LwIP 1.4.2 stack as part of board testing. Please note that i need the data to loop through the Ethernet cable and come back to the device. Is this possible using netconn APIs or should i make use of raw tcp apis ? Please share if there is any example code snippets for the same.
Why do you need to use lwIP for that? Just call your driver's TX function directly and wait for it to receive back the packet. With lwIP it could get more difficult. But if you insist on lwIP, try sending a UDP broadcast that you can receive back. TCP probably won't work. Regards, Simon
[Prev in Thread] | Current Thread | [Next in Thread] |