Communication method, electronic equipment and medium
By using preset operations on terminal devices and sensor data, combined with network status and operational scenario information, the automatic switching of wireless router channels is achieved, solving the problems of channel switching complexity and poor user experience, and improving WiFi signal quality.
Patent Information
- Application Number
- CN202310750049.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2024-12-24
AI Technical Summary
Existing wireless routers are prone to interference during use, resulting in degraded signal performance. Manually switching channels is complicated and leads to a poor user experience.
By executing preset operations through the terminal device, such as shaking or touching, sensor data association information is obtained. The routing device determines whether to switch channels, and accurately identifies the user's intention by combining network status and operating scenario information, and automatically switches channels.
It simplifies the channel switching process, improves user experience, reduces misjudgments and resource waste, and enhances WiFi signal quality.
Smart Images

Figure CN119183084A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication method, electronic equipment and medium. Background Art
[0002] Currently, wireless router products have become indispensable electronic devices in indoor environments, used to provide wireless communication (wireless fidelity, WiFi) signal connections for various terminal devices (including mobile phones, tablets, computers, etc.). When using wireless routers to provide WiFi signals for terminal devices, there are often scenarios such as signal interference (such as interference from long-term evolution (LTE) signals), more access devices, and channel grabbing between routing devices (for example, multiple routing devices in nearby areas are connected to the same channel), which leads to poor WiFi signal performance and thus slow terminal device network speed. When the terminal device network speed slows down, the terminal device will experience video freezes and slow data transmission, affecting the user experience.
[0003] At present, in some solutions, users can enter the wireless router setting interface by opening relevant applications (applications, apps), web pages, etc., to select channels with less occupancy and less interference, that is, to improve the WiFi signal by manually changing the WiFi channel in the wireless router settings. However, the manual switching of wireless router channels is complicated and requires knowledge of channels, resulting in a poor user experience. Summary of the invention
[0004] To solve the above problems, the present application provides a communication method, electronic device and medium.
[0005] In a first aspect, the present application provides a communication method, comprising: a first electronic device communicates with a second electronic device based on a first channel, wherein the second electronic device is a network access device; the first electronic device detects a first trigger event and sends sensor data association information to the second electronic device; in response to the second electronic device determining that the sensor data association information satisfies a first preset condition, the second electronic device switches the first channel for communicating with the first electronic device to a second channel.
[0006] In the present application, the first trigger event may be a preset operation, such as a shake operation; the sensor data associated information may be the original real-time data of the sensor corresponding to the preset operation, the analysis result of the sensor data (for example, whether the value of the three-axis acceleration part of the acceleration sensor is greater than the corresponding threshold) and other information; the first preset condition may be that the original data of the sensor meets the original data corresponding to the shake operation, or the analysis result obtained based on the original data of the sensor meets the result corresponding to the shake operation. The first electronic device may be any electronic device such as a mobile phone, a tablet, a computer, a virtual reality (VR) device, a wearable device, an augmented reality (AR) device, etc.; the second electronic device may be a routing device.
[0007] It can be understood that in the present application, if the sensor data association information does not meet the first preset condition, the channel switching instruction is not executed, and the current channel connection between the first electronic device and the second electronic device is maintained.
[0008] Based on the above solution, the user can automatically switch the current channel of the second electronic device to other channels by performing preset operations such as shaking the first electronic device. This can effectively simplify the channel switching process and improve user experience.
[0009] In a possible implementation, the method includes: when a first electronic device detects a first trigger event and determines that operating scenario information of the first electronic device meets a second preset condition, sending sensor data association information to a second electronic device.
[0010] In the present application, the running scenario information may be a task being run by the first electronic device, wherein the task is a task included in an application of the first electronic device, and the application may be a system application (e.g., a setting application, etc.) or a third-party application (e.g., WeChat). TM The second preset condition may be that the corresponding operations for implementing the task do not include the preset operations.
[0011] In the embodiment of the present application, the user's intention can be accurately identified in combination with the scene operation information of the first electronic device to avoid misjudgment.
[0012] In the present application, the first electronic device can determine whether to send sensor data-related information to the routing device based on the current operating scenario information. For example, when the first trigger event is a shake operation, when it is determined based on the current operating scenario information that there is a scenario in the current operating scenario where a red envelope grabbing function of application A is running, and the implementation operation of this function is a shake operation, that is, it is determined that the intention of the operation performed by the user is not to switch channels, then the sensor data-related information will not be sent to the routing device, thereby avoiding misjudgment of the user's intention.
[0013] In one possible implementation, the method also includes: the first electronic device detects a first trigger event, and sends sensor data association information and operating scenario information corresponding to the first electronic device to the second electronic device; when the second electronic device determines that the sensor data association information meets the first preset condition and the operating scenario information meets the second preset condition, the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
[0014] In some embodiments, the terminal device can send the current operation scenario information to the routing device while sending the sensor data association information, and the routing device determines whether to perform the channel switching operation based on the sensor data association information sent by the terminal device and the current operation scenario information. For example, the routing device may be preset with a variety of existing scenario information in which a switching operation exists but no channel switching is performed. For example, the pre-stored corresponding scenario information in which a shake operation exists but no channel switching is performed includes scenario information of a red envelope grabbing function, or scenario information of a friend adding function, etc. When the routing device determines that the sensor data association information sent by the terminal device is the sensor data association information corresponding to the shake operation, and the operation scenario information includes scenario information in which no channel switching is performed (for example, including the scenario of the aforementioned red envelope grabbing function), the channel switching function is not performed. In this way, the user's intention can be accurately identified.
[0015] In addition, since the routing device is always plugged in, power consumption has little effect on the routing device. Therefore, the routing device can save power consumption of the first electronic device such as a mobile phone by determining the above-mentioned operating scenario information.
[0016] In a possible implementation, the first trigger event is a preset operation, and the sensor data association information includes sensor data association information corresponding to the preset operation.
[0017] It can be understood that in the present application, there are multiple preset operations, including but not limited to one or more of operations such as shaking the first electronic device, bringing the first electronic device close to or in contact with the second electronic device, and touching the screen with preset gestures.
[0018] In a possible implementation, the above-mentioned running scenario information includes application information currently running on the first electronic device.
[0019] In this application, the running scenario information may be a task currently being run by the first electronic device, wherein the task is a task included in an application of the first electronic device. The application may be a system application (e.g., a settings application, etc.), or a third-party application (e.g., WeChat). TM The second preset condition may be that the corresponding operations for implementing the task do not include the preset operations.
[0020] In one possible implementation, the method also includes: the first electronic device detects a first trigger event and sends network status information to the second electronic device; when the second electronic device determines that the sensor data association information meets the first preset condition and the network status information meets the third preset condition, the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
[0021] It can be understood that in this application, the first electronic device can send the sensor data association information and the current network status to the second electronic device, and the second electronic device will switch channels only when it determines that the sensor data association information meets the first preset condition and the current network status is poor. In this way, it can avoid misjudging the user's intention and reduce the waste of resources caused by the second electronic device switching channels.
[0022] In the present application, the third preset condition includes that the network rate meets a preset condition, for example, is less than a preset rate threshold.
[0023] In a possible implementation, the method further includes: when the first electronic device detects the first trigger event and determines that the network status information of the first electronic device meets a third preset condition, sending the sensor data association information to the second electronic device.
[0024] It is understandable that in the present application, when the first electronic device detects a preset operation and determines that the current network condition is poor, the first electronic device sends sensor data associated information to the second electronic device. In this way, it can avoid false triggering of switching channels and reduce resource consumption caused by the second electronic device processing data.
[0025] In one possible implementation, the method also includes: when the first electronic device detects a first trigger event and determines that the operating scenario information of the first electronic device meets a second preset condition, and when the network status information of the first electronic device meets a third preset condition, sensor data association information is sent to the second electronic device.
[0026] In the present application, when the first electronic device detects a preset operation, it determines whether to send sensor data associated information to the second electronic device based on the current operation scenario information and network status information. In this way, it can avoid false triggering of switching channels and reduce resource consumption caused by multiple data transmissions by the first electronic device.
[0027] In one possible implementation, the method also includes: the first electronic device detects a first trigger event, and sends sensor data association information, network status information, and operation scenario information to the second electronic device; when the second electronic device determines that the sensor data association information satisfies a first preset condition, and the operation scenario information corresponding to the first electronic device satisfies a second preset condition, and the network status information satisfies a third preset condition, the second electronic device switches the first channel for communicating with the first electronic device to a second channel.
[0028] It can be understood that in this application, the first electronic device can send sensor data association information, the current operation scenario information of the first electronic device and the network status information to the second electronic device, and the second electronic device determines whether the sensor data association information meets the first preset condition, whether the operation scenario information corresponding to the first electronic device meets the second preset condition, and whether the network status information meets the third preset condition, thereby saving resource consumption of the first electronic device. At the same time, it can avoid misjudging the user's intention and reduce the waste of resources caused by the second electronic device switching channels.
[0029] In a possible implementation, the network status information includes a network rate.
[0030] In a possible implementation, the first electronic device detects a first trigger event and sends sensor data association information to the second electronic device; including: when the first electronic device is close to or in contact with the second electronic device, the sensor data association information is sent to the second electronic device.
[0031] In a possible implementation, the first electronic device is close to or in contact with the second electronic device, including: the first electronic device and the second electronic device establish a short-range wireless communication connection.
[0032] It can be understood that the proximity of the first electronic device to the second electronic device may mean that the distance between the first electronic device and the second electronic device is within a preset distance.
[0033] It can be understood that in the present application, when the first electronic device and the second electronic device are close to or in contact, the two devices will establish a near field communication connection, and the first electronic device will send electromagnetic wave absorption rate sensor data association information to the second electronic device. Among them, the electromagnetic wave absorption rate sensor data association information includes electromagnetic wave absorption rate, and when the second electronic device detects that the electromagnetic wave absorption rate meets a preset condition, such as being greater than or equal to a preset electromagnetic wave absorption rate threshold, the second electronic device will perform channel switching.
[0034] In a possible implementation, the first trigger event includes shaking the first electronic device, and the sensor data associated information includes at least one of acceleration sensor data associated information, gyroscope sensor data associated information, and electromagnetic wave absorption rate sensor data associated information.
[0035] It can be understood that in the present application, when the preset operation is that the user shakes the first electronic device, the corresponding sensor data association information includes but is not limited to one or more of the acceleration sensor data association information, the gyroscope sensor data association information, and the electromagnetic wave absorption rate sensor data association information. Among them, the acceleration sensor data association information may include acceleration values, the gyroscope sensor data association information may include angular velocity values, and the electromagnetic wave absorption rate sensor data association information may include electromagnetic wave absorption rate. When one or more of the acceleration values of the three axes, one or more of the angular velocity values of the three axes, or the electromagnetic wave absorption rate values meet the preset conditions, for example, the acceleration values of the three axes are equal to the first threshold value, the angular velocity values of the three axes are equal to the second threshold value, or at least part of the acceleration values and part of the angular velocity values exceed the corresponding threshold value, and the electromagnetic wave absorption rate value is greater than or equal to the third threshold value, the second electronic device will perform channel switching.
[0036] In a possible implementation, the first trigger event includes a preset gesture touch screen operation, and the sensor data association information includes pressure sensor data association information.
[0037] It can be understood that in the present application, when the preset operation is a gesture touch screen operation, the corresponding pressure sensor data association information includes a pressure value. When the pressure value is greater than or equal to a preset pressure sensor threshold, the second electronic device will perform channel switching.
[0038] In a possible implementation, before the second electronic device switches the first channel for communication with the first electronic device to the second channel, the process further includes: the first electronic device sends an inquiry message to the user; and in response to the user's confirmation instruction, the second electronic device switches the first channel for communication with the first electronic device to the second channel.
[0039] In a possible implementation, the first electronic device sending the inquiry information to the user includes: the first electronic device displays the inquiry information and / or the first electronic device sends a voice command corresponding to the inquiry information.
[0040] It can be understood that in the present application, the first electronic device can inquire about the user's intention in a variety of ways (such as inquiry pop-up windows, voice commands, etc.), and the user can also respond in a variety of ways (such as touch phone, voice response, etc.).
[0041] In a second aspect, the present application provides a communication method for a second electronic device, the method comprising: the second electronic device communicates with the first electronic device based on a first channel, wherein the second electronic device is a network access device; the second electronic device receives sensor data association information sent by the first electronic device; the second electronic device determines that the sensor data association information satisfies a first preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to a second channel.
[0042] In the present application, the sensor data association information may be information such as sensor raw data, analysis results of sensor data (for example, whether the values of the three-axis acceleration part of the acceleration sensor are greater than the corresponding threshold value); the first preset condition may be that the sensor raw data conforms to the raw data corresponding to the shake operation, or that the analysis results obtained based on the sensor raw data satisfy the results corresponding to the shake operation, etc.
[0043] It can be understood that in the present application, the second electronic device judges the received sensor data association information based on the first preset condition. If the sensor data information meets the first preset condition, the channel switching instruction is executed, and the second electronic device switches the first channel to the second channel, and the second electronic device communicates with the first electronic device based on the second channel; if the sensor data association information does not meet the first preset condition, the channel switching instruction is not executed, and the current channel connection between the second electronic device and the first electronic device is maintained.
[0044] Based on the above solution, the user can automatically switch the current channel of the second electronic device to another channel by performing preset operations such as shaking the first electronic device. This can effectively simplify the channel switching process and improve the user experience.
[0045] In one possible implementation, the method also includes: the second electronic device receives the sensor data association information and the operating scenario information corresponding to the first electronic device sent by the first electronic device; the second electronic device determines that the sensor data association information satisfies the first preset condition and the operating scenario information satisfies the second preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
[0046] In the present application, the running scenario information includes the task being run by the first electronic device, wherein the task is a task included in the application of the first electronic device, and the application can be a system application or a third-party application. The second preset condition includes that the corresponding operation to implement the task does not include the preset operation.
[0047] It can be understood that in the present application, a plurality of existing switching operations but no channel switching scenario information can be preset in the second electronic device, and the second electronic device can determine whether to perform the channel switching operation based on the received sensor data association information and the current operation scenario information. If the sensor data information meets the first preset condition, and the current operation scenario information is different from the preset scenario information without channel switching, the second electronic device will switch the first channel to the second channel. In this way, the user's intention can be accurately identified to avoid misjudgment.
[0048] In a possible implementation, the above-mentioned running scenario information includes application information currently running on the first electronic device.
[0049] In one possible implementation, the method also includes: the second electronic device receives sensor data association information and network status information sent by the first electronic device; the second electronic device determines that the sensor data association information satisfies a first preset condition and the network status information satisfies a third preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to a second channel.
[0050] In the present application, the third preset condition includes that the network rate meets a preset condition, for example, is less than a preset rate threshold.
[0051] It can be understood that in the present application, the second electronic device can determine whether to switch channels based on the received sensor data association information and network status information. When the second electronic device determines that the sensor data association information meets the first preset condition and the current network condition is poor, the channel will be switched. In this way, it is possible to avoid misjudging the user's intention and reduce the waste of resources caused by the second electronic device switching channels.
[0052] In one possible implementation, the method also includes: the second electronic device receives sensor data association information, operation scenario information corresponding to the first electronic device, and network status information sent by the first electronic device; the second electronic device determines that the sensor data association information meets the first preset condition, the operation scenario information meets the second preset condition, and the network status information meets the third preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
[0053] In a possible implementation, the network status information includes a network rate.
[0054] In one possible implementation, before the second electronic device switches the first channel for communicating with the first electronic device to the second channel, the process further includes: the second electronic device sends an inquiry instruction to the first electronic device; and in response to a confirmation instruction executed by the user on the first electronic device, the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
[0055] It can be understood that in the present application, after the second electronic device determines that the sensor data association information meets the first preset condition, it can also send an inquiry instruction to the first electronic device to confirm whether to switch the channel. By responding to the confirmation instruction executed by the user on the first electronic device, the second electronic device confirms whether to switch the channel. In this way, it can avoid misjudgment of the user's intention.
[0056] In a third aspect, the present application provides an electronic device, the electronic device being a first electronic device. The first electronic device communicates with a second electronic device based on a first channel, and the second electronic device is a network access device; when the first electronic device detects a first trigger event, the first electronic device sends sensor data association information to the second electronic device; so that when the second electronic device determines that the sensor data association information satisfies a first preset condition, the first channel for communicating with the first electronic device is switched to a second channel.
[0057] In a possible implementation, when the first electronic device detects the first trigger event and determines that the operation scenario information of the first electronic device meets the second preset condition, the sensor data association information is sent to the second electronic device, wherein the operation scenario information includes application information currently running on the first electronic device.
[0058] In a possible implementation, when the first electronic device detects the first trigger event, the first electronic device sends sensor data association information and operation scenario information corresponding to the first electronic device to the second electronic device.
[0059] In a possible implementation, when the first electronic device detects the first trigger event and determines that the network status information of the first electronic device meets the third preset condition, the sensor data association information is sent to the second electronic device, wherein the network status information includes the network rate.
[0060] In one possible implementation, when the first electronic device detects a first trigger event and determines that the operating scenario information of the first electronic device meets the second preset condition and the network status information of the first electronic device meets the third preset condition, the sensor data association information is sent to the second electronic device.
[0061] In a possible implementation, when the first electronic device detects the first trigger event, it sends sensor data association information, network status information, and operation scenario information to the second electronic device.
[0062] In one possible implementation, when the first electronic device receives an inquiry instruction from the second electronic device, it sends an inquiry message to the user; in response to a confirmation instruction executed by the user on the first electronic device, the first electronic device sends information related to the confirmation instruction to the second electronic device, so that the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
[0063] In a fourth aspect, the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device, and is used to execute the communication method mentioned in the present application.
[0064] In a fifth aspect, the present application provides a readable medium, wherein the readable medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the communication method mentioned in the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 According to some embodiments of the present application, a schematic diagram of a scenario in which multiple electronic devices are connected to a wireless router WiFi is shown;
[0066] Figure 2 According to some embodiments of the present application, a schematic diagram of a scenario of signal interference between multiple wireless routers is shown;
[0067] Figure 3 According to some embodiments of the present application, a schematic diagram of a page for manually switching WiFi channels is shown;
[0068] Figure 4A According to some embodiments of the present application, a schematic diagram of a wireless signal enhancement method is shown;
[0069] Figure 4B According to some embodiments of the present application, a schematic diagram of an interface of a wireless signal enhancement method is shown;
[0070] Figure 5A According to some embodiments of the present application, a schematic diagram of a wireless signal enhancement method is shown;
[0071] Figure 5B According to some embodiments of the present application, a schematic diagram of an interface of a wireless signal enhancement method is shown;
[0072] Figure 6 According to some embodiments of the present application, a schematic diagram of the hardware structure of an electronic device is shown;
[0073] Figure 7 According to some embodiments of the present application, a specific flow chart of performing channel switching is shown;
[0074] Figure 8 According to some embodiments of the present application, a specific flow chart of performing channel switching is shown;
[0075] Fig. 9 According to some embodiments of the present application, a specific flow chart of performing channel switching is shown;
[0076] Fig.10 According to some embodiments of the present application, a specific flow chart of performing channel switching is shown;
[0077] Fig.11According to some embodiments of the present application, a schematic diagram of a device interaction process for performing channel switching is shown;
[0078] Fig.12 According to some embodiments of the present application, a schematic diagram of a device interaction process for performing channel switching is shown. DETAILED DESCRIPTION
[0079] The illustrative embodiments of the present application include, but are not limited to, a communication method, an electronic device, and a medium.
[0080] In order to more clearly understand the solution of the present application, the relevant field terms involved in the present application are first explained.
[0081] Frequency band, in the field of communications, refers to the frequency range of electromagnetic waves. Taking WiFi as an example, the commonly used frequency bands of WiFi currently include: 2.4G, 5G, 6G and other frequency bands.
[0082] Channel refers to the channel through which signals are transmitted in a communication system, and is composed of the transmission medium through which signals are transmitted from the transmitter to the receiver. Taking WiFi as an example, each frequency band commonly used by WiFi is divided into multiple channels. For example, according to the IEEE802.11 protocol, the 2.4GHz WiFi band is divided into 13 overlapping channels, and the width of each channel is 22MHz. The 5GHz WiFi band is divided into 201 channels.
[0083] The following is a brief introduction to the principles of terminal devices communicating through wireless routers.
[0084] It can be understood that a wireless router can also be called a wireless access point (AP), and each terminal device (such as a mobile phone, laptop, etc.) connected to a wireless access point is a station (STA). In a network supported by the WiFi protocol, each wireless AP will provide a service set identifier (SSID), that is, the WiFi name, which is used to identify the corresponding WiFi signal provided by the wireless router. When the wireless router is started, the channel for communication with the terminal device and other related parameter configurations can be set.
[0085] First, the STA will scan the wireless network signal transmitted by the AP on each available channel. If an AP is found, the STA and the AP will be connected through a wireless link. During this process, authentication is required through authentication mechanisms such as keys. When the wireless link is successfully connected, the STA and the AP will be associated. In this way, the terminal device successfully accesses the wireless network through the channel for communication, such as surfing the Internet. Wireless communication requires receiving and sending data through a wireless router. This process requires "data packet" technology to be implemented. Data packets are a basic unit for transmitting data. Wireless routers will transmit these data packets from one device to another. For example, user A needs to send data to user B's mobile phone B1 through mobile phone A1. Mobile phone A1 can send data packets to wireless router C connected to mobile phone A1, and then wireless router C will send data packets to wireless router D connected to mobile phone B1. After that, wireless router D will send data packets to mobile phone B1 connected to it through the channel. In this process, the associated STA and AP are always on the same channel.
[0086] When the AP switches channels, if the STA supports changing channels, the AP sends a signal frame to the STA when switching channels, and constrains the STA to switch channels later or switch immediately. The STA will switch channels synchronously and will not be disconnected. If the STA does not support changing channels, the STA will not process the signal frame sent by the AP, and the STA will be disconnected after the AP switches channels.
[0087] It is understood that a wireless router can provide wireless signal connections, such as WiFi signal connections, for various terminal devices. Figure 1 As shown, electronic devices such as a personal computer (PC) 200, a mobile phone 300, and a tablet 400 can establish a connection with the wireless router 100 to access the wireless network.
[0088] However, when using wireless routers to provide wireless signals for terminal devices, there are often scenarios such as signal interference, an increase in the number of access devices, and channel grabbing between routing devices, resulting in poor wireless signal performance.
[0089] For example, when the operating frequency band of the wireless router overlaps or is close to the operating frequency band of the LTE signal, interference from the LTE signal will be received. It can be understood that the LTE signal can refer to a data signal running in the 4G mode. Specifically, Table 1 shows the operating frequency bands of the B40, B7, B38 and B41 signals in the LTE signal.
[0090] Table 1:
[0091] Signal Working frequency band B40 2300M~2400M B7 2500M~2570M B38 2570M~2620M B41 2496M~2690M
[0092] In some cases, the routing device operates on channel 1 in the 2.4GHz band, with a frequency range of 2401M to 2423M. However, the LTE signal B40 shown in Table 1 operates in a frequency range of 2300M to 2400M, that is, B40 is close to the WiFi frequency band of channel 1. When some nearby users connect to the data network B40, that is, when the data network B40 and the WiFi signal are turned on together, the spurious signals transmitted by both parties will fall within the operating frequency band of the other party, causing interference between the signals. Similarly, if the routing device operates on channel 36 in the 5GHz band, with a frequency range of 5170M to 5190M, however, the LTE signal B38 shown in Table 1 operates in a frequency range of 2570M to 2620M. If a nearby user turns on the data network B38, the WiFi frequency band of channel 1 will fall within the multiple of B38, causing interference between the signals.
[0093] For another example, the number of connected devices may increase in the case of a router. The communication channel of each AP can only carry a limited number of terminals. The wireless network uses half-duplex transmission. When a user is transmitting data, the wireless channel is occupied and other users cannot transmit data. If too many terminals are connected to the same router, signal congestion will occur on the same channel, causing unstable signals and slowing down the user's Internet access speed.
[0094] For another example, routing channels may be occupied by routing devices upstairs and downstairs. Figure 2 As shown, there are multiple wireless routers in the adjacent area. For example, wireless router 100, wireless router 101, wireless router 102, wireless router 103 and other wireless routers all use channel 1, which will cause too many devices to use channel 1 to transmit data, causing channel congestion, thereby causing the Internet access speed of each electronic device to slow down.
[0095] In order to improve the wireless signal performance, in some ways, the user can manually change the channel corresponding to the wireless router to improve the wireless signal performance. For example, if the above channel 1 is too congested, the channel 1 can be changed to another channel. Figure 3 As shown, the user logs in to the website through the computer 30 and enters the relevant wireless router setting page 301. In addition, the user can open the wireless setting page 303 by clicking the wireless setting control 302 in the wireless router setting page 301, and select the desired channel through the channel setting control 3031 on the wireless setting page 303. For example, channel 5 can be selected as the channel used by the wireless router to transmit data.
[0096] However, manually switching the wireless router channel is complicated and requires knowledge of the channels, resulting in a poor user experience.
[0097] To solve the above problems, the embodiment of the present application provides a communication method, whereby the user can perform a preset operation on the terminal device, for example, taking the terminal device mobile phone as an example, the user can perform an operation such as shaking the mobile phone, etc., so that the terminal device obtains the corresponding sensor data association information and sends it to the routing device. The routing device can determine whether the user has the intention to switch channels by judging whether the sensor data association information meets the preset conditions. For example, the routing device can determine that the user has the intention to switch channels and needs to switch channels by judging that the sensor data meets the data corresponding to the preset shaking operation, that is, when the preset conditions are met, the current channel is automatically switched to another channel.
[0098] In addition, in some embodiments, the terminal device may also send both sensor data-related information and network status (such as current network speed) to the routing device. The routing device may determine whether the sensor data-related information meets preset conditions and whether the network status of the terminal device is poor to determine whether the user has the intention to switch channels. For example, the routing device may determine whether the sensor data meets the data corresponding to the preset shake operation, etc. When the preset conditions are met and it is determined that the terminal device network is poor, it is determined that the user has the intention to switch channels and needs to switch channels. At this time, the current channel is automatically switched to other channels. In this way, the channel switching process is effectively simplified and the user experience is improved.
[0099] In some embodiments, the routing device can obtain sensor data association information corresponding to different preset operations from the terminal device in real time. For example, when the preset channel switching operation is a shake operation, the routing device can obtain sensor data association information of the accelerometer (A) sensor and gyroscope (G) sensor angular velocity data association information, as well as specific absorption rate (SAR) sensor data association information of the terminal device in real time. Among them, the A+G sensor data association information is used to determine whether there is a shake operation, and the SAR sensor data association information is used to determine whether the user is holding the terminal device.
[0100] In some embodiments, the routing device may also establish a communication connection with the NFC of the routing device after detecting the near field wireless communication technology (NFC) of the terminal device. For example, the user's handheld terminal device touches the routing device, and after the NFC of the terminal device establishes a communication connection with the NFC of the routing device, the routing device may obtain the sensor data association information of the terminal device to determine the user's channel switching intention. For example, it may obtain the SAR sensor data association information to determine whether the user is holding the terminal device. When it is determined that the user is holding the terminal device and the network status of the terminal device is poor, it is determined that the user has the intention to switch channels.
[0101] In some embodiments, the terminal device may also send the sensor data association information to the routing device when the sensor data association information corresponding to the preset operation is detected. In this way, the resource consumption caused by the routing device needing to obtain the sensor data association information in real time can be reduced. Alternatively, the terminal device may also send the sensor data association information to the routing device when the sensor data association information corresponding to the preset operation is detected and the current network status is judged to be poor.
[0102] In some embodiments, in order to avoid misjudging the user's operation intention, for example, the user's intention of performing a shake operation is not to switch channels, but to implement a specific function in the application, such as the red envelope grabbing function, and the user does not want to switch channels, but the routing device believes that the user has the intention to switch channels, resulting in unnecessary channel switching operations.
[0103] To solve the above problem, the terminal device can determine whether to send sensor data-related information to the routing device based on the current running scenario information. For example, when it is determined based on the current running scenario information that there is a scenario in which the red envelope grabbing function of application A is running in the current running scenario, and the implementation operation of this function is a shake operation, that is, it is determined that the intention of the user's operation is not to switch channels, then the sensor data-related information will not be sent to the routing device, thereby avoiding misjudgment of user intentions.
[0104] In some embodiments, when the terminal device detects sensor data association information corresponding to a preset operation, it can also determine whether to send the sensor data association information to the routing device based on the current operating scenario information and network status (for example, the current network rate is less than a preset rate threshold, etc.).
[0105] In some embodiments, the terminal device can send the current operation scenario information to the routing device while sending the sensor data association information, and the routing device determines whether to execute the channel switching operation based on the sensor data association information sent by the terminal device and the current operation scenario information. For example, the routing device may be preset with a variety of existing scene information in which a switching operation exists but no channel switching is performed. For example, the pre-stored corresponding scene information in which a shake operation exists but no channel switching is performed includes scene information of a red envelope grabbing function, or scene information of a friend adding function, etc. When the routing device determines that the sensor data association information sent by the terminal device is the sensor data association information corresponding to the shake operation, and the operation scenario information includes the preset red envelope grabbing scene information, the channel switching function is not executed, so that the user's intention can be accurately identified.
[0106] In some embodiments, the terminal device can send the current operating scenario information and the network status to the routing device at the same time as sending the sensor data association information, and the routing device determines whether to perform the channel switching operation based on the sensor data association information sent by the terminal device, the current operating scenario information, and the network status. For example, the routing device may be preset with a variety of existing scenario information in which switching operations exist but channel switching is not performed. The routing device performs the channel switching function only when the routing device determines that the sensor data association information sent by the terminal device is the sensor data association information corresponding to the preset operation, the operating scenario information does not include the preset scenario information, and the current network condition is poor. In this way, the user's intention can be accurately identified.
[0107] In some embodiments, the user can also switch channels through any other preset operations. For example, if a preset gesture is performed on the screen, the terminal device can send the corresponding pressure sensor data association information to the routing device, so that the routing device determines whether to switch channels based on the pressure sensor data association information. However, it is understandable that touch screen operations such as preset gestures will increase the probability of the screen being accidentally touched compared to the above-mentioned shake operation or touch operation. For example, when a user is watching a video, the video is paused due to signal jamming. The user switches channels through the preset gesture "V"-shaped operation, but the "V"-shaped gesture usually causes other misoperations of the mobile phone, such as adjusting the volume, adjusting the brightness of the mobile phone screen, etc. For another example, when a user controls the mobile phone through the preset "L"-shaped gesture, the video progress bar may be pulled, causing a bad experience for the user. In addition, there are a variety of scene information for touch screen operations in the terminal device. When the user operates the terminal device through the touch screen, the terminal device may misjudge the user's intention and the probability of erroneously triggering channel switching is relatively high. In order to solve the above shortcomings, other means can be combined to achieve channel switching, for example, through pop-up information to let the user confirm whether to switch channels.
[0108] Combine the following Figure 4A and Figure 4B , taking the routing device as a wireless router 10 and the terminal device as a mobile phone 20 as an example, a scenario in which a user switches WiFi channels based on a shake operation is described.
[0109] For example, Figure 4A As shown, when the user is using the mobile phone 20 to play a video, he feels that the video playback is stuck, so he holds the mobile phone 20 and performs a shake operation to enhance the WiFi signal. At this time, the mobile phone 20 sends the current network status (such as the current network speed) and the A+G sensor data association information and the SAR sensor data association information to the wireless router 10, and the wireless router 10 can judge the current network status. At the same time, the wireless router 10 judges whether the received A+G sensor data association information meets the preset conditions based on the corresponding threshold of the A+G sensor data association information of whether to switch channels, for example, if the threshold is exceeded, it proves that there is a shake operation; in addition, the SAR sensor data association information can be judged. If the received SAR sensor data association information exceeds the preset threshold, it proves that the user is in the state of holding the mobile phone 20. After detecting that the user holds the mobile phone 20, it is determined that the user has the intention to switch channels.
[0110] At this time, if Figure 4B As shown, the wireless router 10 can send a query instruction on whether to switch channels to the mobile phone 20. Based on the query instruction, the mobile phone 20 can notify the user through the pop-up interface 401 of the mobile phone 20, so that the user can choose whether to optimize the WiFi signal in the pop-up interface 401. If the mobile phone 20 detects that the user selects the control 403 "No", it is determined that the user does not switch channels, and then a command not to switch channels is sent to the wireless router 10. If the mobile phone 20 detects that the user selects the control 402 "Yes", it is determined that the user needs to switch channels, and then a command to switch channels is sent to the wireless router 10. The wireless router 10 switches the current channel 1 to channel 2. At this time, the signal of the mobile phone 20 is restored, and the user continues to watch the video.
[0111] Combine the following Figure 5A and Figure 5B , taking the routing device as a wireless router 10 and the terminal device as a mobile phone 20 as an example, a scenario in which a user switches channels based on a touch operation is described.
[0112] For example, Figure 5AAs shown, when the user is using the mobile phone 20 to play a video, he feels that the video playback is stuck, so he holds the mobile phone 20 and performs a touch operation to enhance the WiFi signal. At this time, the NFC of the wireless router 10 and the mobile phone 20 are close to each other, and non-contact point-to-point data transmission can be performed. The mobile phone 20 can send the current network status (such as the current network speed) and the SAR sensor data association information to the wireless router 10, and the wireless router 10 determines whether the channel needs to be switched based on the current network status. At the same time, the wireless router 10 determines whether the received SAR sensor data association information meets the preset conditions based on the corresponding threshold of the SAR sensor data association information of whether to switch the channel. If the received SAR sensor data association information exceeds the preset threshold, it proves that the user is in the state of holding the mobile phone 20. After detecting that the user is holding the mobile phone 20, it is determined that the user has the intention to switch channels.
[0113] At this time, if Figure 5B As shown, the wireless router 10 can send a query instruction on whether to switch channels to the mobile phone 20. Based on the query instruction, the mobile phone 20 can notify the user through the mobile phone pop-up interface 501 so that the user can choose whether to optimize the WiFi signal in the pop-up interface 501. If the mobile phone 20 detects that the user selects the control 503 "No", it is determined that the user does not switch channels, and then a command not to switch channels is sent to the wireless router 10. If the mobile phone 20 detects that the user selects the control 502 "Yes", it is determined that the user needs to switch channels, and then a command to switch channels is sent to the wireless router 10. The wireless router 10 switches the current channel 1 to channel 2. At this time, the signal of the mobile phone 20 is restored, and the user continues to watch the video.
[0114] In this way, the present application can improve the user experience and the WiFi signal in a timely manner through this simple operation.
[0115] Before describing in detail the communication method provided in the embodiments of the present application, the electronic device mentioned in the embodiments of the present application is first introduced. It can be understood that the terminal electronic device in the embodiments of the present application can be any electronic device such as a mobile phone, a computer, a VR device, a tablet computer, a wearable device, an AR device, a laptop computer, etc. The form of the electronic device in the embodiments of the present application is not specifically limited.
[0116] like Figure 6 As shown, a schematic diagram of the hardware structure of a mobile phone 20 according to an embodiment of the present application is exemplified. Figure 6As shown, the mobile phone 20 may include a processor 110 (or host), a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 101, a display screen 102, and a touch screen 103, etc.
[0117] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute the only possible implementation method for the mobile phone 20. In other embodiments of the present application, the mobile phone 20 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0118] The processor 110 may include one or more processing units, for example, a processing module or processing circuit including a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor, a microprocessor (MCU), an artificial intelligence (AI) processor, or a programmable logic device (field programmable gate array, FPGA). Among them, different processing units may be independent devices or integrated into one or more processors. A storage unit may be provided in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory 180.
[0119] It can be understood that in the embodiment of the present application, the processor can be used to execute the method steps performed by the terminal device in the channel switching method of the present application.
[0120] The power module 140 may include a power source, a power management component, etc. The power source may be a battery. The power management component is used to manage the charging of the power source and the power supply of the power source to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module is used to receive charging input from the charger; the power management module is used to connect the power source, and the charging management module is connected to the processor 110. The power management module receives input from the power source and / or the charging management module, and supplies power to the processor 110, the display screen 102, the camera 170, and the wireless communication module 120.
[0121] The mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, a low noise amplifier (LAN), etc. The mobile communication module 130 may provide a solution for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 20. The mobile communication module 130 may receive electromagnetic waves by an antenna, filter, amplify, and process the received electromagnetic waves, and transmit them to a modulation and demodulation processor for demodulation. The mobile communication module 130 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be arranged in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be arranged in the same device as at least some of the modules of the processor 110.
[0122] The wireless communication module 120 may include an antenna, and transmit and receive electromagnetic waves via the antenna. The wireless communication module 120 may provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the mobile phone 20. The mobile phone 20 can communicate with the network and other devices through wireless communication technology.
[0123] In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the mobile phone 20 may also be located in the same module.
[0124] The display screen 102 is used to display a human-computer interaction interface, images, videos, etc. The display screen 102 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light emitting diode (FLED), a quantum dot light emitting diode (QLED), etc.
[0125] The sensor module 190 may include a proximity light sensor, a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, an electromagnetic wave absorption rate sensor, a sound sensor, and the like.
[0126] The audio module 150 is used to convert a digital audio signal into an analog audio signal output, or to convert an analog audio input into a digital audio signal. The audio module 150 can also be used to encode and decode an audio signal. In some embodiments, the audio module 150 can be arranged in the processor 110, or some functional modules of the audio module 150 can be arranged in the processor 110. In some embodiments, the audio module 150 can include a speaker, an earpiece, a microphone, and an earphone interface.
[0127] The camera 170 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then passed to the image signal processing (ISP) to be converted into a digital image signal. The mobile phone 20 can realize the shooting function through the ISP, the camera 170, the video codec, the graphics processing unit (GPU), the display screen 102, and the application processor.
[0128] The interface module 160 includes an external memory interface, a universal serial bus (USB) interface, and a subscriber identification module (SIM) card interface. The external memory interface can be used to connect an external memory card, such as a MicroSD card, to expand the storage capacity of the mobile phone 20. The external memory card communicates with the processor 110 via the external memory interface to implement a data storage function. The universal serial bus interface is used for the mobile phone 20 to communicate with other electronic devices. The subscriber identification module card interface is used to communicate with a SIM card installed in the mobile phone 20, for example, to read a phone number stored in the SIM card, or to write a phone number into the SIM card.
[0129] In some embodiments, the mobile phone 20 further includes a button 101, a motor, and an indicator. The button 101 may include a volume button, an on / off button, etc. The motor is used to make the mobile phone 20 vibrate, for example, vibrate when the user's mobile phone 20 is called to prompt the user to answer the call. The indicator may include a laser indicator, a radio frequency indicator, a light emitting diode (LED) indicator, etc.
[0130] Based on the terminal electronic device mentioned in the embodiment of the present application, the communication method in the embodiment of the present application is described in detail below. First, the communication method in the embodiment of the present application is described by taking the shake scenario as an example.
[0131] Taking the terminal device as a mobile phone and the routing device as a wireless router as an example, the process of the user switching channels based on the shake operation is described in detail. Figure 7 The specific flow diagram of the user switching channels based on the shake operation in the embodiment of the present application is shown. Specifically, the method includes the following steps:
[0132] S701: The mobile phone passes the authentication and connects to the router WiFi. At the same time, the router can obtain the real-time A+G sensor and SAR sensor data association information of the mobile phone.
[0133] It can be understood that in the embodiment of the present application, the mobile phone can access the wireless router through the wireless access through the authentication mechanism such as the key, that is, connect to the WiFi, and the wireless router will record the relevant information of the mobile phone, and at the same time, it can obtain the A+G sensor (i.e., A sensor and G sensor) and SAR sensor data association information of the mobile phone in real time. The scenario in which the wireless router obtains the mobile phone sensor data association information is as described above, and will not be repeated here.
[0134] Among them, the A sensor is the acceleration data of the three-axis motion, and the G sensor is the angular velocity data of the three-axis motion. The A+G sensor can be used to determine the motion trajectory information of the mobile phone. For example, when the mobile phone 20 is lying flat and motionless, the acceleration data of the three axes are all 0m / s 2 , the angular velocity data of the three axes are all 0rad / s. If the mobile phone 20 performs normal operations such as watching videos, playing games, browsing web pages, etc., at this time, the acceleration data and angular velocity data of the three axes will be in a small range (for example, 0 to 10m / s 2 If the mobile phone 20 is shaken significantly, the acceleration data and angular velocity data in the three-axis directions will exceed a certain range, and the data amplitude will change greatly. For example, the acceleration in any direction of the three-axis directions exceeds 20m / s. 2 The angular velocity data in any direction of the three axes exceeds 10rad / s.
[0135] Among them, SAR is the radio frequency power radiated by the human body when it is close to a handheld radio transmitting device. The SAR sensor can determine the distance between the human body and the mobile phone by monitoring the capacitance, and can be used to determine the contact status between the user and the mobile phone.
[0136] It can be understood that in the embodiment of the present application, when the user shakes the mobile phone, the A+G sensor data association information of the mobile phone will be obviously different from the value when the user normally operates the mobile phone. The wireless router can obtain the A+G sensor data association information of the mobile phone in real time to determine the operation status of the mobile phone. The SAR sensor data association information is used to determine whether the user is holding the mobile phone, thereby avoiding misoperation caused by the shaking caused by the mobile phone falling.
[0137] In some embodiments, the mobile phone may also send the sensor data association information to the wireless router when the sensor data association information corresponding to the preset operation is detected. For example, when the user is detected shaking the mobile phone, the A+G sensor data association information of the mobile phone is sent to the wireless router. In this way, the resource consumption caused by the wireless router needing to obtain the sensor data association information in real time can be reduced.
[0138] S702: The user performs a shake operation, and the mobile phone sends corresponding A+G sensor and SAR sensor data association information to the router.
[0139] In some embodiments, when the user encounters Internet lag and wants to improve the WiFi signal, the user can perform a shake operation, which may refer to the user shaking the mobile phone a preset number of times, such as 2-3 times.
[0140] In some embodiments, when the mobile phone detects that the current network status is poor, the user performs a shake operation to send corresponding A+G sensor and SAR sensor data association information to the wireless router device.
[0141] It can be understood that in some embodiments, the mobile phone can send A+G sensor and SAR sensor data association information to the wireless router in real time.
[0142] S703: The router determines whether the A+G sensor value exceeds the threshold. If so, it proceeds to S704; if not, it proceeds to S709.
[0143] It can be understood that in the embodiment of the present application, the wireless router can monitor and obtain the A+G sensor data association information of the mobile phone in real time, and judge the value. Among them, it is necessary to pre-set the A+G sensor threshold that can switch channels for the wireless router. If the A+G sensor values obtained by the wireless router, such as the three-axis acceleration values and the three-axis angular velocity values, respectively exceed (i.e., are greater than or equal to or greater than) the corresponding thresholds, or at least some of the values exceed the corresponding thresholds, it means that the mobile phone has a large shaking operation at this time, then go to S704 to judge the SAR sensor data association information; if the A+G sensor values obtained by the wireless router, such as the three-axis acceleration values and the three-axis angular velocity values, do not exceed (i.e., are less than or less than or equal to) the corresponding thresholds, it means that the movement state of the mobile phone is stable, there is no shaking operation, that is, there is no intention to switch channels, then go to S709, and do not start the signal switching state.
[0144] S704: The router determines whether the SAR sensor value of the mobile phone reaches the threshold value and whether the user is holding the phone. If yes, the process proceeds to S705; if no, the process proceeds to S709.
[0145] It can be understood that in the embodiment of the present application, the wireless router can monitor and obtain the SAR sensor data association information of the mobile phone in real time, and judge the data association information. Among them, it is necessary to pre-set the SAR sensor threshold for switching channels for the wireless router. If the SAR sensor value obtained by the wireless router exceeds the threshold, it means that the user is holding the mobile phone at this time, and the above-mentioned shaking of the mobile phone operation is a "shake" operation performed by the user, then go to S705 and send an inquiry instruction to the mobile phone whether to switch channels; if the SAR sensor value obtained by the wireless router does not reach the threshold, it means that the user is far away and has not operated the mobile phone. The above-mentioned shaking of the mobile phone is caused by other factors, for example, the mobile phone falls, which means that the user has no intention of switching channels, then go to S709 and do not start the signal switching state.
[0146] S705: The router sends an inquiry command to the mobile phone, and the mobile phone displays an inquiry pop-up window.
[0147] In some embodiments, the wireless router sends an inquiry instruction to the mobile phone to inquire about the user's intention. After receiving the inquiry instruction, the mobile phone can display an inquiry pop-up window to inquire about the user's intention. For example, the form of the inquiry pop-up window can be as follows: Figure 4B As shown, it includes a pop-up window interface 401, a selection control 402 and a selection control 403. In some embodiments, the mobile phone can also inquire about the user's intention in any other form, for example, inquiring in the form of issuing a voice command.
[0148] S706: The mobile phone detects whether the user confirms to switch channels. If yes, the process proceeds to S707; otherwise, the process proceeds to S709.
[0149] In some embodiments, the user can click the corresponding control in the query pop-up window to choose whether to switch channels. For example, the user can click the control "Yes" to choose to switch channels, and can also click the control "No" to choose not to perform channel switching. Figure 4B As shown, when the mobile phone 20 detects that the user clicks the control 402 "Yes", it can detect that the user confirms to switch the channel, and then go to S707 to send a switching instruction to the wireless router; if the mobile phone detects that the user selects the control 403 "No", it goes to S709 and does not execute the signal switching.
[0150] S707: The mobile phone sends a switching instruction to the router.
[0151] In some embodiments, when the mobile phone detects that the user selects the control "yes" in the inquiry pop-up window, that is, detects that the user confirms the intention to switch channels, a switching instruction is sent to the wireless router.
[0152] S708: The router starts switching channel parameter configuration.
[0153] It can be understood that in the embodiment of the present application, if the user chooses to execute the switching channel configuration, the wireless router will start the switching channel parameter configuration and automatically set it to the best working channel. For example, the working frequency bands of the WiFi signal are 2.4GHz and 5GHz, where the 2.4GHz band is divided into 13 overlapping and staggered 22MHz channels, with channel codes from 1 to 13, and there is a certain overlap between adjacent channels; the 5GHz band has more channels. And adjacent channels do not overlap, and the wireless router will automatically detect the channels available for radio frequency and select channels with less occupancy and less interference. In the embodiment of the present application, there is no limitation on the automatic channel switching method of the wireless router.
[0154] S709: The router does not initiate channel switching.
[0155] It can be understood that in the embodiment of the present application, if the sensor data association information does not conform to the data association information corresponding to the preset shake operation, or the user has no intention of improving the WiFi signal, the wireless router will not start channel switching, and will go to S702 to continue real-time monitoring to obtain the A+G sensor and SAR sensor data association information of the mobile phone.
[0156] In this way, through the above process, users can switch the channel of the wireless router by simply "shaking" the phone 2 to 3 times, thereby enhancing the WiFi signal and improving the user experience.
[0157] Still taking the terminal device as a mobile phone and the routing device as a wireless router as an example, the process of another user switching channels based on a touch operation provided in an embodiment of the present application is described in detail. Figure 8 The specific flow diagram of the user switching channels based on the touch operation in the embodiment of the present application is shown. Specifically, the method includes the following steps:
[0158] S801: The mobile phone passes authentication and connects to the router WiFi.
[0159] It can be understood that in the embodiment of the present application, the mobile phone can access the wireless router through wireless access through authentication mechanisms such as keys, and can connect to WiFi to access the Internet.
[0160] S802: The user touches the mobile phone to the router.
[0161] In some embodiments, when the user experiences Internet lag and wants to improve the WiFi signal, the user can touch the wireless router and the mobile phone together.
[0162] S803: The mobile phone and the router establish a NFC communication connection.
[0163] It can be understood that NFC is a short-range wireless communication technology. When the mobile phone and the wireless router touch each other, the NFC at both ends of the devices will trigger the connection. Within a distance of 10 cm, the two devices can perform contactless point-to-point data transmission. When transmitting data point-to-point, the interaction mode between the two devices adopts the active communication mode, that is, when the mobile phone or wireless router needs to send data, the data sender will generate its own radio frequency field, the receiver will turn off the radio frequency field, and receive the sender's data in listening mode; when the sender has sent the data, it will turn off its own radio frequency field and be in listening mode, waiting for the target receiver to send data; when the receiver sends data, it needs to generate its own radio frequency field to send data.
[0164] In some embodiments, when the user touches the mobile phone and the wireless router together, a wireless communication connection between the mobile phone and the NFC is triggered.
[0165] In some embodiments, the mobile phone and the wireless router may also establish other near-field connections, such as wireless carrier communication technologies such as UltraWideBand (UWB).
[0166] S804: The mobile phone sends SAR sensor data association information to the router.
[0167] In some embodiments, after the wireless router and the mobile phone establish an NFC communication connection, the mobile phone will send real-time SAR sensor data association information to the wireless router device.
[0168] S805: The router determines whether the SAR sensor value of the mobile phone reaches the threshold value and whether the user is holding the phone. If yes, the process proceeds to S806; if no, the process proceeds to S810.
[0169] It can be understood that in the embodiment of the present application, the wireless router can monitor and obtain the SAR sensor data association information of the mobile phone in real time, and judge the value. Among them, it is necessary to pre-set the SAR sensor threshold for switching channels for the wireless router. If the SAR sensor value obtained by the wireless router exceeds the threshold, it means that the user is holding the mobile phone at this time, then go to S806 and send a query instruction to the mobile phone whether to switch channels; if the SAR sensor value obtained by the wireless router does not reach the threshold, it means that the user has no intention of switching channels, then go to S810 and do not start the signal switching state.
[0170] S806: The router sends an inquiry command to the mobile phone, and the mobile phone displays an inquiry pop-up window.
[0171] In some embodiments, the wireless router sends an inquiry instruction to the mobile phone to inquire about the user's intention. After receiving the inquiry instruction, the mobile phone can display an inquiry pop-up window to inquire about the user's intention. For example, the form of the inquiry pop-up window can be as follows: Figure 5B As shown, it includes a pop-up window interface 501, a selection control 502 and a selection control 503. In some embodiments, the mobile phone can also inquire about the user's intention in any other form, for example, inquiring in the form of issuing a voice command.
[0172] In some embodiments, if the SAR sensor value obtained by the wireless router reaches a threshold value and it is determined that the user intends to switch channels, the wireless router may directly switch channels without asking.
[0173] S807: The mobile phone detects whether the user confirms to switch channels. If yes, the process proceeds to S808; otherwise, the process proceeds to S810.
[0174] In some embodiments, the user can click the corresponding control in the query pop-up window to choose whether to switch channels. For example, the user can click the control "Yes" to choose to switch channels, and can also click the control "No" to choose not to perform channel switching. Figure 5B As shown, when the mobile phone 20 detects that the user clicks control 502 "Yes", it can detect that the user confirms to switch channels, and then go to S808 to send a switching instruction to the wireless router; if the mobile phone detects that the user selects control 803 "No", it goes to S810 and does not execute signal switching.
[0175] S808: The mobile phone sends a switching instruction to the router.
[0176] It can be understood that this step is similar to the above step S707 and will not be repeated here.
[0177] S809: The router starts switching channel parameter configuration.
[0178] It can be understood that this step is similar to the above step S808 and will not be repeated here.
[0179] S810: The router does not initiate channel switching.
[0180] It can be understood that in the embodiment of the present application, if the sensor data association information does not meet the preset SAR sensor threshold, or the user has no intention to improve the WiFi signal, the wireless router will not initiate signal switching.
[0181] In this way, through the above process, the user can switch the channel of the wireless router, enhance the WiFi signal and improve the user experience by simply touching the mobile phone to the wireless router.
[0182] Optionally, the embodiment of the present application further provides a process for a user to switch channels based on a shake operation. Differentiatedly, the mobile phone does not send the A+G sensor data association information and the SAR sensor data association information in real time after connecting to WiFi, but when the mobile phone detects a preset shake operation and determines that the shake operation is not a function operation of the current application based on the current running scene information, the A+G sensor and SAR sensor data association information is sent to the wireless router. The process of channel switching is described in detail below.
[0183] like Fig. 9 As shown, the method comprises the following steps:
[0184] S901: The mobile phone passes authentication and connects to the router WiFi.
[0185] It can be understood that in the embodiment of the present application, the mobile phone can access the wireless router through wireless access through authentication mechanisms such as keys, and can connect to WiFi to access the Internet.
[0186] S902: The mobile phone detects that the user performs a shake operation, and determines whether the shake operation is a function operation of the application based on the current operation scene information of the mobile phone. If not, proceed to S903; if yes, proceed to S904.
[0187] It is understandable that in some applications, the shake operation can achieve some specific functions, such as WeChat TM After detecting the user's shake operation, the mobile phone can determine whether the shake operation is a specific function operation of the currently running application based on the current running scene information. If the purpose of the operation is to execute a specific function under the currently running program, the process goes to S904 and the sensor data association information is not sent to the wireless router; if the judgment result is no, that is, it is determined that the user's intention of the operation is to switch channels, the process goes to S903 and the mobile phone sends the sensor data association information to the wireless router.
[0188] For example, when it is determined based on the current running scene information that there is a scenario in the current running scene that runs the red envelope grabbing function of application A, and the implementation operation of this function is a shake operation, that is, it is determined that the intention of the user's operation is not to switch channels, then the sensor data association information will not be sent to the wireless router, thus avoiding misjudgment of user intentions.
[0189] S903: The mobile phone sends corresponding A+G sensor and SAR sensor data association information to the router.
[0190] In some embodiments, if the mobile phone detects a shake operation, and the purpose of the operation is not to execute a specific function under the currently running program, the mobile phone will send the corresponding A+G sensor and SAR sensor data association information to the wireless router.
[0191] In some embodiments, the mobile phone may also send A+G sensor and SAR sensor data association information to the wireless router when it detects that the network status is poor and determines that shaking is not a functional operation of the application.
[0192] S904: The mobile phone does not send the sensor data association information to the router.
[0193] It is understandable that if the mobile phone determines that the purpose of shaking is to execute a specific function under the currently running program, the sensor data association information will not be sent to the wireless router.
[0194] S905: The router determines whether the A+G sensor value exceeds the threshold. If so, it proceeds to S906; if not, it proceeds to S911.
[0195] S906: The router determines whether the SAR sensor value of the mobile phone reaches the threshold value and whether the user is holding the phone. If yes, the process proceeds to S907; if no, the process proceeds to S911.
[0196] S907: The router sends an inquiry command to the mobile phone, and the mobile phone displays an inquiry pop-up window.
[0197] S908: The mobile phone detects whether the user confirms to switch channels. If yes, it goes to S909; otherwise, it goes to S911.
[0198] S909: The mobile phone sends a switching instruction to the router.
[0199] S910: The router starts switching channel parameter configuration.
[0200] S911: The router does not initiate channel switching.
[0201] It can be understood that the above steps S905 to S911 are similar to the above steps S703 to S709 and will not be described in detail here.
[0202] Optionally, the embodiment of the present application further provides a process for a user to switch channels based on a shake operation. Differentiatedly, the mobile phone does not send the A+G sensor data association information and the SAR sensor data association information in real time after connecting to WiFi. When the mobile phone detects a preset shake operation, it sends the A+G sensor and SAR sensor data association information to the wireless router, and sends the sensor data association information while sending the scene information data to the wireless router. The process is described in detail below.
[0203] Fig.10 A schematic diagram of another specific process of switching channels based on a shake operation by a user in an embodiment of the present application is shown. Specifically, the method includes the following steps:
[0204] S1001: The mobile phone passes authentication and connects to the router WiFi.
[0205] It can be understood that this step is similar to the above step S901 and will not be repeated here.
[0206] S1002: The mobile phone detects that the user performs a shake operation, and sends corresponding A+G sensor and SAR sensor data association information and current operating scene information to the router.
[0207] In some embodiments, when the user encounters Internet lag and wants to improve the WiFi signal, the user can perform a shake operation, which may refer to the user shaking the mobile phone a preset number of times, such as 2-3 times.
[0208] In some embodiments, when the mobile phone detects that the current network status is poor and determines that the user performs a shake operation based on the A+G sensor and SAR sensor data association information, the mobile phone will send the corresponding A+G sensor and SAR sensor data association information and the current operating scene information to the wireless router device.
[0209] S1003: The router determines whether the A+G sensor value exceeds the threshold. If so, it proceeds to S1004; if not, it proceeds to S1010.
[0210] It can be understood that this step is similar to the above step S703 and will not be repeated here.
[0211] S1004: The router determines whether the SAR sensor value of the mobile phone reaches the threshold value and whether the user is holding the phone. If yes, the process proceeds to S1005; if no, the process proceeds to S1010.
[0212] It can be understood that this step is similar to the above step S704 and will not be repeated here.
[0213] S1005: The router determines whether the current mobile phone operation scene information is the same as the preset scene information corresponding to the shake operation. If not, enter S1006; if yes, enter S1010.
[0214] It can be understood that the wireless router can be preset with a variety of existing scene information that have switching operations but no channel switching. For example, the pre-stored scene information corresponding to the shake operation includes scene information of the red envelope grabbing function, or scene information of the adding friend function, etc.
[0215] In some embodiments, the wireless router determines the received scene operation information, and if it is the same as the scene information corresponding to the shake operation preset by the wireless router, for example, WeChat TM If the red envelope grabbing function is the same, it means that the user's intention of shaking the phone is not to switch channels, then go to S1010 and do not execute the channel switching function; if they are different, it means that the current user's intention of shaking the phone is to switch channels, then go to S1006 and send a query instruction to the phone whether to switch channels.
[0216] S1006: The router sends an inquiry command to the mobile phone, and the mobile phone displays an inquiry pop-up window.
[0217] S1007: The mobile phone detects whether the user confirms to switch channels. If yes, the process goes to S1008; otherwise, the process goes to S1010.
[0218] S1008: The mobile phone sends a switching instruction to the router.
[0219] S1009: The router starts switching channel parameter configuration.
[0220] S1010: The router does not initiate channel switching.
[0221] It can be understood that the above steps S1006 to S1010 are similar to the above steps S705 to S709 and will not be described in detail here.
[0222] In this way, the user's intention can be accurately identified through the above process. The user can simply "shake" the phone 2 to 3 times to switch the channel of the wireless router, enhance the WiFi signal, and improve the user experience.
[0223] It can be understood that the above embodiments provided in the present application are only exemplified based on the scenario of the shake operation. After executing the touch operation, the mobile phone can also execute the sending of the current operation scenario information to the wireless router. The wireless router determines whether to execute the channel switching operation based on the sensor data association information sent by the mobile phone and the current operation scenario information. For example, the wireless router may be preset with existing scenario information in which a switching operation exists but no channel switching is performed. For example, the pre-stored corresponding scenario information in which a touch operation exists but no channel switching is performed includes the scenario information of touch networking, etc. After the NFC touch connection between the wireless router and the mobile phone, if the wireless router determines that the current operation scenario information of the mobile phone is the one-touch networking scenario information of the mobile phone, the channel switching function is not executed. In this way, the user's intention can be accurately identified.
[0224] In addition, the above-mentioned shake and tap operations are examples, and other preset operations can also be set in the embodiments of the present application, such as the operation of switching channels through voice commands, etc. For example, when a user is watching a video, the video is paused due to signal jamming. The user can control the mobile phone through voice commands such as "change the wireless router channel", and the mobile phone can send the corresponding sound sensor data association information to the wireless router, so that the wireless router determines whether to switch the channel based on the sound sensor data association information.
[0225] Next, taking the first device as a terminal device and the second device as a routing device as an example, the device interaction between the channel switching scenarios based on the shake operation of the user is explained, wherein the first device includes an A+G sensor and a SAR sensor, a host and a touch screen, and the second device includes a host. Fig.11 A schematic diagram of an interaction process in an embodiment of the present application is shown. Specifically, Fig.11 The method shown comprises the following steps:
[0226] 1101: The host of the first device extracts the A+G sensor count and SAR sensor data association information of the first device in real time.
[0227] It is understandable that the first device provides support for device sensors and a driver for managing sensor hardware, and can monitor changes in the external environment perceived by the sensor hardware in a listener manner. In an embodiment of the present application, the A+G sensor data association information and the SAR sensor data association information are monitored to determine whether the first device has a shake operation.
[0228] 1102: Data transmission and processing are performed between hosts of the first device and the second device.
[0229] It can be understood that after the first device connects to the WiFi signal provided by the second device, both devices are constantly sending signals to the outside and are ready to receive signals at any time, that is, both hosts can perform data transmission. Among them, the data is transmitted in the form of encapsulated data frames, and after the device host receives the data frames, it is necessary to perform frame decomposition and integration processing. In an embodiment of the present application, after the user performs a shake operation, the first device host transmits the current network status information, A+G sensor data association information, and SAR sensor data association information to the second device host, and the second device host can process and judge the received data association information.
[0230] 1103: A data response message is transmitted between the first device and the host of the second device.
[0231] It is understood that after the data receiver successfully receives the signal, it can send a confirmation message to the other device. In the embodiment of the present application, after the second device detects that the user intends to switch channels, it can send an inquiry command to the first device host to notify the user to confirm whether to switch channels again.
[0232] 1104: The host of the first device sends a display request instruction to the touch screen, so that the touch screen displays the request instruction sent by the host.
[0233] It can be understood that when the first device host receives the notification sent by the second device host, the first device host will display a pop-up notification on the touch screen. Figure 4B As shown, the screen of the mobile phone 20 will display a pop-up interface 401, asking the user whether to improve the WiFi signal.
[0234] 1105: The touch screen of the first device sends a command response to the host.
[0235] It can be understood that in the embodiment of the present application, the touch screen can be composed of a screen and a touch sensor and other components. When the user operates the mobile phone through the screen, the user's operation instructions will be converted into electrical signals and sent to the host through the touch sensor. Figure 4B As shown, if the user selects "Yes" in control 402, an instruction to notify the wireless router to select a channel switch will be sent to the mobile phone host.
[0236] 1106: The host of the first device sends a channel switching request to the host of the second device.
[0237] It can be understood that the host of the first device detects that the user selects to improve the WiFi signal through the touch screen to determine that the user has the intention to switch channels, and will send the instruction to the host of the second device to request the second device to switch channels.
[0238] 1107: The first device and the host of the second device respond to the channel switching.
[0239] It can be understood that after the host of the second device receives the channel switching instruction from the host of the first device, it will execute the channel switching.
[0240] Next, taking the first device as a terminal device and the second device as a routing device as an example, the device interaction between channel switching scenarios based on a touch operation by a user is explained, wherein the first device includes an NFC antenna, a host and a touch screen, and the second device includes an NFC antenna and a host. Fig.12 A schematic diagram of an interaction process in an embodiment of the present application is shown, wherein 1204 to 1208 and Fig.11 1103 to 1107 are the same as those in , and will not be described again here. Specifically, Fig.12 The method shown comprises the following steps:
[0241] 1201: The NFC antennas of the first device and the second device are brought close to / touched with each other.
[0242] It can be understood that NFC is a contactless radio frequency identification and interconnection technology. When the NFC antennas of the first device and the second device are close to / touched each other, the NFC connection will be triggered, and contactless point-to-point data transmission can be performed.
[0243] 1202: Data processing is requested between the first device and the host of the second device.
[0244] It can be understood that after the NFC connection, the two devices can transmit data within a distance of 10 cm. In the embodiment of the present application, after the user performs a tap operation, the first device host transmits the current network status information and SAR sensor data association information to the second device host, and the second device host can process and judge the received data association information.
[0245] 1203: The host of the first device extracts and saves data.
[0246] The host of the first device can obtain the data association information of the SAR sensor and send it to the second device.
[0247] 1204: A data response message is transmitted between the first device and the host of the second device.
[0248] It is understood that after the data receiver successfully receives the signal, it can send a confirmation message to the other device. In the embodiment of the present application, after the second device detects that the user has the purpose of switching channels, it can send an inquiry instruction to the first device host to notify the user to confirm whether to switch channels again.
[0249] 1205: The host of the first device sends a display request instruction to the touch screen, so that the touch screen displays the request instruction sent by the host.
[0250] It can be understood that when the first device host receives the notification sent by the second device host, the first device host will display a pop-up notification on the touch screen. Figure 5B As shown, the screen of the mobile phone 20 will display a pop-up interface 501, asking the user whether the WiFi signal needs to be improved.
[0251] 1206: The touch screen of the first device sends a command response to the host.
[0252] It can be understood that in the embodiment of the present application, the touch screen can be composed of a screen and a touch sensor and other components. When the user operates the mobile phone through the screen, the user's operation instructions will be converted into electrical signals and sent to the host through the touch sensor. Figure 5B As shown, if the user selects "Yes" in the 502 control, an instruction to notify the wireless router to select a channel switch will be sent to the mobile phone host.
[0253] 1207: The host of the first device sends a channel switching request to the host of the second device.
[0254] It can be understood that the host of the first device detects that the user selects to improve the WiFi signal through the touch screen to determine that the user has the intention to switch channels, and will send the instruction to the host of the second device to request the second device to switch channels.
[0255] 1208: The host of the first device and the host of the second device respond to the channel switching.
[0256] It can be understood that after receiving the channel switching request from the host of the first device, the host of the second device will perform channel switching.
[0257] Through the above interactive process, the current channel can be automatically switched to other channels by touching the mobile phone to the wireless router, which effectively simplifies the channel switching process, enhances the WiFi signal, and improves the user experience.
[0258] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0259] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application specific integrated circuit, or a microprocessor.
[0260] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0261] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, a floppy disk, an optical disk, an optical disk, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), a magnetic card or an optical card, an erasable programmable read-only memory (EPROM), a flash memory, an electrically erasable programmable read-only memory (EEPROM), or a tangible machine-readable memory for transmitting information (e.g., a carrier wave, an infrared signal digital signal, etc.) using the Internet in an electrical, optical, acoustic, or other form of propagation signal. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
[0262] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0263] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0264] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0265] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.
Claims
1. A communication method, characterized in that: include: The first electronic device communicates with a second electronic device based on the first channel, and the second electronic device is a network access device; The first electronic device detects a first trigger event and sends sensor data associated information to the second electronic device; In response to the second electronic device determining that the sensor data association information satisfies a first preset condition, the second electronic device switches the first channel for communicating with the first electronic device to a second channel.
2. The method according to claim 1, characterized in that The first electronic device detects a first trigger event and sends sensor data associated information to the second electronic device; comprising: When the first electronic device detects a first trigger event and determines that the operation scenario information of the first electronic device meets a second preset condition, the sensor data association information is sent to the second electronic device.
3. The method according to claim 1, characterized in that The method further comprises: The first electronic device detects the first trigger event and sends the sensor data association information and the operation scenario information corresponding to the first electronic device to the second electronic device; In response to the second electronic device determining that the sensor data association information satisfies the first preset condition and the operation scenario information satisfies the second preset condition, the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
4. The method according to claim 2 or 3, characterized in that: The first trigger event is a preset operation, and the sensor data association information includes sensor data association information corresponding to the preset operation.
5. The method according to claim 4, characterized in that The running scenario information includes application information currently running on the first electronic device.
6. The method according to claim 1, characterized in that The method further comprises: The first electronic device detects a first trigger event and sends network status information to the second electronic device; In response to the second electronic device determining that the sensor data association information satisfies the first preset condition and the network status information satisfies the third preset condition, the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
7. The method according to claim 1, characterized in that The first electronic device detects a first trigger event and sends sensor data associated information to the second electronic device; comprising: When the first electronic device detects a first trigger event and determines that the network status information of the first electronic device meets a third preset condition, the sensor data association information is sent to the second electronic device.
8. The method according to claim 1, characterized in that The first electronic device detects a first trigger event and sends sensor data associated information to the second electronic device; comprising: The first electronic device detects a first trigger event and determines that the operation scenario information of the first electronic device meets a second preset condition, and when the network status information of the first electronic device meets a third preset condition, sends the sensor data association information to the second electronic device.
9. The method according to claim 1, characterized in that: The method further comprises: The first electronic device detects a first trigger event and sends sensor data association information, network status information, and operation scenario information to the second electronic device; Corresponding to the second electronic device determining that the sensor data association information satisfies the first preset condition, and the operating scenario information corresponding to the first electronic device satisfies the second preset condition, and the network status information satisfies the third preset condition, the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
10. The method according to any one of claims 7 to 9, characterized in that: The network status information includes a network rate.
11. The method according to claim 1, characterized in that: The first electronic device detects a first trigger event and sends sensor data associated information to the second electronic device; comprising: When the first electronic device is close to or in contact with the second electronic device, the sensor data associated information is sent to the second electronic device.
12. The method according to claim 11, characterized in that The first electronic device is close to or in contact with the second electronic device, comprising: the first electronic device and the second electronic device establish a short-range wireless communication connection.
13. The method according to any one of claims 1 to 10, characterized in that: The first trigger event includes shaking the first electronic device, and the sensor data associated information includes at least one of acceleration sensor data associated information, gyroscope sensor data associated information, and electromagnetic wave absorption rate sensor data associated information.
14. The method according to claim 1, characterized in that The first trigger event includes a preset gesture touch screen operation, and the sensor data associated information includes pressure sensor data associated information.
15. The method according to claim 1, characterized in that Before the second electronic device switches the first channel for communicating with the first electronic device to a second channel, the method further includes: The first electronic device sends a query message to the user; In response to a confirmation instruction from the user, the second electronic device switches the first channel for communicating with the first electronic device to a second channel.
16. The method according to claim 15, characterized in that The first electronic device sending the inquiry information to the user includes: the first electronic device displays the inquiry information and / or the first electronic device sends a voice instruction corresponding to the inquiry information.
17. A communication method, characterized in that: For a second electronic device, the method includes: The second electronic device communicates with the first electronic device based on the first channel, and the second electronic device is a network access device; The second electronic device receives the sensor data associated information sent by the first electronic device; The second electronic device determines that the sensor data association information satisfies a first preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to a second channel.
18. The method according to claim 17, characterized in that The method further comprises: The second electronic device receives the sensor data association information and the operation scenario information corresponding to the first electronic device sent by the first electronic device; The second electronic device determines that the sensor data association information satisfies a first preset condition and the operation scenario information satisfies a second preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
19. The method according to claim 18, characterized in that The running scenario information includes application information currently running on the first electronic device.
20. The method according to claim 17, characterized in that The method further comprises: The second electronic device receives the sensor data association information and the network status information sent by the first electronic device; The second electronic device determines that the sensor data association information satisfies a first preset condition and the network status information satisfies a third preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
21. The method according to claim 17, characterized in that The method further comprises: The second electronic device receives the sensor data association information, the operation scenario information corresponding to the first electronic device, and the network status information sent by the first electronic device; The second electronic device determines that the sensor data association information meets the first preset condition, the operation scenario information meets the second preset condition, and the network status information meets the third preset condition, and the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
22. The method according to any one of claims 20 or 21, characterized in that The network status information includes a network rate.
23. The method according to claim 17, characterized in that Before the second electronic device switches the first channel for communicating with the first electronic device to a second channel, the method further includes: The second electronic device sends an inquiry instruction to the first electronic device; In response to a confirmation instruction executed by a user on the first electronic device, the second electronic device switches the first channel for communicating with the first electronic device to the second channel.
24. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store instructions executed by one or more processors of the electronic device, and the processor is one of the one or more processors of the electronic device, and is used to execute the communication method described in any one of claims 1-23.
25. A readable medium, characterized in that The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the communication method according to any one of claims 1 to 23.
Citation Information
Cited By
Communication method, electronic device, and medium
EP4651526A1
