A JSON-based power distribution terminal liquid crystal dynamic interface layered display architecture

By adopting a JSON-based layered display architecture, the decoupling of the power distribution terminal LCD interface and the hardware platform is achieved, solving the problem of complex development and maintenance of traditional interfaces, improving interface response speed and flexibility, and making it suitable for power Internet of Things scenarios.

CN120848834BActive Publication Date: 2026-02-03BEIJING QINGCHANG POWER TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511000246.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2026-02-03
Estimated Expiration
2045-07-21

AI Technical Summary

Technical Problem

Traditional power distribution terminal LCD interface development is tightly coupled with hardware platform, resulting in high development and maintenance costs, complex interface updates and slow response, which cannot meet the human-computer interaction needs in the power Internet of Things scenario.

Method used

It adopts a JSON-based layered display architecture, including an input layer, a processing layer, and an output layer. The interface and hardware platform are decoupled through a JSON data parsing and database module and a multi-level view navigation controller module. It supports interface modifications without re-flashing the firmware and adopts a view rendering and business logic separation mechanism to improve real-time response.

Benefits of technology

It achieves flexibility in interface development and efficient maintenance, reduces costs, improves the real-time responsiveness of the interface, and meets the requirements of efficient human-computer interaction in the power Internet of Things scenario.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120848834B_ABST
    Figure CN120848834B_ABST
Patent Text Reader

Abstract

The application provides a JSON-based power distribution terminal liquid crystal dynamic interface layered display architecture and relates to the technical field of power distribution terminals, which comprises an input layer, a processing layer and an output layer, the input layer is used for acquiring external data, receiving a JSON configuration file and real-time working condition data, and the input layer comprises a JSON data analysis and warehousing module and a multi-level view navigation controller module; the processing layer is used for deep processing and page scheduling of the data of the input layer, and the output layer displays data by calling a bottom drive program of the liquid crystal; the interface elements, navigation logic and the like are defined in the form of a JSON configuration, so that the design and modification of the interface no longer depend on specific codes of hardware platforms, developers can realize the update and function expansion of the interface by modifying the JSON configuration file without modifying the hardware bottom code, and the flexibility of interface development is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power distribution terminal technology, and in particular to a layered display architecture for a dynamic LCD interface of a power distribution terminal based on JSON. Background Technology

[0002] In the process of intelligent development of power systems, the performance of the LCD interface of the distribution terminal is of paramount importance as a key hub connecting the distribution network and operation and maintenance personnel.

[0003] Traditional development of LCD interfaces for power distribution terminals suffers from numerous limitations. On the one hand, interface development is tightly coupled with the hardware platform. When adapting to different hardware platforms, developers have to rewrite a large amount of code for the new hardware features, which not only consumes a lot of manpower and time but also easily introduces new errors, seriously affecting the equipment's development progress. On the other hand, once modifications to the LCD interface are needed, even simple adjustments to the interface layout or functional optimizations, firmware reprogramming is required. Reprogramming firmware is a complex operation that requires specialized equipment and personnel, and there is a risk that reprogramming failure will cause the device to malfunction, greatly increasing the difficulty and cost of interface updates and maintenance. In addition, in traditional architectures, view rendering and business logic are intertwined, resulting in slow response times when processing real-time operating data, which cannot meet the requirements of fast and efficient human-machine interaction for power distribution terminals in the context of the Internet of Things. Therefore, this invention proposes a layered display architecture for dynamic LCD interfaces of power distribution terminals based on JSON to solve the problems existing in the prior art. Summary of the Invention

[0004] To address the aforementioned issues, this invention proposes a layered display architecture for a dynamic LCD interface of a power distribution terminal based on JSON. Through innovative architectural design, it decouples the development of the power distribution terminal LCD interface from the hardware platform, solving the problem of rewriting code when developing LCDs for different hardware platforms. At the same time, it overcomes the technical challenge of re-flashing firmware when modifying the LCD interface, reducing the cost of interface update and maintenance. Furthermore, through a mechanism that separates view rendering from business logic, it improves the real-time responsiveness of the interface, providing a highly adaptable human-computer interaction solution for power Internet of Things scenarios.

[0005] To achieve the objectives of this invention, the invention is implemented through the following technical solution: a layered display architecture for a dynamic LCD interface of a power distribution terminal based on JSON, comprising an input layer, a processing layer and an output layer. The input layer is used to acquire external data, receive JSON configuration files and real-time operating data, and includes a JSON data parsing and database entry module and a multi-level view navigation controller module.

[0006] The processing layer is used to perform in-depth processing and page scheduling on the data from the input layer. The output layer displays the interface data generated by the processing layer on the LCD screen of the power distribution terminal in real time by calling the underlying driver of the LCD.

[0007] Further improvements are made in that: the JSON data parsing and storage module is used to realize the standardized parsing and storage of configuration data. Through the JSON configuration specification, various information on the LCD interface of the power distribution terminal is converted into a structured JSON format. When the JSON configuration file is received, the JSON data parsing and storage module calls the cJSON library of the C language to scan and parse the file line by line, extract the valid information, and store it in the system's database or cache after standardization, so as to provide data support for subsequent processing.

[0008] A further improvement is that the JSON data parsing and database entry module decouples the development of the power distribution terminal LCD interface from the hardware platform by defining interface elements, navigation logic, and dynamic variables as structured JSON configurations.

[0009] A further improvement is that the multi-level view navigation controller module is used to receive real-time operating condition data, which is collected in real time by various sensors of the power distribution terminal to reflect the current operating status of the power distribution equipment.

[0010] Further improvements are made in that the JSON data parsing and database loading module and the multi-level view navigation controller module are used to implement interface modification and remote configuration hot reloading functions.

[0011] A further improvement is that the multi-level view navigation controller module adopts a state machine-driven mechanism, and each state of the state machine corresponds to a specific interface view level. When the scheduling instruction of the multi-level view navigation controller module is received, the state machine calls different interface levels.

[0012] Further improvements are made in that: the processing layer includes an interface stack management module and a view rendering module. The interface stack management module supports depth-first traversal of the interface stack. When performing interface operations, the interface stack is built according to the order of interface calls. Each time the interface is switched, the previous interface is pushed onto the stack. When a return operation is performed, the innermost interface is returned first.

[0013] Further improvements include: the view rendering module adopts a mechanism that separates view rendering from business logic to improve the real-time responsiveness of the interface and support the function of independently handling a large number of interface update requests.

[0014] A further improvement is that the processing layer has a context-aware jump function, which is used to select the most suitable jump target by combining the current interface's operation context and working condition data.

[0015] Further improvements are made in the following aspects: In the output layer, the underlying driver of the liquid crystal is used to convert digital signals into analog signals required for liquid crystal display, control the arrangement and deflection of liquid crystal molecules, thereby realizing image and text display. The output layer has a real-time refresh function, which is used to dynamically adjust the refresh frequency according to the frequency of change of operating data and interface display requirements, so as to ensure that users can obtain the latest equipment operation information in a timely manner.

[0016] The beneficial effects of this invention are as follows:

[0017] 1. This invention defines interface elements and navigation logic in the form of JSON configuration, so that the design and modification of the interface no longer depend on the specific code of the hardware platform. Developers can update the interface and expand its functions by modifying the JSON configuration file without modifying the underlying hardware code, which greatly improves the flexibility of interface development.

[0018] 2. This invention allows for interface modification without re-flashing the firmware, reducing the need for professional personnel and specific equipment, and lowering maintenance time and costs. At the same time, the remote configuration hot-loading function enables maintenance personnel to directly update the JSON configuration file remotely via the network, achieving real-time interface updates and further improving maintenance efficiency.

[0019] 3. This invention adopts a view rendering and business logic separation mechanism, which makes the interface rendering process more independent and efficient. When the operating data changes, the multi-level view navigation controller module can quickly schedule the corresponding view level according to the new data without reloading the entire business logic, thereby significantly improving the real-time performance of the interface response and better meeting the requirements of real-time human-computer interaction in the power Internet of Things scenario.

[0020] 4. This invention can flexibly configure interface elements and navigation logic according to the needs of different power distribution terminal hardware devices and power Internet of Things scenarios, realize diversified human-computer interaction interfaces, and provide strong support for intelligent monitoring and management of power systems. Attached Figure Description

[0021] Figure 1 This is a system block diagram of the present invention;

[0022] Figure 2 This is a flowchart illustrating the workflow of the JSON data parsing and database loading module of this invention.

[0023] Figure 3 This is a schematic diagram of the state machine driving mechanism of the multi-level view navigation controller module of the present invention. Detailed Implementation

[0024] To enhance understanding of the present invention, the present invention will be further described in detail below with reference to embodiments. These embodiments are only used to explain the present invention and do not constitute a limitation on the scope of protection of the present invention.

[0025] Example 1

[0026] according to Figure 1 , 2 As shown in Figure 3, this embodiment proposes a layered display architecture for a dynamic LCD interface of a power distribution terminal based on JSON, including an input layer, a processing layer, and an output layer.

[0027] The input layer is the entry point for the entire architecture to obtain external data. Its main function is to receive JSON configuration files and real-time operating data. Its core components are the JSON data parsing and database loading module and the multi-level view navigation controller module.

[0028] The JSON data parsing and database entry module transforms the interface elements, navigation logic, and dynamic variables of the power distribution terminal's LCD screen into structured JSON format through a unified and strict JSON configuration specification. Interface elements include attributes such as shape, size, color, position, and font style for elements like buttons, text boxes, and charts. Upon receiving the JSON configuration file, this module scans and parses the file line by line according to a preset parsing algorithm, extracting valid information and performing standardization processing before finally storing it in the system's database or cache. This provides a reliable data foundation for subsequent data processing and interface display. (See details in the documentation.) Figure 2 .

[0029] The multi-level view navigation controller module is responsible for receiving real-time operating data collected by various sensors in the power distribution terminal. This data reflects the current operating status of the power distribution equipment, laying the foundation for subsequent interface scheduling based on the operating data. The navigation logic includes the jump rules and trigger conditions between different interfaces; dynamic variables are associated with the real-time collected operating data, such as the display variables corresponding to data like voltage, current, and power.

[0030] The processing layer is the core processing unit of the architecture, undertaking the crucial tasks of deep processing of input layer data and page scheduling. Within the processing layer, the JSON data parsing and database loading module transfers the parsed valid information from temporary storage to the system's database or cache, employing efficient data indexing and storage strategies for rapid data retrieval and access. This provides strong data support for the multi-level view navigation controller module and subsequent interface rendering. The multi-level view navigation controller module uses a state machine-driven mechanism, internally maintaining a complex state machine model. Each state of the state machine corresponds to a specific interface view level, such as the normal operation monitoring view level, the fault alarm view level, and the equipment parameter setting view level. Upon receiving real-time operating data, this module analyzes and judges the data according to preset scheduling rules based on the power system's operating logic and human-machine interaction requirements. For example, when a device fault is detected, the state machine switches to the corresponding fault alarm view level according to the fault type and severity, following the scheduling rules. Furthermore, this module supports depth-first traversal of the interface stack. When a user performs an interface operation, the interface stack is built according to the order in which interfaces are called. When the user performs a back operation, the innermost interface is processed first, ensuring the rationality and consistency of the operation logic. Simultaneously, it features context-aware navigation, intelligently selecting the most appropriate navigation target based on the current interface's operation context (such as the type of operation the user is performing, operation progress, etc.) and operational data, avoiding unnecessary interface jumps and improving human-computer interaction efficiency. See the detailed process below. Figure 3 .

[0031] The main function of the output layer is to display the interface data generated by the processing layer in real time on the LCD screen of the power distribution terminal by calling the LCD's low-level driver. The LCD low-level driver is specially optimized to efficiently convert digital signals into analog signals required for LCD display, precisely controlling the alignment and deflection of liquid crystal molecules to achieve clear and stable image and text display. Simultaneously, the output layer supports real-time refresh, dynamically adjusting the refresh rate according to the frequency of changes in operating data and interface display requirements, ensuring users can obtain the latest equipment operating information promptly.

[0032] Furthermore, this architecture decouples the development of the power distribution terminal LCD interface from the hardware platform by defining interface elements, navigation logic, and dynamic variables as structured JSON configurations, making interface development no longer dependent on a specific hardware platform. With the help of the JSON data parsing and database module and the multi-level view navigation controller module, interface modifications can be completed without re-flashing the firmware, and remote configuration hot loading is supported, which greatly reduces the cost of interface update and maintenance. Through the separation mechanism of view rendering and business logic, the real-time response of the interface is improved, meeting the high requirements of human-computer interaction in the power Internet of Things scenario.

[0033] Example 2

[0034] according to Figure 1 , 2 As shown in Figure 3, this embodiment proposes a layered display architecture for the dynamic interface of a power distribution terminal LCD based on JSON. This architecture was adopted for LCD interface development in the company's power distribution terminal LCD upgrade project. First, the developers wrote a JSON configuration file based on the functional requirements of the power distribution terminal and the human-computer interaction design specifications. The configuration file designed the main monitoring interface, defining in detail the position, size, and font style of the real-time data display areas for voltage, current, and remote pulse. Simultaneously, navigation logic was defined, such as allowing users to jump to the device details interface when a button is pressed, with the jump condition set to the device being online. Dynamic variables related to the real-time acquired data were also defined, establishing a mapping relationship between the data and the display area.

[0035] The prepared JSON configuration file is transmitted to the power distribution terminal equipment via the network. After receiving the JSON configuration file, the equipment's input layer uses the JSON data parsing and storage module to parse the file using the C language cJSON library, extract the valid information, and store it in the system's database. Simultaneously, the multi-level view navigation controller module receives real-time operating condition data collected from voltage sensors, current sensors, and other sensors.

[0036] In the processing layer, the JSON data parsing and database loading module optimizes and stores the data in the database, establishing an efficient data index. The multi-level view navigation controller module analyzes real-time operational data according to preset scheduling rules. These rules are determined by the priority of each interface in the JSON file; higher priority means faster response time, and lower priority means slower response time. Higher-priority interfaces will preempt lower-priority interfaces. If two interfaces have the same priority, the one that pops up first will be executed first. Pages with the same priority will not preempt each other; they are executed sequentially. Fault events have the highest priority and will interrupt any currently running interface. Button switching interfaces have the next highest priority, parameter modification interfaces have the next lowest priority, and data refresh interfaces have the lowest priority and can be interrupted by any operation.

[0037] Table 1 below provides a simplified explanation of the configuration information for each part of the JSON file. This information only includes the main configuration details and does not cover all JSON configurations. It is presented here to clarify the entire JSON tree structure and does not list all configurations: The system configuration interface includes background color, font color, and refresh time in milliseconds; the data refresh interface includes telemetry, remote signaling, and remote pulse interfaces, all displaying values ​​to three decimal places; the parameter setting interface includes parameter setting, protection setting, and pressure plate interfaces, displaying data in voltage, current, or time formats; multi-layered nested subpages display fault event data, in log format (not real-time data), with a maximum of 100 records displayed (data exceeding 100 records will be overwritten), and a 24-hour timeframe (data older than 24 hours is not displayed); the fault event pop-up displays fault events, including voltage and current types, with customizable background colors; the interface response priority configuration specifies the display priority of each interface, and the multi-level view navigation controller module will schedule each interface according to this priority. For example, when the current in a certain line exceeds a set threshold, an overload fault is determined, and the scheduling rules drive the state machine to interrupt any currently running interface and switch to the fault alarm view level. In this level interface, information such as the faulty line, fault type, and fault occurrence time are prominently displayed, and audible and visual alarms are used to alert maintenance personnel.

[0038]

[0039] During user interaction, the multi-level view navigation controller module constructs a UI stack according to the order in which the UI is called, essentially creating a Last-In-First-Out (LIFO) list. This means that each time the user switches between UIs, the module stores the ID of the current UI in the stack. This list is primarily used to save the user's operation history, allowing them to return to the initial UI level by level after finishing their current action. For example, when the user clicks the back button, the navigation module uses the UI ID stored in the stack, following a LIFO approach, to return to the desired UI position.

[0040] The output layer calls the optimized LCD underlying driver to display the interface data generated by the processing layer on the LCD screen in real time. Since the interface display and data acquisition and analysis logic are performed in different threads, they interact via semaphores and buffers, eliminating task waiting. This means that view rendering and business logic are separated. When operating data changes frequently, the interface can quickly respond and update its display, ensuring that maintenance personnel obtain accurate equipment operating information promptly. In subsequent interface function updates, maintenance personnel do not need to go to the site; they can directly modify the JSON configuration file remotely via the network to expand the interface's functionality and adjust its layout. The entire process does not require re-flashing the firmware, greatly improving work efficiency.

[0041] The above demonstrates that this architecture effectively solves the problems existing in traditional power distribution terminal LCD interfaces, and has good practicality and promotional value.

[0042] This invention defines interface elements and navigation logic using JSON configuration, freeing interface design and modification from hardware platform-specific code. Developers can update the interface and expand functionality by modifying the JSON configuration file without altering the underlying hardware code, significantly improving interface development flexibility. Furthermore, this invention eliminates the need for firmware re-flashing, reducing the investment of professional personnel and specific equipment, lowering maintenance time and costs. The remote configuration hot-loading function allows maintenance personnel to update the JSON configuration file remotely via the network, achieving real-time interface updates and further improving maintenance efficiency. Simultaneously, this invention employs a view rendering and business logic separation mechanism, making the interface rendering process more independent and efficient. When operating data changes, the multi-level view navigation controller module can quickly schedule the corresponding view level based on the new data without reloading the entire business logic, significantly improving the real-time performance of the interface response and better meeting the real-time human-machine interaction requirements of power IoT scenarios. In addition, this invention can flexibly configure interface elements and navigation logic according to different power distribution terminal hardware devices and power IoT scenario needs, realizing diverse human-machine interaction interfaces and providing strong support for intelligent monitoring and management of power systems.

[0043] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.

Claims

1. A layered display architecture for a power distribution terminal LCD dynamic interface based on JSON, comprising an input layer, a processing layer, and an output layer, characterized in that: The input layer is used to acquire external data, receive JSON configuration files and real-time operating condition data, and includes a JSON data parsing and database module and a multi-level view navigation controller module. The JSON data parsing and database module defines interface elements, navigation logic and dynamic variables as structured JSON configurations to decouple the development of the power distribution terminal LCD interface from the hardware platform. The dynamic variables are associated with the real-time collected operating condition data. The multi-level view navigation controller module is used to receive real-time operating condition data. The processing layer is used to perform in-depth processing and page scheduling on the data of the input layer; the output layer displays the interface data generated by the processing layer in real time on the LCD screen of the power distribution terminal by calling the underlying driver of the LCD; the multi-level view navigation controller module adopts a state machine driving mechanism, and each state of the state machine corresponds to a specific interface view level. When the scheduling instruction of the multi-level view navigation controller module is received, the state machine calls different interface levels. The processing layer includes an interface stack management module and a view rendering module. The interface stack management module supports depth-first traversal of the interface stack. During interface operations, the interface stack is built according to the order of interface calls. Each time an interface switches, the previous interface is pushed onto the stack. When a return operation is performed, the innermost interface is returned first. The view rendering module adopts a mechanism that separates view rendering from business logic to improve the real-time response of the interface and supports the function of independently handling a large number of interface update requests. The processing layer has a context-aware jump function, which is used to select the most appropriate jump target by combining the current interface operation context and working data.

2. The hierarchical display architecture of a power distribution terminal LCD dynamic interface based on JSON as described in claim 1, characterized in that: The JSON data parsing and storage module is used to realize the standardized parsing and storage of configuration data. Through the JSON configuration specification, various information on the LCD interface of the power distribution terminal is converted into a structured JSON format. When the JSON configuration file is received, the JSON data parsing and storage module calls the cJSON library of the C language to scan and parse the file line by line, extract the valid information, and store it in the system's database or cache after standardization, so as to provide data support for subsequent processing.

3. The hierarchical display architecture of a power distribution terminal LCD dynamic interface based on JSON as described in claim 1, characterized in that: The real-time operating data is collected in real time by various sensors in the power distribution terminal and is used to reflect the current operating status of the power distribution equipment.

4. The hierarchical display architecture of a JSON-based power distribution terminal LCD dynamic interface according to claim 1, characterized in that: The JSON data parsing and database loading module and the multi-level view navigation controller module are used to implement interface modification and remote configuration hot reloading functions.

5. The hierarchical display architecture of a power distribution terminal LCD dynamic interface based on JSON as described in claim 1, characterized in that: In the output layer, the liquid crystal's underlying driver is used to convert digital signals into analog signals required for liquid crystal display, and to control the arrangement and deflection of liquid crystal molecules, thereby realizing image and text display. The output layer has a real-time refresh function, which is used to dynamically adjust the refresh frequency according to the frequency of change of operating data and interface display requirements, so as to ensure that users can obtain the latest equipment operation information in a timely manner.

Citation Information

Patent Citations

  • Method for realizing complex navigation control logic by using state machine

    CN106483869A

  • Multi-level page routing skipping method and device, computer equipment and storage medium

    CN113064583A