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.

CC3235S: AP Mode: Set DNS address in DHCP Server

Part Number: CC3235S

Tool/software:

Our device is configured as access point.
When I connect an iPhone the DHCP server must provide a valid DNS address.
Currently the DHCP server provides DNS address 0.0.0.0 which is obviously not accepted by the iPhone, when the DNS address mode is set to 'automatic'.
The result is, that the WiFi symbol is not shown in the upper status bar and the app cannot access the access point.

Although our device has no need to resolve domain names since we only work with IP addresses for our connections.


in our device the IP address as well as the DNS address module must be configured at runtime.


How do I set the DNS address which the DHCP server propagates during module runtime?
Can you please send me some example code?

Here is what the DHCP server responds to the iPhone

Frame 12: 342 bytes on wire (2736 bits), 342 bytes captured (2736 bits) on interface \Device\NPF_{C494B194-D1BE-4AC4-890C-20CFBD8B98EB}, id 0
Ethernet II, Src: TexasInstrum_78:5a:c5 (1c:63:49:78:5a:c5), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol Version 4, Src: 192.168.178.1, Dst: 255.255.255.255
User Datagram Protocol, Src Port: 67, Dst Port: 68
Dynamic Host Configuration Protocol (ACK)
Message type: Boot Reply (2)
Hardware type: Ethernet (0x01)
Hardware address length: 6
Hops: 0
Transaction ID: 0xfda9050c
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
Client IP address: 0.0.0.0
Your (client) IP address: 192.168.178.3
Next server IP address: 0.0.0.0
Relay agent IP address: 0.0.0.0
Client MAC address: 92:f0:07:f5:e5:63 (92:f0:07:f5:e5:63)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: DHCP
Option: (53) DHCP Message Type (ACK)
Option: (54) DHCP Server Identifier (192.168.178.1)
Length: 4
DHCP Server Identifier: 192.168.178.1
Option: (1) Subnet Mask (255.255.255.0)
Length: 4
Subnet Mask: 255.255.255.0
Option: (3) Router
Length: 4
Router: 192.168.178.1
Option: (6) Domain Name Server
Length: 4
Domain Name Server: 0.0.0.0
Option: (51) IP Address Lease Time
Length: 4
IP Address Lease Time: 1 day (86400)
Option: (58) Renewal Time Value
Length: 4
Renewal Time Value: 12 hours (43200)
Option: (59) Rebinding Time Value
Option: (255) End
Padding: 0000000000000000000000000000

  • Hi,

    You you have enabled and properly configured DNS server? What SDK version do you use? Do you have uploaded latest ServicePack inside device?

    Jan

  • In addition to Jans questions, I would recommend to go over chapter 10 of the network processor guide.

    https://www.ti.com/lit/ug/swru455m/swru455m.pdf 

    Best,

    Rogelio

  • Hi Jan

    Our application does not require DNS support.
    What for do I need to enable/configure a DNS server then?

    We configure a DHCP server to assign IP addresses. Part of the DHCP response is a DNS address anyway. 

    The iPhone does not react as expected on DNS IP Address == 0.0.0.0 if configured to 'automatic'.
    Currently it connects but the WiFi symbol is not showing. 
    If the iPhone has a DNS IP address set to manual it works. Since 'automatic' is default we need to get it work somehow to have the same behavior as for our previous WiFi module, which is replaced by CC3235S. 

    SDK CC32xx 7.10.0.13 (as suggested by TI application engineer)
    sp_4.13.0.2_3.7.0.1_3.1.0.26.bin

    Any idea on how to proceed?

  • Note: On Android the current implementation is connecting as expected and the app can access the device.

  • Hi Thomas,

    DNS server for AP mode can be enabled by NetApp option SL_NETAPP_DNS_SERVER_ID. Make sure that you have enabled DNS server before you start DHCP server for AP mode by sl_NetAppStart() API.

    If you are not satisfied how responses from DHCP server for AP mode looks like, you still have option disable DHCP server and run your own DHCP server at application processor.

    Jan