发 帖  
原厂入驻New
张飞软硬开源基于STM32 BLDC直流无刷电机驱动器开发视频套件, 👉戳此立抢👈
[问答] 发送一个数据包,网络什么也看不到
83 处理器
分享
我已经编写了一些代码来发送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.

0
2019-5-24 14:53:28   评论 分享淘帖 邀请回答
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. 
 
 
2019-5-24 15:13:12 评论

举报

只有小组成员才能发言,加入小组>>

42个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /10 下一条

快速回复 返回顶部 返回列表