Air conditioner detector and fault display method thereof

By designing a fault display method in the air conditioner detector, all fault information is displayed on one page and supporting fault code selection is solved, and the problem of cumbersome operation and inability to view faults in targeted manner in the existing technology is solved, and the operation efficiency and humanization are improved.

CN119934631AActive Publication Date: 2025-05-06GUANGDONG ENBOLI ELECTRIC CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411775513.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-05-06
Estimated Expiration
2044-12-05

AI Technical Summary

Technical Problem

When the existing air conditioner detector displays fault information, due to page size limitations, multiple pages need to be displayed one by one. The operation is cumbersome and it is impossible to view specific faults in a targeted manner, which is not humanized enough.

Method used

Design an air conditioner detector and its fault display method, which can display all fault information on the same fault display page, supports fault code selection and jump to the fault subpage to view detailed information, including fault name, type, cause and solution.

Benefits of technology

It realizes displaying all fault information on one page, which facilitates users to view specific faults, improves operation efficiency, improves humanization, and meets user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119934631A_ABST
    Figure CN119934631A_ABST
Patent Text Reader

Abstract

The invention discloses an air conditioner detector and a fault display method thereof, and relates to the technical field of air conditioner detection. The method comprises the steps that a fault display page of an air conditioner detector is entered, and the air conditioner detector detects whether an air conditioner breaks down or not; when the air conditioner breaks down, the air conditioner detector counts all the faults of the air conditioner to obtain a fault count value and fault information of each fault, and each fault information is stored in a corresponding fault sub-page; creating a first array, and assigning an element variable corresponding to the first array according to each fault; querying all elements of the first array, obtaining all non-zero fault elements, and storing the non-zero fault elements in a second array; and when the key of the air conditioner detector is pressed down, transmitting the first parameter to the first function or transmitting the second parameter to the second function according to the function of the key. According to the method provided by the embodiment of the invention, the specific fault information can be conveniently checked, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of air conditioning detection, and in particular to an air conditioning detection instrument and a fault display method thereof. Background Art

[0002] An air conditioner detector is an instrument used to detect whether an air conditioner has a fault. Current air conditioner detectors usually display faults on their pages, but due to the limitation of page size, one page cannot display all fault information, and multiple pages are required to display the fault information one by one. When operators want to view fault information, they can only flip through different pages by pressing the up and down buttons. After viewing the fault information on one page, they continue to press the buttons to display the next page. All fault information is displayed in a loop on multiple pages. This method has the following disadvantages: when there are many faults, more pages are required, and it is cumbersome to manually operate the buttons to view the fault information page by page, which brings certain troubles to the staff, and it is not possible to view specific faults in a targeted manner. It is clumsy and not user-friendly. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an air conditioner detector and a fault display method thereof, which can conveniently check specific faults.

[0004] In a first aspect, a fault display method of an air conditioner detector according to an embodiment of the present invention comprises the following steps:

[0005] Entering a fault display page of an air conditioner detector, the air conditioner detector detects whether the air conditioner has a fault;

[0006] When the air conditioner fails, the air conditioner detector counts all the failures of the air conditioner, obtains the failure count value, obtains the failure information of each failure, and stores each failure information in the corresponding failure sub-page;

[0007] Creating a first array, and assigning values ​​to element variables corresponding to the first array according to each fault that occurs;

[0008] Query all elements of the first array, obtain all non-zero fault elements, and save the non-zero fault elements to the second array;

[0009] When a button of the air conditioning detector is pressed, a first parameter is passed to a first function according to the function of the button, so that the first function calculates the coordinate information of the cursor or fault code, or a second parameter is passed to a second function, so that the second function searches for and displays the corresponding fault sub-page; the second parameter is the corresponding element in the second array.

[0010] According to some embodiments of the present invention, the following steps are also included:

[0011] When entering the fault display page of the air conditioner detector, start timing and obtain the timing value;

[0012] When the button of the air conditioning detector is not pressed and the timing value reaches the preset value, the fault display page is refreshed, the timing value and the fault count value are cleared, the timing and the counting of the faults are restarted, and the fault display is updated.

[0013] According to some embodiments of the present invention, the following steps are also included:

[0014] When the button of the air-conditioning detector is pressed, the timing is stopped and the timing value is reset to zero.

[0015] According to some embodiments of the present invention, when a button of the air conditioner detector is pressed, according to the function of the button, a first parameter is passed to a first function so that the first function calculates the coordinate information of a cursor or a fault code, or a second parameter is passed to a second function so that the second function searches for and displays the corresponding fault sub-page, the step includes:

[0016] When the function of the button is a scroll down button, obtaining the cursor position of the current cursor;

[0017] When the cursor position of the current cursor is less than the fault count value, a first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, then the cursor position is increased by 1, a first parameter corresponding to a new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor;

[0018] When the cursor position of the current cursor is equal to the fault count value, and the fault count value is greater than 1, the first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, and then the cursor position is set to 1, and the first parameter corresponding to the new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor.

[0019] According to some embodiments of the present invention, the first parameter includes a mode parameter and a cursor parameter, and the first function has multiple calculation modes; the steps of the first function calculating the coordinates of the current cursor and clearing the current cursor include:

[0020] According to the cursor parameters, calculate the row information and column information where the current cursor is located;

[0021] According to the mode parameter, the corresponding calculation mode is determined, and according to the calculation mode, the row information and the column information, the coordinate information of the current cursor is calculated, and the current cursor is cleared.

[0022] According to some embodiments of the present invention, when a button of the air conditioner detector is pressed, according to the function of the button, a first parameter is passed to a first function so that the first function calculates the coordinate information of a cursor or a fault code, or a second parameter is passed to a second function so that the second function searches for and displays the corresponding fault sub-page, the step includes:

[0023] When the function of the button is a flip up button, obtaining the cursor position of the current cursor;

[0024] When the cursor position of the current cursor is greater than 1, the first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, then the cursor position is reduced by 1, the first parameter corresponding to the new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor;

[0025] When the cursor position of the current cursor is equal to 1 and the fault count is greater than 1, the first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, and then the cursor position is set equal to the fault count value, the first parameter corresponding to the new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor.

[0026] According to some embodiments of the present invention, when a button of the air conditioner detector is pressed, according to the function of the button, a first parameter is passed to a first function so that the first function calculates the coordinate information of a cursor or a fault code, or a second parameter is passed to a second function so that the second function searches for and displays the corresponding fault sub-page, the step includes:

[0027] When the function of the button is a confirmation button, according to the cursor position of the current cursor, a corresponding element in the second array is selected as the second parameter;

[0028] The second parameter is passed to the second function, so that the second function searches for and displays the corresponding fault sub-page.

[0029] According to some embodiments of the present invention, after passing the second parameter to the second function, the method further includes:

[0030] Set the flag bit of the air conditioner detector to 1, and save the page value of the fault display page;

[0031] When the up-button or down-button of the air conditioner detector is pressed, the displayed fault subpage is switched;

[0032] When the return button of the air-conditioning detector is pressed, the current page is set to the page value, the fault display page is returned, and the flag bit of the air-conditioning detector is set to 0.

[0033] According to some embodiments of the present invention, before the step of entering the fault display page of the air conditioner detector and the air conditioner detector detecting whether the air conditioner has a fault, the step further includes:

[0034] After the air conditioner detector is powered on, the air conditioner detector is initialized; the initialization includes at least one of dog feeding, key scanning, data parsing and LCD display;

[0035] In response to a menu selection operation on the air conditioning detector, the fault display page is entered.

[0036] In a second aspect, an air conditioning detector according to an embodiment of the present invention includes:

[0037] A memory for storing program instructions;

[0038] The processor is used to call the program instructions stored in the memory and execute the fault display method of the air conditioning detector described in the embodiment of the first aspect according to the obtained program instructions.

[0039] The air conditioning detector and fault display method thereof according to the embodiments of the present invention have at least the following beneficial effects: the detector can be used to display all faults that occur in the air conditioning and are transmitted through the internal and external unit protocols, and all actual faults can be displayed on the same fault display page; the fault (code) can be selected, and after the fault is selected, the fault sub-page can be jumped to view the fault information, including the fault name, the internal and external unit fault type, the cause and the solution, so that the user can view specific faults / solve faults conveniently, improve efficiency, be more humane, and meet user needs; the coordinates of the display area are automatically calculated by the function, and the fault search sub-page is all implemented by the function itself, which only requires simple parameter passing, which greatly reduces the programming difficulty and makes the code maintenance simple and convenient.

[0040] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0042] Figure 1 A flowchart of the steps of the fault display method of the air conditioner detector according to an embodiment of the present invention;

[0043] Figure 2 is a schematic diagram of a calculation process of a first function according to an embodiment of the present invention;

[0044] Figure 3 It is a complete flow chart of the fault display method of the air conditioner detector according to the embodiment of the present invention. DETAILED DESCRIPTION

[0045] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0046] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0047] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0048] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0049] An air conditioner detector is an instrument used to detect whether an air conditioner has a fault. Current air conditioner detectors usually display faults on their pages, but due to the limitation of page size, one page cannot display all fault information, and multiple pages are required to display the fault information one by one. When operators want to view fault information, they can only flip through different pages by pressing the up and down buttons. After viewing the fault information on one page, they continue to press the buttons to display the next page. All fault information is displayed in a loop on multiple pages. This method has the following disadvantages: when there are many faults, more pages are required, and it is cumbersome to manually operate the buttons to view the fault information page by page, which brings certain troubles to the staff, and it is not possible to view specific faults in a targeted manner. It is clumsy and not user-friendly.

[0050] In order to solve the above problems, the present application proposes an air-conditioning detector and a fault display method thereof, which can be used to enable the detector to display all faults that occur in the air-conditioning and are transmitted through the internal and external unit protocols, and all actual faults can be displayed on the same fault display page; it supports fault (code) selection, and after selecting the fault, you can jump to the fault sub-page to view the fault information, including the fault name, internal and external unit fault type, cause and solution, which is convenient for users to view specific faults / solve faults, improve efficiency, and is more humane and meets user needs; the display has an automatic refresh function. When a fault is solved / added, the fault display will be automatically updated after a set time; when the user is operating, the refresh is stopped, focusing on user experience; the coordinates of the display area are automatically calculated through an algorithm, and the fault search sub-page is all implemented by the function itself, which only requires simple parameter passing, which greatly reduces the programming difficulty and simple and convenient code maintenance.

[0051] On the one hand, the embodiment of the present invention provides a fault display method of an air conditioner detector, such as Figure 1 As shown, the method comprises the following steps:

[0052] Step S100: Entering the fault display page of the air conditioner detector, the air conditioner detector detects whether the air conditioner fails;

[0053] Step S200: when the air conditioner fails, the air conditioner detector counts all the failures of the air conditioner, obtains the failure count value, obtains the failure information of each failure, and stores each failure information in the corresponding failure sub-page;

[0054] Step S300: creating a first array, and assigning values ​​to element variables corresponding to the first array according to each fault that occurs;

[0055] Step S400: query all elements of the first array, obtain all non-zero fault elements, and save the non-zero fault elements to the second array;

[0056] Step S500: When the button of the air conditioning tester is pressed, according to the function of the button, the first parameter is passed to the first function, so that the first function calculates the coordinate information of the cursor or fault code, or the second parameter is passed to the second function, so that the second function searches and displays the corresponding fault sub-page; the second parameter is the corresponding element in the second array.

[0057] Specifically, in this example, in order to enter the fault display page of the air conditioner detector, the air conditioner detector is first powered on to initialize the air conditioner detector. During the initialization process, the main function while loop of the air conditioner detector will perform tasks such as feeding the dog, key scanning, parsing data, and LCD display. Then, the menu of the air conditioner detector is selected by pressing the key to enter the fault display page. It should be noted that if the air conditioner detector has been powered on and is on another display page, it is no longer necessary to wait for the T refresh time to enter the fault display page by pressing the key.

[0058] In some embodiments of the present invention, when entering the fault display page of the air conditioner detector, timing will start and the timing value will be obtained; when the button of the air conditioner detector is not pressed and the timing value reaches the preset value, the fault display page will be refreshed and displayed, and the timing value and the fault count value will be cleared, and the timing and the fault count value will be restarted, and the fault display will be updated. It should be noted that during the timing process, the timing variable pu8_dis_cnt will gradually accumulate 1 unit time. When pu8_dis_cnt*unit time ≥ T (T is the preset value), and all the buttons of the air conditioner detector have not been pressed during the entire timing process, indicating that the user has not operated the air conditioner detector during this period, at this time, the air conditioner detector will automatically refresh the fault display page, restart the timing and count the faults that have occurred, and update the fault display; through such a setting, if there is a new fault or a fault has been solved, the air conditioner detector can be updated in time. If the button of the air conditioner detector is pressed during the timing process, the timing is stopped and the timing value is reset. The button of the air conditioner tester is pressed, which means that the user is operating the air conditioner tester at this time. If the fault display page is refreshed at this time, it will affect the user's operation. Therefore, it is necessary to stop the timing, reset the timing value, and then restart the timing.

[0059] When the air conditioner detector detects the air conditioner, it will detect all faults that occur in the air conditioner and are sent through the internal and external unit protocols. If there is no fault, the fault display page will show that the air conditioner is normal; if a fault is detected in the air conditioner, all faults that occur in the air conditioner will be counted to obtain the fault count value gu8_err_cnt, and the fault category of each fault that occurs (internal unit fault or external unit fault) will be determined, and the corresponding macro will be assigned to the variable pu8_i. For elements that have not failed, the value of gu8_err_buff[pu8_i] is zero. Then, all elements of the first array gu8_err_buff[pu8_i] are looped to determine. If the value of the element is zero, the variable pu8_i++ is used to determine the next element. If the value of the element is not zero, it represents a fault, and the fault code is displayed. The fault element gu8_err_buff[pu8_i] is saved to the second array ga_dis_err_buff[gu8_err_cnt]. At the same time, the cursor position of the first fault displayed is set to 1, and the cursor positions of subsequent faults are incremented by 1 one by one.

[0060] If the air conditioner has no fault, the fault display page will display the fault count value gu8_err_cnt = 0; if the air conditioner has a fault, the fault display page will display all faults that have occurred, but the detailed fault information of each fault will be stored in the fault subpage, so that all faults that have occurred can be displayed on one fault display page without turning pages. When a specific fault needs to be queried, enter the corresponding fault subpage for viewing. When the up / down / return buttons of the air conditioner detector are pressed, the corresponding operation will be performed according to the function of each button.

[0061] Specifically, when the down-turn button of the air conditioner detector is pressed, in the above step S500: when the button of the air conditioner detector is pressed, according to the function of the button, the first parameter is passed to the first function, so that the first function calculates the coordinate information of the cursor or the fault code, which specifically includes the following three steps:

[0062] (1) When the function of the key is a scroll down key, obtain the cursor position of the current cursor;

[0063] (2) When the cursor position of the current cursor is less than the fault count value, obtain the first parameter corresponding to the current cursor and send it to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, then adds 1 to the cursor position, obtains the first parameter corresponding to the new cursor and sends it to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor;

[0064] (3) When the cursor position of the current cursor is equal to the fault count value, and the fault count value is greater than 1, obtain the first parameter corresponding to the current cursor and send it to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor. Then set the cursor position to 1, obtain the first parameter corresponding to the new cursor and send it to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor.

[0065] Specifically, the function of the first function is mainly used to calculate coordinate information, for example, to calculate the coordinate information of the cursor that needs to be cleared, to calculate the coordinate information of the cursor that needs to be displayed, and to calculate the coordinate information of the fault code, etc. In the present application, three calculation modes are set for the first function, namely, the calculation method for calculating the coordinate information of the fault code, the calculation method for calculating the coordinate information of the cursor that needs to be cleared, and the calculation method for calculating the coordinate information of the cursor that needs to be displayed. The specific calculation process of the first function (i.e., function A) is as follows: Figure 2As shown, the first parameter passed to the first function includes a mode parameter (mode) and a cursor parameter (err_cnt). The first function first calculates the required content in which row and column according to the cursor parameter (err_cnt), and stores them in the row variable and column variable respectively, and then uses the switch statement to determine which calculation mode the mode parameter (mode) is. Among them, the formula for calculating the row variable is pu8_row=err_cnt / ONE_ROW_MAX_NUM, pu8_row represents the row variable, err_cnt is the cursor parameter passed to the first function, ONE_ROW_MAX_NUM represents the maximum number of faults that can be displayed in a row; the formula for calculating the column variable is pu8_col=err_cnt%ONE_ROW_MAX_NUM, pu8_col represents the column variable. It should be noted that if the calculated column variable is equal to 0, it means that the cursor to be calculated is in the last column of the previous row. After calculating the row variable and column variable, the corresponding calculation mode is selected through the switch statement. In this example, the mode parameter (mode) can take three values, namely 0, 1 and 2. When mode = 0, it indicates that the first function calculates the coordinate information of the cursor to be displayed. The calculation formula is: mu8_coo_par[0] = OFFSET1 + CURSOR_R + (pu8_col-1) * FONT_SIZE * 2, mu8_coo_par[1] = OFFSET2 + CURSOR_R + (pu8_row) * (FONT_SIZE + 8), where OFFSET1 represents the left and right offset of the display screen, OFFSET2 represents the upper and lower offset of the display screen, and pixels need to be reserved to prevent black edges. CURSOR_R represents the radius of the cursor, and the shape of the cursor is circular; FONT_SIZE represents the font size; mu8_coo_par[0] represents the X coordinate of the cursor; mu8_coo_par[1] represents the Y coordinate of the cursor. When mode=1, it indicates that the first function calculates the coordinate information of the fault code, and the calculation formula is: mu8_coo_par[0]=OFFSET1+pu8_col*FONT_SIZE*2-FONT_SIZE, mu8_coo_par[1]=OFFSET2+pu8_row*(FONT_SIZE+8). When mode=2, it indicates that the first function calculates the coordinate information of the cursor to be cleared, and the calculation formula is: mu8_coo_par[0]=OFFSET1+(pu8_col-1)*FONT_SIZE*2-, mu8_coo_par[1]=OFFSET2+pu8_row*(FONT_SIZE+8).

[0066] When the button is a down-flip button, it indicates that the next fault needs to be checked. At this time, first obtain the cursor position mu8_cursor where the current cursor is located, and then determine whether the cursor position mu8_cursor is less than the fault count value. If so, it is necessary to pass the first parameter (2, mu8_cursor) to the first function to make it calculate the coordinate information of the current cursor and clear the current cursor (old cursor). Then, let mu8_cursor++, and then pass the first parameter (0, mu8_cursor) to the first function to make it calculate the coordinate information of the new cursor and display the new cursor on the display screen. If the cursor position of the current cursor is equal to the fault count value, continue to determine whether the fault count value is 1. If so, it means there is only one fault. At this time, the down button is not processed. If the fault count value is greater than 1, it means that the cursor position of the current cursor is the position of the last fault. At this time, the down button indicates that the cursor needs to be returned to the position of the first fault. At this time, the first parameter (2, gu8_err_cnt) is passed to the first function to calculate the coordinate information of the current cursor and clear the current cursor (old cursor). Then let mu8_cursor=1, and pass the first parameter (0, mu8_cursor) to the first function to calculate the coordinate information of the new cursor and display the new cursor on the display.

[0067] In some embodiments of the present application, when the flip button of the air conditioner detector is pressed, in the above step S500: when the button of the air conditioner detector is pressed, according to the function of the button, the first parameter is passed to the first function, so that the first function calculates the coordinate information of the cursor or the fault code, specifically including the following three steps:

[0068] (1) When the function of the key is to scroll up, obtain the cursor position of the current cursor;

[0069] (2) When the cursor position of the current cursor is greater than 1, obtain the first parameter corresponding to the current cursor and send it to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, then subtracts 1 from the cursor position, obtains the first parameter corresponding to the new cursor and sends it to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor;

[0070] (3) When the cursor position of the current cursor is equal to 1 and the fault count is greater than 1, the first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor. Then, the cursor position is set equal to the fault count value, the first parameter corresponding to the new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor.

[0071] Specifically, when the function of the button is to flip up, it indicates that the previous fault needs to be checked. At this time, first obtain the cursor position mu8_cursor where the current cursor is located, and then determine whether the cursor position mu8_cursor is greater than 1. If so, it is necessary to pass the first parameter (2, mu8_cursor) to the first function so that it calculates the coordinate information of the current cursor and clears the current cursor (old cursor). Then, let mu8_cursor--, and then pass the first parameter (0, mu8_cursor) to the first function so that it calculates the coordinate information of the new cursor and displays the new cursor on the display. If the cursor position mu8_cursor where the current cursor is located is 1, and the fault count value gu8_err_cnt is 1, it means that there is only one fault. At this time, the flip up button is not processed. If the cursor position of the current cursor mu8_cursor=1, and the fault count value gu8_err_cnt is greater than 1, it means that the cursor position of the current cursor is the position of the first fault. At this time, the up button indicates that the cursor needs to be returned to the position of the last fault. At this time, the first parameter (2, 1) is passed to the first function to calculate the coordinate information of the current cursor and clear the current cursor (old cursor). Then let mu8_cursor=gu8_err_cnt, and pass the first parameter (0, mu8_cursor) to the first function to calculate the coordinate information of the new cursor and display the new cursor on the display.

[0072] In some embodiments of the present application, when the confirmation button is pressed, in the above step S500: according to the function of the button, the second parameter is passed to the second function, so that the second function searches for and displays the corresponding fault sub-page, which specifically includes the following two steps:

[0073] (1) When the function of the key is a confirmation key, according to the cursor position of the current cursor, a corresponding element in the second array is selected as the second parameter;

[0074] (2) Pass the second parameter to the second function, so that the second function searches for and displays the corresponding fault sub-page.

[0075] Specifically, when the confirmation button of the air conditioner detector is pressed, it means that the fault at the cursor position is selected. At this time, it is necessary to enter the fault subpage corresponding to the fault. At this time, the element ga_dis_err_buff[mu8_cursor] in the second array corresponding to the current cursor is selected as the second parameter and passed to the second function (B function), thereby calling the second function B (ga_dis_err_buff[mu8_cursor]), so that the second function searches and jumps to the corresponding fault information subpage. It should be noted that the role of the second function is to determine which fault it is based on the second parameter passed, that is, the fault number (unique), through the switch condition judgment, and assign the homepage of the corresponding fault information subpage to the current page current_page variable. The display screen updates the display according to the current page to achieve the jump.

[0076] In addition, when the confirmation button of the air-conditioning detector is pressed, in addition to passing the second parameter to the second function, the flag bit mb_switch_subpage_flag of the air-conditioning detector is set to 1, and the page value of the fault display page mu16_last_page = FAULT_PAGE_1 is saved; when the flag bit is 1, when the up button or the down button of the air-conditioning detector is pressed, the displayed fault sub-page is switched up / down; when the return button of the air-conditioning detector is pressed, the current page is set to the page value of the above record, that is, current_page = mu16_last_page, thereby returning to the fault display page, and the flag bit mb_switch_subpage_flag of the air-conditioning detector is set to 0.

[0077] According to the fault display method of the air-conditioning detector of the embodiment of the present invention, it can be used to enable the detector to display all faults that occur in the air-conditioning and are sent through the internal and external unit protocols, and all actual faults can be displayed on the same fault display page; it supports fault (code) selection, and after selecting the fault, it can jump to the fault sub-page to view the fault information, including the fault name, the internal and external unit fault type, the cause and the solution, so that the user can view specific faults / solve faults conveniently, improve efficiency, be more humane, and meet user needs; the display has an automatic refresh function, and when a fault is solved / added, the fault display will be automatically updated after a set time; when the user is operating, the refresh is stopped, focusing on the user experience; the coordinates of the display area are automatically calculated by the function, and the fault search sub-page is all implemented by the function itself, which only requires simple parameter passing, which greatly reduces the programming difficulty and simple and convenient code maintenance.

[0078] like Figure 3As shown, the fault display method of the air conditioning detector of the embodiment of the present application is described in detail with a specific embodiment below. It should be noted that the following embodiments are only exemplary descriptions and are not specific limitations to the present application.

[0079] like Figure 3 As shown, the fault display method of the air conditioner detector according to the embodiment of the present application includes the following steps:

[0080] Step 1: Initialize the module peripherals after power-on. The main function while loop will perform tasks such as feeding the dog, key scanning, timing data analysis, LCD display, etc. Press the key to enter the fault display page; if you enter the fault display page from other pages of the air conditioner detector, you do not need to wait for the T refresh time;

[0081] Step 2: LCD updates the display. Each time the fault display page is entered, the timing variable pu8_dis_cnt accumulates 1 unit of time;

[0082] Step 3: When no button is pressed and pu8_dis_cnt*unit time>=T, refresh the display and clear the timing variable pu8_dis_cnt and the fault count value gu8_err_cnt;

[0083] Step 4: Then determine whether the air conditioner has any faults. If not, it will be displayed as normal. If yes, continue to determine the fault type (indoor unit fault or outdoor unit fault) and assign the corresponding macro to the variable pu8_i;

[0084] Step 5: Then loop to determine all elements of the first array gu8_err_buff[pu8_i], if the value of the element is zero, let the variable pu8_i++ determine the next element; if it is not zero, it means a fault, determine whether the number of displayed faults gu8_err_cnt is less than the maximum number of faults that can be displayed on one page PAGE_ERR_MAX_NUM, if yes, then gu8_err_cnt++; otherwise, directly jump out of the loop, indicating that the entire fault display page has been displayed, waiting for the response key function or refresh display, that is, Step 8;

[0085] Step 6: If gu8_err_cnt is 1, pass it to function A to calculate the cursor coordinates and display the cursor, and record the cursor position as 1; then save the fault number gu8_err_buff[pu8_i] to the new array ga_dis_err_buff[gu8_err_cnt], pass it to function A to calculate the fault coordinates and find the fault code, and finally call the function to complete the fault display;

[0086] Step 7: Then increment pu8_i by 1. If pu8_i < the maximum number of faults ERR_MAX_NUM, return to Step 5; otherwise, it means that all faults have been searched, exit the loop.

[0087] Step 8: Determine again whether a key is pressed. If so, clear the timing time pu8_dis_cnt; if not, return to Step 2. If the displayed fault count value gu8_err_cnt = 0, do not process and return to Step 2; otherwise, determine the key function. For the down arrow key, check if the cursor position mu8_cursor < gu8_err_cnt. If so, call function A with parameters to clear the old cursor and increment mu8_cursor by 1. Otherwise, check if gu8_err_cnt is 1. If so, the down arrow key is invalid and no processing is done; otherwise, call function A(2, gu8_err_cnt) to clear the old cursor and set mu8_cursor = 1. Finally, call function A(0, mu8_cursor) to calculate the coordinates and pass the parameters to display the new cursor. For the up arrow key, check if mu8_cursor > 1. If so, call function A with parameters to clear the old cursor and decrement mu8_cursor by 1. Otherwise, check if gu8_err_cnt is 1. If so, the up arrow key is invalid and no processing is done; otherwise, call function A(2, 1) to clear the old cursor and set mu8_cursor = gu8_err_cnt. Finally, call function A(0, mu8_cursor) to calculate the coordinates and pass the parameters to display the new cursor. For the confirm key to select a fault, call function B(ga_dis_err_buff[mu8_cursor]) to search for and jump to the corresponding fault information sub-page, set mb_switch_subpage_flag = 1, save the previous page value mu16_last_page = FAULT_PAGE_1, and enter Step 9. The flag bit mb_switch_subpage_flag being 1 indicates entering special logic processing, that is, Step 9.

[0088] Step 9: Determine the key function. The up / down arrow keys are used to cycle through sub-pages to view information. The return key returns to the parent page, set the current page current_page = mu16_last_page, mb_switch_subpage_flag = 0, and return to Step 2.

[0089] On the other hand, an embodiment of the present invention also provides an air conditioner detector, including:

[0090] A memory for storing program instructions;

[0091] A processor for calling the program instructions stored in the memory and executing the fault display method of the air conditioner detector described in the above embodiments according to the obtained program instructions.

[0092] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0093] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.

[0094] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.

[0095] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.

[0096] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.

[0097] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages ​​include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages ​​or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.

[0098] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).

[0099] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A fault display method for an air conditioning detector, characterized in that: The following steps are involved: Entering a fault display page of an air conditioner detector, the air conditioner detector detects whether the air conditioner has a fault; When the air conditioner fails, the air conditioner detector counts all the failures of the air conditioner to obtain a failure count value; and obtaining fault information of each fault, and storing each of the fault information in a corresponding fault subpage; Creating a first array, and assigning values ​​to corresponding element variables of the first array according to each fault that occurs; Query all elements of the first array, obtain all non-zero fault elements, and save the fault elements to the second array; When a button of the air conditioning detector is pressed, a first parameter is passed to a first function according to the function of the button, so that the first function calculates the coordinate information of the cursor or fault code, or a second parameter is passed to a second function, so that the second function searches for and displays the corresponding fault sub-page; the second parameter is the corresponding element in the second array.

2. The fault display method of the air conditioner detector according to claim 1, characterized in that: The following steps are also included: When entering the fault display page of the air conditioner detector, start timing and obtain the timing value; When the button of the air conditioning detector is not pressed and the timing value reaches the preset value, the fault display page is refreshed and displayed, and the timing value and the fault count value are cleared, the timing and counting of the faults are restarted, and the faults are displayed.

3. The fault display method of the air conditioner detector according to claim 2, characterized in that: The following steps are also included: When the button of the air-conditioning detector is pressed, the timing is stopped and the timing value is reset to zero.

4. The fault display method of the air conditioner detector according to claim 1, characterized in that: The step of passing a first parameter to a first function according to the function of the button when the button of the air conditioner detector is pressed, so that the first function calculates the coordinate information of the cursor or the fault code, or passing a second parameter to a second function so that the second function searches for and displays the corresponding fault sub-page, comprises: When the function of the button is a scroll down button, obtaining the cursor position of the current cursor; When the cursor position of the current cursor is less than the fault count value, a first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, then the cursor position is increased by 1, a first parameter corresponding to a new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor; When the cursor position of the current cursor is equal to the fault count value, and the fault count value is greater than 1, the first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, and then the cursor position is set to 1, and the first parameter corresponding to the new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor.

5. The fault display method of the air conditioner detector according to claim 4, characterized in that: The first parameter includes a mode parameter and a cursor parameter, and the first function has multiple calculation modes; the first function calculates the coordinates of the current cursor and clears the current cursor, including: According to the cursor parameters, calculate the row information and column information where the current cursor is located; According to the mode parameter, the corresponding calculation mode is determined, and according to the calculation mode, the row information and the column information, the coordinate information of the current cursor is calculated, and the current cursor is cleared.

6. The fault display method of the air conditioner detector according to claim 1, characterized in that: The step of passing a first parameter to a first function according to the function of the button when the button of the air conditioner detector is pressed, so that the first function calculates the coordinate information of the cursor or the fault code, or passing a second parameter to a second function so that the second function searches for and displays the corresponding fault sub-page, comprises: When the function of the button is a flip up button, obtaining the cursor position of the current cursor; When the cursor position of the current cursor is greater than 1, the first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, then the cursor position is reduced by 1, the first parameter corresponding to the new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor; When the cursor position of the current cursor is equal to 1 and the fault count is greater than 1, the first parameter corresponding to the current cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the current cursor and clears the current cursor, and then the cursor position is set equal to the fault count value, the first parameter corresponding to the new cursor is obtained and sent to the first function, so that the first function calculates the coordinate information of the new cursor and displays the new cursor.

7. The fault display method of the air conditioner detector according to claim 1, characterized in that: The step of passing a first parameter to a first function according to the function of the button when the button of the air conditioner detector is pressed, so that the first function calculates the coordinate information of the cursor or the fault code, or passing a second parameter to a second function so that the second function searches for and displays the corresponding fault sub-page, comprises: When the function of the button is a confirmation button, according to the cursor position of the current cursor, a corresponding element in the second array is selected as the second parameter; The second parameter is passed to the second function, so that the second function searches for and displays the corresponding fault sub-page.

8. The fault display method of the air conditioner detector according to claim 7, characterized in that: After passing the second parameter to the second function, the following further includes: Set the flag bit of the air conditioner detector to 1, and save the page value of the fault display page; When the up-button or down-button of the air conditioner detector is pressed, the displayed fault subpage is switched; When the return button of the air-conditioning detector is pressed, the current page is set to the page value, the fault display page is returned, and the flag bit of the air-conditioning detector is set to 0.

9. The fault display method of the air conditioner detector according to claim 1, characterized in that: Before the step of entering the fault display page of the air conditioner detector and detecting whether the air conditioner has a fault, the step further includes: After the air conditioner detector is powered on, the air conditioner detector is initialized; the initialization includes at least one of dog feeding, key scanning, data parsing and LCD display; In response to a menu selection operation on the air conditioning detector, the fault display page is entered.

10. An air conditioning detector, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the fault display method of the air conditioning detector according to any one of claims 1-9 according to the obtained program instructions.

Citation Information

Patent Citations

  • Method and device for searching air conditioner breakdowns

    CN103196208A

  • Fault point detection method and device for air conditioner and readable storage medium

    CN110469954A

  • Fault alarm information display method and display equipment

    CN111901683A

  • Power grid communication network combined fault diagnosis method and system

    CN118690224A

  • Equipment fault processing method and device, computer equipment and storage medium

    CN118776021A