A communication method, an electronic device, and a computer-readable storage medium
Patent Information
- Application Number
- CN202410551668.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2044-05-06
AI Technical Summary
通过至少两条通信链路进行通信,增大了电子设备通信成功的概率,可以有效地缓解电子设备在通信信号弱的场景下通信质量差的问题
[0056]第一电子设备向第三电子设备发送第二业务数据;其中,第三电子设备为至少一个第二电子设备中性能参数最优的电子设备。
Smart Images

Figure CN120769321B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a communication method, electronic device, and computer-readable storage medium. Background Technology
[0002] In areas with weak cellular coverage, such as subways, high-speed rail stations, mountainous areas, and remote areas, or in high-traffic areas such as train stations and airports, weak communication signals can lead to poor communication quality or even communication interruptions for electronic devices, severely affecting users' normal communication.
[0003] Therefore, how to ensure the communication quality of electronic devices when the communication signal is weak is a technical problem that urgently needs to be solved. Summary of the Invention
[0004] This application provides a communication method, an electronic device, and a computer-readable storage medium. The electronic device can achieve backup transmission of business data through other devices, realizing the effect of network mutual assistance. Communication via at least two communication links increases the probability of successful communication by the electronic device, effectively alleviating the problem of poor communication quality in scenarios with weak communication signals.
[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions.
[0006] In a first aspect, a communication method is provided, applied to a communicable electronic device, the communicable electronic device including a first electronic device and a second electronic device. The method includes:
[0007] During the process of data transmission of services between the first electronic device and the first network device through the first network link, if the communication quality of the first electronic device meets preset communication conditions, the first electronic device broadcasts a connection request. The service data refers to the data generated by the service 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 at least one second electronic device so that at least one second electronic device forwards the service data to the second network device through the second network link.
[0009] The preset communication conditions include one or more of the following: signal strength less than a first preset strength threshold, retransmission rate greater than a preset retransmission threshold, and 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 this application, during the process of data transmission of services between the first electronic device and the first network device via the first network link, if the first electronic device experiences one or more of the following conditions: 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. Upon receiving 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, enabling at least one second electronic device to forward the service data of the first electronic device to the second network device via the second network link. Both the first and second network devices can communicate with the service server of the services within the first electronic device. In other words, if the first electronic device experiences poor network signal during data transmission, it can transmit service data (to the service server) via the second electronic device. In addition to transmission 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 devices and the second network devices. Multiple network links provide backup transmission for the service data of the first electronic device, improving the transmission success rate of the service data of the first electronic device, indirectly enhancing the communication signal strength of the first electronic device, and increasing the success rate of normal service execution of the first electronic device.
[0012] In one possible implementation of the first aspect, the first electronic device sends service data to at least one second electronic device, including:
[0013] The first electronic device sends service data to any one or more of the at least one second electronic device.
[0014] In another possible implementation of the first aspect, the first electronic device sends service data to at least one second electronic device, including:
[0015] The first electronic device acquires 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 cooperation conditions to send service data.
[0017] The equipment parameters include the operator of the second electronic device, and the preset network cooperation conditions include that the operator of the second electronic device is different from the operator of the first electronic device.
[0018] Alternatively, the device parameters include the signal strength of the second electronic device, and the preset network cooperation conditions include the signal strength of the second electronic device being 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, the preset network cooperation conditions include that the operator of the second electronic device is different from the operator of the first electronic device, or the signal strength of the second electronic device is greater than the second preset strength threshold.
[0020] In this application, the first electronic device establishes a communication connection with a second electronic device whose signal strength is greater than a second preset strength threshold and sends service data, which can improve the success rate of service data transmission for the first electronic device to a certain extent. Different operators exhibit varying communication quality in crowded scenarios. For example, in crowded scenarios, operator 1 has poor communication quality, while operators 2 and 3 have good communication quality. Using the difference in operators as a preset network cooperation condition for selecting the second electronic device can improve the success rate of service data transmission for 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 among those whose device parameters meet preset network cooperation conditions 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 whose operator is different from that of the first electronic device to send 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 among the second electronic devices whose signal strength is greater than the second preset strength threshold to send service data.
[0024] In this application, different operators exhibit varying communication quality in crowded scenarios. For example, in such scenarios, operator 1 demonstrates poor communication quality, while operators 2 and 3 exhibit good communication quality. Using operator differences as a preset network cooperation condition for selecting the second electronic device can, to some extent, improve the success rate of data transmission for the first electronic device.
[0025] In another possible implementation of the first aspect, the device parameters include the operator of the second electronic device. The first electronic device selects one or more second electronic devices from among those whose device parameters meet preset network cooperation conditions 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 signal strength is greater than a third preset strength threshold from among the second electronic devices whose operators are different from those of the first electronic device to send service data.
[0027] The third preset intensity threshold is less than the second preset intensity threshold.
[0028] In this application, different operators exhibit varying communication quality in crowded scenarios. For example, in such scenarios, operator 1 demonstrates poor communication quality, while operators 2 and 3 exhibit good communication quality. Using the difference in operators as a preset network cooperation condition for selecting the second electronic device, 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 success rate of service data transmission for the first electronic device.
[0029] In another possible implementation of the first aspect, the device parameters also include device power. The first electronic device selects one or more second electronic devices from a pool of second electronic devices whose device parameters meet preset network cooperation conditions 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 battery level is greater than a preset battery level threshold from among the second electronic devices whose operators are different from those of the first electronic device to send service data.
[0031] Alternatively, the first electronic device may select one or more second electronic devices from among those with signal strength greater than a second preset strength threshold, whose battery level is greater than a preset battery level 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 perform its own business normally and can help the first electronic device to transmit business data, the first electronic device may select one or more second electronic devices with a power level greater than a preset power threshold to send business data, so as 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 each other's pre-defined whitelist devices.
[0035] And / or, both the first electronic device and the second electronic device are electronic devices with network mutual assistance function enabled.
[0036] The electronic device enabling the network mutual assistance function indicates that the electronic device agrees to act as the second electronic device to forward the business data of the first electronic device to the second network device, and that the electronic device agrees to act as the first electronic device to send its own business data to the second electronic device for forwarding 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 different trust loops, the communication method provided in this application can be used to transmit business data. While ensuring the information security of electronic devices, 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 network interoperability, after the first electronic device receives a successful response from at least one second electronic device to the 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 from at least one second electronic device to enable the network mutual assistance function, the first electronic device sends service data to at least one second electronic device.
[0042] In this application, if the first electronic device does not receive a response to a connection request from any of the second electronic devices, that is, the first electronic device does not find any second electronic devices, it may be because the first electronic device has not enabled the network assistance function. In this case, the first electronic device can check whether it has enabled the network assistance function itself, and eliminate the problem of network assistance failure caused by itself through self-checking.
[0043] In another possible implementation of the first aspect, if the first electronic device is an electronic device with network cooperation capabilities, after the first electronic device broadcasts a 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 assistance function of the first electronic device.
[0045] When the first electronic device detects an event that enables network mutual assistance, the first electronic device rebroadcasts the connection request.
[0046] In this application, although the first electronic device can find the second electronic device, if the first electronic device is unable to send business data to the found 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] During the process of the first electronic device sending service data to at least one second electronic device, the first electronic device periodically acquires the signal strength value of 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. 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 a fourth preset strength threshold within a preset time period, it indicates that the communication quality of the second electronic device has deteriorated significantly, and 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 of the first aspect, the business data includes first business data and second business data, wherein the second business data is business data generated after the first business 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 also includes:
[0055] The first electronic device acquires performance parameters of at least one second electronic device for forwarding the first service data. These performance parameters include at least one of the following: 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 the third electronic device; wherein the third electronic device is the electronic device with the best performance parameters among at least one of the second electronic devices.
[0057] In this application, the first electronic device sends the first service data to all or any of the second electronic devices, which can maximize the transmission of the first service data through multiple backup network links and improve the transmission success rate of the first service data. Furthermore, based on the performance parameters of the second electronic devices forwarding the first service data to the second network devices, the first electronic device selects the third electronic device with the best performance to transmit the second service data. This ensures the successful transmission of the second service data while reducing the number of devices sending the second service data and lowering 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 it detects that it has entered a preset location via geofencing; the preset location is a place with poor communication quality, including subway stations, train stations and airports.
[0060] In this application, the first electronic device automatically activates the network mutual assistance function when entering a preset scenario with poor communication quality. This can improve the efficiency of the first electronic device in network mutual assistance and also avoid the interaction between the first electronic device and the user, thus preventing a user-perceived unsmooth user experience.
[0061] In a second aspect, this 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 the method described in any one of the first aspects.
[0062] The first chip is used to send the service data of the electronic device to other electronic devices for forwarding to the corresponding network device through the communication interface; the second chip is used to receive the service data of other electronic devices through the communication interface and forward the service data of other electronic devices to the corresponding network device through the communication interface.
[0063] Thirdly, 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 the method described in any of the first aspects above.
[0064] Fourthly, a computer-readable storage medium is provided that stores instructions which, when executed by a processor, implement the steps of the method described in any of the first aspects above.
[0065] Fifthly, a computer program product comprising instructions is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the method described in any of the first aspects above.
[0066] In a sixth aspect, embodiments of this application provide a chip, the chip including a processor, the processor being configured to invoke a computer program in memory to perform the method as described in any one of the first aspects.
[0067] It is understood that the beneficial effects achieved by the electronic devices described in the second and third aspects above, the computer-readable storage medium described in the fourth aspect, the computer program product described in the fifth aspect, and the chip described in the sixth aspect can be referred to the beneficial effects in the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description
[0068] Figure 1 Schematic diagrams of some places where people gather, provided for embodiments of this application;
[0069] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0070] Figure 3 A schematic diagram of a layered architecture of an electronic device provided in an embodiment of this application;
[0071] Figure 4 A flowchart illustrating a communication method provided in an embodiment of this application;
[0072] Figure 5 A schematic diagram illustrating a first electronic device selecting a second electronic device to send service data, provided in an embodiment of this application;
[0073] Figure 6 A schematic diagram illustrating a first electronic device selecting two second electronic devices to send service data, provided in an embodiment of this application;
[0074] Figure 7 A schematic diagram illustrating an electronic device corresponding to different operators, provided as an embodiment of this application;
[0075] Figure 8 This application provides a schematic diagram of an interface for a first electronic device to display a second reminder message.
[0076] Figure 9 This is a schematic diagram illustrating the enabling of a network mutual assistance function, provided as an embodiment of this application.
[0077] Figure 10 This application provides a schematic diagram of an interface for a second electronic device to display a first reminder message.
[0078] Figure 11 A schematic diagram of an interface for displaying a list of second electronic devices by a first electronic device, provided in an embodiment of this application;
[0079] Figure 12 A schematic diagram illustrating an electronic device displaying a network mutual assistance identifier, provided as an embodiment of this application;
[0080] Figure 13 A possible structural schematic diagram of the electronic device provided in the embodiments of this application;
[0081] Figure 14 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0082] In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0083] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0084] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0085] With the development of communication technology, communication electronic devices (such as mobile terminals (phones, tablets)) have become indispensable communication tools in people's lives, satisfying their communication needs and internet experience. To provide people with a faster and more convenient communication and internet experience, major operators and technology companies are constantly striving to improve network infrastructure and enhance signal coverage. However, in some areas / locations with weak cellular coverage, or in densely populated areas / locations, the problem of poor communication quality of electronic devices still exists.
[0086] For example, in remote areas, forest scenic areas, mountainous areas, deserts, etc., some operators have weak cellular coverage, resulting in weak communication signals and poor communication quality for electronic devices. For example, refer to Figure 1 , Figure 1 The diagrams show some locations where crowds gather. In subways, tourist attractions, crowded gates, concert / music festival venues, and other densely populated areas such as airports and train stations, signal interference and network congestion can lead to poor network signals and unreliable internet connections for electronic devices.
[0087] Whether in areas with weak cellular coverage or in densely populated areas, poor communication quality of electronic devices leads to unstable network connections or even complete network outages. Specifically, electronic devices may be unable to load web pages, send messages, or answer phone calls. Interference with the communication signal of electronic devices can also degrade call quality. Specifically, calls may experience static or intermittent audio. Even if an electronic device can connect to the network, network congestion can affect data transmission speed, slowing down operations such as downloading and uploading files. Furthermore, some applications that rely on network connections, such as map navigation, instant messaging tools, and social media, may not function properly in areas with poor network signals, causing significant inconvenience to travel and communication. In terms of user experience, network problems can lead to impatience and anxiety, especially when urgently needing internet access for work, contacting others, or making urgent external communications. This poor user experience can negatively impact a user's mood and quality of life.
[0088] Therefore, how to ensure the success rate and communication quality of electronic equipment's business data transmission in these environments with poor communication signals is a technical problem that urgently needs to be solved.
[0089] This application provides a communication method applied to a communicable electronic device, which includes a first electronic device and a second electronic device. During the transmission of service data between the first electronic device and a first network device via a first network link, if the first electronic device experiences one or more of the following conditions: signal strength is less than a first preset strength threshold, retransmission rate is less than a preset retransmission threshold, or bit error rate is greater than a preset bit error threshold, the first electronic device broadcasts a connection request. Upon receiving 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, enabling at least one second electronic device to forward the service data from the first electronic device to the second network device via the second network link. Both the first and second network devices can communicate with the service server of the service in the first electronic device. In other words, if the first electronic device experiences poor network signal during service data transmission, it can transmit service data (to the service 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 service 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 enable backup transmission of the service data of the first electronic device, which improves the transmission success rate of the service data of the first electronic device, enhances the communication signal strength of the first electronic device, and improves the success rate of normal operation of the services of the first electronic device.
[0090] In the communication method provided in this application embodiment, 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 act as a node in the network.
[0091] The following is a brief description of the concepts that may be involved in the embodiments of this application.
[0092] P2P connection: In a P2P connection, nodes can directly interact with data or resources without needing a central server for forwarding, 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 the group of connections. In this embodiment, in a network of multiple devices, the node that responds to a broadcast connection request, establishes a connection with the first electronic device, and receives and forwards service data sent by the first electronic device can act as a GO.
[0094] Group Client (GC): A GC is one of the members that joins a group in a P2P connection. A GC can also act as a Station (STA), connecting to a GO to obtain network services and resources. In this embodiment, in a network of multiple devices, the first electronic device broadcasting a connection request can act as a GC.
[0095] In this embodiment, the first electronic device that broadcasts a connection request may also become a device that forwards service data from other electronic devices. Therefore, the first electronic device can also act as a GC (GC). Similarly, the target second electronic device / second electronic device that forwards the service request from the first electronic device may also have a broadcast connection request, forwarding service data through other electronic devices. Therefore, the second electronic device can also act as a GO (Go). That is, in this embodiment, electronic devices (including the first and second electronic devices) can communicate as either GOs or GCs in the network.
[0096] Station (STA): STA refers to a terminal device in a wireless network, such as a mobile phone or laptop. In a P2P connection, the STA can act as a GC (GC), connecting to the GO (Government Entity) to obtain network services and resources. STAs can be passive network connection participants or active network connection initiators.
[0097] Access Point (AP): An AP is an infrastructure device in a traditional Wi-Fi network, responsible for connecting STAs (Stations) and providing network services. Similar to a Goal in a peer-to-peer (P2P) connection, it is typically used to carry a larger-scale network connection. In a traditional Wi-Fi network, STAs connect to the AP to obtain services such as Internet access and local area network (LAN) connectivity.
[0098] The communication method provided in this application can be applied to electronic devices with communication functions. Exemplarily, the electronic device can be a portable computer (such as a mobile phone), tablet computer, laptop computer, personal computer (PC), wearable electronic device (such as a smartwatch), augmented reality (AR) / virtual reality (VR) device, in-vehicle computer, etc. The following embodiments do not impose any special limitations on the specific form of the electronic device.
[0099] Figure 2 A schematic diagram of the structure of the electronic device 100 is shown.
[0100] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, display screen 194, and subscriber identification module (SIM) card interface 195, etc.
[0101] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0102] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0103] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0104] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0105] In some embodiments, the processor 110 may include one or more interfaces. 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, etc.
[0106] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0107] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives 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 supply power to the electronic device via the power management module 141.
[0108] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0109] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0111] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0112] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0113] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, 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), and infrared (IR). 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0114] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0115] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0116] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may 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 miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0117] In this embodiment, the electronic device can display a prompt message indicating that the network mutual assistance function has been activated on its display screen. In some optional embodiments, for example, after the first electronic device sends service data to at least one second electronic device, the first electronic device can display a prompt message indicating that service data transmission has been completed through the mutual assistance device. In some optional embodiments, for example, when the second electronic device receives service data sent by the first electronic device, the second electronic device can display a prompt message indicating that it has received service data from the mutual assistance device.
[0118] The external storage 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 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0119] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0120] Electronic device 100 can implement audio functions such as music playback and recording through audio module 170, speaker, receiver, microphone, headphone jack, and application processor.
[0121] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located 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 removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses 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 this embodiment, the electronic device can detect the operator of the SIM card and obtain the operator as a device parameter. The device parameter can be applied to the selection process of the target second electronic device.
[0124] In this embodiment, the first electronic device and the second electronic device establish a network connection based on an integrated circuit (IC) chip. (See reference...) Figure 3 , Figure 3 A schematic diagram of a layered architecture for an electronic device 100 is provided.
[0125] The layered architecture of electronic devices comprises several layers, each with a clear role and function. Layers communicate with each other via software interfaces. In some embodiments, electronic devices are 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. For example... Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, voice call, navigation, WLAN, and SMS.
[0127] In some embodiments, the business data of an electronic device is business data generated by various applications in the application layer.
[0128] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0129] For example, the application framework layer may include a content provider, a view system, a phone manager, a notification manager, etc.
[0130] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0131] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0132] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0133] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0134] The kernel layer contains display drivers, camera drivers, audio drivers, sensor drivers, and so on.
[0135] Below the kernel layer lies the chip layer. Electronic devices communicate with each other via air interface transmission through the chip. For example, electronic device 1 initiates a voice call from the application layer. The voice call data is transmitted down from the application layer to the chip layer, where the chip sends a voice call request to the corresponding electronic device 2. The chip in electronic device 2 processes this voice call request and generates a voice call command. This command is then transmitted up from the chip layer to the application layer, triggering the corresponding application to respond to the command.
[0136] In some embodiments, the capabilities of a chip can determine the role of an electronic device in a network. For example, a first electronic device sends service data to a second electronic device via a chip, enabling 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 act as a GC (GC) in the network, and the chip of the second electronic device has the capability to act as a GO (Go) in the network.
[0137] In some embodiments, if other electronic devices send service data to the first electronic device during the transmission of service data, and the first electronic device wants to send the service data to the first network device via the first network link, then the first electronic device needs to act as both the GC (GC) and GO (Go) in the network. That is, the chip of the first electronic device needs to have the capability to support the electronic device simultaneously existing as both a GO and a GC in the network.
[0138] If the chip in an electronic device is capable of supporting the device to exist simultaneously as both a GO (Go) and GC (GC) in a network, it can achieve the goal of forwarding service data from other electronic devices while simultaneously sending service data from one device to another. For example, if the electronic device's operating system is... The system's electronic equipment.
[0139] In some embodiments, the chip of an electronic device may only have the capability to support the electronic device simultaneously existing in the network as one identity (GO or GC). For example, the electronic device may be an electronic device with an operating system of another type. In this case, a small chip (second chip) can be deployed in the electronic device, while the chip of the electronic device itself can serve as the first chip. While the first chip of the electronic device supports the electronic device existing in the network as one identity (e.g., GO or GC), the second chip of the electronic device can support the electronic device simultaneously existing in the network as another identity (e.g., GC or GO), thereby enabling the mutual transmission of service data between multiple electronic devices. The second chip can be the same as the first chip, or it can be different from the first chip. The second chip can have the same communication capabilities as the first chip.
[0140] Based on the premise that the chips (first chip and / or second chip) in the electronic devices involved in the embodiments of this application have the ability to support the electronic devices to exist in the network with two identities (GO or GC) at the same time, the communication method provided by the embodiments of this application is introduced.
[0141] refer to Figure 4 , Figure 4 A flowchart of a communication method is provided, including:
[0142] S101, The first electronic device and the first network device transmit service data through the first network link.
[0143] The first network device refers to the network equipment of the operator corresponding to the first electronic device. The first network device can be a base station, core network equipment, etc.
[0144] In this embodiment, the data transmission link between the first electronic device and the first network device can be referred to as the first network link. The data generated by the first electronic device during the execution of services is service data. For example, when the first electronic device uses a cellular network to browse web pages, watch videos, or listen to music, the service data can be the data generated from browsing web pages, watching videos, or listening to music; when the first electronic device uses a cellular network to make a voice call, the service data can be the data generated from the voice call; when the first electronic device makes a phone call, the service data can be the data generated from the phone call.
[0145] The first electronic device transmits service data to the first network device, and the first network device communicates with the corresponding service server to complete the service execution. During service transmission, if the first electronic device experiences poor communication quality, the service data transmission may fail, preventing the first electronic device from running the current service. For example, a failed webpage data transmission may prevent the first electronic device from loading a webpage; a failed video data transmission may prevent the first electronic device from playing a video; and a failed voice call data transmission may result in poor voice call quality or interruption of the voice call.
[0146] In this embodiment, to avoid service data transmission failure due to poor communication quality in the environment where the first electronic device is located, thereby preventing the first electronic device from performing the corresponding service, the first electronic device can use the communication method of this embodiment to transmit service data during the transmission of service data between the first electronic device and the first network device, based on its own communication quality.
[0147] S102. The first electronic device determines whether the communication quality meets the preset communication conditions; if so, it executes S103.
[0148] The preset communication conditions include one or more of the following: signal strength less than a first preset strength threshold, retransmission rate greater than a preset retransmission threshold, and bit error rate greater than a preset bit error threshold.
[0149] In this embodiment, communication quality meeting preset communication conditions means that the communication quality of the environment in which the first electronic device is currently located is relatively poor. That is, S103 is executed when the first electronic device has at least one of the following conditions.
[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, wherein, for example, the value range of the first preset strength threshold can be [-85dBm, -90dBm]; the retransmission rate of the data transmission of the first electronic device is greater than a preset retransmission threshold; and the bit error rate of the data transmission of the first electronic device is greater than a 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 in which the first electronic device is located is relatively poor, and a backup link transmission operation for business data using the communication method of this embodiment is required. In this case, S103 is executed.
[0151] In some other feasible embodiments, the first electronic device can also determine that the communication quality of its current environment is relatively poor based on other judgment conditions. For example, if the data transmission uplink / downlink 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 can be considered relatively poor. Or, for example, 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 can be considered relatively poor.
[0152] In some other feasible embodiments, situations where the communication quality of the first electronic device is relatively poor include when the first electronic device is in an area / location with weak communication signal coverage; or when the first electronic device is in an area / scene where there are many people / communication devices. In the second case, if the first electronic device detects that the number of nearby communication devices is greater than the preset number of devices, it can also trigger the execution of S103 to perform a backup link transmission operation for 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 such devices or the quality of its communication, the first electronic device can directly trigger S103 to perform a backup link transmission operation for service data. This approach can improve the transmission efficiency and success rate of service data for the first electronic device in any scenario, but it 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 can broadcast a connection request to surrounding devices. This connection request is used to request the establishment of a near-field communication (NFC) connection. The NFC connection can be a Bluetooth connection, a Wi-Fi connection, a hotspot connection, etc. The purpose of the first electronic device broadcasting the connection request is to search for nearby electronic devices that can provide network assistance.
[0156] In some embodiments, if the first electronic device and the second electronic device are under the same account, that is, if the first electronic device and the second electronic device are trust ring devices, the first electronic device can directly search for electronic devices under the same account and send connection requests to them. In this case, electronic devices under the same account can discover each other through a private protocol, thereby establishing connections. For example, the same account can be a device account belonging to the same brand, and this device account can be simultaneously logged into different devices of the same brand. For example, devices under the same device account of the same brand include mobile phone 1, mobile phone 2, tablet computer, and smartwatch. Then, mobile phone 1, mobile phone 2, tablet computer, and smartwatch are electronic devices under the same account. When at least two of mobile phone 1, mobile phone 2, tablet computer, and smartwatch are in near-field communication, the at least two devices in near-field communication can act as the first electronic device / second electronic device for each other, performing backup link forwarding and transmission of business data.
[0157] In some embodiments, if the first electronic device and the second electronic device are each other's pre-defined whitelisted devices, the first electronic device can also directly search whether the second electronic device is nearby. If the second electronic device is nearby, a connection request is sent to the second electronic device. For example, the first electronic device can customize its pre-defined whitelist of devices. For instance, it can set the electronic devices of relatives or friends as whitelisted devices. When the first electronic device is in near-field communication with one or more of the pre-defined whitelisted devices, at least two devices in near-field communication can act as each other's first electronic device / second electronic device, performing backup link forwarding and transmission of business data.
[0158] In some embodiments, the first electronic device and the second electronic device can be any electronic device with network assistance enabled. That is, the first electronic device and the second electronic device can be unfamiliar electronic devices. When at least two electronic devices with network assistance enabled are in near-field communication, the at least two devices in near-field communication can act as each other's first electronic device / second electronic device, performing backup link forwarding and transmission of service 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 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, depending on the different relationships between the first electronic device and the second electronic device, different communication connections can be established between the first electronic device and the second electronic device.
[0162] For example, the first electronic device and the second electronic device may be under the same device account, and they may be trusted ring devices for each other. In this case, the first and second electronic devices can establish a communication connection for full-scenario services through a private protocol. This full-scenario service communication connection means that the first electronic device can not only send service data to the second electronic device for backup transmission, but it can also back up all or part of its device data to the second electronic device.
[0163] In other embodiments, the first electronic device and the second electronic device can be mutually whitelisted devices. In this case, the first electronic device and the second electronic device can establish near-field communication connections or communication connections for all scenarios through agreed / private protocols.
[0164] In other embodiments, both the first electronic device and the second electronic device are electronic devices with network interoperability capabilities. In this case, the first electronic device and the second electronic device can also establish near-field communication connections or full-scenario service communication connections through agreed / proprietary protocols.
[0165] In this embodiment, enabling network assistance on an electronic device signifies that the electronic device agrees to act as a second electronic device to forward the service data of the first electronic device to the second network device. That is, the electronic device agrees to act as a GO (Getting On-Gear) to forward service data transmitted by other devices to its own corresponding network device via the corresponding network link.
[0166] Simultaneously, enabling network cooperation signifies that the electronic device agrees to act as the first electronic device, sending its own service 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 (Generator) to send service data to other devices, enabling these devices to forward the data to the corresponding network device via the appropriate network link.
[0167] In some embodiments, a first electronic device may select one or more second electronic devices that have returned successful responses to connection requests to establish a communication connection. For example, if the first electronic device receives only one response to a connection request from a second electronic device, it establishes a communication connection with that single second electronic device. If the first electronic device receives successful responses to connection requests from N second electronic devices, it may establish communication connections with all N second electronic devices; or, it may select n second electronic devices from the N second electronic devices to establish a communication connection. Here, 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 involve user information of the first electronic device. When the first electronic device sends the service data to the second electronic device, it can encrypt the data. The encrypted service data is then forwarded by the second electronic device to the second network device. The second network device can decrypt the encrypted service data using an agreed-upon decryption method and process the data.
[0170] In this embodiment, the algorithm used to encrypt business data can be a conventional encryption algorithm. For example, the data encryption algorithm can be an irreversible encryption algorithm or a reversible encryption algorithm. Irreversible encryption algorithms include Message Digest Algorithm 5 (MD5) and Secure Hash Algorithm (SHA). Reversible encryption algorithms are further divided into symmetric encryption algorithms and asymmetric encryption algorithms. For example, symmetric encryption algorithms can include the Data Encryption Standard (DES) algorithm and the Advanced Encryption Standard (AES) algorithm; asymmetric encryption algorithms can include the RSA encryption algorithm.
[0171] Encrypting business data using encryption algorithms before transmission can improve data transmission security, including backup transmission links, increased transmission success rates, and protection against data leaks from electronic devices and user information.
[0172] After the first electronic device sends 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. Furthermore, the service data can also be transmitted as backup 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 has returned a response to the connection request to establish a communication connection and send service data.
[0174] The first electronic device can randomly select one or more second electronic devices to establish a communication connection and transmit service data. In this scenario, the communication quality or operator parameters of the second electronic devices are not considered; the goal is to achieve multiple backup links for transmitting the service data of the first electronic device. Regardless of the communication quality or operator of the second electronic device (whether it is the same as or different from the first), the second electronic device can provide backup links for the service data of the first electronic device, thus improving the success rate of service data transmission.
[0175] For example, Figure 5 A schematic diagram is given of a first electronic device selecting a second electronic device to send service data.
[0176] refer to Figure 5 The first electronic device and the second electronic device may share the same operator. When they share the same operator, the network devices of the first electronic device and the second electronic device in the near-field communication connection may be the same.
[0177] Figure 5 In this scenario, the mobile phone transmits (communicates) service data 1 with the base station and service server via network link 1. After receiving a response from the tablet computer regarding the connection request, the mobile phone (first electronic device) establishes a communication connection with the tablet computer (second electronic device). The mobile phone sends encrypted service data 1 to the tablet computer. After receiving the encrypted service data 1, the tablet computer forwards it to the base station via network link 2, so that the base station can send the service data to the service server. The mobile phone's service data 1 can be transmitted from network link 1 between the mobile phone and the base station, or from network link 2 between the tablet computer and the base station, thus achieving backup transmission of the mobile phone's service data 1. Assume that the mobile phone's chip supports the mobile phone simultaneously as a GO / GC; the tablet computer's first chip supports the tablet computer as a GO, and the second chip supports the tablet computer as a GC. Therefore, the mobile phone can establish a communication connection with the tablet computer's first chip through its own chip.
[0178] Accordingly, the tablet computer can transmit (communicate) its own service data 2 with the base station and service server via network link 3. After the tablet computer (first electronic device) establishes a communication connection with the mobile phone (second electronic device), the tablet computer can also encrypt its own service data 2 and send it to the mobile phone, so that the mobile phone forwards the encrypted service data 2 to the base station via network link 4, so that the base station can send the service data to the service server. The tablet computer's service data 2 can be transmitted from network link 3 between the tablet computer and the base station, or from network link 4 between the mobile phone and the base station, realizing backup transmission of the tablet computer's service data 2 via two network links. It is assumed that the mobile phone's chip can support the mobile phone to act as both GO and GC simultaneously; 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 chip communication connection with the mobile phone through the second chip.
[0179] It is understandable that multiple network links may be involved between electronic devices and network devices. These multiple network links include links used to transmit their own service data, links used to transmit service data sent by other devices, and so on.
[0180] for example, Figure 5 The network links formed between the mobile phone and the base station include network link 1 and network link 4. The mobile phone sends its own service data 1 to the base station through network link 1; the mobile phone sends the service data 2 sent by the tablet computer to the base station through network link 4. Figure 5 The network links between the tablet computer and the base station include network link 2 and network link 3. The tablet computer sends its own service data 2 to the base station through network link 2; the tablet computer sends the service data 1 sent by the mobile phone to the base station through network link 3.
[0181] For example, Figure 6 A schematic diagram is given of a first electronic device selecting two second electronic devices to send service data.
[0182] Figure 6 The present application describes a communication method provided in its embodiments by illustrating how tablet computers can play different roles within a formed network. Figure 6 The tablet computer can be either a first electronic device or a second electronic device. When the tablet computer is used as the first electronic device (GC), it can establish a communication connection with the second electronic device through the first chip, and transmit the service data 2 of the tablet computer to the second electronic device for service data forwarding; when the tablet computer is used as the second electronic device (GO), it can establish a communication connection with the first electronic device through the second chip, and forward the received service data to the corresponding network device.
[0183] Specifically, refer to Figure 6 When the tablet and mobile phone 1 share the same carrier, the network device for their near-field communication (NFC) connection is the same: base station 1. When the tablet and mobile phone 2 share different carriers, their network devices for the NFC connection are different; the tablet corresponds to base station 1, and the mobile phone 2 corresponds to base station 2. Both base station 1 and base station 2 can communicate with the service server.
[0184] Figure 6 In this system, the tablet computer transmits (communicates) service data 2 with base station 1 and the service server via network link 2. After receiving a connection request response from mobile phone 1, the tablet computer, acting as the GC (GC Controller), establishes a communication connection with mobile phone 1 through the first chip. The tablet computer sends encrypted service data 2 to mobile phone 1. After receiving the encrypted service data 2, mobile phone 1 forwards it to base station 1 via network link 4, so that base station 1 can send service data 2 to the service server. After receiving a connection request response from mobile phone 2, the tablet computer, acting as the GC, establishes a communication connection with mobile phone 2 through the first chip. The tablet computer sends encrypted service data 2 to mobile phone 2. After receiving the encrypted service data 2, mobile phone 2 forwards it to base station 2 via network link 6, so that base station 2 can send service data 2 to the service server.
[0185] Thus, the tablet computer's service data 2 can be transmitted from network link 4 between mobile phone 1 and base station 1, or from network link 6 between mobile phone 2 and base station 2, achieving backup transmission of the tablet computer's service data 2 via three network links.
[0186] The tablet computer, acting as the GO (Go), can establish a communication connection with mobile phone 1 / 2 via a second chip. Mobile phone 1 / 2 can also send their respective service data 1 / service data 3 to the tablet computer after encryption. The tablet computer then forwards the encrypted service data 1 / service data 2 to base station 1 via network link 3, enabling base station 1 to send service data 1 / service data 2 to the service server.
[0187] Thus, the service data 1 of mobile phone 1 can be transmitted from network link 3 between the tablet and base station 1, or from network link 1 between mobile phone 1 and base station 1, achieving backup transmission of the service data 1 of mobile phone 1 via two network links. The service data 3 of mobile phone 2 can be transmitted from network link 3 between the tablet and base station 1, or from network link 5 between mobile phone 2 and base station 2, achieving backup transmission of the service data 3 of mobile phone 2 via two network links.
[0188] In a network consisting of mobile phone 1, mobile phone 2, and tablet computer, all three devices can act as either a GO (Go-to-Go) device for network cooperation or a GC (Garbage Collector) device for seeking network cooperation. This can be achieved through a chip capable of supporting electronic devices to exist in the network simultaneously as both GO and GC.
[0189] In some embodiments, the second electronic device involved in this application, which serves as an electronic device providing a backup network link for the first electronic device, may also be referred to as a "helper" device.
[0190] In some other feasible embodiments, the first electronic device may further filter at least one second electronic device (hereinafter referred to as the searched second electronic device) that returns a response to the connection request, establish a communication connection with the filtered second electronic devices, and send service data. Exemplarily, in some embodiments, this includes:
[0191] S1051, The first electronic device acquires 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 from the second electronic device to the connection request received by the first electronic device may also include the device parameters of the second electronic device. These device parameters may include one or more pieces of information such as the operator to which the second electronic device belongs, 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, and the battery level of the second electronic device.
[0193] S1052. 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 conditions to send service data.
[0194] In this embodiment, preset network cooperation conditions correspond to device parameters. For example, when the device parameters include at least the carrier, the preset network cooperation condition may include at least that the carrier of the second electronic device is different from that of the first electronic device. For example, when the device parameters include at least signal strength, the preset network cooperation condition may include at least that the signal strength of the second electronic device is greater than a second preset strength threshold. The second preset strength threshold is greater than a first preset strength threshold. For example, when the device parameters include at least battery level, the preset network cooperation condition may include at least that the battery level of the second electronic device is greater than a preset battery level threshold. For example, the preset battery level could be 60%. For example, when the device parameters include at least the device model, the preset network cooperation condition may include at least that the device model of the second electronic device is the same as that of the first electronic device. And so on.
[0195] The first electronic device can select the second electronic device based on one device parameter; alternatively, the first electronic device can select the second electronic device based on multiple device parameters. The following embodiments illustrate the various selection scenarios for the second electronic device.
[0196] In one feasible embodiment, for example, the device parameters include the operator. This includes:
[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 whose operator is different from that of the first electronic device to send service data.
[0198] In this embodiment, if the device parameters include at least the operator of the second electronic device, the first electronic device can establish a communication connection and send service data from one or more second electronic devices whose operators are different from those of the first electronic device.
[0199] For example, refer to Figure 7 , Figure 7 A schematic diagram of an electronic device corresponding to different operators is given. 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 device 1 and second electronic device 2, which are operators of operator 1; second electronic device 3, second electronic device 4, second electronic device 5, and second electronic device 6, which are operators of operator 2; and second electronic device 7, second electronic device 8, and second electronic device 9, which are operators of operator 3.
[0200] Therefore, the first electronic device can select one or more of the second electronic devices 3, 4, 5, 6, 7, 8, and 9 to establish a communication connection and send service data. For example, the first electronic device can establish a communication connection with all of the second electronic devices 3 through 9 and send service data; or, the first electronic device can establish a communication connection with any one of the second electronic devices 3, 4, 8, or 9 and send service data.
[0201] In this embodiment, the first electronic device establishes a communication connection with a second electronic device from a different operator, regardless of the communication quality (signal strength) of the second electronic device. That is, even if the communication quality of the second electronic device from a different operator is poor, considering that the second electronic device can still provide a backup network link for the service data of the first electronic device, the first electronic device can still establish a communication connection with the second electronic device and send service data.
[0202] In this embodiment, different operators exhibit varying communication quality in crowded scenarios. For example, in such scenarios, operator 1 demonstrates poor communication quality, while operators 2 and 3 exhibit good communication quality. Using the difference in operators as a preset network cooperation condition for selecting the second electronic device can, to some extent, improve the success rate of service data transmission for the first electronic device.
[0203] In one feasible embodiment, for example, the device parameters include signal strength, and the first electronic device can filter based on the signal strength of the second electronic device.
[0204] For example, the first electronic device selects one or more second electronic devices from among the second electronic devices whose signal strength is greater than a second preset strength threshold to send service data.
[0205] In this embodiment, a signal strength greater than a second preset strength threshold can be understood as indicating good communication quality of the second electronic device. The second preset strength threshold can be greater than or equal to a first preset strength threshold; for example, the range of the second preset strength threshold can be [-60dBm, -85dBm]. The first electronic device can select one or more of the second electronic devices with good communication quality to establish a communication connection and send service data. 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 those of the first electronic device. The signal strengths of second electronic devices 1, 2, and 3 are all greater than the second preset strength threshold, while the signal strengths of second electronic devices 4 and 5 are all less than the second preset strength threshold. In this case, the first electronic device can establish a communication connection with all of the second electronic devices 1, 2, and 3 and send service data; or, it can select one or two of the second electronic devices 1, 2, and 3 to establish a communication connection and send service data.
[0206] Alternatively, in one feasible embodiment, for example, the device parameters include signal strength and carrier information, in some cases:
[0207] If the operators of all the second electronic devices found by the first electronic device are the same as those of the first electronic device, the first electronic device can select one or more second electronic devices from the second electronic devices whose signal strength is greater than the second preset strength threshold to send service data, according to the above-mentioned filtering method based on signal strength.
[0208] In this embodiment, 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 service data, which can improve the success rate of service data transmission of the first electronic device to a certain extent.
[0209] Alternatively, in another feasible embodiment, the device parameters include signal strength and carrier information, 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 signal strength is greater than a third preset strength threshold from among the second electronic devices whose operators are different from those of the first electronic device to send service 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 can, based on the searched second electronic devices, select one or more second electronic devices from those with different operators than the first electronic device, whose signal strength is greater than a third preset strength threshold to establish a communication connection and send service data. The third preset strength threshold can be less than or equal to the second preset strength threshold; for example, the value range of the second preset strength threshold can be [-70dBm, -90dBm].
[0212] For example, the operator of the first electronic device is Operator 1. The second electronic devices searched by the first electronic device include second electronic device 1 (operator 1), second electronic devices 2, 3, and 4 (operators 2), and second electronic devices 5, 6, and 7 (operators 3). The signal strengths of second electronic devices 2, 3, 4, and 5 are all greater than a third preset strength threshold, while the signal strengths of second electronic devices 6 and 7 are both less than the third preset strength threshold. Therefore, the first electronic device can select one or more of the second electronic devices 2, 3, 4, and 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 all of the second electronic devices 2, 3, 4, and 5; or, the first electronic device can establish a communication connection and send service data with only second electronic devices 3 and 4.
[0213] In this embodiment, different operators exhibit varying communication quality in crowded scenarios. For example, in such scenarios, operator 1 demonstrates poor communication quality, while operators 2 and 3 exhibit good communication quality. Using the difference in operators as a preset network cooperation condition for selecting the second electronic device, 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 success rate of service data transmission for the first electronic device.
[0214] Alternatively, in one feasible embodiment, for example, the device parameters include power level, including:
[0215] The first electronic device selects one or more second electronic devices from which the power level is greater than a preset power threshold to send service data.
[0216] Since the mutual transmission of business data may consume the power of electronic devices, the power level of the second electronic device cannot be too low in order to ensure that it can perform its own business normally and can assist the first electronic device in transmitting business data. For example, the preset power threshold can be in the range of [40%-80%], and it is assumed that the preset power threshold is 59%.
[0217] The first electronic device detects three second electronic devices: second electronic device 1 with 88% battery, second electronic device 2 with 60% battery, second electronic device 3 with 90% battery, and second electronic device 4 with 23% battery. The battery levels of second electronic devices 1, 2, and 3 are all greater than a preset battery threshold, while the battery level of second electronic device 4 is less than the preset battery threshold. Therefore, the first electronic device can select one or more of these second electronic devices to establish a communication connection and send service data.
[0218] Alternatively, in one feasible embodiment, for example, the device parameters include carrier and battery 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 power is greater than a preset power threshold from the second electronic devices whose operator is different from that of the first electronic device to establish a communication connection and send service data.
[0220] Alternatively, in other feasible methods, such as when the service data transmitted by the first electronic device includes first service data and second service data, the second service data can be service data generated after the first service data. For example, the first service data can be the service data that the first electronic device transmits to the second electronic device for the first time; and the second electronic device can be the service data that the first electronic device is preparing to send to the second electronic device for the second time.
[0221] After the first electronic device sends the first service data, the first electronic device can obtain the performance parameters of the second electronic device forwarding the first service data.
[0222] Performance parameters can be used to characterize the communication quality of the second electronic device transmitting service data. For example, performance parameters may include signal strength, packet loss rate, bit error rate, etc., during the process of the second electronic device forwarding service data to the second network device. Before transmitting the second service data, the first electronic device can select a third electronic device with the best performance parameters from the second electronic devices to send the second service data. For example, the first electronic device might select the third electronic device with the highest signal strength from the second electronic devices; or, the first electronic device might select the third electronic device with the lowest bit error rate from the second electronic devices; or, the first electronic device might select the third electronic device with the lowest packet loss rate from the second electronic devices, and so on.
[0223] The first electronic device sends the first service data to all or any second electronic device, which can maximize the transmission of the first service data through multiple backup network links and improve the transmission success rate of the first service data. Furthermore, based on the performance parameters of the second electronic device 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. This ensures the successful transmission of the second service data while 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 and enable the normal operation of the service in the first electronic device.
[0225] In some embodiments, when multiple device parameters are involved, a priority can be set for these parameters. The selection of a second electronic device is based on these different priority parameters. For example, priorities can be set from highest to lowest, such as operator, signal strength, battery level, and device model. The device parameter with the highest priority has its corresponding preset network cooperation condition used as the primary selection criterion. For instance, when selecting a second electronic device to establish a communication connection, the following are considered first: a second electronic device with a different operator than the first electronic device; second, a second electronic device with a signal strength greater than a preset second strength threshold; third, a second electronic device with a battery level greater than a preset battery level threshold; and finally, a second electronic device with the same device model as the first electronic device. This embodiment does not limit the specific method of selecting a 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 of the second electronic devices for the connection request—for example, if the first electronic device receives a rejection response / connection failure response from the second electronic device, or if the first electronic device does not receive a success response / rejection response / connection failure response from any of the second electronic devices—the first electronic device may perform the following:
[0227] S106. The first electronic device checks whether the network mutual assistance function is enabled; if yes, proceed to S107; if no, the first electronic device outputs a second reminder message.
[0228] In this embodiment, if the first electronic device does not receive a successful response to the connection request from any of the second electronic devices, that is, the first electronic device has not found any second electronic devices, it may be because the first electronic device has not enabled the network assistance function. In this case, the first electronic device can check whether it has enabled the network assistance function itself, and eliminate the problem of network assistance failure caused by itself through self-checking.
[0229] If the first electronic device has enabled network assistance, it will rebroadcast the connection request and search again for the presence of a second electronic device nearby.
[0230] If the first electronic device has not enabled the network mutual assistance function, it can output a second reminder message to remind the user to enable the network mutual assistance function. For example, the first electronic device can display the second reminder message on the current display screen. (See reference...) Figure 8 , Figure 8A schematic diagram of an interface for displaying a second reminder message on a first electronic device is provided. The first electronic device can display the second reminder message 801 in the form of a pop-up window, a floating box, or a new page. 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 network quality of the device is poor. Please enable the network assistance function for communication."
[0231] In the embodiments of this application, reference is made to Figure 9 , Figure 9 A schematic diagram illustrating the activation of the network mutual assistance function is provided. Users can activate the network mutual assistance function of a first electronic device by accessing the network mutual assistance settings interface 902 through the network mutual assistance option 901 in the device's settings interface. The network mutual assistance settings interface 902 displays an introduction to the network mutual assistance function and a confirmation button 9021. The introduction explains to the user that after activating network mutual assistance, business data generated by applications running on the current device can be transmitted through other devices; conversely, business data generated by applications running on other devices can be transmitted through the current device.
[0232] After the user clicks the "Confirm Activation" button 9021, that is, after the user confirms the activation of the network mutual assistance function, the first electronic device activates the network mutual assistance function. After the first electronic device detects that the network mutual assistance function has been activated, it executes S107.
[0233] In some embodiments, the first electronic device can automatically activate the network mutual assistance function when it detects that it has entered a preset location. The preset location refers to a place where people typically congregate and communication quality is poor. For example, the preset scenario could be a train station, airport, subway station, etc. The first electronic device can detect whether it has entered the preset location through geofencing. Alternatively, the first electronic device can detect whether it has entered the preset scenario based on its own location. Alternatively, the first electronic device can monitor communication quality in real time and automatically activate the network mutual assistance function when communication quality is poor.
[0234] When the first electronic device enters a preset scenario with poor communication quality, it automatically activates the network mutual assistance function, which can improve the efficiency of the first electronic device in network mutual assistance and avoid the interaction between the first electronic device and the user, thus avoiding a user-perceived unsmooth user experience.
[0235] S107, The first electronic device rebroadcasts the connection request.
[0236] In this embodiment, the first electronic device rebroadcasts a connection request to the surrounding devices to request the establishment of a near-field communication connection. See the implementation of S103 for details.
[0237] In some embodiments, there may be a situation where a communication connection is established with a second electronic device, but business data transmission is not possible. In this case, the second electronic device may be discoverable (can be searched by the first electronic device and can receive and respond to connection requests broadcast by the first electronic device), but network cooperation 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 at least one second electronic device.
[0239] In this embodiment, although the first electronic device can find the second electronic device, if the first electronic device is unable to send service data to the found 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 displaying a first reminder message on a second electronic device is provided. The first reminder message can be displayed on the current interface of the second electronic device in the form of a business card, pop-up window, or floating box. The first reminder message 1001 may include introductory content about the network mutual assistance function. This introductory content explains to the user that after enabling network mutual assistance, business data generated by applications running on the current device can be transmitted to other devices; and business data generated by applications running on other devices can be transmitted to the current device. The first reminder message 1001 may also include an "Enable" button for enabling the network mutual assistance function and an "Ignore" button for ignoring the first reminder message and not enabling the network mutual assistance function.
[0241] The first electronic device can send a first alert message to all the second electronic devices that are found.
[0242] Alternatively, in some embodiments, the first electronic device may display the found second electronic devices on the interface, forming a list of second electronic devices. (See reference...) Figure 11 , Figure 11 A schematic diagram of an interface for displaying a list of second electronic devices on a first electronic device is provided. The list of second electronic devices (e.g., ...) 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 search time; or, the second electronic devices in the second electronic device list can be sorted from high to low signal strength. The second electronic device list can display at least one piece of information such as the name, signal strength, operator, and battery level of the second electronic device.
[0243] In some embodiments, the first electronic device may sort at least one second electronic device according to the signal strength from weakest, and send a first reminder message to each second electronic device in turn according to the sorting.
[0244] For example, the first electronic device sends a first reminder message to the second electronic device 1; if it 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 from at least one second electronic device to enable the network mutual assistance function, and the first electronic device sends service data to at least one second electronic device.
[0246] After receiving a confirmation instruction to enable the network mutual assistance function from at least one second electronic device, the first electronic device can establish a communication connection with the second electronic device that returned the confirmation instruction and send service data to it. Optionally, the first electronic device can send service data to all second electronic devices that returned the confirmation instruction to enable the network mutual assistance function. Alternatively, the first electronic device can send service data to one or more of the second electronic devices that returned the confirmation instruction to enable the network mutual assistance function. The methods provided in S104 and S105 above can be used as a reference for the second electronic devices to which the first electronic device selects to send service data; these will not be elaborated upon in this embodiment.
[0247] In some embodiments, when the first electronic device and the second electronic device successfully establish a connection and transmit business data, the first electronic device may output a prompt message to inform the user that network mutual assistance is in progress; or, it may display an identifier in the status bar indicating that network mutual assistance is in progress. For example, refer to... Figure 12 , Figure 12 A schematic diagram illustrating the display of a network mutual assistance icon on an electronic device is provided. The network mutual assistance icon is designated as 1201. Both the first and second electronic devices can display the network mutual assistance icon to indicate to the user that the device is currently in a network mutual assistance scenario.
[0248] In this embodiment, during the data transmission of services between the first electronic device and the first network device via the first network link, if the first electronic device experiences one or more conditions indicating a deterioration in its communication quality, such as a signal strength lower than a first preset strength threshold, a retransmission rate lower than a preset retransmission threshold, or a bit error rate higher than a preset bit error threshold, the first electronic device broadcasts a connection request. Upon receiving 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, enabling at least one second electronic device to forward the service data of the first electronic device to the second network device via the second network link. That is, during the data transmission of services by the first electronic device, if the first electronic device experiences a poor network signal, it can transmit service data via the second electronic device. In addition to transmission 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 service data for the first electronic device, improving the transmission success rate of the service data of the first electronic device, enhancing the communication signal strength of the first electronic device, and increasing the success rate of normal service execution of the first electronic device.
[0249] During the process of establishing a connection between the first electronic device and the second electronic device and transmitting service data, in order to ensure the normal transmission of service data, the first electronic device can periodically detect the transmission status of the service data, the network status of the second electronic device, etc. In the following embodiments, to facilitate the distinction between the second electronic device that transmits service data and the second electronic device that does not transmit service data, the second electronic device that transmits service data will be referred to as the target second electronic device.
[0250] In some feasible embodiments, after the first electronic device sends service data to the target second electronic device once, 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 service data.
[0251] For example, in some embodiments, the first electronic device may perform:
[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 maintains a continuous 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 its communication connection with the first electronic device. In other possible cases, if the first electronic device fails to send service data to the target second electronic device, or if the first electronic device repeatedly fails to receive a successful response from the target second electronic device regarding the service data, it is determined that the target second electronic device has disconnected its communication connection with the first electronic device.
[0254] The first electronic device can periodically detect whether the target second electronic device remains connected. This periodicity can be achieved by performing the detection every 1 second. The period can be set according to the actual situation.
[0255] In some embodiments, if the first electronic device detects that it has lost connection with the target second electronic device, it stops transmitting business data to the target second electronic device, that is, it executes S113.
[0256] In some embodiments, while the target second electronic device remains connected to the first electronic device, the first electronic device may also 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 the 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 the 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 consistently greater than a fourth preset strength threshold within 1 minute, the current communication quality of the target second electronic device is considered good, and data transmission with the target second electronic device can continue.
[0259] The first electronic device can periodically detect the communication quality of the target second electronic device within a preset time period. The periodicity can be achieved by detecting once every 1 second. The period can 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 the transmission of service data to the target second electronic device, that is, execute S113 to avoid increased power consumption caused by invalid transmission of service data.
[0261] In some embodiments, if the first electronic device detects that the communication quality of the target second electronic device is consistently good, the first electronic device may also detect whether the service data with the target second electronic device has been completely transmitted.
[0262] S112, The first electronic device detects whether a target second electronic device is still in the process of transmitting business data.
[0263] In this embodiment, the first electronic device can periodically detect whether there is a target second electronic device still performing service data transmission. If there is no target second electronic device performing service data transmission, that is, the service data transmission task has been completed and the target second electronic device is in a state without service data transmission task, then the service data transmission operation is stopped (execute S113). Optionally, the communication connection with the target second electronic device can also be disconnected.
[0264] If there is a target second electronic device that is transmitting business data, that is, if there is still a target second electronic device continuously transmitting business data, then 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 has been disconnected; or in S112, if the first electronic device detects that the target second electronic device is not in the process of transmitting business data, then the electronic device performs the following:
[0266] S113, the first electronic device then 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 may also disconnect its communication connection with the second electronic device (or the target second electronic device) to avoid increasing the power consumption of the first electronic device / second electronic device.
[0268] In some embodiments, during the process of data transmission between the first electronic device and the target second electronic device, if the first electronic device detects that the battery level of the target second electronic device is lower than a preset battery threshold, it may choose to stop sending data to the target second electronic device to ensure the service / 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, disconnecting the communication connection between the first electronic device and the second electronic device means that the first electronic device has exited the network mutual assistance. In this case, the first electronic device may hide the identifier in the status bar of the first electronic device that indicates that network mutual assistance is in progress.
[0270] It is understood that the three periodic detections of the first electronic device involved in S110-S112 above can be performed synchronously or asynchronously. When performed asynchronously, there is no restriction on their execution order.
[0271] In this embodiment of the application, during the process of data transmission between the first electronic device and the target second electronic device, the first electronic device can periodically detect the connection status, communication quality, whether the data transmission task is completed, and battery level of the target second electronic device, thereby improving the success rate of data transmission and the success rate of the first electronic device in performing normal services.
[0272] It should be noted that the personal information used in the technical solution of this application is limited to information for which individual consent has been obtained, including but not limited to notifying and reminding users to read the relevant user agreement (notification) and sign the agreement (authorization) which includes authorization of relevant user information before users use the function.
[0273] The technical solutions disclosed in this application involve the collection, storage, use, processing, transmission, provision, and disclosure of users' personal information, all of which comply with relevant laws and regulations and do not violate public order and good morals.
[0274] Figure 13 A possible structural schematic 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, etc.
[0276] For example, the processing module 1301 can 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 this application embodiment can be Figure 2 The electronic device 100 shown.
[0277] This application also provides a chip system (e.g., a system-on-a-chip (SoC)). Figure 14 The diagram illustrates the structure of a chip system. This chip system includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 are interconnected via lines. For example, the interface circuit 1402 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1402 can be used to send signals to other devices (e.g., the processor 1401 or the camera of an electronic device). Exemplarily, the interface circuit 1402 can read instructions stored in the memory and send those instructions to the processor 1401. When the instructions are executed by the processor 1401, the electronic device can perform the steps described in the above embodiments. Of course, this chip system may also include other discrete components, which are not specifically limited in this application embodiment.
[0278] This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform various functions or steps performed by the electronic device 100 in the above method embodiment.
[0279] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the electronic device 100 in the above method embodiments. For example, the computer may be the aforementioned electronic device 100.
[0280] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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 apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0282] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0283] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0284] If the integrated unit is implemented as 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 solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0285] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A communication method, characterized in that, The method is applied to a communicable electronic device, the communicable electronic device comprising a first electronic device and a plurality of second electronic devices, the method comprising: During the process of the first electronic device and the first network device transmitting service data through 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; the service data is the data generated by the service being executed by the first electronic device; wherein, the preset communication conditions include one or more of the following: signal strength less than a first preset strength threshold, retransmission rate greater than a preset retransmission threshold, and bit error rate greater than a preset bit error threshold; If the first electronic device receives a successful response from the plurality of second electronic devices to the connection request, the first electronic device sends first service data to the plurality of second electronic devices, so that the plurality of second electronic devices forward the first service data to the second network device through the second network link corresponding to each second electronic device; the first service data belongs to the service data; 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; the first electronic device obtains the performance parameters of the plurality of second electronic devices forwarding the first service data; the performance parameters include at least one of the signal strength, bit error rate, and packet loss rate of the second electronic device forwarding the first service data. Based on the performance parameters of the plurality of second electronic devices, the first electronic device determines the third electronic device with the optimal performance parameters from the plurality of second electronic devices; The first electronic device sends second service data to the third electronic device, so that the third electronic device forwards the second service data to the second network device through the second network link; wherein, the second service data is service data generated after the first service data.
2. The method according to claim 1, characterized in that, The first electronic device sends the service data to the at least one second electronic device, including: The first electronic device acquires the device parameters of the at least one second electronic device; The first electronic device selects one or more second electronic devices from among the second electronic devices whose device parameters meet the preset network cooperation conditions to send the service data; The device parameters include the operator of the second electronic device, and the preset network mutual assistance conditions include the fact that the operator of the second electronic device is different from the operator of the first electronic device. Alternatively, the device parameters include the signal strength of the second electronic device, and the preset network cooperation condition includes the signal strength of the second electronic device being 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 may include the operator of the second electronic device and the signal strength of the second electronic device, and the preset network cooperation conditions may include the operator of the second electronic device being different from the operator of the first electronic device, or the signal strength of the second electronic device being 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 among the second electronic devices whose device parameters meet preset network cooperation conditions 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 operator is 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 among 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 among the second electronic devices whose device parameters meet preset network cooperation conditions 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 signal strength is greater than a third preset strength threshold from the second electronic devices whose operator is different from that of the first electronic device to send the service data. The third preset intensity threshold is less than the second preset intensity threshold.
5. The method according to claim 2, characterized in that, The device parameters also include device battery level; the first electronic device selects one or more second electronic devices from among the second electronic devices whose device parameters meet preset network cooperation conditions 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 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 send the service data. or, The first electronic device selects one or more second electronic devices from among those with signal strength greater than the second preset strength threshold, whose battery level is greater than the preset battery level threshold, to send the service data.
6. The method according to any one of claims 1-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 each other's pre-defined whitelist devices; And / or, both the first electronic device and the second electronic device are electronic devices with network mutual assistance function enabled; The electronic device enabling the network mutual assistance function indicates that the electronic device agrees to act as the second electronic device to forward the service data of the first electronic device to the second network device, and that the electronic device agrees to act as the first electronic device to send its own service data to the second electronic device for forwarding to the second network device.
7. The method according to any one of claims 1-6, characterized in that, If both the first electronic device and the second electronic device are electronic devices with network interoperability capabilities, 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 sends service data to the at least one second electronic device, including: If the first electronic device receives a confirmation instruction from the at least one second electronic device to enable the network mutual assistance function, 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-7, characterized in that, If the first electronic device is an electronic device with 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 assistance function of the first electronic device. When the first electronic device detects an event that enables the network mutual assistance function, the first electronic device rebroadcasts the connection request.
9. The method according to any one of claims 1-8, characterized in that, The method further includes: During the process of the first electronic device sending service data to the at least one second electronic device, the first electronic device periodically acquires the 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-9, characterized in that, The method further includes: The first electronic device activates a network assistance function when it detects that it has entered a preset location via a geofence; wherein, the preset location is a location with poor communication quality, including subway stations, train stations and airports.
11. An electronic device, characterized in that, The electronic device 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 the method according to any one of claims 1-10; The first chip is used to send the service data of the electronic device to other electronic devices for forwarding to the corresponding network device through the communication interface; The second chip is used to receive service data from the other electronic devices through the communication interface, and to forward the service data from the other electronic devices to the corresponding network devices through the communication interface.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-10.
13. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1-10.
14. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1-10.
Citation Information
Patent Citations
Communication method, electronic equipment and system
CN116980864A