完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我已经编写了一些代码来发送DHCCP发现包。处理器是18F97 J60。PIC-WEB-EK板。我使用WireShark来监控数据包。问题是:如果我发送一个数据包,网络什么也看不到。如果我发送6个包,在它们之间有一个小的延迟,4个包出现。我没有得到DHCP服务器的响应,至少我可以看到。显示的数据包被WireShark识别为好的数据包。我已经检查过我的代码一百次了,但是没有找到对此的解释。我有全双工的硬件设置。状态向量没有显示错误,并且数据包被成功发送。ESTAT只显示位0设置。听起来像是某种前导问题或PHY设置的问题,但我已经看过数据表了。这就是我要重新检查的地方。我需要一些建议。
以上来自于百度翻译 以下为原文 I have written some code that sends out a dhcpdiscover packet. Processor is the 18F97j60. The PIC-WEB-EK board specifically. I am using WireShark to monitor the packets. Here's the problem: If I send a single packet the network sees nothing. If I send out 6 packets with a small delay between them 4 packets show up. I am not getting a response from the DHCP server, at least that I can see. The packets that show up are recognised by WireShark as good packets. I have gone over my code a hundred times but can find no explanation for this. I have the hardware set for full duplex. Status vectors show no errors and that the packet was sent successfully. ESTAT shows only bit 0 set. Sounds like some kind of preamble issue or something with the PHY settings but I have gone by the datasheet. Which is where I will start to double check. I need some suggestions. |
|
相关推荐
1个回答
|
|
我看了用C编写的微芯片代码。我正在编写汇编代码,但是我看到的是他们每2秒发送一个DHCP发现包,直到他们得到响应。虽然这可能奏效,但它对问题没有任何启示。我的意思是,他们可能会有同样的问题,只是在周围工作,我对此表示怀疑。就我所知,它们使用相同的数据表MAC和PHY设置。
以上来自于百度翻译 以下为原文 I looked at the Microchip code, which is written in C. I am writing in assembly, but all I see is they are sending a DHCP discovery packet every 2 seconds until they get a response. While that may work, it sheds no light on the problem. I mean they could have the same issue and just be working around it, which I doubt. They use the same datasheet MAC and PHY settings as far as I can tell. |
|
|
|
只有小组成员才能发言,加入小组>>
5003 浏览 9 评论
1921 浏览 8 评论
1852 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3066 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2143 浏览 5 评论
574浏览 1评论
431浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
475浏览 0评论
367浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
852浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-16 15:09 , Processed in 1.255007 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号