Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
DIY综合交流区
DHCP的问题?
发布于 2012-04-07 00:40:52 浏览:10399
订阅该版
我参考stm32radio V4版自己做了一块板子,CPU和dm9000是一样的, 现在DHCP一直不成功,我把DHCP_DEBUG打开,重新编译,启动的打印信息如下: ```SystemInit...... CPU SN: 35FFD6053346343026871743 mem test pass!! | / - RT - Thread Operating System / | 0.4.0 build Apr 6 2012 2006 - 2011 Copyright by rt-thread team sdcard init failed SPI File System initialized! SD File System init failed! Unable to open GBK to Unicode look up table. Unable to open Unicode to GBK look up table. load_default! Invalid LCD ID:00000000 Please check you hardware and configure. data bus test error: 0022 0022 rem_codes /resource/remote.txt open fail! fd:-1 The remote disbale. please run rem_study() rtc is not configured please configure with set_date and set_time Thu Jan 1 00:00:00 1970 dm9000 id: 0x90000a46 finsh>>operating at 100M full duplex mode lwip_sanity_check: WARNING: TCP_SND_BUF must be at least as much as (2 * TCP_MSS) for things to work smoothly dhcp_start(netif=6800480c) e00 dhcp_start(): starting new DHCP client dhcp_start(): allocated dhcpdhcp_start(): starting DHCP configuration dhcp_discover() transaction id xid(abcd0001) dhcp_discover: making request dhcp_discover: realloc()ing dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, DHCP_SERVER_PORT) dhcp_discover: deleting()ing dhcp_discover: SELECTING dhcp_discover(): set request timeout 2000 msecs dhcp_discover() transaction id xid(abcd0002) dhcp_discover: making request dhcp_discover: realloc()ing dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, DHCP_SERVER_PORT) dhcp_discover: deleting()ing dhcp_discover: SELECTING dhcp_discover(): set request timeout 2000 msecs TCP/IP initialized! stat -> stopped dhcp_recv(pbuf = 6800000c) from DHCP server 192.168.1.1 port 67 pbuf->len = 548 pbuf->tot_len = 548 transaction id mismatch reply_msg->xid(abcd0001)!=dhcp->xid(abcd0002) dhcp_free_reply(): free'd dhcp_recv(pbuf = 68000028) from DHCP server 192.168.1.1 port 67 pbuf->len = 548 pbuf->tot_len = 548 dhcp_free_reply(): free'd dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[] dhcp_unfold_reply(): copied 308 bytes to dhcp->options_in[] searching DHCP_OPTION_MESSAGE_TYPE option found at offset 0 in options option byte value=2 DHCP_OFFER received in DHCP_SELECTING state skipping option 53 in options option found at offset 3 in options dhcp_handle_offer(netif=6800480c) e00 option long value=3232235777 dhcp_handle_offer(): server 0x0101a8c0 dhcp_handle_offer(): offer for 0x6801a8c0 dhcp_select(netif=6800480c) e00 transaction id xid(abcd0003) dhcp_select: REQUESTING dhcp_select(): set request timeout 2000 msecs dhcp_free_reply(): free'd dhcp_recv(pbuf = 68000028) from DHCP server 192.168.1.1 port 67 pbuf->len = 548 pbuf->tot_len = 548 dhcp_free_reply(): free'd dhcp_unfold_reply(): copied 240 bytes into dhcp->msg_in[] dhcp_unfold_reply(): copied 308 bytes to dhcp->options_in[] searching DHCP_OPTION_MESSAGE_TYPE option found at offset 0 in options option byte value=5 DHCP_ACK received skipping option 53 in options skipping option 54 in options skipping option 1 in options option found at offset 15 in options option long value=7200 skipping option 53 in options skipping option 54 in options skipping option 1 in options skipping option 51 in options overloaded message detected skipping option 3 in options skipping option 28 in options skipping option 6 in options overloaded sname and file field skipping option 53 in options skipping option 54 in options skipping option 1 in options skipping option 51 in options overloaded message detected skipping option 3 in options skipping option 28 in options skipping option 6 in options overloaded sname and file field skipping option 53 in options skipping option 54 in options option found at offset 9 in options option long value=4294967040 skipping option 53 in options skipping option 54 in options skipping option 1 in options skipping option 51 in options overloaded message detected option found at offset 24 in options option long value=3232235777 skipping option 53 in options skipping option 54 in options skipping option 1 in options skipping option 51 in options overloaded message detected skipping option 3 in options option found at offset 30 in options option long value=4294967295 skipping option 53 in options skipping option 54 in options skipping option 1 in options skipping option 51 in options overloaded message detected skipping option 3 in options skipping option 28 in options option found at offset 36 in options option byte value=8 option long value=1032520261 option long value=3657877643 dhcp_check(netif=6800480c) e0 dhcp_check(): set request timeout 500 msecs dhcp_free_reply(): free'd finsh>>dhcp_coarse_tmr() finsh>>dhcp_coarse_tmr() finsh>>list_if() Default network interface: e0 MTU: 1500 MAC: 00 60 6e 30 26 87 FLAGS: DOWN LINK_UP DHCP ETHARP ip address: 0.0.0.0 gw address: 0.0.0.0 net mask : 0.0.0.0 dns server: 61.139.2.69 24, 0x00000018``` 请忽略其他部分的初始化失败信息,我的板子上没有这些功能,还没裁剪, 我目前只关心网络功能, 抓包信息如下: ![11111111111.jpg](/uploads/1003_38c7bc95e2858ee9ad97cf5aca6684ae.jpg) 目前项目卡在这里,很是急迫,请大家不吝赐教!
查看更多
7
个回答
默认排序
按发布时间排序
aozima
2012-04-07
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
设为固定IP测下先
keendawn
2012-04-07
这家伙很懒,什么也没写!
>设为固定IP测下先 --- 设为固定IP都是OK的,可以ping通. 由于最终产品还是要用DHCP来分配IP地址,所以DHCP的问题一定要解决才行!
keendawn
2012-04-07
这家伙很懒,什么也没写!
今天又分析了半天,应该就是板子发出的DHCP discover帧(不知为何还发出了两遍),不知为何路由器一直没有回复OFFER帧? 这个路由器对PC的DHCP都是正常的,而且我在两个路由器上都试过,现象都一样. 我就怀疑板子发出的DHCP discover帧是不是有什么错误,对报内容过了一遍,也没发现什么问题?
bernard
2012-04-08
这家伙很懒,什么也没写!
这个贴为啥出现在这里? DHCP不对,那么你找个DHCP server软件来调试下,把DHCP server那边的报文都打印出来。DHCP server没响应无非几个问题: 1. client发出的包有错误,server丢弃掉; 2. server的包发送出来,但是被防火墙,或最终网卡侧认为是一个非法包丢弃掉。 一个DHCP server不行,那么就多几个试试。再不行,就在板子上实现个DHCP server,然后对联试试。
keendawn
2012-04-08
这家伙很懒,什么也没写!
>这个贴为啥出现在这里? > >DHCP不对,那么你找个DHCP server软件来调试下,把DHCP server那边的报文都打印出来。DHCP server没响应无非几个问题: >1. client发出的包有错误,server丢弃掉; >2. server的包发送出来,但是被防火墙,或最终网卡侧认为是一个非法包丢弃掉。 > >一个DHCP server不行,那么就多几个试试。再不行,就在板子上实现个DHCP server,然后对联试试。 --- 我烧的是stm32radio V4版的程序,怎么不能放在这里提问? ls的脾气好像很不好呦
bernard
2012-04-08
这家伙很懒,什么也没写!
stm32radio是老的东西,都快关闭了。当然你放在这里提问也没关系
撰写答案
登录
注册新账号
关注者
0
被浏览
10.4k
关于作者
keendawn
这家伙很懒,什么也没写!
提问
3
回答
9
被采纳
0
关注TA
发私信
相关问题
1
[项目]搞个开源的硬件项目
2
硬件计划贴,及时更新,欢迎提意见
3
软件计划贴,及时更新,欢迎提意见::WMA,MOUNT,LWIP等问题急需解决.
4
MMS协议
5
定点的wma解压库-libwma
6
QQ群记录 [20090821]
7
STM32网络收音机PCB报名征集
8
第一版调试记录
9
第二版硬件讨论
10
RADIO项目相关模块规格--欢迎大家自己做板时规格与此兼容,减少重复劳动
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
开源共生 商业共赢 | RT-Thread 2024开发者大会议程正式发布!
2
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
3
RT-Thread EtherKit开源以太网硬件正式发布
4
如何在master上的BSP中添加配置yml文件
5
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
MicroPython
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
19
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
6
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
RTT_逍遥
1
篇文章
5
次点赞
大龄码农
1
篇文章
5
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部