Equipment information processing method and device, electronic equipment and storage medium
The adaptation and restoration of equipment information is achieved through the bidirectional hash mapping relationship, which solves the problem of irreversible equipment information adaptation, improves the scalability and flexibility of equipment information, meets the needs of different manufacturers, and reduces production and design costs.
Patent Information
- Application Number
- CN202410993262.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, the adaptation process of equipment information is irreversible, resulting in poor universality of equipment products, increasing the production and design costs of the original design manufacturer, and unable to switch to the equipment information required by other equipment manufacturers.
The two-way hash mapping relationship is used to realize the adaptation and restoration of device information. By obtaining the forward and reverse mapping relationships in the two-way hash mapping relationship, the original device information is adapted and restored, and the flexible switching of device information is supported.
It effectively realizes the scalability and flexibility of equipment information, allows the original equipment information to be adapted to the target equipment information, and restores it back to the original state when needed, meeting the adaptation needs of different manufacturers and reducing production and design costs.
Smart Images

Figure CN119066390A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a method and apparatus for processing device information, an electronic device, and a storage medium. Background Art
[0002] With the continuous development of big data, many equipment manufacturers have an urgent need for storage devices with their own brands, but they do not directly produce the equipment. Instead, original design manufacturers (ODMs) produce the equipment according to specifications and requirements, adapt the equipment information to the equipment manufacturers, and then sell it under their own brand. In this scenario, the original design manufacturer will also serve as an equipment sales manufacturer. In addition to designing and producing equipment for other equipment manufacturers, it must also take care of its own products.
[0003] In the related art, after the original design manufacturer completes the adaptation of the device information to the specified device manufacturer, the process is irreversible. The device information cannot be rolled back to the original device information associated with the original design manufacturer, nor can it be switched to the device information required by other device manufacturers, resulting in poor versatility and lack of flexibility of the device products, and increasing the production and design costs of the original design manufacturer. Summary of the invention
[0004] In view of the above problems, a method and apparatus for processing device information, an electronic device, and a storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:
[0005] A method for processing device information, the method comprising:
[0006] In response to a processing request for the first target device information, a first bidirectional hash mapping relationship between the first target manufacturer information and the first adaptation operation information is obtained; wherein the first adaptation operation information is operation information in a process of adapting the original device information to the first target device information corresponding to the first target manufacturer information;
[0007] When the processing request is to adapt the original device information to the first target device information, performing an adaptation operation on the original device information according to the forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information;
[0008] When the processing request is to restore the first target device information to the original device information, a restoration operation is performed on the first target device information according to the inverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information.
[0009] Optionally, the method further comprises:
[0010] When the processing request is to switch the first target device information to the second target device information, obtaining a second bidirectional hash mapping relationship between the first target manufacturer information and the second target manufacturer information corresponding to the second target device information;
[0011] Determine the second target manufacturer information according to the first target manufacturer information and the second bidirectional hash mapping relationship;
[0012] Acquire a third bidirectional hash mapping relationship between the second target manufacturer information and the second adaptation operation information; wherein the second adaptation operation information is operation information in the process of adapting the original device information to the second target device information;
[0013] Performing a restoration operation on the first target device information according to the inverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information;
[0014] An adaptation operation is performed on the original device information according to the forward mapping relationship in the third bidirectional hash mapping relationship to obtain the second target device information.
[0015] Optionally, before obtaining a first bidirectional hash mapping relationship between the first target manufacturer information and the first adaptation operation information in response to the device information processing request, the method further includes:
[0016] Constructing a fourth bidirectional hash mapping relationship between all manufacturer information; wherein the original manufacturer information corresponding to the original device information, the first target manufacturer information, and the second target manufacturer information are included in the all manufacturer information, and the second bidirectional hash mapping relationship is included in the fourth bidirectional hash mapping relationship;
[0017] Construct a fifth bidirectional hash mapping relationship between each manufacturer information in all the manufacturer information and the third adaptation operation information; wherein the first adaptation operation information and the second adaptation operation information are included in the third adaptation operation information, and the first bidirectional hash mapping relationship and the third bidirectional hash mapping relationship are included in the fifth bidirectional hash mapping relationship.
[0018] Optionally, the method further comprises:
[0019] In response to a product information adding event, determining third target manufacturer information corresponding to the product information;
[0020] Construct a sixth bidirectional hash mapping relationship among the third target manufacturer information, the product information and the fourth adaptation operation information; wherein the fourth adaptation operation information is the operation information in the process of adapting the original device information to the third target device information corresponding to the product information.
[0021] Optionally, the method further comprises:
[0022] In response to an event of adding fourth target manufacturer information, updating the fourth bidirectional hash mapping relationship according to the fourth target manufacturer information;
[0023] Construct a seventh bidirectional hash mapping relationship between the fourth target manufacturer information and the fifth adaptation operation information; wherein the fifth adaptation operation information is operation information in the process of adapting the original device information to the fourth target device information corresponding to the fourth target manufacturer information.
[0024] Optionally, after constructing a fifth bidirectional hash mapping relationship between each vendor information in all the vendor information and the third adaptation operation information, the method further includes:
[0025] A data model is constructed according to the fourth bidirectional hash mapping relationship and the fifth bidirectional hash mapping relationship; wherein each of the manufacturer information among all the manufacturer information serves as a main node of the data model, and the third adaptation operation information serves as an extended node of the main node.
[0026] Optionally, the third adaptation operation information includes one or more of the following:
[0027] Change the manufacturer logo image, change the device prompt, change the device certificate, adapt the device version number, and change the device algorithm model.
[0028] A device for processing device information, the device comprising:
[0029] A first bidirectional hash mapping relationship acquisition module is used to obtain a first bidirectional hash mapping relationship between first target manufacturer information and first adaptation operation information in response to a device information processing request; wherein the first adaptation operation information is operation information in a process of adapting original device information to first target device information corresponding to the first target manufacturer information;
[0030] an adaptation module, configured to, when the processing request is to adapt the original device information to the first target device information, perform an adaptation operation on the original device information according to a forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information;
[0031] A restoration module is used to perform a restoration operation on the first target device information according to a reverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information when the processing request is to restore the first target device information to the original device information.
[0032] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned method for processing device information when executed by the processor.
[0033] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing device information as described above is implemented.
[0034] The embodiments of the present invention have the following advantages: through the embodiments of the present invention, when the processing request is to adapt the original device information to the first target device information, the adaptation operation is performed on the original device information according to the forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information; when the processing request is to restore the first target device information to the original device information, the restoration operation is performed on the first target device information according to the reverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information, which effectively realizes the adaptation or restoration of the original device information to the manufacturer information and improves the scalability and flexibility of the device information. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0036] Figure 1 is a flowchart of a method for processing device information provided by an embodiment of the present invention;
[0037] Figure 2 This is a schematic diagram of information mapping relationship during device information restoration or adaptation provided by an embodiment of the present invention;
[0038] Figure 3 This is a schematic diagram of information mapping relationship when switching device information provided by an embodiment of the present invention;
[0039] Figure 4 This is a data model architecture diagram of device information provided by an embodiment of the present invention;
[0040] Figure 5 This is a schematic diagram of information mapping relationship when adding product information provided by an embodiment of the present invention;
[0041] Figure 6 This is a schematic diagram of information mapping relationship when adding manufacturer information provided by an embodiment of the present invention;
[0042] Figure 7 It is a structural block diagram of a device information processing apparatus provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] Reference Figure 1 , shows a flowchart of a method for processing device information provided by an embodiment of the present invention, which may specifically include the following steps:
[0045] Step 101, in response to a processing request for first target device information, obtaining a first bidirectional hash mapping relationship between first target manufacturer information and first adaptation operation information; wherein the first adaptation operation information is operation information in a process of adapting original device information to the first target device information corresponding to the first target manufacturer information;
[0046] In step 101, the original device information may be device information corresponding to the original device designed and produced by the ODM;
[0047] The processing request for the first target device information may be a request to adapt the original device information to the first target device information, or a request to restore the adapted first target device information to the original device information, etc.;
[0048] The first target manufacturer information is related information of the first target manufacturer, such as manufacturer name, address, etc. The first target manufacturer may be a device manufacturer that sells adapted original devices.
[0049] The first adaptation operation information is the operation information in the process of adapting the original device information to the first target device information corresponding to the first target manufacturer information. Each first adaptation operation information may include a pair of forward adaptation operation information and reverse restoration operation information. For example, the forward adaptation operation information may be: replacing the manufacturer LOGO image in the original device information with the LOGO image of the first target manufacturer, replacing the device name in the original device information with the device name defined by the first target manufacturer, replacing the certificate in the original device information with the certificate of the first target manufacturer, etc.; then the reverse restoration operation information corresponding to the above forward adaptation operation information may be: replacing the LOGO image of the first target manufacturer in the first target device information with the manufacturer LOGO image in the original device information, replacing the device name defined by the first target manufacturer in the first target device information with the device name in the original device information, replacing the certificate of the first target manufacturer in the first target device information with the certificate in the original device information, etc.
[0050] A bidirectional hash mapping relationship is a mapping relationship represented by a bidirectional hash table. In the first bidirectional hash mapping relationship, the first target manufacturer information and one or more first adaptation operation information are regarded as multiple nodes, each node is associated with the previous node and the next node respectively, and the multiple nodes form a bidirectional mapping relationship in sequence, including a forward mapping relationship and a reverse mapping relationship, wherein the forward mapping relationship represents the adaptation operation in the process of adapting the original device information to the first target device information corresponding to the first manufacturer information, and the reverse mapping relationship represents the adaptation and restoration operation of restoring the first target device information to the original device information.
[0051] In a specific implementation, the first bidirectional hash mapping relationship can be as follows Figure 2 As shown, in the first bidirectional hash mapping relationship, manufacturer B represents the first target manufacturer information and is the first node in the first bidirectional hash mapping relationship. The next node of manufacturer B is operation A, the next node of operation A is operation B, the next node of operation B is operation C, the next node of operation C is operation D, and operation D is the last node in the first bidirectional hash mapping relationship. Operation A, operation B, operation C, and operation D represent the first adaptation operation information, which includes paired forward adaptation operation information and reverse restoration operation information. The mapping relationship from manufacturer A to operation D is a forward mapping relationship, which means that the original device information is adapted to the first target adaptation information through the forward adaptation operation information corresponding to operation A to operation D in turn; the mapping relationship from operation D to manufacturer A is a reverse mapping relationship, which means that the first target adaptation information is restored to the original device information through the reverse restoration operation information corresponding to operation D to operation A in turn.
[0052] Step 102: when the processing request is to adapt the original device information to the first target device information, perform an adaptation operation on the original device information according to the forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information;
[0053] In a specific implementation, since the forward mapping relationship in the first bidirectional hash mapping relationship defines the adaptation operation in the process of adapting the original device information to the first target device information corresponding to the first manufacturer information, the first target device information can be obtained by performing the adaptation operation on the original device information according to the forward mapping relationship.
[0054] Step 103: When the processing request is to restore the first target device information to the original device information, a restoration operation is performed on the first target device information according to the inverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information.
[0055] In a specific implementation, since the inverse mapping relationship in the first bidirectional hash mapping relationship defines an adaptation restoration operation for restoring the first target device information to the original device information, the original device information can be obtained by performing a restoration operation on the first target device information according to the inverse mapping relationship.
[0056] In some embodiments of the present invention, the method further comprises:
[0057] When the processing request is to switch the first target device information to the second target device information, obtaining a second bidirectional hash mapping relationship between the first target manufacturer information and the second target manufacturer information corresponding to the second target device information;
[0058] Determine the second target manufacturer information according to the first target manufacturer information and the second bidirectional hash mapping relationship;
[0059] The second target manufacturer information is other manufacturer-related information different from the manufacturer corresponding to the first target manufacturer information. In the second bidirectional hash mapping relationship, the first target manufacturer information and the second target device information are mutually associated, and the first target manufacturer information can be used to determine its associated second target manufacturer information according to the second bidirectional hash mapping relationship.
[0060] In the specific implementation, Figure 3 As shown, manufacturer B represents the first target manufacturer information, and manufacturer A represents the second target manufacturer information. In the second bidirectional hash mapping relationship, manufacturer A is associated with the next node manufacturer B, and manufacturer B is associated with the previous node manufacturer A.
[0061] Acquire a third bidirectional hash mapping relationship between the second target manufacturer information and the second adaptation operation information; wherein the second adaptation operation information is operation information in the process of adapting the original device information to the second target device information;
[0062] The third bidirectional hash mapping is similar to the first bidirectional hash mapping, and the second adaptation operation information is similar to the first adaptation operation information, which will not be repeated here.
[0063] Performing a restoration operation on the first target device information according to the inverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information;
[0064] An adaptation operation is performed on the original device information according to the forward mapping relationship in the third bidirectional hash mapping relationship to obtain the second target device information.
[0065] In the specific implementation, Figure 3 As shown, manufacturer A represents the second target manufacturer information, manufacturer B represents the first target manufacturer information, manufacturer B and operation AD form a first bidirectional hash mapping relationship, manufacturer A and operation AC form a third bidirectional hash mapping relationship, and through the reverse mapping relationship in the first bidirectional hash mapping relationship, the first target device information is restored to the original device information through the reverse restoration operation information corresponding to operation DA.
[0066] Furthermore, through the forward mapping relationship in the third bidirectional hash mapping relationship corresponding to manufacturer A, the original device information is adapted to the second target device information by operating the forward adaptation operation information corresponding to AC in turn, thereby achieving flexible switching between device information and improving the switching efficiency of device information, which can timely meet the adaptation requirements of different manufacturers for device information.
[0067] Similarly, the same applies to switching the second target device information to the first target device information.
[0068] In some embodiments of the present invention, before obtaining the first bidirectional hash mapping relationship between the first target manufacturer information and the first adaptation operation information in response to the device information processing request, the method further includes:
[0069] Constructing a fourth bidirectional hash mapping relationship between all manufacturer information; wherein the original manufacturer information corresponding to the original device information, the first target manufacturer information, and the second target manufacturer information are included in the all manufacturer information, and the second bidirectional hash mapping relationship is included in the fourth bidirectional hash mapping relationship;
[0070] In this embodiment, the original manufacturer information may be the manufacturer information corresponding to the ODM. The fourth bidirectional hash mapping relationship is similar to the second bidirectional hash information mapping relationship, and will not be described in detail here.
[0071] In the specific implementation, Figure 4 As shown, all manufacturer information includes the original manufacturer (ie, ODM), manufacturer A, manufacturer B, and manufacturer C. A fourth bidirectional hash mapping relationship is constructed through all the above manufacturer information, wherein manufacturer B is the first target manufacturer information, manufacturer A is the second target manufacturer information, and the second bidirectional hash information mapping relationship corresponding to manufacturer B and manufacturer A is included in the fourth bidirectional hash mapping relationship.
[0072] Construct a fifth bidirectional hash mapping relationship between each manufacturer information in all the manufacturer information and the third adaptation operation information; wherein the first adaptation operation information and the second adaptation operation information are included in the third adaptation operation information, and the first bidirectional hash mapping relationship and the third bidirectional hash mapping relationship are included in the fifth bidirectional hash mapping relationship.
[0073] In this embodiment, the fourth bidirectional hash mapping relationship is similar to the first bidirectional hash information mapping relationship, and the third adaptation operation information is similar to the first adaptation operation information, which will not be repeated here.
[0074] In the specific implementation, Figure 4 As shown, the original manufacturer can be regarded as a special manufacturer, and the operation AC corresponding to the original manufacturer can represent the operation information corresponding to the adaptation operation performed by the original manufacturer (ODM) on the original device information according to its own manufacturer information. Figure 4 In the figure, the original manufacturer and operation AC, manufacturer A and operation AC, manufacturer B and operation AD, and manufacturer C and operation AB all represent the fifth bidirectional hash mapping relationship. Among them, the first bidirectional hash mapping relationship formed by manufacturer B and operation AD and the third bidirectional hash mapping relationship formed by manufacturer A and operation AC are included in the fifth bidirectional hash mapping relationship.
[0075] In this embodiment, through the pre-constructed fourth bidirectional hash information mapping relationship and fifth bidirectional hash mapping relationship, flexible adaptation, restoration, and switching operations can be performed on any manufacturer information among all manufacturer information, thereby improving the scalability of device information.
[0076] In some embodiments of the present invention, the third adaptation operation information includes one or more of the following:
[0077] Change the manufacturer logo image, change the device prompt, change the device certificate, adapt the device version number, and change the device algorithm model.
[0078] In this embodiment, replacing the manufacturer identification image means replacing the manufacturer LOGO in the device information. Each manufacturer has its own LOGO image, and the image needs to be replaced according to the corresponding manufacturer. For example, in the forward adaptation operation, the original manufacturer LOGO image and the page display LOGO image in the original device information are replaced with the LOGO image of the adapted manufacturer; in the reverse restoration operation, it is the reverse process of the above operation.
[0079] Replacing the device prompt means replacing the cluster name, product model and other information in the device information. The prompts of different manufacturers' devices are generally different, and key texts need to be replaced. Most of this information is in static files and contains different languages. For example, during the forward adaptation operation, the description information and copyright information in the device prompt are replaced with the description information and copyright information of the adaptation manufacturer; during the reverse restoration operation, it is the reverse process of the above operation.
[0080] Replacing the device certificate means replacing the certificate in the device information. The device certificate generally contains the basic information of the manufacturer and cannot be universal, so it needs to be preset and dynamically generated for different manufacturers. For example, during the forward adaptation operation, the preset certificate and dynamically generated certificate in the original device information are replaced with the preset certificate and dynamically generated certificate of the adaptation manufacturer; during the reverse restoration operation, it is the reverse process of the above operation.
[0081] Adapting the device version number means adapting the device version number in the device information. For example, in a forward adaptation operation, the version number in the original device information is replaced with the device version number defined by the adaptation manufacturer; in a reverse restoration operation, it is the reverse process of the above operation.
[0082] Replacing the device algorithm model means that when some manufacturers have special requirements for a single function, the corresponding algorithm needs to be adapted. For example, in the forward adaptation operation, the algorithm model in the original device information is replaced with the algorithm model of the adaptation manufacturer; in the reverse restoration operation, it is the reverse process of the above operation.
[0083] In some embodiments of the present invention, after constructing a fifth bidirectional hash mapping relationship between each vendor information in all the vendor information and the third adaptation operation information, the method further includes:
[0084] A data model is constructed according to the fourth bidirectional hash mapping relationship and the fifth bidirectional hash mapping relationship; wherein each of the manufacturer information among all the manufacturer information serves as a main node of the data model, and the third adaptation operation information serves as an extended node of the main node.
[0085] In this embodiment, after constructing the fourth bidirectional hash mapping relationship and the fifth bidirectional hash mapping relationship, a corresponding data model may be further constructed, and the efficiency of adaptation, restoration, and switching of device information may be further improved through the data model.
[0086] In the specific implementation, Figure 4 As shown, the original manufacturer, manufacturer A, manufacturer B, and manufacturer C are the main nodes, the operation AC corresponding to the original manufacturer is the extension node corresponding to the original manufacturer as the main node, the operation AC corresponding to manufacturer A is the extension node corresponding to manufacturer A as the main node, and so on.
[0087] In practical applications, the master node may include the following information: information pointing to the previous manufacturer information master node and information pointing to the next manufacturer information master node in the fourth bidirectional hash mapping relationship, its own manufacturer information, and information pointing to the first extended node in the fifth bidirectional hash mapping relationship. The extended node may include the following information: information pointing to the previous adaptation operation information and information pointing to the next adaptation operation information in the fifth bidirectional hash mapping relationship, its own adaptation operation information, including forward adaptation operation information and reverse restoration operation information. Among them, the first extended node also includes information pointing to the master node.
[0088] In some embodiments of the present invention, the method further comprises:
[0089] In response to a product information adding event, determining third target manufacturer information corresponding to the product information;
[0090] Construct a sixth bidirectional hash mapping relationship among the third target manufacturer information, the product information and the fourth adaptation operation information; wherein the fourth adaptation operation information is the operation information in the process of adapting the original device information to the third target device information corresponding to the product information.
[0091] In this embodiment, when a manufacturer needs to adapt device information for its different product models, a sixth bidirectional hash mapping relationship of the third target manufacturer information, product information and fourth adaptation operation information can be constructed. Each sixth bidirectional hash mapping relationship also includes a forward mapping relationship and a reverse mapping relationship to adapt, restore or switch the device information according to the product information.
[0092] In the specific implementation, Figure 5 As shown, let manufacturer B represent the third target manufacturer information, which corresponds to three types of product information: product A, product B, and product C. In the sixth bidirectional hash mapping relationship, manufacturer B is the first node, the next node of manufacturer B is product A, the next node of product A is operation A, and so on.
[0093] In actual applications, when it is necessary to add product information corresponding to the manufacturer, in the data model constructed in the above steps, a secondary node corresponding to the product information can be introduced between the main node and the extended node, and a sixth bidirectional hash mapping relationship can be introduced to further expand the data model. Figure 6 As shown, product A, product B, and product C are secondary nodes, and manufacturer B and each fourth adaptation operation information adapted to product information form a tree structure. At this time, the main node includes information pointing to the previous manufacturer information main node and the next manufacturer information main node in the fourth bidirectional hash mapping relationship, its own manufacturer information, and information pointing to the first extension node in the fifth bidirectional hash mapping relationship, and can also include information pointing to the next secondary node.
[0094] In actual applications, when it is necessary to add product information corresponding to a manufacturer and to distinguish products corresponding to different sub-brands of the manufacturer, in the data model constructed in the above steps, an intermediate node of sub-brand information can be added between the main node of manufacturer information and the secondary node of product information. One manufacturer information corresponds to different sub-brand information, and each sub-brand information corresponds to multiple product information. Then, the device information is adapted, restored, or switched according to the product information of different sub-brands of the manufacturer, thereby effectively improving the availability and scalability of the device information.
[0095] In some embodiments of the present invention, the method further comprises:
[0096] In response to an event of adding fourth target manufacturer information, updating the fourth bidirectional hash mapping relationship according to the fourth target manufacturer information;
[0097] Construct a seventh bidirectional hash mapping relationship between the fourth target manufacturer information and the fifth adaptation operation information; wherein the fifth adaptation operation information is operation information in the process of adapting the original device information to the fourth target device information corresponding to the fourth target manufacturer information.
[0098] In this embodiment, the seventh bidirectional hash mapping relationship is similar to the first bidirectional hash mapping relationship type, and the fifth adaptation operation information is similar to the first adaptation operation information, which will not be repeated here. By updating the fourth bidirectional hash mapping relationship according to the fourth target manufacturer information, the newly constructed seventh bidirectional hash mapping relationship and the original fifth bidirectional hash mapping relationship do not affect each other. Under the premise of not affecting the original mapping relationship, the expansion of the manufacturer information becomes extremely simple, which effectively improves the scalability of adapting, restoring, and switching the device information.
[0099] In the specific implementation, Figure 6As shown, manufacturer D represents the fourth target manufacturer information. After manufacturer D is added, manufacturer D and the original manufacturer, manufacturer B, and manufacturer C form an updated fourth bidirectional hash mapping relationship, and manufacturer D and the corresponding operations AC form a seventh bidirectional hash mapping relationship.
[0100] In actual applications, when new manufacturer information needs to be added, a master node can also be added to the data model constructed in the above steps, and the fourth bidirectional hash mapping relationship between the master nodes can be updated, and the fifth adaptation operation information can be used as the extended node of the newly added master node. The newly added master node and the corresponding extended node constitute the seventh bidirectional hash mapping relationship.
[0101] The embodiments of the present invention have the following advantages: through the embodiments of the present invention, when the processing request is to adapt the original device information to the first target device information, the adaptation operation is performed on the original device information according to the forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information; when the processing request is to restore the first target device information to the original device information, the restoration operation is performed on the first target device information according to the reverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information, which effectively realizes the adaptation or restoration of the original device information to the manufacturer information and improves the scalability and flexibility of the device information.
[0102] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0103] Reference Figure 7 , shows a schematic diagram of the structure of a device information processing apparatus provided by an embodiment of the present invention, which may specifically include the following modules:
[0104] A first bidirectional hash mapping relationship acquisition module 701 is used to obtain a first bidirectional hash mapping relationship between first target manufacturer information and first adaptation operation information in response to a device information processing request; wherein the first adaptation operation information is operation information in a process of adapting original device information to first target device information corresponding to the first target manufacturer information;
[0105] The adaptation module 702 is used for performing an adaptation operation on the original device information according to the forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information when the processing request is to adapt the original device information to the first target device information;
[0106] The restoration module 703 is used to perform a restoration operation on the first target device information according to the inverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information when the processing request is to restore the first target device information to the original device information.
[0107] In some embodiments of the present invention, the device further comprises:
[0108] a switching response module, configured to obtain a second bidirectional hash mapping relationship between the first target manufacturer information and the second target manufacturer information corresponding to the second target device information when the processing request is to switch the first target device information to the second target device information;
[0109] A second target manufacturer information determination module, configured to determine the second target manufacturer information according to the first target manufacturer information and the second bidirectional hash mapping relationship;
[0110] A third bidirectional hash mapping relationship acquisition module, used to acquire a third bidirectional hash mapping relationship between the second target manufacturer information and the second adaptation operation information; wherein the second adaptation operation information is operation information in the process of adapting the original device information to the second target device information;
[0111] a second restoration module, configured to perform a restoration operation on the first target device information according to a reverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information;
[0112] The second adaptation module is used to perform an adaptation operation on the original device information according to the forward mapping relationship in the third bidirectional hash mapping relationship to obtain the second target device information.
[0113] In some embodiments of the present invention, the device further comprises:
[0114] a fourth bidirectional hash mapping relationship construction module, used to construct a fourth bidirectional hash mapping relationship between all manufacturer information; wherein the original manufacturer information corresponding to the original device information, the first target manufacturer information and the second target manufacturer information are included in the all manufacturer information, and the second bidirectional hash mapping relationship is included in the fourth bidirectional hash mapping relationship;
[0115] A fifth bidirectional hash mapping relationship construction module is used to construct a fifth bidirectional hash mapping relationship between each manufacturer information in all the manufacturer information and the third adaptation operation information; wherein the first adaptation operation information and the second adaptation operation information are included in the third adaptation operation information, and the first bidirectional hash mapping relationship and the third bidirectional hash mapping relationship are included in the fifth bidirectional hash mapping relationship.
[0116] In some embodiments of the present invention, the device further comprises:
[0117] A third target manufacturer information determination module, configured to determine the third target manufacturer information corresponding to the product information in response to a product information adding event;
[0118] The sixth bidirectional hash mapping relationship construction module is used to construct the sixth bidirectional hash mapping relationship among the third target manufacturer information, the product information and the fourth adaptation operation information; wherein the fourth adaptation operation information is the operation information in the process of adapting the original device information to the third target device information corresponding to the product information.
[0119] In some embodiments of the present invention, the device further comprises:
[0120] a fourth bidirectional hash mapping relationship updating module, configured to update the fourth bidirectional hash mapping relationship according to the fourth target manufacturer information in response to an event of adding the fourth target manufacturer information;
[0121] The seventh bidirectional hash mapping relationship construction module is used to construct the seventh bidirectional hash mapping relationship between the fourth target manufacturer information and the fifth adaptation operation information; wherein the fifth adaptation operation information is the operation information in the process of adapting the original device information to the fourth target device information corresponding to the fourth target manufacturer information.
[0122] In some embodiments of the present invention, the device further comprises:
[0123] A data model construction module is used to construct a data model based on the fourth bidirectional hash mapping relationship and the fifth bidirectional hash mapping relationship; wherein each manufacturer information among all the manufacturer information serves as the main node of the data model, and the third adaptation operation information serves as an extended node of the main node.
[0124] Some embodiments of the present invention further provide an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program implements the above device information processing method when executed by the processor.
[0125] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for processing device information as described above is implemented.
[0126] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above device information processing method when executed by a processor.
[0127] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0129] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0130] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0131] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0135] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.
[0136] The above describes in detail the device information processing method and apparatus, electronic device, and storage medium provided. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for processing device information, characterized in that: The method comprises: In response to a processing request for the first target device information, a first bidirectional hash mapping relationship between the first target manufacturer information and the first adaptation operation information is obtained; wherein the first adaptation operation information is operation information in a process of adapting the original device information to the first target device information corresponding to the first target manufacturer information; When the processing request is to adapt the original device information to the first target device information, performing an adaptation operation on the original device information according to the forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information; When the processing request is to restore the first target device information to the original device information, a restoration operation is performed on the first target device information according to the inverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information.
2. The method according to claim 1, characterized in that The method further comprises: When the processing request is to switch the first target device information to the second target device information, obtaining a second bidirectional hash mapping relationship between the first target manufacturer information and the second target manufacturer information corresponding to the second target device information; Determine the second target manufacturer information according to the first target manufacturer information and the second bidirectional hash mapping relationship; Acquire a third bidirectional hash mapping relationship between the second target manufacturer information and the second adaptation operation information; wherein the second adaptation operation information is operation information in the process of adapting the original device information to the second target device information; Performing a restoration operation on the first target device information according to the inverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information; An adaptation operation is performed on the original device information according to the forward mapping relationship in the third bidirectional hash mapping relationship to obtain the second target device information.
3. The method according to claim 2, characterized in that Before obtaining the first bidirectional hash mapping relationship between the first target manufacturer information and the first adaptation operation information in response to the processing request of the device information, the method further includes: Constructing a fourth bidirectional hash mapping relationship between all manufacturer information; wherein the original manufacturer information corresponding to the original device information, the first target manufacturer information, and the second target manufacturer information are included in the all manufacturer information, and the second bidirectional hash mapping relationship is included in the fourth bidirectional hash mapping relationship; Construct a fifth bidirectional hash mapping relationship between each manufacturer information in all the manufacturer information and the third adaptation operation information; wherein the first adaptation operation information and the second adaptation operation information are included in the third adaptation operation information, and the first bidirectional hash mapping relationship and the third bidirectional hash mapping relationship are included in the fifth bidirectional hash mapping relationship.
4. The method according to claim 3, characterized in that The method further comprises: In response to a product information adding event, determining third target manufacturer information corresponding to the product information; Construct a sixth bidirectional hash mapping relationship among the third target manufacturer information, the product information and the fourth adaptation operation information; wherein the fourth adaptation operation information is the operation information in the process of adapting the original device information to the third target device information corresponding to the product information.
5. The method according to claim 3, characterized in that: The method further comprises: In response to an event of adding fourth target manufacturer information, updating the fourth bidirectional hash mapping relationship according to the fourth target manufacturer information; Construct a seventh bidirectional hash mapping relationship between the fourth target manufacturer information and the fifth adaptation operation information; wherein the fifth adaptation operation information is operation information in the process of adapting the original device information to the fourth target device information corresponding to the fourth target manufacturer information.
6. The method according to claim 3, characterized in that: After constructing a fifth bidirectional hash mapping relationship between each vendor information in all the vendor information and the third adaptation operation information, the method further includes: A data model is constructed according to the fourth bidirectional hash mapping relationship and the fifth bidirectional hash mapping relationship; wherein each of the manufacturer information among all the manufacturer information serves as a main node of the data model, and the third adaptation operation information serves as an extended node of the main node.
7. The method according to claim 3, characterized in that The third adaptation operation information includes one or more of the following: Change the manufacturer logo image, change the device prompt, change the device certificate, adapt the device version number, and change the device algorithm model.
8. A device for processing device information, characterized in that: The device comprises: A first bidirectional hash mapping relationship acquisition module is used to obtain a first bidirectional hash mapping relationship between first target manufacturer information and first adaptation operation information in response to a device information processing request; wherein the first adaptation operation information is operation information in a process of adapting original device information to first target device information corresponding to the first target manufacturer information; an adaptation module, configured to, when the processing request is to adapt the original device information to the first target device information, perform an adaptation operation on the original device information according to a forward mapping relationship in the first bidirectional hash mapping relationship to obtain the first target device information; A restoration module is used to perform a restoration operation on the first target device information according to a reverse mapping relationship in the first bidirectional hash mapping relationship to obtain the original device information when the processing request is to restore the first target device information to the original device information.
9. An electronic device, characterized in that: The device comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the device information processing method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing device information according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Order accessing method, system, computer equipment and storage medium
CA3130001A1
Equipment information acquisition method and device
CN107517113A
Equipment for switching operator brand information of mobile terminal equipment
CN109766135A
Data distribution method and device, electronic equipment and storage medium
CN113918342A
Double mapping method for on-chain representation and off-chain security edge storage of medical image
CN114372294A
