Communication method, electronic device, and readable storage medium

By caching messages when near-field communication is interrupted and selectively establishing channels based on message type after far-field communication is established, the power consumption and latency issues during electronic device synchronization are resolved, achieving efficient message transmission and improved user experience.

CN119277355BActive Publication Date: 2025-11-18HONOR DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410309477.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2025-11-18
Estimated Expiration
2044-03-15

AI Technical Summary

Technical Problem

When synchronizing messages between electronic devices, establishing control channels and business data channels can lead to additional power consumption and message transmission delays, affecting user experience, especially when the data volume is small.

Method used

When near-field communication is interrupted, messages are buffered and, after far-field communication is established, control channels or a combination of control and business data channels are selectively established for transmission based on message type, thus avoiding unnecessary channel establishment.

Benefits of technology

It reduces latency and power consumption of electronic devices, improves user experience, and ensures timely message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277355B_ABST
    Figure CN119277355B_ABST
Patent Text Reader

Abstract

The application relates to the field of communication, in particular to a communication method, an electronic device and a readable storage medium. The method comprises the following steps: a first electronic device acquires and stores a first message corresponding to a message subscription request, the first message belongs to a first transmission type, the first electronic device establishes a first communication connection based on a first communication mode to transmit the first message with a second electronic device, the first message belongs to a second transmission type, the first electronic device establishes a second communication connection based on the first communication mode to transmit the first message with the second electronic device, and a communication channel of the first communication connection is different from a communication channel of the second communication connection. The electronic devices can establish far-field communication when near-field communication is disconnected, and can cache the message corresponding to the subscription request when the near-field communication is disconnected, can timely transmit / synchronize the message based on the far-field communication after the far-field communication is established, and can also establish a corresponding channel according to the type of the message to realize message transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and in particular to a communication method, an electronic device, and a readable storage medium. Background Technology

[0002] With the development of communication technology, when the distance between multiple electronic devices meets the distance requirements of near-field communication (NFC), NFC technologies (such as Bluetooth) can be used to communicate and achieve message transmission / synchronization between the multiple electronic devices. When the distance between electronic devices increases, causing their NFC to break down, they can still establish far-field communication (such as Radio Frequency Identification (RFID)) and continue to transmit messages based on far-field communication.

[0003] The far-field communication established between electronic devices can include a control channel and a service data channel. Control commands between electronic devices are generally transmitted through the control channel, while notifications, audio / video, images, and other messages (also known as data) are generally transmitted through the service data channel. Therefore, when synchronizing messages between electronic devices, the devices do not distinguish between message types and will establish both the service data channel and the control channel simultaneously. However, when the amount of data to be transmitted is small, establishing two channels will cause additional power consumption and message transmission delays for the electronic devices, affecting the user experience. Summary of the Invention

[0004] To address the aforementioned issues, embodiments of this application provide a communication method, an electronic device, and a readable storage medium.

[0005] In a first aspect, this application provides a communication method, characterized in that it includes:

[0006] A first electronic device acquires and stores a first message in response to a message subscription request, wherein the first electronic device sends the first message to a second electronic device based on the message subscription request; corresponding to the first message belonging to a first transmission type, the first electronic device and the second electronic device establish a first communication connection based on a first communication method to transmit the first message; corresponding to the first message belonging to a second transmission type, the first electronic device and the second electronic device establish a second communication connection based on a first communication method to transmit the first message, wherein the first communication method includes far-field communication, the first communication connection corresponds to the first transmission type, the second communication connection corresponds to the second transmission type, and the communication channels of the first communication connection and the second communication connection are different.

[0007] In some embodiments, the first electronic device can be a mobile phone, and the second electronic device can be a smartwatch. The first communication method can be far-field communication, establishing far-field communication between the two electronic devices and establishing a corresponding communication connection to achieve message transmission based on the transmission type of the first message to be transmitted. For example, if the first transmission type is a notification message, then the established first communication connection is a control channel; if the second transmission type is audio / video or file, then the established second communication connection is a control channel and a business data channel.

[0008] In one possible implementation of the first aspect above, the first electronic device acquires and stores a first message in response to a message subscription request, comprising: establishing a third communication connection between the first electronic device and a second electronic device based on a second communication method; the first electronic device receiving a message subscription request sent by the second electronic device; and receiving the first message when the third communication connection is disconnected, wherein the second communication method includes near-field communication.

[0009] In some embodiments, the second communication method can be near-field communication (NFC). A NFC connection is established between the first and second electronic devices, i.e., a third communication connection. The first electronic device sends a subscription request to the second electronic device. The content of the subscription request can include the message type and message format of messages from the first electronic device that the second electronic device needs to obtain under far-field communication. For example, the message type of synchronized messages can be notifications, files, and audio / video. When the NFC connection is broken, the second electronic device detects the first message corresponding to the first subscription request and stores the first message. For example, if the first subscription request is for subscribing to a text message notification, and the first message is a text message notification, the text message notification is stored. When a far-field communication connection is established between the first and second electronic devices, the second electronic device can send a first message to the first electronic device.

[0010] Based on the above scheme, electronic devices can establish far-field communication when near-field communication is disconnected, and cache the messages corresponding to the subscription request when near-field communication is disconnected. After far-field communication is established, messages can be transmitted / synchronized in a timely manner based on far-field communication. Furthermore, corresponding channels can be established according to the message type to realize message transmission, so that users can obtain messages in a timely manner while saving the latency and power consumption of electronic devices and improving the user experience.

[0011] In one possible implementation of the first aspect above, the first electronic device receiving a message subscription request sent by the second electronic device includes: corresponding to the first electronic device and the second electronic device supporting a first communication method, the first electronic device receiving the message subscription request sent by the second electronic device, wherein the message subscription request includes at least one of message type and format.

[0012] In some embodiments, the second electronic device needs to determine whether both the first and second electronic devices support far-field communication before sending a subscription request to the first electronic device.

[0013] Based on the above scheme, if neither the first electronic device nor the second electronic device supports the second communication method, the second electronic device will not send a subscription request to the first electronic device, thus avoiding the problem of wasted process.

[0014] In one possible implementation of the first aspect described above, the first electronic device acquiring and storing the first message in response to the message subscription request further includes: in the event that the second communication method is disconnected and there is no first electronic device supporting the first communication method, the first electronic device stores the first message.

[0015] Based on the above scheme, if the near-field communication between the first electronic device and the second electronic device is disconnected and the far-field communication is not connected, the first electronic device will store the first message in its own memory. Then, after the near-field connection or the far-field connection is established, the stored first message can be sent directly to the second electronic device to synchronize the message in a timely manner.

[0016] In one possible implementation of the first aspect above, the first electronic device acquiring and storing the first message in response to the message subscription request further includes: the first electronic device detecting that the third communication connection is disconnected, the first electronic device determining whether the second electronic device meets the communication conditions of the first communication method; corresponding to the second electronic device meeting the communication conditions of the first communication method, the first electronic device determining that the second electronic device has registered its device information on the server; corresponding to the first electronic device having already registered its device information on the server, the first electronic device and the second electronic device performing account authentication.

[0017] In some embodiments, when the first electronic device and the second electronic device register device information on the server, i.e., the cloud side, device verification is required. PKI authentication can be used on the cloud-authenticated device side; authentication on the device side can be performed using certificates. Furthermore, after authenticating both the cloud-authenticated device side and the device side, end-to-end authentication is required between the devices. For example, same-account authentication can be used, meaning the accounts logged in by the first and second electronic devices must be the same. Key negotiation algorithms can also be used for end-to-end authentication to enable far-field communication between the devices via a far-field channel.

[0018] In one possible implementation of the first aspect above, the communication conditions of the first communication method include at least one of the following: the account information corresponding to the account logged in by the second electronic device is the same as the account information corresponding to the account logged in by the first electronic device; the function corresponding to the first communication method in the second electronic device is enabled; the second communication method connection is disconnected; and the second electronic device is in a network-connected state.

[0019] In one possible implementation of the first aspect described above, the first transmission type includes a notification, and the second transmission type includes at least one of audio / video and files.

[0020] In one possible implementation of the first aspect described above, the first transmission type of the first message is a notification, and

[0021] Corresponding to the first message belonging to the first transmission type, the first electronic device and the second electronic device establish a first communication connection based on the first communication method to transmit the first message, including: the first electronic device determines that the communication channel of the first communication connection includes a control channel, wherein the control channel is used to transmit control commands between the first electronic device and the second electronic device.

[0022] In one possible implementation of the first aspect above, the second transmission type of the first message is audio / video or file, and the first message belongs to the second transmission type. The first electronic device and the second electronic device establish a second communication connection based on the first communication method to transmit the first message, including: the second electronic device determines that the communication channel of the second communication connection includes a service data channel, wherein the data channel is used to transmit data between the first electronic device and the second electronic device.

[0023] One possible implementation of the first aspect mentioned above also includes:

[0024] If the third communication connection is re-established and the second electronic device receives the second message corresponding to the message subscription request, the first electronic device disconnects the first or second communication connection; the first electronic device sends the second message to the second electronic device through the third communication connection.

[0025] In one possible implementation of the first aspect described above, near-field communication includes at least one of NFC and Bluetooth, and far-field communication includes at least one of WIFI and cellular communication.

[0026] In a second aspect, this application provides an electronic device, comprising: a memory for storing instructions; and a processor for executing the instructions to implement the communication method provided in the first aspect and any possible implementation of the first aspect.

[0027] Thirdly, this application provides a readable storage medium storing instructions that, when executed, cause an electronic device to implement the first aspect and any possible implementation of the communication method provided above. Attached Figure Description

[0028] Figure 1A According to some embodiments of this application, a schematic diagram of a near-field communication scenario between a mobile phone and a watch is shown;

[0029] Figure 1B According to some embodiments of this application, a schematic diagram of a scenario in which near-field communication between a mobile phone and a watch is disconnected is shown;

[0030] Figure 1C According to some embodiments of this application, a schematic diagram of a scenario for far-field communication between a mobile phone and a watch is shown;

[0031] Figure 2A According to some embodiments of this application, a flowchart of a communication method is shown;

[0032] Figure 2B According to some embodiments of this application, a schematic diagram of a far-field communication system is shown;

[0033] Figure 3 According to some embodiments of this application, a flowchart of a communication method is shown;

[0034] Figure 4 According to some embodiments of this application, a schematic diagram of the structure of an electronic device is shown. Detailed Implementation

[0035] The illustrative embodiments of this application include, but are not limited to, communication methods, electronic devices, and readable storage media. It is understood that the technical solutions of the communication methods involved in this application are applicable to various electronic devices equipped with wireless communication modules, such as near-field communication modules and far-field communication modules, including mobile phones, tablets, displays, smart screens, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and other mobile terminals. The near-field communication module here may include Bluetooth communication modules, etc., and the far-field communication module may include Wi-Fi communication modules, cellular communication modules, etc.

[0036] The technical solution of this application is described below with reference to the accompanying drawings.

[0037] In some embodiments, taking a mobile phone and a smartwatch as examples, such as... Figure 1A As shown, mobile phone 10 and smartwatch 20 can establish Bluetooth communication (near field communication), allowing smartwatch 20 to subscribe to application notification messages from mobile phone 10 and receive notification messages from mobile phone 10, thus achieving message synchronization between mobile phone 10 and smartwatch 20. For example, mobile phone 10 can select / bind smartwatch 20 (that is, smartwatch 20 connected to mobile phone 10 via Bluetooth) through APP1, such as the Sports & Health APP. After receiving a notification message from the Sports & Health APP, mobile phone 10 can synchronize the notification message to smartwatch 20, allowing the user to receive / view notification messages from mobile phone 10 through smartwatch 20.

[0038] like Figure 1B As shown, when the distance between the smartwatch 20 and the mobile phone 10 increases, the near-field communication established between the mobile phone 10 and the smartwatch 20 based on Bluetooth is disconnected. The smartwatch 20 and the mobile phone 10 can then establish far-field communication, and message synchronization can continue based on this far-field communication. Figure 1C As shown, mobile phone 10 and smartwatch 20 establish far-field communication and transmit messages based on far-field communication. For example, after receiving a notification message from a sports and health APP, mobile phone 10 can synchronize the notification message to smartwatch 20 through far-field communication.

[0039] Specifically, the process of establishing far-field communication between mobile phone 10 and smartwatch 20 may include: when mobile phone 10 and smartwatch 20 are in near-field communication, mobile phone 10 and smartwatch 20 achieve device binding and account synchronization. That is, the user account is logged in on mobile phone 10, and mobile phone 10 sends a synchronization command to smartwatch 20 to synchronize the user account. Then, smartwatch 20 can control smartwatch 20 to log in to the same user account based on the synchronization command, so that mobile phone 10 and smartwatch 20 are electronic devices under the same user account. Meanwhile, the mobile phone 10 and the smartwatch 20 can also determine the far-field communication capability that both support, that is, the far-field communication type. After the near-field communication is disconnected, if the mobile phone 10 needs to synchronize the notification messages received from the sports and health APP to the smartwatch 20, the smartwatch 20 and the mobile phone 10 can establish far-field communication. That is, when the mobile phone 10 and the smartwatch 20 determine that they have far-field communication capability, the mobile phone 10 and the smartwatch 20 can register with each other through the cloud. After the near-field communication is disconnected, the smartwatch 20 can send a request to the mobile phone 10 to establish far-field communication through the cloud. The mobile phone 10 can respond to the request sent by the smartwatch 20. If the mobile phone 10 also has far-field communication capability, the smartwatch 20 and the mobile phone 10 can establish far-field communication.

[0040] It is understandable that when mobile phone 10 synchronizes notification messages to smartwatch 20 via far-field communication, both a control channel and a service data channel need to be established between mobile phone 10 and smartwatch 20, collectively referred to as the communication channel. Mobile phone 10 sends synchronization commands for notification messages to smartwatch 20 through the control channel and sends notification messages to smartwatch 20 through the service data channel. In other words, under far-field communication, every time message transmission / synchronization occurs between mobile phone 10 and smartwatch 20, regardless of the size of the corresponding data, both the control channel and the service data channel need to be established simultaneously, resulting in additional latency and power consumption from establishing the far-field channel.

[0041] Therefore, to address the latency and power consumption issues arising from the simultaneous establishment of control and service data channels for data transmission between electronic devices in far-field communication, this application provides a communication method. The method includes: in near-field communication, two electronic devices subscribe to messages and determine if both support far-field communication capabilities. If it is determined that near-field communication is interrupted and the two electronic devices need to transmit subscribed messages, far-field communication is established between the two electronic devices, and a corresponding channel is established based on the type of message to be transmitted to achieve message transmission. For example, for notification messages, a control channel is directly established and only used for data transmission; for audio / video or file messages, both a control channel and a service data channel are established simultaneously, and the service data channel is used for message transmission.

[0042] In some embodiments, two electronic devices can also establish corresponding channels to transmit messages based on the amount of data in the message to be transmitted. For example, for messages with a data amount less than a threshold, a control channel is directly established and only used for data transmission; for messages with a data amount greater than the threshold, both a control channel and a service data channel are established simultaneously, and the service data channel is used for message transmission. The threshold here can be 1 kilobyte (kb).

[0043] In some embodiments, taking smartwatch 20 and mobile phone 10 as examples, if smartwatch 20 subscribes to notification messages from a sports and health app on mobile phone 10, then if mobile phone 10 receives a notification message from the sports and health app when the near-field communication connection is broken, the notification message can be temporarily stored. When mobile phone 10 and smartwatch 20 establish far-field communication, only a control channel can be established, and then mobile phone 10 sends the notification message to smartwatch 20 through the control channel. In other embodiments, if smartwatch 20 subscribes to file forwarding synchronization on mobile phone 10, then when mobile phone 10 and smartwatch 20 establish far-field communication, both a control channel and a file data channel can be established, and then mobile phone 10 sends the file to smartwatch 20 through the file data channel.

[0044] Based on the above scheme, electronic devices can establish far-field communication when near-field communication is disconnected, and cache the messages corresponding to the subscription request when near-field communication is disconnected. After far-field communication is established, messages can be transmitted / synchronized in a timely manner based on far-field communication. Furthermore, corresponding channels can be established according to the message type to realize message transmission, so that users can obtain messages in a timely manner while saving the latency and power consumption of electronic devices and improving the user experience.

[0045] After introducing the application scenarios corresponding to the communication method of this application, the following section describes the corresponding method flow of the above communication method. The first electronic device and the second electronic device in the method flow can represent a smartwatch and a mobile phone, respectively. The method flow includes:

[0046] S201: The first electronic device and the second electronic device establish a first communication connection based on the first communication method, and the first electronic device sends a message subscription request to the second electronic device.

[0047] For example, the first communication method here can be near-field communication, such as Bluetooth. The message subscription request can be a subscription request for messages obtained / generated by an application of the second electronic device, such as notifications from a fitness and health app on the second electronic device.

[0048] S202: When the first communication connection is disconnected, the second electronic device acquires and stores the first message corresponding to the message subscription request.

[0049] For example, when the first communication connection is disconnected, the second electronic device cannot synchronize / transmit the first message to the first electronic device through the first communication, and the second electronic device can cache the first message.

[0050] S203: The first electronic device and the second electronic device establish a second communication connection corresponding to the first message based on the second communication method, and the second electronic device sends the first message to the first electronic device.

[0051] For example, the second communication connection here can be far-field communication, and the second communication connection of the second communication method can correspond to the type of the first message. For example, if it corresponds to a notification message, the established second communication connection can only include the control channel; while if it corresponds to an audio or video message or a file, the established second communication connection can include both the control channel and the business data channel.

[0052] After introducing the method flow corresponding to the communication method of this application, the communication system 100 applicable to the above communication method will be introduced below, such as... Figure 2B As shown, the system may include a mobile phone 10, a smartwatch 20, a device cloud 30, and a business cloud 40. Among them:

[0053] The mobile phone 10 may include an application (APP), such as a sports and health APP 101, a message notification module 102, and a channel service 103. The sports and health APP 101 can handle message notifications and device pairing. The message notification process may include subscribing to messages corresponding to the sports and health APP 101 between the mobile phone 10 and the smartwatch 20, and sending subscribed messages from the sports and health APP 101 to the smartwatch 20. The device pairing process may include, under near-field communication, binding the device and synchronizing the accounts based on the user accounts of the mobile phone 10 and the smartwatch 20.

[0054] The message notification module 102, also known as the message service, is used to receive messages or requests from the mobile phone 10 and the smartwatch 20. For example, it monitors the Bluetooth connection status through the sports and health APP 101; sends requests and transmits messages between the mobile phone 10 and the smartwatch 20 through near-field communication (e.g., Bluetooth); and determines the far-field communication capabilities supported by both the mobile phone 10 and the smartwatch 20, that is, subscribing to the far-field message types supported by both parties, realizing device binding and account synchronization corresponding to far-field communication, and determining the messages that need to be transmitted / synchronized under far-field communication.

[0055] Channel service 103 can be used to manage, maintain, and confirm device binding between mobile phone 10 and smartwatch 20, that is, to manage, maintain, and confirm device registration / authentication; and to establish far-field communication channels as needed for the types of messages to be transmitted / synchronized. These channels can include control channels and business data channels, which can be represented by MagicLink and MagicTrans, respectively.

[0056] The smartwatch 20 may include a messaging service 201 and a channel service 202. The messaging service 201 can realize message notification, device pairing, and account login. The message notification process may include subscribing to messages from the health and fitness app 101 between the mobile phone 10 and the smartwatch 20, and receiving subscribed messages from the health and fitness app 101. The device pairing process may include binding the device and synchronizing the accounts based on the user accounts of the mobile phone 10 and the smartwatch 20 under near-field communication. The account login process may include the smartwatch 20 logging in with the same user account as the mobile phone 10. In some embodiments, when near-field communication is disconnected, the message notification module 102 and the messaging service 201 may also initiate a request to start far-field communication between the mobile phone 10 and the smartwatch 20; that is, the smartwatch 20 may notify the mobile phone 10 that the smartwatch 20 is online as a far-field device.

[0057] Channel service 202 can be used to manage, maintain, and confirm device binding between mobile phone 10 and smartwatch 20, that is, to manage, maintain, and confirm device registration / authentication; and to establish far-field communication channels as needed for the types of messages to be transmitted / synchronized. These channels can include control channels and business data channels, which can be represented by MagicLink and MagicTrans, respectively.

[0058] Device Cloud 30 can be used to realize device registration / authentication of mobile phone 10 and smartwatch 20 on the cloud side. In other words, Device Cloud 30 can save the correspondence between the device binding and account synchronization already achieved between mobile phone 10 and smartwatch 20 on the cloud side.

[0059] The business cloud 40 can establish far-field communication between the mobile phone 10 and the smartwatch 20 based on the correspondence stored in the device cloud 30. The mobile phone 10 and the smartwatch 20 can establish corresponding far-field channels through the business cloud 40 according to the type of transmitted message, including: control channel and business data channel.

[0060] After introducing the communication system applicable to the communication method of this application, the communication method mentioned in the embodiments of this application will be further described in detail below. Figure 3 A flowchart illustrating a communication method is shown, in which the two electronic devices can be a mobile phone 10 and a smartwatch 20, respectively. Figure 3 As shown, the mobile phone and smartwatch can be referred to as the mobile terminal and smartwatch terminal, respectively. The specific communication process includes:

[0061] S301: The mobile application sends device binding and account synchronization instructions to the watch's message assistant.

[0062] In some embodiments, the application software referred to here may also be called an APP service, which may be such as Figure 2B The sports and health APP A101 shown on the mobile phone 10 allows users to log in to their accounts in the application software on the mobile phone 10. The application software also sends a command to the message assistant of the smartwatch 20 to synchronize the accounts, so that the mobile phone 10 and the smartwatch 20 log in to the same user account or the same group of user accounts, thus realizing the account binding between the mobile phone 10 and the smartwatch 20.

[0063] S302: The watch's messaging assistant negotiates with the mobile application to determine if the phone supports far-field capabilities.

[0064] In some embodiments, when the smartwatch 20 completes account synchronization with the mobile phone 10, the message assistant of the smartwatch 20 and the application software of the mobile phone 10 negotiate whether both devices support far-field communication, that is, support the same type of far-field communication, or have far-field communication capability.

[0065] S303: After negotiating support for far-field capabilities on the mobile device, a request to activate far-field service capabilities is sent to the messaging service.

[0066] In some embodiments, when mobile phone 10 supports far-field communication, the application software of mobile phone 10 sends an instruction to the messaging service of mobile phone 10 to activate the far-field service capability of mobile phone 10. It is understood that the messaging service of mobile phone 10 can respond to notifications or requests sent by the application software of mobile phone 10 and perform corresponding operations or send corresponding notifications and requests based on the requests.

[0067] S304: The mobile messaging service sends a command to the channel service to register the remote field device.

[0068] In some embodiments, the messaging service of mobile phone 10 sends an instruction to the channel service of mobile phone 10 to register mobile phone 10 in the cloud (not shown in the figure) based on the instruction sent by its application software to activate the far-field service capability of mobile phone 10. It is understood that the channel service can assign a far-field communication address to mobile phone 10 based on the above instruction, enabling mobile phone 10 to conduct far-field communication with other electronic devices through the cloud based on the far-field communication address. For example, in some embodiments, mobile phone 10 registers a device cloud in the cloud through its channel service, that is, registers mobile phone 10 in the cloud.

[0069] S305: The message assistant on the watch determines whether the watch supports far-field communication.

[0070] In some embodiments, based on the fact that the mobile phone 10 has already registered in the cloud and has far-field communication capabilities, the message assistant of the smartwatch 20 determines whether the smartwatch 20 supports far-field communication. If the smartwatch 20 supports far-field communication, the process proceeds to step S306, whereby the message assistant of the smartwatch 20 subscribes to the mobile phone 10's message service for information such as the type and format of messages that need to be synchronized under far-field communication; and then executes step S308, which determines whether the Bluetooth connection of the smartwatch 20 is disconnected. If the smartwatch 20 does not support far-field communication, the determination process ends.

[0071] S306: The watch's message assistant sends a subscription request to the mobile phone's message service to specify the type and format of messages to be synchronized under far-field communication.

[0072] In some embodiments, when it is determined that the smartwatch 20 supports far-field communication, the message assistant of the smartwatch 20 subscribes to the message service of the mobile phone 10 for information such as the type and format of messages that need to be synchronized under far-field communication. For example, the types of messages that need to be synchronized can be SMS notifications, call notifications, Yoyo card prompts, audio and video, files, etc., and are not limited here.

[0073] S307: The mobile phone's message service caches the types of messages that the watch subscribes to and needs to synchronize under remote field communication.

[0074] In some embodiments, when the messaging service of mobile phone 10 receives a subscription request from the messaging assistant of smartwatch 20, specifying the types and formats of messages to be synchronized under far-field communication, for example, in some embodiments where Bluetooth is connected, the messaging assistant of smartwatch 20 can send information such as the types of messages to be synchronized under far-field communication to the messaging service of mobile phone 10. Further, mobile phone 10 stores the types of messages to be synchronized subscribed to by smartwatch 20.

[0075] S308: The watch's message assistant determines whether the watch's Bluetooth connection is lost.

[0076] In some embodiments, when it is determined that the smartwatch 20 does not support far-field communication, the message assistant of the smartwatch 20 further determines whether the Bluetooth connection of the smartwatch 20 is disconnected. For example, in some embodiments, the message assistant of the smartwatch 20 determines the current Bluetooth connection status and whether Bluetooth is disconnected. If the Bluetooth connection of the smartwatch 20 is disconnected, proceed to step S309, that is, determine whether the smartwatch 20 meets the far-field communication conditions.

[0077] S309: The message assistant on the watch determines whether the watch meets the conditions for far-field communication.

[0078] In some embodiments, when it is determined that the Bluetooth connection of the smartwatch 20 is disconnected, the message assistant of the smartwatch 20 further determines whether the smartwatch 20 meets the far-field communication conditions. If the smartwatch 20 meets the far-field communication conditions, proceed to step S310, whereby the message assistant of the smartwatch 20 sends a command to the message service of the smartwatch 20 to activate the far-field capability of the smartwatch 20.

[0079] In some embodiments, determining that the smartwatch 20 meets the far-field communication conditions includes: the first far-field communication condition is that the account login status is normal, that is, the smartwatch 20 and the mobile phone 10 have the same account and the account information is the same; the second far-field communication condition is that the far-field message switch status is on, that is, the switch for the smartwatch 20 to receive far-field communication messages is turned on / the function is enabled.

[0080] In some embodiments, a third far-field communication condition may be a Bluetooth connection disconnection; a fourth far-field communication condition may be that the smartwatch has completed data preparation for modem network registration. It can be understood that network registration means that the electronic device can access the network, that is, the electronic device is in a network registration state.

[0081] S310: The watch's message assistant sends a command to the watch's message service to activate the far-field service capability.

[0082] In some embodiments, when it is determined that the smartwatch 20 meets the far-field communication conditions, the message assistant of the smartwatch 20 sends a command to the message service of the smartwatch 20 to activate the far-field capability.

[0083] S311: The message service on the watch sends a command to the channel service to register the far-field device.

[0084] In some embodiments, the messaging service of smartwatch 20 sends a command to the channel service of smartwatch 20 to register smartwatch 20 in the cloud, based on the command sent by the messaging assistant of smartwatch 20 to activate the far-field service capability of smartwatch 20. For example, in some embodiments, smartwatch 20 registers its device cloud through its channel service, that is, it registers the device information of smartwatch 20 in the cloud, including: smartwatch 20's device ID, etc., to uniquely identify smartwatch 20.

[0085] In some embodiments, when an electronic device registers with the device cloud via a channel service, device verification is required. Cloud-side device authentication can employ PKI (Public Key Infrastructure) authentication, which involves binding the certificate holder's identity and associated key pair. Device-side authentication with the cloud can utilize certificates. Furthermore, after authenticating both the cloud-side device and device-side cloud, end-to-end authentication is required between devices. This can be achieved through methods such as same-account authentication (meaning the two devices must log in with the same account) or ECDH key negotiation algorithm to enable long-field communication between devices via a long-field channel.

[0086] As you can understand, ECDH (Diffie-Hellman key exchange) is an anonymous key exchange scheme that allows two parties to establish a shared key over an insecure channel, with each party having an elliptic curve public-private key pair.

[0087] S312: The channel service notification message service on the watch is now available for remote field devices.

[0088] In some embodiments, the messaging service of smartwatch 20 can register smartwatch 20 as a far-field device in the cloud by sending an instruction through the channel service of smartwatch 20; the result of smartwatch 20 being registered as a far-field device in the cloud can be notified to the channel service or messaging service of smartwatch 20 through the cloud.

[0089] S313: The channel service on the watch confirms that the watch is online in the far field.

[0090] In some embodiments, the channel service of mobile phone 10 can obtain the result of smartwatch 20 registering as a far-field device through the cloud to determine the far-field online status of the watch.

[0091] S314: After receiving a notification that the remote field device is online, the channel service on the mobile device notifies the watch remote field device on the mobile device to be online.

[0092] In some embodiments, the channel service of mobile phone 10 can receive a notification sent by the channel service of smartwatch 20 that smartwatch 20 has successfully registered for far-field communication in the cloud, and further send the notification to the messaging service of mobile phone 10.

[0093] S315: Mobile messaging service notifications mobile application software and mobile remote field devices are online.

[0094] In some embodiments, when the messaging service of mobile phone 10 receives a notification from the messaging service of mobile phone 10 that smartwatch 20 has successfully registered for far-field communication in the cloud, it further sends a notification to the application software of mobile phone 10 that smartwatch 20 has successfully registered for far-field communication in the cloud. At this time, both the mobile phone, as the local device, and the smartwatch, as the remote device, are far-field online.

[0095] S316: After receiving the notification that the watch's far-field device is online, the mobile messaging service will perform dual-device account authentication with the watch's messaging service.

[0096] In some embodiments, mobile phone 10 has already registered in the cloud, that is, mobile phone 10 registers its device information in the cloud, including its device ID, etc., to uniquely identify mobile phone 10. When the application software of mobile phone 10 receives a notification that smartwatch 20 has successfully registered for far-field communication in the cloud, the message service of mobile phone 10 initiates a command for dual-device same-account authentication to the message service of smartwatch 20, so that dual-device same-account authentication is achieved after the security authentication is completed. For example, in some embodiments, mobile phone 10 and smartwatch 20 can perform same-account trust ring authentication based on their respective encrypted far-field message data, that is, same-account authentication. Further, mobile phone 10 and smartwatch 20 can respectively notify their respective message processing modules that they can perform far-field communication based on their respective cloud devices. It can be understood that encryption can be based on Advanced Encryption Standard (AES), which is the most common symmetric encryption algorithm. Symmetric encryption algorithms use the same key for encryption and decryption.

[0097] S317: The mobile device receives messages sent by the user to the application software.

[0098] In some embodiments, the user here can be a user of mobile phone 10 or an application software service provider.

[0099] S318: Mobile application software sends messages to the mobile messaging service.

[0100] In some embodiments, when the application software of mobile phone 10 receives a message sent by the user, the application software of mobile phone 10 sends an instruction to the message service of mobile phone 10 to send a message to smartwatch 20. The message service of mobile phone 10 detects that the synchronization switch of the application software corresponding to the message is in the on state, and can call the interface of the message service of mobile phone 10 to receive synchronization information. For example, if the sports and health software detects that its message synchronization switch is on, it calls the interface of the message service to send a synchronization message to the message service of mobile phone 10, that is, it sends a request to send a synchronization message.

[0101] S319: The mobile phone's message service query determines whether a message sent by the application is a message subscribed between the mobile phone and the watch.

[0102] In some embodiments, the messaging service of mobile phone 10 can query whether the message sent by the application software is a message that has been stored between mobile phone 10 and smartwatch 20. If so, it means that the message needs to be synchronized / transmitted through near-field communication or far-field communication, and then step S320 is executed; otherwise, it means that the message does not need to be synchronized / transmitted, and the execution process ends.

[0103] S320: After receiving a message from the mobile application, the mobile messaging service determines whether Bluetooth is connected.

[0104] In some embodiments, when the messaging service of mobile phone 10 receives a request from application software to send a synchronization message, it determines whether the Bluetooth connection of mobile phone 10 is connected. If the Bluetooth of mobile phone 10 is connected normally, proceed to step S321, that is, mobile phone 10 sends a synchronization message to the messaging service of smartwatch 20 via Bluetooth; if the Bluetooth of mobile phone 10 is disconnected, proceed to step S322 to determine whether there is a far-field online device.

[0105] S321: The mobile phone's messaging service sends messages to the watch's messaging service via Bluetooth.

[0106] In some embodiments, when it is determined that the Bluetooth of the mobile phone 10 is connected, the messaging service of the mobile phone 10 sends a synchronization message to the messaging service of the smartwatch 20 via Bluetooth. For example, in some embodiments, when it is determined that the Bluetooth is connected, the mobile phone 10 and the smartwatch 20 can send synchronization messages through the near-field Bluetooth channel.

[0107] S322: The mobile phone's messaging service determines whether there are remote online devices.

[0108] In some embodiments, when it is determined that the Bluetooth connection of mobile phone 10 is disconnected, the messaging service of mobile phone 10 further determines whether there is a far-field online device. If there is no far-field online device, proceed to step S323 and send a notification to the application software of mobile phone 10 that both near-field (Bluetooth) communication and far-field communication are disconnected at this time; if there is a far-field online device, proceed to step S325 and send an instruction to the channel service of mobile phone 10 to send a synchronization message through far-field communication.

[0109] S323: The mobile messaging service sends a notification to the application software that there are no far-field online devices or Bluetooth connections.

[0110] In some embodiments, when the messaging service of mobile phone 10 determines that there is no far-field online device, it sends a notification to the application software of mobile phone 10 that there is no far-field online device and no Bluetooth connection.

[0111] S324: The mobile application caches the message, waiting for far-field communication or Bluetooth to come online.

[0112] In some embodiments, when the application software of mobile phone 10 receives a notification that there is no far-field online device or Bluetooth connection, the application software of mobile phone 10 will store the synchronization message and wait for the far-field device, such as smartwatch 20, to come online or for a Bluetooth connection notification. If no far-field device comes online or for a Bluetooth connection notification is received after a certain period of time, such as 6 hours, the synchronization message stored by the application software of mobile phone 10 will be cleared. That is, if the storage time of the message stored in mobile phone 10 is greater than or equal to the preset time of 6 hours, the message will be cleared.

[0113] It is understood that in some other embodiments, the effective storage duration of the synchronization message stored in the mobile phone 10 can also be preset to other effective storage durations besides 6 hours, which is not limited here.

[0114] S325: The mobile messaging service selects the far-field channel based on the message type through the mobile messaging service.

[0115] In some embodiments, when the messaging service of mobile phone 10 determines that a far-field online device exists, it sends an instruction to the channel service of mobile phone 10 to send a synchronization message via far-field communication, triggering the establishment of a far-field channel, also known as a communication channel. Simultaneously, the messaging service of mobile phone 10 can further determine the message type. For example, a message may include a notification, audio / video, or a file. A notification message can be directly transmitted via the control channel, while an audio / video or file message, in addition to transmitting control instructions via the control channel, requires the establishment of corresponding business data channels, such as an audio / video channel or a file channel. That is, real-time synchronization notifications can initiate the control channel, meaning only the control channel is needed; audio / video messages initiate the audio / video data channel, and files initiate the file data channel. In other words, audio / video and files, in addition to transmitting control instructions via the control channel, also require the establishment of corresponding audio / video data channels and file data channels.

[0116] S326: The mobile terminal's channel service determines whether the channel exists.

[0117] In some embodiments, the channel service of mobile phone 10 first determines whether a control channel exists. If it exists, step S328 is executed to further determine whether it is the far-field channel corresponding to the message, that is, whether it is the control channel for the service request. For a notification message, messages from multiple application software can reuse a single physical channel, i.e., the control channel. If it does not exist, step S327 is executed, whereby a control channel needs to be established between mobile phone 10 and smartwatch 20, i.e., the control channel establishment is triggered.

[0118] S327: Establish a control channel between the channel service on the mobile device and the channel service on the watch.

[0119] In some embodiments, the channel service of mobile phone 10 can send a request to the channel service of smartwatch 20 to establish a control channel. In other embodiments, the channel service of smartwatch 20 can also send a request to the messaging service of mobile phone 10 to establish a control channel, which is not limited here.

[0120] S328: The mobile terminal's channel service determines whether the control channel corresponds to the message type.

[0121] In some embodiments, the channel service of mobile phone 10 can determine whether the control channel is the far-field channel corresponding to the message type, that is, whether it is the control channel for the service request. If so, S329 is executed, and a far-field channel establishment success notification is returned to the message service, and the application software's messages can be directly transmitted through the control channel. For example, if the message is a notification, then messages from multiple application software, that is, multiple services, can reuse a single physical channel, i.e., the control channel. Otherwise, S330 is executed, and a far-field channel corresponding to the message type needs to be established between mobile phone 10 and smartwatch 20, that is, the service data channel corresponding to the message type.

[0122] In other embodiments, if the channel service receives a notification from the message service that a control channel has been established, it will first determine whether the control channel already exists, enabling multiple services to reuse a single physical channel. If it does not exist, the control channel will be established first; if it already exists, a successful far-field channel establishment notification will be returned directly. If the received message is a file or audio / video message, the channel service needs to establish the business data channel after the control channel is successfully established, and then notify the message service of the successful far-field channel establishment notification after the business data channel is successfully established.

[0123] S329: The channel service on the mobile device sends a notification of successful establishment of the far-field channel to the messaging service on the mobile device.

[0124] In some embodiments, the channel service of mobile phone 10 sends a notification of successful establishment of the far-field channel to the messaging service of mobile phone 10.

[0125] S330: Establishes a business data channel between the channel service on the mobile device and the channel service on the watch.

[0126] In some embodiments, the channel service of mobile phone 10 can send a request to the channel service of smartwatch 20 to establish a business data channel. In other embodiments, the channel service of smartwatch 20 can also send a request to the channel service of mobile phone 10 to establish a control channel, which is not limited here. That is to say, the far-field channel here is bidirectional, supporting not only mobile phone 10 to send messages to smartwatch 20, but also smartwatch 20 to send messages to mobile phone 10. For example, after mobile phone 10 sends an SMS message and synchronizes it to smartwatch 20, smartwatch 20 can quickly reply to the message and send it back to mobile phone 10, which then sends it to the operator.

[0127] S331: The channel service on the watch sends a notification that the far-field channel has been successfully established to the message service on the watch.

[0128] In some embodiments, the channel service of smartwatch 20 receives a request from the channel service of mobile phone 10 to establish a far-field channel, realizes the establishment of a far-field channel between smartwatch 20 and mobile phone 10, and sends a notification of successful establishment of far-field channel to the message service of smartwatch 20.

[0129] S332: The channel service on the mobile device sends a notification of successful establishment of the far-field channel to the messaging service on the mobile device.

[0130] In some embodiments, the channel service of mobile phone 10 can obtain a notification of successful far-field channel establishment from smartwatch 20 via the cloud. The channel service of mobile phone 10 then sends the notification of successful far-field channel establishment to the messaging service of mobile phone 10.

[0131] S333: Mobile application software sends messages to the mobile messaging service.

[0132] In some embodiments, the message here may be a message cached by the application software of mobile phone 10. After the far-field channel is established, the application software of mobile phone 10 sends a request to the messaging service of mobile phone 10 for messages that need to be transmitted / synchronized through the far-field channel.

[0133] S334: The mobile phone's messaging service sends control messages and messages to the mobile phone's channel service.

[0134] In some embodiments, the messaging service of mobile phone 10 sends a request to the channel service of mobile phone 10 to transmit / synchronize messages to smartwatch 20 based on a notification of successful far-field channel establishment. This request to transmit / synchronize messages may include control messages and other messages, wherein the control messages may be instructions to notify the channel service to begin transmitting / synchronizing messages.

[0135] S335: The mobile phone's channel service sends messages to the watch's channel service.

[0136] In some embodiments, the channel service of mobile phone 10 transmits / synchronizes messages to the channel service of smartwatch 20 based on requests sent by the message service of mobile phone 10. This means that if the message is transmitted via a far-field channel, the channel service on the watch, i.e., the far-field service module, upon receiving the message, can also notify the message service, which in turn notifies the application software on the watch, i.e., the upper-layer business layer, for user interface (UI) display.

[0137] S336: The channel service on the watch sends a far-field message notification to the messaging service on the watch.

[0138] In some embodiments, after receiving a message, the channel service of smartwatch 20 sends a notification to the messaging service of smartwatch 20 that a far-field message has been received.

[0139] S337: The watch's messaging service sends far-field message notifications to the watch's messaging assistant.

[0140] In some embodiments, after receiving a message, the messaging service of the smartwatch 20 sends a notification to the messaging assistant of the smartwatch 20 that a far-field message has been received.

[0141] S338: The mobile terminal's channel service sends a successful far-field message delivery notification to the mobile terminal's messaging service.

[0142] In some embodiments, the channel service of mobile phone 10 can obtain notifications of far-field messages received by smartwatch 20 through the cloud, and the channel service of mobile phone 10 can send a notification of successful message transmission / synchronization to the message service of mobile phone 10.

[0143] S339: The mobile messaging service will send a success notification to the mobile application.

[0144] In some embodiments, when the messaging service of mobile phone 10 determines that a message has been successfully sent to smartwatch 20 via the far-field channel, the messaging service of mobile phone 10 sends a notification to the application software of mobile phone 10 indicating that the message has been successfully sent to smartwatch 20 via the far-field channel. When the messaging service of mobile phone 10 determines that a message has not been successfully sent to smartwatch 20 via the far-field channel, the messaging service of mobile phone 10 sends a notification to the application software of mobile phone 10 indicating that the message has not been successfully sent to smartwatch 20 via the far-field channel.

[0145] S340: Mobile applications send messages to the mobile messaging service.

[0146] In some embodiments, the message here may be a new message generated or received by the application software of mobile phone 10. After the far-field channel is established, the application software of mobile phone 10 can continue to send requests to the messaging service of mobile phone 10 for messages that need to be transmitted / synchronized through the far-field channel.

[0147] S341: The messaging service on the mobile device sends messages to the mobile device via a channel service.

[0148] In some embodiments, the messaging service of mobile phone 10 sends a request to the channel service of mobile phone 10 to transmit / synchronize messages to smartwatch 20 based on the notification of successful establishment of far-field channel.

[0149] S342: The mobile terminal's channel service sends messages to the watch's channel service.

[0150] In some embodiments, the channel service of mobile phone 10 transmits / synchronizes messages to the channel service of smartwatch 20 based on requests sent by the messaging service of mobile phone 10.

[0151] It is understandable that after each message is sent, after a preset time period, such as 1 minute, the far-field communication between the mobile phone 10 and the smartwatch 20 can be actively disconnected, and the far-field communication can be re-established when the mobile phone 10 and the smartwatch 20 need to transmit / synchronize messages again.

[0152] S343: The mobile application determines whether Bluetooth is connected.

[0153] In some embodiments, the application software of the mobile phone 10 determines whether there is a Bluetooth connection. If the Bluetooth connection is already established, the process proceeds to step S350, and the application software of the mobile phone 10 can continue to synchronize messages with the smartwatch 20 via Bluetooth.

[0154] S344: The mobile phone's messaging service determines whether Bluetooth is connected.

[0155] In some embodiments, the messaging service of mobile phone 10 can also determine whether there is a Bluetooth connection. If Bluetooth is already connected, then step S345 is executed, and the messaging service of mobile phone 10 notifies the channel service to stop the far-field communication service.

[0156] S345: The mobile phone's messaging service sends a command to the mobile phone's channel service to stop far-field communication.

[0157] In some embodiments, when the messaging service of mobile phone 10 determines that a Bluetooth connection already exists, it sends a command to the channel service of mobile phone 10 to stop the far-field service.

[0158] S346: Release resources for the mobile terminal's channel service.

[0159] In some embodiments, when the channel service of mobile phone 10 receives an instruction to stop the far-field service, it releases the resources transmitted in the far-field channel, such as synchronization messages, based on the instruction.

[0160] S347: The message assistant on the watch determines whether Bluetooth is connected.

[0161] In some embodiments, the message assistant of the smartwatch 20 can also determine whether there is a Bluetooth connection. If the Bluetooth is already connected, the process proceeds to step S348, whereby the message assistant of the smartwatch 20 notifies the channel service to stop the far-field communication service via the message service.

[0162] S348: The messaging service on the watch sends a command to the channel service on the watch to stop far-field communication.

[0163] In some embodiments, when the message assistant of the smartwatch 20 determines that a Bluetooth connection already exists, it sends a command to the channel service of the smartwatch 20 to stop the far-field service.

[0164] S349: The channel service on the watch determines that the far-field device is offline.

[0165] In some embodiments, the messaging service of smartwatch 20 can log out of smartwatch 20 in the cloud based on the instruction to stop far-field communication; the notification channel service of smartwatch 20 to log out of the cloud can be used to notify smartwatch 20.

[0166] S350: The mobile device receives messages sent by the user to the application software.

[0167] In some embodiments, the user here can be a user of mobile phone 10 or an application software service provider.

[0168] S351: The mobile application transmits messages to the watch via Bluetooth.

[0169] In some embodiments, under Bluetooth connection, the application software of mobile phone 10 can directly transmit / synchronize messages to smartwatch 20 via the Bluetooth channel. It is understood that after mobile phone 10 or smartwatch 20 detects the Bluetooth connection, far-field communication between mobile phone 10 and smartwatch 20 can be stopped, the far-field channel can be disconnected, and only one of the far-field and near-field channels is retained, saving power consumption for mobile phone 10 and smartwatch 20.

[0170] The communication method described in this application enables electronic devices to establish far-field communication when near-field communication is disconnected. Messages corresponding to subscription requests are cached when near-field communication is disconnected. After far-field communication is established, messages are transmitted / synchronized in a timely manner based on far-field communication. Furthermore, corresponding channels can be established according to the message type to achieve message transmission. This allows users to obtain messages promptly while saving latency and power consumption of electronic devices, and also improves the user experience.

[0171] It can be seen that in the above Figure 3 In the described process, near-field communication needs to be established between the mobile phone 10 and the smartwatch 20 first. When the near-field communication is disconnected, a corresponding far-field communication is established for transmission based on the type / data volume of the subscribed message. In some embodiments, during the process of directly establishing far-field communication between the mobile phone 10 and the smartwatch 20, that is, without considering the use of near-field communication, a corresponding far-field communication is established for transmission based on the type / data volume of the subscribed message.

[0172] After introducing the scenarios and processes of the communication methods involved in this application, the hardware structure of the electronic devices to which the communication methods are applicable will be described below.

[0173] For example Figure 4 A schematic diagram of the structure of an electronic device is shown according to some embodiments of this application. For example... Figure 4The electronic device 100 shown includes one or more processors 101, system memory 102, non-volatile memory (NVM) 103, communication interface 104, input / output (I / O) device 105, system control logic 106, and instructions 107.

[0174] Wherein: the processor 101 may include one or more processing units, such as a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a micro-programmed control unit (MCU), an AI (Artificial Intelligence) processor, or a processing module or processing circuit of a field-programmable gate array (FPGA), which may include one or more single-core or multi-core processors.

[0175] System memory 102 is volatile memory, such as random-access memory (RAM), double-data-rate synchronous dynamic random access memory (DDR SDRAM), etc. System memory is used for temporary storage of data and / or instructions; for example, in some embodiments, system memory 102 may be used to store instructions for executing communication methods, etc.

[0176] The non-volatile memory 103 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, the non-volatile memory 103 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as a hard disk drive (HDD), compact disc (CD), digital versatile disc (DVD), solid-state drive (SSD), etc. In some embodiments, the non-volatile memory 103 may also be a removable storage medium, such as a secure digital (SD) memory card. The non-volatile memory 103 can be used to store the aforementioned business server information, etc.

[0177] Instruction 107 may include: being executed by at least one of the processors 101 to cause terminal 100 to implement the far-field communication method provided in the embodiments of this application.

[0178] The communication interface 104 may include a transceiver for providing a wired or wireless communication interface to the terminal 100, thereby enabling communication with any other suitable device via one or more networks. In some embodiments, the communication interface 104 may be integrated into other components of the terminal 100, for example, the communication interface 104 may be integrated into the processor 101. The communication interface 104 may be used to establish near-field communication or far-field communication between electronic devices.

[0179] The input / output (I / O) device 105 may include input devices such as a keyboard and mouse, and output devices such as a monitor. Users can interact with the terminal 100 through the input / output (I / O) device 105.

[0180] System control logic 106 may include any suitable interface controller to provide any suitable interface to other modules of terminal 100. For example, in some embodiments, system control logic 106 may include one or more memory controllers to provide an interface to system memory 102 and non-volatile memory 103.

[0181] In some embodiments, at least one of the processors 101 may be packaged together with the logic of one or more controllers for system control logic 106 to form a system-in-package (SiP). In other embodiments, at least one of the processors 101 may also be integrated on the same chip with the logic of one or more controllers for system control logic 106 to form a system-on-chip (SoC).

[0182] The embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of this application can be implemented as computer programs or program code executable on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0183] Program code can be applied to input instructions to execute the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application-specific integrated circuit (ASIC), or a microprocessor.

[0184] The program code can be implemented using a high-level procedural language or an object-oriented programming language to communicate with the processing system. Assembly language or machine language can also be used when needed. In fact, the mechanisms described in this application are not limited to any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0185] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored thereon on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine-readable (e.g., computer-readable) form, including but not limited to floppy disks, optical disks, CD-ROMs, magneto-optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic cards or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in the form of electrical, optical, acoustic, or other propagation signals. Therefore, machine-readable media include any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine-readable (e.g., computer-readable) form.

[0186] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.

[0187] It should be noted that all units / modules mentioned in the device embodiments of this application are logical units / modules. Physically, a logical unit / module can be a physical unit / module, a part of a physical unit / module, or a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important factor; the combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed in this application. Furthermore, to highlight the innovative aspects of this application, the above-described device embodiments of this application have not introduced units / modules that are not closely related to solving the technical problems proposed in this application. This does not mean that the above-described device embodiments do not contain other units / modules.

[0188] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0189] Although this application has been illustrated and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made thereto without departing from the scope of this application.

Claims

1. A communication method, characterized in that, include: A first electronic device acquires and stores a first message in response to a message subscription request, wherein the first electronic device sends the first message to a second electronic device based on the message subscription request; Corresponding to the first message belonging to the first transmission type, when the first transmission type is a notification, the first electronic device and the second electronic device establish a first communication connection based on the first communication method to transmit the first message, and the communication channel of the first communication connection includes a control channel; Corresponding to the first message belonging to the second transmission type, when the first transmission type is audio / video or file, the first electronic device and the second electronic device establish a second communication connection based on the first communication method to transmit the first message. The communication channel of the second communication connection includes the control channel and the service data channel. The first communication method includes far-field communication, the first communication connection corresponds to the first transmission type, the second communication connection corresponds to the second transmission type, and the communication channel of the first communication connection is different from the communication channel of the second communication connection.

2. The method according to claim 1, characterized in that, The first electronic device acquires and stores a first message in response to the message subscription request, including: The first electronic device and the second electronic device establish a third communication connection based on the second communication method; The first electronic device receives the message subscription request sent by the second electronic device; When the third communication connection is disconnected, the first electronic device receives the first message, wherein the second communication method includes near-field communication.

3. The method according to claim 2, characterized in that, The first electronic device receives the message subscription request sent by the second electronic device, including: Corresponding to the first electronic device and the second electronic device supporting the first communication method, the first electronic device receives a message subscription request sent by the second electronic device, wherein the message subscription request includes at least one of message type and format.

4. The method according to claim 2, characterized in that, The first electronic device acquires and stores a first message in response to a message subscription request, and further includes: In the event that the second communication method is disconnected and there is no first electronic device that supports the first communication method, the first electronic device stores the first message.

5. The method according to claim 2, characterized in that, The first electronic device acquires and stores a first message in response to a message subscription request, and further includes: The first electronic device detects that the third communication connection is disconnected, and the first electronic device determines whether the second electronic device meets the communication conditions of the first communication method; Corresponding to the communication conditions of the second electronic device satisfying the first communication method, the first electronic device determines that the second electronic device registers the device information of the second electronic device on the server; Since the first electronic device has already registered its device information on the server, the first electronic device and the second electronic device perform account authentication.

6. The method according to claim 5, characterized in that, The communication conditions of the first communication method include at least one of the following: The account information corresponding to the account logged in by the second electronic device is the same as the account information corresponding to the account logged in by the first electronic device; The function corresponding to the first communication method in the second electronic device is enabled; The second communication method connection is lost; The second electronic device is in a network-connected state.

7. The method according to claim 1, characterized in that, The control channel is used to transmit control commands between the first electronic device and the second electronic device.

8. The method according to claim 1, characterized in that, The data channel is used to transmit data between the first electronic device and the second electronic device.

9. The method according to claim 2, characterized in that, Also includes: If the third communication connection is re-established and the second electronic device obtains the second message corresponding to the message subscription request, the first electronic device disconnects the first communication connection or the second communication connection. The first electronic device sends the second message to the second electronic device through the third communication connection.

10. The method according to claim 2, characterized in that, The near-field communication includes at least one of NFC and Bluetooth, and the far-field communication includes at least one of WIFI and cellular communication.

11. An electronic device, characterized in that, include: Memory, used to store instructions; A processor for executing the instructions to implement the communication method according to any one of claims 1-10.

12. A readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed on an electronic device, cause the electronic device to perform the communication method according to any one of claims 1-10.

Citation Information

Patent Citations

  • Cellular communication system, method for inter-cell handover of terminal and macro base station

    CN102348244A

  • Information processing method, first electronic equipment and computer system

    CN110602805A

  • Data interaction method, electronic equipment and computer readable storage medium

    CN115914983A