Method and device for synchronizing product information

By obtaining product packages from the product development platform and performing synchronization or import operations according to the environment connection, the problem of low information configuration efficiency of IoT products in multiple environments is solved, and more efficient product information management and reuse is achieved.

CN119766825APending Publication Date: 2025-04-04HANGZHOU HUACHENG SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411813115.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In multi-environment IoT products, the configuration efficiency of product information is low, resulting in the need to manually configure product information in each environment, affecting the product reuse and management efficiency.

Method used

By obtaining product packages from the product development platform, synchronous operations are performed based on the connection between the product development platform and the service platform. Specifically, synchronize the product package when the environment is opened, import the product package when it is not opened, and persist the product information in each environment.

Benefits of technology

It improves the efficiency of product information configuration, simplifies product management and reuse in multiple environments, and solves the problem of low product information configuration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766825A_ABST
    Figure CN119766825A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and device for synchronizing product information, and the method comprises the steps that a service platform obtains a product package from a product development platform, and the product package carries the product information of at least one to-be-synchronized product; and according to the connection condition of each environment in the product development platform and the service platform, executing a synchronous operation on the product package. The product development platform selects at least one to-be-synchronized product from the product list; generating a product package through the product information of the to-be-synchronized product; and synchronizing the product package to the service platform according to the connection condition of each environment in the product development platform and the service platform. The problem of low product information configuration efficiency in related technologies is solved, and the effect of improving the product information configuration efficiency is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of Internet of Things, and in particular, to a method and device for synchronizing product information. Background Art

[0002] With the continuous development of the Internet of Things, more and more devices and products are connected to the Internet of Things. The connected products are verified in various environments such as test environments and pre-release environments, and finally released to the production environment. Some production environments have multiple sets, some are publicly deployed, and some are privately deployed. If products are to circulate in multiple environments, then product information must be available in multiple environments. If the same configuration information of the product is configured in each environment, it will bring inconvenience to the reuse of products in multiple environments.

[0003] There is currently no effective solution to the above problems. Summary of the invention

[0004] The embodiments of the present invention provide a method and device for synchronizing product information, so as to at least solve the problem of low efficiency of product information configuration in the related art.

[0005] According to one embodiment of the present invention, a method for synchronizing product information is provided, comprising: obtaining a product package from a product development platform, wherein the product package carries product information of at least one product to be synchronized; and performing synchronization operations on the product package according to the connectivity between the product development platform and various environments in a service platform.

[0006] In an exemplary embodiment, according to the connection status of each environment in the product development platform and the service platform, a synchronization operation is performed on the product package, including: when the product development platform is connected with the first environment in the service platform, the product package is synchronized to the first environment; when the product development platform is not connected with the second environment in the service platform, the product package is imported into the second environment.

[0007] In an exemplary embodiment, when the product development platform is connected to a first environment in the service platform, the product package is synchronized to the first environment, including: parsing first verification information from the product package; and synchronizing the product package to the first environment when it is determined that the first verification information does not exist in the local storage.

[0008] In an exemplary embodiment, after synchronizing the product package to the first environment, the method further includes: the service platform parsing the product information from the product package and persistently storing the product information in the first environment.

[0009] In an exemplary embodiment, when the product development platform and the second environment in the service platform are not connected, the product package is imported into the second environment, including: obtaining the product information and first verification information from the product package; obtaining second verification information through the product information; and when the first verification information is consistent with the second verification information, importing the product package into the second environment.

[0010] In an exemplary embodiment, after the product package is imported into the second environment, the method further includes: the service platform parsing the product information from the product package and persistently storing the product information in the second environment.

[0011] According to another embodiment of the present invention, a method for synchronizing product information is provided, including selecting at least one product to be synchronized in a product list; generating a product package based on the product information of the product to be synchronized; and synchronizing the product package to the service platform based on the connectivity between various environments in the product development platform and the service platform.

[0012] In an exemplary embodiment, generating a product package using the product information of the product to be synchronized includes: obtaining first verification information according to the product information, and packaging the product information and the first verification information to obtain the product package.

[0013] In an exemplary embodiment, the product package is synchronized to the service platform according to the connectivity between the product development platform and the environments in the service platform, including: when the product development platform is connected with a first environment in the service platform, synchronizing the product package to the first environment; when the product development platform is not connected with a second environment in the service platform, importing the product package into the second environment.

[0014] According to another embodiment of the present invention, there is provided a device for synchronizing product information, comprising: an acquisition module for acquiring a product package from a product development platform; wherein the product package carries product information of at least one product to be synchronized; and a synchronization module for performing synchronization operations on the product package according to the connectivity between the product development platform and various environments in the service platform.

[0015] According to another embodiment of the present invention, there is provided a device for synchronizing product information, comprising: a selection module for selecting at least one product to be synchronized in a product list; a generation module for generating a product package through the product information of the product to be synchronized; and a synchronization module for synchronizing the product package to the service platform according to the connectivity between the product development platform and the various environments in the service platform.

[0016] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0017] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0018] According to yet another embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0019] According to yet another embodiment of the present invention, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, the steps of any of the above methods are implemented.

[0020] Through the present invention, since the service platform obtains the product package from the product development platform, the product package carries the product information of at least one product to be synchronized; according to the connection between the product development platform and each environment in the service platform, the synchronization operation is performed on the product package. Therefore, the problem of low efficiency in product information configuration in the related technology can be solved, and the effect of improving the efficiency of configuring product information can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is an overall architecture diagram of a method for synchronizing product information according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of a method for synchronizing product information on a service platform according to an embodiment of the present invention;

[0023] Figure 3 is a flow chart of a method for synchronizing product information on a product development platform according to an embodiment of the present invention;

[0024] Figure 4 is a flowchart of product packaging according to an embodiment of the present invention;

[0025] Figure 5 is a flow chart of applying a product according to an embodiment of the present invention to a specified environment;

[0026] Figure 6 is a product development and configuration flow chart according to an embodiment of the present invention;

[0027] Figure 7 is a structural block diagram of an apparatus for synchronizing product information on a service platform according to an embodiment of the present invention;

[0028] Figure 8 This is the structure of an apparatus for synchronizing product information on a product development platform according to an embodiment of the present invention.

[0029] block diagram DETAILED DESCRIPTION

[0030] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0032] Figure 1 is an overall architecture diagram of a method for synchronizing product information according to an embodiment of the present invention, such as Figure 1 As shown, the above architecture includes multiple sections such as product development platform, client, service platform including multiple environments and devices.

[0033] Among them, the client is used for device information display and device function control entry, and interacts with the service platform; the device interacts with the service platform; the service platform is used to process the uplink and downlink data of the device signaling, and the client interacts with the service platform; the service platform is multi-environment, such as test environment, pre-release environment, production environment, etc.; each environment is a complete system. The product development platform is a platform for device product development, and develops and configures products.

[0034] In this embodiment, a method for synchronizing product information running on the above architecture is provided. Figure 2 is a flow chart of a method for synchronizing product information on a service platform according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0035] Step S202, obtaining a product package from a product development platform, wherein the product package carries product information of at least one product to be synchronized;

[0036] The product package obtained from the product development platform may contain multiple products, which may be products to be synchronized, and carries product information of at least one product to be synchronized.

[0037] Step S204: performing synchronization operation on the product package according to the connection status of each environment in the product development platform and the service platform.

[0038] The synchronization operation performed on the above-mentioned product package can be to synchronize the product package to the first environment in the product development platform when the first environment in the service platform is connected, or to import the product package into the second environment in the product development platform when the second environment in the service platform is not connected.

[0039] The service platform includes multiple environments, and the first environment is a certain environment in the service platform. The product development platform is connected to the first environment in the service platform, which means that the first environment between the product development platform and the service platform is interconnected and interactive, the second link is a certain environment in the service platform, and the product development platform is not connected to the second environment in the service platform, which means that the product development platform and the second environment in the service platform are not connected and are not interconnected and interactive.

[0040] As an optional implementation, when the product development platform is connected to the first environment in the service platform, the product package is synchronized to the first environment, including: parsing first verification information from the product package; and when it is determined that the first verification information does not exist in the local storage, synchronizing the product package to the first environment.

[0041] The above-mentioned first verification information is a summary value generated according to the summary algorithm based on the generated product information data, which is used for data verification during parsing. Specifically, the summary value can be generated by product identification + product package + random value as input data. The specific summary algorithm can be agreed upon without restriction, and can be SHA256, etc. The above-mentioned first verification information does not exist in the above-mentioned local storage because the above-mentioned first environment performs verification after receiving the synchronization request (including the summary value). If it has been synchronized and processed successfully, the synchronization record will be saved locally. At this time, when the summary information of the synchronized product package is consistent with the summary in the locally saved synchronization record, it means that the product package has been synchronized successfully. This synchronization is a repeated operation, and the synchronization result can be directly fed back without the need to execute the complete processing flow again; if it has not been synchronized and processed, there will be no summary information of the above-mentioned product locally, and the above-mentioned product will be synchronized to the above-mentioned first environment.

[0042] The service platform parses the product information from the product package and stores the product information persistently in the first environment.

[0043] The above-mentioned service platform first saves the above-mentioned product package, and then stores the structured information parsed from the above-mentioned product package in a separate temporary storage area; then parses the product information data and verification information in the structured file, generates a summary value according to the summary algorithm based on the parsed product information, and compares it with the parsed verification information. If the comparison is successful, the above-mentioned product information is persistently stored in the above-mentioned first environment.

[0044] As an optional implementation, when the product development platform and the second environment in the service platform are not connected, the product package is imported into the second environment, including: obtaining the product information and first verification information from the product package; obtaining the second verification information through the product information; and when the first verification information is consistent with the second verification information, importing the product package into the second environment.

[0045] The second verification information is a summary value calculated by the second environment in the service platform according to the product information obtained from the product package and a summary algorithm. When the first verification information and the second verification information are consistent, the product package is imported into the second environment.

[0046] The service platform parses the product information from the product package and stores the product information persistently in the second environment.

[0047] The product service module of the second environment receives the product package, unpacks it and parses the product information, and after the parsing is completed, the product information is persistently stored in the second environment.

[0048] In this embodiment, a method for synchronizing product information running on the above architecture is provided. Figure 3 is a flow chart of a method for synchronizing product information on a product development platform according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0049] Step S302, selecting at least one product to be synchronized in the product list;

[0050] The above product list contains multiple products, which may be products to be synchronized or synchronized products, and at least one product to be synchronized is selected from them.

[0051] Step S304, generating a product package according to the product information of the product to be synchronized;

[0052] Specifically, first verification information is obtained according to the product information, and the product information and the first verification information are packaged to obtain the product package.

[0053] Figure 4 is a flowchart of product packaging according to an embodiment of the present invention, such as Figure 4As shown, the above product packaging is to structure the product information, which is saved in text form after structuring and is saved in two parts: product information data + verification information. The above first verification information is the verification information part of the structured file that generates a summary value according to the summary algorithm based on the generated product data. It is used for data verification during parsing. The structured file and other related files are packaged together, and the files are compressed while packaging to reduce the size of the product package as much as possible and improve the transmission performance.

[0054] Step S306, synchronizing the product package to the service platform according to the connection status of each environment in the product development platform and the service platform.

[0055] Specifically, when the product development platform is connected with the first environment in the service platform, the product package is synchronized to the first environment; when the product development platform is not connected with the second environment in the service platform, the product package is imported into the second environment.

[0056] The above synchronization and import process is consistent with the synchronization and import process on the service platform, so it will not be repeated here.

[0057] Figure 5 is a flow chart of applying a product according to an embodiment of the present invention to a specified environment, such as Figure 5 As shown, the process includes the following steps:

[0058] S501, query the product list, select the products to be synchronized and package them;

[0059] S502, product packaging, generating a digest value through a digest algorithm;

[0060] S503, determine whether the specified environment is connected; if so, jump to the process of connecting the product development platform with the specified environment (S504-S505, S508-S509); if not, jump to the process of not connecting the product development platform with the specified environment (S506-S509);

[0061] S504, product application to the specified environment;

[0062] After successful packaging, the product is applied to the specified environment; the application operation triggers the background to synchronize the product package to the specified environment;

[0063] S505, the product package is synchronized to the specified environment (the synchronization request carries summary information);

[0064] During the automatic synchronization process, the synchronization request will carry the digest value, and the specified environment will perform verification after receiving the information (including the digest value);.

[0065] Data consistency is ensured by comparing verification information and product information, to prevent data inconsistency caused by product package tampering during transmission, or abnormalities during parsing or persistent storage.

[0066] 1) When processing a product package in a specified environment, first save the received product package, and then store the structured file information obtained after unpacking in a separate temporary storage area;

[0067] 2) Parse the product information data and verification information in the structured file, generate a summary value according to the parsed product information using a summary algorithm, and compare it with the parsed verification information;

[0068] 3) If the comparison fails, it means that the data has been tampered with, the data is inconsistent, and the processing has failed;

[0069] 4) If the comparison is successful, the product information is saved persistently;

[0070] 5) After the persistent storage is completed, the structured file saved in the temporary storage area is read again and parsed into product information, and compared with the persistently saved data; a successful comparison indicates that the data is consistent; a failed comparison indicates that an unpredictable exception occurred during the parsing and persistence process, resulting in data inconsistency, and the comparison result is fed back.

[0071] S506, exporting the product package, and encrypting the exported product package;

[0072] Encrypt the product package to ensure data security. When exporting the product package, encrypt it. If the product package is leaked, a third party will not be able to identify it because it has been encrypted, thus ensuring the security of the data content.

[0073] S507, importing the product package in the specified environment;

[0074] The product service module in the specified environment receives the product package, unpacks it and parses the product information. After parsing, the product information is persisted in the environment and the product is put into effect. Then the product can be used directly in the environment.

[0075] S508, decompress the product package in the specified environment and parse the product information;

[0076] S509, the product information in the specified environment is persisted and saved and becomes effective;

[0077] The product service module in the specified environment receives the product package, unpacks it and parses the product information. After parsing, the product information is persisted in the environment and the product is put into effect. Then the product can be used directly in the environment.

[0078] Figure 6 1 is a product development and configuration flow chart according to an embodiment of the present invention. As shown in the figure, the flow chart includes the following steps:

[0079] S601, creating products on the product development platform;

[0080] S602, configure product information, including but not limited to product name, product image, product function definition, panel configuration, etc.;

[0081] S603, product development testing;

[0082] S604: Product development and testing is completed and the product is ready for release. At this point, the product can be applied to a specified environment or exported as a product package.

[0083] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.

[0084] Through the above steps, the problem of low efficiency in configuring product information in related technologies is solved, and the efficiency of configuring product information is improved.

[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0086] In this embodiment, a device for synchronizing product information is also provided, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0087] Figure 7 is a structural block diagram of an apparatus for synchronizing product information on a service platform according to an embodiment of the present invention. Figure 7As shown, the device includes an acquisition module 702, which is used to obtain a product package from a product development platform; wherein the product package carries product information of at least one product to be synchronized; and a first synchronization module 704, which is used to perform synchronization operations on the product package according to the connection status of each environment in the product development platform and the service platform.

[0088] In an exemplary embodiment, the above-mentioned device is also used to obtain a product package from a product development platform, wherein the product package carries product information of at least one product to be synchronized; and perform synchronization operations on the product package according to the connection status of various environments in the product development platform and the service platform.

[0089] In an exemplary embodiment, the above-mentioned device is also used to synchronize the product package to the first environment in the product development platform when the first environment in the service platform is connected; and to import the product package into the second environment in the product development platform when the second environment in the service platform is not connected.

[0090] In an exemplary embodiment, the above-mentioned device is also used to parse out first verification information from the product package; when it is determined that the first verification information does not exist in the local storage, synchronize the product package to the first environment.

[0091] In an exemplary embodiment, the above-mentioned apparatus is also used to parse the product information from the product package and store the product information persistently in the first environment.

[0092] In an exemplary embodiment, the above-mentioned device is also used to obtain the product information and first verification information from the product package; obtain second verification information through the product information; and import the product package into the second environment when the first verification information is consistent with the second verification information.

[0093] In an exemplary embodiment, the above-mentioned apparatus is further used to parse the product information from the product package and store the product information persistently in the second environment.

[0094] Figure 8 is a structural block diagram of an apparatus for synchronizing product information on a product development platform according to an embodiment of the present invention. Figure 8 As shown, the device includes a selection module 802, which is used to select at least one product to be synchronized in the product list; a generation module 804, which is used to generate a product package through the product information of the product to be synchronized; and a second synchronization module 806, which is used to synchronize the product package to the service platform according to the connection status of each environment in the product development platform and the service platform.

[0095] In an exemplary embodiment, the above-mentioned device is also used to select at least one product to be synchronized in the product list; generate a product package based on the product information of the product to be synchronized; and synchronize the product package to the service platform according to the connection status of each environment in the product development platform and the service platform.

[0096] In an exemplary embodiment, the above-mentioned device is also used to obtain first verification information according to the product information, and package the product information and the first verification information to obtain the product package.

[0097] In an exemplary embodiment, the above-mentioned device is also used to synchronize the product package to the first environment in the product development platform when the first environment in the service platform is connected; and to import the product package into the second environment in the product development platform when the second environment in the service platform is not connected.

[0098] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0099] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0100] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0101] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0102] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0103] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0104] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.

[0105] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0106] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for synchronizing product information, characterized in that: Applied to a service platform, the service platform includes at least one environment, including: Acquire a product package from a product development platform, wherein the product package carries product information of at least one product to be synchronized; According to the connection status of each environment in the product development platform and the service platform, a synchronization operation is performed on the product package.

2. The method according to claim 1, characterized in that According to the connection status of each environment in the product development platform and the service platform, a synchronization operation is performed on the product package, including: When the product development platform is connected to the first environment in the service platform, synchronizing the product package to the first environment; In the case that the product development platform and the second environment in the service platform are not connected, the product package is imported into the second environment.

3. The method according to claim 2, characterized in that When the product development platform is connected to the first environment in the service platform, synchronizing the product package to the first environment includes: Parsing first verification information from the product package; When it is determined that the first verification information does not exist in the local storage, the product package is synchronized to the first environment.

4. The method according to claim 3, characterized in that After synchronizing the product package to the first environment, the method further includes: The service platform parses the product information from the product package and stores the product information persistently in the first environment.

5. The method according to claim 2, characterized in that: In the case that the product development platform and the second environment in the service platform are not connected, importing the product package into the second environment includes: Acquire the product information and first verification information from the product package; Obtain second verification information through the product information; When the first verification information is consistent with the second verification information, the product package is imported into the second environment.

6. The method according to claim 5, characterized in that After importing the product package into the second environment, the method further includes: The service platform parses the product information from the product package and stores the product information persistently in the second environment.

7. A method for synchronizing product information, characterized in that: Applied to product development platforms, including: Select at least one product to be synchronized in the product list; Generate a product package based on the product information of the product to be synchronized; According to the connection status of each environment in the product development platform and the service platform, the product package is synchronized to the service platform.

8. The method according to claim 7, characterized in that Generate a product package based on the product information of the product to be synchronized, including: First verification information is obtained according to the product information, and the product information and the first verification information are packaged to obtain the product package.

9. The method according to claim 7, characterized in that: According to the connection between the product development platform and each environment in the service platform, the product package is synchronized to the service platform, including: When the product development platform is connected to the first environment in the service platform, synchronizing the product package to the first environment; In the case that the product development platform and the second environment in the service platform are not connected, the product package is imported into the second environment.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in any one of claims 1 to 6, or to execute the method described in any one of claims 7 to 9.