Method and device for counting terminals, router and storage medium
A technology of routers and terminals, applied in transmission systems, electrical components, wireless communications, etc., can solve problems such as repeated statistics, two MACs in the association list, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] Embodiment 1 of the present invention discloses a method for counting terminals, such as figure 1 shown, including the following steps:
[0051] Step S101, when the terminal wirelessly connects to the router, acquire one or more first MAC addresses whose communication status is normal on the router;
[0052] Specifically, when the terminal is connected to the router, the communication status of the device connected to the router can be checked on the router.
[0053] Specifically, for example, based on the ip neigh show command, the MAC address and corresponding communication status of each device currently connected to the router can be viewed on the router.
[0054] Further, the acquiring one or more first MAC addresses whose communication status is normal on the router in step S101 includes:
[0055] Check the MAC address and communication status of each connected device on the router based on the ip neigh show command;
[0056] If the communication states of the ...
Embodiment 2
[0073] In order to further illustrate the present invention, Embodiment 2 of the present invention also discloses a device for statistical terminals, such as Figure 4 shown, including:
[0074] The first acquiring module 201 is configured to acquire one or more first MAC addresses whose communication status is normal on the router when the terminal is wirelessly connected to the router;
[0075] The second obtaining module 202 is configured to determine that there are one or more first MAC addresses whose communication status is abnormal on the router within a preset time after the terminal is disconnected, then determine that there are The terminal is a random MAC device;
[0076] The statistical module 203 is configured to collect statistics on terminals based on MAC addresses whose communication status is normal.
[0077] In a specific embodiment, the first acquiring module 201 is configured to:
[0078] Check the MAC address and communication status of each connected d...
Embodiment 3
[0088] Embodiment 3 of the present invention also discloses a router, including: a memory and a processor, where an application program is stored in the memory, and when the processor executes the application program, the statistical terminal described in Embodiment 1 is implemented. method.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


