Embedded device debugging system and method

Through the embedded device debugging system, the interaction between the server and the terminal device is used, combined with the database and XML configuration files, to solve the problems of operational difficulty and human resource investment in the debugging of quantum communication equipment, and realize simple and efficient debugging of device parameters and multi-device support.

CN118784472APending Publication Date: 2024-10-15NAT QUANTUM COMM (GUANGDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410845396.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing technology has problems of operational difficulty and high human resource investment in debugging quantum communication equipment, especially in the maintenance and debugging process of XML configuration files.

Method used

An embedded device debugging system is designed, including a server, embedded device control module and terminal equipment. It interacts with the back-end program module through the front-end page module, uses database queries and XML configuration files for device parameter debugging, and supports dynamic page generation and Data visualization, using the UDM module in FPGA for device update and debugging.

Benefits of technology

It realizes the simplification and efficiency of equipment debugging, saves debugging time, supports multi-device debugging, and improves operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784472A_ABST
    Figure CN118784472A_ABST
Patent Text Reader

Abstract

The invention discloses an embedded equipment debugging system, which comprises a server, an embedded equipment control module and terminal equipment, and is characterized in that the server comprises a front-end page module, a rear-end program module and a database; the terminal equipment comprises a processor and a general debugging module; the front-end page module inputs an operation instruction and sends the operation instruction to the back-end program module, and the back-end program module analyzes the operation instruction after receiving the instruction and performs corresponding operation according to an analysis result; and the terminal equipment carries out equipment parameter debugging operation, then sends the debugged equipment parameters to the embedded equipment control module, and sequentially enters the back-end program module and the front-end page module for refresh display. According to the method, the external server interacts with the embedded equipment control system to generate a dynamic page, so that equipment data visualization is realized; the UDM module in the FPGA is used for updating and debugging the equipment according to the XML configuration file, and the effects of being simple in debugging step, efficient and capable of saving debugging time are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equipment debugging, and in particular to an embedded equipment debugging system and method. Background Art

[0002] Quantum communication is the development direction of the new generation of communication applications and the industrial strategic development direction of the current major world economic landscape. The development of communication light sources and information carriers is an important sign of the communication revolution.

[0003] The scheduling, control and feedback of single photon sources and entangled light sources for quantum communication are one of the key engineering technologies for QKD and quantum communication networks. In the prior art, the XML configuration file is read and parsed by the server to dynamically generate the Web interface element information. This method only provides convenience in reading. When maintaining or adding, deleting and modifying operations, technicians are still required to operate the XML configuration file, and technicians are also required to debug the equipment according to the XML configuration file. In practice, this debugging method still has certain operational difficulties and certain human resource investment.

[0004] Run a web server that supports scripts or CGI functions on the embedded device to generate dynamic pages and monitor the embedded device through the browser. Running a web server directly on the device will have usage restrictions, add additional load to the device, and cause operational instability.

[0005] Therefore, it is necessary to improve the existing technology and propose an embedded device debugging system and method with simple operation and high debugging efficiency. Summary of the invention

[0006] In order to solve the above technical problems, a debugging system and method for embedded devices with simple operation and high debugging efficiency are proposed.

[0007] To achieve the above object, the technical solution adopted by the present invention is as follows: an embedded device debugging system, including a server, an embedded device control module and a terminal device, wherein:

[0008] The server includes a front-end page module, a back-end program module and a database;

[0009] The terminal device includes a processor and a general debugging module;

[0010] The front-end page module inputs the operation instruction and sends it to the back-end program module. After receiving the instruction, the back-end program module parses the operation instruction to obtain a parsing result 1, and performs the following operations according to the parsing result 1:

[0011] If the parsing result is to obtain the operation instruction, the query data is obtained through the database and fed back to the front-end page module;

[0012] If the parsing result is a system parameter modification instruction, the system data is modified;

[0013] If the first analysis result is a device configuration parameter debugging instruction, query data is obtained through a database query and the query data is sent to the control module of the embedded device for analysis to obtain a second analysis result;

[0014] The terminal device performs device parameter debugging operations according to the second analysis result, and sends the debugged device parameters to the embedded device control module. After receiving the data, the embedded device control module sends a debugging completion signal to the back-end program module. After receiving the debugging completion signal, the back-end program module updates the database and sends the data to the front-end page module to refresh the display.

[0015] Preferably, if the second parsing result is a terminal device parameter debugging instruction, the embedded device control module modifies the XML configuration file of the terminal device to obtain a modified XML configuration file and sends the debugging instruction to the terminal device.

[0016] Preferably, the terminal device includes a processor ARM and a universal debugging module UDM. After receiving the debugging instruction, the terminal device parses the debugging instruction through ARM and sends the parsed debugging instruction and the modified XML configuration file to the universal debugging module UDM. The UDM reads the modified XML configuration file and performs the modification operation and sends a debugging completion signal to ARM. After receiving the debugging completion signal, ARM sends a debugging completion signal to the embedded device control module.

[0017] Preferably, the embedded device control module periodically sends data acquisition instructions to the device, and the period is 0.5-2S.

[0018] A method for debugging an embedded device, using the above-mentioned embedded device debugging system, comprises the following steps:

[0019] Step 1: Add terminal device data to the database and deploy it on the server;

[0020] Step 2: The embedded device control module sends a control instruction to the terminal device;

[0021] Step 3: After receiving the control instruction, the terminal device parses the control instruction through a processor;

[0022] If the parsing result is a system parameter modification instruction, the system data is modified;

[0023] If the parsing result is a device configuration parameter debugging instruction, jump to step 4;

[0024] Step 4: query the database to obtain query data and send the query data to the control module of the embedded device for analysis to obtain the second analysis result;

[0025] The terminal device performs device parameter debugging operations according to the second analysis result, and sends the debugged device parameters to the embedded device control module. After receiving the data, the embedded device control module sends a debugging completion signal to the back-end program module. After receiving the debugging completion signal, the back-end program module updates the database and sends the data to the front-end page module to refresh the display.

[0026] Preferably, after receiving the control instruction, the processor ARM calls the universal debugging module UDM of the terminal device to obtain the device operation data, writes the operation data into the XML configuration file, and sends a debugging start signal to the embedded device control module.

[0027] Preferably, the embedded device control module receives and reads an XML configuration file, extracts data, and encapsulates the data using JSON data exchange, and the data is encapsulated and sent to a backend program;

[0028] The encapsulated data uses the attribute variable name as the key name and the attribute value as the value, and the combination of the two forms key-value pair data.

[0029] Preferably, after receiving the key-value pair data, the backend program saves the data into a database; encapsulates the data in JSON format again, and sends the data to the front end for parsing and processing.

[0030] Preferably, the process of modifying the system data in step 3 is as follows: the user modifies the data on the front-end page, and after the data is input, the front-end determines the legitimacy of the data;

[0031] If the data is illegal, it cannot be submitted;

[0032] If the data input is legal, the front end will package the data in JSON data format and send it to the back end program.

[0033] Preferably, if the second parsing result is a terminal device parameter debugging instruction, the embedded device control module modifies the XML configuration file of the terminal device to obtain a modified XML configuration file and sends the debugging instruction to the terminal device;

[0034] After receiving the debugging instruction, the terminal device parses the debugging instruction through ARM and sends the parsed debugging instruction and the modified XML configuration file to the universal debugging module UDM. The UDM reads the modified XML configuration file, performs the modification operation and sends a debugging completion signal to ARM. After receiving the debugging completion signal, ARM sends a debugging completion signal to the embedded device control module.

[0035] The beneficial technical effects of the present invention are as follows: the present invention generates dynamic pages through the interaction between the external server and the embedded device control system to realize the visualization of device data; at the same time, the data is modified through the page, and the XML configuration file is modified based on the communication interaction between the server and the embedded device control system. The UDM module in the FPGA is used to update and debug the device according to the XML configuration file, so as to achieve the effect of simple and efficient debugging steps and saving debugging time. The method supports the access of multiple devices and the debugging of multiple devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a multi-channel laser light source QKD system for quantum embedded devices;

[0037] Figure 2 This is a hardware principle block diagram of an embedded device debugging system of the present invention;

[0038] Figure 3 A functional operation flow chart of an embedded device debugging method of the present invention;

[0039] Figure 4 The present invention is a device operation flow chart of an embedded device debugging method. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments, but the scope of protection claimed in the present invention is not limited to the following specific embodiments.

[0041] Embedded devices generally refer to special devices with specific functions used to control, monitor or assist in the operation of machines and equipment. The embedded devices mentioned in this solution mainly refer to embedded devices for quantum communication. Specifically, the embedded devices in quantum communication devices include control units of quantum key distribution (QKD) systems, quantum communication terminals, and routing and switching devices of quantum communication networks. The embedded device debugging system and method in this solution mainly refer to embedded devices used in quantum communication devices, such as Figure 1 In the figure, it is a QKD system of quantum multi-path laser light source of an embedded device for quantum communication, including a QKD transmitter and a QKD receiver, and communicates through quantum channels and classical channels. The quantum light source of the QKD transmitter adopts a multi-path laser light source.

[0042] like Figure 2-4 As shown, an embedded device debugging system includes a server, an embedded device control module and a terminal device, wherein:

[0043] The server includes a front-end page module, a back-end program module and a database;

[0044] The terminal device includes a processor and a general debugging module;

[0045] The front-end page module inputs the operation instruction and sends it to the back-end program module. After receiving the instruction, the back-end program module parses the operation instruction to obtain parsing result one, and performs the following operations according to the parsing result one.

[0046] The parsing result here may be to obtain an operation instruction, a system parameter modification instruction or a device configuration parameter debugging instruction, and different operations may correspond to different instructions obtained by parsing.

[0047] Specifically, if the first parsing result is to obtain an operation instruction, query data is obtained through a database query and fed back to the front-end page module;

[0048] If the parsing result is a system parameter modification instruction, the system data is modified;

[0049] If the first analysis result is a device configuration parameter debugging instruction, query data is obtained through a query through a database and the query data is sent to a control module for controlling the embedded device for analysis to obtain a second analysis result.

[0050] The second analysis result may be a device parameter debugging operation or a terminal device parameter debugging instruction. Different instructions correspond to different operations.

[0051] Specifically, if the second analysis result is a device parameter debugging operation, the terminal device performs a debugging operation on the device parameters and sends the debugged device parameters to the embedded device control module. After receiving the data, the embedded device control module sends a debugging completion signal to the back-end program module. After receiving the debugging completion signal, the back-end program module updates the database and sends the data to the front-end page module to refresh the display.

[0052] Preferably, if the second parsing result is a terminal device parameter debugging instruction, the embedded device control module modifies the XML configuration file of the terminal device to obtain a modified XML (Extensible Markup Language) configuration file and sends a debugging instruction to the terminal device.

[0053] Specifically, the terminal device includes a processor ARM (Advanced RISC Machines) and a universal debugging module UDM (Universal Debug Module). After receiving the debugging instruction, the terminal device parses the debugging instruction through ARM and sends the parsed debugging instruction and the modified XML configuration file to the universal debugging module UDM. The UDM reads the modified XML configuration file, performs the modification operation and sends a debugging completion signal to the ARM. After receiving the debugging completion signal, the ARM sends the debugging completion signal to the embedded device control module.

[0054] Specifically, the embedded device control module periodically sends a data acquisition instruction to the device, and the period is 0.5-2S. In this embodiment, the period is 1S.

[0055] The server includes a front-end page module, a back-end program module and a database;

[0056] The terminal device includes a processor and a general debugging module;

[0057] The working principle and process of the system of the present invention are as follows:

[0058] The user obtains device information as needed, and the front-end page module sends the user's operation request to the back-end program module; the back-end program module parses the request after receiving it. If it is an acquisition operation, it queries the database and returns the relevant data to the front-end page module, and the front-end page module updates the page; if it is a modification operation, the data is sent to the embedded device control system; the embedded device control system parses the data, and if it is a modification of system parameters, it performs modification processing; if it is a modification of the device configuration, the XML configuration file is modified and a debugging instruction is sent to the device; after the device receives the instruction, ARM parses the data and sends the debugging instruction to UDM, UDM reads the XML configuration file for modification operations and sends a debugging completion signal to ARM; after ARM receives the debugging completion signal, it sends a debugging completion signal to the system. After the system receives the debugging completion signal, it sends a debugging completion signal to the back-end program. After the back-end program receives the debugging completion signal, it updates the database and sends the data to the front end, and the front-end page data is refreshed.

[0059] In order to ensure the real-time performance of the device data on the front-end page, the embedded device control system sends a data acquisition instruction to the device at every interval (the system defaults to 1 second); after the device receives the instruction, ARM parses the command and sends a data acquisition instruction to UDM; UDM obtains device data, updates the XML configuration file according to the data, and sends a data update signal to ARM; after ARM receives the data update signal, it sends a data update signal to the system. After receiving the data update signal, the system sends the data update signal and the updated data to the back-end program. If the system does not receive the data update signal within the specified time interval of sending the data acquisition instruction (the system defaults to 500 milliseconds, i.e. 0.5 seconds), the interval time is refreshed and the data acquisition instruction is resent immediately. If the data update signal is not received for 5 consecutive times, the device is assumed to be faulty, and a debugging monitoring instruction is immediately initiated, and a fault signal is sent to the back-end program. If the debugging start signal of the device is not received during the debugging waiting time (the system defaults to 30 seconds), the debugging monitoring instruction is resent. After 5 resends without response, the system sends a device abnormality signal to the back-end program. After receiving the data update signal, the back-end program updates the database and sends the data to the front-end, and the data on the front-end page is refreshed; if a fault signal is received, the database is updated to set the device status to a faulty status, and the information is sent to the front-end, the device status data on the front-end page is refreshed to a faulty status, and the data is cleared; after receiving the device abnormality signal, the back-end program disconnects from the embedded device control system and sends a connection terminal failure prompt message to the front-end.

[0060] A method for debugging an embedded device, applying the above-mentioned method for debugging an embedded device, the method comprising the following steps:

[0061] Step 1: Add terminal device data to the database and deploy it on the server;

[0062] Step 2: The embedded device control module sends a control instruction to the terminal device;

[0063] Step 3: After receiving the control instruction, the terminal device parses the control instruction through a processor;

[0064] If the parsing result is a system parameter modification instruction, the system data is modified;

[0065] If the parsing result is a device configuration parameter debugging instruction, jump to step 4;

[0066] Step 4: query the database to obtain query data and send the query data to the control module of the embedded device for analysis to obtain the second analysis result;

[0067] The terminal device performs device parameter debugging operations according to the second analysis result, and sends the debugged device parameters to the embedded device control module. After receiving the data, the embedded device control module sends a debugging completion signal to the back-end program module. After receiving the debugging completion signal, the back-end program module updates the database and sends the data to the front-end page module to refresh the display.

[0068] Preferably, after receiving the control instruction, the processor ARM calls the universal debugging module UDM of the terminal device to obtain the device operation data, writes the operation data into the XML configuration file, and sends a debugging start signal to the embedded device control module.

[0069] Preferably, the embedded device control module receives and reads an XML configuration file, extracts data, and encapsulates the data using JSON data exchange, and the data is encapsulated and sent to a backend program;

[0070] The encapsulated data uses the attribute variable name as the key name and the attribute value as the value, and the combination of the two forms key-value pair data.

[0071] Preferably, after receiving the key-value pair data, the backend program saves the data into a database; encapsulates the data in JSON format again, and sends the data to the front end for parsing and processing.

[0072] Preferably, the process of modifying the system data in step 3 is as follows: the user modifies the data on the front-end page, and after the data is input, the front-end determines the legitimacy of the data;

[0073] If the data is illegal, it cannot be submitted;

[0074] If the data input is legal, the front end will package the data in JSON data format and send it to the back end program.

[0075] Preferably, if the second parsing result is a terminal device parameter debugging instruction, the embedded device control module modifies the XML configuration file of the terminal device to obtain a modified XML configuration file and sends the debugging instruction to the terminal device;

[0076] After receiving the debugging instruction, the terminal device parses the debugging instruction through ARM and sends the parsed debugging instruction and the modified XML configuration file to the universal debugging module UDM. The UDM reads the modified XML configuration file, performs the modification operation and sends a debugging completion signal to ARM. After receiving the debugging completion signal, ARM sends a debugging completion signal to the embedded device control module.

[0077] According to the disclosure and teaching of the above description, those skilled in the art to which the present invention belongs may also make changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and changes to the invention should also fall within the scope of protection of the claims of the present invention. In addition, although some specific terms are used in this specification, these terms are only for the convenience of description and do not constitute any limitation to the invention.

Claims

1. An embedded device debugging system, characterized in that: It includes a server, an embedded device control module and a terminal device, wherein: The server includes a front-end page module, a back-end program module and a database; The terminal device includes a processor and a general debugging module; The front-end page module inputs the operation instruction and sends it to the back-end program module. After receiving the instruction, the back-end program module parses the operation instruction to obtain a parsing result 1, and performs the following operations according to the parsing result 1: If the parsing result is to obtain the operation instruction, the query data is obtained through the database and fed back to the front-end page module; If the parsing result is a system parameter modification instruction, the system data is modified; If the first analysis result is a device configuration parameter debugging instruction, query data is obtained through a database query and the query data is sent to the control module of the embedded device for analysis to obtain a second analysis result; The terminal device performs device parameter debugging operations according to the second analysis result, and sends the debugged device parameters to the embedded device control module. After receiving the data, the embedded device control module sends a debugging completion signal to the back-end program module. After receiving the debugging completion signal, the back-end program module updates the database and sends the data to the front-end page module to refresh the display.

2. An embedded device debugging system as claimed in claim 1, characterized in that: If the second parsing result is a terminal device parameter debugging instruction, the embedded device control module modifies the XML configuration file of the terminal device to obtain a modified XML configuration file and sends a debugging instruction to the terminal device.

3. An embedded device debugging system as claimed in claim 2, characterized in that: The terminal device includes a processor ARM and a universal debugging module UDM. After receiving the debugging instruction, the terminal device parses the debugging instruction through ARM and sends the parsed debugging instruction and the modified XML configuration file to the universal debugging module UDM. The UDM reads the modified XML configuration file and performs the modification operation and sends a debugging completion signal to ARM. After receiving the debugging completion signal, ARM sends the debugging completion signal to the embedded device control module.

4. An embedded device debugging system as claimed in claim 3, characterized in that: The embedded device control module periodically sends data acquisition instructions to the device, and the period is 0.5-2S.

5. An embedded device debugging method, using the embedded device debugging system according to any one of claims 1 to 4, characterized in that: The method comprises the following steps: Step 1: Add terminal device data to the database and deploy it on the server; Step 2: The embedded device control module sends a control instruction to the terminal device; Step 3: After receiving the control instruction, the terminal device parses the control instruction through a processor; If the parsing result is a system parameter modification instruction, the system data is modified; If the parsing result is a device configuration parameter debugging instruction, jump to step 4; Step 4: query the database to obtain query data and send the query data to the control module of the embedded device for analysis to obtain the second analysis result; The terminal device performs device parameter debugging operations according to the second analysis result, and sends the debugged device parameters to the embedded device control module. After receiving the data, the embedded device control module sends a debugging completion signal to the back-end program module. After receiving the debugging completion signal, the back-end program module updates the database and sends the data to the front-end page module to refresh the display.

6. An embedded device debugging method as claimed in claim 5, characterized in that: After receiving the control instruction, the processor ARM calls the universal debugging module UDM of the terminal device to obtain the device operation data, writes the operation data into the XML configuration file, and sends a debugging start signal to the embedded device control module.

7. An embedded device debugging method as claimed in claim 6, characterized in that: The embedded device control module receives and reads the XML configuration file, extracts the data, and encapsulates the data using JSON data exchange, and the data is encapsulated and sent to the backend program; The encapsulated data uses the attribute variable name as the key name and the attribute value as the value, and the combination of the two forms key-value pair data.

8. An embedded device debugging method as claimed in claim 7, characterized in that: After receiving the key-value pair data, the backend program saves the data into the database; encapsulates the data in JSON format again and sends the data to the frontend for parsing.

9. An embedded device debugging method as claimed in claim 8, characterized in that: The process of modifying the system data in step 3 is as follows: the user modifies the data on the front-end page, and after the data is entered, the front-end determines the legitimacy of the data; If the data is illegal, it cannot be submitted; If the data input is legal, the front end will package the data in JSON data format and send it to the back end program.

10. The method for debugging an embedded device according to claim 5, characterized in that: If the second parsing result is a terminal device parameter debugging instruction, the embedded device control module modifies the XML configuration file of the terminal device to obtain a modified XML configuration file and sends the debugging instruction to the terminal device; After receiving the debugging instruction, the terminal device parses the debugging instruction through ARM and sends the parsed debugging instruction and the modified XML configuration file to the universal debugging module UDM. The UDM reads the modified XML configuration file, performs the modification operation and sends a debugging completion signal to ARM. After receiving the debugging completion signal, ARM sends a debugging completion signal to the embedded device control module.