器件型号:TMDSSOLARPEXPKIT
你(们)好。
我正在处理 SolarExplorer_PVINVER_F28M35x_M3项目、我想知道如何更改默认 设置为 169.254.42.86的主机 IP 地址。
非常感谢!
Carlos
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
器件型号:TMDSSOLARPEXPKIT
你(们)好。
我正在处理 SolarExplorer_PVINVER_F28M35x_M3项目、我想知道如何更改默认 设置为 169.254.42.86的主机 IP 地址。
非常感谢!
Carlos
请查看中的代码
Enet_uip.c
/*********
//此应用程序的默认 TCP/IP 设置。
//默认为链接本地地址... (169.254.1.0至169.254.254.255)。 注:
//此应用程序不实施 Zeroconf 协议。 没有 ARP 查询
//发出以确定此静态 IP 地址是否已被使用。
// TODO:取消注释以下#define 语句以启用静态 IP
//而不是 DHCP。
//
#define USE_STATIC_IP
#ifndef default_IPADDR0
#define DEFAULT_IPADDR0 169
#endif
#ifndef default_ipADDR1
#define DEFAULT_IPADDR1 254
#endif
#ifndef default_IPADDR2
#define DEFAULT_IPADDR2 254
#endif
#ifndef default_ipaDDR3
#define DEFAULT_IPADDR3 169
#endif
#ifndef default_NETMASK0
#define DEFAULT_NETMASK0 255
#endif
#ifndef default_NETMASK1
#define DEFAULT_NETMASK1 255
#endif
#ifndef default_NETMASK2
#define DEFAULT_NETMASK2 0
#endif
#ifndef default_NETMASK3
#define DEFAULT_NETMASK3 0
#endif