Communication method and device, electronic equipment and readable storage medium

By establishing a second communication link between electronic devices, the problem of communication interruption outside the cellular network is solved, and the effect of maintaining communication stability in a cellular network environment is achieved.

CN119676869APending Publication Date: 2025-03-21VIVO MOBILE COMM CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411893280.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

When communicating through a cellular communication link, if the electronic device is in an environment without a cellular network, communication will be interrupted, resulting in the communication not being able to proceed normally, which will lead to low communication stability between the electronic devices.

Method used

In the case where a voice call is made between the first electronic device and the second electronic device through a first communication link, the first electronic device acquires the first information, including network status information, environmental information, and motion status. Based on these information, the first electronic device establishes a second communication link with the second electronic device, and then performs voice calls through the second communication link or simultaneously using the first communication link and the second communication link.

Benefits of technology

By establishing the second communication link in advance, the first electronic device can switch to the second communication link when an abnormality occurs in the first communication link, ensuring that communication is not interrupted. At the same time, using two links for parallel transmission can ensure that a relatively complete voice packet is received when any link fails, reducing lag, and improving the stability of communication between electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676869A_ABST
    Figure CN119676869A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method and device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: under the condition that a voice call is carried out between first electronic equipment and second electronic equipment through a first communication link, the first electronic equipment acquires first information, the first information comprises at least one of the following items: network state information of the first electronic equipment, environment information of an environment where the first electronic equipment is located, and a motion state of the first electronic equipment; the first electronic equipment establishes a second communication link with the second electronic equipment based on the first information; and the first electronic equipment performs voice communication with the second electronic equipment through the second communication link or the first communication link and the second communication link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a communication method, device, electronic device and readable storage medium. Background Art

[0002] With the progress and development in the field of electronic equipment technology, users can make calls through the communication link established between electronic devices. Among them, electronic devices can establish communication links between different electronic devices through two communication technologies, namely cellular communication technology and Bluetooth wireless communication technology.

[0003] Usually, within the coverage of the operator's base station, the electronic device uses the cellular communication technology to establish a cellular communication link. In the absence of a network, that is, outside the coverage of the operator's base station, the electronic device uses the Bluetooth wireless communication technology to establish a Bluetooth communication link to make calls.

[0004] However, when communicating via a cellular communication link, if the electronic device is in an environment without a cellular network, the communication will be interrupted, making it impossible to communicate normally, resulting in low communication stability between the electronic devices. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a communication method, device, electronic device and readable storage medium, which can improve the communication stability between electronic devices.

[0006] In a first aspect, an embodiment of the present application provides a communication method, which includes: when a voice call is conducted between a first electronic device and a second electronic device via a first communication link, the first electronic device obtains first information, the first information including at least one of the following: network status information of the first electronic device, environmental information of the environment in which the first electronic device is located, and a motion status of the first electronic device; based on the first information, the first electronic device establishes a second communication link with the second electronic device; the first electronic device conducts a voice call with the second electronic device via the second communication link, or the first communication link and the second communication link.

[0007] In a second aspect, an embodiment of the present application provides a communication device, which includes: an acquisition module, an establishment module and a communication module; the acquisition module is used to acquire first information when a voice call is conducted between a first electronic device and a second electronic device via a first communication link, the first information including at least one of the following: network status information of the first electronic device, environmental information of the environment in which the first electronic device is located, and the motion status of the first electronic device; the establishment module is used to establish a second communication link with the second electronic device based on the first information; the communication module is used to conduct a voice call with the second electronic device via the second communication link, or the first communication link and the second communication link.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, when a voice call is made between a first electronic device and a second electronic device via a first communication link, the first electronic device obtains first information, and the first information includes at least one of the following: network status information of the first electronic device, environmental information of the environment in which the first electronic device is located, and the motion status of the first electronic device; the first electronic device establishes a second communication link with the second electronic device based on the first information; the first electronic device makes a voice call with the second electronic device via the second communication link, or the first communication link and the second communication link. In this solution, the first electronic device can establish a second communication link based on the first information. On the one hand, in the event of an abnormality in the first communication link, the first electronic device can use the second communication link to communicate, thereby ensuring that the communication is not interrupted. On the other hand, the first electronic device can use the first communication link and the second communication link to communicate at the same time, thereby ensuring that no matter which communication link fails, the second electronic device can receive a relatively complete voice data packet. In this way, the jamming during the communication process can be reduced and the stability of communication between electronic devices can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a flow chart of a communication method provided in an embodiment of the present application;

[0014] Figure 2 It is a flow chart of a communication method provided in an embodiment of the present application;

[0015] Figure 3It is a flow chart of a communication method provided in an embodiment of the present application;

[0016] Figure 4 This is an example diagram of parallel transmission of voice data packets between electronic devices provided by an embodiment of the present application;

[0017] Figure 5 It is a flow chart of a communication method provided in an embodiment of the present application;

[0018] Figure 6 This is an example diagram of a first electronic device establishing a communication link based on network status information provided by an embodiment of the present application;

[0019] Figure 7 It is a flow chart of a communication method provided in an embodiment of the present application;

[0020] Figure 8 This is an example diagram of a first electronic device establishing a communication link based on a special scenario provided by an embodiment of the present application;

[0021] Fig. 9 is a structural diagram of a communication device provided in an embodiment of the present application;

[0022] Fig.10 is a structural diagram of a communication device provided in an embodiment of the present application;

[0023] Fig.11 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0024] Fig.12 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0026] Some terms and nouns involved in the embodiments of the present application are explained below.

[0027] Cellular communication technology refers to communication technology based on mobile communication networks, such as 4G and 5G, which provides users with global wireless communication services through base stations.

[0028] Bluetooth wireless communication technology refers to short-range wireless communication technology that does not rely on operator base stations. It uses Bluetooth point-to-point connections for data transmission and voice intercom. The communication distance is limited, generally 200-300 meters. Based on Bluetooth 5.0 technology, Bluetooth wireless communication can be extended to the kilometer level.

[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0031] The logo in this application refers to text, symbols, images, etc. used to indicate information. Logos or other containers can be used as carriers to display information, including but not limited to text logos, image logos, symbol logos, etc.

[0032] It should be noted that the communication method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the communication method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the communication method as an example.

[0033] At present, electronic devices usually support cellular network voice intercom and also support offline voice intercom via Bluetooth. In outdoor travel, disaster and other scenarios, you can choose to use cellular or Bluetooth to communicate with surrounding devices based on the current network environment. However, cellular network communication and Bluetooth offline communication are often independent of each other and cannot be switched seamlessly. For example, when user A and user B are traveling in the wild and are communicating with each other via cellular, if they walk into an environment without cellular network, the voice intercom will be interrupted and they need to manually re-establish the voice intercom link via Bluetooth.

[0034] The communication method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0035] The embodiments of the present application can be applied to scenarios where users communicate with each other. Through the embodiments of the present application, when the first electronic device uses the first communication link to communicate, the first electronic device can determine to establish a second communication link through the first information obtained, and then use the second communication link, or the first communication link and the second communication link to make a voice call according to different scenarios.

[0036] The communication method provided in the embodiments of the present application is exemplarily described below using some specific scenarios as examples.

[0037] Scenario 1: User A and user B are having a voice call in the wild.

[0038] When user A and user B are traveling outdoors, they first use the cellular communication link, i.e., the first communication link, to make a voice call and obtain the first information. The first electronic device establishes a Bluetooth communication link in advance based on the first information, i.e., the second Bluetooth communication link. Then, if user A walks into an environment without a cellular network, the first electronic device automatically switches to the Bluetooth communication link for voice communication.

[0039] Scenario 2: User A and user B have voice communication in a high-speed sports scenario.

[0040] When user A is in a high-speed sports scene and the first electronic device has established a cellular communication link, that is, the first communication link is used for voice calls, the first information is obtained. Then, the first electronic device establishes a Bluetooth communication link in advance according to the first information, that is, the second Bluetooth communication link. At this time, the first electronic device can use the Bluetooth communication link and the cellular communication link for voice communication at the same time, so that the first electronic device can transmit the voice data packet to the second electronic device as completely as possible.

[0041] It should be noted that the above-mentioned scenarios 1 and 2 are merely illustrative examples of some scenarios in which the embodiments of the present application may be applied. In actual implementation, the embodiments of the present application can also be applied to any more possible scenarios, and the embodiments of the present application are not limited here.

[0042] Based on the above-mentioned scenarios applied in the embodiments of the present application, the communication method provided in the embodiments of the present application, the first electronic device can establish a second communication link based on the first information. On the one hand, when an abnormality occurs in the first communication link, the first electronic device can use the second communication link to communicate, thereby ensuring that the communication is not interrupted. On the other hand, the first electronic device can use the first communication link and the second communication link to communicate at the same time, thereby ensuring that no matter which communication link fails, the second electronic device can receive a relatively complete voice data packet. In this way, the jamming during the communication process can be reduced and the stability of communication between electronic devices can be improved.

[0043] The execution subject of the communication method provided in the embodiment of the present application may be a communication device. Exemplarily, the communication device may be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The communication method provided in the embodiment of the present application will be exemplarily described below using an electronic device as an example.

[0044] The present application provides a communication method. Figure 1 FIG. 1 is a flow chart of a communication method provided by an embodiment of the present application, which can be applied to a first electronic device. Figure 1 As shown, the communication method provided in the embodiment of the present application may include the following steps 201 to 203.

[0045] Step 201: When a first electronic device and a second electronic device have a voice call via a first communication link, the first electronic device obtains first information.

[0046] In some embodiments of the present application, the first communication link is a cellular network communication link or a Bluetooth communication link.

[0047] In some embodiments of the present application, the first information includes at least one of the following: network status information of the first electronic device, environmental information of the environment in which the first electronic device is located, and motion status of the first electronic device.

[0048] Exemplarily, the network status information of the first electronic device may be understood as the network signal status of the network environment in which the first electronic device is currently located.

[0049] Exemplarily, exemplary, the network status information of the first electronic device includes at least one of the following: cellular network status information, Bluetooth network status information.

[0050] Exemplarily, the above-mentioned cellular network status information includes at least one of the following: a cellular network signal strength value, and base station information of a cellular network connection base station.

[0051] Exemplarily, the above-mentioned Bluetooth network status information includes at least one of the following: Bluetooth signal strength value, Bluetooth address, and device information of the Bluetooth device.

[0052] In some embodiments of the present application, the first electronic device can obtain environmental information of the environment in which the first electronic device is located and the motion status of the first electronic device by analyzing the current global positioning system (GPS) position change information, map information, or altitude information of the first electronic device.

[0053] In some embodiments of the present application, the first electronic device can analyze the received voice data packet sent by the second electronic device and obtain the current network status information of the first communication link when using the first communication link for voice communication.

[0054] Step 202: The first electronic device establishes a second communication link with the second electronic device based on the first information.

[0055] In some embodiments of the present application, the second communication link is a communication link established using a communication technology different from that of the first communication link.

[0056] Exemplarily, when the first communication link is a cellular network communication link, the second communication link is a Bluetooth communication link; when the first communication link is a Bluetooth communication link, the second communication link is a cellular network communication link.

[0057] In some embodiments of the present application, the first electronic device determines the transmission status of the first communication link by analyzing the first information, and establishes a second communication link with the second electronic device when the transmission status of the first communication link is poor.

[0058] Exemplarily, the poor transmission status of the first communication link may be characterized by poor network signal, high packet loss rate during voice data packet transmission, and the like.

[0059] Exemplarily, in the case where the above-mentioned second communication link is a Bluetooth communication link, the process of establishing the communication link is: the first electronic device verifies the Bluetooth media access control address (Media Access Control, MAC) of the second electronic device to see whether it matches the stored Bluetooth MAC address. After the verification is passed, the first electronic device initiates a request to the second electronic device to establish a Bluetooth low energy technology (Bluetooh Low Energy, BLE) long-distance (coded phy) link connection. After the request is passed, a Bluetooth BLE coded phy communication link is established, that is, the above-mentioned second communication link.

[0060] It should be noted that Bluetooth BLE coded phy means that the Bluetooth physical layer coding selects S=8, which improves the sensitivity of Bluetooth signals. Compared with the traditional BLE connection distance, the theoretical distance is increased to about 4 times, and the connection range can reach about 1km in an open scene.

[0061] Step 203: The first electronic device has a voice call with the second electronic device via the second communication link, or the first communication link and the second communication link.

[0062] In a possible embodiment, after the first electronic device establishes the second communication link, if an abnormality occurs in the voice communication environment of the first communication link, the first electronic device switches from the first communication link to the second communication link for voice communication.

[0063] Exemplarily, the abnormality in the above communication environment can be understood as a poor current network environment, a high voice data packet loss rate, and the like.

[0064] In another possible embodiment, after establishing the second communication link, the first electronic device uses the first communication link and the second communication link to transmit voice data packets in parallel.

[0065] A first possible implementation example: the first electronic device has a voice call with the second electronic device via the second communication link.

[0066] Optionally, in some embodiments of the present application, combined with Figure 1 ,like Figure 2 As shown, the above step 203 can be specifically implemented through the following step 203a.

[0067] Step 203a: When an abnormality occurs in the voice call over the first communication link, the first electronic device conducts a voice call with the second electronic device over the second communication link.

[0068] In some embodiments of the present application, the above-mentioned voice call abnormality includes a voice data packet loss rate being greater than or equal to a preset threshold.

[0069] In some embodiments of the present application, the preset threshold value may be a default setting of the electronic device or may be user-defined.

[0070] Exemplarily, the first electronic device detects the queue number information of the received voice data packet. For example, the voice data packets sent by the second electronic device are voice data packets 1 to voice data packets 10, and the first electronic device only receives voice data packets 5, voice data packets 7, and voice data packets 10. Then the first electronic device determines that there is a voice data packet loss phenomenon, and further calculates that the packet loss rate at this time has reached the preset threshold. Therefore, the first electronic device believes that the current voice call is abnormal and needs to use the second communication link for communication.

[0071] In this way, after the first electronic device establishes the second communication link in advance according to the first information, in the event of a voice call abnormality, it can quickly switch to the established second communication link and continue to transmit subsequent voice data packets according to the most recent data sequence number, thereby avoiding jamming in the voice intercom between the two parties.

[0072] A second possible implementation example: The first electronic device has a voice call with the second electronic device through the first communication link and the second communication link.

[0073] Optionally, in some embodiments of the present application, combined with Figure 1 ,like Figure 3 As shown, the above step 203 can be specifically implemented through the following steps 203b and 203c.

[0074] Step 203b: The first electronic device serially numbers at least one voice data packet.

[0075] In some embodiments of the present application, the at least one voice data packet is a data packet of voice data input by a user.

[0076] Exemplarily, the first electronic device receives voice data input by a user through a microphone, then divides the voice data into at least one voice data packet, and arranges and numbers the at least one voice data packet according to the voice sequence.

[0077] For example, the user inputs the voice data "You walk north for 200 meters, and then walk east for 50 meters", the first electronic device can divide it into voice data packets 1 to 5, where voice data packet 1 is "You walk north", voice data packet 2 is "200 meters", voice data packet 3 is "and then", voice data packet 4 is "walk east", and voice data packet 5 is "50 meters".

[0078] Step 203c: The first electronic device transmits at least one voice data packet to the second electronic device in parallel through the first communication link and the second communication link according to the number of the at least one voice data packet.

[0079] In some embodiments of the present application, the first electronic device transmits at least one voice data packet to the second electronic device in parallel via the first communication link and the second communication link.

[0080] For example, the voice data packets to be sent are voice data packet 1 to voice data packet 5, and the first electronic device transmits voice data packet 1 to voice data packet 5 through the first communication link, and transmits voice data packet 1 to voice data packet 5 through the second communication link.

[0081] In some embodiments of the present application, the first electronic device can transmit at least one voice data packet in parallel to the second electronic device through the first communication link and the second communication link, and can also receive at least one voice data packet from the second electronic device through the first communication link and the second communication link.

[0082] In some embodiments of the present application, the first electronic device filters and aggregates all at least one voice data packet received according to the sequence number to obtain a complete voice data packet.

[0083] For example, Figure 4 As shown, taking the first communication link as a cellular communication link and the second communication link as a Bluetooth communication link as an example, the first electronic device establishes a cellular communication link with the second electronic device through cellular network technology, and establishes a Bluetooth communication link based on the first information. When the user uses the first electronic device to communicate with the second electronic device by voice, the first electronic device serially numbers the voice data packets and sends the voice data packets to the second electronic device through the cellular communication link and the Bluetooth communication link. When the second electronic device receives the voice data packets sent by the first electronic device, it aggregates and screens all the voice data packets according to the serial numbers to obtain complete voice audio.

[0084] In this way, when voice data packets are transmitted in parallel through two communication links, even if a large number of packets are lost in any one of the communication links, they can be supplemented by voice data packets transmitted by the other communication link, thereby reducing the phenomenon of jamming due to incomplete voice data packets and improving the stability of communication between electronic devices.

[0085] In the communication method provided in the embodiment of the present application, the first electronic device can establish a second communication link based on the first information. On the one hand, when an abnormality occurs in the first communication link, the first electronic device can use the second communication link to communicate, thereby ensuring that the communication is not interrupted. On the other hand, the first electronic device can use the first communication link and the second communication link to communicate at the same time, thereby ensuring that no matter which communication link fails, the second electronic device can receive a relatively complete voice data packet. In this way, the jamming during the communication process can be reduced and the stability of communication between electronic devices can be improved.

[0086] Optionally, in some embodiments of the present application, combined with Figure 1 ,like Figure 5 As shown, when the first information includes the network status information of the first electronic device, the step 202 "the first electronic device establishes a second communication link with the second electronic device based on the first information" can be specifically implemented through the following step 202a.

[0087] Step 202a: When the first electronic device detects that the network status information of the first electronic device meets the first condition, a second communication link is established.

[0088] In some embodiments of the present application, the above-mentioned network status information includes a cellular network signal strength value and a Bluetooth signal strength value.

[0089] In some embodiments of the present application, the first condition includes at least one of the following:

[0090] The cellular network signal strength value is on a downward trend;

[0091] The cellular network signal strength value is less than or equal to the first preset threshold value;

[0092] The Bluetooth signal strength value is on the rise;

[0093] The Bluetooth signal strength value is greater than or equal to the second preset threshold value.

[0094] In some embodiments of the present application, when the first electronic device detects network status information and satisfies at least one of the above-mentioned first conditions, the first electronic device determines that the current first communication link may be abnormal, or the current network environment is suitable for the second communication link. At this time, the first electronic device establishes the second communication link.

[0095] Exemplarily, the cellular network signal strength value presenting a downward trend means that the first electronic device detects a gradually decreasing cellular network signal strength value N times in a row.

[0096] Exemplarily, the upward trend of the Bluetooth signal strength value means that the first electronic device detects a gradually increasing Bluetooth signal strength value N times in a row.

[0097] In some embodiments of the present application, the first preset threshold value is a default setting of the electronic device, or is a user-defined setting.

[0098] Exemplarily, the first preset threshold value may generally be -105dB, -100dB, or -110dB.

[0099] In some embodiments of the present application, the second preset threshold value is a default setting of the electronic device or a user-defined setting.

[0100] Exemplarily, the second preset threshold value may generally be -90dB, -95dB, or -100dB.

[0101] Exemplarily, when the first electronic device uses a cellular communication link for voice communication, it can continuously record the cellular network signal strength value N times. If the current cellular network signal strength value shows a downward trend N times in a row, or the cellular network signal strength value is less than or equal to the first preset threshold value, the first electronic device establishes a Bluetooth communication link.

[0102] Exemplarily, when the first electronic device uses a cellular communication link for voice communication, it can continuously record Bluetooth signal strength values ​​N times. If the current Bluetooth signal strength value shows an upward trend N times in a row, or the Bluetooth signal strength value is greater than or equal to a second preset threshold value, the first electronic device establishes a Bluetooth communication link.

[0103] It can be understood that the network status information of the above-mentioned first electronic device can generally be understood as the network status of the current environment of the first electronic device, for example, the signal quality of the cellular network, the Bluetooth signal quality, etc. When the first electronic device detects that the current network status is not good, a second communication link can be established to switch to the second communication link for voice communication when an abnormality occurs in the voice communication of the first communication link.

[0104] The following is a specific example in which the first communication link is a cellular communication link and the second communication link is a Bluetooth communication link to exemplify the communication method provided in the embodiment of the present application. Figure 6 shown.

[0105] Example 1:

[0106] In the case of a cellular network, the first electronic device uses the cellular network communication technology to establish a cellular communication link by default to perform voice communication between electronic devices. After the voice network intercom is relayed by the server, the first electronic device synchronizes the cellular network status information and Bluetooth status information of both parties at a regular time.

[0107] Among them, the Bluetooth status information includes Bluetooth signal strength indication information (Received Signal Strength Indication, RSSI), such as the Bluetooth signal strength value, and the Bluetooth MAC addresses of the two electronic devices. The two electronic devices will store each other's Bluetooth MAC address locally, and can directly obtain it from the storage space when needed. Cellular status information includes cellular network RSSI, such as the cellular network signal strength value.

[0108] The first electronic device first marks the serial number of each voice data packet according to the voice order, and then transmits the voice data packet to the second electronic device through the cellular communication link. Since the first electronic device can obtain the cellular network status information of both parties at a regular time, it continuously records the cellular network RSSI of both parties for 5 times. If the cellular network RSSI of one party shows a continuous downward trend, or the average RSSI is lower than -105dB, the Bluetooth RSSI of the second electronic device is quickly scanned. If the Bluetooth RSSI>-90db, it can be determined that the second electronic device is within the Bluetooth BLE coded phy communication range.

[0109] At this time, the first electronic device verifies the Bluetooth MAC address of the second electronic device to see if it matches the Bluetooth MAC address stored in the storage space of the first electronic device. After the verification is passed, the first electronic device initiates a Bluetooth BLE coded phy connection request to the second electronic device, or the party whose cellular network RSSI is lower than the first preset threshold value initiates an establishment request, which can be the first electronic device or the second electronic device. After the request is passed, the first electronic device establishes a Bluetooth BLE codedphy communication link. However, at this time, the voice intercom data is still transmitted on the cellular communication link, and the transmission voice data packet queue number information is detected at the same time. If the voice data packet loss rate is greater than 5%, the cellular communication link is disconnected, and the sequence number of the most recent voice data packet is recorded, and the established Bluetooth communication link is quickly switched to continue to transmit subsequent voice data packets according to the most recent data sequence number, thereby avoiding jamming in the voice intercom between the two parties.

[0110] On the contrary, after the voice intercom switches to the Bluetooth communication link, the first electronic device records the cellular RSSI for 5 consecutive times. If the cellular RSSI of both electronic devices shows a continuous upward trend, or the average RSSI is higher than -105dB, a request to switch to establish a cellular communication link is initiated. If the cellular RSSI information is recorded for another 5 times and the status remains unchanged or improves, the cellular communication link is directly switched to transmit voice data packets. Compared with the Bluetooth BLE coded phy low bandwidth (about 5kbps) voice data packet transmission, the voice intercom quality can be improved.

[0111] In this way, the first electronic device can automatically establish and switch the Bluetooth communication link in advance according to the changes in cellular transmission performance, reduce and avoid the duration of voice communication freezes, and improve the stability of voice communication between electronic devices.

[0112] Optionally, in some embodiments of the present application, combined with Figure 1 ,like Figure 7As shown, when the above-mentioned first information includes at least one of the following: environmental information of the environment in which the first electronic device is located and the motion state of the first electronic device, the above-mentioned step 202 "the first electronic device establishes a second communication link with the second electronic device based on the first information" can be specifically implemented through the following step 202b.

[0113] Step 202b: When the first information satisfies the second condition, the first electronic device establishes a second communication link.

[0114] In some embodiments of the present application, the second condition includes at least one of the following:

[0115] The environment information of the environment in which the first electronic device is located is used to indicate that the first electronic device is in a shielding environment;

[0116] The motion state of the first electronic device is a high-speed motion state.

[0117] Exemplarily, the above-mentioned obstructed environment may include a mountain environment, a basement environment, a valley bottom environment, or an area where the cellular network coverage area is obstructed.

[0118] Exemplarily, the first electronic device may obtain the environmental information of the environment in which the first electronic device is located by obtaining the GPS of the current location.

[0119] Exemplarily, the first electronic device can calculate the movement speed of the first electronic device by obtaining GPS change information of the current location, or the first electronic device can obtain the movement speed of the first electronic device through a speed sensor carried by itself to determine whether the movement state of the first electronic device is a high-speed movement state.

[0120] The following is a specific example in which the first communication link is a cellular communication link and the second communication link is a Bluetooth communication link to exemplify the communication method provided in the embodiment of the present application. Figure 8 shown.

[0121] Example 2:

[0122] When driving, or in a mountainous area with severe obstructions or in a basement, the cellular network signal changes too quickly, and it is not suitable to guide the switching of the communication link by continuously detecting the cellular network status information. Therefore, the first electronic device needs to establish a Bluetooth communication link in advance.

[0123] The first electronic device scans the surrounding Bluetooth device information, and then calculates the speed information of the first electronic device according to the GPS position change information, and identifies that the current driving scene is in a state of high-speed movement. Alternatively, the first electronic device obtains the GPS latitude and longitude information of the current location, combines the map data, and the altitude information to identify that the first electronic device is in a mountain scene, that is, the first electronic device is in an obstructed environment.

[0124] Then the first electronic device scans the Bluetooth signal strength value of the other electronic device. If the Bluetooth RSSI>-90db, it can be determined that the other device is within the Bluetooth BLE coded phy communication range, and the Bluetooth BLE coded phy is established, that is, the above-mentioned second communication link. When the packet loss rate of the cellular communication link is greater than 5%, it quickly switches to the established Bluetooth communication link to transmit voice data packets, thereby ensuring that voice communication is not interrupted even in complex scenarios.

[0125] In this way, the first electronic device can establish cellular and Bluetooth dual-link communications in advance according to specific complex scenarios. When the cellular communication link is disconnected, it can quickly switch to the Bluetooth communication link established in advance, thereby ensuring uninterrupted voice communication and improving the stability of voice communication between electronic devices.

[0126] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation method can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0127] The communication method provided in the embodiment of the present application can be executed by an electronic device or a communication device. In the embodiment of the present application, a communication device executing the communication method is taken as an example to illustrate the communication device provided in the embodiment of the present application.

[0128] Fig. 9 A possible structural diagram of a communication device involved in an embodiment of the present application is shown. Fig. 9 As shown, the communication device 700 may include: an acquisition module 701 , an establishment module 702 and a communication module 703 .

[0129] Among them, the above-mentioned acquisition module 701 is used to acquire first information when a voice call is conducted between a first electronic device and a second electronic device through a first communication link, and the first information includes at least one of the following: network status information of the first electronic device, environmental information of the environment in which the first electronic device is located, and the motion status of the first electronic device; the above-mentioned establishment module 702 is used to establish a second communication link with the second electronic device based on the first information obtained by the above-mentioned acquisition module 701; the above-mentioned communication module 703 is used to conduct a voice call with the second electronic device through the second communication link established by the above-mentioned establishment module 702, or the first communication link and the second communication link established by the above-mentioned establishment module 702.

[0130] Optionally, in some embodiments of the present application, the above-mentioned communication module 703 is specifically used to make a voice call with a second electronic device through a second communication link when an abnormality occurs in the voice call through the first communication link; wherein the abnormality in the voice call includes a voice data packet loss rate greater than or equal to a preset threshold.

[0131] Optionally, in some embodiments of the present application, combined with Fig. 9 ,like Fig.10 As shown, the above-mentioned device 700 also includes: a processing module 704; the processing module 704 is used to serially number at least one voice data packet; the above-mentioned communication module 703 is specifically used to transmit at least one voice data packet in parallel to the second electronic device through the first communication link and the second communication link according to the number of at least one voice data packet.

[0132] Optionally, in some embodiments of the present application, the first information includes network status information of the first electronic device; the establishment module 702 is specifically configured to establish a second communication link when the first electronic device detects that the network status information of the first electronic device meets the first condition, and the network status information includes a cellular network signal strength value and a Bluetooth signal strength value;

[0133] The first condition includes at least one of the following:

[0134] The cellular network signal strength value is on a downward trend;

[0135] The cellular network signal strength value is less than or equal to the first preset threshold value;

[0136] The Bluetooth signal strength value is on the rise;

[0137] The Bluetooth signal strength value is greater than or equal to the second preset threshold value.

[0138] Optionally, in some embodiments of the present application, the first information includes at least one of the following: environmental information of the environment in which the first electronic device is located, and a motion state of the first electronic device; the establishment module 702 is specifically configured to establish a second communication link when the first information satisfies a second condition;

[0139] The second condition includes at least one of the following:

[0140] The environmental information is used to indicate that the first electronic device is in a shielding environment;

[0141] The motion state is a high-speed motion state.

[0142] In the communication device provided in the embodiment of the present application, when a voice call is made between the communication device and the second electronic device through the first communication link, the communication device obtains first information, and the first information includes at least one of the following: network status information of the communication device, environmental information of the environment in which the communication device is located, and the motion status of the communication device; the communication device establishes a second communication link with the second electronic device based on the first information; the communication device makes a voice call with the second electronic device through the second communication link, or the first communication link and the second communication link. In this scheme, the communication device can establish the second communication link according to the first information. On the one hand, in the case of an abnormality in the first communication link, the communication device can use the second communication link to communicate, thereby ensuring that the communication is not interrupted. On the other hand, the communication device can use the first communication link and the second communication link to communicate at the same time, thereby ensuring that no matter which communication link fails, the second electronic device can receive a relatively complete voice data packet. In this way, the jamming during the communication process can be reduced and the stability of communication between electronic devices can be improved.

[0143] The communication device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0144] The communication device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0145] The communication device provided in the embodiment of the present application can implement each process implemented in the communication method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0146] Alternatively, if Fig.11 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores a program or instruction that can be executed on the processor 801, and when the program or instruction is executed by the processor 801, the various steps of the above-mentioned communication method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0147] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0148] Fig.12 A schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application, wherein the electronic device may be a first electronic device.

[0149] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0150] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0151] Among them, the above-mentioned radio frequency unit 101 is used to obtain first information when a voice call is conducted between a first electronic device and a second electronic device through a first communication link, and the first information includes at least one of the following: network status information of the first electronic device, environmental information of the environment in which the first electronic device is located, and the motion status of the first electronic device; the above-mentioned processor 110 is used to establish a second communication link with the second electronic device based on the first information obtained by the above-mentioned radio frequency unit 101; the above-mentioned radio frequency unit 101 is also used to conduct a voice call with the second electronic device through the second communication link established by the above-mentioned processor 110, or the first communication link and the second communication link established by the above-mentioned processor 110.

[0152] Optionally, in some embodiments of the present application, the above-mentioned radio frequency unit 101 is specifically used to make a voice call with a second electronic device through a second communication link when an abnormality occurs in the voice call through the first communication link; wherein the abnormality in the voice call includes a voice data packet loss rate greater than or equal to a preset threshold.

[0153] Optionally, in some embodiments of the present application, the processor 110 is further used to serially number at least one voice data packet; the radio frequency unit 101 is specifically used to transmit at least one voice data packet in parallel to the second electronic device through the first communication link and the second communication link according to the number of the at least one voice data packet.

[0154] Optionally, in some embodiments of the present application, the first information includes network status information of the first electronic device; the processor 110 is specifically configured to establish a second communication link when the first electronic device detects that the network status information of the first communication link meets the first condition, and the network status information includes a cellular network signal strength value and a Bluetooth signal strength value;

[0155] The first condition includes at least one of the following:

[0156] The cellular network signal strength value is on a downward trend;

[0157] The cellular network signal strength value is less than or equal to the first preset threshold value;

[0158] The Bluetooth signal strength value is on the rise;

[0159] The Bluetooth signal strength value is greater than or equal to the second preset threshold value.

[0160] Optionally, in some embodiments of the present application, the first information includes at least one of the following: environmental information of the environment in which the first electronic device is located, and a motion state of the first electronic device; the processor 110 is specifically configured to establish a second communication link if the first information satisfies a second condition;

[0161] The second condition includes at least one of the following:

[0162] The environmental information is used to indicate that the first electronic device is in a shielding environment;

[0163] The motion state is a high-speed motion state.

[0164] In the first electronic device provided in the embodiment of the present application, when a voice call is made between the first electronic device and the second electronic device through the first communication link, the first electronic device obtains the first information, and the first information includes at least one of the following: network status information of the first electronic device, environmental information of the environment in which the first electronic device is located, and the motion status of the first electronic device; the first electronic device establishes a second communication link with the second electronic device based on the first information; the first electronic device makes a voice call with the second electronic device through the second communication link, or the first communication link and the second communication link. In this scheme, the first electronic device can establish the second communication link according to the first information. On the one hand, in the case of an abnormality in the first communication link, the first electronic device can use the second communication link to communicate, thereby ensuring that the communication is not interrupted. On the other hand, the first electronic device can use the first communication link and the second communication link to communicate at the same time, thereby ensuring that no matter which communication link fails, the second electronic device can receive a relatively complete voice data packet. In this way, the jamming during the communication process can be reduced and the stability of communication between electronic devices can be improved.

[0165] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0166] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0167] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0168] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned communication method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0169] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0170] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned communication method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0171] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0172] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned communication method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0173] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0175] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A communication method, characterized in that: The method comprises: In the case of a voice call between a first electronic device and a second electronic device through a first communication link, the first electronic device acquires first information, the first information including at least one of the following: network status information of the first electronic device, environmental information of an environment where the first electronic device is located, and a motion status of the first electronic device; The first electronic device establishes a second communication link with the second electronic device based on the first information; The first electronic device has a voice call with the second electronic device through the second communication link, or the first communication link and the second communication link.

2. The method according to claim 1, characterized in that The first electronic device performs a voice call with the second electronic device through the second communication link, including: In case that the voice call through the first communication link is abnormal, the first electronic device conducts a voice call with the second electronic device through the second communication link; The abnormality of the voice call includes that the voice data packet loss rate is greater than or equal to a preset threshold.

3. The method according to claim 1, characterized in that The first electronic device performs a voice call with the second electronic device through the first communication link and the second communication link, including: The first electronic device serially numbers at least one voice data packet; The first electronic device transmits the at least one voice data packet to the second electronic device in parallel through the first communication link and the second communication link according to the number of the at least one voice data packet.

4. The method according to claim 1, characterized in that The first information includes network status information of the first electronic device; The first electronic device establishes a second communication link with the second electronic device based on the first information, including: When the network status information of the first electronic device meets the first condition, establishing the second communication link, the network status information including the cellular network signal strength value and the Bluetooth signal strength value; The first condition includes at least one of the following: The cellular network signal strength value shows a downward trend; The cellular network signal strength value is less than or equal to a first preset threshold value; The Bluetooth signal strength value shows an upward trend; The Bluetooth signal strength value is greater than or equal to a second preset threshold value.

5. The method according to claim 1 or 4, characterized in that: The first information includes at least one of the following: environmental information of the environment in which the first electronic device is located, and a motion state of the first electronic device; The first electronic device establishes a second communication link with the second electronic device based on the first information, including: When the first information satisfies a second condition, the first electronic device establishes the second communication link; The second condition includes at least one of the following: The environmental information is used to indicate that the first electronic device is in a shielding environment; The motion state is a high-speed motion state.

6. A communication device, characterized in that: The communication device comprises: an acquisition module, an establishment module and a communication module; The acquisition module is used to acquire first information when a voice call is conducted between a first electronic device and a second electronic device via a first communication link, wherein the first information includes at least one of the following: network status information of the first electronic device, environmental information of an environment in which the first electronic device is located, and a motion status of the first electronic device; The establishing module is used to establish a second communication link with the second electronic device based on the first information acquired by the acquiring module; The communication module is used to make a voice call with the second electronic device through the second communication link established by the establishment module, or the first communication link and the second communication link established by the establishment module.

7. The device according to claim 6, characterized in that The communication module is specifically used to make a voice call with the second electronic device through the second communication link when an abnormality occurs in the voice call through the first communication link; The abnormality of the voice call includes that the voice data packet loss rate is greater than or equal to a preset threshold.

8. The device according to claim 6, characterized in that The device further comprises: a processing module; The processing module is used to sequence number at least one voice data packet; The communication module is specifically configured to transmit the at least one voice data packet to the second electronic device in parallel through the first communication link and the second communication link according to the number of the at least one voice data packet.

9. The device according to claim 6, characterized in that The first information includes network status information of the first electronic device; The establishing module is specifically configured to establish the second communication link when the first electronic device detects that the network status information of the first electronic device meets the first condition, wherein the network status information includes a cellular network signal strength value and a Bluetooth signal strength value; The first condition includes at least one of the following: The cellular network signal strength value shows a downward trend; The cellular network signal strength value is less than or equal to a first preset threshold value; The Bluetooth signal strength value shows an upward trend; The Bluetooth signal strength value is greater than or equal to a second preset threshold value.

10. The method according to claim 6 or 9, characterized in that: The first information includes at least one of the following: environmental information of the environment in which the first electronic device is located, and a motion state of the first electronic device; The establishing module is specifically configured to establish the second communication link when the first information satisfies a second condition; The second condition includes at least one of the following: The environmental information is used to indicate that the first electronic device is in a shielding environment; The motion state is a high-speed motion state.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the communication method according to any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the communication method according to any one of claims 1 to 5 are implemented.

13. A computer program product, wherein the computer program product is stored in a storage medium, and wherein the computer program product is executed by at least one processor to implement the steps of the communication method according to any one of claims 1 to 5.

Citation Information

Cited By

  • Voice call data stable transmission method and device, equipment and storage medium

    CN121078406A

  • Voice call data stable transmission method and device, equipment, storage medium

    CN121078406B