General access management implementation method and system based on object model, and network equipment
Through a general access management method based on object model, using JSON configuration files and cloud interaction, the problem of time-consuming configuration of IoT devices is solved, dynamic configuration and management of devices is realized, and access efficiency and interoperability are improved.
Patent Information
- Application Number
- CN202411005098.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-29
AI Technical Summary
In the prior art, the configuration of IoT devices needs to be manually set up or carried out through specific software, which makes the configuration process time-consuming and inflexible enough.
Using a general access management method based on object model, by obtaining the hardware configuration information of the device to be accessed, JSON configuration files are generated, and JSON configuration files are used to interact with the cloud, sending control instructions to configure the device, realizing the dynamic configuration of the device and manage.
It improves the efficiency of Internet of Things device access, realizes flexible definition and update of device functions and behaviors, reduces the need for physical contact with devices, and improves the interoperability and user experience of devices.
Smart Images

Figure CN119052070A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method, system, network device and computer-readable storage medium for implementing universal access management based on a physical model. Background Art
[0002] The Internet of Things (IoT) refers to the process of connecting everyday physical objects to the Internet. These physical objects can be light bulbs, household items, medical devices, wearable devices, smart devices, and even smart cities. The Internet of Things refers to connecting any object to the network through information sensing devices and agreed protocols. Objects exchange and communicate information through information dissemination media to achieve intelligent identification, positioning, tracking, supervision, etc.
[0003] In the existing technology, traditional IoT device configuration may require manual settings or through specific software, which may make the configuration process time-consuming and inflexible.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, system and network device for implementing universal access management based on a physical model, aiming to solve the problem in the prior art that the configuration of IoT devices requires manual settings or is performed through specific software, resulting in a time-consuming configuration process.
[0006] A first aspect of an embodiment of the present application provides a method for implementing universal access management based on a physical model, which is applied to a network device. The method comprises the following steps: obtaining input information of a device to be connected, wherein the hardware interface or protocol type adopted by the device to be connected and the network device is saved in JSON format; generating a JSON configuration file according to the input information, wherein the format of the JSON configuration file is a lightweight data interaction format; generating a control instruction after completing the configuration with the device to be connected according to the JSON configuration file; sending the control instruction to the device to be connected, so that the device to be connected performs a corresponding operation or function according to the control instruction, and receives notification information actively reported by the device to be connected.
[0007] Optionally, in an embodiment of the present application, the step of obtaining input information of the device to be connected further includes: verifying the input information, storing the input information that passes the verification, so as to connect the device to be connected to the network device.
[0008] Optionally, in one embodiment of the present application, the input information includes hardware configuration information and business operation information; generating a JSON configuration file based on the input information specifically includes: generating an initial configuration file corresponding to the device to be connected according to preset standards and models based on the hardware configuration information or the business operation information; integrating a pre-established object model into the initial configuration file, verifying the initial configuration file, and using the verified initial configuration file as a JSON configuration file.
[0009] Optionally, in one embodiment of the present application, the network device includes a cloud and a controller; the configuration with the device to be connected according to the JSON configuration file specifically includes: the cloud sends the JSON configuration file to the controller through a communication protocol; when the controller updates its own configuration according to the JSON configuration file, the cloud receives the configuration feedback information sent by the controller, and determines that the configuration with the device to be connected has been completed according to the configuration feedback information.
[0010] Optionally, in one embodiment of the present application, the generating of the control instruction specifically includes: responding to a control operation on a network device interface, identifying an operation instruction corresponding to the control operation; and formatting the operation instruction into a JSON format to obtain a control instruction.
[0011] Optionally, in one embodiment of the present application, the control instruction is sent to the device to be connected so that the device to be connected performs a corresponding operation or function according to the control instruction, specifically: the control instruction is sent to the device to be connected through a communication protocol, so that after the device to be connected parses the received control instruction, it triggers the device to be connected to complete the corresponding operation or function.
[0012] Optionally, in one embodiment of the present application, the control instruction is sent to the device to be connected so that the device to be connected performs a corresponding operation or function according to the control instruction, and then also includes: receiving instruction feedback data sent by the device to be connected, and obtaining instruction execution data based on the instruction feedback data.
[0013] A second aspect of the embodiment of the present application further provides a system for implementing universal access management based on a physical model, wherein the system for implementing universal access management based on a physical model includes:
[0014] A configuration information acquisition module, used to acquire input information of the device to be connected, wherein the hardware interface or protocol type adopted by the device to be connected and the network device is saved in JSON format;
[0015] A configuration file generation module, used to generate a JSON configuration file according to the input information, wherein the format of the JSON configuration file is a lightweight data interaction format;
[0016] An instruction generation module, used for generating a control instruction after completing the configuration with the device to be connected according to the JSON configuration file;
[0017] The instruction sending execution and information receiving processing module is used to send the control instruction to the device to be connected, so that the device to be connected performs the corresponding operation or function according to the control instruction, and receives the notification information actively reported by the device to be connected.
[0018] A third aspect of an embodiment of the present application further provides a network device, wherein the network device comprises: a memory, a processor, and a physical model-based universal access management implementation program stored on the memory and executable on the processor, wherein the physical model-based universal access management implementation program, when executed by the processor, implements the steps of the physical model-based universal access management implementation method as described above.
[0019] The fourth aspect of an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a universal access management implementation program based on a physical model, and when the universal access management implementation program based on a physical model is executed by a processor, the steps of the universal access management implementation method based on a physical model as described above are implemented.
[0020] Beneficial effect: The present invention provides a method, system and network device for implementing universal access management based on a physical model. In the method, the hardware interface or protocol type used is JSON, and the acquired hardware configuration information is used to generate a JSON configuration file corresponding to the device to be connected. The cloud user sends instructions to trigger specific commands, so that by using the JSON configuration file, the functions and behaviors of the device can be flexibly and accurately defined and updated without physical contact with the device (only the corresponding hardware connection needs to be made first), and the cloud can edit the JSON configuration file (the edited configuration file can also be directly imported), allowing the user to change the properties, functions and behaviors of the device at any time as needed, thereby realizing dynamic configuration of the device and improving the efficiency of accessing the device to the Internet of Things. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 It is a schematic diagram of the system architecture of a preferred embodiment of the method for implementing universal access management based on a physical model of the present application;
[0023] Figure 2 It is a flowchart of a preferred embodiment of the method for implementing universal access management based on the object model of the present application;
[0024] Figure 3 It is a structural diagram of a preferred embodiment of the system for implementing universal access management based on a physical model of the present application;
[0025] Figure 4 This is a schematic diagram of the structure of a preferred embodiment of the network device of the present application.
[0026] Description of reference numerals:
[0027] 10. Universal access management implementation system based on object model; 100. Configuration information acquisition module; 200. Configuration file generation module; 300. Instruction generation module; 400. Instruction sending execution and information receiving processing module.
[0028] The above drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical scheme and effect of the present invention clearer and more specific, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The described embodiments are only possible technical implementations of the present invention, not all possible implementations. Based on the embodiments of the present invention, those skilled in the art can completely combine the embodiments of the present invention to obtain other embodiments without creative work, and these embodiments are also within the scope of protection of the present invention.
[0030] In the related technologies, traditional IoT device configuration may require manual settings or be performed through specific software, which may make the configuration process time-consuming and inflexible; devices from different manufacturers may use different communication protocols and data formats, resulting in poor interoperability between devices; once a device is deployed, modifying its configuration or function may require physical access to the device or through complex processes; for users, managing and maintaining a large number of IoT devices may be complex and difficult, especially when it comes to remote configuration and monitoring of devices.
[0031] First, the terms involved in the embodiments of the present invention are introduced:
[0032] JSON (JavaScript Object Notation) is a lightweight data exchange format that uses a text format that is completely independent of programming languages to store and represent data. JSON is designed to be easy for humans and machines to read and write, and also easy for machines to parse and generate. The official Internet media type of JSON is application / json. The syntax of JSON is very concise, and it mainly contains two structures: objects and arrays. A JSON object is a collection of key-value pairs, while a JSON array is a collection of ordered values. In the implementation method of IoT universal access management based on the object model, JSON is used as a hardware interface or protocol type, which means that the system's hardware configuration information and the device's function definition are expressed and transmitted in JSON format.
[0033] Hardware interfaces or protocol types are technical standards used for communication and data transmission in IoT devices; they are closely related to the interaction with the cloud and the devices to be connected, affecting the operating efficiency and stability of the entire system. In the Internet of Things (IoT) ecosystem, hardware interfaces or protocol types are key technologies to ensure that different devices can communicate effectively. These interfaces and protocols enable the devices to be connected to exchange data with cloud services, thus facilitating diverse application scenarios such as remote monitoring, intelligent control, and big data analysis. The applicability of hardware interfaces or protocol types is not limited to specific transmission media. For example, wireless communication technologies such as Wi-Fi, Bluetooth, Zigbee, and LoRa all use different protocols according to their own characteristics to adapt to different network requirements and conditions. In general, hardware interfaces and protocol types are the basis for the interconnection and interoperability of IoT devices, and they are directly related to the efficient and stable interaction with the cloud and the devices to be connected.
[0034] In an embodiment of the present application, the hardware configuration information of the user of the device to be connected is first collected, and a configuration file in JSON format is generated for each device, which contains the configuration parameters and function definitions of the device. The cloud user can send instructions to trigger specific operations or functions on the device. After receiving the instructions from the cloud, the device parses the instructions and finds the corresponding object model (i.e., the function definition of the device) in its JSON configuration file, and then executes the corresponding operation or function.
[0035] The embodiments of the present application can improve flexibility and scalability. By using JSON configuration files, the functions and behaviors of the device can be flexibly defined and modified without physical contact with the device. The cloud-editable JSON configuration files allow users to change the functions and behaviors of the device at any time as needed, thereby realizing dynamic configuration of the device. The device access management configuration is combined with cloud command input to simplify the device access and management process. Users can easily manage and configure devices through the cloud platform, which improves user experience. Using standardized JSON format as the data format for communication and configuration helps to improve compatibility and interoperability between different devices.
[0036] Secondly, the following will be combined with the attached Figure 1 , the system architecture of the embodiments of the present application is introduced.
[0037] The network equipment includes the cloud and the controller. The cloud is used to configure the devices to be connected. The cloud is used to edit json / graphical interface input information (hardware information or business-related information). The controller interacts with the cloud, and the controller reads / writes with the devices to be connected. The devices to be connected can also report data information to the controller device on demand, thereby completing the active reporting of data (according to the user's configuration, the device actively reports notification information, that is, event events).
[0038] The following describes the implementation method, system and network device of the universal access management based on the physical model of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the configuration of the IoT device in the above-mentioned related technology needs to be manually set or performed through specific software, resulting in a relatively time-consuming configuration process, the present application provides a method for implementing universal access management based on the physical model. In this method, the hardware interface or protocol type used is JSON, and the acquired hardware configuration information is used to generate a JSON configuration file corresponding to the device to be connected. The cloud user sends instructions to trigger specific commands, so that by using the JSON configuration file, the properties, functions and behaviors of the device to be connected can be flexibly defined and modified without physical contact with the device, and the JSON configuration file editable in the cloud allows the user to change the function and behavior of the device at any time as needed, thereby realizing dynamic configuration of the device and improving the efficiency of the device to be connected to the Internet of Things. As a result, the technical problem that the configuration of the IoT device in the related technology needs to be manually set or performed through specific software, resulting in a relatively time-consuming configuration process is solved.
[0039] The hardware interface / protocol type used is json / . The hardware configuration information input by the user of the device to be connected is obtained, and then the json configuration files of different devices are configured. The cloud user sends instructions to trigger specific commands, and the device to be connected finds the corresponding object model action / function / event in the json configuration according to the command data in the cloud to respond. In the embodiment of the present application, the device to be connected accesses the management configuration json+cloud command input, and the cloud can edit the json configuration to achieve dynamic configuration.
[0040] It should be noted that in the embodiments of the present application, 1. The physical medium for device access includes wireless / wired, wireless: short distance (Bluetooth, WIFI), mobile network (with the help of base station transit); wired: network cable, USB, serial port. 2. Contents of dynamic configuration: 1) It is necessary to configure the corresponding physical interface and the corresponding physical protocol (such as serial port: TTL or 485); 2) Business functions (read, write, device reporting events), which are optional according to specific services. 3. After the configuration is completed, the device will have the ability to access the controller. Whether to access immediately (or delay enabling access) is set according to demand. 4. After access, the business protocols and transmission protocols for data interaction are different. The embodiments of the present application mainly involve two aspects: 1) Dynamic configuration: users configure relevant access information / enter business operations according to their own device type and business; 2) Configuration method: cloud input + direct import of json file.
[0041] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0042] The method for implementing universal access management based on object model described in the preferred embodiment of the present invention is as follows: Figure 2 As shown, the method for implementing universal access management based on object model includes the following steps:
[0043] In step S101, input information of a device to be connected is obtained, wherein the hardware interface or protocol type adopted by the device to be connected and the network device is JSON.
[0044] Specifically, the input information includes hardware configuration information and business operation information; the hardware configuration information includes device model, functional characteristics and connection method. First, it is necessary to collect hardware configuration information from the user of the device to be connected. The user of the device to be connected may be the owner or operator of the device, and they provide key information about the device model, functional characteristics, connection method, etc.; then, the user can input this information in a variety of ways, such as through the interface of the electronic device (such as USB, Bluetooth, etc.), through the network interface (such as Web form), or through mobile applications, etc. The input method should be simple and easy to use to ensure that the user can seamlessly provide the required information; after receiving the information entered by the user, the information will be preliminarily checked and processed to ensure the integrity and accuracy of the information, for example, check whether the format of the information is correct, whether there are any required items missing, etc.; in some cases, the user may be asked to confirm the input information to avoid problems caused by incorrect information in the subsequent process. This can be achieved through a simple confirmation interface or email confirmation.
[0045] In a possible implementation, after the input information is acquired, the input information is verified, and the hardware configuration information that passes the verification is stored, so as to connect the device to be connected to the network device.
[0046] Specifically, the hardware configuration information that has been confirmed to be correct will be stored. This information is usually saved in a database or configuration file for subsequent use. During the entire process of information collection and processing, it is necessary to ensure the security of user information and prevent data leakage or unauthorized access. Once the hardware configuration information is successfully collected and stored, it will be used to generate a JSON configuration file for a specific device. This file will guide the device to be connected on how to connect to the system and perform subsequent operations. It will also provide feedback to the user to inform them that the configuration information has been successfully received and processed, as well as the next steps. With the correct configuration information, the device to be connected can be activated and connected to the system to start its intended functions and operations.
[0047] In general, obtaining the hardware configuration information input by the user of the device to be connected is a complex process involving multiple aspects such as user interaction, data processing, information confirmation and security to ensure that the device can be successfully connected and work normally.
[0048] It should be noted that in the implementation method of IoT universal access management based on the object model, the hardware interface or protocol type used by the cloud and the device to be connected is JSON. JSON as a hardware interface / protocol type: In the embodiment of the present application, JSON is not only used as a data exchange format, but also as a hardware interface or protocol type, which means that all hardware configuration information, device function definitions, and communications between the cloud and the device to be connected are carried out in JSON format.
[0049] First, collect hardware configuration information from users of the devices to be connected. This information is expressed in JSON format and may include key information such as the device model, features, and connection method; configure JSON configuration files for different devices and generate a JSON configuration file for each device. This file records in detail the various configuration parameters and functions of the device and provides clear guidance for the operation of the device; cloud users send instructions to trigger specific commands: After the device configuration is completed, cloud users (such as system administrators or automation programs) can trigger specific operations or functions on the device by sending instructions in JSON format. These instructions are sent through the user interface or API interface of the cloud platform; the device to be connected responds according to the instruction data from the cloud: When the device to be connected receives JSON instructions from the cloud, it parses these instructions and finds the corresponding device model (i.e., the function definition of the device) in its JSON configuration file. Then, the device performs the corresponding operation or function according to the instructions.
[0050] In step S102, a JSON configuration file is generated according to the input information, wherein the format of the JSON configuration file is a lightweight data interaction format.
[0051] In one implementation, the JSON configuration file includes JSON configuration file configuration parameters and function definitions; based on the hardware configuration information or the business operation information, an initial configuration file corresponding to the device to be connected is generated according to preset standards and models; the pre-established object model is integrated into the initial configuration file, the initial configuration file is verified, and the verified initial configuration file is used as the JSON configuration file.
[0052] Specifically, the hardware configuration information of the users of the devices to be connected has been collected in the previous steps. This information includes the device model, functional characteristics, connection method, etc., which are the basis for configuring the devices; based on the collected hardware configuration information, a JSON format configuration file is generated for each specific device. This configuration file records in detail the key information such as the device's configuration parameters, function definitions, and operation instructions; to ensure compatibility and interoperability between different devices, the system will generate configuration files according to preset standards and models, which may involve converting and mapping user input information to conform to internal data models and exchange formats; the object model is an abstract model that describes the behavior and functions of the device. It defines the operations and events that the device can perform. The system integrates the object model into the JSON configuration file to ensure that the device can execute according to the cloud instructions. Corresponding operations; before the configuration file is used by the device, the system will verify the file content to ensure its accuracy and completeness, which may include syntax checking, model verification, and dependency checking; after verification, the configuration file is distributed to the corresponding device, which can be completed through various communication protocols such as HTTP, MQTT, etc., depending on the connection method of the device; once the device receives the configuration file, it will update its own configuration to reflect the latest settings and functions. This process may require the device to restart or reconnect for the configuration to take effect; it can receive feedback information from the device to confirm that the configuration file has been correctly received and applied. If any problems occur during the configuration process, recovery and error handling mechanisms need to be provided; it may also provide the ability to dynamically update the configuration file, allowing cloud users to edit and optimize the configuration to adapt to changing needs.
[0053] In other words, the process of generating and distributing JSON configuration files for different devices based on the hardware configuration information provided by the user of the device to be connected ensures that the device can respond and operate correctly according to the instructions from the cloud.
[0054] It is understandable that JSON itself is not a communication protocol, but a data exchange format. In the Internet of Things (IoT) system, communication protocols are used for data transmission between devices and the cloud. Common communication protocols include MQTT, CoAP, HTTP, etc. These protocols define how data is transmitted in the network, including data encapsulation, transmission control, error checking and correction, etc.
[0055] Here are the detailed instructions:
[0056] JSON as a data format: JSON (JavaScript Object Notation) is a lightweight data exchange format that is text-based and easy for humans to read and write, as well as easy for machines to parse and generate. JSON is often used to represent structured data and configuration files. The relationship between JSON and communication protocols: In actual IoT applications, although JSON is used as a data format, communication protocols such as MQTT, CoAP, and HTTP are still needed for data transmission. These protocols are responsible for various details in the process of sending, receiving, and processing data, and JSON is used as an effective data carrier to exchange data on these protocols.
[0057] In the IoT access management method, different device JSON configuration files of the system configuration need to be distributed to each device to be connected through an appropriate communication protocol. This process may involve the following steps:
[0058] Configuration files (in JSON format) are sent from the cloud or configuration network device to the controller via communication protocols (such as MQTT, HTTP); the controller uses the corresponding communication protocol to receive these configuration files; the controller parses the received JSON data and updates its configuration or performs corresponding operations accordingly. In other words, although JSON plays an important role in the configuration management of IoT devices as a hardware interface or protocol type, when distributing configuration files, it is also necessary to rely on communication protocols such as MQTT and HTTP to complete the actual data transmission task.
[0059] In step S103, after the configuration with the device to be connected is completed according to the JSON configuration file, a control instruction is generated.
[0060] In one implementation, the cloud sends the JSON configuration file to the controller through a communication protocol; when the controller updates its own configuration according to the JSON configuration file, the cloud receives the configuration feedback information sent by the controller, and determines that the configuration with the device to be connected has been completed according to the configuration feedback information; responds to the control operation for the network device interface, identifies the operation instruction corresponding to the control operation; formats the operation instruction into JSON format to obtain the control instruction. It can be understood that the json file is sent to the controller, the controller parses the relevant information, connects with the device to be connected, reads, writes, reports events, etc.
[0061] Specifically, before a cloud user can send instructions, some form of authentication is usually required. This ensures that only authorized users can interact with the device; authenticated users can generate instructions through a cloud interface (such as a web console, mobile app, or API), which define the specific operations or functions that the user wants to perform on the device to be connected; the generated instructions will be formatted in JSON format that meets the system requirements. This process may include encoding, packaging, and other necessary data processing steps to ensure that the instructions can be correctly parsed and executed.
[0062] In step S104, the control instruction is sent to the device to be connected, so that the device to be connected performs a corresponding operation or function according to the control instruction.
[0063] In one implementation, the control instruction is sent to the device to be connected through a communication protocol, so that after the device to be connected parses the received control instruction, the device to be connected is triggered to complete the corresponding operation or function. Instruction feedback data sent by the device to be connected is received, and instruction execution data is obtained according to the instruction feedback data.
[0064] Specifically, the formatted JSON instructions are sent from the cloud to the specified controller through the selected communication protocol (such as HTTP, MQTT, etc.). The transmission process needs to ensure the security and integrity of the instructions to prevent data leakage or tampering. After receiving the JSON instructions from the cloud, the controller will decode and verify them to ensure the legality and validity of the instructions. The device parses the received JSON instructions and extracts the object model action / function information. The object model defines the operations and functions that the device can perform. The device understands what specific operations need to be performed based on this information. Once the instruction is parsed, the device will perform the corresponding operation or function, which may include starting a device, adjusting parameters, collecting data, etc. After the operation is executed, the device may generate feedback information and send the results back to the cloud through the same or another communication channel. The system may record the sending, receiving and execution details of all instructions for monitoring device status, troubleshooting and performance optimization. If an error occurs in any step (such as instruction transmission failure, abnormal device response, etc.), the system needs to have a corresponding error handling mechanism to ensure the robustness and reliability of the process.
[0065] That is to say, through the above steps, in the embodiment of the present application, cloud users can conveniently control and manage remote devices by sending instructions in JSON format to trigger and execute specific commands. This process not only improves the flexibility of the system and the user's operating convenience, but also ensures the safety and accuracy of device operation.
[0066] The above-mentioned object model-based universal access management implementation method of the present invention is further described below through specific embodiments:
[0067] Hardware interface / protocol type: In this method, the hardware interface or protocol type used is JSON.
[0068] K1, obtain the hardware configuration information input by the user of the device to be connected: First, the system will obtain the hardware configuration information from the user of the device to be connected. This information may include the model, function, connection method, etc. of the device.
[0069] K2, the system configures different JSON configuration files for different devices: Based on the acquired hardware configuration information, the system will generate a corresponding JSON configuration file for each device. This file contains the configuration parameters and function definitions of the device.
[0070] K3, cloud users send instructions to trigger specific commands: Once the device is configured, cloud users can send instructions to trigger specific operations or functions. These instructions may be sent through the cloud platform's user interface or API interface.
[0071] K4, the device to be connected finds the corresponding object model action / function in the JSON configuration according to the command data from the cloud and responds: When the device to be connected receives the command from the cloud, it will parse the command and find the object model (i.e. the function definition of the device) in the corresponding JSON configuration file. Then, the device will perform the corresponding operation or function according to the command.
[0072] In this embodiment, device access management configuration JSON + cloud command input: This method combines device access management configuration with cloud command input. This means that users can dynamically configure the functions and behaviors of the device by editing the JSON configuration file and trigger these functions and behaviors through cloud commands.
[0073] The cloud can edit JSON configuration to achieve dynamic configuration: In addition to combining device access management configuration JSON with cloud command input, this method also allows cloud users to edit JSON configuration files. In this way, users can change the function and behavior of the device at any time according to their needs to achieve dynamic configuration.
[0074] Next, the object model-based universal access management implementation system proposed in accordance with an embodiment of the present application will be described with reference to the accompanying drawings.
[0075] Figure 3 It is a block diagram of a system for implementing universal access management based on a physical model according to an embodiment of the present application.
[0076] like Figure 3As shown, the object model-based universal access management implementation system 10 includes: a configuration information acquisition module 100, a configuration file generation module 200, an instruction generation module 300 and an instruction sending execution and information receiving processing module 400.
[0077] Specifically, the configuration information acquisition module 100 is used to obtain input information of the device to be connected, wherein the hardware interface or protocol type adopted by the device to be connected and the network device is saved in JSON format;
[0078] The configuration file generating module 200 is used to generate a JSON configuration file according to the input information, wherein the format of the JSON configuration file is a lightweight data interaction format;
[0079] An instruction generation module 300 is used to generate a control instruction after completing configuration with the device to be connected according to the JSON configuration file;
[0080] The instruction sending and executing and information receiving processing module 400 is used to send the control instruction to the device to be connected, so that the device to be connected performs the corresponding operation or function according to the control instruction, and receives the notification information actively reported by the device to be connected.
[0081] Figure 4 A schematic diagram of the structure of a network device provided in an embodiment of the present application. The network device may include:
[0082] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0083] When the processor 502 executes the program, the method for implementing universal access management based on the object model provided in the above embodiment is implemented.
[0084] Furthermore, the network device also includes:
[0085] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0086] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0087] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0088] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EIS) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0089] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0090] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0091] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for implementing universal access management based on a physical model as described above is implemented.
[0092] One embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the present application Figure 1 A method for implementing universal access management based on a physical model is provided in any of the corresponding embodiments.
[0093] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0094] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0095] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0096] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer memory.
[0097] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0098] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0099] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0100] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0101] It should be understood that the application of the present application is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to this application.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for implementing universal access management based on a physical model, characterized in that: Applied to network equipment, the method for implementing universal access management based on object model includes: Obtain input information of the device to be connected, wherein the hardware interface or protocol type adopted by the device to be connected and the network device is saved in JSON format; Generate a JSON configuration file according to the input information, wherein the format of the JSON configuration file is a lightweight data interaction format; After completing the configuration according to the JSON configuration file and the device to be connected, generating a control instruction; The control instruction is sent to the device to be connected, so that the device to be connected performs a corresponding operation or function according to the control instruction, and receives notification information actively reported by the device to be connected.
2. The method for implementing universal access management based on object model according to claim 1, characterized in that: The step of obtaining input information of the device to be connected further includes: The input information is verified, and the input information that passes the verification is stored, so as to connect the device to be connected to the network device.
3. The method for implementing universal access management based on object model according to claim 1, characterized in that: The input information includes hardware configuration information and business operation information; Generating a JSON configuration file according to the input information specifically includes: Generate an initial configuration file corresponding to the device to be connected according to the hardware configuration information or the service operation information and the preset standard and model; The pre-established object model is integrated into the initial configuration file, the initial configuration file is verified, and the verified initial configuration file is used as the JSON configuration file.
4. The method for implementing universal access management based on object model according to claim 3, characterized in that: The network device includes a cloud and a controller; The configuring the device to be connected according to the JSON configuration file specifically includes: The cloud sends the JSON configuration file to the controller via a communication protocol; When the controller updates its own configuration according to the JSON configuration file, the cloud receives configuration feedback information sent by the controller, and determines that the configuration with the device to be connected has been completed according to the configuration feedback information.
5. The method for implementing universal access management based on object model according to claim 1, characterized in that: The generating control instruction specifically includes: In response to a control operation on a network device interface, identifying an operation instruction corresponding to the control operation; The operation instruction is formatted into JSON format to obtain a control instruction.
6. The method for implementing universal access management based on object model according to claim 1, characterized in that: The sending of the control instruction to the device to be connected so that the device to be connected performs a corresponding operation or function according to the control instruction is specifically: The control instruction is sent to the device to be connected through a communication protocol, so that after the device to be connected parses the received control instruction, the device to be connected is triggered to complete a corresponding operation or function.
7. The method for implementing universal access management based on object model according to claim 1, characterized in that: The step of sending the control instruction to the device to be connected so that the device to be connected performs a corresponding operation or function according to the control instruction further includes: Receive instruction feedback data sent by the device to be connected, and obtain instruction execution data according to the instruction feedback data.
8. A universal access management implementation system based on a physical model, characterized in that: The object model-based universal access management implementation system includes: A configuration information acquisition module, used to acquire input information of the device to be connected, wherein the hardware interface or protocol type adopted by the device to be connected and the network device is saved in JSON format; A configuration file generation module, used to generate a JSON configuration file according to the input information, wherein the format of the JSON configuration file is a lightweight data interaction format; An instruction generation module, used for generating a control instruction after completing the configuration with the device to be connected according to the JSON configuration file; The instruction sending execution and information receiving processing module is used to send the control instruction to the device to be connected, so that the device to be connected performs the corresponding operation or function according to the control instruction, and receives the notification information actively reported by the device to be connected.
9. A network device, characterized in that: The network device includes: a memory, a processor, and a physical model-based universal access management implementation program stored in the memory and executable on the processor. When the physical model-based universal access management implementation program is executed by the processor, the steps of the physical model-based universal access management implementation method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a physical model-based universal access management implementation program, and when the physical model-based universal access management implementation program is executed by a processor, the steps of the physical model-based universal access management implementation method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Energy storage EMS industrial controller data processing method and system based on JSON file
CN120762774A
Multi-tenant industrial big data acquisition method and device based on dynamic protocol adaptation
CN121125863A
