An access authentication and data arrangement method and device based on a visualization technology
By using visualization technology for access authentication and data orchestration, the complexity of device access and the diversity of data formats in IoT platforms are solved, enabling seamless connection between devices and platforms and data format conversion, reducing development and maintenance costs, and improving the system's flexibility and adaptability.
Patent Information
- Application Number
- CN202411821699.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2044-12-11
AI Technical Summary
Existing IoT platforms suffer from complex device access authentication processes and cumbersome SDK integration, resulting in high device development and access costs, increased maintenance difficulty due to diverse data formats, and protocol incompatibility.
The system employs a visualization-based access authentication and data orchestration method. Through field tree mapping and visualization diagrams, it achieves seamless connection and data format conversion between devices and IoT platforms, including authentication access strategies and data orchestration conversion. The intermediate device acts as an intermediate layer for data processing.
Without modifying device firmware, it enables rapid and seamless access to IoT platforms, simplifies development processes, reduces costs, improves system security and flexibility, supports the conversion of data from multiple protocols, and meets the data format requirements of different business applications.
Smart Images

Figure CN119696877B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data orchestration, and particularly relates to an access authentication and data orchestration method and device based on a visualization technology. BACKGROUND
[0002] When a device accesses an Internet of Things platform, a series of preparation work and configuration need to be performed at the device end, and access authentication is particularly crucial. Since devices of different manufacturers have their own technical characteristics and security requirements, their authentication processes will also differ.
[0003] Most Internet of Things platforms provide an SDK to simplify communication between devices and the platform. When a device needs to access an Internet of Things platform, it initiates a request to the server through the SDK, and the request contains necessary authentication information such as an API key or an access token.
[0004] The SDK is integrated into the firmware of the device, and the following configurations are performed according to the requirements of the platform, including but not limited to: (1) initializing the SDK: initializing the SDK using the API key, access token or other credentials provided by the platform; (2) setting communication parameters: configuring the communication protocol (such as MQTT, COAP, etc.), port, server address, etc.
[0005] The SDK provided by cloud service providers and the SDK development method for specific protocols (such as MQTT, COAP, UDP and HTTP, etc.) in the prior art need to be completed through programming languages (such as Java, Python, C++, Node.JS, etc.). The method of using the SDK plug-in provided by the cloud service provider may cause a high dependence on a certain platform or service, thereby limiting future flexibility. If multiple operating systems or hardware platforms need to be supported, the integration of the SDK may become very complex, and the SDK development also needs a certain amount of time to learn its API and working principle, which requires more human and time resources.
[0006] When device data accesses an upper Internet of Things platform or different SAAS applications, it may be necessary to unify the data into a standard format for data collection and unified management, or to distribute the data in a specific format to different SAAS applications to meet their business logic or performance requirements.
[0007] The current method device or the Internet of Things platform provides an SDK library or uses a special software or hardware gateway to receive data from different devices and convert the data into a standard format supported by the Internet of Things platform. The above method of introducing a protocol gateway or an SDK to convert the data format will result in a large number of device data message formats as the number of customers increases and custom data formats. At the same time, due to the large number of data protocols, the difficulty and cost of device firmware version maintenance, logistics storage and order management are greatly increased, and the overall complexity is increased, that is, there are problems of protocol incompatibility, data format diversity, complex access authentication process and the like. These problems result in high device development and access costs and great difficulty in subsequent maintenance.
[0008] Therefore, the application provides an access authentication and data arrangement method and device based on a visualization technology to solve the above technical problems. SUMMARY
[0009] The main purpose of the application is to provide an access authentication and data arrangement method and device based on a visualization technology to solve the technical problems proposed in the background art.
[0010] The application solves the above technical problems by adopting the following technical solutions:
[0011] An access authentication and data arrangement method based on a visualization technology adopts a field tree mapping and a visualized diagramming method without the need to write codes, and includes the following steps:
[0012] An authentication access strategy is implemented to obtain device data that passes the authentication;
[0013] Different structure data is subjected to visualized arrangement conversion from a source data format to a target data format;
[0014] After the authentication and the arrangement conversion from the source data format to the target data format, a device ID is written into a Client Id field of an MQTT message, a token key is written into a device Password field, a data push is initiated to an Internet of Things platform or a SAAS application through a standard MQTT protocol message format, and specific data format customization is realized for distribution to a corresponding SAAS application according to specific needs of different customers;
[0015] The authentication access strategy and the visualized arrangement conversion are both realized based on an intermediate device, which operates as an intermediate layer between devices and various Internet of Things platforms.
[0016] Preferably, the specific execution steps of the authentication access strategy include:
[0017] S1. In the Internet of Things platform, register the device using the device number, and the Internet of Things platform automatically generates a unique ID of the Internet of Things authentication device and the corresponding key according to the provided device code combined with the product ID of the Internet of Things platform;
[0018] S2. Based on the automatically generated information of the Internet of Things platform, establish an authentication mapping relationship between the device number of the device itself and the Internet of Things ID;
[0019] S3. Determine the device access mode, including device direct connection mode and platform access mode, wherein: in the device direct connection mode, the device directly reports the collected data to the intermediate device; in the platform access mode, the authentication information including platform account, password and Internet of Things key token is configured in the intermediate device, which is used to verify the identity of the device and its access permission, and the data transmission between the device and the device is realized through the defined interface;
[0020] S4. The data of all devices are centrally stored in a unified device data pool, and the data pool serves as a centralized data storage and processing unit for receiving, integrating and managing information sent from devices accessed from various channels;
[0021] S5. In the device data pool, the device data of the registered and mapped devices is retrieved according to the device number, and the authentication process is completed using the device ID and the Internet of Things key token.
[0022] Preferably, in the device direct connection state of the S4 step device access mode, the data is directly reported to the data pool by the device.
[0023] Preferably, in the platform access state of the S4 step device access mode, the data is first verified by the configured authentication information after verifying the identity of the device, and then transmitted to the data pool through a specific interface.
[0024] Preferably, the specific execution steps of the visual arrangement operation include:
[0025] L1. Receive the device data authenticated, including XML, key-value pair, hexadecimal and JSON formats;
[0026] L2. Determine whether the device data is accessed to the Internet of Things platform, and execute different processing modes for the data source;
[0027] L3. Use the intermediate device to configure the data format arrangement process by dragging the node, and arrange the data format and clean the data.
[0028] Preferably, the specific processing mode of the L2 step includes:
[0029] For the device data that needs to access the Internet of Things platform, the JSON format of different data format standards is uploaded to the Internet of Things platform through the MQTT of the visualization data format arrangement function of the intermediate device;
[0030] For the data that needs to be distributed to different SAAS applications, the device data is parsed and arranged by the visual data format device, and then the special data format required by different customers is distributed to different customers by cooperating with the data distribution tool.
[0031] Preferably, the data format arrangement and data cleaning in the L3 step include: first, performing an XML to JSON arrangement conversion node configuration operation in a field tree connection mode, and then performing a hexadecimal to JSON operation in a visual diagram mode, so as to realize XML and hexadecimal to JSON.
[0032] Preferably, the specific operation process of the field tree connection mode to perform the XML to JSON arrangement conversion node configuration operation includes:
[0033] In the process of building a data arrangement process by dragging and connecting nodes, the start node pushes the device source data to the conversion node, and the end node pushes the data through the MQTT protocol;
[0034] Configure the conversion node. In the data format arrangement conversion node, the input type is XML stream and the output type is JSON stream;
[0035] Import the XML source field tree text and the JSON target field tree text. Use the intermediate device to parse and identify the XML and JSON data texts into field tree graphs according to the key / val ue values of the texts;
[0036] Connect the fields that need to set the mapping relationship, and the value mapping of the source field and the target field can be completed.
[0037] Preferably, in addition to connection mapping, the following operations can also be performed on the field in the process of the field tree connection mode to perform the XML to JSON arrangement conversion node configuration operation:
[0038] (1) Field transmission: used to determine whether the field needs to be transmitted according to the parameter content;
[0039] (2) Encryption and decryption: used to determine whether encryption and decryption are needed. If the parameter value is 1, encryption is needed, and if the parameter value is -1, decryption is needed;
[0040] (3) Set global variable: used to set the field as a global variable;
[0041] (4) Get global variable: used to set the function parameter as a global variable name;
[0042] (5) Static value: set a fixed value to the target field directly without the source field;
[0043] (6) Timestamp: generate a timestamp to the target field directly without the source field;
[0044] (7) Value judgment: make a size judgment according to the input value;
[0045] (8) Parameter merging: used for merging multiple parameters into one, thereby merging the fields set as global variables.
[0046] Preferably, the specific operation process of the visualization diagram method for performing the hexadecimal to JSON operation includes:
[0047] Drag and connect nodes to build a data parsing process;
[0048] In the parsing node, according to the target data format, drag the graphical module to build a JSON data structure;
[0049] Embed the parsing method module including the intercepted string, hexadecimal to decimal in the intermediate device to execute the corresponding process, to locate the intercepted source data string, execute the hexadecimal to decimal parsing operation, and can fill in the module parameters to customize the target field name.
[0050] On the other hand, the application also discloses an access authentication and data arrangement device based on the visualization technology, which is used as an intermediate device to execute the above-mentioned access authentication and data arrangement method based on the visualization technology, and includes:
[0051] The authentication access strategy is used to establish a mapping relationship between the device number and the Internet of Things device ID, and bind the authentication information of the device with the authentication information required for accessing the Internet of Things platform;
[0052] The business arrangement, parsing and storage module is used to arrange, parse and store the data of the access device, and uniformly arrange and convert the device data of different communication protocols into a standard format, so as to facilitate the smooth access to the Internet of Things platform;
[0053] The data format customization module is used to customize the data into a specific format to meet the needs of different upper-layer applications.
[0054] In another aspect, the application also discloses a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to make the processor execute the steps of the above-mentioned method.
[0055] In still another aspect, the present application also discloses a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to make the processor execute the steps of the above method.
[0056] From the above technical solution, the present application provides an access authentication and data arrangement method based on a visualization technology.
[0057] 1. The present application can realize quick and non-sensing access of a device or platform without modifying the firmware of the device, and realize seamless connection between the device and various Internet of Things platforms and SAAS applications through the authentication access strategy.
[0058] 2. The present application supports access, analysis and arrangement of TCP, UDP, HTTP and LwM2M protocol data, and can realize mutual conversion between heterogeneous source data and platform standard format data.
[0059] 3. The present application realizes flexible analysis of data format through visual data arrangement according to the data format requirements of different business applications in the upper layer, and can meet the specific needs of customers and produce effects.
[0060] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent through the following description. Of course, any product implementing the present application does not necessarily need to achieve all the advantages described above. BRIEF DESCRIPTION OF DRAWINGS
[0061] The drawings accompanying the specification of this application form a part thereof, serve to provide further understanding of the present application, and together with the description of the exemplary embodiments of the present application and their description serve to explain the present application, and do not constitute improper limitations on the present application. In the drawings:
[0062] Figure 1 It is a schematic diagram of the overall flow of the method of the present application;
[0063] Figure 2 It is a schematic diagram of the internal system framework of the device of the present application;
[0064] Figure 3 It is a schematic diagram of the information interaction flow of the present application;
[0065] Figure 4 It is an authentication mapping relationship example table of the present application;
[0066] Figure 5 It is a field tree identification example diagram of the present application;
[0067] Figure 6A field connection operation example diagram of the present application;
[0068] Figure 7 An SDK device access interaction diagram in the prior art. DETAILED DESCRIPTION
[0069] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The embodiments in the present application and the features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0070] In the embodiments, refer to Figures 1 to 7 .
[0071] In the prior art, referring to Figure 7 , when a device accesses an Internet of Things platform, a series of preparation work and configuration need to be performed at the device end, and access authentication is particularly critical. A conventional Internet of Things platform provides an SDK to simplify the communication between the device and the platform. When the device needs to access the Internet of Things platform, it initiates a request to the server through the SDK, and the request contains necessary authentication information such as an API key or an access token. The SDK is integrated into the firmware of the device, and the following configurations are performed according to the requirements of the platform, including but not limited to: (1) initializing the SDK: initializing the SDK using the API key, access token or other credentials provided by the platform; (2) setting communication parameters: configuring the communication protocol (such as MQTT, COAP, etc.), port, server address, etc. At this time, the device accessing the Internet of Things platform or SAAS application has problems such as protocol incompatibility, data format diversity, and complex access authentication process. These problems lead to high cost of device development and access, and great difficulty in subsequent maintenance.
[0072] Therefore, as shown in Figure 2 , the embodiments of the present application propose an access authentication and data arrangement method based on visual technology to realize the authentication operation and unified data format arrangement operation of the generic protocol device accessing the Internet of Things platform or SAAS application. The method uses field tree mapping and visual diagramming through an intermediate device without the need to write code, thereby greatly improving the efficiency of data processing. This method not only reduces the development cost, but also enables non-technical personnel to easily manage and adjust the authentication strategy and data structure of the system, thereby enhancing the usability and flexibility of the entire solution, as shown in Figure 1 and Figure 3 , the method specifically includes:
[0073] (1) implement an authentication access strategy to obtain device data that passes authentication;
[0074] The specific implementation steps of the authentication access strategy include:
[0075] S1. In the Internet of Things platform, register the device using the device number (device ID, device code, or IMEI number, etc. on the device side), and the Internet of Things platform automatically generates a unique ID for the Internet of Things authentication device and the corresponding key based on the provided device code in combination with the product ID of the Internet of Things platform;
[0076] S2. Import the corresponding file generated by the Internet of Things platform, which contains device number, Internet of Things ID, and key information, into the intermediate device, and based on the corresponding file generated by the Internet of Things platform, establish an authentication mapping relationship between the device number of the device itself and the Internet of Things ID, as shown in Figure 4
[0077] S3. Determine the device access method, including device direct connection and platform access, wherein: device direct connection uses the device to directly report the collected data to the intermediate device; platform access configures authentication information such as platform account, password, and Internet of Things key token in the intermediate device, which is used to verify the identity of the device and its access rights, and realizes data transmission between the device and the device through a defined interface;
[0078] S4. Whether using device direct connection or platform access, all device data will be stored in a unified device data pool, and the data pool serves as a centralized data storage and processing unit for receiving, integrating, and managing information sent from devices accessed from various channels;
[0079] At this time, it needs to be supplemented that in the device direct connection state, the data is directly reported by the device to the data pool; in the platform access state, the data is first verified by the configured authentication information (such as account, password, and Internet of Things key token, etc.) to verify the identity of the device, and then securely transmitted to the data pool through a specific interface;
[0080] S5. In the device data pool, retrieve the device data that has been registered and mapped according to the device number, and then use the device ID and Internet of Things key token to complete the authentication process;
[0081] In summary, by setting the authentication access strategy in the intermediate device, the mapping relationship between the device number and the Internet of Things device ID can be established, thereby achieving fast and non-sensing access of the device or platform without modifying the device firmware, and further completing seamless connection with various Internet of Things platforms and SAAS applications;
[0082] (2) Source data format to target data format visualization arrangement conversion for different structure data;
[0083] The specific execution steps of the visualization arrangement operation include:
[0084] L1. Receive authenticated device (source) data, including XML, key-value pair, hexadecimal, and JSON formats;
[0085] L2. Determine whether the device data is connected to the Internet of Things platform, and perform different processing methods on the data source. At this time, there are two processing methods for the data source, specifically including:
[0086] a1. For device data that needs to be connected to the Internet of Things platform, use the visualization data format arrangement function of the intermediate device to convert different data format standards to JSON format, and upload it to the Internet of Things platform through MQTT;
[0087] a2. For data that needs to be distributed to different SAAS applications, use the visualization data format device to parse and arrange the device data, and then use the data distribution tool to distribute the special data format required by different customers to different customers;
[0088] L3. Use the intermediate device to configure the data format arrangement process by dragging and dropping nodes to arrange the data format and clean the data;
[0089] Taking XML and hexadecimal to JSON as an example, the data format arrangement and data cleaning include:
[0090] b1. First, perform XML to JSON arrangement conversion node configuration operation in field tree connection mode;
[0091] The specific operation process includes:
[0092] b101. Build a data arrangement process by dragging and connecting nodes, start node pushes device source data to the conversion node, and end node pushes data through MQTT protocol;
[0093] b102. Configure the conversion node. In the data format arrangement conversion node, select the input type as XML stream and the output type as JSON stream;
[0094] b103. Refer to Figure 5 , import XML source field tree text and JSON target field tree text, and use the intermediate device to parse and recognize XML and JSON data text into field tree graph according to the key / value values of the text;
[0095] b104. Refer to Figure 6The field that needs to set the mapping relationship is connected, and the value mapping of the source field and the target field is completed.
[0096] It can be further explained at this time that in addition to connection mapping, the following operations can be performed on the field during the XML to JSON conversion arrangement conversion node configuration operation process in the field tree connection mode:
[0097] (a) Field transmission: used to determine whether the field needs to be transmitted according to the parameter content;
[0098] (b) Encryption and decryption: used to determine whether encryption and decryption are needed, and the parameter value is 1, then encryption is needed, and the parameter value is -1, then decryption is needed;
[0099] (c) Set global variable: used to set the field as a global variable;
[0100] (d) Get global variable: used to set the function parameter as a global variable name;
[0101] (e) Static value: no source field is needed to directly set a fixed value to the target field;
[0102] (f) Timestamp: no source field is needed to directly generate a timestamp for the target field;
[0103] (g) Value judgment: size judgment is performed according to the input value;
[0104] (h) Parameter merging: used to merge multiple parameters into one, so as to merge the fields set as global variables.
[0105] In addition, it can be explained that the same operation steps can also be used to complete the data format conversion between XML to JSON, JSON to JSON, XML to Key Value, XML to tuxedo, and other data formats;
[0106] b2. Then perform the hexadecimal to JSON operation in a visual diagram;
[0107] The specific operation process includes:
[0108] Drag and connect the nodes to build a data parsing process, at this time, use the parsing node to perform the hexadecimal to JSON operation step;
[0109] In the parsing node, the execution method and the parsing method will be encapsulated into a puzzle-like module. First, according to the target data format, drag the graphical module to build the JSON data structure, and then embed the parsing method modules such as string interception and hexadecimal to decimal conversion into the execution module. The source data string can be located and intercepted, the hexadecimal to decimal parsing method can be executed, and the module parameters can be filled in to customize the target field name.
[0110] (3) After the authentication and the source data format to the target data format are arranged and converted, the device ID is written into the Client Id field of the MQTT message, the token key is written into the device Password field, and data pushing is initiated to the Internet of Things platform or the SAAS application through the standard MQTT protocol message format, and specific data format customization is realized for the corresponding SAAS application according to the specific needs of different customers.
[0111] Therefore, by integrating the authentication access strategy and the data arrangement conversion function in the intermediate device, the development process can be simplified and the system security can be improved, thereby reducing the development cost and the maintenance cost, and further an efficient, safe and easy-to-manage Internet of Things solution can be provided.
[0112] Meanwhile, since the authentication access strategy and the visual arrangement conversion are both realized based on the intermediate device, the intermediate device operates as an intermediate layer between the device and each Internet of Things platform, and therefore on the other hand, the application also discloses an access authentication and data arrangement device based on a visual technology, which is used as an intermediate device to execute the access authentication and data arrangement method based on the visual technology disclosed in the above embodiments, and the device is internally provided with a system as shown in Figure 2 for executing corresponding access authentication and data arrangement operations, including:
[0113] An authentication access strategy is used to establish a mapping relationship between the device number and the Internet of Things device ID, and to bind the authentication information of the device with the authentication information required for accessing the Internet of Things platform.
[0114] A business arrangement, analysis and storage module is used to arrange, analyze and store the data of the accessed device, and the device data in different communication protocols are uniformly arranged and converted into a standard format, so as to facilitate smooth access to the Internet of Things platform.
[0115] A data format customization module is used to customize the data into a specific format to meet the needs of different upper-layer applications, and in the data format customization module, a visual data arrangement method is used to flexibly analyze and convert the data format, so as to meet the specific needs of different business applications of the upper layer, improve the adaptability of the system and the customer satisfaction.
[0116] In addition, as an intermediate layer of the device and the platform, the device actively adapts to various device protocols (such as TCP, UDP, HTTP and LwM2M, etc.), and through the visual interface operation, the device developer or the end user can complete the adaptation and access of the device through simple dragging and selection of parameters, and the whole process does not require any code writing or SDK installation on the device side.
[0117] Therefore, by supporting data access, parsing and arrangement of multiple communication protocols (such as TCP, UDP, HTTP and LwM2M) in the service arrangement, parsing and storage module, the mutual conversion between heterogeneous source data and platform standard format data can be realized, so as to improve the data processing flexibility and compatibility, and meet the access requirements of different devices and platforms.
[0118] Therefore, the device of the present application can actively adapt to different authentication modes of devices, process authentication requirements in the device access process, and ensure the non-inductive connection between devices and the Internet of Things platform and SAAS application.
[0119] In addition, the visual arrangement data format is also supported, which simplifies the data processing method and further improves the convenience and efficiency of device access.
[0120] In another aspect, the present application also discloses a computer readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the above method.
[0121] In another aspect, the present application also discloses a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to perform the steps of the above method.
[0122] In another embodiment of the present application, a computer program product containing instructions is also provided, which, when running on a computer, causes the computer to execute the access authentication and data arrangement method based on the visual technology in any of the above embodiments.
[0123] It can be understood that the system provided by the embodiments of the present application corresponds to the method provided by the embodiments of the present application, and the explanation, examples and beneficial effects of related contents can refer to the corresponding parts in the above method.
[0124] The present application also provides an electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus,
[0125] The memory is used to store a computer program.
[0126] The processor is used to execute the program stored on the memory, and realize the access authentication and data arrangement method based on the visual technology.
[0127] The communication bus mentioned in the above electronic device can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0128] The communication interface is configured to communicate between the electronic device and other devices.
[0129] The memory can include a random access memory (RAM) and can also include a non-volatile memory (NVM), e.g., at least one disk memory. Optionally, the memory can also be at least one storage device located remotely from the aforementioned processor.
[0130] The aforementioned processor can be a general purpose processor, including a central processing unit (CPU), a network processor (NP), etc. It can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
[0131] It should also be noted that the electronic device also includes a terminal device, which can also be referred to as a terminal, a user equipment, a mobile station, a mobile terminal, etc. The terminal device can be a mobile phone, a smart television, a wearable device, a tablet computer, a computer with wireless transceiver function, a virtual reality terminal device, an augmented reality terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in remote surgery, a wireless terminal in smart power grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form of the terminal device.
[0132] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media, optical media, or semiconductor media, etc.
[0133] The above merely describes preferred embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0134] In addition, it should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement condition, etc. between components in a certain posture, and if the certain posture changes, the directional indications also change accordingly.
[0135] In addition, if the embodiments of the present application involve descriptions such as "first", "second", etc., the descriptions of "first", "second", etc. are only for description purposes and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing throughout the text includes three parallel solutions. Taking "A and / or B" as an example, it includes A solution, or B solution, or A and B solutions. In addition, in the embodiments of the present application, "a plurality of" means two or more. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the realization of ordinary skilled in the art, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, nor is it within the protection scope required by the present application.
Claims
1. A method for access authentication and data orchestration based on visualization technology, characterized in that, Adopt field tree mapping and visual diagram, without writing code, including: Implement authentication access strategy to obtain authenticated device data; For different structure data, visual arrangement conversion from source data format to target data format is performed; After authentication and arrangement conversion from source data format to target data format, device ID is written into the ClientId field of the MQTT message, and token key is written into the device Password field, and data push is initiated to the Internet of Things platform or SAAS application through the standard MQTT protocol message format, and according to the specific needs of different customers, specific data format customization is realized to distribute to the corresponding SAAS application; The authentication access strategy and visual arrangement conversion are both based on an intermediate device, which operates as an intermediate layer between the device and each Internet of Things platform; The visual arrangement conversion uses the intermediate device to configure the data format arrangement process by dragging the node, and the specific operation process includes: dragging and connecting the node to build the data arrangement process, starting node pushes the device source data to the conversion node, and the end node pushes the data through the MQTT protocol; Configure the conversion node, select the input type as XML stream and the output type as JSON stream in the data format arrangement conversion node; Import XML source field tree text and JSON target field tree text, use the intermediate device to parse and identify the XML and JSON data text into field tree diagram according to the key / value value of the text; Connect the fields that need to set the mapping relationship, that is, the value mapping of the source field and the target field can be completed.
2. The method of visual technology based access authentication and data orchestration as claimed in claim 1, wherein, The specific execution steps of the authentication access strategy include: S1. In the Internet of Things platform, register the device using the device number, and the Internet of Things platform automatically generates the unique ID of the Internet of Things authentication device and the corresponding key according to the provided device code combined with the product ID of the Internet of Things platform; S2. Based on the corresponding file of the information automatically generated by the Internet of Things platform, establish the authentication mapping relationship between the device number of the device itself and the Internet of Things ID; S3. Judge the device access mode, including device direct connection mode and platform access mode, wherein: device direct connection, use the device to directly report the collected data to the intermediate device; Platform access, configure the authentication information including platform account, password and Internet of Things key token in the intermediate device, which is used to verify the identity and access rights of the device, and realize data transmission between the device and the device through the defined interface; S4. All device data is stored in a unified device data pool, which is a centralized data storage and processing unit for receiving, integrating and managing information sent from devices accessed from various channels; S5. In the device data pool, retrieve the device data of the registered and mapped relationship according to the device number, and then use the device ID and Internet of Things key token to complete the authentication process.
3. The method of visual technology based access authentication and data orchestration as claimed in claim 2, wherein, The device access mode of the S4 step is in the device direct connection state, and the data is directly reported by the device to the data pool; The S4 step device access mode is a platform access state, and the data is first verified by the configured authentication information to verify the device identity, and then transmitted to the data pool through a specific interface.
4. The method of visual technology based access authentication and data orchestration as claimed in claim 1, wherein, The specific execution steps of the visual operation arrangement operation include: L1. Receive authenticated device data, including XML, key-value pairs, hexadecimal, and JSON formats; L2. Determine whether the device data is connected to the Internet of Things platform, and perform different processing methods on the data source; L3. Use the intermediate device to configure the data format arrangement process by dragging the node, and arrange the data format and clean the data.
5. The method of visual technology based access authentication and data orchestration as claimed in claim 4, wherein, The specific processing method of the L2 step includes: For device data that needs to be connected to the Internet of Things platform, use the visual data format arrangement function of the intermediate device to convert different data format standards to JSON format, and upload them to the Internet of Things platform through MQTT; For data that needs to be distributed to different SAAS applications, use the visual data format device to parse and arrange the device data, and then use the data distribution tool to distribute special data formats required by different customers to different customers.
6. The method of visual technology based access authentication and data orchestration as claimed in claim 4, wherein, The L3 step of arranging the data format and cleaning the data includes: first, performing XML to JSON arrangement conversion node configuration operation in field tree connection mode, and then performing hexadecimal to JSON operation in visual diagram mode, thereby realizing XML and hexadecimal to JSON.
7. The method of visual technology based access authentication and data orchestration as claimed in claim 1 wherein, In addition to connection mapping, the field tree connection mode also includes the following operations on the field during the XML to JSON arrangement conversion node configuration operation process: (1) Field transmission: used to determine whether the field needs to be transmitted according to the parameter content; (2) Encryption and decryption: used to determine whether encryption and decryption are needed, with a parameter value of 1 indicating that encryption is needed, and a parameter value of -1 indicating that decryption is needed; (3) Set global variable: used to set the field as a global variable; (4) Get global variable: used to set the function parameter as a global variable name; (5) Static value: no need to source field, directly set fixed value to target field; (6) Timestamp: no need to source field, directly generate timestamp for target field; (7) Value judgment: size judgment according to the input value; (8) Parameter merging: used to merge multiple parameters into one, thereby merging the fields set as global variables.
8. The method of visual technology based access authentication and data orchestration of claim 7, wherein, The specific operation process of the visual diagram mode for performing hexadecimal to JSON operation includes: Drag and connect nodes to build a data parsing process; In the parsing node, according to the target data format, drag the graphical module to build the JSON data structure; Embed the parsing method module including string interception, hexadecimal to decimal conversion, etc. into the intermediate device to execute the corresponding process to locate the source data string, perform hexadecimal to decimal conversion, and fill in the module parameter custom target field name.
9. An apparatus for access authentication and data orchestration based on visualization technology, characterized in that, As an intermediate device for executing the access authentication and data arrangement method based on visual technology of any one of claims 1-8, it includes: An authentication access policy is used to establish a mapping relationship between the device number and the Internet of Things device ID, and to bind the authentication information of the device with the authentication information required for accessing the Internet of Things platform. A business arrangement, analysis and storage module is used to arrange, analyze and store the data of the accessed device, and the device data using different communication protocols are uniformly arranged and converted into a standard format, so as to be smoothly accessed to the Internet of Things platform. A data format customization module is used to customize the data into a specific format to meet the needs of different upper-layer applications.
Citation Information
Patent Citations
Digital model and physical device matching system and method based on MQTT protocol
CN114567620A
Visual interface arrangement system
CN118277301A