Communication method, electronic equipment and readable storage medium

By cache message subscription requests when near-field communication is disconnected and channel establishment is optimized in far-field communication according to the message type, the power consumption and delay problems caused by establishing multiple channels at the same time in far-field communication are solved, and the user experience is improved and message transmission efficiency.

CN119277355AActive Publication Date: 2025-01-07HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In far-field communication between electronic devices, it is necessary to establish a control channel and a service data channel at the same time, resulting in additional power consumption and delay, affecting the user experience, especially when the message data volume is small.

Method used

When the near-field communication is disconnected, the message subscription request is cached and when the message type is established, only the necessary channels are established for message transmission, such as using only the control channel to transmit notification messages, or establishing control channels and services at the same time. Data channel transmits audio and video or files.

Benefits of technology

The power consumption and delay of electronic devices are reduced, the user experience is improved, and the use of channels is optimized according to the message type, and the efficiency of message transmission is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277355A_ABST
    Figure CN119277355A_ABST
Patent Text Reader

Abstract

The invention relates to the field of communication, in particular to a communication method, electronic equipment and a readable storage medium, and the method comprises the steps that first electronic equipment obtains and stores a first message for a message subscription request, and the first message belongs to a first transmission type correspondingly; the first electronic device and the second electronic device establish a first communication connection based on the first communication mode to transmit the first message; corresponding to the fact that 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 mode to transmit the first message, and a communication channel of the first communication connection is different from a communication channel of the second communication connection. According to the embodiment of the invention, the far-field communication can be established between the electronic devices when the near-field communication is disconnected, the message corresponding to the subscription request is cached when the near-field communication is disconnected, the message is transmitted / synchronized in time based on the far-field communication after the far-field communication is established, and a corresponding channel can be established 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] The present application relates to the field of communications, and in particular to a communication method, an electronic device and a readable storage medium. Background Art

[0002] With the development of communication technology, when the distance between multiple electronic devices meets the distance requirement of near-field communication, near-field communication technology (such as Bluetooth communication technology) can be used for communication to achieve message transmission / message synchronization between multiple electronic devices. When the distance between electronic devices increases, resulting in the disconnection of near-field communication between them, far-field communication (such as radio frequency identification technology (RFID)) can also be established between the electronic devices, and messages can continue to be transmitted based on far-field communication.

[0003] The far-field channel corresponding to the far-field communication established between electronic devices may include a control channel and a business data channel, wherein the control instructions between electronic devices are generally transmitted through the control channel, while notifications, audio / video, pictures and other messages (also referred to as data) are generally transmitted through the business data channel. Therefore, when synchronizing messages between electronic devices, the electronic devices do not pay attention to the type of message, and both the business data channel and the control channel will be established at the same time. However, when the amount of data of the message to be transmitted is small, establishing two channels will cause the electronic device to generate additional power consumption and delay the message transmission, affecting the user experience. Summary of the invention

[0004] To solve the above problems, embodiments of the present application provide a communication method, an electronic device, and a readable storage medium.

[0005] In a first aspect, the present application provides a communication method, characterized by comprising:

[0006] The first electronic device obtains and stores a first message for a message subscription request, wherein the first electronic device sends the first message to the 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 the 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 channel of the first communication connection is different from the communication channel of the second communication connection.

[0007] In some embodiments, the first electronic device may be a mobile phone, and the second electronic device may be a smart watch. The first communication mode may be far-field communication, and far-field communication is established between the two electronic devices, and a corresponding communication connection is established according to the transmission type of the first message to be transmitted to realize message transmission. For example: if the first transmission type is a notification message, the first communication connection established is a control channel; if the second transmission type is an audio and video message or a file, the second communication connection established is a control channel and a business data channel.

[0008] In a possible implementation of the first aspect above, a first electronic device obtains and stores a first message for a message subscription request, including: a third communication connection is established between the first electronic device and a second electronic device based on a 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.

[0009] In some embodiments, the second communication mode may be near field communication, and a near field communication connection is established between the first electronic device and the second electronic device based on the near field communication, that is, a third communication connection, and the first electronic device sends a subscription request to the second electronic device. The content of the subscription request may include the message type and message format of the message from the first electronic device that the second electronic device needs to obtain under far field communication. For example, the message type of the synchronized message may be notification, file, audio and video, etc. When the near field communication connection is disconnected, the second electronic device detects the first message corresponding to the first subscription request and stores the first message. For example, the first subscription request is a subscription short information notification message, and the first message is a text message notification message, and the text message notification message is stored. When the first electronic device establishes a far field communication connection with the second electronic device, the second electronic device may send the first message to the first electronic device.

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

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

[0012] In some embodiments, before the second electronic device sends a subscription request to the first electronic device, it needs to determine that the first electronic device and the second electronic device support far field communication.

[0013] Based on the above solution, when neither the first electronic device nor the second electronic device supports the second communication mode, the second electronic device does not send a subscription request to the first electronic device, thereby avoiding the problem of process waste.

[0014] In a possible implementation of the first aspect above, the first electronic device obtains and stores a first message for a message subscription request, and also includes: when the second communication mode is disconnected and there is no first electronic device supporting the first communication mode, the first electronic device stores the first message.

[0015] Based on the above scheme, when 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 stores the first message in the first electronic device, and then the stored first message can be directly sent to the second electronic device after the near-field connection or the far-field connection, so as to synchronize the messages in time.

[0016] In a possible implementation of the first aspect above, the first electronic device obtains and stores a first message for a message subscription request, and also 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 second electronic device meeting the communication conditions of 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; corresponding to the first electronic device having registered the device information of the first electronic device on the server, the first electronic device and the second electronic device perform 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; and certificates can be used to authenticate the cloud on the device side. And after authenticating the device side based on the cloud and the cloud on the device side, end-to-end authentication is required between the device sides. For example, same-account authentication can be used, i.e., the account logged in between the first electronic device and the second electronic device needs to be the same account, and a key negotiation algorithm can be used for end-to-end authentication to enable far-field communication between end-to-end devices based on far-field channels.

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

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

[0020] In a possible implementation of the first aspect, the first transmission type of the first message is 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 mode 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 instructions between the first electronic device and the second electronic device.

[0022] In a possible implementation of the first aspect above, the second transmission type of the first message is audio, video or file, and corresponding to the first message belonging 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 business data channel, wherein the data channel is used to transmit data between the first electronic device and the second electronic device.

[0023] In a possible implementation of the first aspect, the present invention further includes:

[0024] When 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.

[0025] In a possible implementation of the first aspect 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, the present application provides an electronic device, comprising: a memory for storing instructions; a processor for executing instructions to implement the communication method provided in the first aspect and any possible implementation of the first aspect.

[0027] In a third aspect, the present application provides a readable storage medium having instructions stored thereon, which, when executed, enables an electronic device to implement the communication method provided by the first aspect and any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0029] Figure 1B According to some embodiments of the present 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 the present application, a schematic diagram of a scenario of far-field communication between a mobile phone and a watch is shown;

[0031] Figure 2A According to some embodiments of the present application, a flow chart of a communication method is shown;

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

[0033] Figure 3 According to some embodiments of the present application, a flow chart of a communication method is shown;

[0034] Figure 4 According to some embodiments of the present application, a schematic structural diagram of an electronic device is shown. DETAILED DESCRIPTION

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

[0036] The technical solution of the present application is described below in conjunction with the accompanying drawings.

[0037] In some embodiments, taking the electronic devices as a mobile phone and a smart watch, for example, Figure 1A As shown, Bluetooth communication (near field communication) can be established between the mobile phone 10 and the smart watch 20, and then the smart watch 20 can complete the subscription request of the notification message of the application software with the mobile phone 10, receive the notification message from the mobile phone 10, and realize the message synchronization between the mobile phone 10 and the smart watch 20. For example, the mobile phone 10 can select / bind the smart watch 20 (that is, the smart watch 20 connected to the mobile phone 10 via Bluetooth communication) through APP1, such as: sports health APP, and after receiving the notification message of the sports health APP, the mobile phone 10 can synchronize the notification message to the smart watch 20, so that the user can synchronously receive / browse the notification message from the mobile phone 10 through the smart watch 20.

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

[0039] Specifically, the process of establishing far-field communication between the mobile phone 10 and the smart watch 20 may include: when the mobile phone 10 and the smart watch 20 are in near-field communication, the mobile phone 10 and the smart watch 20 implement device binding and account synchronization, that is, a user account is logged in on the mobile phone 10, and the mobile phone 10 sends a synchronization instruction for synchronizing the user account to the smart watch 20, and then the smart watch 20 can control the smart watch 20 to log in to the same user account based on the synchronization instruction, so that the mobile phone 10 and the smart watch 20 are electronic devices under the same user account. At the same time, the mobile phone 10 and the smart watch 20 can also determine the far-field communication capability supported by both parties, that is, the communication type of far-field communication; after the near-field communication is disconnected, if the mobile phone 10 needs to synchronize the notification message of the sports health APP received to the smart watch 20, the smart watch 20 and the mobile phone 10 can establish far-field communication, that is, when the mobile phone 10 and the smart watch 20 are determined to have far-field communication capability, the mobile phone 10 and the smart watch 20 can register with each other through the cloud; after the near-field communication is disconnected, the smart watch 20 can send a request to establish far-field communication to the mobile phone 10 through the cloud, and the mobile phone 10 can respond to the request sent by the smart watch 20. When the mobile phone 10 also has far-field communication capability, the smart watch 20 and the mobile phone 10 can establish far-field communication.

[0040] It can be understood that when the mobile phone 10 synchronizes the notification message to the smart watch 20 through far-field communication, a control channel and a service data channel need to be established between the mobile phone 10 and the smart watch 20 at the same time, which can be collectively referred to as a communication channel. The mobile phone 10 sends a synchronization instruction of the notification message to the smart watch 20 through the control channel, and sends the notification message to the smart watch 20 through the service data channel. That is to say, under far-field communication, each time a message transmission / synchronization is realized between the mobile phone 10 and the smart watch 20, regardless of the size of the data volume corresponding to the message, the control channel and the service data channel need to be established between the mobile phone 10 and the smart watch 20 at the same time, resulting in additional delay and power consumption when establishing the far-field channel.

[0041] Therefore, in order to solve the above-mentioned delay and power consumption problems caused by the need to simultaneously establish a control channel and a business data channel to transmit data between electronic devices under far-field communication, an embodiment of the present application provides a communication method, including: under near-field communication, implementing a message subscription request between two electronic devices and determining the far-field communication capabilities supported by both parties, if it is determined that the near-field communication is disconnected and the subscribed message needs to be transmitted between the two electronic devices, establishing far-field communication between the two electronic devices, and establishing a corresponding channel to realize message transmission according to the type of message to be transmitted. For example: for notification messages, directly establish and only use the control channel for data transmission; for audio and video messages or files, establish a control channel and a business data channel at the same time, and use the business data channel for message transmission.

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

[0043] In some embodiments, taking the smart watch 20 and the mobile phone 10 as an example, if the smart watch 20 subscribes to the notification message of the sports health APP from the mobile phone 10, then when the near field communication connection is disconnected, if the mobile phone 10 receives the notification message of the sports health APP, the notification message can be temporarily stored; when the mobile phone 10 and the smart watch 20 establish far field communication, only a control channel can be established, and then the mobile phone 10 sends the notification message to the smart watch 20 through the control channel. In other embodiments, if the smart watch 20 subscribes to file forwarding synchronization from the mobile phone 10, when the mobile phone 10 and the smart watch 20 establish far field communication, a control channel and a file data channel can be established, and then the mobile phone 10 sends the file to the smart watch 20 through the file data channel.

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

[0045] After introducing the application scenarios corresponding to the communication method of the present application, the following first introduces 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 smart watch and a mobile phone respectively. The method flow includes:

[0046] S201: A first communication connection is established between a first electronic device and a second electronic device based on a first communication mode, and the first electronic device sends a message subscription request to the second electronic device.

[0047] Exemplarily, the first communication mode here may be near field communication, such as Bluetooth. The message subscription request may be a subscription request for messages acquired / generated by an application of the second electronic device, such as notifications of a sports health APP of the second electronic device.

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

[0049] Exemplarily, 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 may cache the first message.

[0050] S203: A second communication connection corresponding to the first message is established between the first electronic device and the second electronic device based on the second communication mode, and the second electronic device sends the first message to the first electronic device.

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

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

[0053] The mobile phone 10 may include an application program (APP), such as a sports health APP 101, a message notification module 102, and a channel service 103. Among them, the sports health APP 101 can realize message notification and device pairing, and the message notification process may include realizing a subscription request for a message corresponding to the sports health APP 101 between the mobile phone 10 and the smart watch 20 and sending the subscribed sports health APP 101 message to the smart watch 20. The device pairing process may include device binding and account synchronization according to the user account of the mobile phone 10 and the user account of the smart watch 20 under near field communication.

[0054] The message notification module 102, also known as a message service, is used to receive messages or requests from the mobile phone 10 and the smart watch 20. For example: monitor the connection status of Bluetooth through the sports health APP 101; send requests and transmit messages between the mobile phone 10 and the smart watch 20 through near field communication (such as Bluetooth); determine the far field communication capabilities supported by both parties between the mobile phone 10 and the smart watch 20, that is, subscribe to the far field message types supported by both parties, implement device binding and account synchronization corresponding to the far field communication, and determine the messages that need to be transmitted / synchronized under the far field communication.

[0055] The channel service 103 can be used to manage, maintain and confirm device binding between the mobile phone 10 and the smart watch 20, that is, to manage, maintain and confirm device registration / authentication; and to establish a far-field communication channel according to the type of message to be transmitted / synchronized. The channels here may include: control channels and business data channels, which can be represented by MagicLink and MagicTrans respectively.

[0056] The smart watch 20 may include a message service 201 and a channel service 202. The message service 201 may implement message notification, device pairing, and account login, wherein the message notification process may include implementing a subscription request for messages corresponding to the sports health APP 101 between the mobile phone 10 and the smart watch 20 and receiving messages of the subscribed sports health APP 101. The device pairing process may include device binding and account synchronization according to the user account of the mobile phone 10 and the user account of the smart watch 20 under near field communication. The account login process may include the smart watch 20 logging in to the same user account as the mobile phone 10. In some embodiments, when the near field communication is disconnected, the message notification module 102 and the message service 201 may also initiate a request to start far field communication between the mobile phone 10 and the smart watch 20, that is, the smart watch 20 may notify the mobile phone 10, and the smart watch 20 goes online as a far field device.

[0057] The channel service 202 can be used to manage, maintain and confirm device binding between the mobile phone 10 and the smart watch 20, that is, to manage, maintain and confirm device registration / authentication; and to establish a far-field communication channel according to the type of message to be transmitted / synchronized. The channels here may include: control channels and business data channels, which can be represented by MagicLink and MagicTrans respectively.

[0058] The device cloud 30 can be used to implement device registration / authentication of the mobile phone 10 and the smart watch 20 on the cloud side, that is, the corresponding relationship between the device binding and account synchronization that has been implemented between the mobile phone 10 and the smart watch 20 can be saved on the cloud side through the device cloud 30.

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

[0060] After introducing the communication system applicable to the communication method of the present application, the communication method mentioned in the embodiment of the present application is further introduced in detail below. Figure 3 A flow chart of a communication method is shown, wherein the two electronic devices may be a mobile phone 10 and a smart watch 20. Figure 3 As shown, the mobile phone and the smart watch can be respectively referred to as the mobile phone end and the watch end, and the specific process of the communication method includes:

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

[0062] In some embodiments, the application software here may also be referred to as APP service, which may be as follows: Figure 2B The sports health APPA101 of the mobile phone 10 shown can log in to the user account in the application software of the mobile phone 10, and the application software sends an instruction to synchronize the account to the message assistant of the smart watch 20, so that the mobile phone 10 and the smart watch 20 are logged in with the same user account or the same group of user accounts, thereby realizing the account binding of the mobile phone 10 and the smart watch 20.

[0063] S302: The message assistant on the watch negotiates with the application software on the mobile phone whether the mobile phone supports far-field capability.

[0064] In some embodiments, when the smart watch 20 completes account synchronization with the mobile phone 10, the message assistant of the smart watch 20 negotiates with the application software of the mobile phone 10 whether both devices support far-field communication, that is, support the same type of far-field communication, which can also be called having far-field communication capability.

[0065] S303: After the mobile phone negotiates to support the far field capability, it sends a request to the message service to activate the far field service capability.

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

[0067] S304: The message service on the mobile phone sends an instruction to register the far-field device to the channel service.

[0068] In some embodiments, the message service of the mobile phone 10 sends an instruction to register the mobile phone 10 in the cloud (not shown in the figure) to the channel service of the mobile phone 10 based on the instruction sent by its application software to pull up the far-field service capability of the mobile phone 10. It can be understood that the channel service can assign a far-field communication address to the mobile phone 10 based on the above instruction, so that the mobile phone 10 can perform far-field communication with other electronic devices through the cloud based on the far-field communication address. For example, in some embodiments, the mobile phone 10 registers the device cloud in the cloud through its channel service, that is, registers the 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 been registered in the cloud and has far-field communication capabilities, the message assistant of the smart watch 20 determines whether the smart watch 20 supports far-field communication. If the smart watch 20 supports far-field communication, the process proceeds to step S306, i.e., the message assistant of the smart watch 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; and executes step S308, i.e., determining whether the Bluetooth connection of the smart watch 20 is disconnected. If the smart watch 20 does not support far-field communication, the determination process ends.

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

[0072] In some embodiments, when it is determined that the smart watch 20 supports far field communication, the message assistant of the smart watch 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 type of messages that need to be synchronized can be SMS notifications, incoming call notifications, Yoyo card reminders, audio and video, files, etc., which are not limited here.

[0073] S307: The message service on the mobile phone caches the types of messages subscribed by the watch to be synchronized under far field communication.

[0074] In some embodiments, when the message service of the mobile phone 10 receives a subscription request for information such as the type and format of messages to be synchronized in far-field communication sent by the message assistant of the smart watch 20, for example, in some embodiments, when connected to Bluetooth, the message assistant of the smart watch 20 can send information such as the type of messages to be synchronized in far-field to the message service of the mobile phone 10. Further, the mobile phone 10 stores the type of messages to be synchronized subscribed by the smart watch 20 in the mobile phone 10.

[0075] S308: The message assistant on the watch determines whether the Bluetooth connection on the watch is disconnected.

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

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

[0078] In some embodiments, when it is determined that the Bluetooth connection of the smart watch 20 is disconnected, the message assistant of the smart watch 20 further determines whether the smart watch 20 meets the far-field communication condition. If the smart watch 20 meets the far-field communication condition, the process goes to step S310, and the message assistant of the smart watch 20 sends an instruction to the message service of the smart watch 20 to activate the far-field capability of the smart watch 20.

[0079] In some embodiments, determining whether the smart watch 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 account of the smart watch 20 and the mobile phone 10 is the same account, and the account information is the same; the second far-field communication condition is the far-field message switch status, that is, the switch of the smart watch 20 for receiving far-field communication messages is turned on / the function is turned on.

[0080] In some embodiments, the third far-field communication condition may be that the Bluetooth connection is disconnected; the fourth far-field communication condition is that the data preparation for the smart watch to carry out modem stationing is completed. It can be understood that stationing means that the electronic device can access the network, that is, the electronic device is in the stationed state.

[0081] S310: The message assistant on the watch sends an instruction to activate the far-field service capability to the message service on the watch.

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

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

[0084] In some embodiments, the message service of the smart watch 20 sends an instruction to register the smart watch 20 in the cloud to the channel service of the smart watch 20 based on the instruction to pull up the far-field service capability of the smart watch 20 sent by the message assistant of the smart watch 20. For example: in some embodiments, the smart watch 20 registers the device cloud in the cloud through its channel service, that is, registers the device information of the smart watch 20 in the cloud, including: the device ID of the smart watch 20, etc., which is used to uniquely identify the smart watch 20.

[0085] In some embodiments, when an electronic device registers a device cloud in the cloud through a channel service, device verification is required. PKI (Public Key Infrastructure) authentication can be used to authenticate the device side on the cloud side. It can be understood that PKI authentication can be authenticated by binding the identity of the certificate holder and the relevant key pair; and the cloud authentication on the device side can be authenticated through certificates. And after authenticating the device side based on the cloud side and the device side authenticating the cloud, end-to-end authentication is required between the device side and the device side. For example, the same account authentication can be used, that is, the account logged in between the two devices needs to be the same account, and the ECDH key negotiation algorithm is used for end-to-end authentication, so that end-to-end devices can perform far-field communication based on far-field channels.

[0086] It can be understood that ECDH (Diffie Hellman key exchange) is an anonymous key negotiation 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 on the watch side notifies the message service remote device to come online.

[0088] In some embodiments, the message service of the smart watch 20 can register the smart watch 20 in the cloud based on an instruction sent by the channel service of the smart watch 20 to register the smart watch 20 as a far-field device in the cloud; the channel service or message service of the smart watch 20 can be notified through the cloud of the result of the smart watch 20 being registered as a far-field device in the cloud.

[0089] S313: The channel service on the watch side determines that the watch side is remotely online.

[0090] In some embodiments, the channel service of the mobile phone 10 can obtain the result of the smart watch 20 being registered as a far-field device through the cloud, and determine that the watch end is far-field online.

[0091] S314: After receiving the notification that the remote device on the other end is online, the channel service on the mobile phone notifies the message service on the mobile phone that the remote device is online.

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

[0093] S315: The mobile phone's message service notifies the mobile phone's application software that the mobile phone's remote device is online.

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

[0095] S316: After receiving the notification that the watch's remote device is online, the message service on the mobile phone performs dual-end device same account authentication with the message service on the watch.

[0096] In some embodiments, the mobile phone 10 here has been registered in the cloud, that is, the mobile phone 10 registers the device information of the mobile phone 10 in the cloud, including: the device ID of the mobile phone 10, etc., which is used to uniquely identify the mobile phone 10. When the application software of the mobile phone 10 receives the notification that the smart watch 20 has successfully registered for far-field communication in the cloud, the message service of the mobile phone 10 initiates a dual-end device same-account authentication instruction to the message service of the smart watch 20, so that the dual-end device same-account authentication is realized after the dual-end device same-account security authentication is completed. For example, in some embodiments, the mobile phone 10 and the smart watch 20 can perform the same-account trust ring authentication based on the respective encrypted far-field message data, that is, the same-account authentication. It can be further established that the mobile phone 10 and the smart watch 20 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 the Advanced Encryption Standard (AES), which is the most common symmetric encryption algorithm, and the symmetric encryption algorithm is that the same key is used for encryption and decryption.

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

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

[0099] S318: The application software on the mobile phone sends a message to the message service on the mobile phone.

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

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

[0102] In some embodiments, the message service of the mobile phone 10 can query whether the message sent by the application software is a subscribed message that has been stored between the mobile phone 10 and the smart watch 20. If so, it means that the message needs to be synchronized / transmitted through near-field communication or far-field communication, and 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 the message sent by the application software on the mobile phone, the message service on the mobile phone determines whether the Bluetooth is connected.

[0104] In some embodiments, when the message service of the mobile phone 10 receives a request for synchronous message sending sent by the application software, it is determined whether the Bluetooth connection of the mobile phone 10 is connected. If the Bluetooth of the mobile phone 10 is normally connected, the process goes to step S321, that is, the mobile phone 10 sends a synchronous message to the message service of the smart watch 20 via Bluetooth; if the Bluetooth of the mobile phone 10 is disconnected, the process goes to step S322 to determine whether there is a far-field online device.

[0105] S321: The message service on the mobile phone sends a message to the message service on the watch via the Bluetooth channel.

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

[0107] S322: The message service on the mobile phone determines whether there is a far-field online device.

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

[0109] S323: The message service on the mobile phone sends a notification to the application software that there is no far-field online device and no Bluetooth connection.

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

[0111] S324: The application software on the mobile phone caches the message and waits for the far field communication to go online or the Bluetooth to go online.

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

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

[0114] S325: The message service on the mobile phone selects a far-field channel through the channel service on the mobile phone according to the type of the message.

[0115] In some embodiments, when the message service of the mobile phone 10 determines that there is a far-field online device, it sends an instruction to send a synchronous message through far-field communication to the channel service of the mobile phone 10, triggering the establishment of a far-field channel, which can also be called a communication channel; at the same time, the message service of the mobile phone 10 can further determine the type of message / message type. For example: the message may include notifications, audio and video or files, etc. Corresponding to the message being a notification, it can be transmitted directly through the control channel, and corresponding to the message being audio and video or files, in addition to transmitting the control instruction through the control channel, it is also necessary to establish corresponding business data channels, such as: audio and video channels or file channels. That is, real-time synchronous notifications can pull up the control channel, that is, only the control channel needs to be used; audio and video pull up the audio and video data channel, and files pull up the file data channel, that is, in addition to transmitting the control instruction through the control channel, audio and video and files also need to establish corresponding audio and video data channels and file data channels.

[0116] S326: The channel service on the mobile phone determines whether the control channel exists.

[0117] In some embodiments, the channel service of the mobile phone 10 first determines whether the control channel exists. If so, 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 requested by the service. If the message is a notification, it is a message from multiple application software, that is, multiple services can reuse one physical channel, that is, the control channel. If it does not exist, step S327 is executed, and the control channel needs to be established between the mobile phone 10 and the smart watch 20 first, that is, the establishment of the control channel is triggered.

[0118] S327: A control channel is established between the channel service on the mobile phone and the channel service on the watch.

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

[0120] S328: The channel service on the mobile phone determines whether the control channel corresponds to the type of message.

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

[0122] In other embodiments, if the channel service receives a control channel establishment notification from the message service, it will first determine whether the control channel already exists, so as to realize multiple services multiplexing one physical channel. If it does not exist, it will first establish the control channel, and if it already exists, it will directly return a notification of successful establishment of the far-field channel; if the received message is a file or audio and video, the channel service needs to complete the establishment of the service data channel after the control channel is successfully established, and then notify the message service of the successful establishment of the far-field channel after the service data channel is successfully established.

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

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

[0125] S330: A business data channel is established between the channel service on the mobile phone and the channel service on the watch.

[0126] In some embodiments, the channel service of the mobile phone 10 can send a request to establish a business data channel to the channel service of the smart watch 20. In other embodiments, the channel service of the smart watch 20 can also send a request to establish a control channel to the channel service of the mobile phone 10, which is not limited here. In other words, the far-field channel here is bidirectional, which not only supports the mobile phone 10 to send messages to the smart watch 20, but also supports the smart watch 20 to send messages to the mobile phone 10. For example, after the mobile phone 10 sends a text message and synchronizes it to the smart watch 20, it supports the smart watch 20 to quickly reply to the message and send it to the mobile phone 10, and then send it to the operator through the mobile phone 10.

[0127] S331: The channel service on the watch side sends a notification of successful establishment of a far-field channel to the message service on the watch side.

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

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

[0130] In some embodiments, the channel service of the mobile phone 10 can obtain the notification of successful establishment of the far-field channel of the smart watch 20 through the cloud. The channel service of the mobile phone 10 sends the notification of successful establishment of the far-field channel to the message service of the mobile phone 10.

[0131] S333: The application software on the mobile phone sends a message to the message service on the mobile phone.

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

[0133] S334: The message service on the mobile phone sends a control message and a message to the channel service on the mobile phone.

[0134] In some embodiments, based on the notification of successful establishment of the far-field channel, the message service of the mobile phone 10 sends a request to the channel service of the mobile phone 10 to transmit / synchronize messages to the smart watch 20. The request for transmission / synchronization of messages here may include a control message and a message, wherein the control message may be an instruction for notifying the channel service to start transmission / synchronization of messages.

[0135] S335: The channel service on the mobile phone sends the message to the channel service on the watch.

[0136] In some embodiments, the channel service of the mobile phone 10 transmits / synchronizes messages to the channel service of the smart watch 20 based on the request sent by the message service of the mobile phone 10. It can be understood that if the message is transmitted through the far-field channel, the channel service on the watch side, that is, the far-field service module, can also notify the message service after receiving the message, and then the message service further notifies the application software on the watch side, that is, the upper business layer performs the user interface (UI) display.

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

[0138] In some embodiments, after receiving the message, the channel service of the smart watch 20 sends a notification of receiving the far-field message to the message service of the smart watch 20 .

[0139] S337: The message service on the watch side sends a far-field message notification to the message assistant on the watch side.

[0140] In some embodiments, after receiving the message, the message service of the smart watch 20 sends a notification of receiving the far-field message to the message assistant of the smart watch 20.

[0141] S338: The channel service on the mobile phone sends a far-field message sending success notification to the message service on the mobile phone.

[0142] In some embodiments, the channel service of the mobile phone 10 can obtain the notification of the smart watch 20 receiving the far-field message through the cloud, and the channel service of the mobile phone 10 sends a notification of successful message transmission / synchronization to the message service of the mobile phone 10.

[0143] S339: The message service on the mobile phone sends a successful notification to the application software on the mobile phone.

[0144] In some embodiments, when the message service of the mobile phone 10 determines that the message has been successfully sent to the smart watch 20 through the far-field channel, the message service of the mobile phone 10 sends a successful notification of the result that the synchronization message has been successfully sent to the smart watch 20 through the far-field channel to the application software of the mobile phone 10. When the message service of the mobile phone 10 determines that the synchronization message has not been successfully sent to the smart watch 20 through the far-field channel, the message service of the mobile phone 10 sends a notification of the result that the synchronization message has not been successfully sent to the smart watch 20 through the far-field channel to the application software of the mobile phone 10.

[0145] S340: The application software on the mobile phone sends a message to the message service on the mobile phone.

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

[0147] S341: The message service on the mobile phone sends the message to the channel service on the mobile phone.

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

[0149] S342: The channel service on the mobile phone sends the message to the channel service on the watch.

[0150] In some embodiments, the channel service of the mobile phone 10 transmits / synchronizes messages to the channel service of the smart watch 20 based on a request sent by the message service of the mobile phone 10 .

[0151] It can be understood that after each message is sent, after a preset time period, such as 1 minute, the mobile phone 10 and the smart watch 20 can actively disconnect the far-field communication and wait for the next time when the mobile phone 10 and the smart watch 20 need to transmit / synchronize messages before starting the far-field communication.

[0152] S343: The application software on the mobile phone determines whether the Bluetooth is connected.

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

[0154] S344: The message service on the mobile phone determines whether the Bluetooth is connected.

[0155] In some embodiments, the message service of the mobile phone 10 may also determine whether there is a Bluetooth connection currently. If the Bluetooth is currently connected, the process proceeds to step S345, where the message service of the mobile phone 10 notifies the channel service to stop the far field communication service.

[0156] S345: The message service on the mobile phone sends an instruction to stop far field communication to the channel service on the mobile phone.

[0157] In some embodiments, when the message service of the mobile phone 10 determines that a Bluetooth connection is currently established, an instruction to stop the far-field service is sent to the channel service of the mobile phone 10 .

[0158] S346: The channel service on the mobile phone releases resources.

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

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

[0161] In some embodiments, the message assistant of the smart watch 20 can also determine whether there is a Bluetooth connection currently. If the current Bluetooth is connected, it executes to step S348, and the message assistant of the smart watch 20 notifies the channel service to stop the far field communication service through the message service.

[0162] S348: The message service on the watch side sends an instruction to stop far field communication to the channel service on the watch side.

[0163] In some embodiments, when the message assistant of the smart watch 20 determines that there is currently a Bluetooth connection, it sends an instruction to the channel service of the smart watch 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 message service of the smart watch 20 can deregister the smart watch 20 in the cloud based on the instruction to stop far-field communication; the channel service of the smart watch 20 can be notified through the cloud to deregister the smart watch 20 from the cloud.

[0166] S350: The mobile phone receives a message sent by the user to the application software.

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

[0168] S351: The application software on the mobile phone transmits a message to the watch via Bluetooth.

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

[0170] Through the communication method of the present application, far-field communication can be established between electronic devices when near-field communication is disconnected, and messages corresponding to subscription requests can be cached when near-field communication is disconnected. After the far-field communication is established, messages can be transmitted / synchronized based on the far-field communication in a timely manner, and corresponding channels can be established according to the type of message 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 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 smart watch 20 first. When the near field communication is disconnected, the corresponding far field communication is established for transmission according to the type / data volume of the subscribed message. In some embodiments, in the process of directly establishing far field communication between the mobile phone 10 and the smart watch 20, that is, regardless of the use of near field communication, the corresponding far field communication is established for transmission according to the type / data volume of the subscribed message.

[0172] After introducing the scenarios and processes of the communication method involved in this application, the hardware structure of an electronic device applicable to the communication method is introduced.

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

[0174] Among them: the processor 101 may include one or more processing units, for example, it may include a central processing unit CPU (central processing unit), an image processor GPU (graphics processing unit), a digital signal processor (digital signal processor, DSP), a microprocessor MCU (micro-programmed control Unit), an AI (Artificial Intelligence) processor or a processing module or processing circuit of a programmable logic device (field programmable gate array, FPGA) may include one or more single-core or multi-core processors.

[0175] The system memory 102 is a volatile memory, such as a random-access memory (RAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), etc. The system memory is used to temporarily store data and / or instructions. For example, in some embodiments, the system memory 102 can be used to store instructions for executing a communication method, 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), a compact disc (CD), a digital versatile disc (DVD), a 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, etc. The non-volatile memory 103 may be used to store the above-mentioned business server information, etc.

[0177] The instruction 107 may include: being executed by at least one of the processors 101 to enable the terminal 100 to implement the far-field communication method provided by each embodiment of the present application.

[0178] The communication interface 104 may include a transceiver for providing a wired or wireless communication interface for the terminal 100, and then communicating with any other suitable device through 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, a mouse, etc., and output devices such as a display, etc. A user may interact with the terminal 100 via the input / output (I / O) device 105 .

[0180] System control logic 106 may include any suitable interface controller to provide any suitable interface with other modules of terminal 100. For example, in some embodiments, system control logic 106 may include one or more memory controllers to provide interfaces 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 the 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 with the logic of one or more controllers for the system control logic 106 on the same chip to form a system-on-chip (SoC).

[0182] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed 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 perform 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, a 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] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific 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 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, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

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

[0187] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0188] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0189] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims

1. A communication method, characterized in that: include: The first electronic device acquires and stores a first message for the message subscription request, wherein the first electronic device sends the first message to the second electronic device based on the message subscription request; 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 a first communication mode to transmit the first message; Corresponding to the first message belonging 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, 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 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 obtains and stores a first message for a message subscription request, including: A third communication connection is established between the first electronic device and the second electronic device based on the second communication mode; 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 mode includes near field communication.

3. The method according to claim 2, characterized in that The first electronic device receiving the message subscription request sent by the second electronic device includes: Corresponding to the first electronic device and the second electronic device supporting the first communication mode, 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 a message type and a format.

4. The method according to claim 2, characterized in that: The first electronic device acquires and stores a first message for a message subscription request, further comprising: In the case where 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.

5. The method according to claim 2, characterized in that: The first electronic device acquires and stores a first message for a message subscription request, further comprising: 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 condition of the first communication mode; Corresponding to the second electronic device satisfying the communication condition of the first communication mode, the first electronic device determines that the second electronic device registers the device information of the second electronic device on the server; Corresponding to the fact that the first electronic device has registered the device information of the first electronic device with 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 condition of the first communication mode includes 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 mode in the second electronic device is enabled; The second communication mode connection is disconnected; The second electronic device is in a network-stationed state.

7. The method according to claim 1, characterized in that The first transmission type includes notification, and the second transmission type includes at least one of audio, video, and files.

8. The method according to claim 7, characterized in that The first transmission type of the first message is notification, and 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 a first communication mode 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 instructions between the first electronic device and the second electronic device.

9. The method according to claim 7, characterized in that: The second transmission type of the first message is audio, video or file, and Corresponding to the first message belonging to the second transmission type, the first electronic device and the second electronic device establish a second communication connection based on the first communication mode 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.

10. The method according to claim 2, characterized in that Also includes: When 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.

11. 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.

12. An electronic device, characterized in that: The invention comprises: a memory for storing instructions; A processor, configured to execute the instructions to implement the communication method according to any one of claims 1 to 11.

13. A readable storage medium, characterized in that: The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the communication method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Data transmission system and method

    CN101360054A

  • 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

  • Method and device for avoiding waste of channels between network nodes, electronic equipment and medium

    CN113630472A

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

    CN115914983A