Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 3 months ago.
Nucleo F429ZI: Ethernet Interface not connecting to laptop
I'm trying to create an Ethernet connection between a Nucleo F429ZI board and a Windows 10 Dell laptop. I simply want to be able to send UDP packets between the two using an ethernet cable. I am using the Ethernet Interface similarly to how its done on the MBed website in Docs › Reference › Network Interfaces › Ethernet, but the .connect() function on the EthernetInterface object is failing. I have tried many different settings and IP address configurations but I believe the problem has to do either the physical connection (ie do I have to have a router or a switch in between the two?) or the laptop itself not having the right drivers or wrong settings. I think it's one of those reasons because the code is failing before even creating a UDP socket and sending to it. If you know of any examples with a similar goal or can provide any insight into how to debug it, that would be awesome. Thanks!
1 Answer
6 years, 3 months ago.
You need to manually set an IP with your own LAN Set your network port on your laptop as 192.168.137.1 Use the code snippet below to set the MBED board to 192.168.137.25 Regards
#define IP "192.168.137.25" #define NETMASK "255.255.255.0" #define GATEWAY "192.168.137.1" EthernetInterface eth; TCPSocket socket; UDPSocket udpsocket; int main() { printf("Example network-socket HTTP client\n"); eth.set_network(IP, NETMASK, GATEWAY); // Brings up the network interface eth.connect(); const char *ip = eth.get_ip_address(); const char *mac = eth.get_mac_address(); printf("IP address is: %s\n", ip ? ip : "No IP"); printf("MAC address is: %s\n", mac ? mac : "No MAC"); //ETC
Awesome post and I would also like to visit this kind of posts in the future.
visit the below link to resolve Windows error code 0x80070652 https://www.microsoftwindowssupportnumber.com/blog/windows-error-code-0x80070652/
posted by 08 Feb 2019Network errors are usually caused due to poor connectivity to the internet. If you receive a network error, you can try to sync your session again by pressing "Retry"�. If network errors continue, make sure you are in a place with good WiFi reception, or that cellular data is enabled. common network problems https://intrepidsoftware.com/common-network-error-messages-solutions/
posted by 15 Feb 2019
Click Start > Settings > Control Panel, double-click the Scanners and Cameras icon, and delete your scanner from the list of installed devices. Then uninstall andreinstall Epson Scan. See Uninstalling Your Scanning Software for instructions on uninstalling Epson scanner support. https://www.epsonsupport247.com/epson-scanner-driver/
posted by rain smith 15 Feb 2019SEO stands for “search engine optimization.” It is the process of getting traffic from the “free,” “organic,” “editorial” or “natural” search results on search engines. Main helper visit Top OnPage Tools List 2019 https://alltopsite.com/on-page-tools/
posted by rain smith 15 Feb 2019