完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我想使用两个BCM943907WCD2设备,一个是服务器(或网关),另一个是客户端。 AP在WICEDYSTARTHODHCPYServer()中无法启动DHCP服务,因为我将接口定义为WieDeE.EnthNET-Butter。 如何获得正确的配置来运行BCM943907WCD2平台作为具有DHCP功能的以太网服务器? 有人能帮忙吗? 以上来自于百度翻译 以下为原文 Hi, I want to use two BCM943907WCD2 devices and one is server(or gateway) ,the other is client. The AP fails to start DHCP service at wiced_start_dhcp_server() because I define the interface as WICED_ETHERNET_INTERFACE . How can I get the right configuration to run a BCM943907WCD2 platform as an ethernet server with DHCP function? Could anyone help? |
|
相关推荐
11个回答
|
|
您可以使用WiDeJETNETWorksUp(WieDeE.EnthNETHealthPo界面,WiDeGiEuthInAuthalDHCPAsServer,NULL);WICDEXUSEIONALALYODHCPA服务器将允许WICE启动DHCP服务器。
以上来自于百度翻译 以下为原文 You can use wiced_network_up( WICED_ETHERNET_INTERFACE, WICED_USE_INTERNAL_DHCP_SERVER, NULL ); for this. The WICED_USE_INTERNAL_DHCP_SERVER would allow WICED to start DHCP server. |
|
|
|
asd013 发表于 2018-12-3 18:24 你好, 因为不允许参数,所以它被困在WICDEDSTARGIDDHCP Server()中。当使用WijdUsIsInAualLoDHCPYServer选项时,WICDEDSTARTHODHCPYServer()将将WICDEDE EnETNETHEL接口语句设为WICDED BADARG,如下所示。 DHCPIXCHECK-PARAMS((Server=NULL)}((接口)!= WICEDED STAI接口(&)和(接口)!= WICEDDYAPH接口和&(接口)!= WICEDDY2PpI接口(&);= WICDEDICONTIGION接口),WICEDED BADARG; 以上来自于百度翻译 以下为原文 Hi grsr, It is stuck in wiced_start_dhcp_server() since the parameter is not allowed. When use the WICED_USE_INTERNAL_DHCP_SERVER option, wiced_start_dhcp_server() will sentence the WICED_ETHERNET_INTERFACE to be WICED_BADARG as the following shows at line.153 in dhcp_server.c. DHCP_CHECK_PARAMS( (server == NULL) || ( (interface != WICED_STA_INTERFACE) && (interface != WICED_AP_INTERFACE) && (interface != WICED_P2P_INTERFACE) && (interface != WICED_CONFIG_INTERFACE) ), WICED_BADARG ); |
|
|
|
LynnQ 发表于 2018-12-3 18:44 如果注释DHCPIQuestPARAMS行,它是否工作? 以上来自于百度翻译 以下为原文 Does it work if you comment out the DHCP_CHECK_PARAMS line? |
|
|
|
结果是“无法通过DHCP获得IP地址” 以上来自于百度翻译 以下为原文 The result is "Unable to obtain IP address via DHCP" |
|
|
|
JoeCouMux842441写道: 结果是“无法通过DHCP获得IP地址” GRSR 对此有何评论? 以上来自于百度翻译 以下为原文 joeccmou_2842441 wrote:grsr Any comment about this? |
|
|
|
LynnQ 发表于 2018-12-3 18:44 请忽略我最后的回答。以太网接口不能用作DHCP服务器。WICDEDUSE.UnIALALYDHCPA服务器仅适用于SoFAP接口。 以上来自于百度翻译 以下为原文 Please ignore my last response. Ethernet interface cannot be used as DHCP server. The WICED_USE_INTERNAL_DHCP_SERVER is only valid for softAP interface. |
|
|
|
asd013 发表于 2018-12-3 19:25 为什么以太网接口不能用作DHCP服务器? 看一下库/守护进程/DHCPAServer,根本没有这样的限制。 以上来自于百度翻译 以下为原文 Why ethernet interface cannot be used as DHCP server? Take a look at libraries/daemons/DHCP_server, there is no such limitation at all. |
|
|
|
asd013 发表于 2018-12-3 19:25 谢谢您的回复,但是为什么以太网接口不能用作DHCP服务器呢? 以上来自于百度翻译 以下为原文 Thank you for your reply, but why the ethernet interface cannot be used as DHCP server? |
|
|
|
要启动DHCP服务器,需要在WICEDDYNETWorksUp()中使用WICDEDUIXUILALLYDHCPL服务器。然而,在文档API.HTML中,WICDEDUSEIONILALALYDHCP服务器已经被描述为“SOFTAP接口:使用内部DHCP服务器”。接口的配置如下所示: 静态WiDeDeNETWorksObjyToWiDeDeCaseCopyCase[WICDEDIIOFACEMEXMAX ] = { [ WieDeStAdSuffele]=WICEDIAUSEXULTALALYDHCP服务器, [WICDEDAPAPION] = WICEDIAUSEIONIALALYDHCP服务器 [WICEDEX2PpIdule]=WICEDIAUSEXULALALYDHCP服务器, [ WieDeCeEthNETHealth] }; 以上来自于百度翻译 以下为原文 To start DHCP server, the WICED_USE_INTERNAL_DHCP_SERVER is required in wiced_network_up(). However, in the documentation API.html, WICED_USE_INTERNAL_DHCP_SERVER has been described as "softAP interface: use the internal DHCP server". The interfaces are configured as shown in the struct below: static wiced_network_config_t wiced_config_cache[ WICED_INTERFACE_MAX ] = { [WICED_STA_INTERFACE] = WICED_USE_EXTERNAL_DHCP_SERVER, [WICED_AP_INTERFACE] = WICED_USE_INTERNAL_DHCP_SERVER, [WICED_P2P_INTERFACE] = WICED_USE_EXTERNAL_DHCP_SERVER, [WICED_ETHERNET_INTERFACE] = WICED_USE_EXTERNAL_DHCP_SERVER, }; |
|
|
|
我想你可以试试: 1。变化 [ WieDeCeEthNETHealth] 到 [ WieDeCeEthNETHealth] 以上更改取决于您使用的网络堆栈: WICES/Network/LwIP/WICES/WICEDDY网络 WICES/Network/NetX/WICES/WICEDDY网络 WICES/Network/NetXJ2OO/WICED/WICEDEX网络 2。注释DHCP服务器中的线路检查接口。 以上来自于百度翻译 以下为原文 I think you can try: 1. Change [WICED_ETHERNET_INTERFACE] = WICED_USE_EXTERNAL_DHCP_SERVER, to [WICED_ETHERNET_INTERFACE] = WICED_USE_INTERNAL_DHCP_SERVER, Above change depends on the network stack you use: WICED/network/LwIP/WICED/wiced_network.c WICED/network/NetX/WICED/wiced_network.c WICED/network/NetX_Duo/WICED/wiced_network.c 2. Comment out the line checking interface in dhcp_server. |
|
|
|
尝试添加:
WiDeDIPIPSEngultIt IpStase= { PrimalIsSeriIPv4x地址(.IPX地址,MaMaxIPv4x地址(192168, 0, 1)) PrimalIsSeriIPv4x地址(.NETSMAGE,MaMaJIPv4x地址(255255255, 0)) PrimalIsSeriIPv4x地址(.Gateway,MaMaJIPv4x地址(192168, 0, 1)) }; WICEDDYNETWorksUP(WICDEDE EnETNETHOLD接口,WICDEDUSEIONIALALL DHCPA服务器,和IPIN设置); 如果在调试中构建,请评论下面的测试行 /*DHCPARCHECK-PARAMS((Server== NULL)}((接口)!= WICEDED STAI接口(&)和(接口)!= WICEDDYAPH接口和&(接口)!= WICEDDY2PpI接口(&);= WiEdEdTebug接口),WICEDED BADARG);*/ 以上来自于百度翻译 以下为原文 Try adding this: wiced_ip_setting_t ip_settings = { INITIALISER_IPV4_ADDRESS( .ip_address, MAKE_IPV4_ADDRESS( 192,168, 0, 1 ) ), INITIALISER_IPV4_ADDRESS( .netmask, MAKE_IPV4_ADDRESS( 255,255,255, 0 ) ), INITIALISER_IPV4_ADDRESS( .gateway, MAKE_IPV4_ADDRESS( 192,168, 0, 1 ) ), }; wiced_network_up( WICED_ETHERNET_INTERFACE, WICED_USE_INTERNAL_DHCP_SERVER, &ip_settings ); If building for debug, comment the following line for testing /* DHCP_CHECK_PARAMS( (server == NULL) || ( (interface != WICED_STA_INTERFACE) && (interface != WICED_AP_INTERFACE) && (interface != WICED_P2P_INTERFACE) && (interface != WICED_CONFIG_INTERFACE) ), WICED_BADARG ); */ |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2106 浏览 1 评论
1853 浏览 1 评论
3672 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1788 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
572浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
425浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
438浏览 2评论
388浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
918浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 00:18 , Processed in 1.129888 second(s), Total 98, Slave 82 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号