Communication processing method and device based on pbap protocol and storage medium

By sending notification messages in the PBAP protocol and using private protocol commands to carry update information, the problem of clients being unable to synchronize updates in a timely manner is solved, achieving real-time information synchronization and improving user experience.

CN116708469BActive Publication Date: 2026-04-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In PBAP-based communication, the client cannot synchronize and update information in a timely manner, resulting in information asymmetry and a poor user experience.

Method used

After establishing a communication connection between the server and the client, a notification message is sent to notify that information has been updated, and the updated information is carried by a private protocol command to achieve real-time synchronization of information.

Benefits of technology

It eliminates information asymmetry between the client and the server, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708469B_ABST
    Figure CN116708469B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a PBAP protocol-based communication processing method, a PBAP protocol-based communication processing device and a storage medium. The PBAP protocol-based communication processing method is applied to a server and includes the following steps: determining that information stored in the server is updated, and that the server and a client establish a communication connection, and transmitting the information before the update to the client based on a PBAP protocol; sending a notification message to the client, the notification message being used to notify that the information stored in the server is updated; and obtaining an information acquisition request sent by the client based on the notification message, and transmitting the updated information to the client based on the information acquisition request. Through the disclosure, the occurrence of the information inequality and mismatch between the client and the server is eliminated, thereby helping to improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of communication, and particularly relates to a communication processing method and device based on a Phone Book Access Profile (PBAP) and a storage medium. BACKGROUND

[0002] With the continuous progress of science and technology, Bluetooth communication technology is more and more widely applied, for example, in the scenario of communication between a server and a client based on a PBAP protocol. For example, it can be applied in the scenario of synchronizing a contact list in a smart terminal to a vehicle-mounted device.

[0003] In the related art, when communication is performed based on the PBAP protocol, information can be transmitted, for example, information of the server is acquired by the client. However, when the information is changed, the client information cannot be updated in time. For example, in the scenario of synchronizing a contact list in a smart terminal to a vehicle-mounted device, the vehicle-mounted device can acquire the contact list information in the smart terminal, but after the contact list in the smart terminal is updated, the vehicle-mounted device cannot acquire the updated contact list. SUMMARY

[0004] To overcome the problems in the related art, the present disclosure provides a communication processing method based on a PBAP protocol, a communication processing device based on a PBAP protocol, and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a communication processing method based on a PBAP protocol is provided, applied to a server, including: determining that information stored by the server is updated, and that a communication connection is established between the server and a client, and transmitting the information before the update to the client based on the PBAP protocol. A notification message is sent to the client, the notification message being used to notify that the information stored by the server is updated. An information acquisition request sent by the client based on the notification message is acquired, and the updated information is transmitted to the client based on the information acquisition request.

[0006] In an implementation manner, the notification message is sent to the client, including: the notification message is carried in a private protocol command supporting sending of the notification message, and the notification message is sent to the client. The private protocol command supporting sending of the notification message includes a private protocol command based on a Bluetooth device control phone protocol HFP, a private protocol command broadcasted based on a Bluetooth low energy module BLE link, or a private protocol command based on a Bluetooth socket link.

[0007] In yet another implementation, the notification message is carried in a private protocol command supporting sending the notification message, including: adding an information field for carrying the notification message in the private protocol command supporting sending the notification message, the information field including the number of updated information, the update operation corresponding to the updated information, and the content of the updated information.

[0008] In yet another implementation, before sending the notification message to the client, the method further includes: interacting with the client to negotiate and determining that the server and the client both support information updating based on the notification message.

[0009] In yet another implementation, the interacting with the client to negotiate and determining that the server and the client both support information updating based on the notification message includes: obtaining identification bit information sent by the client, the identification bit information being used to identify whether to support information updating based on the notification message. If the identification bit information identifies that information updating based on the notification message is supported and the server supports information updating based on the notification message, sending confirmation information of supporting information updating based on the notification message to the client, and determining that the server and the client both support information updating based on the notification message.

[0010] In yet another implementation, a communication processing method based on a PBAP protocol is provided, and the method is applied to a client, including: receiving a notification message sent by a server, the notification message being used to notify that information stored by the server has been updated. Sending an information acquisition request to the server, and receiving updated information transmitted by the server based on the information acquisition request.

[0011] In yet another implementation, the notification message is carried in a private protocol command supporting sending the notification message. The private protocol command supporting sending the notification message includes a private protocol command based on an HFP protocol, a private protocol command broadcasted based on a BLE link, or a private protocol command based on a Bluetooth sock link.

[0012] In yet another implementation, the private protocol command supporting sending the notification message has an information field for carrying the notification message, and the information field includes the number of updated information, the update operation corresponding to the updated information, and the content of the updated information.

[0013] In yet another implementation, before receiving the notification message sent by the server, the method further includes: interacting with the server to negotiate and determining that the server and the client both support information updating based on the notification message.

[0014] In yet another implementation, the notification unit is further configured to: interact with the client and determine that both the server and the client support information updating based on the notification message before sending the notification message to the client.

[0015] According to a second aspect of the embodiments of the present disclosure, a communication processing apparatus based on a PBAP protocol is provided. The apparatus includes: a processing unit configured to determine that information stored by a server is updated, and that the server and a client establish a communication connection, and transmit the information before the update to the client based on a PBAP protocol. A notification unit configured to send a notification message to the client, the notification message being used to notify that the information stored by the server is updated. An obtaining unit configured to obtain an information obtaining request sent by the client based on the notification message. A sending unit configured to transmit the information after the update to the client based on the information obtaining request.

[0016] In an implementation, the notification unit is configured to send the notification message to the client by carrying the notification message in a private protocol command supporting sending of the notification message. The private protocol command supporting sending of the notification message includes a private protocol command based on a Bluetooth device control telephone protocol (HFP), a private protocol command broadcasted based on a Bluetooth low energy module (BLE) link, or a private protocol command based on a Bluetooth socket link.

[0017] In another implementation, the processing unit is configured to carry the notification message in the private protocol command supporting sending of the notification message by adding an information field for carrying the notification message in the private protocol command supporting sending of the notification message. The information field includes a number of pieces of information after the update, an update operation corresponding to the information after the update, and information content after the update.

[0018] In yet another implementation, the notification unit is further configured to: interact with the client and determine that both the server and the client support information updating based on the notification message before sending the notification message to the client.

[0019] In yet another implementation, the notification unit interacts with the client in the following manner to negotiate and determine that both the server and the client support information updating based on the notification message: obtaining identification bit information sent by the client, the identification bit information being used to identify whether the client supports information updating based on the notification message; if the identification bit information identifies that the client supports information updating based on the notification message and the server supports information updating based on the notification message, sending confirmation information of supporting information updating based on the notification message to the client, and determining that both the server and the client support information updating based on the notification message.

[0020] In yet another implementation, the apparatus comprises: a receiving unit configured to receive a notification message sent by a server, the notification message being used to notify that information stored by the server has been updated; and a sending unit configured to send an information obtaining request to the server and receive information that has been updated and is transmitted by the server based on the information obtaining request.

[0021] In yet another implementation, the notification message is carried in a private protocol command that supports sending of the notification message; the private protocol command that supports sending of the notification message comprises a private protocol command based on a HFP protocol, a private protocol command broadcast based on a BLE link, or a private protocol command based on a Bluetooth sock link.

[0022] In yet another implementation, the private protocol command that supports sending of the notification message is newly added with an information field used to carry the notification message, the information field comprising a number of pieces of information that have been updated, an update operation corresponding to the information that has been updated, and information content of the information that has been updated.

[0023] In yet another implementation, the receiving unit is further configured to: before receiving the notification message sent by the server, interact with the server to negotiate and determine that both the server and the client support information updating based on the notification message.

[0024] In yet another implementation, the receiving unit interacts with the server in the following manner to negotiate and determine that both the server and the client support information updating based on the notification message: sending identification bit information to the server, the identification bit information being used to identify that the client supports information updating based on the notification message; and if confirmation information of supporting information updating based on the notification message sent by the server is received, determining that both the server and the client support information updating based on the notification message.

[0025] According to a third aspect of the embodiments of the present disclosure, a communication processing apparatus based on a PBAP protocol is provided, comprising: a processor; and a memory configured to store processor-executable instructions. The processor is configured to execute the method for communication processing in the first aspect or any one of the implementation manners of the first aspect.

[0026] According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided, and the storage medium stores instructions. When the instructions in the storage medium are executed by a processor, the device including the processor can perform the method for communication processing in the first aspect or any one of the implementation manners of the first aspect.

[0027] The technical solution provided by the embodiments of the present disclosure can have the following beneficial effects: in the case that the server and the client establish a communication connection, when the server information is subjected to an update operation, a notification message is sent to notify the client that the data information of the server has been updated. The client initiates an information acquisition request to the server. The server transmits the information subjected to the update to the client based on the PBAP protocol, so that the occurrence of the information inequality and mismatch between the client and the server is eliminated, and the user experience is improved.

[0028] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0029] The accompanying drawings, which are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure.

[0030] Figure 1 is a flowchart of a method for communication processing based on the PBAP protocol according to an exemplary embodiment.

[0031] Figure 2 is a flowchart of a method for sending a notification message to a client according to an exemplary embodiment.

[0032] Figure 3 is a flowchart of a method for interacting with a client and determining that both the server and the client support information update based on a notification message according to an exemplary embodiment.

[0033] Figure 4 is a flowchart of a method for communication processing based on the PBAP protocol applied to a client according to an exemplary embodiment.

[0034] Figure 5 is a flowchart of a method for receiving a notification message sent by a server according to an exemplary embodiment.

[0035] Figure 6 is a flowchart of a method for interacting with a server and determining that both the server and the client support information update based on a notification message according to an exemplary embodiment.

[0036] Figure 7Fig. 1 is a signaling interaction flow chart between an intelligent terminal and a vehicle-mounted device for determining support for a notification message based on information updating according to an example embodiment.

[0037] Figure 8 Fig. 2 is a signaling flow chart for sending a notification message for adding a contact list according to an example embodiment.

[0038] Figure 9 Fig. 3 is a signaling flow chart for sending a notification message for deleting a contact list according to an example embodiment.

[0039] Figure 10 Fig. 4 is a signaling flow chart for sending a notification message for modifying a contact list according to an example embodiment.

[0040] Figure 11 Fig. 5 is a block diagram of a communication processing device based on a PBAP protocol according to an example embodiment.

[0041] Figure 12 Fig. 6 is a block diagram of a device 1200 for communication processing based on a PBAP protocol according to an example embodiment.

[0042] Figure 13 Fig. 7 is a block diagram of a device 1300 for communication processing based on a PBAP protocol according to an example embodiment. DETAILED DESCRIPTION

[0043] The example embodiments will be described in detail herein, with examples shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following example embodiments do not represent all implementations consistent with the present disclosure.

[0044] The communication processing method and device based on a PBAP protocol provided by the embodiments of the present disclosure are applied to a scenario of synchronizing information between a server and a client. For example, the scenario of synchronizing a contact list between an intelligent terminal and a vehicle-mounted device.

[0045] In the related art, when information is synchronized based on communication of a PBAP protocol, sending a notification message is not supported. Therefore, when a server updates information content of the server, the updated information content cannot be synchronized in real time to a client. For example, in the scenario of synchronizing a contact list, if an operation of adding an entry, an operation of deleting an entry, and / or an operation of modifying an entry of the contact list is performed on the intelligent terminal side, the vehicle-mounted device cannot be synchronized and updated. Therefore, in the method of synchronizing information based on communication of a PBAP protocol, the information between the client and the server can be unequal and mismatched, and the user experience is poor.

[0046] The present disclosure provides a communication processing method based on a PBAP protocol to realize real-time synchronization of information. In the method, the server can send a notification to the client immediately after updating the information, and the client can obtain the corresponding update operation to realize the effect of synchronization update.

[0047] In the embodiments of the present disclosure, the information can be a contact list, a telephone notification, a short message, etc. In the following embodiments, the contact list is taken as an example for illustration.

[0048] Figure 1 A flowchart of a communication processing method based on a PBAP protocol according to an exemplary embodiment is shown in FIG. 1. Figure 1 As shown in FIG. 1, the communication processing method based on the PBAP protocol is applied to a server, and the method of communication processing based on the PBAP protocol includes the following steps.

[0049] In step S11, it is determined that the information stored in the server is updated, and the server and the client establish a communication connection, and the information before the update is transmitted to the client based on the PBAP protocol.

[0050] In the embodiments of the present disclosure, the server and the client need to establish a communication connection and perform synchronization transmission of information. The established communication connection can be a Bluetooth communication connection. The server and the client can establish a private asynchronous link to obtain contact list data and other information, and the data direction is from the server to the client.

[0051] When the server and the client establish a communication connection, the client can obtain the information stored in the server. For example, the vehicle-mounted device can obtain the contact list data stored in the smart terminal.

[0052] The updated information stored in the server can be adding information, deleting information, and / or modifying information, etc.

[0053] In step S12, a notification message is sent to the client, and the notification message is used to notify that the information stored in the server is updated.

[0054] In the embodiments of the present disclosure, when the information of the server is updated, the server sends a notification message to the device to notify the client that the data stored in the server is updated.

[0055] In step S13, an information acquisition request sent by the client based on the notification message is obtained, and the updated information is transmitted to the client based on the information acquisition request.

[0056] In the embodiments of the present disclosure, after receiving the notification message of the data update, the client sends an information acquisition request to the server. After receiving the information acquisition request, the server transmits the updated information to the client.

[0057] The method for processing communication based on the PBAP protocol provided by the embodiments of the present disclosure can inform the client that the data of the server is updated when the data information of the server is updated. At this time, the client sends an information acquisition request to request the server to send the updated data to the client. The server transmits the updated data information of the server to the client based on the information acquisition request sent by the client.

[0058] The following embodiments of the present disclosure explain the method for sending the notification message from the server to the client in the above-mentioned embodiments of the present disclosure.

[0059] In an implementation, the embodiments of the present disclosure can send the notification message based on the private protocol command that can support sending the notification message between the server and the client.

[0060] Figure 2 is a flowchart of a method for sending a notification message to a client according to an exemplary embodiment, as shown in Figure 2 The method for sending a notification message to a client includes the following steps.

[0061] In step S21, a private protocol command that supports sending a notification message is determined.

[0062] For example, the private protocol command that supports sending a notification message can be a private protocol command based on a Hands-free Profile (HFP), a private protocol command based on a Bluetooth Low Energy Module (BLE) link for broadcasting, or a private protocol command based on a Bluetooth socket (sock) link.

[0063] In the embodiments of the present disclosure, the HFP protocol can allow the client to be a remote audio input and output mechanism of an audio gateway and can provide several remote control functions. The advantage is that most devices supporting the PBAP protocol support the HFP protocol in most cases. The BLE link can be used to execute some baseband protocols and underlying packet management protocols. The disadvantage is that the server and the client need to support classic Bluetooth and low-power Bluetooth at the same time. The sock link is suitable for both the same server and the inter-process communication between the server and the client. The disadvantage is that an additional rf link needs to be established, which increases the system overhead. Therefore, in the embodiments of the present disclosure, the private protocol command that supports sending a notification message can be determined according to actual needs.

[0064] In step S22, the notification message is carried in the private protocol command that supports sending the notification message, and the notification message is sent to the client.

[0065] In the embodiments of the present disclosure, a notification message indicating that information is updated is carried by a private protocol command between the server and the client based on the PBAP protocol, so as to realize the sending of the notification message between the server and the client based on the PBAP protocol.

[0066] In the embodiments of the present disclosure, an information field for carrying the notification message is added in the private protocol command supporting the sending of the notification message, and the operation of updating data of the server and the updated data are stored in the information field, so as to realize the sending of the notification message.

[0067] In the embodiments of the present disclosure, the information field includes the number of updated information, the update operation corresponding to the updated information, and the content of the updated information.

[0068] In an example, taking the address book information as an example, a contact 1 is added and a contact 2 is deleted, and the updated address book information can be sent in the following data format by the added information field: <2>, <add>, <contact 1>, <delete>, <contact 2>.

[0069] The embodiments of the present disclosure add the information field for carrying the notification message in the private protocol command supporting the sending of the notification message, which facilitates the reading and understanding of the client, has stronger readability, and improves the processing efficiency.

[0070] In the embodiments of the present disclosure, the server and the client need to interact and negotiate before updating the information, so as to determine that the server and the client both support the information update based on the notification message.

[0071] Figure 3 FIG. 1 is a flowchart of a method of interacting and negotiating with the client and determining that the server and the client both support the information update based on the notification message according to an example embodiment. Figure 3 As shown in FIG. 1, the method of interacting and negotiating with the client and determining that the server and the client both support the information update based on the notification message includes the following steps.

[0072] In step S31, the server obtains the identification bit information sent by the client, and the identification bit information is used to identify whether the information update based on the notification message is supported.

[0073] In the embodiment of the present disclosure, the identification bit information can be carried in the private protocol command between the server and the client. For example, an identification bit can be added in the private protocol command based on the HFP protocol to identify whether information updating based on the notification message is supported. The identification bit can be a bit, and different values of the bit correspond to indicating whether information updating based on the notification message is supported. Of course, the identification bit can also be a number with different values to correspond to indicating whether information updating based on the notification message is supported. For example, 1 indicates that information updating based on the notification message is supported, and 2 indicates that information updating based on the notification message is not supported.

[0074] In step S32, if the identification bit information indicates that information updating based on the notification message is supported, and the server supports information updating based on the notification message, the server sends confirmation information of supporting information updating based on the notification message to the client, and determines that both the server and the client support information updating based on the notification message.

[0075] The method for communication processing based on the PBAP protocol provided by the embodiment of the present disclosure adds a private command to determine whether the server supports sending a notification message, so that when the server updates the local message, the server sends a notification message to the client. When the client receives the update notification and obtains the update operation of the server, the server sends the information amount of the local update, the corresponding update operation, and the updated content to the client.

[0076] Based on the same concept, the embodiment of the present disclosure also provides a method for communication processing based on the PBAP protocol applied to a client.

[0077] The following embodiments of the present disclosure describe a method for communication processing based on the PBAP protocol applied to a client.

[0078] Figure 4 A flowchart of a method for communication processing based on the PBAP protocol applied to a client is shown according to an exemplary embodiment, as shown in Figure 4 The method for communication processing based on the PBAP protocol applied to a client includes the following steps.

[0079] In step S41, a notification message sent by the server is received, and the notification message is used to notify that the information stored by the server has been updated.

[0080] In the embodiment of the present disclosure, based on the fact that the server and the client have established a communication connection, the client can obtain the information saved in the server, for example, the vehicle-mounted device can obtain the contact list data stored in the smart terminal. When the server data is updated, the client can receive the notification message sent by the server to indicate that the information has been updated through the established communication connection.

[0081] In the embodiment of the present disclosure, the client receives the notification message sent by the server, can determine that the information stored by the server is updated, and then can request the server to obtain the updated message.

[0082] In step S42, an information acquisition request is sent to the server, and the updated information transmitted by the server based on the information acquisition request is received.

[0083] The communication processing method based on the PBAP protocol provided by the embodiment of the present disclosure, when the client receives the notification message sent by the server, sends an information acquisition request to the server, requests the server to send the updated information, and then obtains the updated message of the server.

[0084] The following embodiments of the present disclosure explain the method of receiving the notification message sent by the server in the above-mentioned embodiments of the present disclosure.

[0085] In one embodiment, the embodiment of the present disclosure can receive the notification message based on the private protocol command supported by the client and the server to receive the notification message.

[0086] Figure 5 A flow chart of a method for receiving a notification message sent by a server according to an exemplary embodiment is shown in FIG. 1. Figure 5 As shown in FIG. 1, the method for receiving a notification message sent by a server includes the following steps.

[0087] In step S51, the private protocol command supporting sending the notification message is determined.

[0088] The private protocol command supporting sending the notification message includes a private protocol command based on HFP, a private protocol command broadcasted based on BLE link, or a private protocol command based on sock link. The private protocol command supporting sending the notification message can be determined according to actual needs.

[0089] In step S52, the notification message carried in the private protocol command sent by the server is received.

[0090] In the embodiment of the present disclosure, the private protocol command received by the client adds an information field for carrying the notification message. The added information field is used to store the operation of updating the data of the server and the updated data. The added information field includes the number of update data operations, the update operation corresponding to the updated data information, and the updated information content.

[0091] In an example, a contact list is taken as an example, contact 1 is added, and contact 2 is deleted. The new information field can send the updated contact list information in the following data format: <2>, <add>, <contact 1>, <delete>, <contact 2>.

[0092] Figure 6 is a flowchart of a method for interacting with a server to negotiate and determine that both sides support information updating based on a notification message according to an example embodiment, as shown in Figure 6 The method for interacting with a server to negotiate and determine that both sides support information updating based on a notification message includes the following steps.

[0093] In step S61, the server and the client are interacted with to negotiate and determine that both the server and the client support information updating based on a notification message.

[0094] In the related art, the server and the client that perform communication processing based on the PBAP protocol do not support information updating based on a notification message. Therefore, in the embodiment of the present disclosure, the server and the client need to interact with each other before information updating to determine that both the server and the client support information updating based on a notification message.

[0095] In step S62, identification bit information is sent to the server, and the identification bit information is used to identify that the client supports information updating based on a notification message.

[0096] In the embodiment of the present disclosure, the client sends identification bit information based on a private command in the HFP protocol to the server to identify whether the server supports information updating based on a notification message. The identification bit information can correspond to different states of whether the client supports information updating based on a notification message by using different values.

[0097] In step S63, if the server sends confirmation information that the server supports information updating based on a notification message, it is determined that both the server and the client support information updating based on a notification message.

[0098] In the embodiment of the present disclosure, the server receives the judgment of whether the server supports information updating based on a notification message transmitted by the client. If the server supports information updating based on a notification message.

[0099] In an example of the present disclosure, the server and the client both support information updating based on a notification message, and the content monitor is registered in the server to monitor whether the data of the server is updated. When the information of the server is updated, the server sends a notification message to the client, which includes the number of updated data operations, the corresponding update operation of the updated data information, and the updated information content, to realize the update information synchronization push to the client, eliminate the occurrence of the information inequality and mismatch between the client and the server, and thus help to improve the user experience.

[0100] In the following examples of the present disclosure, the communication record updating between the intelligent terminal and the vehicle-mounted device is taken as an example to illustrate the method related to the above-mentioned examples of the present disclosure.

[0101] In the examples of the present disclosure, after the intelligent terminal and the vehicle-mounted device normally establish the Bluetooth connection, the vehicle-mounted device end acquires the communication record information of the intelligent terminal. At this time, the intelligent terminal modifies the communication record, and the vehicle-mounted device end cannot update simultaneously.

[0102] In the examples of the present disclosure, the vehicle-mounted device end sends a private AT command through the HFP protocol to send the intelligent terminal whether to support the communication record information updating based on the notification message. For example, the private AT command can be AT+ZZPBAP. Wherein, AT+ZZPBAP= <flag>This parameter is used to determine whether a smart terminal supports updating contacts based on notification messages. The `flag` parameter can be 1, 2, or other values. Parameter 1 indicates that notifications are enabled, meaning that updates based on notification messages are supported. Parameter 2 indicates that notifications are disabled, meaning that updates based on notification messages are not supported.

[0103] Figure 7 This is a flowchart illustrating a signaling interaction process between a smart terminal and an in-vehicle device, as shown in an exemplary embodiment of this disclosure, to determine whether information updates based on notification messages are supported. (See also...) Figure 7 As shown, the in-vehicle device sends an identifier (AT+ZZPBAP=1) to the smart terminal to indicate that the in-vehicle device supports information updates based on notification messages. The smart terminal receives the identifier (AT+ZZPBAP=1) from the in-vehicle device and confirms that the in-vehicle device supports information updates based on notification messages. The smart terminal, having confirmed that it supports information updates based on notification messages, sends a confirmation message to the in-vehicle device. The in-vehicle device receives this confirmation message and confirms that the smart terminal supports information updates based on notification messages.

[0104] Furthermore, in this embodiment of the present disclosure, the smart terminal and the in-vehicle device can communicate via Bluetooth. In one implementation, within the system Bluetooth application of the smart terminal, a content detector is registered to detect whether the smart terminal's address book has been updated, such as adding, deleting, or re-deleting address book entries. When an update to the address book is detected, the updated address book is retrieved.

[0105] The method by which the content detector obtains contact update messages from the smart terminal is as follows: In the smart terminal's Bluetooth application, the contact IDs and last update times are saved in real-time. When changes occur in the smart terminal's contact list, the latest update time for each contact entry is queried. Based on the time record of the last update operation saved locally on the smart terminal and the record of contact IDs for all current contact entries, newly added contact entries, deleted contact entries, and / or updated contact entries can be determined.

[0106] In this embodiment, the system Bluetooth application obtains the update operation entry from the smart terminal's address book and sends a notification message to the vehicle-mounted device via a private AT command in the HFP protocol. In this embodiment, the device may send the update operation information in the following format:

[0107] ZZPBAP: <number> , <operation> , <name>[,... ].

[0108] wherein number is the number of subsequent syllables <operation> , <name>The number of combinations of [,...]; operation is a notification detail, wherein 1 indicates that the intelligent terminal performs an adding operation, 2 indicates that the intelligent terminal performs a deleting operation, and 3 indicates that the intelligent terminal performs a modifying operation. The name is the name of the intelligent terminal update entry, for example, "telecom / pb / 1.vcf". For example, after the intelligent terminal performs the adding operation of the address book, the notification sent to the vehicle-mounted device end is "... + ZZPBAP: 1, 1, telecom / pb / 8.vcf...". Figure 8 A signaling flow chart for sending a notification message of adding an address book in an example embodiment of the present disclosure is shown.

[0109] After the intelligent terminal performs the deleting operation of the address book, the notification sent to the vehicle-mounted device end is "... + ZZPBAP: 1, 2, telecom / pb / 7.vcf...". Figure 9 A signaling flow chart for sending a notification message of deleting an address book in an example embodiment of the present disclosure is shown.

[0110] After the intelligent terminal performs the modifying operation of the address book, the notification sent to the vehicle-mounted device end is "... + ZZPBAP: 1, 3, telecom / pb / 6.vcf...". Figure 10 A signaling flow chart for sending a notification message of modifying an address book in an example embodiment of the present disclosure is shown.

[0111] In the embodiment of the present disclosure, after the vehicle-mounted device end receives the update operation notification of the address book sent by the intelligent terminal, the corresponding acquisition action is made. The vehicle-mounted device end acquires the corresponding electronic business card (vcard) in the intelligent terminal or makes other corresponding update operations according to the information provided in the private AT command. The method for acquiring the update operation of the vehicle-mounted device end can refer to the Bluetooth PBAP protocol. For example, the intelligent terminal performs the modifying operation of the address book, the vehicle-mounted device end acquires 6.vcf under the Bluetooth virtual path telecom / pb, and the intelligent terminal returns the update operation of 6.vcf.

[0112] In the embodiment of the present disclosure, when the information of the server is updated, the server sends a notification message to notify the client that the data information of the server is updated in the case that the communication connection between the server and the client is established. The client initiates an information acquisition request to the server. The server transmits the updated information to the client based on the PBAP protocol, so that the occurrence of the information inequality and mismatch between the client and the server is eliminated, and the user experience is improved.

[0113] Based on the same concept, the embodiment of the present disclosure further provides a communication processing device based on the PBAP protocol.

[0114] It can be understood that the communication processing apparatus based on the PBAP protocol provided by the embodiments of the present disclosure comprises a hardware structure and / or a software module corresponding to the implementation of each function in order to achieve the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is realized by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of the present disclosure.

[0115] Figure 11 is a block diagram of a communication processing apparatus based on the PBAP protocol according to an exemplary embodiment. Referring to Figure 11 , the apparatus comprises a processing unit 111, a notification unit 112, an acquisition unit 113 and a sending unit 114.

[0116] The processing unit 111 is configured to determine that the information stored by the server is updated, and that the server and the client establish a communication connection, and transmit the information before the update to the client based on the PBAP protocol.

[0117] The notification unit 112 is configured to send a notification message to the client, the notification message being used to notify that the information stored by the server is updated.

[0118] The acquisition unit 113 is configured to acquire an information acquisition request sent by the client based on the notification message.

[0119] The sending unit 114 is configured to transmit the updated information to the client based on the information acquisition request. In an implementation, the notification unit 112 sends the notification message to the client in the following manner: carrying the notification message in a private protocol command supporting sending the notification message, and sending the notification message to the client. The private protocol command supporting sending the notification message includes a private protocol command based on the Bluetooth Device Control Phone Protocol (HFP), a private protocol command broadcasted based on the Bluetooth Low Energy Module (BLE) link, or a private protocol command based on the Bluetooth Socket link.

[0120] In another implementation, the processing unit 111 carries the notification message in the private protocol command supporting sending the notification message in the following manner: adding an information field for carrying the notification message in the private protocol command supporting sending the notification message, the information field including the number of updated information, the update operation corresponding to the updated information, and the content of the updated information.

[0121] In yet another implementation, the notification unit 112 is further configured to: before sending the notification message to the client, interact with the client to negotiate and determine that both the server and the client support information updating based on the notification message.

[0122] In yet another implementation, the notification unit 112 interacts with the client to negotiate and determines that both the server and the client support information updating based on the notification message in the following manner: acquires identification bit information sent by the client, the identification bit information being used to identify whether information updating based on the notification message is supported. If the identification bit information identifies that information updating based on the notification message is supported and the server supports information updating based on the notification message, the notification unit 112 sends confirmation information of supporting information updating based on the notification message to the client and determines that both the server and the client support information updating based on the notification message.

[0123] In yet another implementation, the apparatus comprises: a receiving unit configured to receive a notification message sent by a server, the notification message being used to notify that information stored by the server has been updated; and a sending unit configured to send an information acquisition request to the server and receive information that has been updated transmitted by the server based on the information acquisition request.

[0124] In yet another implementation, the notification message is carried in a private protocol command that supports sending the notification message; the private protocol command that supports sending the notification message comprises a private protocol command based on an HFP protocol, a private protocol command broadcasted based on a BLE link, or a private protocol command based on a Bluetooth sock link.

[0125] In yet another implementation, the private protocol command that supports sending the notification message is newly added with an information field used to carry the notification message, the information field comprising the number of information that has been updated, the update operation corresponding to the information that has been updated, and the content of the information that has been updated.

[0126] In yet another implementation, the receiving unit is further configured to: before receiving the notification message sent by the server, interact with the server to negotiate and determine that both the server and the client support information updating based on the notification message.

[0127] In yet another implementation, the receiving unit interacts with the server to negotiate and determines that both the server and the client support information updating based on the notification message in the following manner: sends identification bit information to the server, the identification bit information being used to identify whether the client supports information updating based on the notification message. If confirmation information of the server supporting information updating based on the notification message sent by the server is received, it is determined that both the server and the client support information updating based on the notification message.

[0128] With regard to the apparatuses in the above-described embodiments, a specific manner in which each module performs an operation has been described in detail in the embodiments related to the method, and thus will not be described in detail here.

[0129] Figure 12 is a block diagram of an apparatus 1200 for communication processing based on a PBAP protocol according to an exemplary embodiment. The apparatus 1200 can be a mobile phone, a computer, a digital broadcasting terminal, a message transmitting / receiving device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like, for example.

[0130] Referring to Figure 12 , the apparatus 1200 can include one or more of the following components: a processing component 1202, a memory 1204, a power component 1206, a multimedia component 1208, an audio component 1210, an input / output (I / O) interface 1212, a sensor component 1214, and a communication component 1216.

[0131] The processing component 1202 usually controls overall operations of the apparatus 1200, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 1202 can include one or more processors 1220 to execute instructions to complete all or part of steps of the above-described methods. In addition, the processing component 1202 can include one or more modules to facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.

[0132] The memory 1204 is configured to store various types of data to support operations of the apparatus 1200. Examples of these data include instructions for any application or methods operating on the apparatus 1200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disc or optical disc.

[0133] The power component 1206 provides power to various components of the apparatus 1200. The power component 1206 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1200.

[0134] The multimedia component 1208 includes a screen providing an output interface between the device 1200 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensors can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.

[0135] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC) to receive an external audio signal when the device 1200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, the audio component 1210 also includes a speaker to output audio signals.

[0136] The I / O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, such as a keypad, a click wheel, buttons, and so on. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0137] The sensor component 1214 includes one or more sensors to provide various state assessments for the device 1200. For example, the sensor component 1214 can detect an open / closed state of the device 1200, relative positioning of components, such as a display and a keypad of the device 1200, a change in position of the device 1200 or a component of the device 1200, presence or absence of user contact with the device 1200, an orientation or acceleration / deceleration of the device 1200, and a temperature change of the device 1200. The sensor component 1214 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 1214 can further include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 1214 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0138] The communication component 1216 is configured to facilitate wired or wireless communication between the device 1200 and other devices. The device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.

[0139] In an exemplary embodiment, the device 1200 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements, for performing the above-described methods.

[0140] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, is also provided, which can be executed by the processor 1220 of the device 1200 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0141] Figure 13 FIG. 13 is a block diagram of a device 1300 for communication processing based on a PBAP protocol according to an exemplary embodiment. For example, the device 1300 can be provided as a server. Referring to Figure 13 The device 1300 includes a processing component 1322, which further includes one or more processors, and a memory resource represented by a memory 1332 for storing instructions, such as an application program, executable by the processing component 1322. The application program stored in the memory 1332 can include one or more than one module each corresponding to a set of instructions. In addition, the processing component 1322 is configured to execute the instructions to perform the above-described methods.

[0142] The apparatus 1300 can also include a power supply component 1326 configured to supply power to the apparatus 1300, a wired or wireless network interface 1350 configured to connect the apparatus 1300 to a network, and an input / output (I / O) interface 1358. The apparatus 1300 can operate based on an operating system stored in the memory 1332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.

[0143] It can be understood that, in the present disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or", which describes the association relationship of associated objects, means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship. The singular forms "a", "said" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise.

[0144] It can be further understood that the terms "first", "second", and the like are used to describe various information, but these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a particular order or importance. In fact, the expressions "first", "second", and the like can be completely interchangeable. For example, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information without departing from the scope of the present disclosure.

[0145] It can be further understood that the terms "center", "longitudinal", "transverse", "front", "back", "up", "down", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the embodiments and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation.

[0146] It can be further understood that, unless otherwise specified, "connection" includes direct connection between the two without other components, and also includes indirect connection between the two with other elements.

[0147] It can be further understood that, although the operations in the embodiments of the present disclosure are described in a specific order in the drawings, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring all the operations to be performed to obtain the desired results. In a particular environment, multi-tasking and parallel processing can be advantageous.

[0148] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims.

[0149] It is to be understood that the disclosure is not limited to the precise construction herein described and as shown in the attached drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope thereof. The scope of the disclosure is limited only by the claims appended hereto.< / name> < / operation> < / name> < / operation> < / number> < / flag>

Claims

1. A communication processing method based on a phonebook access protocol (PBAP), characterized by, The method comprises: determining that the information stored by the server is updated, and that the server and the client establish a communication connection, and transmitting the information before the update to the client based on the PBAP protocol; sending a notification message to the client, the notification message being used to notify that the information stored by the server is updated; obtaining an information acquisition request sent by the client based on the notification message, and transmitting the updated information to the client based on the information acquisition request; interacting with the client and determining that the server and the client both support information update based on the notification message; obtaining identification bit information sent by the client, the identification bit information being used to identify whether information update based on the notification message is supported; if the identification bit information identifies that information update based on the notification message is supported, and the server supports information update based on the notification message, sending confirmation information of supporting information update based on the notification message to the client, and determining that the server and the client both support information update based on the notification message.

2. The method of claim 1, wherein, The sending of the notification message to the client comprises: carrying the notification message in a private protocol command supporting the sending of the notification message, and sending the notification message to the client; the private protocol command supporting the sending of the notification message comprises a private protocol command based on a Bluetooth device control telephone protocol (HFP), a private protocol command broadcast based on a Bluetooth low energy module (BLE) link, or a private protocol command based on a Bluetooth socket link.

3. The method of claim 2, wherein, The carrying of the notification message in the private protocol command supporting the sending of the notification message comprises: adding an information field for carrying the notification message in the private protocol command supporting the sending of the notification message, the information field comprising the number of updated information, the update operation corresponding to the updated information, and the content of the updated information.

4. A communication processing method based on a phonebook access protocol (PBAP), characterized by, The method comprises: the client receives a notification message sent by the server based on the PBAP, the notification message being used to notify that the information stored by the server is updated; sending an information acquisition request to the server, and receiving the updated information transmitted by the server based on the information acquisition request; interacting with the server and determining that the server and the client both support information update based on the notification message; sending identification bit information to the server, the identification bit information being used to identify that the client supports information update based on the notification message; if the confirmation information of the server supporting information update based on the notification message sent by the server is received, it is determined that the server and the client both support information update based on the notification message.

5. The method of claim 4, wherein, The notification message is carried in a private protocol command supporting the sending of the notification message; the private protocol command supporting the sending of the notification message comprises a private protocol command based on the HFP protocol, a private protocol command broadcast based on the BLE link, or a private protocol command based on the Bluetooth sock link.

6. The method of claim 5, wherein, The private protocol command supporting sending of the notification message is added with an information field for carrying the notification message, and the information field includes the number of updated information, the update operation corresponding to the updated information, and the content of the updated information.

7. A communication processing apparatus based on a phonebook access protocol (PBAP), characterized by, The device comprises: a processing unit configured to determine that information stored by a server is updated, and that the server and a client establish a communication connection, and to transmit the information before the update to the client based on a PBAP protocol; a notification unit configured to send a notification message to the client, the notification message being used to notify that the information stored by the server is updated; an obtaining unit configured to obtain an information obtaining request sent by the client based on the notification message; a sending unit configured to transmit the updated information to the client based on the information obtaining request; wherein, before the notification unit sends the notification message to the client, the notification unit interacts with the client to negotiate and determine that the server and the client both support information update based on the notification message; obtain identification bit information sent by the client, the identification bit information being used to identify whether to support information update based on the notification message; if the identification bit information identifies that information update based on the notification message is supported and the server supports information update based on the notification message, send confirmation information of supporting information update based on the notification message to the client, and determine that the server and the client both support information update based on the notification message.

8. The apparatus of claim 7, wherein, The notification unit sends the notification message to the client in the following manner: carry the notification message in a private protocol command supporting sending of the notification message, and send the notification message to the client; the private protocol command supporting sending of the notification message includes a private protocol command based on a Bluetooth device control telephone protocol HFP, a private protocol command broadcasted based on a Bluetooth low energy module BLE link, or a private protocol command based on a Bluetooth socket link.

9. The apparatus of claim 8, wherein, The processing unit carries the notification message in the private protocol command supporting sending of the notification message in the following manner: add an information field for carrying the notification message in the private protocol command supporting sending of the notification message, and the information field includes the number of updated information, the update operation corresponding to the updated information, and the content of the updated information.

10. A communication processing apparatus based on a phonebook access protocol (PBAP), characterized by, The device comprises: a receiving unit configured to receive a notification message sent by a server to a client based on a PBAP protocol, the notification message being used to notify that information stored by the server is updated; a sending unit configured to send an information obtaining request to the server, and receive updated information transmitted by the server based on the information obtaining request; wherein, before the receiving unit receives the notification message sent by the server, the receiving unit interacts with the server to negotiate and determine that the server and the client both support information update based on the notification message; send identification bit information to the server, the identification bit information being used to identify that the client supports information update based on the notification message; If the confirmation information that the server supports information updating based on the notification message is received, it is determined that the server and the client both support information updating based on the notification message.

11. The apparatus of claim 10, wherein, The notification message is carried in a private protocol command supporting sending of the notification message. The private protocol command supporting sending of the notification message includes a private protocol command based on an HFP protocol, a private protocol command broadcast based on a BLE link, or a private protocol command based on a Bluetooth sock link.

12. The apparatus of claim 11, wherein, The private protocol command supporting sending of the notification message is added with an information field for carrying the notification message, and the information field includes the number of updated information, the update operation corresponding to the updated information, and the updated information content.

13. A communication processing apparatus based on a phonebook access protocol (PBAP), characterized by, Comprise: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method of any one of claims 1 to 3, or execute the method of any one of claims 4 to 6.

14. A storage medium, characterized by The storage medium stores instructions, and when the instructions in the storage medium are executed by the processor, the device comprising the processor can execute the method of any one of claims 1 to 3, or execute the method of any one of claims 4 to 6.

Citation Information

Patent Citations

  • Synchronization method of client-side information and system

    CN101883419A

  • Data updating method and device, storage medium and electronic equipment

    CN111818117A