A wireless communication method and system

CN122579095APending Publication Date: 2026-08-14YEALINK (XIAMEN) NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-03
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

然而,这种基于单一信号判断的切换方式存在以下问题:一方面,信号强度可能因环境中的瞬时干扰(如人员走动、多径效应等)而产生短暂波动,仅依赖单一信号指标容易触发不必要的频繁切换(即误切换),导致额外的信令开销和设备功耗;另一方面,从发起切换指令到切换完成之间的过渡期内,若缺乏合理的衔接机制,可能导致正在进行的通话出现中断或丢包,影响通信质量

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122579095A_ABST
    Figure CN122579095A_ABST
Patent Text Reader

Abstract

This application provides a wireless communication method and system, belonging to the field of communication technology, and applied to a wireless communication terminal. The method includes: during Bluetooth communication with a VoIP communication device, obtaining a first communication score for Bluetooth communication; when the first communication score drops to a first threshold or below, performing a Wi-Fi preparation operation; when the first communication score drops to a second threshold or below, and the Wi-Fi preparation operation is completed, performing a Wi-Fi pre-connection operation to establish a Wi-Fi connection with a target wireless access point; when the first communication score drops to a third threshold or below, and the Wi-Fi pre-connection is successful, performing a switching operation from Bluetooth communication to Wi-Fi communication, sending call service data through the Wi-Fi connection, and disconnecting or suspending the Bluetooth link with the VoIP communication device after confirming that the VoIP communication device has received the call service data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a wireless communication method and system. Background Technology

[0002] Currently, wireless communication devices can use Wi-Fi and Bluetooth for communication. In practical applications, these two communication protocols have their own characteristics. For example, Bluetooth does not support roaming and has a relatively short communication range. Wi-Fi consumes more power. Therefore, the deployment scenarios for Wi-Fi and Bluetooth are correspondingly limited.

[0003] With the development of wireless communication technology, Bluetooth and Wi-Fi have become the two most commonly used short-range wireless communication methods for terminal devices. Bluetooth communication has the advantages of low power consumption and convenient connection, making it suitable for short-range, low-power communication scenarios; Wi-Fi communication, on the other hand, features high transmission speed and wide coverage, making it suitable for scenarios requiring high bandwidth and long-range communication. In practical applications, to meet the communication needs of different scenarios, more and more wireless communication terminals (such as VoIP wireless phones, smart wearable devices, etc.) are beginning to be equipped with both Bluetooth and Wi-Fi modules. Currently, terminal devices equipped with dual-mode Bluetooth and Wi-Fi communication capabilities typically rely on a single signal indicator (such as the Bluetooth Received Signal Strength Indicator (RSSI)) to determine whether a communication mode switch is necessary during VoIP calls. For example, when the Bluetooth signal strength falls below a certain preset threshold, the terminal switches the communication link from Bluetooth to Wi-Fi. However, this switching method based on a single signal has the following problems: First, signal strength may fluctuate briefly due to transient interference in the environment (such as people moving around, multipath effects, etc.), and relying solely on a single signal indicator can easily trigger unnecessary frequent switching (i.e., erroneous switching), leading to additional signaling overhead and device power consumption. Second, if there is a lack of a reasonable connection mechanism during the transition period from initiating the switching command to the completion of the switching, the ongoing call may be interrupted or packets may be lost, affecting communication quality.

[0004] Therefore, how to achieve smooth switching between Bluetooth and Wi-Fi modes based on multi-dimensional communication quality assessment in various communication scenarios, reduce the number of invalid switching caused by instantaneous signal fluctuations, and ensure uninterrupted calls has become an urgent technical problem to be solved. Summary of the Invention

[0005] This application provides a wireless communication method and system to achieve smooth switching between Bluetooth mode and Wi-Fi mode in various communication scenarios, reduce the number of invalid switching caused by instantaneous signal fluctuations, and ensure uninterrupted calls.

[0006] To address the aforementioned technical problems, the embodiments of this application disclose the following technical solutions: Firstly, a wireless communication method is provided, applied to a wireless communication terminal, which can be a complete device or related components (such as a chip system). The method includes: During Bluetooth communication with a VoIP communication device, obtain the first communication score of the Bluetooth communication; When the first communication score drops to or below the first threshold, a Wi-Fi preparation operation is performed, which includes waking up the Wi-Fi module, scanning for available wireless access points, and selecting a target wireless access point from the scanned available wireless access points. When the first communication score drops to the second threshold or below, and the Wi-Fi preparation operation is completed, a Wi-Fi pre-connection operation is performed to establish a Wi-Fi connection with the target wireless access point; When the first communication score drops to the third threshold or below, and the Wi-Fi pre-connection is successful, a switching operation from Bluetooth communication to Wi-Fi communication is performed, the call service data is sent through the Wi-Fi connection, and after confirming that the VoIP communication device has received the call service data, the Bluetooth link with the VoIP communication device is disconnected or suspended; wherein, the third threshold is less than the second threshold.

[0007] In one possible design, the first communication score is obtained by weighted summation of multiple parameters among the first signal quality parameter, the first call service status parameter, and the first terminal status parameter.

[0008] In one possible design, the first signal quality parameter includes a first Bluetooth signal quality parameter and / or a first Wi-Fi signal quality parameter; the first Bluetooth signal quality parameter includes at least one of a first Bluetooth signal strength, a Bluetooth link packet loss rate, and a Bluetooth link packet error rate; the first Wi-Fi signal quality parameter includes a first Wi-Fi signal strength. The first call service status parameter includes a first call status and / or a first call type; wherein, the first call status indicates whether the wireless communication terminal is in a call, and the first call type indicates a voice call type or a video call type; The first terminal status parameters include the first remaining battery power of the wireless communication terminal and / or the first operating state of the Wi-Fi module of the wireless communication terminal; wherein, the first operating state indicates a sleep state, a wake-up state, or a connected state.

[0009] In one possible design, the Wi-Fi pre-connection preparation operation is only performed when the duration of the first communication score being below a first threshold exceeds a first preset duration; and / or The Wi-Fi pre-connection establishment operation is only performed when the first communication score is below the second threshold for a duration exceeding the second preset time; and / or The switching operation from Bluetooth to Wi-Fi is only performed when the first communication score is below the third threshold for a duration exceeding the third preset duration.

[0010] In one possible design, the Wi-Fi pre-connection operation includes: initiating a Wi-Fi connection with the target wireless access point, completing authentication and key negotiation; if the Wi-Fi connection fails, maintaining Bluetooth communication without performing a handover operation.

[0011] In one possible design, sending call service data via the Wi-Fi connection and disconnecting the Bluetooth link with the VoIP communication device after confirming that the VoIP communication device has received the call service data includes: Send call service data packets to the VoIP communication device via the Wi-Fi connection; In response to receiving a successful response message from the VoIP communication device, the Bluetooth link is disconnected.

[0012] In one possible design, the method further includes: after disconnecting the Bluetooth link with the VoIP communication device, controlling the Bluetooth module of the wireless communication terminal to enter a sleep state.

[0013] In one possible design, the method further includes: upon initial Bluetooth pairing with the VoIP communication device, binding the unique device identifier of the wireless communication terminal to the VoIP account of the VoIP communication device, exchanging and storing the other party's public key certificate, and receiving and storing the list of available wireless access points pushed by the VoIP communication device.

[0014] In one possible design, the second threshold is smaller than the first threshold; Alternatively, the Wi-Fi preparation operation and the Wi-Fi pre-connection operation may be combined into a single operation; when the first communication score drops to or below the second threshold, the single operation completes all aspects of the Wi-Fi preparation and pre-connection.

[0015] In one possible design, selecting the target wireless access point from the scanned available wireless access points includes: Calculate the estimated communication score after the handover for each of the multiple wireless access points detected, and select the wireless access point with the highest estimated score as the target wireless access point. Alternatively, pre-connections can be established with multiple wireless access points, switching to backup wireless access points when the communication quality of the primary wireless access point deteriorates.

[0016] Secondly, a wireless communication method applied to a wireless communication terminal, the method comprising: A second communication score is obtained during Wi-Fi communication with a VoIP communication device; When the second communication score rises to the fourth threshold or above, the Bluetooth module of the wireless communication terminal is activated and a Bluetooth connection is established with the VoIP communication device; After the Bluetooth connection is successfully established, when the second communication score rises to the fifth threshold or above and the duration exceeds the fourth preset duration, a switching operation from Wi-Fi communication to Bluetooth communication is performed, wherein the fifth threshold is greater than the fourth threshold. The switching operation includes: sending call service data through the Bluetooth connection, and disconnecting the Wi-Fi connection with the VoIP communication device after confirming that the VoIP communication device has received the call service data.

[0017] In one possible design, the second communication score is obtained by weighted summation of multiple parameters among the second signal quality parameter, the second call service status parameter, and the second terminal status parameter.

[0018] In one possible design, the second signal quality parameter includes a second Bluetooth signal quality parameter and / or a second Wi-Fi signal quality parameter; the second Bluetooth signal quality parameter includes a second Bluetooth signal strength; the second Wi-Fi signal quality parameter includes at least one of a second Wi-Fi signal strength, a Wi-Fi link packet loss rate, and a Wi-Fi link packet error rate. The second call service status parameter includes a second call status and / or a second call type. The second call status indicates whether the wireless communication terminal is in a call, and the second call type indicates a voice call or a video call. The second terminal status parameter includes the second remaining battery power of the wireless communication terminal and / or the second operating state of the Bluetooth module of the wireless communication terminal, the second operating state including sleep state, wake-up state or connected state.

[0019] In one possible design, after performing the switching operation from Wi-Fi to Bluetooth, the method further includes controlling the Wi-Fi module of the wireless communication terminal to enter a sleep state.

[0020] Thirdly, a wireless communication system includes a wireless communication terminal, a VoIP communication device, and a wireless access point; The wireless communication terminal includes a Bluetooth communication module, a Wi-Fi module, and a processor, the processor being configured to perform the method as described in any of the preceding aspects.

[0021] The VoIP communication device includes a Bluetooth communication module and a network communication module, used for Bluetooth communication with the wireless communication terminal or Wi-Fi communication with the wireless communication terminal via a network; The wireless access point is used to forward data between the wireless communication terminal and the VoIP communication device during Wi-Fi communication between the wireless communication terminal and the VoIP communication device.

[0022] Fourthly, this application provides a communication device, including a functional module, unit, or means for performing the methods in any possible design of any aspect of this application as described above. The module may be implemented by software or hardware, or by a combination of software and hardware. The inclusion of a processing unit and a communication unit is not limited.

[0023] Fifthly, the present application provides a communication device, including a processor configured to perform the method of any of the above-described aspects.

[0024] In some designs, the device also includes the memory and / or communication interface.

[0025] The communication interface is coupled to the processor and is used for inputting and / or outputting information.

[0026] The memory is used to store computer programs, and the processor is configured to perform a method of any of the above-described designs, which can be implemented as: a method for executing a computer program stored in the memory to perform any of the above-described designs.

[0027] Alternatively, the processor can also be a hardware-implemented circuit, such as an artificial intelligence (AI) processor, to improve operating speed. This application does not limit the specific implementation of the processor.

[0028] In some designs, the communication device can be a complete device or a module within a device, such as a chip.

[0029] Sixthly, the present application provides a computer-readable storage medium including computer instructions that, when executed on a device, cause the device to perform any of the possible designs described above.

[0030] In a seventh aspect, the present application provides a computer program product that, when run on a device, causes the device to execute the method in any possible design of any of the above aspects.

[0031] Eighthly, this application provides a circuit system including a processing circuit configured to perform the methods in any possible design of any of the above aspects. The processing circuit can be implemented as a corresponding circuit component, such as one or more processors. Alternatively, it can be implemented as a processor and a memory. Yet another example is a processor and a transceiver.

[0032] Ninthly, this application provides a chip system including at least one processor and at least one interface circuit, the at least one interface circuit being used to perform transceiver functions and send instructions to at least one processor, and when at least one processor executes instructions, at least one processor performs the method as described in the first aspect and any of the designs therein.

[0033] One of the above technical solutions has the following advantages or beneficial effects: This technical solution uses a multi-dimensional communication score (comprehensive signal quality parameters, call service status parameters, and terminal status parameters) rather than relying on a single signal indicator to determine whether to perform a communication mode switch. This allows for a more accurate assessment of the true quality of the current communication link and avoids erroneous handovers caused by single signal fluctuations. Furthermore, by setting a first, second, and third threshold, the handover process is broken down into three stages: preparation (waking up the Wi-Fi module, scanning and selecting the target access point), pre-connection (establishing a Wi-Fi connection with the target access point), and handover execution (migrating communication service data to the Wi-Fi link and disconnecting the Bluetooth link). This gradual handover mechanism effectively filters out instantaneous signal fluctuations: when the communication score only briefly drops to trigger the preparation or pre-connection stage, a complete handover operation is not immediately executed, thereby reducing the number of invalid handovers and decreasing signaling overhead and device power consumption.

[0034] Furthermore, this application employs a first-in, last-out (LIFO) handover mechanism, meaning that communication service data is successfully transmitted on the target Wi-Fi link and received by the other end before the original Bluetooth link is disconnected. This mechanism ensures uninterrupted communication throughout the handover process, achieving seamless switching from Bluetooth mode to Wi-Fi mode. Simultaneously, this method is compatible with the reverse handover process from Wi-Fi mode back to Bluetooth mode, supporting bidirectional seamless handover, expanding the applicable scenarios for wireless communication terminals, and balancing the needs of both short-range, low-power communication and long-range, high-bandwidth communication.

[0035] This technical solution first establishes a fusion scoring mechanism, which incorporates signal quality parameters, call service status parameters, and terminal status parameters into a unified evaluation system. This ensures that the handover decision is no longer based on a single signal strength at a particular moment, but rather on a comprehensive judgment of the overall quality of the current communication link.

[0036] Since the instantaneous fluctuation of signal strength is much greater than the fluctuation of multi-parameter fusion score, this fusion mechanism naturally has the ability to resist transient environmental interference, reducing the probability of switching processes being triggered by signal spikes from the source of decision-making.

[0037] Building upon this, this solution further decomposes the handover process into three stages, setting a first, second, and third threshold to define the entry conditions for each stage. This progressive structure ensures that each step from preparation to final handover only proceeds when the score continuously decreases to the corresponding threshold. If the score decrease is only a momentary disturbance, the process will only proceed to the preparation or pre-connection stage, without triggering the final link handover. This effectively filters out invalid handovers before final execution, significantly reducing unnecessary signaling interactions and power consumption. When the score continuously deteriorates to the third threshold, it indicates that the Bluetooth link no longer meets the call requirements, at which point this solution executes the final handover operation.

[0038] During the handover process, call data is first transmitted through the established Wi-Fi link. Only after receiving a successful confirmation response from the other end is the original Bluetooth link disconnected. This first-in, last-out (LIFO) sequence ensures that at any given time, at least one available link carries the call data. The disconnection of the original link always occurs after the new link has been confirmed as available, completely eliminating the risk of data interruption within the handover window. For the reverse handover from Wi-Fi back to Bluetooth, this solution employs the same confirmation-before-disconnect logic, ensuring call continuity and integrity during both bidirectional handovers. This allows for adaptive selection of the optimal link under different communication distances and power consumption requirements. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] To gain a more complete understanding of this application and its beneficial effects, the following description will be provided in conjunction with the accompanying drawings, wherein the same reference numerals in the following description denote the same parts.

[0041] Figure 1 , Figure 2 A schematic diagram of a system architecture provided for an exemplary embodiment of this disclosure; Figures 3-5 A flowchart illustrating a wireless communication method provided in an exemplary embodiment of this disclosure; Figures 6-7 A schematic diagram of the architecture of an electronic device provided as an exemplary embodiment of this disclosure; Figure 8 This is a schematic diagram of the architecture of a chip system provided as an exemplary embodiment of this disclosure. Detailed Implementation

[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the protection scope of this application.

[0043] In the embodiments of this application, "at least one" refers to one or more; "multiple" refers to two or more. In the description of this application, the terms "first," "second," "third," etc., are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance, nor should they be construed as indicating or implying order.

[0044] References such as “one embodiment” or “some embodiments” as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the terms “comprising,” “including,” “having,” and variations thereof, as used in this specification, mean “including, but not limited to,” unless otherwise specifically emphasized.

[0045] It should be noted that in the embodiments of this application, "and / or" describes the relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. In addition, the character " / ", unless otherwise specified, generally indicates that the associated objects before and after it are in an "or" relationship.

[0046] It should be noted that in the embodiments of this application, "connection" can be understood as electrical connection. The connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be a direct connection between A and B, or an indirect connection between A and B through one or more other electrical components.

[0047] In wireless communication systems, Bluetooth and Wi-Fi are used. Terminals that switch between Fi dual modes (such as SIP handsets) typically trigger the switch based on a single signal strength threshold, with the terminal independently determining link quality and making the switch decision.

[0048] However, this conventional approach has significant limitations. A single signal strength threshold cannot accurately reflect the true link quality in complex environments. When a terminal moves indoors, factors such as wall penetration attenuation and multipath reflection can easily cause brief signal fluctuations. A handover mechanism based on a single threshold may trigger a handover due to instantaneous deterioration, and then switch back to the original mode after the signal recovers, causing a ping-pong effect. At the same time, if the timing control of establishing a new link and dismantling an old link is not properly managed during the handover transition period, it can easily lead to the loss or interruption of call data.

[0049] In long-term technical practice, those skilled in the art typically regard the handover triggering conditions and the handover execution process as two relatively independent modules. The former is addressed by optimizing threshold algorithms, while the latter is handled by adjusting the handover timing (such as establishing before disconnecting). This inertia leads to handover decisions still relying on a single physical layer indicator, failing to coordinate and optimize link quality assessment, handover timing judgment, and execution timing control at the system level.

[0050] The inventors recognized that during a call, a terminal can simultaneously acquire signal quality parameters, call service status parameters, and its own status parameters. If these parameters can be integrated to comprehensively assess link quality, and the handover process can be decomposed into three stages—preparation, pre-connection, and execution—based on the assessment results, coupled with a first-in-last-out (LIFO) confirmation mechanism, it is hoped that the problems of erroneous handover, handover failure, and call packet loss can be solved simultaneously within a single architecture. This approach requires moving beyond the existing framework of "threshold triggering—immediate handover," treating quality assessment, timing determination, and link migration as an organic whole.

[0051] In wireless communication systems, terminal devices equipped with both Bluetooth and Wi-Fi dual-mode communication capabilities typically trigger link switching based on a single signal strength threshold when making VoIP calls with peer devices. The terminal independently determines the link quality and makes the switching decision. This approach is simple in structure and low in implementation cost, making it a widely adopted standard practice in the industry.

[0052] However, in real-world call scenarios, when users move their devices indoors, factors such as wall attenuation, human body obstruction, and multipath reflection can cause frequent, momentary fluctuations in Bluetooth signal strength. According to the aforementioned handover logic based on a single threshold, a brief deterioration in signal strength can trigger a complete handover process, and after the signal recovers, it may switch back to the original link, causing the link to alternate between Bluetooth and Wi-Fi. This phenomenon is commonly recognized in industry practice as the "ping-pong effect," usually attributed to insufficiently optimized threshold parameter settings. Solutions often focus on adjusting the upper and lower limits of the threshold and increasing the hysteresis range. Simultaneously, during the handover transition period, improper timing control of the establishment of the new link and the dismantling of the old link can lead to brief data interruptions or packet loss. The industry typically attributes this to timing design issues in the handover execution process, with a common approach being to delay the dismantling of the old link after the new link is established.

[0053] In long-term technical practice, the two types of problems mentioned above have been considered to belong to different technical levels—the former falls under the category of link quality assessment and triggering strategies, while the latter falls under the category of handover execution processes and timing control. This division has led researchers and engineers to seek improvements along two relatively independent technical paths: one focuses on optimizing threshold algorithms to suppress false triggers, while the other focuses on adjusting handover timing to reduce data loss. These two paths have evolved independently, but rarely have the comprehensive assessment of link quality, the reasonable determination of handover timing, and the smooth migration of links been considered as a systematic whole.

[0054] The inventors noted that during a call with a peer device, the terminal can simultaneously acquire multi-dimensional information, including signal quality parameters, call service status parameters, and the terminal's own status parameters. In conventional solutions, this information is only used for call quality monitoring or interface display and is not incorporated into the handover decision-making system. Furthermore, there exists a exploitable time window between the initial detection of link quality degradation and the final completion of link migration. If this window can be divided into several stages and implemented as needed, the triggering strategy and execution sequence can be coordinated without excessively increasing implementation complexity.

[0055] In view of this, embodiments of this application provide a wireless communication method and system, which aims to comprehensively evaluate the true quality of the current communication link through a multi-dimensional communication scoring mechanism, and decompose the handover process into three stages: preparation, pre-connection, and handover execution. A first-in-last-out link migration strategy is adopted to achieve Bluetooth and Wi-Fi... Smooth and seamless switching between Fi. The technical solution of this application will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0056] This application provides a wireless communication method applied to a wireless communication system. For example... Figure 1The system may include Voice over Internet Protocol (VOIP) communication equipment and wireless communication terminals.

[0057] The wireless communication terminal can conduct voice communication based on a wireless communication protocol. For example, the wireless communication terminal may include a handset, but this is not limited. The wireless communication terminal may include a Bluetooth module and a Wi-Fi module. In some scenarios, the wireless communication terminal can pair with a VoIP communication device via Bluetooth and establish communication. In some scenarios, such as... Figure 2 Wireless communication terminals can connect to Wi-Fi access points (APs) via Wi-Fi modules to enable communication with VoIP communication devices.

[0058] For example, VoIP communication devices include, but are not limited to, Session Initiation Protocol (SIP) landlines. SIP landlines include, but are not limited to, devices such as SIP phones, Phone apps, and charging docks with built-in modules that enable communication with wireless communication terminals. Phone apps integrate telephone functions (such as making / receiving calls, voicemail, call forwarding, etc.) into the application to achieve a unified communication experience, allowing users to make voice calls directly through clients (PCs, mobile phones, web pages) without the need for a physical telephone.

[0059] VoIP communication devices may include Bluetooth and Wi-Fi modules. In some scenarios, VoIP communication devices can pair with wireless communication terminals via Bluetooth and establish communication. In some scenarios, such as... Figure 2 The Wi-Fi module of a VoIP communication device can connect to a Wi-Fi access point via Ethernet to enable communication with wireless communication terminals.

[0060] Please see Figure 3 , Figure 3 A flowchart illustrating a wireless communication method provided in this application embodiment. This method can be applied to a wireless communication terminal and may include: 101. During Bluetooth communication with a VoIP communication device, obtain the first communication score for the Bluetooth communication.

[0061] The first communication score characterizes the overall quality and urgency of communication with VoIP devices (such as SIP phones) via a Bluetooth link. The wireless communication terminal can determine whether to switch from Bluetooth to Wi-Fi communication based on this first communication score.

[0062] 102. When the first communication score drops to or below the first threshold, perform Wi-Fi preparation operation.

[0063] The preparatory operations include waking up the Wi-Fi module, scanning for available wireless access points, and selecting the target wireless access point from the scanned available wireless access points.

[0064] When the first communication score drops to or below the first threshold, it means that the quality of Bluetooth communication has deteriorated. In order to ensure the communication quality of the wireless communication terminal, the wireless communication terminal can prepare to switch from Bluetooth communication to Wi-Fi communication, i.e., Wi-Fi preparation operation. This preparation operation can also be called pre-connection preparation.

[0065] During the preparatory operation, the wireless communication terminal wakes up the Wi-Fi module and enters a low-power listening mode, but does not initiate a Wi-Fi connection. The wireless communication terminal can also scan for available wireless access points and select a target wireless access point from the scanned available access points.

[0066] As one possible implementation, the wireless communication terminal can also perform channel detection on available wireless access points and select a target access point from among the available wireless access points based on the channel detection results. For example, the access point with the best signal strength can be selected as the target access point.

[0067] 103. When the first communication score drops to the second threshold or below, and the Wi-Fi preparation operation is completed, perform the Wi-Fi pre-connection operation to establish a Wi-Fi connection with the target wireless access point.

[0068] In some embodiments, the second threshold is less than the first threshold. When the first communication score drops to or below the first threshold, the wireless communication terminal performs the preparatory operation. After the preparatory operation is completed, when the first communication score drops to or below a smaller second threshold, the wireless communication terminal performs the pre-connection operation. This implementation is referred to as Mode 1. Mode 1 can also be referred to as the three-stage mode.

[0069] In other embodiments, the second threshold may be equal to the first threshold. The preparation operation and the pre-connection operation may be triggered by the same threshold. That is, the Wi-Fi preparation operation and the Wi-Fi pre-connection operation are combined into a single operation.

[0070] In other words, when the first communication score drops to or below a first threshold, a Wi-Fi preparation operation is performed. When the first communication score drops to or below a second threshold, and the Wi-Fi preparation operation is completed, a Wi-Fi pre-connection operation is performed. This can be implemented as follows: when the first communication score drops to or below the second threshold, the wireless communication terminal performs both the preparation operation and the pre-connection operation. This implementation is called Mode 2. Mode 2 can also be called a two-stage mode.

[0071] In other embodiments, the first communication score can be mapped to a continuous function. The continuous function characterizes the Wi-Fi readiness level. For example, the lower the first communication score, the higher the Wi-Fi readiness level. When the readiness level is in different ranges, the Wi-Fi module performs corresponding levels of operation. For example, when the readiness level is 0%~30%, the Wi-Fi module remains in deep sleep. When the readiness level is 30%~50%, the Wi-Fi module enters a low-power listening mode and periodically scans for access points (APs). When the readiness level is 50%~70%, the Wi-Fi module performs pre-connection but does not send service data. When the readiness level is 70%~100%, the Wi-Fi module enters a fully active state, ready to send and receive service data.

[0072] In other embodiments, the wireless communication terminal periodically (e.g., every 100 milliseconds) samples a first communication score and calculates the decreasing slope of the first communication score, where the slope = (current score - previous score) / sampling interval.

[0073] When the descent slope is negative (the first communication score continues to decrease) and the absolute value exceeds a preset slope threshold (e.g., a decrease of 10 points per second), the terminal starts a timer to estimate the remaining time required to reach the "switch execution point" (e.g., the first communication score drops to 30 points) based on the current first communication score and the descent slope. The remaining time is calculated as: (current first communication score - 30) / |slope|.

[0074] If the estimated remaining time is less than the preset preparation time window, the wireless communication terminal can immediately complete the relevant Wi-Fi preparation work, including waking up the Wi-Fi module, scanning for access points, and authentication, without waiting for the first communication score to drop to various thresholds. After completing the preparation work, the wireless communication terminal does not immediately switch, but waits for the first communication score to actually drop to the switching execution point (e.g., 30 points) before performing the switch.

[0075] If the slope of the first communication score slows down or rebounds during the waiting period, the wireless communication terminal can cancel the completed preparation work. For example, it can control the Wi-Fi module to enter sleep mode to reduce power consumption.

[0076] For example, for some industrial handles that are not sensitive to power consumption but require extremely simple logic, "Merge Mode = On" can be set in their configuration table. When the first communication score drops to 49 points, the handle directly performs pre-operation and pre-connection operations.

[0077] The solutions provided in this application can be flexibly adapted to different application scenarios. For example, in fast-moving scenarios (such as forklift operation), users may enter the Wi-Fi area from the Bluetooth area within seconds. Merging operations can reduce the conversion latency and establish a Wi-Fi connection faster. For portable devices that prioritize extreme power consumption, a three-stage mode can be selected.

[0078] 104. When the first communication score drops to the third threshold or below, and the Wi-Fi pre-connection is successful, perform a switching operation from Bluetooth communication to Wi-Fi communication.

[0079] The third threshold is less than the second threshold.

[0080] Corresponding to Method 1 above: When the first communication score drops to or below a first threshold, the wireless communication terminal performs the preparatory operation. After completing the preparatory operation, when the first communication score drops to or below a smaller second threshold, the wireless communication terminal performs the pre-connection operation. After the pre-connection operation is successful, when the first communication score drops to or below a third threshold, the wireless communication terminal performs a handover operation and sends the call service data via Wi-Fi connection.

[0081] Corresponding to method 2 above: if the first communication score is lower than or equal to the second threshold, the wireless communication terminal completes the preparatory operation and the pre-connection operation. Then, if the first communication score is lower than or equal to the third threshold, the wireless communication terminal performs a handover operation.

[0082] As one possible implementation, the wireless communication terminal can send call data via a Wi-Fi connection. After confirming that the VoIP communication device has received the call data, the Bluetooth link with the VoIP communication device is disconnected or suspended. In this method, after the Wi-Fi connection is successfully established, the Bluetooth link is not immediately disconnected or suspended. Instead, the call data is sent via the Wi-Fi connection first, and the Bluetooth link is disconnected or suspended only after confirming that the other end has received the call data. This switching method can be called a "last-in, first-out" switching method.

[0083] Taking a wireless handset as an example, the handset is connected to a SIP phone via Bluetooth and making voice calls. The processor monitors the Bluetooth link quality in real time and calculates a first communication score. Assume the first threshold is 70 points, the second threshold is 50 points, and the third threshold is 30 points.

[0084] As the user carries the controller from the office to a distant meeting room, the Bluetooth signal gradually weakens, and the first communication score drops to 68 points (below the first threshold of 70 points). In this situation, the controller can wake up the dormant Wi-Fi module, scan for available Wi-Fi access points in the vicinity, and select the target access point.

[0085] Afterward, the user continued to walk away, and the first communication score dropped to 48 points (below the second threshold of 50 points). The controller could then establish a Wi-Fi connection with the previously selected target access point. During this process, the Bluetooth call link remained uninterrupted, and the user was unaware of the interruption.

[0086] Afterwards, the user moved to a more distant corner of the conference room, where the first communication score dropped to 28 points (below the third threshold of 30 points), and the Wi-Fi connection was successfully established.

[0087] In some examples, the handset can send voice packets to a SIP phone via a Wi-Fi link. Once the phone confirms receipt of the voice packet, the handset disconnects the Bluetooth link. The Bluetooth module can then enter standby mode to reduce power consumption.

[0088] In other examples, when the wireless communication terminal determines that it needs to switch from a Bluetooth link to a Wi-Fi link, and the Wi-Fi connection has been successfully established, it does not immediately disconnect the Bluetooth link. Instead, it enters a dual-link concurrent mode (referred to as dual-transmission mode): the wireless communication terminal sends the same call data packet to be sent to the VoIP communication device through both the Bluetooth link and the established Wi-Fi link. After receiving the data packets from both links, the VoIP communication device performs deduplication. After the wireless communication terminal remains in dual-transmission mode for a preset period of time, it confirms that the VoIP communication device has stably received the data packets through the Wi-Fi link. Then, it disconnects the Bluetooth link, exits dual-transmission mode, and communicates with the VoIP communication device through the Wi-Fi link.

[0089] As one possible implementation, the "first-in, last-out" handover method can be replaced by: when the wireless communication terminal determines that it is about to perform a handover from Bluetooth to Wi-Fi, it starts a transmission buffer. The wireless communication terminal writes the call data packets to be sent into the local buffer and then transmits them normally on the Bluetooth link.

[0090] When the first communication score drops to the third threshold, a handover is triggered. The wireless communication terminal immediately disconnects the Bluetooth link and switches to the Wi-Fi link to send data. The VoIP communication device checks the sequence numbers of the received data packets locally. If a missing sequence number is found, it sends a retransmission instruction to the wireless communication terminal, indicating the sequence number of the packet that needs to be retransmitted. The wireless communication terminal can retrieve the corresponding data packet from its local buffer and retransmit it via the Wi-Fi link. If the VoIP communication device does not find any missing data packets, no retransmission is required.

[0091] The solution provided in this application supports switching from Bluetooth (or Bluetooth mode) to Wi-Fi (or Wi-Fi mode) to meet the communication needs of wireless communication terminals in corresponding scenarios. Furthermore, by setting a first threshold, a second threshold, and a third threshold, and by performing preparation, pre-connection, and switching operations in stages, the switching of communication standards can be performed progressively, solving the problem of "false switching" caused by single signal fluctuations. For example, when a user only briefly passes through a signal dead zone, the first communication score may only drop to 65 points. In this case, only the Wi-Fi module is woken up, but no connection is initiated, avoiding frequent establishment and termination of Wi-Fi connections due to brief fluctuations, effectively reducing unnecessary power consumption and signaling overhead. Moreover, the "first-in, last-out" mechanism ensures uninterrupted calls, realizing seamless switching of the wireless communication terminal from Bluetooth mode to Wi-Fi mode during movement.

[0092] Furthermore, this method is compatible with deployment requirements in various scenarios. For example, in small-scale (short-range) scenarios, Bluetooth connectivity can reduce device power consumption while ensuring stability and reliability. In large-scale (long-range) scenarios, long-distance communication and roaming via Wi-Fi connectivity also enable normal use of wireless communication terminals and expand the device's usability. Thus, the deployment of wireless communication terminals becomes more flexible, broadening the range of applicable scenarios.

[0093] In some embodiments, the first communication score is determined by multiple parameters among a first signal quality parameter, a first call service status parameter, and a first terminal status parameter.

[0094] As one possible implementation, the first communication score is obtained by weighted summation of multiple parameters among the first signal quality parameter, the first call service status parameter, and the first terminal status parameter.

[0095] The first signal quality parameter reflects the transmission quality between the wireless communication terminal and the VoIP communication device. This parameter can be used to evaluate the stability, reliability, and coverage of the current communication link.

[0096] For example, the first signal quality parameter includes a first Bluetooth signal quality parameter and / or a first Wi-Fi signal quality parameter. The first Bluetooth signal quality parameter includes at least one of a first Bluetooth signal strength, a Bluetooth link packet loss rate, and a Bluetooth link packet error rate. The first Wi-Fi signal quality parameter includes a first Wi-Fi signal strength.

[0097] The first call service status parameter can be used to distinguish the urgency of switching and the service quality requirements under different business scenarios, so that the switching decision can adapt to business needs.

[0098] For example, the first call service status parameter includes a first call status and / or a first call type. The first call status indicates whether the wireless communication terminal is in a call. The first call type indicates either a voice call or a video call.

[0099] The first terminal status parameter reflects the wireless communication terminal's own resource status, operating mode, and power consumption. This parameter can be used to assess whether the terminal currently has the resource conditions to perform a handover operation, and whether the power consumption impact of the handover is within an acceptable range, thereby avoiding high-risk or high-overhead operations when resources are insufficient.

[0100] For example, the first terminal status parameter includes the first remaining battery power of the wireless communication terminal and / or the first operating state of the Wi-Fi module of the wireless communication terminal. The first operating state indicates a sleep state, a wake-up state, or a connected state.

[0101] Table 1 Connection Parameters

[0102] For example, the controller can collect parameters as shown in Table 1 in real time, assign weights to each parameter according to their importance to the switching decision, and calculate a first communication score using a weighted scoring mechanism. When the first communication score drops to a corresponding threshold, the corresponding operation is triggered.

[0103] As one possible implementation, the wireless communication terminal can dynamically adjust the weights of various parameters. For example, the weights can be dynamically adjusted based on the current call type (voice / video), terminal battery level, and motion state (stationary / moving). For instance, when moving at high speed, the weight of signal strength can be increased, and when the battery is low, the weight of battery power can be increased.

[0104] This example uses the weighted summation algorithm, but other possible fusion algorithms, such as weighted average, fuzzy logic, and decision tree, can also be used without restriction.

[0105] For example, the Bluetooth received signal strength indicator (RSSI) is acceptable, but the packet loss rate is high. The first communication score drops to the first threshold, and the wireless communication terminal can immediately trigger Wi-Fi preparation operation, thereby improving call quality.

[0106] As another example, if the battery is low and the current service is a regular voice call, the first communication score may be high (not dropping to the first threshold), and the wireless communication terminal may delay switching to Wi-Fi connection in order to prioritize battery life.

[0107] The solution provided in this application determines a first communication score through multiple parameters and judges whether to switch to a Wi-Fi connection based on the first communication score. This enables more accurate switching judgment and reduces erroneous switching caused by short-term fluctuations in a single parameter. For example, it reduces erroneous switching in scenarios such as "strong signal but high packet loss rate" or "low battery unsuitable for Wi-Fi".

[0108] Furthermore, the first communication score not only considers the first signal quality parameter, but also the first call service status parameter and the first terminal status parameter, making the handover decision more consistent with the actual service status and equipment status.

[0109] In some embodiments, the Wi-Fi pre-connection preparation operation is performed only when the first communication score remains below a first threshold for a duration exceeding a first preset time; and / or The Wi-Fi pre-connection establishment operation is only performed when the first communication score is below the second threshold for a duration exceeding the second preset time; and / or The switching operation from Bluetooth to Wi-Fi is only performed when the first communication score is below the third threshold for a duration exceeding the third preset duration.

[0110] For example, when a user moves within Bluetooth communication range and passes a metal door, the Bluetooth RSSI momentarily drops from -50dBm to -80dBm, but only lasts for 0.5 seconds. Since the duration below the third threshold is less than 1 second, the handset will not initiate a switch. When the user walks outside the door, the signal recovers, and if the user does indeed continue to move away from the handset, the first communication score drops to 28 points and lasts for 1.2 seconds, triggering a switch to Wi-Fi.

[0111] The solution in this application provides an anti-jitter mechanism by introducing a duration condition. This effectively filters signal spikes caused by human obstruction, transient electromagnetic interference, etc., reduces the repeated "prepare-cancel-prepare" operations of the wireless communication terminal in critical areas, and reduces frequent pre-connection and switching operations caused by brief signal fluctuations. Therefore, it can save power and processing resources and extend device standby time.

[0112] In some embodiments, performing the Wi-Fi pre-connection operation can be implemented by: initiating a Wi-Fi connection with the target wireless access point and completing authentication and key negotiation. If the Wi-Fi connection fails, Bluetooth communication continues, and no handover operation is performed.

[0113] For example, a user moves the controller from area A to area B and attempts to connect to the "Office-5G" hotspot. However, the access point (AP) has changed its password, and the controller's authentication fails. In this situation, the controller will not switch over but will continue the Bluetooth call, allowing the user to continue the call via Bluetooth.

[0114] The solution provided in this application falls back when the pre-connection establishment fails, meaning that the current Bluetooth connection is not interrupted when the Wi-Fi connection fails. This improves the robustness of the communication system and prevents the controller from getting stuck in infinite reconnection due to AP configuration issues, thus draining the battery or causing prolonged call interruptions.

[0115] In some embodiments, sending call service data via the Wi-Fi connection and disconnecting the Bluetooth link with the VoIP communication device after confirming that the VoIP communication device has received the call service data can be implemented as follows: the wireless communication terminal sends call service data packets to the VoIP communication device via the Wi-Fi connection. In response to receiving a success response message from the VoIP communication device, the wireless communication terminal disconnects the Bluetooth link.

[0116] For example, the handset sends data packets to the SIP phone via an established Wi-Fi connection. After receiving the data packets via the Wi-Fi connection, the SIP phone sends back an acknowledgment message (ACK). Upon receiving the ACK, the handset confirms that the SIP phone has received the data packets via the Wi-Fi connection, meaning the Wi-Fi connection is available. In this case, the handset can disconnect the Bluetooth link and communicate with the SIP phone via the Wi-Fi connection.

[0117] Conversely, if the controller does not receive an ACK within 1 second after sending Wi-Fi data, it means that the Wi-Fi connection is unavailable. In this case, the controller will not disconnect the Bluetooth link and will continue to use the Bluetooth link to send data.

[0118] The solution provided in this application confirms that the Wi-Fi connection is available before disconnecting or suspending the Bluetooth link, reducing communication failures caused by a Wi-Fi connection being established but actually unreachable, and lowering the probability of packet loss. Furthermore, it ensures seamless continuity between the two paths as much as possible.

[0119] In some embodiments, the method further includes: after disconnecting the Bluetooth link with the VoIP communication device, controlling the Bluetooth module of the wireless communication terminal to enter a sleep state.

[0120] For example, the handset connects to a phone via Bluetooth for a call inside the office. When the user moves outdoors, the handset switches to a Wi-Fi connection for the call. At this time, the Bluetooth module enters sleep mode, reducing power consumption.

[0121] The solution provided in this application embodiment, after switching to communication via the Wi-Fi module, keeps the Wi-Fi module in working state while the Bluetooth module enters standby mode, which can reduce the power consumption of the Bluetooth module, thereby reducing the power consumption of the entire device and improving the overall battery life.

[0122] In some embodiments, the method may further include: when the wireless communication terminal first performs Bluetooth pairing with the VoIP communication device, completing the binding of the unique device identifier of the wireless communication terminal with the VoIP account of the VoIP communication device, exchanging and storing the other party's public key certificate, and receiving and storing the list of available wireless access points pushed by the VoIP communication device.

[0123] Account binding supports binding one wireless communication terminal to multiple VoIP communication devices, or binding multiple wireless communication terminals to one VoIP communication device. For example, the media access control (MAC) address of the handset can be bound to the SIP account of the phone to form a mapping relationship.

[0124] Certificate Exchange: The wireless communication terminal and the VoIP communication device exchange their respective public key certificates and store them. When switching communication standards later, the VoIP communication device can verify the public key certificate of the wireless communication terminal to authenticate its identity and prevent unauthorized access.

[0125] Access Point List: VoIP communication devices can push information about available Access Points (APs) on their network to wireless communication terminals, which can then save this information. For example, AP information includes: Service Set Identifier (SSID), Basic Service Set Identifier (BSSID), channel, and encryption method.

[0126] In some embodiments, after the wireless communication terminal and the VoIP communication device complete the initial Bluetooth pairing and exchange public key certificates, the two parties can also negotiate to generate a dynamic heartbeat key, which can be periodically updated based on timestamps and counters.

[0127] During Bluetooth communication between a wireless communication terminal and a VoIP communication device, the wireless communication terminal can periodically send dynamic heartbeat keys to the VoIP communication device via Bluetooth connection.

[0128] When a wireless communication terminal switches to Wi-Fi communication, it can periodically send dynamic heartbeat keys to a VoIP communication device via Wi-Fi connection.

[0129] If a VoIP communication device receives a forged Bluetooth connection request from terminal B on the Bluetooth channel (e.g., carrying terminal A's MAC address and public key certificate), the VoIP communication device can determine that terminal B is an illegitimate device since terminal A's Wi-Fi heartbeat is still responding normally.

[0130] When an attacker forges the MAC address or certificate of a legitimate terminal in an attempt to launch a man-in-the-middle attack or illegally access the VoIP system, the solution provided in this application can identify the attacker's attack behavior by detecting the heartbeat of the legitimate terminal, thereby improving communication security.

[0131] In some embodiments, as described above, during the initial Bluetooth pairing, the VoIP communication device pushes a list of available access points (APs) to the wireless communication terminal. Subsequently, when the wireless communication terminal communicates with the VoIP device through the currently connected APs, if the VoIP communication device detects a network topology change, such as the addition of an AP, AP channel adjustment, or AP disconnection, the VoIP communication device can send the changed AP information to the wireless communication terminal in the form of an incremental update packet. After receiving the incremental update packet, the wireless communication terminal updates its locally stored AP list.

[0132] For example, the enterprise IT department deploys a new AP-03, and the landline detects that the AP is online. The landline sends an incremental message to all paired and online handsets via the current Wi-Fi link: "New AP-03, BSSID=xx:xx, Channel=11, Encryption=WPA2". The handsets receive this message and update their local AP list. When a user brings their handset near AP-03, the handset does not need to perform a full channel scan; it can directly probe channel 11, quickly completing the pre-connection.

[0133] Compared to traditional solutions where the AP list is not updated in a timely manner, potentially requiring scanning all channels and resulting in connection failures, the solution provided in this application updates the AP list promptly, helping to shorten handover preparation time and improving the success rate of the first handover after a network change.

[0134] In some embodiments, selecting the target wireless access point from the scanned available wireless access points can be achieved by: calculating the estimated communication score after the handover for each of the scanned wireless access points, and selecting the wireless access point with the highest estimated score as the target wireless access point. This method can be called the optimal selection method.

[0135] For example, the controller scans for AP-A (signal strength -60dBm) and AP-B (signal strength -70dBm). Based on historical information, the controller can estimate the communication score after switching to AP-A and the communication score after switching to AP-B. If AP-A has a higher communication score, then AP-A is selected as the target wireless access point.

[0136] The solution provided in this application selects a target access point by estimating the communication score after handover. Since the communication score considers not only signal quality parameters but also call service status parameters and terminal status parameters, it makes the handover decision more consistent with the actual service and equipment status.

[0137] In some embodiments, there may be multiple target wireless access points, including a primary wireless access point and backup wireless access points. Selecting a target wireless access point from the scanned available wireless access points can be achieved by: establishing a pre-connection with the multiple wireless access points, and switching to the backup wireless access point when the communication quality of the primary wireless access point deteriorates. This method can be referred to as a redundancy method.

[0138] For example, the handle establishes pre-connections with AP-A and AP-B, with one connection being the primary connection. When the communication quality of the primary AP deteriorates, it can quickly switch to the established backup AP.

[0139] As one possible implementation, for mission-critical communications, multiple APs can be pre-connected to provide link redundancy. This allows for rapid switchover to an established redundant AP even if the primary AP fails. This achieves seamless AP-level redundancy, improving handover efficiency.

[0140] For example, mission-critical types include businesses with high reliability requirements, such as emergency command and medical monitoring.

[0141] In some embodiments, the wireless communication terminal may use progressive power supply for the Wi-Fi module.

[0142] As one possible implementation, the power supply status of the Wi-Fi module includes the following levels: Deep sleep mode. For example, in this power supply state, the supply voltage is 0V and the current is <1μA.

[0143] Low-power monitoring. In this power supply mode, only the Wi-Fi module's receiver circuitry is powered. For example, the supply voltage is 1.8V and the current is approximately 5mA.

[0144] Semi-active. In this power supply state, the receiving circuit and part of the transmitting circuit are powered, for example, with a supply voltage of 3.3V and a current of approximately 30mA.

[0145] Fully activated. Powers the entire Wi-Fi module, for example, with a supply voltage of 3.3V and a current >150mA.

[0146] As one possible implementation, when the first communication score drops to a first threshold (e.g., 70 points), the wireless communication terminal switches the Wi-Fi module from deep sleep to a low-power listening power supply state and performs Wi-Fi preparation operations.

[0147] When the first communication score drops to the second threshold (e.g., 50 points), the wireless communication terminal switches to a semi-active power supply state and performs a Wi-Fi pre-connection operation.

[0148] The wireless communication terminal switches to a fully active power supply state to enable data transmission only when the first communication score drops to the third threshold (e.g., 30 points) and a switchover is required.

[0149] The solution provided in this application embodiment can smoothly transition between power supply states by setting multiple power supply levels. Furthermore, it can minimize the overall power consumption of the device.

[0150] This application also provides a wireless communication method applied to a wireless communication terminal. For example... Figure 4 The method may include the following steps: S201. During Wi-Fi communication with a VoIP communication device, obtain a second communication score.

[0151] The second communication score characterizes the overall quality of communication with VoIP devices via Bluetooth and the urgency of switching. The wireless communication terminal can determine whether to switch from Wi-Fi to Bluetooth communication based on this second communication score.

[0152] S202. When the second communication score rises to the fourth threshold or above, wake up the Bluetooth module of the wireless communication terminal and establish a Bluetooth connection with the VoIP communication device.

[0153] When the second communication score rises to the fourth threshold or above, it means that the quality of Bluetooth communication has improved. In order to reduce device power consumption, the wireless communication terminal can wake up the Bluetooth module and attempt to establish a Bluetooth connection with the VoIP communication device through the Bluetooth module.

[0154] S203. After the Bluetooth connection is successfully established, when the second communication score rises to the fifth threshold or above and the duration exceeds the fourth preset duration, the switching operation from Wi-Fi communication to Bluetooth communication is performed.

[0155] The fifth threshold is greater than the fourth threshold. The switching operation includes: sending call data via Bluetooth, and disconnecting the Wi-Fi connection with the VoIP communication device after confirming that the VoIP communication device has received the call data.

[0156] After a Bluetooth connection is successfully established, when the second communication score rises to the fifth threshold or above and lasts for more than the fourth preset duration, it means that the Bluetooth connection is relatively stable. In this case, the wireless communication terminal performs a switch from Wi-Fi to Bluetooth.

[0157] The solution provided in this application can be called a dual-threshold hysteresis solution, which executes the process in stages using a fourth and a fifth threshold. This effectively reduces frequent switching (ping-pong effect) in the critical region, improving the user experience.

[0158] In some embodiments, the second communication score is determined based on multiple parameters among a second signal quality parameter, a second call service status parameter, and a second terminal status parameter.

[0159] For example, the second communication score is obtained by weighted summation of multiple parameters, including the second signal quality parameter, the second call service status parameter, and the second terminal status parameter. Alternatively, algorithms such as weighted averaging or decision trees can be used to calculate the second communication score from multiple parameters.

[0160] In some embodiments, the second signal quality parameter includes a second Bluetooth signal quality parameter and / or a second Wi-Fi signal quality parameter; the second Bluetooth signal quality parameter includes a second Bluetooth signal strength; the second Wi-Fi signal quality parameter includes at least one of a second Wi-Fi signal strength, a Wi-Fi link packet loss rate, and a Wi-Fi link packet error rate.

[0161] The second call service status parameter includes a second call status and / or a second call type. The second call status indicates whether the wireless communication terminal is in a call, and the second call type indicates a voice call or a video call.

[0162] The second terminal status parameter includes the second remaining battery power of the wireless communication terminal and / or the second operating state of the Bluetooth module of the wireless communication terminal, the second operating state including sleep state, wake-up state or connected state.

[0163] In scenarios involving a switch from Bluetooth to Wi-Fi, the primary focus of the second Bluetooth signal quality parameters is on the signal strength, without considering parameters such as packet loss rate and packet error rate, as Bluetooth is about to become the primary link. Conversely, the secondary Wi-Fi signal quality parameters focus on the signal strength, packet loss rate, and packet error rate to assess the degree of degradation of the current Wi-Fi link. Therefore, the wireless communication terminal can fuse multiple parameters from multiple dimensions to comprehensively and accurately determine whether to perform a switchover.

[0164] In some embodiments, after performing the switching operation from Wi-Fi to Bluetooth, the method further includes: controlling the Wi-Fi module of the wireless communication terminal to enter a sleep state, while keeping the Bluetooth module operational. This reduces the overall power consumption of the device.

[0165] This application also provides a wireless communication system, including a wireless communication terminal, a VoIP communication device, and a wireless access point.

[0166] The wireless communication terminal includes a Bluetooth communication module, a Wi-Fi module, and a processor, wherein the processor is used to execute the method as designed in any of the present disclosures.

[0167] The VoIP communication device includes a Bluetooth communication module and a network communication module, used for Bluetooth communication with the wireless communication terminal or Wi-Fi communication with the wireless communication terminal via a network.

[0168] The wireless access point is used to forward data between the wireless communication terminal and the VoIP communication device during Wi-Fi communication between the wireless communication terminal and the VoIP communication device.

[0169] Taking the VoIP communication device as a SIP landline and the wireless communication terminal as a handset as an example, Figure 5 An example of the connection mode switching process is shown.

[0170] After the SIP base station is powered on and initialized, when the distance between the SIP base station and the gamepad is within Bluetooth communication range, the SIP base station and the gamepad establish a connection and begin Bluetooth communication. The gamepad can detect the Bluetooth connection quality. For example, it can determine the Bluetooth connection quality by calculating a first communication score.

[0171] Next, the controller is moved away from the SIP dock. If the controller detects poor Bluetooth connection quality (e.g., the first communication score drops to the first threshold), it activates the Wi-Fi module. Then, it connects to the access point via the Wi-Fi module, switches to Wi-Fi mode, and establishes communication with the SIP dock through Wi-Fi.

[0172] Next, the controller is brought close to the SIP dock. Due to the proximity, the controller detects that the Bluetooth connection quality has been restored (e.g., the second communication score rises to the fourth threshold), and triggers the establishment of a Bluetooth connection. Once the Bluetooth connection is stable, the controller can switch to communicating with the SIP dock via Bluetooth. Furthermore, the controller can control the Wi-Fi module to enter sleep mode to reduce overall power consumption.

[0173] The above primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Based on the units and algorithm steps of the various examples described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by a computer driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solutions of the embodiments of this application.

[0174] This application embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional module. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0175] For example, Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.

[0176] like Figure 6 As shown, the electronic device 500 may include a processor 510. Optionally, the electronic device may also include a memory 520 and a display screen 530, etc.

[0177] Processor 510 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0178] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0179] The processor 510 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 510 is a cache memory. This memory can store instructions or data that the processor 510 has just used or that are used repeatedly. If the processor 510 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 510, and thus improves the efficiency of the system.

[0180] In some embodiments, the processor 510 may include one or more interfaces. These one or more interfaces can be used to connect the processor 510 to the memory 520, the display 530, and the like.

[0181] The memory 520 can be used to store computer executable program code, which includes instructions. The memory 520 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as image playback), etc. The data storage area may store data created during the use of the electronic device 500, etc. The processor 510 executes various functional applications and data processing of the electronic device 500 by running instructions stored in the memory 520 and / or instructions stored in memory located within the processor.

[0182] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include... Figure 6 The diagram shows more or fewer components, or combinations of components, or separate components, or different arrangements of components. The components shown can be implemented in hardware, software, or a combination of both.

[0183] like Figure 7 The diagram shown is a structural schematic of an electronic device provided in an embodiment of this application. This electronic device 2200 can be used to implement the methods described in the above method embodiments. For example, the electronic device 2200 may specifically include a processing unit 2201. The processing unit 2201 is used to support the electronic device 2200 in performing operations. Figures 1 to 6 The processing function described in any one of the following.

[0184] Optional, Figure 7 The electronic device 2200 shown may also include a communication unit ( Figure 7 (Not shown in the image), this communication unit is used to support electronic device 2200 in performing the steps of communication between electronic device and other electronic devices in the embodiments of this application.

[0185] Optional, Figure 7 The illustrated electronic device 2200 may further include a storage unit 2203 that stores programs or instructions. When the processing unit 2201 executes the program or instructions, it causes... Figure 7 The electronic device 2200 shown can perform the method described in the above-described method embodiments.

[0186] Figure 7 The technical effects of the electronic device 2200 shown can be referred to the technical effects of the method shown in the above method embodiments, and will not be repeated here. Figure 7The processing unit 2201 involved in the illustrated electronic device 2200 can be implemented by a processor or processor-related circuit components, and can be a processor or a processing module. The communication unit can be implemented by a transceiver or transceiver-related circuit components, and can be a transceiver or a transceiver module.

[0187] This application also provides a chip system, such as... Figure 8 As shown, the chip system includes at least one processor 2301 and at least one interface circuit 2302. The processor 2301 and the interface circuit 2302 are interconnected via lines. For example, the interface circuit 2302 can be used to receive signals from other devices. As another example, the interface circuit 2302 can be used to send signals to other devices (e.g., the processor 2301). Exemplarily, the interface circuit 2302 can read instructions stored in memory and send those instructions to the processor 2301. When the instructions are executed by the processor 2301, the electronic device can perform the various steps performed by the electronic device in the above embodiments. Of course, the chip system may also include other discrete devices, and this application embodiment does not specifically limit this.

[0188] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0189] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.

[0190] For example, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0191] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.

[0192] It should be noted that the electronic device provided in this application embodiment belongs to the same concept as the method in the above embodiment. Any of the methods provided in the method embodiment can be run on the electronic device. For details of the specific implementation process, please refer to the method embodiment, which will not be repeated here. The embodiments, implementation methods and related technical features of this application can be combined and substituted with each other without conflict.

[0193] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the methods described in any of the above embodiments.

[0194] In the embodiments of this application, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0195] It should be noted that, for the methods of the embodiments of this application, those skilled in the art will understand that all or part of the processes of the methods of the embodiments of this application can be implemented by a computer program controlling related hardware. This computer program can be stored in a computer-readable storage medium, such as in the memory of an electronic device, and executed by at least one processor within the electronic device. During execution, it can include the processes of the embodiments of the method. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, etc.

[0196] It should be noted that, in the data processing stage, the technical solution of this application has strictly limited the scope of data collection to the minimum necessary to achieve the technical objectives, preventing the acquisition of irrelevant information. For any user information to be collected, the data subject will be clearly informed and their consent obtained. Furthermore, technologies such as encrypted storage and access control are employed to strengthen data security and ensure the security and compliance of the entire data processing process. The technical model and decision-making mechanism are based on objective technical parameters and do not introduce unnecessary parameters such as gender or age that may lead to discrimination, resolutely eliminating algorithmic discrimination and upholding public order and good morals. In addition, the specification fully describes the technical implementation methods, application scenarios, and compliance protection details. The claims are consistent with the content of the specification, key compliance designs are clear and verifiable, and the overall technical design is guided by the protection of public interests and adherence to social ethics, without any circumstances that harm public interests or violate public order and good morals.

[0197] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0198] The above are merely preferred embodiments of this application and are not intended to limit this application in any way. Although this application has disclosed preferred embodiments as above, it is not intended to limit this application. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the technical solution of this application. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of this application without departing from the scope of the technical solution of this application shall still fall within the scope of the technical solution of this application.

Claims

1. A wireless communication method, characterized in that, Applied to wireless communication terminals, the method includes: During Bluetooth communication with a VoIP communication device, obtain the first communication score of the Bluetooth communication; When the first communication score drops to or below the first threshold, a Wi-Fi preparation operation is performed, which includes waking up the Wi-Fi module, scanning for available wireless access points, and selecting a target wireless access point from the scanned available wireless access points. When the first communication score drops to or below the second threshold and the Wi-Fi preparation operation is completed, a Wi-Fi pre-connection operation is performed to establish a Wi-Fi connection with the target wireless access point; wherein the second threshold is less than the first threshold; When the first communication score drops to the third threshold or below and the Wi-Fi pre-connection is successful, a switching operation from Bluetooth communication to Wi-Fi communication is performed, the call service data is sent through the Wi-Fi connection, and after confirming that the VoIP communication device has received the call service data, the Bluetooth link with the VoIP communication device is disconnected or suspended; wherein, the third threshold is less than the second threshold.

2. The method according to claim 1, characterized in that, The first communication score is obtained by weighted summation of multiple parameters among the first signal quality parameter, the first call service status parameter, and the first terminal status parameter.

3. The method according to claim 2, characterized in that, The first signal quality parameter includes a first Bluetooth signal quality parameter and / or a first Wi-Fi signal quality parameter; the first Bluetooth signal quality parameter includes at least one of a first Bluetooth signal strength, a Bluetooth link packet loss rate, and a Bluetooth link packet error rate; the first Wi-Fi signal quality parameter includes a first Wi-Fi signal strength; The first call service status parameter includes a first call status and / or a first call type; wherein, the first call status indicates whether the wireless communication terminal is in a call, and the first call type indicates a voice call type or a video call type; The first terminal status parameters include the first remaining battery power of the wireless communication terminal and / or the first operating state of the Wi-Fi communication module of the wireless communication terminal; wherein, the first operating state indicates a sleep state, a wake-up state, or a connected state.

4. The method according to claim 1, characterized in that, The Wi-Fi pre-connection preparation operation is only performed when the first communication score remains below the first threshold for a duration exceeding a first preset time; and / or The Wi-Fi pre-connection establishment operation is only performed when the first communication score is below the second threshold for a duration exceeding the second preset time; and / or The switching operation from Bluetooth to Wi-Fi is only performed when the first communication score is below the third threshold for a duration exceeding the third preset duration.

5. The method according to claim 1, characterized in that, The Wi-Fi pre-connection operation includes: initiating a Wi-Fi connection with the target wireless access point, completing authentication and key negotiation; if the Wi-Fi connection fails, Bluetooth communication is maintained and no handover operation is performed.

6. The method according to claim 1, characterized in that, The step of sending call service data via the Wi-Fi connection and disconnecting the Bluetooth link with the VoIP communication device after confirming that the VoIP communication device has received the call service data includes: Send call service data packets to the VoIP communication device via the Wi-Fi connection; In response to receiving a successful response message from the VoIP communication device, the Bluetooth link is disconnected.

7. The method according to claim 1, characterized in that, The method further includes: after disconnecting the Bluetooth link with the VoIP communication device, controlling the Bluetooth module of the wireless communication terminal to enter a sleep state.

8. The method according to claim 1, characterized in that, The method further includes: when pairing with the VoIP communication device for the first time via Bluetooth, binding the unique device identifier of the wireless communication terminal with the VoIP account of the VoIP communication device, exchanging and storing the other party's public key certificate, and receiving and storing the list of available wireless access points pushed by the VoIP communication device.

9. The method according to claim 1, characterized in that, The second threshold is less than the first threshold; Alternatively, the Wi-Fi preparation operation and the Wi-Fi pre-connection operation may be combined into a single operation; when the first communication score drops to or below the second threshold, the single operation completes all aspects of the Wi-Fi preparation and pre-connection.

10. The method according to claim 1, characterized in that, The process of selecting a target wireless access point from the scanned available wireless access points includes: Calculate the estimated communication score after the handover for each of the multiple wireless access points detected, and select the wireless access point with the highest estimated score as the target wireless access point. Alternatively, pre-connections can be established with multiple wireless access points, switching to backup wireless access points when the communication quality of the primary wireless access point deteriorates.

11. A wireless communication method, characterized in that, Applied to wireless communication terminals, the method includes: A second communication score is obtained during Wi-Fi communication with a VoIP communication device; When the second communication score rises to the fourth threshold or above, the Bluetooth module of the wireless communication terminal is activated and a Bluetooth connection is established with the VoIP communication device; After the Bluetooth connection is successfully established, when the second communication score rises to the fifth threshold or above and the duration exceeds the fourth preset duration, a switching operation from Wi-Fi communication to Bluetooth communication is performed, wherein the fifth threshold is greater than the fourth threshold. The switching operation includes: sending call service data through the Bluetooth connection, and disconnecting the Wi-Fi connection with the VoIP communication device after confirming that the VoIP communication device has received the call service data.

12. The method according to claim 11, characterized in that, The second communication score is obtained by weighted summation of multiple parameters among the second signal quality parameter, the second call service status parameter, and the second terminal status parameter.

13. The method according to claim 12, characterized in that, The second signal quality parameter includes a second Bluetooth signal quality parameter and / or a second Wi-Fi signal quality parameter; the second Bluetooth signal quality parameter includes a second Bluetooth signal strength; the second Wi-Fi signal quality parameter includes at least one of a second Wi-Fi signal strength, a Wi-Fi link packet loss rate, and a Wi-Fi link packet error rate. The second call service status parameter includes a second call status and / or a second call type. The second call status indicates whether the wireless communication terminal is in a call, and the second call type indicates a voice call or a video call. The second terminal status parameter includes the second remaining battery power of the wireless communication terminal and / or the second operating state of the Bluetooth module of the wireless communication terminal, the second operating state including sleep state, wake-up state or connected state.

14. The method according to claim 11, characterized in that, After performing the switching operation from Wi-Fi to Bluetooth, the method further includes: controlling the Wi-Fi module of the wireless communication terminal to enter a sleep state.

15. A wireless communication system, characterized in that, This includes wireless communication terminals, VoIP communication equipment, and wireless access points; The wireless communication terminal includes a Bluetooth communication module, a Wi-Fi communication module, and a processor, wherein the processor is used to execute the method as described in any one of claims 1 to 14; The VoIP communication device includes a Bluetooth communication module and a network communication module, used for Bluetooth communication with the wireless communication terminal or Wi-Fi communication with the wireless communication terminal via a network; The wireless access point is used to forward data between the wireless communication terminal and the VoIP communication device during Wi-Fi communication between the wireless communication terminal and the VoIP communication device.