Communication method, electronic equipment and computer readable storage medium
By establishing multiple network links between electronic devices for backup transmission of business data, the problem of poor communication quality in places with weak cellular coverage or crowded places is solved, the data transmission success rate and communication signal strength are improved, and the user experience is optimized.
Patent Information
- Application Number
- CN202410551668.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2025-10-10
AI Technical Summary
In places with weak cellular coverage or crowded places, the communication signals of electronic devices are weak, resulting in poor communication quality and affecting users' normal communication.
Multiple network links are established between the first electronic device and the second electronic device for backup transmission of business data. The appropriate second electronic device is selected for data forwarding based on conditions such as signal strength, operator differences, and power, thereby realizing multi-path transmission of business data.
It improves the transmission success rate of business data, enhances the communication signal strength, improves the success rate of business execution, reduces power consumption and optimizes user experience.
Smart Images

Figure CN120769321A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technologies, and in particular, to a communication method, an electronic device, and a computer-readable storage medium. Background Art
[0002] In places with weak cellular coverage, such as subways, high-speed railways, mountainous areas, and remote areas, or in scenarios with large traffic such as train stations and airports, weak communication signals may lead to poor communication quality or even communication interruption of electronic devices, seriously affecting users' normal communications.
[0003] Therefore, how to ensure the communication quality of electronic devices when the communication signal of electronic devices is weak is a technical problem that needs to be solved urgently. Summary of the Invention
[0004] Embodiments of the present application provide a communication method, electronic device, and computer-readable storage medium, enabling electronic devices to back up and transmit service data through other devices, achieving network mutual assistance. Communicating via at least two communication links increases the probability of successful communication between electronic devices and effectively alleviates the problem of poor communication quality in scenarios where the communication signal is weak.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions.
[0006] In a first aspect, a communication method is provided, which is applied to a communicative electronic device, wherein the communicative electronic device includes a first electronic device and a second electronic device. The method includes:
[0007] During the process of transmitting business data between the first electronic device and the first network device via the first network link, if the communication quality of the first electronic device meets the preset communication conditions, the first electronic device broadcasts a connection request, wherein the business data is data generated by the business being executed by the first electronic device.
[0008] If the first electronic device receives a successful response from at least one second electronic device to the connection request, the first electronic device sends service data to the at least one second electronic device, so that the at least one second electronic device forwards the service data to the second network device via the second network link.
[0009] The preset communication conditions include one or more of a signal strength less than a first preset strength threshold, a retransmission rate greater than a preset retransmission threshold, and a bit error rate greater than a preset bit error threshold.
[0010] Both the first network device and the second network device can communicate with the service server corresponding to the service in the first electronic device.
[0011] In the present application, during the process of business data transmission between a first electronic device and a first network device via a first network link, if the signal strength of the first electronic device is less than a first preset strength threshold, the retransmission rate is less than a preset retransmission threshold, or the bit error rate is greater than a preset bit error threshold, the first electronic device broadcasts a connection request. When the first electronic device receives a successful response from at least one second electronic device to the connection request, the first electronic device sends business data to at least one second electronic device, so that at least one second electronic device can forward the business data of the first electronic device to the second network device via a second network link. Wherein, both the first network device and the second network device can achieve the effect of communicating with the business server of the business in the first electronic device. That is, during the process of business data transmission by the first electronic device, if the network signal of the first electronic device is poor, the first electronic device can transmit the business data (to the business server) via the second electronic device. In addition to being transmitted through the first network link between the first electronic device and the first network device, the business data of the first electronic device can also be transmitted through the second network link between the second electronic device and the second network device. Multiple network links realize backup transmission of business data for the first electronic device, improve the success rate of business data transmission of the first electronic device, indirectly enhance the communication signal strength of the first electronic device, and improve the success rate of normal execution of the business of the first electronic device.
[0012] In a possible implementation of the first aspect, the first electronic device sending service data to at least one second electronic device includes:
[0013] The first electronic device sends service data to any one or more second electronic devices among the at least one second electronic device.
[0014] In another possible implementation of the first aspect, the first electronic device sending service data to at least one second electronic device includes:
[0015] The first electronic device obtains device parameters of at least one second electronic device.
[0016] The first electronic device selects one or more second electronic devices from among the second electronic devices whose device parameters meet the preset network mutual assistance condition to send service data.
[0017] The device parameter includes the operator of the second electronic device, and the preset network mutual assistance condition includes that the operator of the second electronic device is different from the operator of the first electronic device.
[0018] Alternatively, the device parameter includes the signal strength of the second electronic device, and the preset network mutual assistance condition includes that the signal strength of the second electronic device is greater than a second preset strength threshold; wherein the second preset strength threshold is greater than or equal to the first preset strength threshold.
[0019] Alternatively, the device parameters include the operator of the second electronic device and the signal strength of the second electronic device, and the preset network mutual assistance condition includes that the operator of the second electronic device is different from the operator of the first electronic device, or that the signal strength of the second electronic device is greater than a second preset strength threshold.
[0020] In the present application, the first electronic device selects a second electronic device with a signal strength greater than a second preset strength threshold to establish a communication connection and send business data, which can improve the transmission success rate of the business data of the first electronic device to a certain extent. Different operators have different communication qualities in scenes where people gather. For example, in scenes where people gather, the communication quality of operator 1 is poor, but the communication quality of operators 2 and 3 is good. Using different operators as a preset network mutual assistance condition for screening the second electronic device can improve the transmission success rate of the business data of the first electronic device to a certain extent.
[0021] In another possible implementation of the first aspect, the device parameters include the operator of the second electronic device and the signal strength of the second electronic device. The first electronic device selects one or more second electronic devices from the second electronic devices whose device parameters meet the preset network mutual assistance condition to send service data, including:
[0022] If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices from the second electronic devices whose operators are different from that of the first electronic device to send the service data.
[0023] If there is no second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices from the second electronic devices whose signal strength is greater than a second preset strength threshold to send service data.
[0024] In this application, different operators exhibit different communication qualities in crowded scenes. For example, in crowded scenes, operator 1's communication quality is poor, but operators 2 and 3's communication quality is good. Using different operators as a preset network mutual assistance condition for screening the second electronic device can improve the success rate of business data transmission of the first electronic device to a certain extent.
[0025] In another possible implementation of the first aspect, the device parameter includes the operator of the second electronic device. The first electronic device selects one or more second electronic devices from the second electronic devices whose device parameters meet the preset network mutual assistance condition to send service data, including:
[0026] If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices whose operators are different from that of the first electronic device and whose signal strength is greater than a third preset strength threshold to send business data.
[0027] The third preset intensity threshold is smaller than the second preset intensity threshold.
[0028] In this application, different operators exhibit different communication qualities in crowded scenes. For example, in crowded scenes, operator 1's communication quality is poor, but operator 2 and operator 3's communication quality is good. Using the difference in operators as a preset network mutual assistance condition for screening the second electronic device, and further selecting the second electronic device with a signal strength greater than a third preset strength threshold to establish a communication connection and send service data, can greatly improve the transmission success rate of the service data of the first electronic device.
[0029] In another possible implementation of the first aspect, the device parameters further include device power. The first electronic device selects one or more second electronic devices from among the second electronic devices whose device parameters meet the preset network mutual assistance condition to send service data, including:
[0030] If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices whose operator is different from that of the first electronic device and whose device power is greater than a preset power threshold from the second electronic devices to send business data.
[0031] Alternatively, the first electronic device selects one or more second electronic devices whose device power is greater than a preset power threshold from among the second electronic devices whose signal strength is greater than a second preset strength threshold to send service data.
[0032] In this application, since the mutual transmission of business data may cause power consumption of electronic devices, in order to ensure that the second electronic device can normally perform its own business and can help the first electronic device to transmit business data, the first electronic device can select one or more second electronic devices whose device power is greater than a preset power threshold to send business data to ensure the success rate of business data transmission.
[0033] In another possible implementation of the first aspect, the first electronic device and the second electronic device are electronic devices under the same device account.
[0034] And / or, the first electronic device and the second electronic device are preset whitelist devices for each other.
[0035] And / or, both the first electronic device and the second electronic device are electronic devices with a network mutual assistance function enabled.
[0036] Among them, the electronic device turning on the network mutual assistance function indicates that the electronic device agrees to forward the business data of the first electronic device to the second network device as the second electronic device, and the electronic device agrees to send its own business data to the second electronic device as the first electronic device to forward it to the second network device.
[0037] In this application, the above-mentioned situations include different degrees of relationship between the first electronic device and the second electronic device. In the trust loops of different programs, the communication method provided in this application can be used to transmit business data. While ensuring the information security of the electronic device, the success rate and efficiency of business data transmission can be improved.
[0038] In another possible implementation of the first aspect, if the first electronic device and the second electronic device are electronic devices with a network mutual assistance function, after the first electronic device receives a successful response from at least one second electronic device to a connection request, the method further includes:
[0039] The first electronic device sends a first reminder message to at least one second electronic device; the first reminder message is used to remind the second electronic device to enable the network mutual assistance function.
[0040] Then, the first electronic device sends service data to at least one second electronic device, including:
[0041] If the first electronic device receives a confirmation instruction for starting the network mutual assistance function returned by at least one second electronic device, the first electronic device sends service data to the at least one second electronic device.
[0042] In this application, if the first electronic device does not receive a response from any second electronic device to the connection request, that is, the first electronic device has not searched for the second electronic device. This may be because the first electronic device has not enabled the network mutual assistance function. In this case, the first electronic device can detect whether the network mutual assistance function is enabled and eliminate the problem of network mutual assistance failure caused by itself through self-test.
[0043] In another possible implementation of the first aspect, if the first electronic device is an electronic device with a network mutual assistance function, after the first electronic device broadcasts the connection request, the method further includes:
[0044] If the first electronic device does not receive a successful response to the connection request, the first electronic device outputs a second reminder message; the second reminder message is used to remind the user to enable the network mutual assistance function of the first electronic device.
[0045] When the first electronic device detects an event of starting the network mutual assistance function, the first electronic device rebroadcasts a connection request.
[0046] In this application, although the first electronic device searches for the second electronic device, if the first electronic device cannot send business data to the searched second electronic device, then the first electronic device can send a first reminder message to the second electronic device to remind the second electronic device to enable the network mutual assistance function.
[0047] In another possible implementation of the first aspect, the method further includes:
[0048] In the process of the first electronic device sending service data to at least one second electronic device, the first electronic device periodically obtains the signal strength value of the at least one second electronic device within a preset time period.
[0049] The first electronic device stops sending service data to the second electronic device whose signal strength value is less than a fourth preset strength threshold, wherein the fourth preset strength threshold is less than the first preset strength threshold.
[0050] In this application, if the signal strength value of the second electronic device is less than the fourth preset strength threshold within a preset time period, it indicates that the communication quality of the second electronic device has become very poor and the service data transmission may fail. In this case, stopping the transmission of service data to the second electronic device can reduce the power consumption of the first electronic device.
[0051] In another possible implementation manner of the first aspect, the service data includes first service data and second service data, and the second service data is service data generated after the first service data.
[0052] The first electronic device sends service data to at least one second electronic device, including:
[0053] The first electronic device sends first service data to at least one second electronic device.
[0054] The method further includes:
[0055] The first electronic device obtains at least one performance parameter of the second electronic device forwarding the first service data, wherein the performance parameter includes at least one of signal strength, bit error rate, and packet loss rate of the second electronic device forwarding the first service data.
[0056] The first electronic device sends second service data to a third electronic device, wherein the third electronic device is an electronic device with the best performance parameter among the at least one second electronic device.
[0057] In this application, a first electronic device sends first service data to all or any second electronic devices, which can maximize the transmission of the first service data through multiple backup network links, thereby improving the success rate of the transmission of the first service data. Furthermore, based on the performance parameters of the second electronic device in the process of forwarding the first service data to the second network device, the first electronic device selects the third electronic device with the best performance to transmit the second service data. While ensuring the successful transmission of the second service data, it can also reduce the number of devices sending the second service data and reduce power consumption.
[0058] In another possible implementation of the first aspect, the method further includes:
[0059] The first electronic device activates the network mutual assistance function when detecting entry into a preset place through geographic fencing; wherein the preset place is a place with poor communication quality, and the preset places include subway stations, bus stations and airports.
[0060] In this application, the first electronic device automatically turns on the network mutual assistance function when entering a preset scenario with poor communication quality, which can improve the efficiency of the first electronic device in performing network mutual assistance, and can also avoid the interaction between the first electronic device and the user, so that the user perceives an unsmooth usage experience.
[0061] In a second aspect, the present application provides an electronic device, which includes a first chip, a second chip, a memory, and a communication interface; the first chip and the second chip execute a computer program in the memory to implement the steps of any one of the methods described in the first aspect.
[0062] Among them, the first chip is used to send the business data of the electronic device to other electronic devices through the communication interface to forward them to the corresponding network device; the second chip is used to receive the business data of other electronic devices through the communication interface, and forward the business data of other electronic devices to the corresponding network device through the communication interface.
[0063] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the methods described in the first aspect.
[0064] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the computer program / instructions are executed by a processor, the steps of the method described in any one of the above-mentioned first aspects are implemented.
[0065] In a fifth aspect, a computer program product including instructions is provided, including a computer program / instructions, which, when executed by a processor, implements the steps of the method of any one of the first aspect.
[0066] In a sixth aspect, an embodiment of the present application provides a chip, including a processor, configured to invoke a computer program in a memory to execute the method of any one of the first aspect.
[0067] It can be understood that the beneficial effects of the electronic device of the second aspect and the third aspect, the computer readable storage medium of the fourth aspect, the computer program product of the fifth aspect, and the chip of the sixth aspect can refer to the beneficial effects of the first aspect and any possible design of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0068] Figure 1 A schematic diagram of a place where a plurality of people gather is provided for embodiments of the present application.
[0069] Figure 2 A schematic diagram of the structure of an electronic device is provided for embodiments of the present application.
[0070] Figure 3 A schematic diagram of the layered architecture of an electronic device is provided for embodiments of the present application.
[0071] Figure 4 A flowchart of a communication method is provided for embodiments of the present application.
[0072] Figure 5 A schematic diagram of a first electronic device selecting one second electronic device to send service data is provided for embodiments of the present application.
[0073] Figure 6 A schematic diagram of a first electronic device selecting two second electronic devices to send service data is provided for embodiments of the present application.
[0074] Figure 7 A schematic diagram of an electronic device corresponding to different operators is provided for embodiments of the present application.
[0075] Figure 8 An interface schematic diagram of a first electronic device displaying second reminder information is provided for embodiments of the present application.
[0076] Figure 9 A schematic diagram of starting a network mutual assistance function is provided for embodiments of the present application.
[0077] Figure 10 An interface schematic diagram of a second electronic device displaying first reminder information is provided for embodiments of the present application.
[0078] Figure 11 A schematic diagram of an interface for a first electronic device displaying a list of second electronic devices provided by an embodiment of the present application;
[0079] Figure 12 A schematic diagram of an electronic device displaying a network mutual assistance logo provided by an embodiment of the present application;
[0080] Figure 13 A schematic diagram of a possible structure of an electronic device provided in an embodiment of the present application;
[0081] Figure 14 A schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0082] In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the situation where A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are a kind of "or" relationship.
[0083] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0084] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0085] With the advancement of communications technology, electronic devices (such as mobile devices (cell phones and tablets)) have become essential tools in people's lives, satisfying their communication needs and internet access. To provide faster and more convenient communications and internet experiences, major operators and technology companies are continuously working to improve network infrastructure and enhance signal coverage. However, in areas / locations with weak cellular coverage or densely populated areas / locations, poor communication quality still exists for electronic devices.
[0086] For example, in remote areas, forest scenic areas, mountainous areas, deserts and other areas, the cellular coverage of some operators is relatively weak, and electronic devices have problems with weak communication signals and poor communication quality. Figure 1 , Figure 1 The following diagrams show some crowded places. In crowded places like subways, tourist attractions, gates with large crowds, concerts / music festivals, airports, and train stations, electronic devices may experience poor network signals and poor network performance due to signal interference and network congestion.
[0087] Whether in areas with weak cellular coverage or crowded areas, poor communication quality on electronic devices can lead to unstable network connections or even complete disconnection. Specifically, electronic devices may be unable to load web pages, send messages, or receive calls. Interference with the communication signal of electronic devices can also lead to reduced call quality. Specifically, calls may experience noise and intermittent audio. Even if electronic devices can connect to the Internet, network congestion can affect data transmission speeds, resulting in slow operations such as downloading and uploading files. Furthermore, some applications that rely on network connectivity, such as map navigation, instant messaging tools, and social media, may not function properly when the network signal is poor, causing significant inconvenience for travel and communication. Furthermore, network issues can cause users to become impatient and anxious, especially when they urgently need to use the Internet for work, contact others, or communicate urgently. This poor user experience can negatively impact their mood and quality of life.
[0088] Therefore, how to ensure the success rate of business data transmission and communication quality of electronic devices in these environments with poor communication signals is a technical problem that needs to be solved urgently.
[0089] An embodiment of the present application provides a communication method, which is applied to a communicative electronic device, and the communicative electronic device includes a first electronic device and a second electronic device. In the process of business data transmission between the first electronic device and the first network device through the first network link, if the first electronic device has one or more of the following situations: signal strength is less than a first preset strength threshold, retransmission rate is less than a preset retransmission threshold, and bit error rate is greater than a preset bit error threshold, the first electronic device broadcasts a connection request. When the first electronic device receives a successful response from at least one second electronic device to the connection request, the first electronic device sends business data to at least one second electronic device, so that at least one second electronic device can forward the business data of the first electronic device to the second network device through the second network link. Among them, both the first network device and the second network device can achieve the effect of communicating with the business server of the business in the first electronic device. That is, in the process of business data transmission by the first electronic device, if the first electronic device has a poor network signal, the first electronic device can transmit business data (to the business server) through the second electronic device. In addition to being transmitted through the first network link between the first electronic device and the first network device, the business data of the first electronic device can also be transmitted through the second network link between the second electronic device and the second network device. Multiple network links realize backup transmission of the business data of the first electronic device, improve the transmission success rate of the business data of the first electronic device, enhance the communication signal strength of the first electronic device, and improve the success rate of the normal execution of the business of the first electronic device.
[0090] In the communication method provided in the embodiments of the present application, a first electronic device can establish a peer-to-peer (P2P) connection with a second electronic device, and the first electronic device can form a P2P-based network connection with multiple second electronic devices. An electronic device can serve as a node in the network.
[0091] The following is a brief description of concepts that may be involved in the embodiments of this application.
[0092] P2P connections: In a P2P connection, nodes can directly exchange data or resources without forwarding them through a central server, enabling distributed resource sharing and communication. For example, P2P networks can be applied to file sharing, video streaming, real-time communication, blockchain, and other fields.
[0093] Group Owner (GO): A GO is a node that creates and manages connections in a P2P connection. Similar to an access point (AP) in a traditional Wi-Fi network, it is responsible for creating and maintaining a connected group. In an embodiment of the present application, in a network of multiple devices, a GO may be a node that, in response to a broadcast connection request, establishes a connection with a first electronic device, and receives and forwards service data sent by the first electronic device.
[0094] Group Client (GC): A GC is a member of a group in a P2P connection. A GC can act as a station (STA), connecting to a gateway (GO) to access network services and resources. In this embodiment of the present application, in a multi-device network, the first electronic device that broadcasts a connection request can act as a GC.
[0095] In the embodiment of the present application, the first electronic device that broadcasts the connection request may also become a device that forwards the business data of other electronic devices. Therefore, the first electronic device can also serve as a GC; the target second electronic device / second electronic device that forwards the business request of the first electronic device may also have a broadcast establishment request and forward the business data through other electronic devices. Therefore, the second electronic device can also serve as a GO. That is, in the embodiment of the present application, the electronic devices (including the first electronic device and the second electronic device) can communicate as a GO or as a GC in the network.
[0096] Station (STA): A STA is a terminal device in a wireless network, such as a mobile phone or laptop. In a P2P connection, a STA can act as a gateway controller (GC), connecting to a gateway controller (GO) to access network services and resources. A STA can be a passive participant in a network connection or an active initiator.
[0097] Access Point (AP): An AP is an infrastructure device in traditional Wi-Fi networks, responsible for connecting STAs and providing network services. Similar to a gateway (GO) in P2P connections, it is typically used to carry larger network connections. In traditional Wi-Fi networks, STAs connect to an AP for services such as internet access and local area network connectivity.
[0098] The communication methods provided in the embodiments of the present application can be applied to electronic devices with communication functions. For example, the electronic devices may be portable computers (such as mobile phones), tablet computers, laptop computers, personal computers (PCs), wearable electronic devices (such as smart watches), augmented reality (AR) or virtual reality (VR) devices, and in-vehicle computers. The following embodiments do not impose any particular restrictions on the specific form of the electronic devices.
[0099] Figure 2 A schematic structural diagram of the electronic device 100 is shown.
[0100] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0101] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0102] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0103] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0104] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0105] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0106] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0107] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0108] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0109] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0110] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0111] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0112] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0113] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0114] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).
[0115] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.
[0116] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0117] In an embodiment of the present application, the electronic device may display a prompt message for turning on the network mutual assistance function through a display screen. In some optional other feasible embodiments, for example, after the first electronic device sends business data to at least one second electronic device, the first electronic device may display a prompt message through a display screen indicating that the business data has been transmitted through the mutual assistance device. In some optional other feasible embodiments, for example, when the second electronic device receives the business data sent by the first electronic device, the second electronic device may display a prompt message through a display screen indicating that the business data has been received from the mutual assistance device.
[0118] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0119] The internal memory 121 can be used to store computer executable program codes including instructions. The processor 110 performs various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program (such as a sound playing function, an image playing function, etc.) required by a function, etc. The data storage area can store data (such as audio data, a phone book, etc.) created during the use of the electronic device 100, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0120] The electronic device 100 can realize an audio function through an audio module 170, a speaker, a receiver, a microphone, a headset interface, an application processor, etc. For example, music playing, recording, etc.
[0121] The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode an audio signal. In some embodiments, the audio module 170 can be arranged in the processor 110, or part of the function modules of the audio module 170 can be arranged in the processor 110.
[0122] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or pulled out of the SIM card interface 195 to realize contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 can support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can simultaneously insert multiple cards. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external storage cards. The electronic device 100 interacts with a network through the SIM card to realize functions such as calling and data communication. In some embodiments, the electronic device 100 adopts an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0123] In the present embodiment, the electronic device can detect the operator to which the SIM card belongs, and obtain the operator as a device parameter, which can be applied in the selection process of the target second electronic device.
[0124] In an embodiment of the present application, the first electronic device and the second electronic device establish a network connection based on an integrated circuit chip (IC). Figure 3 , Figure 3 A schematic diagram of a layered architecture of an electronic device 100 is provided.
[0125] The layered architecture of an electronic device consists of several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the electronic device is divided into an application layer, an application framework layer, a kernel layer, and a chip layer.
[0126] The application layer can include a series of application packages. Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, voice call, navigation, WLAN, short message, etc.
[0127] In some embodiments, the business data of the electronic device is business data generated by various applications in the application layer.
[0128] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0129] Exemplarily, the application framework layer may include a content provider, a view system, a telephony manager, a notification manager, and the like.
[0130] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0131] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0132] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0133] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0134] The kernel layer includes display driver, camera driver, audio driver, sensor driver and so on.
[0135] Below the kernel layer is the chip layer. Electronic devices use chips to communicate with other electronic devices over the air interface, enabling inter-device communication. For example, electronic device 1 initiates a voice call service from the application layer. The voice call service data is transmitted from the application layer down to the chip layer, and the chip initiates a voice call request to the corresponding electronic device 2. The chip of electronic device 2 processes the voice call request and generates a voice call instruction. The voice call instruction is transmitted from the chip layer up to the application layer, triggering the corresponding application in the application layer to respond to the voice call instruction.
[0136] In some embodiments, chip capabilities can determine the identity of an electronic device within a network. For example, a first electronic device sends service data to a second electronic device via a chip, causing the second electronic device to send the service data to a second network device via a second network link. In this case, the chip of the first electronic device has the capability to support it acting as a GC in the network, and the chip of the second electronic device has the capability to support it acting as a GO in the network.
[0137] In some embodiments, if during the transmission of business data of the first electronic device, other electronic devices send business data to the first electronic device, and the first electronic device wants to send the business data to the first network device through the first network link. In this case, the first electronic device needs to act as a GC in the network while also acting as a GO in the network. That is, the chip of the first electronic device needs to have the ability to support the electronic device to exist in the network as both a GO and a GC at the same time.
[0138] If the chip of an electronic device has the ability to support the electronic device to exist in the network as both a GO and a GC at the same time, it can realize that the first electronic device sends business data to the second electronic device while receiving business data from other electronic devices, thus completing the purpose of forwarding business data from other electronic devices. Electronic equipment of the system.
[0139] In some embodiments, the chip of the electronic device may only have the ability to support the electronic device to exist in the network with one identity (GO or GC) at the same time. For example, the electronic device is an electronic device whose operating system is another system. In this case, a small chip (second chip) can be deployed in the electronic device, and the chip of the electronic device itself can be used as the first chip. When the first chip of the electronic device supports the electronic device to exist in the network with one identity (for example, GO or GC), the second chip of the electronic device can support the electronic device to exist in the network with another identity (for example, GC or GO) at the same time, so as to realize the mutual transmission of business data between multiple electronic devices. Among them, the second chip can be the same as the first chip, or the second chip can be different from the first chip. The second chip can have the same communication capability as the first chip.
[0140] The communication method provided in the embodiment of the present application is introduced on the premise that the chip (first chip and / or second chip) in the electronic device involved in the embodiment of the present application has the ability to support the electronic device to exist in the network with two identities (GO or GC) at the same time.
[0141] refer to Figure 4 , Figure 4 A flow chart of a communication method is given, including:
[0142] S101. A first electronic device and a first network device transmit service data via a first network link.
[0143] The first network device is a network device of an operator corresponding to the first electronic device, and may be a base station, a core network device, or the like.
[0144] In this embodiment, the data transmission link between the first electronic device and the first network device may be referred to as a first network link. The data generated by the first electronic device during the execution of a service is referred to as service data. For example, when the first electronic device browses the web, watches videos, or listens to music using a cellular network, the service data may be data generated by browsing the web, watching videos, or listening to music; when the first electronic device makes a voice call using the cellular network, the service data may be data generated by the voice call; and when the first electronic device makes a phone call, the service data may be data generated by the phone call.
[0145] The first electronic device transmits business data with the first network device, and the first network device communicates with the business server corresponding to the business to complete the execution of the business. During the business transmission process, if the first electronic device has a problem with poor communication quality, it may cause the business data transmission to fail, resulting in the first electronic device being unable to run the current business. For example, if the web page data transmission fails, it may cause the first electronic device to be unable to load the web page; if the video data transmission fails, it may cause the first electronic device to be unable to play the video; if the voice call data transmission fails, it may cause the first electronic device to have poor voice call quality or voice call interruption.
[0146] In this embodiment, in order to avoid the failure of service data transmission due to poor communication quality in the environment where the first electronic device is located, thereby making the first electronic device unable to operate the corresponding service, during the process of transmitting service data between the first electronic device and the first network device, the first electronic device can use the communication method in the embodiment of the present application to perform service data transmission based on its own communication quality.
[0147] S102: The first electronic device determines whether the communication quality meets the preset communication condition; if so, execute S103.
[0148] The preset communication conditions include one or more of a signal strength less than a first preset strength threshold, a retransmission rate greater than a preset retransmission threshold, and a bit error rate greater than a preset bit error threshold.
[0149] In this embodiment, the communication quality meeting the preset communication condition means that the communication quality of the environment in which the first electronic device is currently located is relatively poor. That is, when the first electronic device has at least one of the following conditions, S103 is executed.
[0150] At least one of the following situations includes: the signal strength of the first electronic device is less than a first preset strength threshold, where, for example, the first preset strength threshold may range from -85dBm to -90dBm; the retransmission rate of the data transmission of the first electronic device is greater than the preset retransmission threshold; or the bit error rate of the data transmission of the first electronic device is greater than the preset bit error threshold. If at least one of the above situations occurs, it can be considered that the communication quality of the current environment of the first electronic device is relatively poor, and it is necessary to use the communication method of this embodiment to perform a backup link transmission operation for service data. In this case, S103 is executed.
[0151] In some other feasible embodiments, the first electronic device may also determine that the communication quality of the current environment is relatively poor based on other judgment conditions. For example, if the uplink / downlink data transmission rate of the first electronic device is less than a preset rate threshold, the communication quality of the current environment of the first electronic device may be considered to be relatively poor. Alternatively, if the transmission delay of the first electronic device is greater than a preset delay threshold, the communication quality of the current environment of the first electronic device may be considered to be relatively poor.
[0152] In some other feasible embodiments, the poor communication quality of the first electronic device may occur when the first electronic device is in an area or location with weak communication signal coverage, or when the first electronic device is in an area or location with a large number of people or communication devices. In the second case, if the first electronic device detects that the number of nearby communication devices exceeds a preset number of devices, it may also trigger execution of S103 to perform a backup link transmission operation for the service data.
[0153] Alternatively, in some other feasible embodiments, if the first electronic device detects the presence of other communication devices nearby, regardless of the number of other communication devices or whether the communication quality of the first electronic device is good or poor, the first electronic device can directly trigger the execution of S103 to perform a backup link transmission operation for the business data. This approach can improve the transmission efficiency and success rate of business data of the first electronic device in any scenario, but may increase the power consumption of the first electronic device.
[0154] S103: The first electronic device broadcasts a connection request.
[0155] In this embodiment, the first electronic device may broadcast a connection request to surrounding devices. The connection request is used to request the establishment of a near-field communication connection. The near-field communication connection may be a Bluetooth connection, a Wi-Fi connection, a hotspot connection, or the like. The purpose of the first electronic device broadcasting the connection request is to search for nearby electronic devices that can provide network support.
[0156] In some embodiments, if the first electronic device and the second electronic device are electronic devices under the same account, that is, the first electronic device and the second electronic device are trusted ring devices, the first electronic device can directly search for electronic devices under the same account and send a connection request to the electronic device under the same account. In this case, electronic devices under the same account can discover each other's devices through a private protocol, thereby establishing connections with each other. Exemplarily, the same account can be a device account belonging to the same brand, and the one device account can be logged in simultaneously on different devices of the same brand. For example, the devices under the same device account of the same brand include mobile phone 1, mobile phone 2, tablet computer, and smart watch. Then, mobile phone 1, mobile phone 2, tablet computer, and smart watch are electronic devices under the same account. When at least two of mobile phone 1, mobile phone 2, tablet computer, and smart watch are in near-field communication, at least two devices in near-field communication can be each other's first electronic device / second electronic device to forward and transmit the backup link of business data.
[0157] In some embodiments, if the first electronic device and the second electronic device are preset whitelist devices for each other, the first electronic device may also directly search whether the second electronic device is nearby, and if the second electronic device is nearby, send a connection request to the second electronic device. Exemplarily, the first electronic device can customize the preset whitelist devices. For example, the electronic devices of relatives and friends can be set as whitelist devices. When the first electronic device is in near-field communication with one or more of the preset whitelist devices, at least two devices in near-field communication can be the first electronic device / second electronic device to each other, and forward the backup link of the business data.
[0158] In some embodiments, the first electronic device and the second electronic device can also be any electronic device with the network mutual assistance function enabled. That is, the first electronic device and the second electronic device can be unfamiliar electronic devices. When at least two electronic devices with the network mutual assistance function enabled are in near-field communication, the at least two devices in near-field communication can act as the first electronic device / second electronic device to forward and transmit the backup link of the business data.
[0159] S104: If the first electronic device receives a successful response from at least one second electronic device to the connection request, the first electronic device establishes a communication connection with the at least one second electronic device.
[0160] In this embodiment, the first electronic device receives a successful response from the second electronic device to the connection request and can establish a communication connection with the second electronic device.
[0161] For example, different communication connections may be established between the first electronic device and the second electronic device according to different relationships between the first electronic device and the second electronic device.
[0162] For example, the first electronic device and the second electronic device are electronic devices under the same device account, and the first electronic device and the second electronic device are mutually trusted ring devices. In this case, the first electronic device and the second electronic device can establish a communication connection for full-scenario services through a private protocol. Among them, the communication connection for full-scenario services means that the first electronic device can not only send business data to the second electronic device for backup transmission, but the first electronic device can also back up all / part of the device data to the second electronic device.
[0163] In some other embodiments, the first electronic device and the second electronic device can be preset whitelist devices for each other. In this case, the first electronic device and the second electronic device can establish a near field communication connection or a communication connection for full-scenario services through an agreed / private protocol.
[0164] In some other embodiments, the first electronic device and the second electronic device are both electronic devices with network mutual assistance functions. In this case, the first electronic device and the second electronic device can also establish a near-field communication connection or a full-scenario service communication connection through an agreed / private protocol.
[0165] In the embodiment of the present application, when an electronic device activates the network mutual assistance function, it indicates that the electronic device agrees to forward the service data of the first electronic device to the second network device as a second electronic device. In other words, the electronic device agrees to forward the service data transmitted by other devices to its own corresponding network device via the corresponding network link as a GO.
[0166] At the same time, enabling the network mutual assistance function also indicates that the electronic device agrees to act as the first electronic device and send its business data to the second electronic device for forwarding to the first network device. In other words, the electronic device agrees to act as a GC and send business data to other devices, so that the other devices can forward the data to the corresponding network device through the corresponding network link.
[0167] In some embodiments, the first electronic device may select one or more second electronic devices that return a successful response to the connection request to establish a communication connection. For example, if the first electronic device receives a response to the connection request returned by only one second electronic device, a communication connection is established with the one second electronic device. If the first electronic device receives successful responses to the connection request returned by N second electronic devices, the first electronic device may establish a communication connection with the N second electronic devices; or, select n second electronic devices from the N second electronic devices to establish a communication connection. Wherein, n and N are natural numbers greater than 0, and n is less than or equal to N.
[0168] S105: The first electronic device sends service data to at least one second electronic device.
[0169] In this embodiment, a first electronic device sends service data to a second electronic device with which a communication connection has been established. The service data may include user information of the first electronic device. When the first electronic device sends service data to the second electronic device, the service data may be encrypted and then forwarded to the second network device via the second electronic device. The second network device may decrypt the encrypted service data using a predetermined decryption method and process the service data.
[0170] In this embodiment, the algorithm for encrypting business data can adopt a conventional encryption algorithm. For example, the data encryption algorithm can be an irreversible encryption algorithm or a reversible encryption algorithm. For example, irreversible encryption algorithms include message digest algorithm 5 (MD5) and secure hash algorithm (SHA). Among them, reversible encryption algorithms are further divided into symmetric encryption algorithms and asymmetric encryption algorithms. For example, symmetric encryption algorithms can include data encryption standard (DES) algorithm, advanced encryption standard (AES) algorithm, etc.; asymmetric encryption algorithms can include RSA encryption algorithm, etc.
[0171] By encrypting business data with an encryption algorithm before transmitting it, it is possible to achieve backup link transmission of business data, improve the success rate of business data transmission, and at the same time improve the transmission security of business data, thereby ensuring that the business data and user information of electronic devices are not leaked.
[0172] After the first electronic device sends the service data to the second electronic device, the service data can be transmitted via the first network link between the first electronic device and the first network device. In addition, the service data can also be backed up and transmitted via the second network link between the second electronic device and the second network device.
[0173] In some embodiments, the first electronic device may select any one or more second electronic devices from at least one second electronic device that returns a response to the connection request to establish a communication connection and send business data.
[0174] The first electronic device can randomly select any one or more second electronic devices to establish a communication connection and transmit business data. In this scenario, the device parameters such as the communication quality of the second electronic device or the operator of the second electronic device are not considered. The purpose is to achieve the purpose of transmitting the business data of the first electronic device through multiple backup links as much as possible. Regardless of whether the communication quality of the second electronic device is good or bad, and whether the operator of the second electronic device is the same as that of the first electronic device, the second electronic device can provide a backup link for the business data of the first electronic device, and can also achieve the purpose of improving the transmission success rate of the business data of the first electronic device.
[0175] For example, Figure 5 A schematic diagram is provided in which a first electronic device selects a second electronic device to send service data.
[0176] refer to Figure 5 The first electronic device may have the same operator as the second electronic device. When the operators are the same, the network device of the first electronic device and the second electronic device in near field communication connection may be the same.
[0177] Figure 5 In the example, the mobile phone transmits (communicates) business data 1 with the base station and the business server through network link 1. After the mobile phone receives the response to the connection request returned by the tablet computer, the mobile phone (first electronic device) establishes a communication connection with the tablet computer (second electronic device). The mobile phone sends the encrypted business data 1 to the tablet computer. After receiving the encrypted business data 1, the tablet computer forwards it to the base station through network link 2, so that the base station sends the business data to the business server. The business data 1 of the mobile phone can be transmitted from the network link 1 between the mobile phone and the base station, or from the network link 2 between the tablet computer and the base station, thereby realizing backup transmission of the business data 1 of the mobile phone. It is assumed that the chip of the mobile phone can support the mobile phone as a GO / GC at the same time; the first chip in the tablet computer supports the tablet computer as a GO, and the second chip supports the tablet computer as a GC. Then, the mobile phone can establish a communication connection with the first chip of the tablet computer through the chip.
[0178] Correspondingly, the tablet computer can transmit (communicate) its service data 2 with the base station and the service server through the network link 3. After the tablet computer (first electronic device) establishes the communication connection with the mobile phone (second electronic device), the tablet computer can also send its service data 2 after encryption to the mobile phone, so that the mobile phone forwards the encrypted service data 2 to the base station through the network link 4 between the mobile phone and the base station, so that the base station sends the service data to the service server. The service data 2 of the tablet computer can be transmitted from the network link 3 between the tablet computer and the base station, or from the network link 4 between the mobile phone and the base station, realizing the backup transmission of the two network links of the service data 2 of the tablet computer. Among them, it is assumed that the chip of the mobile phone can support the mobile phone as GO / GC; the first chip in the tablet computer supports the tablet computer as GO, and the second chip supports the tablet computer as GC. The tablet computer can establish a communication connection with the chip of the mobile phone through the second chip.
[0179] It can be understood that multiple network links can be involved between the electronic device and the network device. The multiple network links include links for transmitting its own service data, links for transmitting service data sent by other devices, and the like.
[0180] For example, Figure 5 The network links formed between the mobile phone and the base station in the above embodiment include network link 1 and network link 4. The mobile phone sends its service data 1 to the base station through the network link 1; the mobile phone sends the service data 2 sent by the tablet computer to the base station through the network link 4. Figure 5 The network links formed between the tablet computer and the base station in the above embodiment include network link 2 and network link 3. The tablet computer sends its service data 2 to the base station through the network link 2; the tablet computer sends the service data 1 sent by the mobile phone to the base station through the network link 3.
[0181] Exemplarily, Figure 6 A schematic diagram of a first electronic device selecting two second electronic devices to send service data is given.
[0182] Figure 6 In the above embodiment, the communication method provided by the present application is introduced by taking that the tablet computer can play different roles in the formed network. In the above embodiment, Figure 6 In the above embodiment, the tablet computer can be a first electronic device or a second electronic device. When the tablet computer is a first electronic device (GC), it can establish a communication connection with a second electronic device through a first chip and transmit service data 2 of the tablet computer to the second electronic device for forwarding of the service data; when the tablet computer is a second electronic device (GO), it can establish a communication connection with a first electronic device through a second chip and forward the received service data to the corresponding network device.
[0183] Specifically, reference is made toFigure 6 If the tablet and phone 1 use the same carrier, the network device for the NFC connection between them is the same: base station 1. If the tablet and phone 2 use different carriers, the network devices for the NFC connection between them are different: base station 1 for the tablet and base station 2 for phone 2. Both base stations 1 and 2 can communicate with the service server.
[0184] Figure 6 In the embodiment, the tablet computer transmits (communicates) business data 2 with the base station 1 and the business server through the network link 2. After the tablet computer receives the response to the connection request returned by the mobile phone 1, the tablet computer acts as a GC and establishes a communication connection with the mobile phone 1 through the first chip. The tablet computer sends the encrypted business data 2 to the mobile phone 1. After the mobile phone 1 receives the encrypted business data 2, it forwards it to the base station 1 through the network link 4, so that the base station 1 sends the business data 2 to the business server. After the tablet computer receives the response to the connection request returned by the mobile phone 2, the tablet computer acts as a GC and establishes a communication connection with the mobile phone 2 through the first chip. The tablet computer sends the encrypted business data 2 to the mobile phone 2. After the mobile phone 2 receives the encrypted business data 2, it forwards it to the base station 2 through the network link 6, so that the base station 2 sends the business data 2 to the business server.
[0185] At this point, the tablet computer's business data 2 can be transmitted from the network link 4 between the mobile phone 1 and the base station 1, or from the network link 6 between the mobile phone 2 and the base station 2, thus realizing backup transmission of the tablet computer's business data 2 over three network links.
[0186] The tablet, acting as a GO, can establish a communication connection with mobile phone 1 or mobile phone 2 via the second chip. Mobile phone 1 or mobile phone 2 can also encrypt and send its corresponding service data 1 or service data 3 to the tablet. The tablet forwards the encrypted service data 1 or service data 2 to base station 1 via network link 3, so that base station 1 can send service data 1 or service data 2 to the service server.
[0187] At this point, mobile phone 1's service data 1 can be transmitted over network link 3 between the tablet and base station 1, or over network link 1 between mobile phone 1 and base station 1, achieving backup transmission of mobile phone 1's service data 1 across two network links. Mobile phone 2's service data 3 can be transmitted over network link 3 between the tablet and base station 1, or over network link 5 between mobile phone 2 and base station 2, achieving backup transmission of mobile phone 2's service data 3 across two network links.
[0188] In a network formed by mobile phone 1, mobile phone 2, and a tablet computer, each of them can serve as either a GO (Global Goalkeeper) or a GC (Global Goalkeeper) device seeking network assistance. This can be achieved using a chip capable of supporting electronic devices acting as both GO and GC simultaneously.
[0189] In some embodiments, the second electronic device involved in the embodiments of the present application, as an electronic device that provides a backup network link for the first electronic device, can also be called a "helper" device.
[0190] In some other feasible embodiments, the first electronic device may further screen at least one second electronic device that returns a response to the connection request (hereinafter referred to as the searched second electronic device), establish a communication connection with the screened second electronic device, and send service data. For example, in some embodiments, the process includes:
[0191] S1051: The first electronic device obtains device parameters of at least one second electronic device.
[0192] In this embodiment, when the first electronic device broadcasts a connection request, it may include a request to obtain device parameters. The response to the connection request received by the first electronic device from the second electronic device may include the device parameters of the second electronic device. The device reference may include one or more information such as the operator of the second electronic device, the current signal strength of the second electronic device, the device model of the second electronic device, the network status of the second electronic device, the power level of the second electronic device, etc.
[0193] S1052: The first electronic device selects one or more second electronic devices from among the second electronic devices whose device parameters meet the preset network mutual assistance condition, and sends service data.
[0194] In this embodiment, the preset network mutual assistance condition corresponds to the device parameters. For example, when the device parameters include at least the operator, the preset network mutual assistance condition may include at least that the operator of the second electronic device is different from the operator of the first electronic device. For example, when the device parameters include at least the signal strength, the preset network mutual assistance condition may include at least that the signal strength of the second electronic device is greater than the second preset strength threshold. The second preset strength threshold is greater than the first preset strength threshold. For example, when the device parameters include at least the battery level, the preset network mutual assistance condition may include at least that the battery level of the second electronic device is greater than the preset battery level threshold. For example, the preset battery level may be 60%. For example, when the device parameters include at least the device model, the preset network mutual assistance condition may include at least that the device model of the second electronic device is the same as the device model of the first electronic device. And so on.
[0195] The first electronic device may screen the second electronic device based on one device parameter; or the first electronic device may screen the second electronic device based on multiple device parameters. The following embodiments illustrate various existing screening scenarios for the second electronic device.
[0196] In a feasible embodiment, for example, the device parameters include the operator, including:
[0197] If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices from the second electronic devices whose operators are different from that of the first electronic device to send the service data.
[0198] In this embodiment, when the device parameters include at least the operator of the second electronic device, the first electronic device can establish a communication connection and send business data with one or more second electronic devices among the searched second electronic devices that have different operators from the first electronic device.
[0199] For example, reference Figure 7 , Figure 7 A schematic diagram of electronic devices corresponding to different operators is provided. In this diagram, the operator of the first electronic device is operator 1. The second electronic devices searched by the first electronic device include second electronic devices 1 and 2 whose operators are operator 1; second electronic devices 3, 4, 5, and 6 whose operators are operator 2; and second electronic devices 7, 8, and 9 whose operators are operator 3.
[0200] Then, the first electronic device can select one or more second electronic devices from among second electronic device 3, second electronic device 4, second electronic device 5, second electronic device 6, second electronic device 7, second electronic device 8, and second electronic device 9 to establish a communication connection and send service data. For example, the first electronic device can establish a communication connection and send service data with all of second electronic devices 3-9; or the first electronic device can establish a communication connection and send service data with any of second electronic devices 3, 4, 8, and 9.
[0201] In this embodiment, when a first electronic device establishes a communication connection with a second electronic device of a different operator, the communication quality (signal strength) of the second electronic device may not be considered. That is, even if the communication quality of the second electronic device of a different operator is poor, the first electronic device can still establish a communication connection with the second electronic device and send service data, considering that the second electronic device can still provide a backup network link for the service data of the first electronic device.
[0202] In this embodiment, different operators have different communication quality in the crowd gathering scenario, for example, the communication quality of operator 1 is poor in the crowd gathering scenario, but the communication quality of operator 2 and operator 3 is good. Differentiating operators as a preset network assistance condition for screening the second electronic device can improve the transmission success rate of the service data of the first electronic device to some extent.
[0203] In a feasible embodiment, for example, the device parameter includes signal strength, and the first electronic device can screen according to the signal strength of the second electronic device.
[0204] For example, the first electronic device selects one or more second electronic devices to send service data from the second electronic devices with signal strength greater than the second preset strength threshold.
[0205] In this embodiment, the signal strength greater than the second preset strength threshold can be understood as that the communication quality of the second electronic device is good. The second preset strength threshold can be greater than or equal to the first preset strength threshold, and the value range of the second preset strength threshold can be [-60dBm, -85dBm] for example. The first electronic device can select one or more to establish a communication connection and send service data from the second electronic devices with good communication quality. For example, the second electronic devices searched by the first electronic device include second electronic device 1, second electronic device 2, second electronic device 3, second electronic device 4 and second electronic device 5. The operators of these second electronic devices are the same as that of the first electronic device. The signal strengths of the second electronic device 1, the second electronic device 2 and the second electronic device 3 are all greater than the second preset strength threshold, and the signal strengths of the second electronic device 4 and the second electronic device 5 are all less than the second preset strength threshold. In this case, the first electronic device can establish a communication connection with the second electronic device 1, the second electronic device 2 and the second electronic device 3 and send service data; or select one or two second electronic devices from the second electronic device 1, the second electronic device 2 and the second electronic device 3 to establish a communication connection and send service data.
[0206] Alternatively, in a feasible embodiment, for example, the device parameter includes signal strength and operator, and in some cases:
[0207] If the operators of the second electronic devices searched by the first electronic device are all the same as that of the first electronic device, the first electronic device can select one or more second electronic devices to send service data from the second electronic devices with signal strength greater than the second preset strength threshold according to the above screening method based on signal strength.
[0208] In this embodiment, the first electronic device selects the second electronic device with a signal strength greater than the second preset strength threshold to establish a communication connection and send service data, which can improve the transmission success rate of the service data of the first electronic device to a certain extent.
[0209] Alternatively, in another feasible embodiment, the device parameters include signal strength and operator, including:
[0210] If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices whose operators are different from that of the first electronic device and whose signal strength is greater than a third preset strength threshold to send business data.
[0211] In this embodiment, when the device parameters include at least the operator and signal strength of the second electronic device, the first electronic device may, based on the searched second electronic devices, select one or more second electronic devices with signal strength greater than a third preset strength threshold from among the second electronic devices that have different operators than the first electronic device, to establish a communication connection and transmit service data. The third preset strength threshold may be less than or equal to the second preset strength threshold. Exemplarily, the second preset strength threshold may be in the range of [-70 dBm, -90 dBm].
[0212] For example, the operator of the first electronic device is operator 1, and the second electronic devices searched by the first electronic device include second electronic device 1 whose operator is operator 1, second electronic device 2, second electronic device 3, second electronic device 4 whose operator is operator 2, and second electronic device 5, second electronic device 6, and second electronic device 7 whose operator is operator 3. Among them, the signal strengths of second electronic device 2, second electronic device 3, second electronic device 4, and second electronic device 5 are all greater than a third preset strength threshold, and the signal strengths of second electronic device 6 and second electronic device 7 are both less than the third preset strength threshold. Then, the first electronic device can select one or more second electronic devices from second electronic device 2, second electronic device 3, second electronic device 4, and second electronic device 5 to establish a communication connection and send service data. For example, the first electronic device can establish a communication connection and send service data with second electronic device 2, second electronic device 3, second electronic device 4, and second electronic device 5; or the first electronic device can establish a communication connection and send service data with second electronic device 3 and second electronic device 4.
[0213] In this embodiment, different operators exhibit different communication qualities in crowded scenes. For example, in crowded scenes, operator 1's communication quality is poor, but operators 2 and 3's communication quality is good. Using operator differences as a preset network mutual assistance condition for screening second electronic devices, and further selecting a second electronic device with a signal strength greater than a third preset strength threshold to establish a communication connection and send service data, can significantly improve the first electronic device's service data transmission success rate.
[0214] Alternatively, in a feasible embodiment, for example, the device parameters include power, including:
[0215] The first electronic device selects one or more second electronic devices from the second electronic devices whose power levels are greater than a preset power threshold to send service data.
[0216] Because the mutual transmission of business data may consume the power of electronic devices, to ensure that the second electronic device can normally perform its own business and assist the first electronic device in transmitting business data, the power level of the second electronic device must not be too low. For example, the preset power threshold value can range from [40%-80%], assuming the preset power threshold is 59%.
[0217] The second electronic devices searched by the first electronic device include second electronic device 1 with a battery level of 88%, second electronic device 2 with a battery level of 60%, second electronic device 3 with a battery level of 90%, and second electronic device 4 with a battery level of 23%. The battery levels of second electronic devices 1, 2, and 3 are all greater than a preset battery level threshold, while the battery level of second electronic device 4 is less than the preset battery level threshold. Therefore, the first electronic device can select one or more second electronic devices from among second electronic devices 1, 2, and 3 to establish a communication connection and send service data.
[0218] Alternatively, in a feasible embodiment, for example, the device parameters include the operator and the power level, including:
[0219] If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device can select one or more second electronic devices whose battery level is greater than a preset battery level threshold from the second electronic devices whose operator is different from that of the first electronic device to establish a communication connection and send business data.
[0220] Alternatively, in some other feasible embodiments, for example, when the business data transmitted by the first electronic device includes first business data and second business data, the second business data may be business data generated after the first business data. For example, the first business data may be business data transmitted by the first electronic device to the second electronic device for the first time; and the second business data may be business data that the first electronic device is about to transmit to the second electronic device for the second time.
[0221] After the first electronic device sends the first service data, the first electronic device may obtain the performance parameter of the second electronic device forwarding the first service data.
[0222] Among them, the performance parameters can be used to characterize the communication quality of the second electronic device transmitting business data. For example, the performance parameters may include parameters such as signal strength, packet loss rate, bit error rate, etc. in the process of the second electronic device forwarding the business data to the second network device. Before the first electronic device transmits the second business data, it can select a third electronic device with the best performance parameters from the second electronic device to send the second business data. For example, the first electronic device selects a third electronic device with the highest signal strength from the second electronic device to send the second business data; or, the first electronic device selects a third electronic device with the lowest bit error rate from the second electronic device to send the second business data; or, the first electronic device selects a third electronic device with the lowest packet loss rate from the second electronic device to send the second business data. And so on.
[0223] When a first electronic device sends first service data to all or any second electronic devices, this can maximize the transmission of the first service data via multiple backup network links, thereby improving the success rate of first service data transmission. Furthermore, based on the performance parameters of the second electronic device during forwarding of the first service data to the second network device, the first electronic device selects a third electronic device with the best performance to transmit the second service data. This ensures successful transmission of the second service data while also reducing the number of devices sending the second service data and lowering power consumption.
[0224] The second network device corresponding to the second device can also communicate with the service server corresponding to the service in the first electronic device to transmit service data, thereby realizing the normal operation of the service of the first electronic device.
[0225] In some embodiments, when multiple device parameters are involved, the priority of the device parameters can be set. The second electronic device is screened based on the device parameters under different priorities. For example, the priorities are set from high to low in the order of operator, signal strength, battery level, device model, etc. For device parameters with high priority, the corresponding preset network mutual assistance conditions are used as the first screening conditions. For example, when selecting a second electronic device to establish a communication connection, the second electronic device with a different operator from the first electronic device is considered first, followed by the second electronic device with a signal strength greater than a preset second strength threshold, and then the second electronic device with a battery level greater than a preset battery level threshold, and then the second electronic device with the same device model as the first electronic device is considered. This embodiment does not limit the specific method for screening the second electronic device based on one or more device parameters.
[0226] In some embodiments, after executing S103, if the first electronic device does not receive a successful response from any second electronic device to the connection request, for example, the first electronic device receives a rejection response / connection failure response from the second electronic device, or the first electronic device does not receive a successful response / rejection response / connection failure response returned by any second electronic device. In this case, the first electronic device may execute:
[0227] S106. The first electronic device detects whether the network mutual assistance function is enabled; if so, execute S107; if not, the first electronic device outputs a second reminder message.
[0228] In this embodiment, if the first electronic device does not receive a successful response from any second electronic device to the connection request, that is, the first electronic device has not searched for the second electronic device, this may be because the first electronic device has not enabled the network mutual assistance function. In this case, the first electronic device can detect whether the network mutual assistance function is enabled and eliminate the problem of network mutual assistance failure caused by itself through self-test.
[0229] If the first electronic device has enabled the network mutual assistance function, the first electronic device will rebroadcast the connection request and search again to see if there is a second electronic device nearby.
[0230] If the first electronic device does not enable the network mutual assistance function, the first electronic device may output a second reminder message for reminding the user to enable the network mutual assistance function. For example, the first electronic device may display the second reminder message on the current display interface. Figure 8 , Figure 8A schematic diagram of an interface for a first electronic device displaying a second reminder message is provided. The first electronic device can display the second reminder message 801 in the form of a pop-up window, a floating box, a new page, etc. Optionally, the first electronic device can also output the second reminder message via voice. For example, the content of the second reminder message can be "The current device network quality is poor. Please enable the network mutual assistance function for communication."
[0231] In the examples of this application, refer to Figure 9 , Figure 9 A schematic diagram illustrating enabling the network mutual assistance function is provided. To enable the network mutual assistance function on a first electronic device, a user may access the network mutual assistance settings interface 902 by selecting the network mutual assistance option 901 in the settings interface of the first electronic device. The network mutual assistance settings interface 902 may display an introduction to the network mutual assistance function and a button 9021 for confirming the activation. The introduction to the network mutual assistance function explains to the user that, after enabling network mutual assistance, business data generated by applications running on the current device can be transmitted via other devices, and business data generated by applications running on other devices can be transmitted via the current device.
[0232] After the user clicks the button 9021 for confirming activation, that is, after the user confirms activation of the network mutual assistance function, the first electronic device activates the network mutual assistance function. After the first electronic device detects activation of the network mutual assistance function, S107 is executed.
[0233] In some embodiments, the first electronic device may automatically activate the network mutual assistance function upon detecting that the user has entered a preset location. The preset location refers to a place where people usually gather and communication quality is poor. For example, the preset scene may be a bus station, an airport, a subway station, etc. The first electronic device may detect whether the user has entered the preset location through geo-fencing. Alternatively, the first electronic device may detect whether the user has entered the preset scene based on its own positioning. Alternatively, the first electronic device may detect communication quality in real time and automatically activate the network mutual assistance function when the communication quality is poor.
[0234] The first electronic device automatically turns on the network mutual assistance function when entering a preset scenario with poor communication quality, which can improve the efficiency of the first electronic device in performing network mutual assistance and avoid interaction between the first electronic device and the user, so that the user perceives an unsmooth usage experience.
[0235] S107: The first electronic device rebroadcasts the connection request.
[0236] In this embodiment, the first electronic device rebroadcasts a connection request to surrounding devices to request establishment of a near field communication connection.
[0237] In some embodiments, a communication connection may be established with a second electronic device, but business data transmission with the second electronic device may not be possible. In this case, the second electronic device may be discoverable (searchable by the first electronic device, and able to receive and respond to connection requests broadcast by the first electronic device), but the network mutual assistance function is not enabled. The first electronic device may also perform the following:
[0238] S108: If the first electronic device receives a successful response from at least one second electronic device to the connection request, the first electronic device sends a first reminder message to the at least one second electronic device.
[0239] In this embodiment, although the first electronic device searches for the second electronic device, if the first electronic device cannot send business data to the searched second electronic device, then the first electronic device can send a first reminder message to the second electronic device to remind the second electronic device to enable the network mutual assistance function.
[0240] refer to Figure 10 , Figure 10 A schematic diagram of an interface for a second electronic device to display a first reminder message is given. The first reminder message can be displayed in the current interface of the second electronic device in the form of a business card, a pop-up window, a floating box, etc. Among them, the first reminder message 1001 may include introductory content about the network mutual assistance function. Among them, the introductory content about the network mutual assistance function is used to explain to the user that after turning on the network mutual assistance, the business data generated by the current device running the application can be transmitted through other devices; and the business data generated by other devices running the application can be transmitted through the current device. The first reminder message 1001 may also include an on button for turning on the network mutual assistance function and an ignore button for ignoring the first reminder message and not turning on the network mutual assistance function.
[0241] The first electronic device may send the first reminder information to all searched second electronic devices.
[0242] Alternatively, in some embodiments, the first electronic device may display the searched second electronic devices on the interface to form a second electronic device list. Figure 11 , Figure 11 A schematic diagram of an interface of a first electronic device displaying a list of second electronic devices is provided. Figure 11 The search device list 1101 shown can be displayed in the current display interface of the first electronic device in the form of a floating box, pop-up window, etc. The second electronic devices in the second electronic device list can be sorted from first to last according to the time of search; or the second electronic devices in the second electronic device list can be sorted from high to low according to signal strength. The second electronic device list can display at least one piece of information such as the name of the second electronic device, signal strength, operator, and battery level.
[0243] In some embodiments, the first electronic device may sort the at least one second electronic device according to the signal strength from strong to weak, and send the first reminder information to each second electronic device in sequence according to the sorting.
[0244] For example, the first electronic device sends a first reminder message to the second electronic device 1; if the first electronic device does not receive a confirmation instruction from the second electronic device 1 to enable the network mutual assistance function, the first electronic device sends a first reminder message to the second electronic device 2. This continues until the first electronic device receives a confirmation instruction from at least one second electronic device to enable the network mutual assistance function.
[0245] S109: The first electronic device receives a confirmation instruction returned by at least one second electronic device to start the network mutual assistance function, and the first electronic device sends service data to the at least one second electronic device.
[0246] After the first electronic device receives a confirmation instruction returned by at least one second electronic device to enable the network mutual assistance function, it can establish a communication connection with the second electronic device that returned the confirmation instruction to enable the network mutual assistance function, and send business data to it. Optionally, the first electronic device can send business data to all second electronic devices that return the confirmation instruction to enable the network mutual assistance function. Alternatively, the first electronic device can send business data to one or more second electronic devices among the second electronic devices that return the confirmation instruction to enable the network mutual assistance function. For the second electronic device to which the first electronic device selects to send business data, reference can be made to the methods provided in S104 and S105 above, which will not be elaborated in this embodiment.
[0247] In some embodiments, when the first electronic device successfully establishes a connection with the second electronic device and performs business data transmission, the first electronic device may output a prompt message to remind the user that network mutual assistance is in progress; or, display an icon in the status bar to indicate that network mutual assistance is in progress. Figure 12 , Figure 12 A schematic diagram of an electronic device displaying a network mutual assistance logo is provided. The network mutual assistance logo is 1201. Both the first electronic device and the second electronic device can display the network mutual assistance logo to prompt the user that the current device is in a network mutual assistance scenario.
[0248] In an embodiment of the present application, during the process of transmitting service data between a first electronic device and a first network device via a first network link, if the first electronic device experiences one or more conditions indicating deterioration in the communication quality of the first electronic device, such as signal strength less than a first preset strength threshold, retransmission rate less than a preset retransmission threshold, or bit error rate greater than a preset bit error threshold, the first electronic device broadcasts a connection request. When the first electronic device receives a successful response from at least one second electronic device to the connection request, the first electronic device sends service data to at least one second electronic device, thereby enabling the at least one second electronic device to forward the service data of the first electronic device to the second network device via a second network link. That is, during the process of transmitting service data, if the first electronic device experiences a poor network signal, the first electronic device can transmit service data via the second electronic device. In addition to being transmitted via the first network link between the first electronic device and the first network device, the service data of the first electronic device can also be transmitted via the second network link between the second electronic device and the second network device. Multiple network links enable backup transmission of the service data of the first electronic device, improving the success rate of service data transmission of the first electronic device, enhancing the communication signal strength of the first electronic device, and improving the success rate of normal execution of services of the first electronic device.
[0249] During the process of establishing a connection between a first electronic device and a second electronic device and transmitting service data, to ensure normal transmission of the service data, the first electronic device may periodically detect the service data transmission status, the network status of the second electronic device, and the like. In the following embodiments, to facilitate distinguishing between a second electronic device performing service data transmission and a second electronic device not performing service data transmission, the second electronic device performing service data transmission is hereinafter referred to as the target second electronic device.
[0250] In some feasible embodiments, each time the first electronic device sends business data to the target second electronic device, the target second electronic device may also return a success response to the first electronic device to indicate that the target second electronic device has successfully received the business data.
[0251] For example, in some embodiments, the first electronic device may execute:
[0252] S110: The first electronic device detects whether the target second electronic device remains connected.
[0253] In this embodiment, the first electronic device can detect whether the target second electronic device has been in communication connection with the first electronic device. For example, if the target second electronic device disappears from the list of second electronic devices searched by the first electronic device, it is determined that the target second electronic device has disconnected from the communication connection with the first electronic device. In other possible cases, if the first electronic device fails to send business data to the target second electronic device, or if the first electronic device fails to receive a successful response to the business data from the target second electronic device for multiple consecutive times, it is determined that the target second electronic device has disconnected from the communication connection with the first electronic device.
[0254] The first electronic device may periodically detect whether the target second electronic device remains connected. The periodicity may be one detection every 1 second. The period may be set according to actual conditions.
[0255] In some embodiments, if the first electronic device detects that it is disconnected from the target second electronic device, it stops transmitting the service data to the target second electronic device, that is, executes S113.
[0256] In some embodiments, when the target second electronic device remains connected to the first electronic device, the first electronic device may further detect the communication quality of the target second electronic device.
[0257] S111: The first electronic device detects whether the signal strength value of the target second electronic device within a preset time period is greater than a fourth preset strength threshold.
[0258] In this embodiment, when the first electronic device determines that the target second electronic device maintains a communication connection with the first electronic device, it can periodically detect the communication quality of the target second electronic device within a preset time period. For example, the first electronic device can detect the signal strength value of the target second electronic device within a preset time period. The preset time period can be 30 seconds, 1 minute, 2 minutes, etc. If the signal strength value of the target second electronic device is always greater than the fourth preset strength threshold within 1 minute, it is considered that the current communication quality of the target second electronic device is good, and business data transmission with the target second electronic device can continue.
[0259] The first electronic device may periodically detect the communication quality of the target second electronic device within a preset time period. The periodicity may be performed once every 1 second. The period may be set according to actual conditions.
[0260] In some embodiments, if the first electronic device detects that the communication quality of the target second electronic device has deteriorated, that is, the signal strength is less than the fourth preset strength threshold, it can stop transmitting business data between the target second electronic device, that is, execute S113 to avoid increased power consumption due to invalid transmission of business data.
[0261] In some embodiments, if the first electronic device detects that the communication quality of the target second electronic device is continuously good, the first electronic device may further detect whether the service data with the target second electronic device has been completely transmitted.
[0262] S112: The first electronic device detects whether the target second electronic device in which service data is being transmitted still exists.
[0263] In this embodiment, the first electronic device may periodically detect whether there is a target second electronic device that is still in the process of transmitting business data. If there is no target second electronic device that is still in the process of transmitting business data, that is, the business data transmission task has been completed and the target second electronic device is in a state of having no business data transmission task, the business data transmission operation is stopped (execution S113). Optionally, the communication connection with the target second electronic device may be disconnected.
[0264] If there is a target second electronic device that is in the process of transmitting business data, that is, there is still a target second electronic device that is continuing to perform the business data transmission task, in this case, the first electronic device can periodically detect the connection status, communication quality, etc. of the target second electronic device.
[0265] In S110, if the first electronic device detects that the communication connection with the target second electronic device is disconnected; or in S112, if the first electronic device detects that the target second electronic device in the process of transmitting service data does not exist, then the electronic device executes:
[0266] S113: The first electronic device stops transmitting business data with the target second electronic device.
[0267] In this embodiment, the first electronic device stops sending service data to the target second electronic device, and the service execution in the first electronic device is completed. Optionally, the first electronic device can also disconnect the communication connection with the second electronic device (or the target second electronic device) to avoid increasing power consumption of the first electronic device / the second electronic device.
[0268] In some embodiments, during the process of business data transmission between a first electronic device and a target second electronic device, if the first electronic device detects that the power level of the target second electronic device is lower than a preset power threshold, it may also choose to stop sending business data to the target second electronic device to ensure the business / communication / usage needs of the target second electronic device itself.
[0269] In some embodiments, if the first electronic device has completed the mutual transmission of business data, when the first electronic device disconnects the communication connection with the second electronic device, it means that the first electronic device exits the network mutual assistance. In this case, the first electronic device can hide the indicator in the status bar of the first electronic device that is used to indicate that the network mutual assistance is in progress.
[0270] It is understandable that the three periodic detections of the first electronic device involved in S110-S112 can be performed synchronously or asynchronously. When performed asynchronously, the execution order is not limited.
[0271] In an embodiment of the present application, during the process of business data transmission between a first electronic device and a target second electronic device, the first electronic device can periodically detect the connection status, communication quality, whether the business data task is completed, power level, etc. of the target second electronic device, so as to improve the success rate of business data transmission and the success rate of the first electronic device in normal execution of business.
[0272] It should be noted that the personal information used in the technical solution of this application is limited to information for which the individual’s separate consent has been obtained, including but not limited to notifying and reminding the user to read the relevant user agreement (notification) and sign the agreement (authorization) including authorization of relevant user information before the user uses the function.
[0273] In the technical solutions disclosed in this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0274] Figure 13 A possible structural diagram of the electronic device involved in the above embodiments is shown. Figure 13 The electronic device 1300 shown includes a processing module 1301 , a communication module 1302 , and a storage module 1303 .
[0275] The processing module 1301 may be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may include an application processor and a baseband processor. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0276] For example, the processing module 1301 may be as follows Figure 2 The processor 110 shown; the communication module 1302 can be as follows Figure 2 The mobile communication module 150 or wireless communication module 160 shown; the storage module 1303 can be as follows Figure 2 The internal memory 121 shown. The electronic device provided in the embodiment of the present application can be Figure 2 The electronic device 100 is shown.
[0277] The present application also provides a chip system (eg, a system on a chip (SoC)). Figure 14 Schematic diagram of the structure of a chip system shown. The chip system includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 can be interconnected via lines. For example, the interface circuit 1402 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 1402 can be used to send signals to other devices (such as a processor 1401 or a camera of an electronic device). Exemplarily, the interface circuit 1402 can read instructions stored in the memory and send the instructions to the processor 1401. When the instruction is executed by the processor 1401, the electronic device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiments of the present application.
[0278] An embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes the various functions or steps executed by the electronic device 100 in the above-mentioned method embodiment.
[0279] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the electronic device 100 in the above method embodiment. For example, the computer may be the above electronic device 100.
[0280] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0281] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0282] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0283] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0284] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0285] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A communication method, characterized in that: Applied to a communicative electronic device, the communicative electronic device comprising a first electronic device and a second electronic device, the method comprising: During the process of transmitting business data between the first electronic device and the first network device via the first network link, if the communication quality of the first electronic device meets the preset communication condition, the first electronic device broadcasts a connection request; the business data is data generated by the business being executed by the first electronic device; If the first electronic device receives a successful response from at least one of the second electronic devices to the connection request, the first electronic device sends the service data to the at least one second electronic device, so that the at least one second electronic device forwards the service data to the second network device through the second network link; The preset communication conditions include one or more of a signal strength less than a first preset strength threshold, a retransmission rate greater than a preset retransmission threshold, and a bit error rate greater than a preset bit error threshold; Both the first network device and the second network device can communicate with a service server corresponding to a service in the first electronic device.
2. The method according to claim 1, characterized in that The first electronic device sending the service data to the at least one second electronic device includes: The first electronic device obtains device parameters of the at least one second electronic device; The first electronic device selects one or more second electronic devices from second electronic devices whose device parameters meet a preset network mutual assistance condition to send the service data; The device parameters include the operator of the second electronic device, and the preset network mutual assistance condition includes that the operator of the second electronic device is different from the operator of the first electronic device; Alternatively, the device parameter includes a signal strength of the second electronic device, and the preset network mutual assistance condition includes that the signal strength of the second electronic device is greater than a second preset strength threshold; wherein the second preset strength threshold is greater than or equal to the first preset strength threshold; Alternatively, the device parameters include the operator of the second electronic device and the signal strength of the second electronic device, and the preset network mutual assistance condition includes that the operator of the second electronic device is different from the operator of the first electronic device, or that the signal strength of the second electronic device is greater than a second preset strength threshold.
3. The method according to claim 2, characterized in that The device parameters include the operator of the second electronic device and the signal strength of the second electronic device; The first electronic device selects one or more second electronic devices from second electronic devices whose device parameters meet a preset network mutual assistance condition to send the service data, including: If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices from the second electronic devices whose operators are different from that of the first electronic device to send the service data; If there is no second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices from the second electronic devices whose signal strength is greater than the second preset strength threshold to send the service data.
4. The method according to claim 2, characterized in that The device parameters include the operator of the second electronic device; The first electronic device selects one or more second electronic devices from second electronic devices whose device parameters meet a preset network mutual assistance condition to send the service data, including: If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices whose operators are different from that of the first electronic device and whose signal strength is greater than a third preset strength threshold from among the second electronic devices whose operators are different from that of the first electronic device to send the service data; The third preset intensity threshold is smaller than the second preset intensity threshold.
5. The method according to claim 2, characterized in that The device parameters also include device power; the first electronic device selects one or more second electronic devices from second electronic devices whose device parameters meet a preset network mutual assistance condition to send the service data, including: If there is a second electronic device whose operator is different from that of the first electronic device, the first electronic device selects one or more second electronic devices whose operators are different from that of the first electronic device and whose device power level is greater than a preset power threshold from among the second electronic devices whose operators are different from that of the first electronic device to send the service data; or, The first electronic device selects one or more second electronic devices whose device power is greater than the preset power threshold from the second electronic devices whose signal strength is greater than the second preset strength threshold to send the service data.
6. The method according to any one of claims 1 to 5, characterized in that The first electronic device and the second electronic device are electronic devices under the same device account; And / or, the first electronic device and the second electronic device are preset whitelist devices for each other; And / or, both the first electronic device and the second electronic device are electronic devices with a network mutual assistance function enabled; Among them, the electronic device turning on the network mutual assistance function indicates that the electronic device agrees to forward the business data of the first electronic device to the second network device as the second electronic device, and the electronic device agrees to send its own business data to the second electronic device as the first electronic device for forwarding to the second network device.
7. The method according to any one of claims 1 to 6, characterized in that If both the first electronic device and the second electronic device are electronic devices with a network mutual assistance function, after the first electronic device receives a successful response from at least one second electronic device to the connection request, the method further includes: The first electronic device sends a first reminder message to the at least one second electronic device; the first reminder message is used to remind the second electronic device to enable the network mutual assistance function; The first electronic device sending service data to the at least one second electronic device includes: If the first electronic device receives a confirmation instruction for starting the network mutual assistance function returned by the at least one second electronic device, the first electronic device sends service data to the at least one second electronic device.
8. The method according to any one of claims 1 to 7, characterized in that If the first electronic device is an electronic device with a network mutual assistance function, after the first electronic device broadcasts a connection request, the method further includes: If the first electronic device does not receive a successful response to the connection request, the first electronic device outputs a second reminder message; the second reminder message is used to remind the user to enable the network mutual assistance function of the first electronic device; When the first electronic device detects an event of starting the network mutual assistance function, the first electronic device rebroadcasts the connection request.
9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: In the process of the first electronic device sending service data to the at least one second electronic device, the first electronic device periodically obtains a signal strength value of the at least one second electronic device within a preset time period; The first electronic device stops sending the service data to the second electronic device whose signal strength value is less than a fourth preset strength threshold; wherein the fourth preset strength threshold is less than the first preset strength threshold.
10. The method according to any one of claims 1 to 9, characterized in that The business data includes first business data and second business data, where the second business data is business data generated after the first business data; The first electronic device sending the service data to the at least one second electronic device includes: The first electronic device sends the first service data to the at least one second electronic device; The method further comprises: The first electronic device obtains, by the at least one second electronic device, a performance parameter of forwarding the first service data; the performance parameter includes at least one of a signal strength, a bit error rate, and a packet loss rate of the second electronic device forwarding the first service data; The first electronic device sends the second service data to a third electronic device; wherein the third electronic device is an electronic device with the best performance parameters among the at least one second electronic device.
11. The method according to any one of claims 1 to 10, characterized in that The method further comprises: The first electronic device activates the network mutual assistance function when detecting entry into a preset place through geographic fencing; wherein the preset place is a place with poor communication quality, and the preset place includes a subway station, a bus station, and an airport.
12. An electronic device, characterized in that: The electronic device comprises a first chip, a second chip, a memory, and a communication interface; the first chip and the second chip execute a computer program in the memory to implement the steps of the method according to any one of claims 1 to 11; The first chip is used to send the service data of the electronic device to other electronic devices through the communication interface to be forwarded to the corresponding network device; The second chip is used to receive the service data of the other electronic devices through the communication interface, and forward the service data of the other electronic devices to the corresponding network device through the communication interface.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory, wherein: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Multi-replication routing method for selecting eruption range in vehicular vdhoc networks
CN103763193A
Vehicle self-organizing network routing selection method
CN106792970A
Automatic data routing method based on repeaters, and repeaters
CN107846359A
Network link switching method based on position of electronic equipment and electronic equipment
CN114449599A
Data transmission method and related equipment
CN116347570A