Air conditioner detector and fault display method thereof

By using array storage and function calculation methods, the problem of air conditioner detectors being unable to display all faults on a single page has been solved, achieving efficient and user-friendly display of fault information and simplifying programming and maintenance.

CN119934631BActive Publication Date: 2025-11-25GUANGDONG ENBOLI ELECTRIC CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing air conditioner detectors, due to page size limitations, cannot display all fault information on a single page, requiring users to flip through multiple pages. This is cumbersome and makes it impossible to target specific faults, lacking a user-friendly interface.

Method used

It uses an array to store fault information, calculates the coordinates of the cursor or fault code through a function, supports fault selection and subpage navigation, displays fault information on the same page, has an automatic refresh function, and reduces programming difficulty.

Benefits of technology

It enables the display of air conditioner fault information on a single page, supports fault selection and subpage viewing, improves operational efficiency and user-friendliness, and simplifies programming and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119934631B_ABST
    Figure CN119934631B_ABST
Patent Text Reader

Abstract

The application 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 following steps: entering a fault display page of the air conditioner detector, and detecting whether the air conditioner has a fault; when the air conditioner has a fault, counting all faults of the air conditioner, obtaining a fault count value, acquiring fault information of each fault, and storing each fault information in a corresponding fault sub-page; creating a first array, and assigning a corresponding element variable of the first array according to each fault; inquiring all elements of the first array, obtaining all non-zero fault elements, and saving the non-zero fault elements into a second array; when a button of the air conditioner detector is pressed, according to a function of the button, a first parameter is transmitted to a first function, or a second parameter is transmitted to a second function. According to the method of the embodiment of the application, specific fault information can be conveniently viewed, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the air conditioner detection technical field, especially to an air conditioner detector and a fault display method thereof. BACKGROUND

[0002] The air conditioner detector is used for detecting whether the air conditioner has faults. The current air conditioner detector usually displays faults in its page. However, due to the limitation of the page size, one page cannot display all fault information, and multiple pages are needed to display fault information one by one. When an operator wants to check fault information, he can only flip through different pages by pressing up and down buttons. After checking the fault information of one page, he continues to press the button to display the next page, and all fault information is displayed in multiple pages in a loop. This method has the following disadvantages: when there are many faults, multiple pages are needed, and it is cumbersome for the operator to check fault information page by page by manually pressing the button, which brings certain inconvenience to the operator, and specific faults cannot be checked, which is clumsy and not user-friendly. SUMMARY

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

[0004] In a first aspect, the fault display method of the air conditioner detector according to the embodiments of the present application includes the following steps:

[0005] Enter the fault display page of the air conditioner detector, and the air conditioner detector detects whether the air conditioner has faults;

[0006] When the air conditioner has faults, the air conditioner detector counts all faults of the air conditioner, obtains a fault count value, and acquires fault information of each fault, and stores each fault information in a corresponding fault sub-page;

[0007] Create a first array, and assign a corresponding element variable of the first array according to each fault;

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

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

[0010] According to some embodiments of the present application, the method further comprises the following steps:

[0011] When the fault display page of the air conditioner detector is entered, timing is started to obtain a timing value;

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

[0013] According to some embodiments of the present application, the method further comprises the following steps:

[0014] When the key of the air conditioner detector is pressed, the timing is stopped and the timing value is cleared.

[0015] According to some embodiments of the present application, when the key of the air conditioner detector is pressed, according to the function of the key, a first parameter is transmitted to a first function to make the first function calculate the coordinate information of the cursor or the fault code, or a second parameter is transmitted to a second function to make the second function search and display the corresponding fault sub-page, the step comprising:

[0016] When the function of the key is a down key, the cursor position of the current cursor is obtained;

[0017] When the cursor position of the current cursor is less than the fault count value, the first parameter corresponding to the current cursor is obtained and transmitted to the first function to make the first function calculate the coordinate information of the current cursor and clear the current cursor, and then the cursor position is increased by 1, the first parameter corresponding to the new cursor is obtained and transmitted to the first function to make the first function calculate the coordinate information of the new cursor and display 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 transmitted to the first function to make the first function calculate the coordinate information of the current cursor and clear the current cursor, and then the cursor position is set to 1, the first parameter corresponding to the new cursor is obtained and transmitted to the first function to make the first function calculate the coordinate information of the new cursor and display the new cursor.

[0019] According to some embodiments of the present application, the first parameter comprises a mode parameter and a cursor parameter, and the first function has multiple calculation modes; the step of calculating the coordinate of the current cursor and clearing the current cursor comprises:

[0020] According to the cursor parameter, the row information and the column information where the current cursor is located are calculated;

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

[0022] According to some embodiments of the present application, when the key of the air conditioner detector is pressed, according to the function of the key, a first parameter is transmitted to a first function, so that the first function calculates coordinate information of a cursor or a fault code, or a second parameter is transmitted to a second function, so that the second function searches and displays a corresponding fault sub-page.

[0023] When the function of the key is an up key, the cursor position of the current cursor is obtained.

[0024] When the cursor position of the current cursor is greater than 1, a first parameter corresponding to the current cursor is obtained and transmitted to the first function, so that the first function calculates coordinate information of the current cursor and clears the current cursor, and then the cursor position is decremented by 1, a first parameter corresponding to a new cursor is obtained and transmitted to the first function, so that the first function calculates 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, a first parameter corresponding to the current cursor is obtained and transmitted to the first function, so that the first function calculates coordinate information of the current cursor and clears the current cursor, and then the cursor position is set to the fault count value, a first parameter corresponding to a new cursor is obtained and transmitted to the first function, so that the first function calculates coordinate information of the new cursor and displays the new cursor.

[0026] According to some embodiments of the present application, when the key of the air conditioner detector is pressed, according to the function of the key, a first parameter is transmitted to a first function, so that the first function calculates coordinate information of a cursor or a fault code, or a second parameter is transmitted to a second function, so that the second function searches and displays a corresponding fault sub-page.

[0027] 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.

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

[0029] According to some embodiments of the present application, after the second parameter is transmitted to the second function, the following steps are further included.

[0030] The flag bit of the air conditioner detector is set to 1, and the page value of the fault display page is saved.

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

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

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

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

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

[0036] In the second aspect, the air conditioner detector according to the embodiments of the present application comprises:

[0037] A memory for storing program instructions;

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

[0039] The air conditioner detector and the fault display method thereof according to the embodiments of the present application have at least the following beneficial effects: the detector can be used to display all faults of the air conditioner that occur and are sent by the indoor and outdoor unit protocols, all actually occurring faults can be displayed on the same fault display page, the support fault (code) can be selected, after the selected fault, the fault sub-page can be jumped to view the fault information, including the fault name, the indoor and outdoor unit fault type, the cause and the solution method, the user can conveniently view the specific fault / solve the fault, the efficiency is improved, it is more humanized, and the user demand is met; the coordinates of the display area are automatically calculated by a function, the fault sub-page is completely realized by the function itself, only simple parameter transmission is required, and the programming difficulty is greatly reduced, and the maintenance code is simple and convenient.

[0040] Additional aspects and advantages of the present application will be in part apparent and in part pointed out hereinafter. BRIEF DESCRIPTION OF DRAWINGS

[0041] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description, taken in conjunction with the accompanying drawings, in which:

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

[0043] Figure 2 A schematic diagram of the calculation process of the first function according to an embodiment of the present application;

[0044] Figure 3 A complete flow chart of the fault display method of the air conditioner detector according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] Embodiments of the present application are described in detail below with reference to the accompanying drawings, in which the same or similar elements or elements having the same or similar functions are denoted by the same reference numerals throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and cannot be understood as limiting the present application. For the step numbers in the following embodiments, they are only set for the convenience of explanation and description, and the order between the steps is not limited in any way, and the execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

[0046] In the description of the present application, it should be understood that the orientation description, such as the orientation or position relationship indicated by up, down, front, back, left, right, etc. is based on the orientation or position relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application.

[0047] The terms "first", "second", "third", and "fourth" and the like in the description and claims of the present application and the accompanying drawings are used to distinguish different objects, and are not used to describe a particular order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. 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 can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.

[0048] In the present application, the phrase "embodiment" means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase at various places in the specification does not necessarily refer to the same embodiment, nor is it independent or alternative to other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0049] The air conditioner detector is an instrument for detecting whether the air conditioner has a fault. The current air conditioner detector usually displays the fault in its page. However, due to the limitation of the page size, one page cannot display all the fault information, and multiple pages are needed to display the fault information one by one. When the operator wants to view the fault information, the operator can only flip through different pages by pressing the up and down buttons. After viewing the fault information of one page, the operator continues to press the button to display the next page, and all the fault information is displayed in multiple pages. This way has the following disadvantages: when there are many faults, multiple pages are needed, and it is cumbersome for the operator to view the fault information page by page by manually pressing the button, which brings certain trouble to the operator, and the operator cannot view specific faults, which is clumsy and not user-friendly.

[0050] To solve the above problems, the application provides an air conditioner detector and a fault display method thereof, which can be used to make the detector display all the faults of the air conditioner that occur and are sent by the indoor and outdoor units according to the protocol, and all the actually occurring faults can be displayed on the same fault display page; the support fault (code) can be selected, and after the selected fault is selected, the fault information can be viewed on the fault subpage, including the fault name, the indoor and outdoor fault type, the cause and the solution method, which facilitates the user to view specific faults and solve the faults, improves the efficiency, is more user-friendly, meets the user demand, and has the automatic refreshing function. When a fault is solved or added, the fault display is automatically updated after a set time. When the user is operating, the refreshing is stopped, and the user experience is focused. The coordinates of the display area are automatically calculated by an algorithm, the fault subpage is found by the function itself, and only simple parameter transmission is needed, which greatly reduces the programming difficulty and makes the maintenance code simple and convenient.

[0051] In one aspect, the application provides a fault display method of an air conditioner detector, as shown in Figure 1 The method comprises the following steps:

[0052] Step S100: Enter the fault display page of the air conditioner detector, and the air conditioner detector detects whether the air conditioner has a fault;

[0053] Step S200: When the air conditioner has a fault, the air conditioner detector counts all the faults of the air conditioner, obtains a fault count value, and obtains the fault information of each fault, and stores each fault information in the corresponding fault subpage;

[0054] Step S300: Create a first array, and assign a variable corresponding to an element of the first array according to each occurring fault;

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

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

[0057] Specifically, in the present example, in order to enter the fault display page of the air conditioner detector, the air conditioner detector is powered on first, so that the air conditioner detector is initialized. During the initialization process, the main function while loop of the air conditioner detector performs tasks such as dog feeding, key scanning, data analysis, and LCD display. Then, the menu of the air conditioner detector is selected through the button to enter the fault display page. It should be noted that if the air conditioner detector has completed power-on and is located in other display pages, the fault display page is entered through the button without waiting for the T refresh time.

[0058] In some embodiments of the present application, when the fault display page of the air conditioner detector is entered, the timing is started to obtain the timing value; when the button of the air conditioner 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 the fault counting are restarted, and the fault display is updated. It should be noted that during the timing process, the timing variable pu8_dis_cnt gradually increases by 1 unit of time. When pu8_dis_cnt*unit time≥T (T is a preset value), and during the entire timing process, all buttons of the air conditioner detector are not pressed, it indicates that the user does not operate the air conditioner detector during this period. At this time, the air conditioner detector will automatically refresh and display the fault display page, and restart the timing and fault counting, 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 cleared. The button of the air conditioner detector is pressed, which means that the user is operating the air conditioner detector at this time. If the fault display page is refreshed and displayed at this time, it will affect the user's operation, therefore, the timing needs to be stopped, the timing value is cleared, and the timing is restarted.

[0059] When the air conditioner detector detects the air conditioner, it will detect all the faults that occur and are sent by the indoor and outdoor unit protocols. If there is no fault, the fault display page displays that the air conditioner is normal. If the air conditioner is detected to have a fault, all the faults that occur will be counted to obtain a fault count value gu8_err_cnt, and the fault category of each fault that occurs (indoor fault or outdoor fault) will be judged, and the corresponding macro is assigned to the variable pu8_i. For elements that do not have faults, the value of gu8_err_buff[pu8_i] is zero. Then, all elements gu8_err_buff[pu8_i] of the first array are judged in a loop. If the value of the element is zero, the variable pu8_i is incremented to judge the next element. The value of the element is not zero, which represents a fault, and the fault code is displayed, and 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 displayed fault is 1, and the cursor positions of subsequent faults are incremented by 1.

[0060] If the air conditioner has no fault, the fault display page displays the fault count value gu8_err_cnt=0. If the air conditioner has a fault, the fault display page will display all the faults that occur, but the detailed fault information of each fault will be stored in the fault sub-page, so that all the faults that occur can be displayed on one fault display page without the need to page, and when a specific fault needs to be queried, the corresponding fault sub-page is entered for viewing. When the up button / down button / return button of the air conditioner detector is pressed, the corresponding operation is performed according to the function of each button.

[0061] Specifically, when the down button of the air conditioner detector is pressed, in step S500 above: when the button of the air conditioner detector is pressed, the first parameter is transmitted to the first function according to the function of the button, 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 button is the down button, the cursor position of the current cursor is obtained.

[0063] (2) When the cursor position of the current cursor is less than the fault count value, 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 incremented 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.

[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, the first parameter corresponding to the current cursor is acquired 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, the first parameter corresponding to the new cursor is acquired and sent 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 for calculating coordinate information, for example, calculating the coordinate information of the cursor to be cleared, calculating the coordinate information of the cursor to be displayed, and calculating the coordinate information of the fault code, etc. In the present application, three calculation modes are set for the first function, which are the calculation mode of calculating the coordinate information of the fault code, the calculation mode of calculating the coordinate information of the cursor to be cleared, and the calculation mode of calculating the coordinate information of the cursor to be displayed. The specific calculation process of the first function (i.e. A function) is as follows: Figure 2As shown, the first parameter passed to the first function includes the mode parameter (mode) and the cursor parameter (err_cnt). The first function first calculates the row and column of the required content according to the cursor parameter (err_cnt) and stores them in the row variable and the column variable, respectively, and then uses a switch statement to determine which calculation mode the mode parameter (mode) is in. The formula for calculating the row variable is pu8_row = err_cnt / ONE_ROW_MAX_NUM, where pu8_row represents the row variable, err_cnt is the cursor parameter passed to the first function, and ONE_ROW_MAX_NUM represents the maximum number of displayable faults in a row. The formula for calculating the column variable is pu8_col = err_cnt % ONE_ROW_MAX_NUM, where pu8_col represents the column variable. It should be noted that if the calculated column variable is equal to 0, it indicates that the cursor to be calculated is in the last column of the previous row. After calculating the row variable and the column variable, the corresponding calculation mode is selected through the switch statement. In this example, the mode parameter (mode) has three values, 0, 1, and 2. When mode = 0, it indicates that the first function calculates the coordinate information of the cursor to be displayed, and 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 top and bottom offset of the display screen, and a pixel point needs to be reserved to prevent black edges, CURSOR_R represents the radius of the cursor, and the shape of the cursor is a circle; FONT_SIZE represents the font size; mu8_coo_par[0] represents the X coordinate of the cursor; and 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 function of the key is the down key, it indicates that the next fault needs to be viewed. At this time, the cursor position mu8_cursor where the current cursor is located is obtained first, and then it is judged whether the cursor position mu8_cursor is less than the fault count value. If yes, the first parameter (2, mu8_cursor) is transmitted to the first function, so that the coordinate information of the current cursor is calculated, and the current cursor (old cursor) is cleared. Then, mu8_cursor is incremented, and the first parameter (0, mu8_cursor) is transmitted to the first function, so that the coordinate information of the new cursor is calculated, and the new cursor is displayed on the display screen. If the cursor position where the current cursor is located is equal to the fault count value, it is continuously judged whether the fault count value is 1. If yes, it indicates that there is only one fault, and at this time, the down key is not processed. If the fault count value is greater than 1, it indicates that the cursor position where the current cursor is located is the position of the last fault at this time, and at this time, the down key 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 transmitted to the first function, so that the coordinate information of the current cursor is calculated, and the current cursor (old cursor) is cleared. Then, mu8_cursor is set to 1, and the first parameter (0, mu8_cursor) is transmitted to the first function, so that the coordinate information of the new cursor is calculated, and the new cursor is displayed on the display screen.

[0067] In some embodiments of the present application, when the up key of the air conditioner detector is pressed, the following steps in step S500 are performed: when the key of the air conditioner detector is pressed, according to the function of the key, the first parameter is transmitted 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:

[0068] (1) When the function of the key is the up key, the cursor position of the current cursor is obtained.

[0069] (2) When the cursor position of the current cursor is greater than 1, the first parameter corresponding to the current cursor is obtained and transmitted 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 decremented by 1, the first parameter corresponding to the new cursor is obtained and transmitted 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 transmitted 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 to the fault count value, the first parameter corresponding to the new cursor is obtained and transmitted 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 key is the up key, it indicates that the previous fault needs to be viewed. At this time, the cursor position mu8_cursor where the current cursor is located is obtained first, and then it is judged whether the cursor position mu8_cursor is greater than 1. If yes, the first parameter (2, mu8_cursor) is transmitted to the first function, so that the coordinate information of the current cursor is calculated, and the current cursor (old cursor) is cleared. Then, mu8_cursor is decremented, and the first parameter (0, mu8_cursor) is transmitted to the first function, so that the coordinate information of the new cursor is calculated, and the new cursor is displayed on the display screen. 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 indicates that there is only one fault, and the up key is not processed at this time. If the cursor position mu8_cursor where the current cursor is located is 1, and the fault count value gu8_err_cnt is greater than 1, it indicates that the cursor position where the current cursor is located is the position of the first fault at this time, and the up key indicates that the cursor needs to be returned to the position of the last fault at this time. At this time, the first parameter (2, 1) is transmitted to the first function, so that the coordinate information of the current cursor is calculated, and the current cursor (old cursor) is cleared. Then, mu8_cursor is set to gu8_err_cnt, and the first parameter (0, mu8_cursor) is transmitted to the first function, so that the coordinate information of the new cursor is calculated, and the new cursor is displayed on the display screen.

[0072] In some embodiments of the present application, when it is confirmed that the key is pressed, the step S500 described above: according to the function of the key, the second parameter is transmitted to the second function, so that the second function finds and displays the corresponding fault sub-page, specifically including the following two steps:

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

[0074] (2) The second parameter is transmitted to the second function, so that the second function finds and displays the corresponding fault sub-page.

[0075] Specifically, when the confirmation button of the air conditioner detector is pressed, the fault at the position of the cursor is selected, at this time, the corresponding fault sub-page needs to be entered. 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 is passed to the second function (B function), so that the second function B (ga_dis_err_buff[mu8_cursor]) is called, so that the second function finds and jumps to the corresponding fault information sub-page. It should be noted that the function of the second function is to determine which fault according to the second parameter passed, i.e. the fault number (with uniqueness), through the switch condition judgment, assign the first page of the corresponding fault information sub-page to the current page current_page variable, and the display screen updates the display according to the current page to realize the jump.

[0076] In addition, when the confirmation button of the air conditioner detector is pressed, in addition to passing the second parameter to the second function, the flag bit mb_switch_subpage_flag of the air conditioner detector is set to 1, and the page value mu16_last_page of the fault display page is saved as FAULT_PAGE_1; in the state of the flag bit being 1, when the up button or the down button of the air conditioner detector is pressed, the up / down switching fault sub-page is displayed; when the back button of the air conditioner detector is pressed, the current page is set to the recorded page value, i.e. current_page=mu16_last_page, so as to return to the fault display page, and the flag bit mb_switch_subpage_flag of the air conditioner detector is set to 0.

[0077] The fault display method of the air conditioner detector according to the embodiment of the application can be used to make the detector display all faults of the air conditioner that occur and are sent out through the indoor and outdoor machine protocol, and all actually occurring faults can be displayed on the same fault display page; the support fault (code) can be selected, and after the selected fault, the fault sub-page can be jumped to view the fault information, including the fault name, the indoor and outdoor machine fault type, the cause and the solution method, which is convenient for the user to view the specific fault / solve the fault, improves the efficiency, is more humanized, and meets the user demand; the display has an automatic refreshing function, when a fault is solved / added, after a set time, the fault display will be automatically updated; when the user is operating, the refreshing is stopped, and the user experience is focused; the coordinates of the display area are automatically calculated by the function, and the fault sub-page is found by the function itself, and only simple parameter passing is needed, which greatly reduces the programming difficulty and the maintenance code is simple and convenient.

[0078] As Figure 3As shown, the following will be described in detail with a specific embodiment of the fault display method of the air conditioner detector of the present application, and it should be noted that the following embodiments are only exemplary and not specific limitations of the present application.

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

[0080] Step 1: After power-on, initialize the module peripherals, and the main function while loop will perform tasks such as dog feeding, key scanning, timing data analysis, LCD display, etc. Enter the fault display page by pressing the key; if it is entered from other pages of the air conditioner detector, there is no need to wait for T refresh time;

[0081] Step 2: LCD updates the display every time the fault display page is entered, and the timing variable pu8_dis_cnt is incremented by 1 unit of time;

[0082] Step 3: When there is no key 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 judge whether the air conditioner has a fault, if not, display normal, if yes, continue to judge the fault category (indoor unit fault or outdoor unit fault), and assign the corresponding macro to the variable pu8_i;

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

[0085] Step 6: If gu8_err_cnt is 1, pass it to the A function 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 the A function to calculate the fault coordinates and find the fault code, and finally call the function to complete the fault display;

[0086] ​Step 7: Then pu8_i++, if pu8_i<ERR_MAX_NUM, return Step 5, otherwise, it means that the fault has been found, and the loop is exited.

[0087] Step 8: Again, it is judged whether a key is pressed or not, if yes, the timing time pu8_dis_cnt is cleared, if no, return Step 2; if the display fault count value gu8_err_cnt=0, it is not processed and returns to Step 2, otherwise, the key function is judged, the down key judges whether the cursor position mu8_cursor is <gu8_err_cnt, if yes, the A function is called with parameters to clear the old cursor and mu8_cursor is incremented; otherwise, it is judged whether gu8_err_cnt is 1, if yes, the down key is invalid and is not processed, otherwise, the function A(2, gu8_err_cnt) is called to clear the old cursor, and mu8_cursor=1; finally, the function A(0, mu8_cursor) is called to calculate the coordinates and display the new cursor; the up key judges whether mu8_cursor>1, if yes, the A function is called with parameters to clear the old cursor and mu8_cursor is decremented; otherwise, it is judged whether gu8_err_cnt is 1, if yes, the up key is invalid and is not processed, otherwise, the function A(2, 1) is called to clear the old cursor, and mu8_cursor=gu8_err_cnt; finally, the function A(0, mu8_cursor) is called to calculate the coordinates and display the new cursor; the confirm key selects the fault, the function B(ga_dis_err_buff[mu8_cursor]) is called to find and jump to the corresponding fault information subpage, and mb_switch_subpage_flag=1, the previous page value mu16_last_page=FAULT_PAGE_1 is saved, and Step 9 is entered; the flag bit mb_switch_subpage_flag is 1, which means that the special logic processing is entered, that is, Step 9.

[0088] Step 9: The key function is judged, the up / down key is cyclically switched to view the information of the subpage; the return key returns to the parent page, and the current page current_page=mu16_last_page, mb_switch_subpage_flag=0, and Step 2 is returned.

[0089] On the other hand, the embodiment of the present application also proposes an air conditioner detector, comprising:

[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 according to the obtained program instructions.

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

[0093] Although specific embodiments are described herein, those skilled in the art will recognize that many other modifications or alternative embodiments are also within the scope of this disclosure. For example, any of the functions and / or processing capabilities described in connection with a particular device or component can be performed by any other device or component. Furthermore, while various exemplary embodiments and architectures have been described according to embodiments of this disclosure, those skilled in the art will recognize that many other modifications to the exemplary embodiments and architectures described herein are also within the scope of this disclosure.

[0094] The foregoing description, with reference to block diagrams and flowcharts of systems, methods, systems, and / or computer program products according to exemplary embodiments, has described certain aspects of this disclosure. It should be understood that one or more blocks in the block diagrams and flowcharts, as well as combinations of blocks in the block diagrams and flowcharts, can be implemented by executing computer-executable program instructions, respectively. Similarly, according to some embodiments, some blocks in the block diagrams and flowcharts may not need to be executed in the order shown, or may not all need to be executed. Furthermore, additional components and / or operations beyond those shown in the blocks in the block diagrams and flowcharts may exist in some embodiments.

[0095] Therefore, blocks in block diagrams and flowcharts support combinations of means for performing a specified function, combinations of elements or steps for performing a specified function, and program instruction means for performing a specified function. It should also be understood that each block in a block diagram and flowchart, and combinations of blocks in block diagrams and flowcharts, can be implemented by a dedicated hardware computer system or a combination of dedicated hardware and computer instructions that performs a specific function, element, or step.

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

[0097] Software components can be encoded in any of a variety of programming languages. One example programming language can be a low-level programming language, such as an assembly language associated with a particular hardware architecture and / or operating system platform. Software components that include assembly language instructions can need to be translated by an assembler into executable machine code before execution by the hardware architecture and / or platform. Another example programming language can be a higher-level programming language that can be portable across multiple architectures. Software components that include a higher-level programming language can need to be translated by an interpreter or compiler into an intermediate representation before execution. Other examples of programming languages include, but are not limited to, a macro language, a shell or command language, a job control language, a script language, a database query or search language, or a report writing language. In one or more example embodiments, a software component that includes instructions in one of the above examples of programming languages can be executed directly by an operating system or other software component without first being translated into another form.

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

[0099] The above embodiments of the present application have been described in detail but not limited to the above-mentioned embodiments, within the scope of knowledge of those skilled in the art, various changes can be made without departing from the spirit of the present application.

Claims

1. A fault display method of an air conditioner detector, characterized by, The method comprises the following steps: entering a fault display page of an air conditioner detector, the air conditioner detector detecting whether the air conditioner has faults; when the air conditioner has faults, the air conditioner detector counting all the faults of the air conditioner, obtaining a fault count value; and obtaining fault information of each fault, and storing each fault information in a corresponding fault sub-page; creating a first array, and assigning a corresponding element variable of the first array according to each fault; inquiring all elements of the first array, obtaining all non-zero fault elements, and saving the fault elements to a second array; when a key of the air conditioner detector is pressed, according to a function of the key, a first parameter is transmitted to a first function, so that the first function calculates coordinate information of a cursor or a fault code, or a second parameter is transmitted to a second function, so that the second function finds and displays a corresponding fault sub-page; the second parameter is a corresponding element in the second array.

2. The method of claim 1, wherein the method further comprises: The method further comprises the following steps: when entering the fault display page of the air conditioner detector, starting timing, and obtaining a timing value; when the key of the air conditioner detector is not pressed, and the timing value reaches a preset value, refreshing and displaying the fault display page, and clearing the timing value and the fault count value, and starting timing and counting faults again, and displaying the faults.

3. The method of claim 2, wherein the display of the fault of the air conditioner detector is performed in the form of a text message. The method further comprises the following steps: when the key of the air conditioner detector is pressed, stopping timing, and clearing the timing value.

4. The method of claim 1, wherein the method further comprises: The step of, when the key of the air conditioner detector is pressed, according to a function of the key, transmitting a first parameter to a first function, so that the first function calculates coordinate information of a cursor or a fault code, or transmitting a second parameter to a second function, so that the second function finds and displays a corresponding fault sub-page, comprises: when the function of the key is a down key, obtaining a cursor position of a current cursor; when the cursor position of the current cursor is less than the fault count value, obtaining a first parameter corresponding to the current cursor and sending the first parameter to the first function, so that the first function calculates coordinate information of the current cursor and clears the current cursor, then setting the cursor position to 1, obtaining a first parameter corresponding to a new cursor and sending the first parameter to the first function, so that the first function calculates 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, obtaining a first parameter corresponding to the current cursor and sending the first parameter to the first function, so that the first function calculates coordinate information of the current cursor and clears the current cursor, then setting the cursor position to 1, obtaining a first parameter corresponding to a new cursor and sending the first parameter to the first function, so that the first function calculates coordinate information of the new cursor and displays the new cursor.

5. The method of claim 4, wherein the method further comprises: The first parameter comprises a mode parameter and a cursor parameter, and the first function has multiple calculation modes; the step of the first function calculating a coordinate of the current cursor and clearing the current cursor comprises: calculating row information and column information where the current cursor is located according to the cursor parameter; According to the mode parameter, a corresponding calculation mode is determined, and coordinate information of a current cursor is calculated according to the calculation mode, the row information and the column information, and the current cursor is cleared.

6. The method of claim 1, wherein the method further comprises: The step of, when the key of the air conditioner detector is pressed, according to the function of the key, delivering a first parameter to a first function, so that the first function calculates coordinate information of a cursor or a fault code, or delivering a second parameter to a second function, so that the second function searches and displays a corresponding fault sub-page, includes: When the function of the key is an up key, the cursor position of the current cursor is obtained; 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, and then the cursor position is decremented 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 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 method of claim 1, wherein the method further comprises: The step of, when the key of the air conditioner detector is pressed, according to the function of the key, delivering a first parameter to a first function, so that the first function calculates coordinate information of a cursor or a fault code, or delivering a second parameter to a second function, so that the second function searches and displays a corresponding fault sub-page, includes: When the function of the key is a confirmation key, according to the cursor position of the current cursor, an element corresponding to the second parameter in the second array is selected as the second parameter; The second parameter is delivered to the second function, so that the second function searches and displays the corresponding fault sub-page.

8. The method of claim 7, wherein the method further comprises: After the second parameter is delivered to the second function, it further includes: The flag bit of the air conditioner detector is set to 1, and the page value of the fault display page is saved; When the up key or the down key of the air conditioner detector is pressed, the displayed fault sub-page is switched; When the back key of the air conditioner 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 conditioner detector is set to 0.

9. The method of claim 1, wherein the method further comprises: Before the step of entering the fault display page of the air conditioner detector and detecting whether the air conditioner has a fault, it 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 analysis and LCD display; In response to a menu selection operation of the air conditioner detector, the fault display page is entered.

10. An air conditioner detector, characterized by comprising: It includes: A memory for storing program instructions; A processor is configured to invoke program instructions stored in the memory and execute the fault display method of the air conditioner detector according to the obtained program instructions.

Citation Information

Patent Citations

  • Method and device for searching air conditioner breakdowns

    CN103196208A

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

    CN118776021A