CN-122018972-A - Point inspection menu display method and device, electronic equipment and storage medium
Abstract
The invention discloses a method, a device, electronic equipment and a storage medium for displaying a spot inspection menu, wherein the method comprises the steps of obtaining overview information sent by target equipment, determining data description information of spot inspection menu data according to the overview information, wherein a spot inspection menu data structure of the target equipment comprises the overview information and the spot inspection menu data, the overview information is used for describing and checking the spot inspection menu data, the spot inspection menu data is used for describing the content of the spot inspection menu of the target equipment, obtaining the spot inspection menu data from the target equipment according to the data description information, analyzing the spot inspection menu data to obtain the spot inspection menu, and rendering the spot inspection menu to display the spot inspection menu. According to the method, the spot inspection menu data of each version can be obtained from the target equipment according to the overview information, and spot inspection menus of different versions are generated in real time according to the spot inspection menu data of different versions, so that the spot inspection reliability is improved.
Inventors
- KE LEI
Assignees
- 广东美的暖通设备有限公司
- 美的集团股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260127
Claims (10)
- 1. The method for displaying the click detection menu is characterized by comprising the following steps of: Acquiring overview information sent by target equipment; Determining data description information of spot inspection menu data according to the overview information, wherein a spot inspection menu data structure of the target equipment comprises the overview information and the spot inspection menu data, the overview information is used for describing and checking the spot inspection menu data, and the spot inspection menu data is used for describing the content of a spot inspection menu of the target equipment; Acquiring the spot inspection menu data from the target equipment according to the data description information; Analyzing the spot inspection menu data to obtain the spot inspection menu, and rendering the spot inspection menu to display the spot inspection menu.
- 2. The method of claim 1, wherein the data description information includes version information, length information, and check codes of the spot check menu data, wherein acquiring the spot check menu data from the target device according to the data description information includes: Under the condition that the spot inspection menu corresponding to the version information is not generated according to the version information and the check code, sequentially sending a first query instruction to the target equipment, wherein the first query instruction comprises the offset of the spot inspection menu data and a preset reading length, and the offset in the first query instruction sent each time is the sum of the lengths of the received spot inspection menu data; sequentially receiving the spot inspection menu data segments sent by the target equipment until the sum of the lengths of the received spot inspection menu data segments reaches the length information so as to obtain at least one spot inspection menu data segment; And splicing the at least one spot inspection menu data segment according to the receiving sequence to obtain the spot inspection menu data.
- 3. The method of claim 2, wherein determining data descriptive information for spot check menu data from the overview information comprises: And extracting the version information, the length information and the check code from the overview information according to a preset data structure, wherein the preset data structure comprises the data length of the version information, the data length of the length information and the data length of the check code.
- 4. A method according to any one of claims 1-3, wherein parsing the spot check menu data comprises: Acquiring the length of the outermost layer list of the spot inspection menu data; and analyzing each sub-item in the outermost layer list according to the type of each sub-item in the outermost layer list of the spot inspection menu data in turn based on the length of the outermost layer list, wherein the spot inspection menu comprises the outermost layer list and each sub-item in the outermost layer list.
- 5. The method of claim 4, wherein parsing each sub-item in the outermost list of the click menu data according to a type of each sub-item in the outermost list comprises: Under the condition that the type of the sub-item is a list, acquiring the length of the sub-list corresponding to the sub-item, and analyzing each sub-item in the sub-list according to the type of each sub-item in the sub-list based on the length of the sub-list, or And under the condition that the type of the sub item is a point location, analyzing the point location attribute corresponding to the sub item.
- 6. The method of claim 4, wherein rendering the spot check menu comprises: Rendering the outermost layer list according to a preset display format to display the outermost layer list; Rendering each sub-item in the outermost layer list according to the type of each sub-item in the outermost layer list so as to display each sub-item in the outermost layer list.
- 7. The method of claim 6, wherein rendering each sub-item in the outermost list of the click menu data according to a type of each sub-item in the outermost list comprises: Rendering the sub-list corresponding to the sub-item according to the preset display format under the condition that the type of the sub-item is a list and the sub-item is triggered, or And under the condition that the type of the sub item is a point position, sending a second query instruction to the target equipment, so that the target equipment searches a point position value corresponding to the point position according to the second query instruction, receives the point position value sent by the target equipment, and renders the point position name and the point position value of the point position.
- 8. A computer-readable storage medium, on which a computer program is stored which, when processed by a processor, performs a method of presenting a spot-check menu according to any one of claims 1-7.
- 9. An electronic device, comprising a memory, a processor, and a presentation program of a spot check menu stored on the memory and executable on the processor, wherein the processor implements the presentation method of the spot check menu of any one of claims 1-7 when executing the presentation program of the spot check menu.
- 10. A display device for a spot inspection menu, comprising: the first acquisition module is used for acquiring overview information sent by the target equipment; The determining module is used for determining data description information of spot inspection menu data according to the overview information, wherein the spot inspection menu data structure of the target equipment comprises the overview information and the spot inspection menu data, the overview information is used for describing and checking the spot inspection menu data, and the spot inspection menu data is used for describing the content of the spot inspection menu of the target equipment; the second acquisition module is used for acquiring the spot inspection menu data from the target equipment according to the data description information; the analysis module is used for analyzing the spot inspection menu data to obtain the spot inspection menu; and the rendering module is used for rendering the spot inspection menu so as to display the spot inspection menu.
Description
Point inspection menu display method and device, electronic equipment and storage medium Technical Field The present application relates to the field of communications technologies, and in particular, to a method and apparatus for displaying a click detection menu, an electronic device, and a storage medium. Background In the maintenance and diagnosis process of air conditioning equipment, special spot inspection tools are generally required to collect and analyze the running state data of the external machine. In the related art, a spot check tool starts a specific command code to acquire a corresponding data segment by accessing a spot table maintained in advance, and analyzes the data segment into a spot check menu according to the point position description in the spot table. In this way, the software version of the outdoor unit is required to correspond to the program version of the spot check tool, and if the software version of the outdoor unit is different from the program version of the spot check tool, the spot check tool cannot adapt to the unknown spot table, so that the problems of incapability of acquiring the spot value, missing the query of the spot value, incorrect numerical analysis and the like are generated, and the reliability of spot check is reduced. Disclosure of Invention The present invention aims to solve at least one of the technical problems in the related art to some extent. Therefore, a first object of the present invention is to provide a method for displaying a spot inspection menu, which can obtain spot inspection menu data of each version from a target device according to overview information, analyze the spot inspection menu data to obtain a corresponding spot inspection menu, and display the spot inspection menu on a user interface. A second object of the present invention is to propose a computer readable storage medium. A third object of the present invention is to propose an electronic device. The fourth object of the present invention is to provide a display device for a click menu. In order to achieve the above object, according to an embodiment of the first aspect of the present invention, a method for displaying a spot inspection menu is provided, which includes obtaining overview information sent by a target device, determining data description information of spot inspection menu data according to the overview information, obtaining spot inspection menu data from the target device according to the data description information, wherein a spot inspection menu data structure of the target device includes the overview information and the spot inspection menu data, the overview information is used for describing and checking the spot inspection menu data, the spot inspection menu data is used for describing contents of the spot inspection menu of the target device, analyzing the spot inspection menu data to obtain the spot inspection menu, and rendering the spot inspection menu to display the spot inspection menu. According to the method for displaying the spot inspection menu, which is disclosed by the embodiment of the invention, the overview information sent by the target equipment is obtained, the data description information of the spot inspection menu data is determined according to the overview information, the spot inspection menu data is obtained from the target equipment according to the data description information, the spot inspection menu data is analyzed to obtain the spot inspection menu, the spot inspection menu is rendered to display the spot inspection menu, wherein the spot inspection menu data structure of the target equipment comprises the overview information and the spot inspection menu data, the overview information is used for describing and checking the spot inspection menu data, and the spot inspection menu data is used for describing the content of the spot inspection menu of the target equipment. Therefore, the definition of the spot inspection menu data structure ensures that the description language of the spot inspection menu has unified specification, spot inspection menu data of each version can be obtained from the target equipment according to the overview information, the spot inspection menu data are analyzed to obtain corresponding spot inspection menus, and the spot inspection menus are displayed on a user interface, so that spot inspection tools do not need to generate a spot table in advance, spot inspection menus of different versions are generated in real time according to the spot inspection menu data of different versions, the problem of mismatching with the software version of the target equipment does not exist, and the spot inspection reliability is improved. According to one embodiment of the invention, the data description information comprises version information, length information and check codes of the spot inspection menu data, the spot inspection menu data are acquired from the target equipment according to the