This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DHCP server in AP mode with 3200

Other Parts Discussed in Thread: CC3200

hi,

    I have used cc3200 .Now i want to set DHCP server address.The follow is my test in AP mode with HTTPSERVER project.

    First i format the 3200、service pack、program.Then i enter the setting page.

    1、I set Access Point Mode :

          IP 192.168.1.1;

          Dhcp server :start 192.168.1.252  . last 192.168.1.254

          I connect to the 3200,i get ip (192.168.1.252).this is right.

    2、I set Access Point Mode :

          IP 192.168.1.1;

          Dhcp server :start 192.168.2.252  . last 192.168.2.254

          I connect to the 3200,i get ip (192.168.1.252).this is not right.But i can enter the set page,and i can ping it(192.168.1.1).

     3、I set Access Point Mode :

          IP 192.168.2.1;

          Dhcp server :start 192.168.2.252  . last 192.168.2.254

          I connect to the 3200,i can not get ip ,this is not right.And i can not enter the set page,and i can not ping it(192.168.2.1).

     I have reset the device after set it.

     If i set  IP 192.168.2.1;  Dhcp server :start 192.168.2.252  . last 192.168.2.254   ,I get the ip is 169.254.131.46.

    I don't this is why,can you help me.

   

   

  • I can confirm that things behave strangely when you set outside the 192.168.1.X subnet, and that there are likely some issues. But I did get slightly different behaviour to you.

    I set Access Point Mode :

    IP 192.168.2.1;
    Dhcp server :start 192.168.2.252 . last 192.168.2.254
    My iPad then connects with the IP address 192.168.1.5 and I can access the site on 192.168.1.1

    I do have a question.

    Why are you wanting to make these changes? After all, since the connection will only be between 2 devices, the CC3200 and a Client (Smart Phone, Tablet or Computer) it does not seem like there is anything to gain from manually setting the IP address and DHCP addresses.

    I ask, as if this is an issue, then a priority based on severity of the issue will need to be determined.

    Glenn.
  • Now many computers have two network card ,if you want to use them at the same time,you need to separate them.I do this just for separate them using different net segment.
  • Ok. So you want to make your CC3200 Device use an uncommon local IP subnet, so that it does not have problems with a computer that has 2 network cards, with one of them using the local 192.168.1.X subnet.

    This issue will now need to be looked into by TI. Though I suspect this may be the way things are, as in the 192.1681.1.X range is the only supported range.

    Glenn.
  • Hi,

    We have found it to be a bug. It isn't possible to configure the default GW from the HTTP server pages (which are using the system token). The only GW that is set is 192.168.1.xxx.
    The current workaround for this issue is to rewrite the setting webpage with a proprietary token for the default GW address.
    Setting the GW address from the host driver API works well.

    Thanks,
    Alon
  • Hi,
    I test the host driver API .It works well.But i find that the first set is not effective ,though i add sl_stop and sl_start.Only reset can make it work well.
    sl_NetAppStop(SL_NET_APP_DHCP_SERVER_ID); // Stop DHCP server before settings
    sl_NetAppSet(SL_NET_APP_DHCP_SERVER_ID, NETAPP_SET_DHCP_SRV_BASIC_OPT, outLen, (unsigned char*)&dhcpParams); // set parameters
    sl_NetAppStart(SL_NET_APP_DHCP_SERVER_ID);

    sl_Stop(10);
    sl_Start(NULL,NULL,NULL);