Service information synchronization method, device, equipment, storage medium and system
By broadcasting the basic information of the equipment to the receiving equipment to be received, and sending service information to be synchronized after the service information is changed, the information synchronization of the service is realized with granularity, solving the stability and reliability problems caused by traditional equipment for granularity synchronization, reducing power consumption and improving the reliability and stability of synchronization.
Patent Information
- Application Number
- CN202311389618.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-04-25
AI Technical Summary
In traditional device interconnection discovery scenarios, when information reporting or synchronization is carried out with the granularity of equipment, the stability and reliability of business services are reduced, especially when the business scenario is complex, a large amount of redundant logic may be generated.
The basic information of the equipment is broadcast to the receiving equipment through the originating device, including the information change identification, and after determining whether the service information has been changed, the service information to be synchronized is sent to realize the information synchronization of the service-gritten information.
This method reduces the power consumption brought by information synchronization, improves the reliability and stability of information synchronization, and avoids complex or redundant logical processes.
Smart Images

Figure CN119893650A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information technology, and in particular to a service information synchronization method, device, equipment, storage medium and system. Background Art
[0002] In traditional device interconnection and discovery scenarios, information reporting or synchronization is performed at the device level. However, as the complexity of business scenarios increases, for example, there are multiple independent business services in an application, and each business service carries different data when discovered. In traditional scenarios, when information synchronization is performed at the device level, business services often interact with a lot of additional data after device discovery to meet their own business service needs. When there are a large number of business services, a large amount of redundant logic may be generated, and since their implementations may be different, this may lead to problems such as reduced stability and reliability of information synchronization. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a service information synchronization method, device, equipment, storage medium and system to solve the technical problems such as reduced stability and reliability when information reporting or synchronization is performed at the device granularity in the above-mentioned related art.
[0004] According to a first aspect of an embodiment of the present disclosure, a service information synchronization method is provided, which is applied to a source device, and the method includes:
[0005] The originating device broadcasts basic device information to the receiving device, wherein the basic device information at least includes an information change identifier of the originating device, and the information change identifier is used to indicate whether service information in the originating device is changed;
[0006] When it is determined that the service information in the originating device has changed, the service information to be synchronized is sent to the receiving device, where the service information to be synchronized at least includes the service information that has changed in the originating device.
[0007] In some embodiments, before sending the service information to be synchronized to the receiving device, the method further includes:
[0008] receiving a service synchronization request returned by the receiving device, wherein the service synchronization request is sent by the receiving device when determining that the information change identifier is used to indicate that the service information in the originating device has changed;
[0009] The sending of the to-be-synchronized service information to the receiving device comprises:
[0010] The service information to be synchronized is sent to the receiving device based on the service synchronization request.
[0011] In some embodiments, sending the to-be-synchronized service information to the receiving device includes:
[0012] When the transmitting device and the receiving device communicate using Bluetooth, the to-be-synchronized service information is sent to the receiving device based on the Bluetooth connection established between the transmitting device and the receiving device, and the Bluetooth connection is released after the to-be-synchronized service information is sent; or
[0013] When the transmitting device and the receiving device communicate using a local area network, the service information to be synchronized is sent to the receiving device based on the communication connection established between the transmitting device and the receiving device, and the communication connection is maintained after the service information to be synchronized is sent.
[0014] In some embodiments, the service information to be synchronized also includes service information that has not been changed in the originating device.
[0015] In some embodiments, all service information in the originating device has the same device identification.
[0016] In some embodiments, the broadcasting of basic device information by the originating device to the receiving device includes any one of the following:
[0017] When the transmitting device is in a screen-off state, the transmitting device broadcasts the basic device information to the receiving device using a first transmission frequency;
[0018] When the screen-on time of the transmitting device is within a preset first time range, the transmitting device broadcasts basic device information to the receiving device using a second transmission frequency;
[0019] When the screen-on time of the transmitting device is within the preset second time range, the transmitting device broadcasts basic device information to the receiving device using the third transmission frequency within the preset first time length, and then continues to broadcast the basic device information to the receiving device using the second transmission frequency;
[0020] Among them, the screen turn-on time is the time difference between the time when the screen of the transmitting device is turned on and the time when the screen of the transmitting device was last turned off. When the upper limit value of the preset first time range is greater than or equal to the lower limit value of the preset second time range, the first transmission frequency, the second transmission frequency and the third transmission frequency increase in sequence.
[0021] In some embodiments, before the originating device broadcasts basic device information to the receiving device, the method further includes:
[0022] The originating device discovers the receiving device based on a pre-configured broadcast discovery strategy, and establishes a communication connection with the receiving device;
[0023] The originating device discovers the receiving device based on a pre-configured broadcast discovery strategy, including any one of the following:
[0024] When the originating device is in a screen-off state, the originating device stops discovering the receiving device to be broadcasted;
[0025] When the screen-on time of the transmitting device is within the preset third time range, the transmitting device uses the fourth transmission frequency to find the receiving device within the preset second time period, and then uses the fifth transmission frequency to continue to find the receiving device;
[0026] When the screen-on time of the transmitting device is within a preset fourth time range, the transmitting device uses a sixth transmission frequency to discover the receiving device;
[0027] When the lower limit of the preset third time range is greater than or equal to the upper limit of the preset fourth time range, the fourth transmission frequency, the fifth transmission frequency and the sixth transmission frequency are sequentially decreased.
[0028] According to a second aspect of an embodiment of the present disclosure, another service information synchronization method is provided, which is applied to a receiving device, and the method includes:
[0029] The receiving device receives the basic device information broadcast by the originating device, wherein the basic device information at least includes an information change identifier of the originating device, and the information change identifier is used to indicate whether the service information in the originating device is changed;
[0030] The service information to be synchronized sent by the originating device is received, wherein the service information to be synchronized includes at least service information that has changed in the receiving device, and the service information to be synchronized is sent by the originating device when it is determined that the service information in the originating device has changed.
[0031] In some embodiments, the method further comprises:
[0032] When it is determined that the information change identifier is used to indicate that the service information in the originating device has changed, a service synchronization request is sent to the originating device, wherein the service synchronization request is used to request to obtain the service information to be synchronized in the receiving device.
[0033] In some embodiments, the service information to be synchronized includes at least one service information, and at least one of the service information has the same device identifier, and the method further includes:
[0034] Performing service splitting on the service information to be synchronized to obtain at least one service information after splitting;
[0035] Perform service online and offline processing based on at least one of the service information.
[0036] In some embodiments, the service online and offline processing based on at least one of the service information includes at least one of the following:
[0037] When the first service information does not exist in the receiving device, the first service information is put on line, where the first service information is service information in at least one of the service information;
[0038] When there is a second service information in the receiving device that has the same device identifier as at least one of the service information and has different service content, the second service information is offline;
[0039] When the receiving device has third service information having the same service identifier as at least one of the service information and different service content, the third service information is put back online.
[0040] According to a third aspect of an embodiment of the present disclosure, a service information synchronization device is provided, which is applied to a source device, and the device may include:
[0041] a transceiver module, configured to broadcast basic device information to a receiving device, wherein the basic device information at least includes an information change identifier of the emitting device, and the information change identifier is used to indicate whether service information in the emitting device has changed;
[0042] The transceiver module is further configured to send the service information to be synchronized to the receiving device when it is determined that the service information in the originating device has changed, wherein the service information to be synchronized at least includes the service information that has changed in the originating device.
[0043] For the contents not introduced or described in the embodiments of the present disclosure, please refer to the relevant introduction in the aforementioned method embodiments, and the embodiments of the present disclosure are not limited thereto.
[0044] According to a fourth aspect of an embodiment of the present disclosure, another service information synchronization device is provided, which is applied to a receiving device, and the device may include:
[0045] a transceiver module configured to receive basic device information broadcast by a source device, wherein the basic device information at least includes an information change identifier of the source device, and the information change identifier is used to indicate whether service information in the source device is changed;
[0046] The transceiver module is also configured to receive the service information to be synchronized sent by the originating device, wherein the service information to be synchronized at least includes the service information sent by the receiving device. The service information to be synchronized is sent by the originating device when it is determined that the service information in the originating device has changed.
[0047] For the contents not introduced or described in the embodiments of the present disclosure, please refer to the relevant introduction in the aforementioned method embodiments, and the embodiments of the present disclosure are not limited thereto.
[0048] According to the fifth aspect of an embodiment of the present disclosure, a communication device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the service information synchronization method provided in the first aspect or the second aspect of the present disclosure.
[0049] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the service information synchronization method provided by the first aspect or the second aspect of the present disclosure are implemented.
[0050] According to a seventh aspect of an embodiment of the present disclosure, a chip is provided, comprising: a processor and an interface; the processor is used to read instructions to execute the steps of the service information synchronization method provided by the first aspect or the second aspect of the present disclosure.
[0051] According to an eighth aspect of an embodiment of the present disclosure, a communication system (also referred to as a service information synchronization system) is provided, comprising: a source device and a receiving device. The source device is used to execute the steps of the service information synchronization method provided in the first aspect of the present disclosure; the receiving device is used to execute the steps of the service information synchronization method provided in the second aspect of the present disclosure.
[0052] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the transmitting device broadcasts basic device information to the receiving device, the basic device information at least includes the information change identifier of the transmitting device, and the information change identifier is used to indicate whether the service information in the transmitting device has changed; when it is determined that the service information in the transmitting device has changed, the service information to be synchronized is sent to the receiving device, and the service information to be synchronized at least includes the service information that has changed in the transmitting device. It can be seen that the transmitting device and the receiving device can synchronize information with the service as the granularity, and the corresponding information is synchronized only when the above-mentioned information change identifier indicates that the service information in the transmitting device has changed, without involving complex or redundant logical processes, which is conducive to reducing the power consumption caused by information synchronization and improving the reliability and stability of information synchronization. At the same time, it can also solve the technical problems such as reduced stability and reliability when reporting or synchronizing information with the device as the granularity in the above-mentioned related technologies.
[0053] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0055] Figure 1 It is a schematic diagram of a system framework according to an exemplary embodiment.
[0056] Figure 2 is another system framework schematic diagram shown according to an exemplary embodiment.
[0057] Figure 3 The figure is a flowchart of a method for synchronizing service information according to an exemplary embodiment.
[0058] Figure 4 The figure is a schematic diagram showing the structure of a service information synchronization device according to an exemplary embodiment.
[0059] Figure 5 It is a structural diagram of another service information synchronization device according to an exemplary embodiment.
[0060] Figure 6 It is a schematic structural diagram of a communication device according to an exemplary embodiment.
[0061] Figure 7 The figure is a schematic diagram showing the structure of a chip according to an exemplary embodiment. DETAILED DESCRIPTION
[0062] Exemplary embodiments will be described in detail herein, examples of which are 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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0063] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0064] At present, in the traditional device interconnection discovery scenario, only the online and offline processing of business services based on the device granularity can be perceived, and it cannot meet the online and offline requirements of different business services in the same application. When there are multiple business services, they need to establish communication connections to exchange data, which may involve more complex connection logic and business service processing logic, making it difficult to control device power consumption and bringing more difficulties to the maintenance of business services; at the same time, it will also lead to problems such as reduced stability and reliability.
[0065] To solve the above problems, the present disclosure provides a service information synchronization method, device, equipment, storage medium and chip. Figure 1 FIG. 1 is a schematic diagram of a system framework according to an exemplary embodiment. Figure 1 The system shown can be called a communication system or a service information synchronization system, and the system may include a transmitting device 100 and a receiving device 200. The transmitting device 100 is mainly responsible for information transmission, and the receiving device 200 is mainly responsible for information reception, so that service communication between the transmitting device 100 and the receiving device 200 can be achieved. For example, the transmitting device 100 can synchronously send some (service) service information of its own application to the receiving device 200, so that the receiving device 200 can provide corresponding business services based on these service information, etc., which is not limited or detailed in this disclosure.
[0066] Please also see Figure 2 FIG. 1 is another schematic diagram of a system framework according to an exemplary embodiment. Figure 2In the figure, the transmitting device 100 and the receiving device 200 can install / deploy corresponding application programs (hereinafter referred to as applications) according to their own needs. For example, in the figure, the transmitting device 100 and the receiving device 200 are both deployed with application A and application N. The figure is only for example, but does not constitute a limitation. As shown in the figure, the transmitting device 100 and the receiving device 200 may also include: a service management module, a device management module and an information synchronization policy module. Among them, the above functional modules in different devices may have the same functions, which are introduced separately below.
[0067] The service management module is mainly responsible for the aggregation and splitting of (business) services. Specifically, the same application may include multiple independent business services, for example, the application A in the figure includes service a and service b, and the application N includes service c, etc. The service management module 101 in the originating device 100 may be responsible for the aggregation of services, and specifically may aggregate services of different applications in the same device or under the same application together, for example, the service management module 101 may aggregate the service a, service b and service c to form a corresponding service list, etc. Optionally, the service management module 101 may send the service list to the device management module 102 of the originating device 100 according to the device dimension. Correspondingly, the service management module 201 in the receiving device 100 may be responsible for the splitting of services, which splits each service in the device dimension into service granularity / dimension, and specifically may split services of different applications in the same device or under the same application. For example, the service management module 201 may split the service a and service b to determine that they belong to the services under application A; split the service c to determine that it belongs to the services under application N, etc. Optionally, the service management module 201 can compare the split services to realize the online and offline operation of the services, which is described in detail below in this disclosure and will not be introduced here.
[0068] The above-mentioned device management module can maintain all device information, and the device information includes, but is not limited to, for example, the device name of the same device, the service list under the device, the communication medium of the device (for example, using Bluetooth communication or using local area network communication, etc.), or other relevant information used to describe the device, etc. Optionally, when any one or more information in the above-mentioned device information changes, for example, when the service information of one or more services in the above-mentioned device information changes, the corresponding information synchronization policy module can be notified to synchronize the corresponding changed information to the opposite device, etc. For example, when the device management module 102 in the above-mentioned sending device 100 detects that the device information it maintains has changed, it can send change notification information to its own information synchronization policy module 103, and the change notification information is used to instruct the above-mentioned information synchronization policy module 103 to synchronously send the changed related information to the receiving device 200, etc.
[0069] The above-mentioned information synchronization strategy module is mainly responsible for connection strategy management and broadcast discovery management. Among them, connection strategy management can refer to automatically selecting the optimal communication connection for information synchronization under different media networking conditions, and its strategy is not limited to, for example, using Bluetooth communication connection, using LAN communication connection, etc. The LAN communication connection includes but is not limited to conventional LAN communication connection, point-to-point networking communication connection or other LAN communication connection, etc. The above-mentioned broadcast discovery management can refer to the above-mentioned originating device 100 using the corresponding broadcast discovery strategy to discover other surrounding devices when it needs to broadcast a message, such as discovering the receiving device 200, etc. The broadcast discovery strategy is related to the power consumption of the device, which can also be called a power consumption strategy. In actual applications, the strategy can be customized by the user or the device according to the actual situation, and this disclosure does not make too many restrictions and details. In actual applications, the information synchronization strategy module 103 of the above-mentioned originating device 100 can send the information to be sent (such as the basic information of the device to be broadcast or the service information to be synchronized in the originating device 100 below in this disclosure) to the receiving device 200, etc. based on the corresponding strategy. The specific implementations of the connection strategy management and the broadcast discovery management may be described in detail below in the present disclosure and will not be introduced here.
[0070] Based on the above examples, see Figure 3 FIG. 1 is a flow chart of a method for synchronizing service information according to an exemplary embodiment. Figure 3 The method shown is applied as above Figure 1 or Figure 2 In the system shown, the method may include the following implementation steps:
[0071] S301, the originating device 100 broadcasts basic device information to the receiving device 200, the basic device information at least including the information change flag of the originating device 100, the information change flag is used to indicate whether the service information in the originating device 100 is changed. Accordingly, the receiving device 200 receives the basic device information of the originating device 100.
[0072] The above-mentioned basic device information of the present disclosure may refer to basic information used to describe the originating device 100, which may at least include the information change identifier of the originating device 100, and optionally may also include but not limited to, for example, the device name, device number, device category, device brand, production date, manufacturer, operating system version or other custom device basic information. The above-mentioned information change identifier may be used to indicate whether the service information in the originating device 100 has changed or changed. In practical applications, the information change identifier may be a user-defined setting of the user or the device, for example, it may include but not limited to, for example, the device identifier of the originating device (such as the device name or device number, etc.), a random number or other custom identification information, etc. Correspondingly, after receiving the above-mentioned basic device information of the originating device 100, the receiving device 200 may determine whether the service information in the originating device 100 has changed based on the information change identifier in the basic device information; specifically, the receiving device 200 may compare the currently received information change identifier with the last received / stored information change identifier, and if they are the same, it may be determined that the service information in the originating device 100 has not changed; otherwise, it may be determined that the service information in the originating device 100 has changed.
[0073] In some optional embodiments, all service information in the above-mentioned originating device 100 in the present disclosure can be uniformly managed in the device dimension, that is, all service information in the above-mentioned originating device 100 has the same or identical device identifier, which can be the device identifier of the originating device 100. It is used to indicate that these service information all belong to the above-mentioned originating device 100, that is, they are all service information of the above-mentioned originating device 100.
[0074] In some other optional embodiments, before the transmitting device 100 broadcasts its own basic device information to the receiving device 200, the transmitting device 100 also needs to discover surrounding devices that can be broadcasted (for example, discover the receiving device 200, etc.) based on the pre-configured broadcast discovery strategy, and establish a communication connection between the transmitting device 100 and the receiving device 200 to be broadcasted. After the communication connection is established, the transmitting device 100 can broadcast the basic device information to the receiving device 200. Among them, the broadcast discovery strategy can be customized by the user or the device according to the actual situation. The present disclosure does not limit the specific implementation method of discovering the receiving device 200 based on the broadcast discovery strategy, which can be determined according to the actual situation; the following examples give several possible implementation methods, but they do not constitute a limitation.
[0075] In a possible implementation, when the transmitting device 100 is in a screen-off state (for example, it may include a dormant or sleeping state), the transmitting device 100 may stop discovering other surrounding devices to be broadcasted, that is, stop discovering the receiving device 200.
[0076] In another possible implementation, when the screen-on time of the above-mentioned transmitting device 100 is within the preset third time range, the above-mentioned transmitting device 100 may adopt the preset first discovery strategy to discover the above-mentioned receiving device, and the first discovery strategy may be a strategy customized by the user or the transmitting device according to the actual situation, for example, after using a higher transmission frequency (such as the fourth transmission frequency) to discover the above-mentioned receiving device 200 within the preset second time length, a lower transmission frequency (such as the fifth transmission frequency) is used to discover the above-mentioned receiving device 200. Optionally, according to the actual situation, the transmission time of the above-mentioned fifth transmission frequency may also be limited, for example, after using the fifth transmission frequency to discover the above-mentioned transmitting device within the preset third time length, a lower transmission frequency (such as the seventh transmission frequency) is finally used to continue to discover the above-mentioned receiving device 200, etc., which can be determined according to the actual situation, and this disclosure does not make too many restrictions and details. The above-mentioned screen-on start time may refer to the time difference between the time when the screen of the transmitting device 100 is lit and the time when the screen was off last time. The above-mentioned preset third time range, the above-mentioned preset second time length and the above-mentioned preset third time length can all be customized according to the actual situation. For example, when the screen of the transmitting device is on for more than 5 minutes and less than 30 minutes, the transmitting device may use a medium frequency to continuously find the receiving device for 20 seconds, and after 20 seconds, it may be reduced to a low frequency to continue to find the receiving device, etc. For another example, when the screen of the transmitting device is on for more than or equal to 30 minutes, the transmitting device may use a high frequency to continuously find the receiving device for 3 seconds, and after 3 seconds, it may be reduced to a medium frequency to continuously find the receiving device for 20 seconds, and after 20 seconds, it may be reduced to a low frequency to continue to find the receiving device, etc.
[0077] In another possible implementation, when the screen-on time of the transmitting device 100 is within the preset fourth time range, the transmitting device 100 may adopt the preset second discovery strategy to discover the receiving device, and the second discovery strategy may be a strategy customized by the user or the transmitting device according to the actual situation. For example, the transmitting device 100 may adopt the sixth transmission frequency to discover the receiving device 200, etc. Optionally, the transmission duration of the sixth transmission frequency may also be limited according to the actual situation. For example, after the sixth transmission frequency is used to discover the transmitting device within the preset fourth time, a lower or higher transmission frequency (such as the eighth transmission frequency) is finally used to continue to discover the receiving device 200, etc., which may be determined according to the actual situation, and the present disclosure does not make too many restrictions and details on this. The preset fourth time range and the above-mentioned various transmission frequencies (such as the fourth transmission frequency, the sixth transmission frequency, etc.) may also be customized according to the actual situation. For example, when the lower limit value of the preset third time range is greater than or equal to the upper limit value of the preset fourth time range, the fourth transmission frequency, the fifth transmission frequency and the sixth transmission frequency may be reduced in sequence. For example, when the screen-on time of the transmitting device is less than or equal to 5 minutes, the transmitting device may use a low frequency (ie, the sixth transmitting frequency) to continuously detect the receiving device.
[0078] In another possible implementation, when the above-mentioned transmitting device 100 is in a powered-on state (for example, when it is powered on for the first time or when it is restarted), the above-mentioned transmitting device 100 may adopt a preset third discovery strategy to discover the above-mentioned receiving device. The third discovery strategy may be a strategy customized by the user or the transmitting device according to actual conditions. The third discovery strategy may be the same as or similar to the above-mentioned first discovery strategy or the second discovery strategy. It may be customized according to actual conditions, and the present disclosure does not limit it.
[0079] It should be noted that the above-mentioned several implementations are only examples, but not limiting; the above-mentioned implementations can be increased or decreased according to the actual application scenario or actual situation. And the above-mentioned broadcast / discovery strategy can be related to the communication connection method adopted between the above-mentioned transmitting device 100 and the receiving device 200. With the different specific implementation methods of the communication connection, the above-mentioned broadcast discovery strategy can also have certain adjustments and changes. For example, when the above-mentioned transmitting device 100 and the above-mentioned receiving device 200 adopt Bluetooth communication connection, when the screen-on time of the above-mentioned transmitting device is less than or equal to 5 minutes, the transmitting device 100 can use a low frequency to continuously discover the above-mentioned receiving device 200. On the contrary, if the above-mentioned transmitting device 100 and the above-mentioned receiving device 200 adopt a local area network communication connection, when the screen-on time of the above-mentioned transmitting device is less than or equal to 5 minutes, the transmitting device 100 can use the previous transmission frequency (such as the intermediate frequency) to continuously discover the above-mentioned receiving device 200, etc. For another example, when the transmitting device 100 and the receiving device 200 are connected by Bluetooth communication, when the transmitting device 100 is in the power-on state, the transmitting device 100 can use a high frequency to continuously find the receiving device within 3 seconds, and then reduce it to a medium frequency after 3 seconds to continuously find the receiving device within 20 seconds, and then reduce it to a low frequency after 20 seconds to continue to find the receiving device, etc. On the contrary, if the transmitting device 100 and the receiving device 200 are connected by LAN communication, when the transmitting device 100 is in the power-on state, the transmitting device 100 can use a high frequency to continuously find the receiving device within 20 seconds, and then reduce it to a low frequency after 20 seconds to continue to find the receiving device, etc.
[0080] After the transmitting device 100 and the receiving device 200 have established a communication connection, the transmitting device 100 may broadcast the basic device information of itself to the receiving device 200. The present disclosure does not limit the specific implementation of the basic information broadcast, which may be determined according to actual conditions; the following examples illustrate several possible implementations, but do not constitute a limitation.
[0081] In a possible implementation, when the transmitting device 100 is in a screen-off state (e.g., it may include a state such as hibernation or sleep), the transmitting device 100 may broadcast the basic device information to the receiving device using a preset first broadcast strategy, and the first broadcast strategy may be a strategy customized by the user or the transmitting device according to actual conditions, such as broadcasting using a first transmission frequency or stopping broadcasting, etc. For example, when the transmitting device 100 and the receiving device 200 are connected by Bluetooth communication, if the transmitting device 100 is in a screen-off state, it may broadcast the basic device information to the receiving device using a low frequency.
[0082] In another possible implementation, when the screen-on time of the transmitting device 100 is within the preset first time range, the transmitting device may broadcast the basic information of the device to the receiving device using a preset second broadcast strategy, and the second broadcast strategy may be a strategy customized by the user or the transmitting device according to actual conditions, such as broadcasting using a second transmission frequency. The preset first time range, the first transmission frequency, and the second transmission frequency may all be customized by the user or the device according to actual conditions, such as the second transmission frequency may be lower than the first transmission frequency. For example, when a Bluetooth communication connection is used between the transmitting device 100 and the receiving device 200, if the screen-on time of the transmitting device 100 is less than or equal to 5 minutes, the transmitting device 100 may continuously broadcast the basic information of the device to the receiving device using an intermediate frequency.
[0083] In another possible implementation, when the screen-on time of the transmitting device 100 is within the preset second time range, the transmitting device may adopt a preset third broadcast strategy to broadcast the basic information of the device to the receiving device. The third broadcast strategy may be a strategy customized by the user or the transmitting device according to actual conditions, such as using a higher transmission frequency (such as the third transmission frequency) to broadcast the basic information of the device to the receiving device within the preset first duration, and then using a lower transmission frequency (such as the second transmission frequency) to continue broadcasting the basic information of the device to the receiving device. Optionally, the transmission duration of the second transmission frequency may also be limited according to actual conditions, such as using the second transmission frequency to broadcast the basic information of the device within the preset fifth duration, and finally using a lower transmission frequency (such as the first transmission frequency or other low-frequency frequencies, etc.) to continue broadcasting the basic information of the device. It can be determined according to actual conditions, and the present disclosure does not make too many restrictions and details on this. Among them, the above-mentioned screen-on time, the above-mentioned preset second time range, and the above-mentioned various transmission frequencies can also be customized according to actual conditions, which can be correspondingly referred to the relevant introduction in the above-mentioned embodiment; for example, when the upper limit value of the above-mentioned preset first time range is greater than or equal to the lower limit value of the above-mentioned preset second time range, the above-mentioned first transmission frequency, the above-mentioned second transmission frequency, and the above-mentioned third transmission frequency are sequentially increased. For example, when Bluetooth communication is used between the above-mentioned transmitting device 100 and the above-mentioned receiving device 200, if the screen-on time of the transmitting device 100 is greater than 5 minutes, the above-mentioned transmitting device 100 can use a high frequency frequency to continuously broadcast the above-mentioned device basic information within 5 seconds, and after 5 seconds, it can be reduced to a medium frequency or a low frequency to continue broadcasting the above-mentioned device basic information.
[0084] In another possible implementation, when the transmitting device 100 is in the power-on state (for example, when it is powered on for the first time or restarted), the transmitting device 100 may use a preset fourth broadcast strategy to broadcast the basic information of the device. The fourth broadcast strategy may be the same or similar to any of the first to third broadcast strategies, and it may be customized according to actual conditions, which is not limited by the present disclosure. For example, when the transmitting device 100 and the receiving device 200 are connected by Bluetooth communication, if the transmitting device 100 is in the power-on state, the transmitting device 100 may use a high frequency to continuously broadcast the basic information of the device for 5 seconds, and after 5 seconds, it may be reduced to a medium frequency to continue broadcasting the basic information of the device.
[0085] It should be noted that the above-mentioned several implementations are only examples, but do not constitute limitations; the above-mentioned implementations can be increased or reduced according to actual application scenarios or actual conditions. And the above-mentioned broadcast / discovery strategy may be related to the communication connection method adopted between the above-mentioned transmitting device 100 and the receiving device 200. With the different specific implementation methods of the communication connection, the above-mentioned broadcast discovery strategy may also have certain adjustments and changes. For example, when the above-mentioned transmitting device 100 and the above-mentioned receiving device 200 adopt Bluetooth communication connection, when the screen-on time of the above-mentioned transmitting device is less than or equal to 5 minutes, the transmitting device 100 can use the medium frequency frequency to broadcast the above-mentioned device basic information. On the contrary, if the above-mentioned transmitting device 100 and the above-mentioned receiving device 200 adopt a local area network communication connection, when the screen-on time of the above-mentioned transmitting device is less than or equal to 5 minutes, the transmitting device 100 can use the previous transmission frequency (such as low frequency frequency) to broadcast the above-mentioned device basic information, etc. For another example, when the transmitting device 100 and the receiving device 200 are connected by Bluetooth communication, when the screen of the transmitting device 100 is on for more than 5 minutes, the transmitting device 100 may broadcast the basic information of the device for 5 seconds at a high frequency, and then reduce the frequency to a medium frequency after 5 seconds to continue broadcasting the basic information of the device. On the contrary, if the transmitting device 100 and the receiving device 200 are connected by LAN communication, when the screen of the transmitting device 100 is on for more than 5 minutes, the transmitting device 100 uses the previous transmission frequency (e.g., low frequency) to broadcast the basic information of the device.
[0086] S302: When determining that the service information in the originating device 100 has changed, the originating device 100 sends the service information to be synchronized to the receiving device 200, wherein the service information to be synchronized includes at least the service information that has changed in the originating device 100. Accordingly, the receiving device 200 receives the service information to be synchronized.
[0087] When the originating device 100 determines that the service information in itself has changed, it can send the service information to be synchronized to the receiving device 200. The present disclosure does not limit the implementation method for determining whether the service information in the originating device 100 has changed. For example, the originating device 100 can detect whether the service information in its own device has changed in real time or periodically. For another example, after the originating device 100 sends the basic information of the device including the information change identifier to the receiving device 200, the receiving device 200 can compare the information change identifier with the previously stored information change identifier. If they are different, it can be determined that the service information in the originating device 100 has changed, and further, a corresponding service synchronization request can be returned to the originating device 100. The service synchronization request is used to request synchronization of the corresponding service information, such as the service information to be synchronized. Accordingly, the originating device 100 receives the service synchronization request and can determine that the service information in its own device has changed. Then, the originating device 100 can send the service information to be synchronized to the receiving device 200 based on the service synchronization request. The service information to be synchronized may include all or part of the service information in the originating device 100. For example, it may indicate service information that has changed in the originating device 100, and may optionally include service information that has not changed in the originating device 100.
[0088] The present disclosure does not limit the implementation method of sending the above-mentioned service information to be synchronized, which may be related to the communication connection between the above-mentioned sending device 100 and the receiving device 200. The following is an exemplary introduction of two possible implementation methods:
[0089] In one embodiment, when the transmitting device 100 and the receiving device 200 use Bluetooth communication, the present disclosure can send the service information to be synchronized to the receiving device based on the Bluetooth communication connection (referred to as Bluetooth connection) established between the transmitting device 100 and the receiving device 200, and release the Bluetooth connection after the sending is completed. For how the transmitting device 100 discovers the receiving device 200 and establishes a Bluetooth connection with the receiving device 200, please refer to the relevant introduction in the above embodiments, which will not be repeated here.
[0090] In another embodiment, when the transmitting device 100 and the receiving device 200 use a local area network communication (such as point-to-point networking communication or other local area network communication, etc.), the present disclosure can send the above-mentioned service information to be synchronized to the receiving device 200 based on the communication connection established between the transmitting device 100 and the receiving device 200. In this case, after the transmission of the above-mentioned service information to be synchronized is completed, there is no need to disconnect the connection, and the above-mentioned communication connection can be maintained. Regarding how the above-mentioned transmitting device 100 discovers the receiving device 200 and establishes a communication connection with the receiving device 200, reference can be made to the relevant introduction in the above-mentioned embodiment, which will not be repeated here.
[0091] In some optional embodiments, after the receiving device 200 receives the service information to be synchronized, it may perform subsequent processing on the service information to be synchronized. For example, in actual applications, the service information to be synchronized may include at least one service information, and these service information have the same device identifier, which may be the device identifier of the transmitting device 100, for identifying that these service information are service information in the transmitting device 100. Accordingly, the receiving device 100 may split the service information to be synchronized at the service granularity, i.e., service splitting, so as to obtain at least one service information in the transmitting device 100 after splitting. Further, the receiving device 100 may perform corresponding service online and offline processing based on the at least one service information (i.e., the service information to be synchronized). Among them, the present disclosure does not limit the specific implementation methods of the above-mentioned service online and offline processing, and several possible implementation methods are exemplarily introduced below:
[0092] In one implementation, when the receiving device 200 detects that the first service information does not exist in itself, the first service information may be put online, and the first service information may be service information in at least one service information included in the service information to be synchronized. That is, when the first service information in the service information to be synchronized does not exist in the receiving device 200, the first service information may be put online.
[0093] In another embodiment, the service information to be synchronized includes all service information in the originating device 100. In this case, when the receiving device 200 detects that there is second service information in itself that has the same / same device identifier and different service content as at least one service information included in the service information to be synchronized, the receiving device 200 can take the second service information offline. That is, when there is second service information in the receiving device 200 that has the same device identifier as the service information to be synchronized but has different content, the second service information can be taken offline.
[0094] In another embodiment, when the receiving device 200 detects that there is third service information in itself that has the same / same service identifier and different service content as at least one service information included in the above-mentioned service information to be synchronized, the service of the third service information can be put back online. For example, the third service information can be taken offline first and then put back online; or the above-mentioned third service information can be directly updated online, etc.
[0095] It should be noted that the above-mentioned embodiments can be implemented separately or in combination with any two or more of them. This can be determined according to actual conditions, and the present disclosure does not make too many restrictions or details on this.
[0096] The above embodiments of the present disclosure can support access to multiple business services (or service information) of one application to perform online and offline processing of corresponding services; the originating device and the receiving device can use different networking communication connections and synchronization strategies to synchronize corresponding information, thereby greatly reducing the power consumption of information synchronization; the originating device can broadcast its own device basic information before synchronizing the information to be synchronized, reducing the amount of broadcast data, and providing convenience and support for subsequent information synchronization. In a specific implementation, the originating device broadcasts the device basic information to the receiving device, and the device basic information at least includes the information change identifier of the originating device, and the information change identifier is used to indicate whether the service information in the originating device has changed; when it is determined that the service information in the originating device has changed, the service information to be synchronized is sent to the receiving device, and the service information to be synchronized at least includes the service information that has changed in the originating device. It can be seen that the originating device and the receiving device can synchronize information with the service as the granularity, and the corresponding information is synchronized only when the above information change identifier indicates that the service information in the originating device has changed, without involving complex or redundant logical processes, thereby helping to reduce the power consumption caused by information synchronization and improving the reliability and stability of information synchronization. At the same time, it can also solve technical problems such as reduced stability and reliability when information is reported or synchronized at the device granularity in the above-mentioned related technologies.
[0097] Based on the above embodiments, the present disclosure further provides a communication system, which may include a transmitting device 100 and a receiving device 200. The transmitting device 100 may execute the service information synchronization method of the transmitting device in the above embodiments of the present disclosure; the receiving device 200 may execute the service information synchronization method of the receiving device in the above embodiments of the present disclosure.
[0098] See also Figure 4 FIG. 1 is a schematic diagram showing the structure of a service information synchronization device according to an exemplary embodiment. Figure 4 The device shown can be applied to the transmitting device 100, and the device may include a transceiver module 401. Among them:
[0099] The transceiver module 401 is configured to broadcast basic device information to the receiving device, wherein the basic device information at least includes an information change flag of the emitting device, and the information change flag is used to indicate whether the service information in the emitting device has changed;
[0100] The transceiver module 401 is further configured to send the service information to be synchronized to the receiving device when it is determined that the service information in the originating device has changed, wherein the service information to be synchronized at least includes the service information that has changed in the originating device.
[0101] In some embodiments, before sending the service information to be synchronized to the receiving device, the transceiver module 401 is further configured to receive a service synchronization request returned by the receiving device, wherein the service synchronization request is sent by the receiving device when determining that the information change identifier is used to indicate that the service information in the originating device has changed;
[0102] The transceiver module 401 is configured to send the service information to be synchronized to the receiving device based on the service synchronization request.
[0103] In some embodiments, the transceiver module 401 is configured to:
[0104] When the transmitting device and the receiving device communicate using Bluetooth, the to-be-synchronized service information is sent to the receiving device based on the Bluetooth connection established between the transmitting device and the receiving device, and the Bluetooth connection is released after the to-be-synchronized service information is sent; or
[0105] When the transmitting device and the receiving device communicate using a local area network, the service information to be synchronized is sent to the receiving device based on the communication connection established between the transmitting device and the receiving device, and the communication connection is maintained after the service information to be synchronized is sent.
[0106] In some embodiments, the service information to be synchronized also includes service information that has not been changed in the originating device.
[0107] In some embodiments, all service information in the originating device has the same device identification.
[0108] In some embodiments, the transceiver module 401 is configured to perform any of the following:
[0109] When the transmitting device is in a screen-off state, the transmitting device broadcasts the basic device information to the receiving device using a first transmission frequency;
[0110] When the screen-on time of the transmitting device is within a preset first time range, the transmitting device broadcasts basic device information to the receiving device using a second transmission frequency;
[0111] When the screen-on time of the transmitting device is within the preset second time range, the transmitting device broadcasts basic device information to the receiving device using the third transmission frequency within the preset first time length, and then continues to broadcast the basic device information to the receiving device using the second transmission frequency;
[0112] Among them, the screen turn-on time is the time difference between the time when the screen of the transmitting device is turned on and the time when the screen of the transmitting device was last turned off. When the upper limit value of the preset first time range is greater than or equal to the lower limit value of the preset second time range, the first transmission frequency, the second transmission frequency and the third transmission frequency increase in sequence.
[0113] In some embodiments, the apparatus further includes a processing module 402. Before broadcasting basic device information to the receiving device, the processing module 402 is configured to enable the transmitting device to discover the receiving device based on a pre-configured broadcast discovery strategy and establish a communication connection with the receiving device;
[0114] The originating device discovers the receiving device based on a pre-configured broadcast discovery strategy, including any one of the following:
[0115] When the originating device is in a screen-off state, the originating device stops discovering the receiving device to be broadcasted;
[0116] When the screen-on time of the transmitting device is within the preset third time range, the transmitting device uses the fourth transmission frequency to find the receiving device within the preset second time period, and then uses the fifth transmission frequency to continue to find the receiving device;
[0117] When the screen-on time of the transmitting device is within a preset fourth time range, the transmitting device uses a sixth transmission frequency to discover the receiving device;
[0118] When the lower limit of the preset third time range is greater than or equal to the upper limit of the preset fourth time range, the fourth transmission frequency, the fifth transmission frequency and the sixth transmission frequency are sequentially decreased.
[0119] See also Figure 5 FIG. 1 is a schematic diagram showing the structure of another service information synchronization device according to an exemplary embodiment. Figure 5 The device shown can be applied to a receiving device 200, and the device may include a transceiver module 501. Among them:
[0120] The transceiver module 501 is configured to receive basic device information broadcast by a source device, wherein the basic device information at least includes an information change identifier of the source device, and the information change identifier is used to indicate whether service information in the source device has changed;
[0121] The transceiver module 501 is also configured to receive the service information to be synchronized sent by the originating device, wherein the service information to be synchronized at least includes the service information sent by the receiving device. The service information to be synchronized is sent by the originating device when it is determined that the service information in the originating device has changed.
[0122] In some embodiments, the transceiver module 501 is also configured to send a service synchronization request to the originating device when it is determined that the information change identifier is used to indicate that the service information in the originating device has changed, and the service synchronization request is used to request the service information to be synchronized in the receiving device.
[0123] In some embodiments, the apparatus further includes a processing module 502. The service information to be synchronized includes at least one service information, and at least one of the service information has the same device identifier, and the processing module 502 is configured to perform service splitting on the service information to be synchronized to obtain at least one of the split service information; and perform service online and offline processing based on at least one of the service information.
[0124] In some embodiments, the processing module 502 is configured to perform at least one of the following:
[0125] When the first service information does not exist in the receiving device, the first service information is put on line, where the first service information is service information in at least one of the service information;
[0126] When there is a second service information in the receiving device that has the same device identifier as at least one of the service information and has different service content, the second service information is offline;
[0127] When the receiving device has third service information having the same service identifier as at least one of the service information and different service content, the third service information is put back online.
[0128] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0129] By implementing the embodiments of the present disclosure, the present disclosure can broadcast basic device information from a transmitting device to a receiving device, wherein the basic device information at least includes an information change identifier of the transmitting device, and the information change identifier is used to indicate whether the service information in the transmitting device has changed; when it is determined that the service information in the transmitting device has changed, the service information to be synchronized is sent to the receiving device, and the service information to be synchronized at least includes the service information that has changed in the transmitting device. It can be seen that information synchronization can be performed between the transmitting device and the receiving device at the service granularity, and the corresponding information is synchronized only when the above-mentioned information change identifier indicates that the service information in the transmitting device has changed, without involving complex or redundant logical processes, thereby helping to reduce power consumption caused by information synchronization, and helping to improve the reliability and stability of information synchronization. At the same time, it can also solve the technical problems in the above-mentioned related technologies such as reduced stability and reliability when reporting or synchronizing information at the device granularity.
[0130] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the service information synchronization method provided by the present disclosure are implemented.
[0131] Figure 6 1 is a schematic diagram of a communication device according to an exemplary embodiment. The communication device may be the above-mentioned transmitting device 100 or the above-mentioned receiving device 200, which may be determined according to actual conditions. The communication device may include, but is not limited to, for example, a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant or other terminal devices.
[0132] Reference Figure 6 The communication device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output interface 612 , a sensor component 614 , and a communication component 616 .
[0133] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the service information synchronization method described above. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0134] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device 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 disk or optical disk.
[0135] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0136] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the terminal device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0137] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0138] The input / output interface 612 provides an interface between the processing component 602 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0139] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0140] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 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 616 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 616 also 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) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0141] In an exemplary embodiment, the device 600 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, microcontrollers, microprocessors or other electronic components to perform the above-mentioned service information synchronization method.
[0142] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to complete the above-mentioned upper service information synchronization method. 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 disk, an optical data storage device, etc.
[0143] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned service information synchronization method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction may be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned service information synchronization method may be implemented; alternatively, the integrated circuit or chip may receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned service information synchronization method.
[0144] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above service information synchronization method when executed by the programmable device.
[0145] See also Figure 7 FIG. 1 is a schematic diagram showing the structure of a chip according to an exemplary embodiment. Figure 7 The chip 700 shown can be applied to the above-mentioned transmitting device 100 to execute the service information synchronization method on the transmitting device side; it can also be applied to the above-mentioned receiving device 200 to execute the service information synchronization method on the receiving device side. The chip 700 may include a processor 701 and an interface 702. Optionally, it may also include a memory 703. The number of processors 701 may be one or more, and the number of interfaces 702 may be multiple.
[0146] In one embodiment, for a case where a chip is used to implement the method embodiment of the present disclosure:
[0147] The interface 702 is used to receive or output signals;
[0148] The processor 701 is used to execute part or all of the content in the embodiment of the service information synchronization method.
[0149] Understandably, the processor in the embodiment of the present disclosure may be an integrated circuit chip having signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0150] It is understandable that the memory in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0151] By implementing the embodiments of the present disclosure, the transmitting device in the present disclosure can broadcast basic device information to the receiving device, and the basic device information at least includes the information change identifier of the transmitting device, and the information change identifier is used to indicate whether the service information in the transmitting device has changed; when it is determined that the service information in the transmitting device has changed, the service information to be synchronized is sent to the receiving device, and the service information to be synchronized at least includes the service information that has changed in the transmitting device. It can be seen that information synchronization can be performed between the transmitting device and the receiving device at the service granularity, and the corresponding information is synchronized only when the above-mentioned information change identifier indicates that the service information in the transmitting device has changed, without involving complex or redundant logical processes, which is conducive to reducing the power consumption caused by information synchronization and improving the reliability and stability of information synchronization. At the same time, it can also solve the technical problems such as reduced stability and reliability when reporting or synchronizing information at the device granularity in the above-mentioned related technologies.
[0152] It should be noted here that the description of the above storage medium, device and chip embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
[0153] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0154] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A service information synchronization method, characterized in that: Applied to a source device, the method comprises: Broadcasting basic device information to a receiving device, the basic device information at least including an information change identifier of the originating device, the information change identifier being used to indicate whether service information in the originating device has changed; When it is determined that the service information in the originating device has changed, the service information to be synchronized is sent to the receiving device, where the service information to be synchronized at least includes the service information that has changed in the originating device.
2. The method according to claim 1, characterized in that Before sending the service information to be synchronized to the receiving device, the method further includes: receiving a service synchronization request returned by the receiving device, wherein the service synchronization request is sent by the receiving device when determining that the information change identifier is used to indicate that the service information in the originating device has changed; The sending of the to-be-synchronized service information to the receiving device comprises: The service information to be synchronized is sent to the receiving device based on the service synchronization request.
3. The method according to claim 1 or 2, characterized in that: The sending of the to-be-synchronized service information to the receiving device comprises: When the transmitting device and the receiving device communicate using Bluetooth, the to-be-synchronized service information is sent to the receiving device based on the Bluetooth connection established between the transmitting device and the receiving device, and the Bluetooth connection is released after the to-be-synchronized service information is sent; or When the transmitting device and the receiving device communicate using a local area network, the service information to be synchronized is sent to the receiving device based on the communication connection established between the transmitting device and the receiving device, and the communication connection is maintained after the service information to be synchronized is sent.
4. The method according to claim 1 or 2, characterized in that: The service information to be synchronized also includes service information that has not been changed in the originating device.
5. The method according to claim 1 or 2, characterized in that: All service information in the originating device has the same device identification.
6. The method according to claim 1, characterized in that The basic device information broadcasted by the transmitting device to the receiving device includes any one of the following: When the transmitting device is in a screen-off state, the transmitting device broadcasts the basic device information to the receiving device using a first transmission frequency; When the screen-on time of the transmitting device is within a preset first time range, the transmitting device broadcasts basic device information to the receiving device using a second transmission frequency; When the screen-on time of the transmitting device is within the preset second time range, the transmitting device broadcasts basic device information to the receiving device using the third transmission frequency within the preset first time length, and then continues to broadcast the basic device information to the receiving device using the second transmission frequency; Among them, the screen turn-on time is the time difference between the time when the screen of the transmitting device is turned on and the time when the screen of the transmitting device was last turned off. When the upper limit value of the preset first time range is greater than or equal to the lower limit value of the preset second time range, the first transmission frequency, the second transmission frequency and the third transmission frequency increase in sequence.
7. The method according to claim 6, characterized in that Before the transmitting device broadcasts the basic device information to the receiving device, the method further includes: The originating device discovers the receiving device based on a pre-configured broadcast discovery strategy, and establishes a communication connection with the receiving device; The originating device discovers the receiving device based on a pre-configured broadcast discovery strategy, including any one of the following: When the originating device is in a screen-off state, the originating device stops discovering the receiving device to be broadcasted; When the screen-on time of the transmitting device is within the preset third time range, the transmitting device uses the fourth transmission frequency to find the receiving device within the preset second time period, and then uses the fifth transmission frequency to continue to find the receiving device; When the screen-on time of the transmitting device is within a preset fourth time range, the transmitting device uses a sixth transmission frequency to discover the receiving device; When the lower limit of the preset third time range is greater than or equal to the upper limit of the preset fourth time range, the fourth transmission frequency, the fifth transmission frequency and the sixth transmission frequency are sequentially decreased.
8. A service information synchronization method, characterized in that: Applied to a receiving device, the method comprises: Receiving basic device information broadcasted by an originating device, the basic device information at least including an information change identifier of the originating device, the information change identifier being used to indicate whether service information in the originating device has changed; The service information to be synchronized sent by the originating device is received, wherein the service information to be synchronized includes at least service information that has changed in the receiving device, and the service information to be synchronized is sent by the originating device when it is determined that the service information in the originating device has changed.
9. The method according to claim 8, characterized in that The method further comprises: When it is determined that the information change identifier is used to indicate that the service information in the originating device has changed, a service synchronization request is sent to the originating device, wherein the service synchronization request is used to request to obtain the service information to be synchronized in the receiving device.
10. The method according to claim 8 or 9, characterized in that: The service information to be synchronized includes at least one service information, and at least one of the service information has the same device identifier, and the method further includes: Performing service splitting on the service information to be synchronized to obtain at least one service information after splitting; Perform service online and offline processing based on at least one of the service information.
11. The method according to claim 10, characterized in that The service online and offline processing based on at least one of the service information includes at least one of the following: When the first service information does not exist in the receiving device, the first service information is put on line, where the first service information is service information in at least one of the service information; When there is a second service information in the receiving device that has the same device identifier as at least one of the service information and has different service content, the second service information is offline; When the receiving device has third service information having the same service identifier as at least one of the service information and different service content, the third service information is put back online.
12. A source device, characterized in that: include: a transceiver module, configured to broadcast basic device information to a receiving device, wherein the basic device information at least includes an information change identifier of the emitting device, and the information change identifier is used to indicate whether service information in the emitting device has changed; The transceiver module is further configured to send the service information to be synchronized to the receiving device when it is determined that the service information in the originating device has changed, wherein the service information to be synchronized at least includes the service information that has changed in the originating device.
13. A receiving device, characterized in that: include: a transceiver module configured to receive basic device information broadcast by a source device, wherein the basic device information at least includes an information change identifier of the source device, and the information change identifier is used to indicate whether service information in the source device is changed; The transceiver module is also configured to receive the service information to be synchronized sent by the originating device, wherein the service information to be synchronized at least includes the service information sent by the receiving device. The service information to be synchronized is sent by the originating device when it is determined that the service information in the originating device has changed.
14. A communication device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the executable instructions to implement the steps of the method described in any one of claims 1 to 7; or the processor is configured to execute the executable instructions to implement the steps of the method described in any one of claims 8 to 11.
15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented; or, when the computer program instructions are executed by a processor, the steps of the method described in any one of claims 8 to 11 are implemented.
16. A communication system, characterized in that: include: An originating device, wherein the originating device executes the method according to any one of claims 1 to 7; A receiving device, wherein the receiving device executes the method as claimed in any one of claims 8 to 11.