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.

How to query the information (like MAC, IP addrs etc) of the connected stations to Access Point in CC3100

Other Parts Discussed in Thread: CC3100SDK, CC3100, CC3200

I have already executed "getting_started_with_wlan_ap" stater program given in the CC3100SDK_1.2.0 SDK using Code Composer Studio 6.1.3 and I am able to connect devices like mobile phones having wifi feature to CC3100 which is used as Access Point. With CC3100 I am using TM4C123GXL Launchpad.

Now I want to print the device information (like MAC, IP addrs etc) of the connected stations to Access Point in the serial terminal of Launchpad.So how can I query those information (like MAC address, IP address etc.) of the stations / devices connected to the Access Point.

I have seen "CC3100/CC3200 SimpleLink™ Wi-Fi® Internet-on-a-Chip User's Guide" . In this guide in Chapter 10 , I got something related to this under subsection in 10.4 "WLAN Parameters Query – API". Am I supposed to use this to query the device information or some other approaches I must adopt.

Please help me to find the solution.

  • Hello,
    Can you connect to the device throught CLI? If is possible, you can get the device information with a command like "show info". You can check the available commands typing "help" or "?". If you can't connect with CC3100/CC3200 directly, I don't know if there are any API to check the information.

    Regards.
  • I'm moving this to the CC31xx/CC32xx Forum.

    Best Regards,
    Ben M
  • Hi,

    If we talk about information about connected client when is your CC3100 in AP mode, this information you can get via SimpleLink handlers:

    MAC address of client:

    void SimpleLinkWlanEventHandler(SlWlanEvent_t *pWlanEvent){
      switch(pWlanEvent->Event) {
        case SL_WLAN_CONNECT_EVENT:
          break;
        case SL_WLAN_DISCONNECT_EVENT:
          break;
        case SL_WLAN_STA_CONNECTED_EVENT:
          // MAC address of you connected client in AP mode
          pWlanEvent->EventData.APModeStaConnected.mac
          break;
        case SL_WLAN_STA_DISCONNECTED_EVENT:
          // client was disconnected from AP
    break; } }

    If client use DHCP, you can get IP by this event:

    void SimpleLinkNetAppEventHandler(SlNetAppEvent_t *pNetAppEvent) {
     switch(pNetAppEvent->Event) {
      case SL_NETAPP_IPV4_IPACQUIRED_EVENT:
       break;
      case SL_NETAPP_IP_LEASED_EVENT:
       // IP adress of client, if client get IP from DHCP server in CC3100
       pNetAppEvent->EventData.ipLeased.ip_address
       break;
     case SL_NETAPP_IP_RELEASED_EVENT:
       break
     }
    }

    Jan