Problem with using internal dhcp with ethernet

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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?

0 Likes
1 Solution
AndrewY_86
Employee
Employee
25 sign-ins 25 replies posted 10 replies posted

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 ); */

View solution in original post

11 Replies