WiFI events in EMC radiations test

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

WiFI events in EMC radiations test

Postby snahmad75 » Fri Nov 16, 2018 6:00 pm

Hi,
when client connect with Access Point. I get SYSTEM_EVENT_AP_STACONNECTED then SYSTEM_EVENT_AP_STAIPASSIGNED.
When client disconnect Access Point. I get SYSTEM_EVENT_AP_STADISCONNECTED.
When should I get SYSTEM_EVENT_STA_LOST_IP ?

under radiations in EMC labs. how I can check if client lost connection and firmware lost its own AccessPoint.


c

Code: Select all

ase SYSTEM_EVENT_AP_START:
		break;

    case SYSTEM_EVENT_AP_STACONNECTED:
		break;

    case SYSTEM_EVENT_AP_STADISCONNECTED:
		break;

    case SYSTEM_EVENT_STA_START:
        break;

	case SYSTEM_EVENT_STA_GOT_IP:
        break;
	case SYSTEM_EVENT_STA_DISCONNECTED:
        break;
		
	case SYSTEM_EVENT_WIFI_READY:
		break;
	case SYSTEM_EVENT_STA_STOP:
		break;
	case SYSTEM_EVENT_STA_CONNECTED:
		break;
	case SYSTEM_EVENT_STA_LOST_IP:
		break;
	case SYSTEM_EVENT_SCAN_DONE:
		break;
	case SYSTEM_EVENT_STA_AUTHMODE_CHANGE:
		break;
	case SYSTEM_EVENT_AP_STAIPASSIGNED:
	

jhinkle
Posts: 17
Joined: Wed Aug 29, 2018 3:17 pm

Re: WiFI events in EMC radiations test

Postby jhinkle » Sat Nov 17, 2018 10:34 am

Just me 2 cents on your question.

Are you in AP only mode or APSTA mode?

The events you are getting is from the AP wifi interface. You are seeing clients connect and disconnect to your access point.

You can not lose your access point.

The event you are asking about is a STA event. Those events are associated when your code connects to a remote access point and acquires an IP for the STA interface. You will then see all the related STA events occur -- connect, IP acquired, disconnect, etc.

By you question, it looks like you are only using the AP interface - that is why no STA events.

Hope that helps.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: WiFI events in EMC radiations test

Postby snahmad75 » Sat Nov 17, 2018 12:45 pm

Yes during EMC testing we are only in AP only mode.

I need concentrate only on AP events. If due to radiations in EMC lab. single client lost connection. client will be either laptop or mobile device which ping continuously.

If client lost WiFi connection. Do I need get events? disconnect or lost IP

jhinkle
Posts: 17
Joined: Wed Aug 29, 2018 3:17 pm

Re: WiFI events in EMC radiations test

Postby jhinkle » Sat Nov 17, 2018 4:53 pm

If a remote client connected with your AP -- you will get event - SYSTEM_EVENT_AP_STACONNECTED

If that remote client (STA) is disconnected from your AP - you will get event - SYSTEM_EVENT_AP_STADISCONNECTED

Hope that helps

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: WiFI events in EMC radiations test

Postby snahmad75 » Sat Nov 17, 2018 6:00 pm

If multiple WiFi clients are connected. I need to keep led flashing if any single WiFi client is connected and If all clients disconnect then led will be off. I guess I need to keep track of number of WiFi clients myself using either count or looking at assigned IP addresses.

Who is online

Users browsing this forum: Bing [Bot] and 103 guests