Method and device for actively switching on and off wireless network by wireless data terminal and data terminal
By scanning and matching the MAC address by wireless data terminal, wireless LAN service is automatically turned off or turned on, which solves the traffic loss and power consumption problems of wireless terminals in the secure network area and realizes intelligent switching of wireless networks.
Patent Information
- Application Number
- CN202510489679.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-18
- Publication Date
- 2025-07-22
AI Technical Summary
Wireless data terminals cannot disconnect wireless LAN services independently after the user reaches a secure and stable wireless network area, resulting in traffic loss and power reduction problems.
The wireless data terminal scans the MAC address within the recognition range and matches the preset address whitelist. If the match is successful, the wireless LAN service will be turned off, otherwise it will be kept on to automatically switch to a stable network.
While ensuring data transmission needs, it reduces traffic loss and power consumption, and realizes automatic switching between wireless terminals and the site network.
Smart Images

Figure CN120358518A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things, and particularly to a method for a wireless data terminal to actively switch a wireless network, a device for a wireless data terminal to actively switch a wireless network, a wireless data terminal, and a machine-readable storage medium. Background Art
[0002] A wireless data terminal, also known as a wireless data transmission terminal, is a device that uses a wireless network for data transmission. It is mainly used to connect various devices to achieve the transmission of device data.
[0003] The common usage of a wireless data terminal is generally as follows: The user powers on the wireless data terminal and enables its wireless local area network service function. Internet-connected devices such as mobile phones connect to the wireless local area network for Internet services. When the user arrives at an area with a secure, stable, and fast wireless network such as home or the office, the user's Internet-connected devices such as mobile phones no longer need to connect to the wireless data terminal. However, the wireless data terminal cannot disconnect automatically and requires the user to manually turn off the wireless local area network service function of the wireless data terminal. Then the Internet-connected devices such as mobile phones connect to the wireless network at home or in the office. However, users often forget to turn off the wireless local area network service function of the wireless data terminal, and Internet-connected devices such as mobile phones continue to use the wireless data terminal device for data transmission, resulting in the problem of significant loss of traffic and a large reduction in battery power of the wireless data terminal device inadvertently. Summary of the Invention
[0004] The purpose of the embodiments of the present invention is to provide a method, a device, and a data terminal for a wireless data terminal to actively switch a wireless network. The method enables the wireless data terminal to match the first MAC address within the scanned recognition range with a preset address whitelist. In the case of a successful match, the wireless local area network service is turned off; otherwise, the wireless local area network service is turned on, which can reduce the traffic loss and power reduction of the wireless data terminal while ensuring the user's data transmission requirements.
[0005] To achieve the above purpose, in a first aspect of the present invention, a method for a wireless data terminal to actively switch a wireless network is provided. The method for the wireless data terminal to actively control the wireless network includes:
[0006] Scanning and obtaining the first MAC address within the recognition range;
[0007] Matching the first MAC address with a preset address whitelist;
[0008] In the case of a successful match, turning off the wireless local area network service; otherwise, turning on the wireless local area network service.
[0009] According to the above technical means, the first MAC addresses within the recognition range are obtained through scanning. These MAC addresses indicate the corresponding networks existing within the recognition range. Then, the first MAC addresses are matched with a preset address whitelist to determine whether the networks existing within the current recognition range are included in the preset address whitelist. If so, it indicates that there is a stable, secure, and fast wireless network available for networked devices to connect. At this time, the wireless local area network service can be turned off, which can reduce the traffic loss and power consumption of wireless data terminals while ensuring the data transmission requirements of users. If not, it indicates that there is no stable, secure, and fast wireless network available for networked devices to connect. At this time, the wireless local area network service is turned on to ensure the data transmission requirements of users.
[0010] In some feasible embodiments, the preset address whitelist is configured in the following manner:
[0011] Obtain a target MAC address, where the target MAC address is the MAC address corresponding to a wireless local area network used by a networked device with a usage frequency greater than a preset frequency and being stable;
[0012] Connect to the wireless local area network of the wireless data terminal;
[0013] Log in to the background of the wireless data terminal and configure the target MAC address into the preset address whitelist.
[0014] According to the above technical means, the preset address whitelist of the wireless data terminal can be configured by logging in to the background of the wireless data terminal, facilitating users to adjust the preset address whitelist according to actual needs.
[0015] In some feasible embodiments, the obtaining of the target MAC address includes:
[0016] The networked device connects to the wireless local area network;
[0017] View the MAC address corresponding to the wireless local area network through the networked device.
[0018] According to the above technical means, the corresponding MAC address can be obtained based on the connected wireless local area network, without the need to obtain the MAC address of the wireless local area network through a specific device or other means, which is convenient, fast, and easy to operate.
[0019] In some feasible embodiments, the scanning to obtain the first MAC addresses within the recognition range includes:
[0020] Scan to obtain the first wireless network within the recognition range with a signal strength greater than a preset strength;
[0021] Obtain the first MAC address corresponding to the first wireless network.
[0022] According to the above technical means, during the scanning process, only wireless networks with signal strength greater than the preset strength are scanned to ensure that when the first MAC address is in the whitelist, after the wireless local area network service is turned off, the user's networked device can access a stable wireless network.
[0023] The second aspect of the present application provides a device for actively turning on and off a wireless network by a wireless data terminal. The device for actively controlling the wireless network by the wireless data terminal includes:
[0024] A scanning unit, configured to scan and obtain the first MAC address within the recognition range;
[0025] A matching unit, configured to match the first MAC address with a preset address whitelist;
[0026] An execution unit, configured to turn off the wireless local area network service in case of successful matching, otherwise turn on the wireless local area network service.
[0027] According to the above technical means, the scanning unit scans and obtains the first MAC address within the recognition range. These MAC addresses indicate the corresponding networks existing within the recognition range. The matching unit matches the first MAC address with the preset address whitelist, and it can be determined whether the networks existing within the current recognition range are in the preset address whitelist. If they are, it indicates that there is a stable, secure, and fast wireless network available for the networked device to connect. At this time, the execution unit turns off the wireless local area network service, which can reduce the traffic loss and power consumption of the wireless data terminal while ensuring the user's data transmission requirements. If not, it indicates that there is no stable, secure, and fast wireless network available for the networked device to connect. At this time, the execution unit turns on the wireless local area network service to ensure the user's data transmission requirements.
[0028] In some feasible embodiments, the scanning unit is further configured to:
[0029] Scan and obtain the first wireless network within the recognition range with signal strength greater than the preset strength;
[0030] Obtain the first MAC address corresponding to the first wireless network.
[0031] According to the above technical means, during the scanning process, the scanning unit only scans wireless networks with signal strength greater than the preset strength to ensure that when the first MAC address is in the whitelist, after the wireless local area network service is turned off, the user's networked device can access a stable wireless network.
[0032] In some feasible embodiments, the preset address whitelist is configured in the following manner:
[0033] Obtain a target MAC address, where the target MAC address is the MAC address corresponding to a wireless local area network (WLAN) used by a networked device with a usage frequency greater than a preset frequency and stable.
[0034] Connect to the WLAN of the wireless data terminal.
[0035] Log in to the background of the wireless data terminal and configure the target MAC address into a preset address whitelist.
[0036] According to the above technical means, the preset address whitelist of the wireless data terminal can be configured by logging in to the background of the wireless data terminal, facilitating users to adjust the preset address whitelist according to actual needs.
[0037] In some feasible embodiments, the obtaining of the target MAC address includes:
[0038] The networked device connects to the WLAN.
[0039] View the MAC address corresponding to the WLAN through the networked device.
[0040] According to the above technical means, the corresponding MAC address can be obtained based on the connected WLAN, without the need to obtain the MAC address of the WLAN through a specific device or other means, which is convenient, fast, and easy to operate.
[0041] The third aspect of this application provides a wireless data terminal, and the wireless data terminal applies the method for the wireless data terminal to actively switch the wireless network.
[0042] The fourth aspect of this application provides a machine-readable storage medium, and instructions are stored on the machine-readable storage medium, and the instructions are used to enable the machine to execute the method for the wireless data terminal to actively switch the wireless network.
[0043] Through the above technical solution, the first MAC addresses within the recognition range are obtained by scanning. These MAC addresses indicate the corresponding networks existing within the recognition range. Then, the first MAC addresses are matched with the preset address whitelist to determine whether the networks existing within the current recognition range are in the preset address whitelist. If so, it indicates that there is a stable, secure, and fast WLAN available for the networked device to connect. At this time, turning off the WLAN service can reduce the traffic loss and power consumption of the wireless data terminal while ensuring the user's data transmission requirements. If not, it indicates that there is no stable, secure, and fast WLAN available for the networked device to connect. At this time, turn on the WLAN service to ensure the user's data transmission requirements.
[0044] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent specific embodiment part. Brief Description of the Drawings
[0045] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the embodiments of the present invention, but do not constitute a limitation to the embodiments of the present invention. In the accompanying drawings:
[0046] Figure 1 is a flowchart of a method for a wireless data terminal to actively switch the wireless network provided by an embodiment of the present invention;
[0047] Figure 2 is a block diagram of a device for a wireless data terminal to actively switch the wireless network provided by an embodiment of the present invention. Specific Embodiments
[0048] The following will describe in detail the specific embodiments of the present invention with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0049] Figure 1 is a flowchart of a method for a wireless data terminal to actively switch the wireless network provided by an embodiment of the present invention. As Figure 1 shown, an embodiment of the present invention provides a method for a wireless data terminal to actively switch the wireless network. The method for the wireless data terminal to actively control the wireless network includes:
[0050] S1: Scan to obtain the first MAC address within the recognition range.
[0051] The MAC address (Media Access Control Address), literally translated as Media Access Control Address, refers to the physical address of a network device and is used to uniquely identify the device identity in the network. When a user uses a wireless data terminal, the position of the wireless data terminal is usually relatively close to the user. As a result, the networking device is also relatively close to the wireless data terminal. Therefore, the MAC address within the recognition range of the wireless data terminal can usually also be recognized by the networking device. The wireless data terminal obtains the first MAC address within the recognition range through an active scanning method.
[0052] S2: Match the first MAC address with a preset address whitelist. The preset address whitelist refers to a list of networkable addresses pre-configured in the wireless data terminal. These networkable addresses are networks that are commonly used and stable and secure by the user, and can be the MAC address of the user's home wireless network, the MAC address of the wireless network in the office, the MAC address of the wireless network in a frequently visited store, etc.
[0053] In some feasible embodiments, the preset address whitelist is configured in the following manner:
[0054] Obtain a target MAC address, where the target MAC address is the MAC address corresponding to a wireless local area network (WLAN) used by a networked device with a usage frequency greater than a preset frequency and stable, and the preset frequency can be set according to user requirements.
[0055] Connect to the WLAN of the wireless data terminal.
[0056] Log in to the background of the wireless data terminal and configure the target MAC address into a preset address whitelist. In the embodiments of the present application, it is necessary for the networked device to connect to the WLAN of the wireless data terminal, and then log in to the background of the wireless data terminal by operating on the networked device, so as to configure the target MAC address into the preset address whitelist. The networked device can be a mobile phone, a tablet, a laptop computer, etc.
[0057] According to the above technical means, the preset address whitelist of the wireless data terminal can be configured by logging in to the background of the wireless data terminal, which is convenient for users to adjust the preset address whitelist according to actual needs.
[0058] In some feasible embodiments, the obtaining of the target MAC address includes:
[0059] The networked device connects to the WLAN;
[0060] The networked device views the MAC address corresponding to the WLAN. After the networked device connects to the WLAN, it can view the MAC address corresponding to the connected WLAN by viewing the WLAN information.
[0061] According to the above technical means, the corresponding MAC address can be obtained according to the connected WLAN, and there is no need to obtain the MAC address of the WLAN through a specific device or other devices, which is convenient, fast and easy to operate.
[0062] In some other embodiments, the corresponding MAC address can be obtained from the instruction manual of a device that generates a WLAN, such as a router, so as to be used for configuring the preset address whitelist.
[0063] S3: In the case of successful matching, turn off the WLAN service, otherwise turn on the WLAN service. When the wireless data terminal turns off the WLAN service, the networked device will automatically search for a stable network within the current range for connection. In this way, the networked device can also perform data transmission, and at the same time, the traffic loss and power reduction of the wireless data terminal are avoided. Similarly, when the wireless data terminal turns on the WLAN service, since the WLAN provided by the wireless data terminal is more stable and secure, the networked device will automatically connect to the wireless data terminal for data transmission.
[0064] According to the above technical means, the first MAC addresses within the recognition range are obtained through scanning. These MAC addresses indicate the corresponding networks existing within the recognition range. Then, the first MAC addresses are matched with a preset address whitelist to determine whether the networks existing within the current recognition range are in the preset address whitelist. If so, it indicates that there is a stable, secure, and fast wireless network available for networked devices to connect. At this time, the wireless local area network service can be turned off, which can reduce the traffic loss and power consumption of wireless data terminals while ensuring the user's data transmission requirements. If not, it indicates that there is no stable, secure, and fast wireless network available for networked devices to connect. At this time, the wireless local area network service is turned on to ensure the user's data transmission requirements.
[0065] In some other feasible embodiments, scanning to obtain the first MAC addresses within the recognition range includes:
[0066] Scanning to obtain the first wireless network within the recognition range with a signal strength greater than a preset strength, where the preset strength is set according to the user's data transmission requirements. When the user has high requirements for data transmission speed and stability, a larger preset strength can be set; otherwise, a smaller preset strength can be set. In other solutions, the first wireless network can also be scanned and recognized according to parameters such as signal security standards and connection speed.
[0067] Obtaining the first MAC address corresponding to the first wireless network.
[0068] According to the above technical means, during the scanning process, only the wireless networks with a signal strength greater than the preset strength are scanned to ensure that when the first MAC address is in the whitelist, after the wireless local area network service is turned off, the user's networked devices can access a stable wireless network.
[0069] Using the above method can solve the situation where the user forgets to switch the wireless local area network service, and the networked device continues to use the wireless terminal device it carries for data transmission, resulting in a large amount of traffic loss and a significant reduction in power of the wireless terminal device inadvertently. And this solution enables the user to automatically switch between the wireless local area network and the venue wifi on the wireless terminal device without having to actively switch the wireless local area network service.
[0070] The second aspect of this application provides a device for a wireless data terminal to actively switch the wireless network, as Figure 2 shown. The device for the wireless data terminal to actively control the wireless network includes:
[0071] A scanning unit, configured to scan and obtain the first MAC addresses within the recognition range;
[0072] A matching unit, configured to match the first MAC addresses with a preset address whitelist;
[0073] An execution unit, configured to turn off the wireless local area network service when the matching is successful, otherwise turn on the wireless local area network service.
[0074] According to the above technical means, the scanning unit scans and obtains the first MAC addresses within the recognition range, and these MAC addresses indicate the corresponding networks existing within the recognition range. The matching unit matches the first MAC addresses with a preset address whitelist, and can determine whether the networks existing within the current recognition range are in the preset address whitelist. If so, it indicates that there is a stable, secure and fast wireless network available for the networking device to connect. At this time, the execution unit turns off the wireless local area network service, which can reduce the traffic loss and power consumption of the wireless data terminal while ensuring the user's data transmission requirements. If not, it indicates that there is no stable, secure and fast wireless network available for the networking device to connect. At this time, the execution unit turns on the wireless local area network service to ensure the user's data transmission requirements.
[0075] In some feasible embodiments, the scanning unit is further configured to:
[0076] Scan and obtain the first wireless network within the recognition range whose signal strength is greater than a preset strength;
[0077] Obtain the first MAC address corresponding to the first wireless network.
[0078] According to the above technical means, during the scanning process of the scanning unit, only the wireless networks with signal strength greater than the preset strength are scanned, so as to ensure that when the first MAC address is in the whitelist, after the wireless local area network service is turned off, the user's networking device can access a stable wireless network.
[0079] In some feasible embodiments, the preset address whitelist is configured in the following manner:
[0080] Obtain a target MAC address, where the target MAC address is the MAC address corresponding to a wireless local area network used by the networking device with a usage frequency greater than a preset frequency and being stable;
[0081] Access the wireless local area network of the wireless data terminal;
[0082] Log in to the background of the wireless data terminal and configure the target MAC address into the preset address whitelist.
[0083] According to the above technical means, the preset address whitelist of the wireless data terminal can be configured by logging in to the background of the wireless data terminal, which is convenient for the user to adjust the preset address whitelist according to actual needs.
[0084] In some feasible embodiments, the obtaining of the target MAC address includes:
[0085] The networked device accesses the wireless local area network;
[0086] View the MAC address corresponding to the wireless local area network through the networked device.
[0087] According to the above technical means, the corresponding MAC address can be obtained based on the connected wireless local area network, without the need to obtain the MAC address of the wireless local area network through a specific device or other means, which is convenient, fast, and easy to operate.
[0088] The third aspect of the present application provides a wireless data terminal, and the wireless data terminal applies the method for the wireless data terminal to actively switch the wireless network.
[0089] The fourth aspect of the present application provides a machine-readable storage medium, and instructions are stored on the machine-readable storage medium, and the instructions are used to cause the machine to execute the method for the wireless data terminal to actively switch the wireless network.
[0090] Those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium, including several instructions for causing a single-chip microcomputer, a chip, or a processor to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs, etc., which can store program codes.
[0091] The optional embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above embodiments. Within the technical concept scope of the embodiments of the present invention, various simple modifications can be made to the technical solutions of the embodiments of the present invention, and these simple modifications all fall within the protection scope of the embodiments of the present invention. In addition, it should be noted that, among the various specific technical features described in the above specific embodiments, they can be combined in any appropriate manner without conflict. To avoid unnecessary repetition, the embodiments of the present invention will not separately describe various possible combination methods.
[0092] In addition, any combination can be made between various different embodiments of the present invention, as long as it does not violate the idea of the embodiments of the present invention, and it should also be regarded as the content disclosed by the embodiments of the present invention.
Claims
1. A method for a wireless data terminal to actively switch the wireless network, characterized in that, The method for the wireless data terminal to actively control the wireless network includes: Scanning to obtain the first MAC address within the recognition range; Matching the first MAC address with a preset address whitelist; When the matching is successful, turning off the wireless local area network service, otherwise turning on the wireless local area network service.
2. The method for a wireless data terminal to actively switch the wireless network according to claim 1, characterized in that The preset address whitelist is configured in the following manner: Obtaining a target MAC address, where the target MAC address is the MAC address corresponding to a wireless local area network used by a networked device with a usage frequency greater than a preset frequency and being stable; Connecting to the wireless local area network of the wireless data terminal; Logging in to the background of the wireless data terminal and configuring the target MAC address into the preset address whitelist.
3. The method for the wireless data terminal to actively switch the wireless network according to claim 2, characterized in that, The obtaining of the target MAC address includes: A networked device connecting to the wireless local area network; Viewing the MAC address corresponding to the wireless local area network through the networked device.
4. The method for the wireless data terminal to actively switch the wireless network according to claim 1, wherein The scanning to obtain the first MAC address within the recognition range includes: Scanning to obtain a first wireless network within the recognition range with a signal strength greater than a preset strength; Obtaining the first MAC address corresponding to the first wireless network.
5. A device for a wireless data terminal to actively switch the wireless network, characterized in that, The device for the wireless data terminal to actively control the wireless network includes: A scanning unit for scanning to obtain the first MAC address within the recognition range; A matching unit for matching the first MAC address with a preset address whitelist; An execution unit for, when the matching is successful, turning off the wireless local area network service, otherwise turning on the wireless local area network service.
6. The apparatus for actively switching a wireless network of a wireless data terminal according to claim 5, wherein The scanning unit is further used for: Scanning to obtain a first wireless network within the recognition range with a signal strength greater than a preset strength; Obtaining the first MAC address corresponding to the first wireless network.
7. The device for actively switching the wireless network of the wireless data terminal according to claim 5, wherein The preset address whitelist is configured in the following manner: Obtaining a target MAC address, where the target MAC address is the MAC address corresponding to a wireless local area network used by a networked device with a usage frequency greater than a preset frequency and being stable; Connecting to the wireless local area network of the wireless data terminal; Logging in to the background of the wireless data terminal and configuring the target MAC address into the preset address whitelist.
8. The apparatus for a wireless data terminal to actively switch the wireless network according to claim 7, wherein The obtaining of the target MAC address includes: A networked device connecting to the wireless local area network; Viewing the MAC address corresponding to the wireless local area network through the networked device.
9. A wireless data terminal, characterized in that, The wireless data terminal applies the method for the wireless data terminal to actively switch the wireless network according to any one of claims 1-4.
10. A machine-readable storage medium, characterized in that, Instructions are stored on the machine-readable storage medium, and the instructions are used to cause the machine to execute the method for the wireless data terminal to actively switch the wireless network according to any one of claims 1-4.