Product configuration management methods, systems, and devices for IoT platforms
By integrating functional information and location information into the IoT platform for synchronized configuration, the problem of cumbersome location configuration for Modbus devices is solved, achieving efficient and intuitive configuration management, and improving user experience and platform efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI YIDASHAN INFORMATION TECHNOLOGY CO LTD
- Filing Date
- 2023-04-27
- Publication Date
- 2026-05-26
AI Technical Summary
In the existing technology, the point configuration operation process of Modbus equipment products is cumbersome. Users need to open the parent page one by one to configure, which leads to low efficiency and difficulty in verifying that the configuration information is consistent with the manufacturer's instructions.
An IoT platform provides a display page with a first and second display area displayed in a tiled manner. These areas are used to configure and display product function information and location information, respectively. The function information and location information are linked and synchronized through operation commands, and alarm information is generated to indicate configuration errors.
It simplifies the configuration process, improves user experience and configuration efficiency, avoids errors in location information configuration, and enhances the management and usage efficiency of the IoT platform.
Smart Images

Figure CN116450971B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer software technology, and more specifically, to a product configuration management method, system, and device for an Internet of Things (IoT) platform. Background Technology
[0002] An IoT platform is an integrated platform that combines device management, secure data communication, and message subscription capabilities. The platform supports connections to a massive number of devices, collecting device data and transmitting it to the cloud. When connecting RTU (Remote Terminal Unit) devices that support the Modbus-RTU access protocol to the IoT platform, it is necessary to configure the location information of these devices, such as offset and register type.
[0003] In existing related technologies, when configuring points for the aforementioned Modbus devices, it is usually necessary to first open the parent page before configuring the point information for each data entry; for example, opening a data entry with the function type "attribute" and then configuring the specified attribute points in an "extended description" section on a subpage. This configuration process is rather cumbersome for users.
[0004] On the other hand, after configuring the device's location information, users need to verify the offset and other configuration information against the data in the device manufacturer's manual. If users have to click on the parent page one by one to view these information, it will cause inconvenience for users and low work efficiency.
[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] To address the problems in the existing technology, the purpose of this invention is to provide a product configuration management method, system, and device for an Internet of Things (IoT) platform. This eliminates the need for users to open parent pages one by one when configuring the location information of Modbus devices, thus improving the user experience and increasing the efficiency of users in configuring products and devices.
[0007] To achieve the above objectives, the present invention provides a product configuration management method for an Internet of Things (IoT) platform, the method comprising the following steps:
[0008] S110 provides a display page on an IoT platform; the display page includes a first display area and a second display area displayed in a flat layout; the first display area is used to configure and display product function information; the second display area is used to configure and display the location information corresponding to each of the function information.
[0009] S120, receive a first operation instruction from the user regarding the functional information of the first display area;
[0010] S130, according to the first operation instruction, configure the product function information located in the first display area; and synchronously configure the location information located in the second display area; the location information includes an offset; and
[0011] S140, in the second display area after synchronization configuration, when two rows of data are detected to have the same offset, an alarm message about the two rows of data is generated and displayed to the user.
[0012] Optionally, step S130 includes:
[0013] According to the first operation instruction, a new target function information has been detected in the first display area;
[0014] Extract the function name from the target function information;
[0015] The offset corresponding to the function name is obtained from a preset file library; the preset file library stores offsets corresponding to different function names provided by the product manufacturer.
[0016] The point information located in the second display area is synchronously configured according to the offset.
[0017] Optionally, step S140 includes:
[0018] Receive the user's second operation command for the second display area;
[0019] When a user's modification of the offset is detected according to the second operation instruction, it is determined whether there are two rows of data with the same offset in the second display area;
[0020] If they exist, an alarm message about the two rows of data will be generated and displayed to the user.
[0021] Optionally, generating and displaying alarm information about the two rows of data to the user includes:
[0022] The two rows of data are labeled and displayed in a preset format.
[0023] Optionally, step S110 includes:
[0024] Obtain all functional information generated by the configuration in the first display area, and all point information corresponding to each functional information in the second display area;
[0025] Based on the functional information and the location information, a preset functional location sequence is generated;
[0026] Based on the preset functional point order and each row of data in the second display area, a first tree structure is formed with functional information as the root node.
[0027] Step S130 includes:
[0028] The first operation instruction was detected as being used to operate on the target function information;
[0029] Determine whether there is a subtree structure in the first tree structure with the target functional information as the root node;
[0030] If it does not exist, a new leaf node matching the target function information is added to the first tree structure.
[0031] Optionally, step S130 further includes:
[0032] If it exists, then obtain the subtree structure with the target function information as the root node;
[0033] According to the first operation instruction, the leaf nodes of the subtree structure are modified.
[0034] Optionally, step S130 further includes:
[0035] Based on the preset functional point order, a subtree structure with the target functional information as the root node is generated;
[0036] Based on the corresponding product model and preset file library, obtain the values of each leaf node in the subtree structure and fill them into the subtree structure.
[0037] Optionally, the preset function point sequence includes function information, function information values, input / output parameters, identifiers, parameter names, register types, and offsets; the register type is a coil register or a holding register; and the function information values are attributes, services, or events.
[0038] The present invention also provides a product configuration management system for an Internet of Things (IoT) platform, for implementing the above-described product configuration management method for an IoT platform, the system comprising:
[0039] The display page provides a module that provides a display page on the Internet of Things platform; the display page includes a first display area and a second display area that are displayed in a tiled manner; the first display area is used to configure and display product function information; the second display area is used to configure and display the location information corresponding to each of the function information;
[0040] The first operation instruction receiving module receives a first operation instruction from the user regarding the functional information of the first display area.
[0041] The location information configuration module configures product function information located in the first display area according to the first operation instruction; and synchronously configures location information located in the second display area; the location information includes offset; and
[0042] The offset detection module, in the second display area after synchronization configuration, generates alarm information about the two rows of data when it detects that two rows of data have the same offset and displays it to the user.
[0043] The present invention also provides a product configuration management device for an Internet of Things (IoT) platform, comprising:
[0044] processor;
[0045] A memory in which an executable program of the processor is stored;
[0046] The processor is configured to execute any of the steps of the above-described product configuration management method for an IoT platform by executing the executable program.
[0047] The present invention also provides a computer-readable storage medium for storing a program, which, when executed by a processor, implements the steps of any of the above-described product configuration management methods for an Internet of Things platform.
[0048] Compared with the prior art, the present invention has the following advantages and outstanding effects:
[0049] The product configuration management method, system, and device for IoT platforms provided by this invention are designed for devices that support the Modbus-RTU access protocol. To meet their configuration point information needs, the IoT platform integrates the linked and synchronous configuration of product function information and point information on a single page. This eliminates the need for users to manually configure point information one by one after configuring product function information, reducing the management complexity of the IoT platform and improving the efficiency of product configuration on the platform.
[0050] On the other hand, the location information of all functions is displayed in a flat manner, which makes it easy for users to verify the information provided by the product equipment manufacturer; and a prompt is given for two rows of data with the same offset. Since the offset cannot be the same, there must be a configuration error in the two rows of data. This can avoid the occurrence of users configuring the offset incorrectly and help improve the user experience. Attached Figure Description
[0051] Other features, objects, and advantages of the invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings.
[0052] Figure 1 This is a schematic diagram of a product configuration management method for an Internet of Things (IoT) platform disclosed in an embodiment of the present invention;
[0053] Figure 2 This is a partial schematic diagram of a display page disclosed in an embodiment of the present invention;
[0054] Figure 3 This is a schematic diagram of a product configuration management method for an Internet of Things (IoT) platform disclosed in another embodiment of the present invention;
[0055] Figure 4 This is a schematic diagram of a product configuration management method for an Internet of Things (IoT) platform disclosed in another embodiment of the present invention;
[0056] Figure 5 This is a schematic diagram of a product configuration management method for an Internet of Things (IoT) platform disclosed in another embodiment of the present invention;
[0057] Figure 6 This is a schematic diagram of a first tree structure disclosed in an embodiment of the present invention;
[0058] Figure 7 This is a schematic diagram of a product configuration management method for an Internet of Things (IoT) platform disclosed in another embodiment of the present invention;
[0059] Figure 8 This is a schematic diagram of a product configuration management system for an Internet of Things (IoT) platform disclosed in an embodiment of the present invention;
[0060] Figure 9 This is a schematic diagram of the structure of a product configuration management device for an Internet of Things (IoT) platform, as disclosed in an embodiment of the present invention. Detailed Implementation
[0061] The following specific examples illustrate the implementation methods of this application. Those skilled in the art can easily understand the other advantages and effects of this application from the content disclosed herein. This application can also be implemented or applied through other different specific embodiments, and various details in this application can be modified or changed according to different viewpoints and application systems without departing from the spirit of this application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.
[0062] The embodiments of this application will now be described in detail with reference to the accompanying drawings, so that those skilled in the art can easily implement the application. This application may be embodied in many different forms and is not limited to the embodiments described herein.
[0063] In this application, the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics represented in connection with that embodiment or example, which are included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics represented may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate different embodiments or examples represented in this application, as well as features of different embodiments or examples.
[0064] Furthermore, the terms "first" and "second" are used for illustrative purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the representation of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0065] For the purpose of clearly describing this application, devices that are not relevant to the description are omitted, and the same or similar components throughout the specification are given the same reference numerals.
[0066] Throughout this specification, when it is said that a device is "connected" to another device, this includes not only "direct connection" but also "indirect connection" by placing other components in between. Furthermore, when it is said that a device "comprises" a certain constituent element, unless otherwise stated otherwise, this does not exclude other constituent elements, but rather implies that other constituent elements may be included.
[0067] When we say that a device is "above" another device, this can mean that it is directly above the other device, or it can mean that other devices are present in between. Conversely, when we say that a device is "directly" "above" another device, there are no other devices present in between.
[0068] Although the terms first, second, etc., are used in some instances herein to refer to various elements, these elements should not be limited by these terms. These terms are used only to distinguish one element from another. For example, first interface and second interface, etc., are used. Furthermore, as used herein, the singular forms “a,” “an,” and “the” are intended to also include the plural forms unless the context indicates otherwise. It should be further understood that the terms “comprising,” “including,” indicate the presence of features, steps, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms “or” and “and / or” as used herein are interpreted as inclusive, or mean any one or any combination thereof. Thus, “A, B, or C” or “A, B, and / or C” means “any one of: A; B; C; A and B; A and C; B and C; A, B, and C.” Exceptions to this definition will only occur if the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0069] The technical terms used herein are for reference only to specific embodiments and are not intended to limit the scope of this application. The singular form used herein includes the plural form unless the statement explicitly indicates otherwise. The word "comprising" as used in the specification means to specify a particular characteristic, region, integer, step, operation, element, and / or component, and does not exclude the presence or addition of other characteristics, regions, integers, steps, operations, elements, and / or components.
[0070] Although not explicitly defined, all terms, including technical and scientific terms used herein, shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. Terms defined in commonly used dictionaries shall be further interpreted as having a meaning consistent with the relevant technical literature and the content of this present application, and shall not be over-interpreted as having an ideal or overly formulaic meaning unless otherwise defined.
[0071] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that the invention will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and therefore repeated descriptions of them will be omitted.
[0072] like Figure 1 As shown, an embodiment of the present invention discloses a product configuration management method for an Internet of Things (IoT) platform, the method comprising the following steps:
[0073] The S110 provides a display page on the IoT platform. (Reference) Figure 2 The image shows a partial view of the display page. The display page includes a first display area 21 and a second display area 22 displayed in a tiled arrangement. The first display area 21 is used to configure and display product function information. The second display area 22 is used to configure and display the location information corresponding to each function. The first display area 21 and the second display area 22 are displayed in a tiled arrangement, for example... Figure 2 The data is displayed in a top-to-bottom tiling manner. Each row of data in the second display area 22 corresponds to a functional information. Each row of data in the second display area 22 includes all the point information contained under a functional information.
[0074] The technical solution of this invention enables users to intuitively see all functional information and point information to be configured on the Internet of Things platform, without having to click on the parent page of functional information one by one, thus improving configuration efficiency. Users can intuitively see the filling status of each offset at once, so as to avoid errors in subsequent readings from the device due to discrepancies between the configuration and the manufacturer's instructions.
[0075] The aforementioned products are known as object models, which are data models defined by the IoT platform to describe the product's functions. An object model is a digital representation of an entity in physical space (such as sensors, vehicle-mounted devices, buildings, factories, etc.) in the cloud. It describes what the entity is, what it can do, and what information it can provide from three dimensions: attributes, services, and events. Defining these three dimensions of the object model completes the definition of the product's functions. The aforementioned attributes, services, and events correspond to the functional information of a product.
[0076] S120: Receive the user's first operation command for the functional information in the first display area.
[0077] Referring to the above description, the values of functional information can be attributes, services, or events. The first operation instruction can be an operation to add, delete, or modify functional information. It should be noted that the configuration information of the functional information in the above first operation instruction also includes the configuration information of some point information in the functional information. Therefore, if the point information of the second display area cannot be configured synchronously, even if the first operation instruction includes instructions to configure some point information, the user will still need to manually configure the point information again after configuring the functional information. This will obviously result in low user configuration efficiency and be detrimental to the user experience.
[0078] S130, according to the aforementioned first operation instruction, the product function information located in the first display area is configured; and the location information located in the second display area is configured synchronously. The aforementioned location information includes an offset. Specifically, this embodiment realizes the linked configuration of function information located in the first display area and location information located in the second display area. During the configuration of function information, if the first operation instruction includes an instruction to configure some location information, then this embodiment no longer requires the user to manually configure the location information a second time. When it is detected that the part of the first operation instruction that modifies the function information includes the configuration of modifying the location information, then the modification of the location information is directly realized through the linked configuration of the upper and lower pages, which helps to improve the user experience of using the IoT management platform and improve the efficiency of product and device configuration.
[0079] The aforementioned offset refers to the address information of a point in the register address space, essentially a cursor starting from the start bit. The offset configuration should be based on the manufacturer's instruction manual. For example, an offset of 1 means retrieving the first bit, say 0x16, which can then be converted to the corresponding reading for that point. If the offset is configured incorrectly, the value retrieved for that point will be incorrect, meaning the data read will not correspond to that point.
[0080] For example, the aforementioned point information may include temperature points and humidity points. In the point information, assuming the offset for the temperature point is 3 and the offset for the humidity point is 4, then correspondingly, if data can be read from the 3rd bit in the device register address space, that data is the temperature data. If data can be read from the 4th bit in the device register address space, that data is the humidity data.
[0081] And S140, in the second display area after synchronization configuration, when two rows of data are detected to have the same offset, generates alarm information about the two rows of data and displays it to the user. For example, the two rows of data are marked and displayed in a preset format to remind the user.
[0082] Specifically, the offsets corresponding to different points cannot be the same. If two identical offsets appear, it indicates that one of the offsets is misconfigured. In this case, the user may not notice the error, potentially leading to incorrect data readings from a particular point and affecting the effectiveness of the IoT application. Therefore, this embodiment uses the above steps to display the two erroneous rows of data with a significantly different display effect compared to the other rows, alerting the user to avoid the aforementioned problem, improving user experience, and enhancing the management and usage efficiency of the IoT platform.
[0083] In another embodiment of this application, another product configuration management method for an Internet of Things (IoT) platform is disclosed. For example... Figure 3 As shown, the method described above Figure 1 Based on the corresponding embodiment, step S130 includes:
[0084] S131, a new target function information is detected in the first display area according to the first operation instruction mentioned above.
[0085] S132, Extract the function name from the above target function information.
[0086] And S133, retrieve the offset corresponding to the function name from the preset file library, and synchronize the point information located in the second display area according to the offset. The preset file library stores offsets corresponding to different function names provided by the product manufacturer. The function name is also the keyword information in the target function information, such as temperature or humidity. This invention does not impose limitations on this.
[0087] In other words, in this embodiment, the first operation instruction is an operation to add functional information. After the target functional information is configured in the first display area, the offset is automatically configured according to the preset file library, eliminating the need for manual configuration by the user. This avoids the problem of low efficiency in device point configuration, improves the user experience of using the IoT management platform, and increases the efficiency of product device configuration.
[0088] In some alternative embodiments, such as Figure 4 As shown above, in the above Figure 3 Based on the corresponding embodiment, step S140 includes:
[0089] S141, Receive the user's second operation instruction for the second display area.
[0090] S142, when a user's modification operation on the offset is detected according to the second operation instruction, it is determined whether there are two rows of data with the same offset in the second display area.
[0091] If two rows of data with the same offset exist, then step S143 is executed: generate alarm information about the two rows of data and display it to the user. For example, the two rows of data are marked and displayed in a preset format to remind the user. For example, the preset format can be highlighted, highlighted, or displayed in red font, etc.
[0092] If no two rows of data with the same offset exist, no operation is performed.
[0093] This embodiment can avoid the situation where the user manually modifies the offset after the system has automatically configured it, resulting in an incorrect offset value. If the user does not notice this error, it may lead to a certain point not being able to read the correct data. This improves the user experience and enhances the management and usage efficiency of the IoT platform.
[0094] In another embodiment of this application, another product configuration management method for an Internet of Things (IoT) platform is disclosed. For example... Figure 5 As shown, the method described above Figure 1 Based on the corresponding embodiment, step S110 includes:
[0095] S111, obtain all the functional information generated by the configuration in the first display area, and all the point information corresponding to each functional information in the second display area.
[0096] S112, Generate a preset functional point sequence based on the above functional information and point information.
[0097] S113. Based on the above-mentioned preset functional point order and each row of data in the second display area, a first tree structure is formed with functional information as the root node.
[0098] In this embodiment, step S130 includes:
[0099] S134, the first operation instruction is detected to be used to operate on the target function information. That is, the object of the first operation instruction, namely the target function information, is identified.
[0100] S135, determine whether there is a subtree structure with the target function information as the root node in the first tree structure.
[0101] If the above subtree structure does not exist, then proceed to step S136: add a leaf node that matches the above target function information in the first tree structure.
[0102] like Figure 6 As shown, the present invention exemplarily illustrates a first tree structure 500. This embodiment displays all data in the first and second display areas of the IoT platform in a tree-structured data view, which makes the display more intuitive, improves user efficiency in viewing data, and enhances the user experience and device configuration experience on the IoT platform.
[0103] For example, the aforementioned preset function point order may include function information, function information values, input / output parameters, identifiers, parameter names, register types, and offsets. Among these, input / output parameters, identifiers, parameter names, register types, and offsets belong to the point information. The aforementioned register type may be, for example, a coil register or a holding register. The aforementioned function information values are attributes, services, or events.
[0104] In some alternative embodiments, in the above Figure 5 Based on the corresponding embodiment, step S130 further includes:
[0105] If the above subtree structure exists, obtain the subtree structure with the target function information as the root node, and modify the leaf nodes of the above subtree structure according to the first operation instruction.
[0106] This method of modifying the leaf nodes of the tree structure makes the modification process of the first and second display areas more intuitive, which helps to improve the user experience on the IoT platform and the device configuration experience.
[0107] like Figure 7 As shown, in some embodiments, in the above Figure 5 Based on the corresponding embodiment, step S136 above includes:
[0108] S1361, Generate a subtree structure with the target function information as the root node according to the preset functional point order.
[0109] S1362, based on the corresponding product model and preset file library, obtain the values of each leaf node in the subtree structure and fill them into the subtree structure.
[0110] And S1363, using the root node of the subtree structure as the leaf node of the first tree structure, integrates the above subtree structure into the first tree structure.
[0111] This method of generating subtree structures through operations allows for the addition or deletion of leaf nodes in the first tree structure. The operation process is more intuitive and helps to improve the user experience on the IoT platform and the device configuration experience.
[0112] The embodiments provided by this invention integrate multiple business operations into a single page on an IoT platform by adopting a solution that integrates attribute, service, event, and location configuration management. In addition to providing configuration of the product's own attributes, services, and events, it also allows for intuitive configuration of the corresponding locations for each attribute, service, and event on a single page, making user operation more intuitive. Furthermore, it alerts users when offset configuration errors occur, thus improving the user experience.
[0113] It should be noted that all the embodiments disclosed in this application can be freely combined, and the resulting technical solutions are also within the protection scope of this application.
[0114] like Figure 8 As shown, an embodiment of the present invention also discloses a product configuration management system 8 for an Internet of Things (IoT) platform, the system comprising:
[0115] The display page provides module 81, offering a display page on the IoT platform. This display page includes a first display area and a second display area displayed in a tiled manner. The first display area is used to configure and display product function information. The second display area is used to configure and display the location information corresponding to each of the aforementioned function information.
[0116] The first operation instruction receiving module 82 receives the user's first operation instruction for the aforementioned functional information of the first display area.
[0117] The location information configuration module 83, according to the first operation instruction, configures the product function information located in the first display area; and synchronously configures the location information located in the second display area. The location information includes offsets.
[0118] The offset detection module 84, in the second display area after synchronization configuration, generates alarm information about the two rows of data when it detects that the two rows of data have the same offset and displays it to the user.
[0119] It is understood that the product configuration management system for IoT platforms of the present invention also includes other existing functional modules that support the operation of the product configuration management system for IoT platforms. Figure 8 The product configuration management system shown for the Internet of Things platform is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0120] The product configuration management system for the Internet of Things (IoT) platform in this embodiment is used to implement the above-described method for product configuration management for the IoT platform. Therefore, the specific implementation steps of the product configuration management system for the IoT platform can be referred to the above description of the method for product configuration management for the IoT platform, and will not be repeated here.
[0121] An embodiment of the present invention also discloses a product configuration management device for an Internet of Things (IoT) platform, including a processor and a memory, wherein the memory stores an executable program of the processor; the processor is configured to execute the steps of the product configuration management method for an IoT platform by executing the executable program. Figure 9 This is a structural schematic diagram of the product configuration management device for an Internet of Things (IoT) platform disclosed in this invention. See below for reference. Figure 9 To describe an electronic device 600 according to this embodiment of the present invention. Figure 9 The electronic device 600 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0122] like Figure 9 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including storage unit 620 and processing unit 610), a display unit 640, etc.
[0123] The storage unit stores program code, which can be executed by the processing unit 610, causing the processing unit 610 to perform the steps described in the above-described section of this specification regarding the product configuration management method for an IoT platform, according to various exemplary embodiments of the present invention. For example, the processing unit 610 can perform actions such as... Figure 1 The steps are shown in the figure.
[0124] Storage unit 620 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include a read-only memory (ROM) 6203.
[0125] Storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0126] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0127] Electronic device 600 can also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. Network adapter 660 can communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0128] The present invention also discloses a computer-readable storage medium for storing a program that, when executed, implements the steps in the product configuration management method for an IoT platform described above. In some possible embodiments, various aspects of the present invention can also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to perform the steps described in the product configuration management method for an IoT platform according to various exemplary embodiments of the present invention.
[0129] As shown above, when the program on the computer-readable storage medium of this embodiment is executed, for devices that support the Modbus-RTU access protocol, in order to meet their configuration point information requirements, the IoT platform adopts a single page to integrate the synchronous configuration of product function information and point information. This eliminates the need for users to configure the product function information one by one and then configure the point information separately. This reduces the management complexity of the IoT platform and helps to improve the product configuration efficiency under the platform.
[0130] One embodiment of the present invention discloses a computer-readable storage medium. This storage medium is a program product implementing the above-described method, which may be a portable compact disc read-only memory (CD-ROM) and include program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0131] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0132] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0133] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0134] The product configuration management method, system, and device for IoT platforms provided in this invention are designed for devices that support the Modbus-RTU access protocol. To meet their configuration point information needs, the IoT platform integrates the synchronous configuration of product function information and point information on a single page. This eliminates the need for users to configure the product function information and then manually configure the point information one by one. This reduces the management complexity of the IoT platform and improves the efficiency of product configuration on the platform.
[0135] On the other hand, the location information of all functions is displayed in a flat manner, which makes it easy for users to verify the information provided by the product equipment manufacturer; and a prompt is given for two rows of data with the same offset. Since the offset cannot be the same, there must be a configuration error in the two rows of data. This can avoid the occurrence of users configuring the offset incorrectly and help improve the user experience.
[0136] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of the present invention, and all such modifications and substitutions should be considered within the scope of protection of the present invention.
Claims
1. A product configuration management method for an Internet of Things platform, characterized by, Includes the following steps: S110 provides a display page on an IoT platform; the display page includes a first display area and a second display area displayed in a flat layout; the first display area is used to configure and display product function information; the second display area is used to configure and display the location information corresponding to each of the function information. S120, receive a first operation instruction from the user regarding the functional information of the first display area; S130, according to the first operation instruction, configure the product function information located in the first display area; and synchronously configure the location information located in the second display area; the location information includes an offset; and S140, in the second display area after synchronization configuration, when two rows of data are detected to have the same offset, an alarm message about the two rows of data is generated and displayed to the user; Step S110 includes: Obtain all functional information generated by the configuration in the first display area, and all point information corresponding to each functional information in the second display area; Based on the functional information and the location information, a preset functional location sequence is generated; Based on the preset functional point order and each row of data in the second display area, a first tree structure is formed with functional information as the root node. Step S130 includes: The first operation instruction was detected as being used to operate on the target function information; Determine whether there is a subtree structure in the first tree structure with the target functional information as the root node; If it does not exist, a new leaf node matching the target function information is added to the first tree structure.
2. The product configuration management method of claim 1, wherein, Step S130 includes: According to the first operation instruction, a new target function information has been detected in the first display area; Extract the function name from the target function information; The offset corresponding to the function name is obtained from a preset file library; the preset file library stores offsets corresponding to different function names provided by the product manufacturer. The point information located in the second display area is synchronously configured according to the offset.
3. The product configuration management method as described in claim 2, characterized in that, Step S140 includes: Receive the user's second operation command for the second display area; When a user's modification of the offset is detected according to the second operation instruction, it is determined whether there are two rows of data with the same offset in the second display area; If they exist, an alarm message about the two rows of data will be generated and displayed to the user.
4. The product configuration management method as described in claim 3, characterized in that, The generation and display of alarm information regarding the two rows of data to the user includes: The two rows of data are labeled and displayed in a preset format.
5. The product configuration management method as described in claim 1, characterized in that, Step S130 also includes: If it exists, then obtain the subtree structure with the target function information as the root node; According to the first operation instruction, the leaf nodes of the subtree structure are modified.
6. The product configuration management method as described in claim 1, characterized in that, Step S130 also includes: Based on the preset functional point order, a subtree structure with the target functional information as the root node is generated; Based on the corresponding product model and preset file library, obtain the values of each leaf node in the subtree structure and fill them into the subtree structure.
7. The product configuration management method as described in claim 1, characterized in that, The preset function point sequence includes function information, function information value, input / output parameters, identifier, parameter name, register type, and offset; the register type is a coil register or a holding register; the function information value is an attribute, service, or event.
8. A product configuration management system for an Internet of Things (IoT) platform, used to implement the product configuration management method for an IoT platform as described in claim 1, characterized in that, The system includes: The display page provides a module that provides a display page on the Internet of Things platform; the display page includes a first display area and a second display area that are displayed in a tiled manner; the first display area is used to configure and display product function information; the second display area is used to configure and display the location information corresponding to each of the function information; The first operation instruction receiving module receives a first operation instruction from the user regarding the functional information of the first display area. The location information configuration module configures product function information located in the first display area according to the first operation instruction; and synchronously configures location information located in the second display area; the location information includes offset; and The offset detection module, in the second display area after synchronization configuration, generates alarm information about the two rows of data when it detects that two rows of data have the same offset and displays it to the user.
9. A product configuration management device for an Internet of Things (IoT) platform, characterized in that, include: processor; A memory in which an executable program of the processor is stored; The processor is configured to perform the steps of the product configuration management method for an Internet of Things platform according to any one of claims 1 to 7 by executing the executable program.