完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想从PIC32 TythEngWebServer演示应用程序开始,并将DNS服务器添加到它,这样我就可以把浏览器指向域名而不是IP地址。我的基础演示应用程序在我的硬件上运行,这是一个使用PIC32 MZ2048 EFH144的自定义板。一个旧的网件无线路由器正在处理DHCP,我可以在PC上硬路由到路由器或通过路由器的WiFi上的智能手机显示演示网页。我已经启用了DNS服务器,其默认值在MHC中生成并重建。在堆栈启动标志下,我还检查了这个接口上的启用DNS服务器。在控制台,我输入以下内容:DNSS添加www. MyDimaN.COM4192.1681.102120,但它仍然不起作用。PC上的平没有解决问题,当然把浏览器指向域名也不起作用。我错过了什么?
以上来自于百度翻译 以下为原文 I want to start with the pic32_eth_web_server demo app and add the DNS server to it, so that I can point the browser to a domain name rather than the IP address. I have the base demo app running on my hardware, which is a custom board using a PIC32MZ2048EFH144. An old Netgear wireless router is handing the DHCP and I can display the demo web page on either a PC hard-cabled to the router or with a smartphone over the router's wifi. I have enabled the DNS Server with it's default values in MHC, generated and rebuilt. Under the stack startup flags, I also checked enable DNS Server on this interface. At the console, I enter the following: dnss add www.mydomain.com 4 192.168.1.102 120 But, it still doesn't work. Ping from the PC doesn't resolve and of course pointing a browser to the domain name doesn't work either. What am I missing? |
|
相关推荐
7个回答
|
|
您好,下面这些是需要从堆栈中检查得到的响应。1。使TistCpPndnSpReSyyBoAdAdARDR标志为false,只获取该条目,其他DNS服务器将发送响应板地址。2。将“TCPIPpNETWorksObjixNSnServer”添加到TecCPIPNETWorksDeFultTyFraseFieldFr.NoWorksDePultNeWorksFLAG不应该同时具有“TCPIPpNETWORKONGIONDSNSLE clion on”和“TCPIPPNETWORKIONIONDSNSH Server”,也需要将DNS服务器地址添加到Windows ETS中。ErNET地址属性,需要重定向该数据包。
以上来自于百度翻译 以下为原文 Hi, These are the following thinks need to be checked from the stack to get the response. 1. make this TCPIP_DNSS_REPLY_BOARD_ADDR flag as false to get only the for the entry , other wise DNS server will send the response with board address. 2. add " TCPIP_NETWORK_CONFIG_DNS_SERVER_ON" to the TCPIP_NETWORK_DEFAULT_INTERFACE_FLAGS. NOTE - TCPIP_NETWORK_DEFAULT_INTERFACE_FLAGS should not have both "TCPIP_NETWORK_CONFIG_DNS_CLIENT_ON" and "TCPIP_NETWORK_CONFIG_DNS_SERVER_ON" enabled. and also DNS server address need to added to the windows Ethernet address properties , that packet need to be redirected. #define TCPIP_NETWORK_DEFAULT_INTERFACE_FLAGS TCPIP_NETWORK_CONFIG_DHCP_CLIENT_ON | TCPIP_NETWORK_CONFIG_DNS_SERVER_ON | TCPIP_NETWORK_CONFIG_IP_STATIC |
|
|
|
我做了上面的修改建议。我禁用DNS客户端以及SMTP和SNTP(以解决编译错误)。我已经检查过“……答复”。我验证了在系统Syth.It.c中生成的MHC接口标志是上面指定的。我有指向正确DNS IP地址的Windows以太网配置。我可以用WiReSurk看到PC发送一个DNS数据包到PIC,但是PIC没有响应。做出上述更改导致我的应用程序每隔几秒钟重新启动一次。
以上来自于百度翻译 以下为原文 I made the changes suggested above. I disabled DNS Client as well as SMTP and SNTP (to resolve compile errors). I already had the "...REPLY_BOARD_ADDRESS" unchecked. I verified that the MHC generated INTERFACE_FLAGS in system_init.c are as specified above. I have the Windows Ethernet configuration pointed to the right DNS IP address. I can see with wireshark that the PC sends a DNS packet to the PIC, but the PIC doesn't respond. Making the above changes caused my application to reboot every few seconds. Working on backing the changes out 1 by 1 to see where the rebooting came from. |
|
|
|
我收到了董事会的回复。请告诉我你现在使用的和声版本和演示是什么?从命令提示符-gt;DNSS添加www. abcdfg.com 4192.168100.155120请查看我从Windows命令提示符命令nsLoop-Up的响应
以上来自于百度翻译 以下为原文 I am getting the response from the board. Could you please tell me which Harmony version and demo you are using now? from the command prompt - >dnss add www.abcdefgh.com 4 192.168.100.155 120 please see my response from the windows command prompt for command nslookup - C:Usersi00265>nslookup www.abcdefgh.com DNS request timed out. timeout was 2 seconds. Server: UnKnown Address: 192.168.0.105 DNS request timed out. timeout was 2 seconds. DNS request timed out. timeout was 2 seconds. Non-authoritative answer: DNS request timed out. timeout was 2 seconds. Name: www.abcdefgh.com Address: 192.168.100.155 |
|
|
|
我使用的是和谐2.02b,它运行在一个与MZYEFSKSK板相当兼容的自定义板上——同样的PIC32 MZ2048 EFH144。今天早上,我再次启动了WebSyServyNVMMMPFS演示应用程序的新版本,并进行了以下修改:更改了时钟设置以使用我的24MHz的POSC。将以太网PHY更改为LAN820。添加MAC地址,并将IP地址更改为111.10.102启用的USATAR3(我的调试端口),并将控制台更改为使用UsARTAL控制台。添加了一些外围复位代码到StultInIt。C(我有一个输出引脚,可以在我的BOA上重置各种芯片)。RD)启用DHCP和DNS服务器,禁用DHCP和DNS客户端。禁用SMTP和SNTP来解决编译错误。与程序员一起构建和加载板。控制台显示以下内容:TCP/IP堆栈:初始化启动的SysIn初始化:MPFS2文件系统安装TCP/IP STACK:初始化结束-成功的接口PIC32 It在主机MCHPBOADARE-E-NBNS启用PIC32 IN IP地址:111.10102,然后,当我进入:DNSS添加www. abccom 41.107.102120和PIC重新启动后约2秒。
以上来自于百度翻译 以下为原文 I am using Harmony 2.02b, running on a custom board that is pretty compatible with the MZ_EF_SK board - same PIC32MZ2048EFH144. This morning, I started again with a fresh version of the web_server_nvm_mpfs demo application and made the following modifications: Changed the clock settings to use my 24 MHz POSC. Changed the Ethernet PHY to my LAN8720. Added the MAC address and changed the IP address to 11.10.10.102. Enabled USART3 (my debug port) and changed the console to use USART_CONSOLE. Added some peripheral reset code to system_init.c (I have an output pin that can reset various chips on my board). Enabled DHCP and DNS servers and disabled DHCP and DNS clients. Disabled SMTP and SNTP to resolve a compile error. Built and loaded the board with the programmer. The console displays the following: TCP/IP Stack: Initialization Started SYS_Initialize: The MPFS2 File System is mounted TCP/IP Stack: Initialization Ended - success Interface PIC32INT on host MCHPBOARD_E - NBNS enabled PIC32INT IP Address: 11.10.10.102 Then, when I enter: dnss add www.abc.com 4 11.10.10.102 120 and the PIC reboots after about 2 seconds. |
|
|
|
您好,您的设备是否与点对点连接,那就是您的测试设备是否直接连接?在没有DHCP客户端启用的情况下,我再次尝试过,我没有遇到任何重新启动问题。请检查硬件吗?我会建议,请分享你的演示项目,我会尝试在这里复制。
以上来自于百度翻译 以下为原文 Hi, Is your device connected with point to point , that is your device under test is connected directly? I tried again here without DHCP client enabled and I didn't face any reboot issue. Could you please check your hardware? I will suggest , please share your demo project and I will try to reproduce here. |
|
|
|
我通过启用DNS客户端和服务器和DHCP服务器来工作。我还检查了“回复DNS信息与板信息”。由于我不需要PIC成为一个“真实”的DNS服务器,只需服务自己的IP地址,这对我来说是有效的。从文档中的注释中,该特性绕过DNS缓存查找。
以上来自于百度翻译 以下为原文 I got it to work by enabling both DNS client and server and DHCP server. I also checked "Reply DNS info with board info". As I don't need the PIC to be a 'real' DNS server, just serve its own IP address, this works for me. From the notes in the documentation, this feature bypasses the DNS cache lookup. |
|
|
|
很高兴听到这对您有用。如果您在网络配置中提供DNS客户端和DNS服务器标志,我无法理解。请您共享网络配置细节好吗?
以上来自于百度翻译 以下为原文 Great to hear this that it worked for you. I got it to work by enabling both DNS client and server and DHCP server I couldn't understand here, if you have provided both DNS client and DNS server flag at the network configuration. Could you please share network configuration details? |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
727浏览 1评论
612浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
501浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
626浏览 0评论
524浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 03:55 , Processed in 1.178323 second(s), Total 60, Slave 53 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号