Control device and method, equipment and storage medium
A dual-touch screen system in vehicles addresses the safety concern of touch screen failures by enabling the secondary screen to take over primary functions during abnormalities, ensuring continuous vehicle operation and safety.
Patent Information
- Application Number
- CN202411039425.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-12-03
AI Technical Summary
When a touch screen in a vehicle experiences an abnormality during high-speed driving, the driver is unable to effectively manage the situation, compromising driving safety due to the lack of timely intervention capabilities.
A control device with dual touch screens is implemented, where a secondary touch screen displays an emergency screen based on the functions of the primary screen when an abnormality is detected, utilizing capacitance value analysis to determine issues and enabling the secondary screen to take over operations.
Ensures driving safety by allowing the secondary touch screen to handle emergency functions when the primary screen fails, ensuring continuous vehicle operation and safety.
Smart Images

Figure CN119058385A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle-mounted terminal technology, and in particular to a control device, method, equipment and storage medium. Background Art
[0002] With the advancement of modern technology, along with the increase of automobile functions, the operations that need to be triggered by the driver will also increase. In order to reduce the driver's operations, the relevant technology usually uses a central control screen to intelligently manage the functions of the car. In order to facilitate management, the number of central control screens has also increased, but usually only one of the multiple central control screens has a touch function. When the vehicle is driving at high speed and there is a sudden abnormality on the touch screen, the driver will not be able to deal with the abnormal problem in a timely and effective manner, which will lead to the inability to ensure driving safety. Summary of the invention
[0003] In view of this, the present application provides a control device, method, equipment and storage medium to help resolve the safety hazards caused by touch screen failure.
[0004] In a first aspect, an embodiment of the present application provides a control device, the device comprising:
[0005] A display module, the display module comprising a first touch screen and a second touch screen; the second touch screen is at least used to display an emergency screen when an abnormal instruction is received, wherein the emergency screen is set based on a target function in the first touch screen;
[0006] An acquisition module, used to at least acquire a capacitance value of the first touch screen;
[0007] A determination module, configured to determine whether an abnormality occurs to the first touch screen based on the capacitance value;
[0008] The instruction generation module is used to generate an abnormal instruction if it is determined that the first touch screen has an abnormality, and send the abnormal instruction to the second touch screen.
[0009] In the present application, the capacitance value of the touch screen is used to determine whether an abnormality occurs in the first touch screen. When an abnormality occurs in the first touch screen, the second touch screen is used to display an emergency screen. The function of the first touch screen can be implemented through the second touch screen, and emergency processing can be performed through the second touch screen, thereby ensuring driving safety.
[0010] In some possible embodiments, the determination module is specifically configured to:
[0011] Performing analog-to-digital conversion on the capacitance value to obtain a target noise value corresponding to the capacitance value;
[0012] Determine whether the target noise value is the same as the last noise value; the last noise value is the noise value corresponding to the capacitance value obtained last time;
[0013] If they are the same, executing the first process until the number of executions of the first process exceeds a preset number of times, or until it is determined that the first noise value is different from the target noise value;
[0014] If the execution number of the first process exceeds the preset number, it is determined that an abnormality has occurred on the first touch screen;
[0015] The first process includes:
[0016] Obtaining a target noise value, and determining whether the target noise value is the same as a previous noise value; wherein the previous noise value is a noise value corresponding to a capacitance value obtained before a capacitance value corresponding to the target noise value;
[0017] If they are the same, the counter is updated using the execution times of the first process;
[0018] If they are different, the counter is cleared.
[0019] In some possible embodiments, after determining that an abnormality occurs on the first touch screen, the instruction generation module is further configured to:
[0020] The level of the first target pin is increased so that the second target pin performs the step of determining the abnormal type of the first touch screen after receiving the level.
[0021] In some possible embodiments, after the display module controls the second touch screen to display the emergency screen based on the abnormal instruction, it is also used to:
[0022] Receiving a touch operation triggered by a user based on the emergency screen;
[0023] Determine a target control corresponding to the touch operation;
[0024] Execute the operation corresponding to the target control.
[0025] In some possible embodiments, the display module is further used for:
[0026] Acquire a display screen corresponding to the second touch screen; the display screen corresponding to the second touch screen is the screen that was being displayed before the second touch screen displayed the emergency screen;
[0027] Zooming out the display image to obtain a zoomed-out image;
[0028] The reduced screen is displayed at a first preset position in the emergency screen.
[0029] In some possible embodiments, after the display module displays the reduced screen at the first preset position in the emergency screen, it is further configured to:
[0030] In response to a zoom-in operation triggered by the zoomed-out picture, zooming in on the zoomed-out picture to obtain an enlarged picture;
[0031] Displaying the enlarged image;
[0032] The emergency screen is reduced to obtain a reduced emergency screen;
[0033] The reduced emergency screen is displayed at a second preset position in the enlarged screen.
[0034] In some possible embodiments, the display module is specifically used for:
[0035] Dividing the display image into a specified number of sub-image blocks;
[0036] Determine the pixel mean of each sub-image block;
[0037] The reduced picture is constructed based on the pixel mean value of each sub-image block.
[0038] In some possible embodiments, if the first touch screen is a main touch screen, the second touch screen is an auxiliary touch screen; if the first touch screen is an auxiliary touch screen, the second touch screen is a main touch screen.
[0039] In some possible embodiments, the number of the auxiliary touch screens is greater than or equal to one.
[0040] In some possible embodiments, if no abnormality occurs in the first touch screen, the second touch screen is further used to: hide the touch function.
[0041] In a second aspect, an embodiment of the present application provides a control method, the method comprising:
[0042] In response to a zoom-in operation triggered by the zoomed-out picture, the zoomed-out picture is zoomed in to obtain an zoomed-in picture.
[0043] Display the enlarged screen.
[0044] The emergency screen is reduced to obtain a reduced emergency screen.
[0045] The reduced emergency picture is displayed at a second preset position in the enlarged picture.
[0046] In some possible embodiments, determining whether an abnormality occurs in the first touch screen based on the capacitance value includes:
[0047] Performing analog-to-digital conversion on the capacitance value to obtain a target noise value corresponding to the capacitance value;
[0048] Determine whether the target noise value is the same as the last noise value; the last noise value is the noise value corresponding to the capacitance value obtained last time;
[0049] If they are the same, executing the first process until the number of executions of the first process exceeds a preset number of times, or until it is determined that the first noise value is different from the target noise value;
[0050] If the execution number of the first process exceeds the preset number, it is determined that an abnormality has occurred on the first touch screen;
[0051] The first process includes:
[0052] Obtaining a target noise value, and determining whether the target noise value is the same as a previous noise value; wherein the previous noise value is a noise value corresponding to a capacitance value obtained before a capacitance value corresponding to the target noise value;
[0053] If they are the same, the counter is updated using the execution times of the first process;
[0054] If they are different, the counter is cleared.
[0055] In some possible embodiments, after determining that an abnormality occurs on the first touch screen, the method further includes:
[0056] The level of the first target pin is increased so that the second target pin performs the step of determining the abnormal type of the first touch screen after receiving the level.
[0057] In some possible embodiments, after controlling the second touch screen to display the emergency screen based on the abnormal instruction, the method further includes:
[0058] Receiving a touch operation triggered by a user based on the emergency screen;
[0059] Determine a target control corresponding to the touch operation;
[0060] Execute the operation corresponding to the target control.
[0061] In some possible embodiments, the method further includes:
[0062] Acquire a display screen corresponding to the second touch screen; the display screen corresponding to the second touch screen is the screen that was being displayed before the second touch screen displayed the emergency screen;
[0063] Zooming out the display image to obtain a zoomed-out image;
[0064] The reduced screen is displayed at a first preset position in the emergency screen.
[0065] In some possible embodiments, after displaying the reduced screen at the first preset position in the emergency screen, the method further includes:
[0066] In response to a zoom-in operation triggered by the zoomed-out picture, zooming in on the zoomed-out picture to obtain an enlarged picture;
[0067] Displaying the enlarged image;
[0068] The emergency screen is reduced to obtain a reduced emergency screen;
[0069] The reduced emergency screen is displayed at a second preset position in the enlarged screen.
[0070] In some possible embodiments, the zooming out of the display screen to obtain a zoomed out screen includes:
[0071] Dividing the display image into a specified number of sub-image blocks;
[0072] Determine the pixel mean of each sub-image block;
[0073] The reduced picture is constructed based on the pixel mean value of each sub-image block.
[0074] In some possible embodiments, if the first touch screen is a main touch screen, the second touch screen is an auxiliary touch screen; if the first touch screen is an auxiliary touch screen, the second touch screen is a main touch screen.
[0075] In some possible embodiments, the number of the auxiliary touch screens is greater than or equal to one.
[0076] In some possible embodiments, if no abnormality occurs on the first touch screen, the second touch screen hides the touch function.
[0077] In the third aspect, another embodiment of the present application also provides an electronic device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method provided in the embodiment of the first aspect of the present application.
[0078] In a fourth aspect, another embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute any method provided in the embodiment of the first aspect of the present application.
[0079] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0081] Figure 1 A schematic diagram of a control device provided in an embodiment of the present application;
[0082] Figure 2 A schematic diagram of a functional flow of a second touch screen realizing a first touch screen of a control device provided in an embodiment of the present application;
[0083] Figure 3 A schematic diagram of a screen displayed when a first touch screen and a second touch screen of a control device provided in an embodiment of the present application can both be used normally;
[0084] Figure 4 A schematic diagram of an emergency screen of a control device provided in an embodiment of the present application;
[0085] Figure 5A A schematic diagram of a control device provided in an embodiment of the present application displaying a zoomed-out screen in the upper right corner of an emergency screen;
[0086] Figure 5B A schematic diagram of a control device provided in an embodiment of the present application for determining a reduced image by an equal-interval sampling method;
[0087] Figure 5C Another schematic diagram of a control device provided in an embodiment of the present application for determining a reduced image by an equal-interval sampling method;
[0088] Figure 6 A schematic diagram of a process of enlarging a reduced image by a control device provided in an embodiment of the present application;
[0089] Figure 7 A schematic diagram of an enlarged screen of a control device provided in an embodiment of the present application;
[0090] Figure 8 A schematic diagram of a reduced emergency screen of a control device provided in an embodiment of the present application;
[0091] Fig. 9 A schematic diagram of a control device provided in an embodiment of the present application displaying a reduced emergency screen in the upper right corner of an enlarged screen;
[0092] Fig. 10A A schematic diagram of a flow chart of a control device for determining whether an abnormality occurs on a first touch screen according to an embodiment of the present application;
[0093] Fig. 10B A schematic diagram of a flow chart of abnormality determination of a first touch screen by a control device provided in an embodiment of the present application;
[0094] Fig. 10C A schematic diagram of a flow chart of a second touch screen of a control device displaying an emergency screen according to an embodiment of the present application;
[0095] Fig.11 A first flow chart of a control device provided in an embodiment of the present application;
[0096] Fig.12 A schematic diagram of the overall flow of a control method provided in an embodiment of the present application;
[0097] Fig.13 A schematic diagram of an electronic device of a control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0098] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0099] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0100] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0101] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0102] The inventor has found that with the advancement of modern technology, as the functions of automobiles increase, the number of operations that need to be triggered by the driver will also increase. In order to reduce the driver's operations, the relevant technology usually uses a central control screen to intelligently manage the functions of the automobile. In order to facilitate management, the number of central control screens has also increased, but usually only one of the multiple central control screens has a touch function. When the vehicle is driving at high speed and a sudden abnormality occurs on the touch screen, the driver will not be able to deal with the abnormal problem in a timely and effective manner, which will lead to the inability to ensure driving safety.
[0103] In response to the above problems, the embodiments of the present application provide a control device, method, equipment and storage medium for solving the above problems. In the hardware configuration, all screens in the vehicle are set as touch screens with touch function. In the process of software configuration, the screen that is convenient for user operation in the vehicle display screen is set as the main touch screen, and other screens hide the touch function and are set as auxiliary touch screens. When the determination module in the vehicle system detects that an abnormality occurs in the main touch screen, the instruction generation module will generate an abnormal instruction. When the auxiliary touch screen receives the abnormal instruction, it will temporarily replace the main touch screen, that is, the emergency button of the main touch screen will be displayed on the auxiliary touch screen, and the original information on the auxiliary touch screen will be reduced. In this process, the vehicle system can perform diagnostic detection and abnormal processing on the screen, and the processing of this behavior is relatively safe.
[0104] Based on this, the inventive concept of the present application can be summarized as: obtaining the capacitance value of the first touch screen; determining whether an abnormality has occurred in the first touch screen based on the capacitance value; if it is determined that an abnormality has occurred in the first touch screen, generating an abnormal instruction; based on the abnormal instruction, controlling the second touch screen to display an emergency screen; wherein the emergency screen is set based on the target function in the first touch screen.
[0105] In the present application, the capacitance value of the touch screen is used to determine whether an abnormality occurs in the first touch screen. When an abnormality occurs in the first touch screen, the second touch screen is used to display an emergency screen. The function of the first touch screen can be implemented through the second touch screen, and emergency processing can be performed through the second touch screen, thereby ensuring driving safety.
[0106] For ease of understanding, a control device provided in an embodiment of the present application is described in detail below with reference to the accompanying drawings:
[0107] like Figure 1 , which is a schematic diagram of a control device in an embodiment of the present application. The figure includes: a display module 1001, an acquisition module 1002, a determination module 1003, and an instruction generation module 1004; wherein:
[0108] First, the display module 1001 in the present application is described. The display module includes a first touch screen and a second touch screen; the second touch screen is at least used to display an emergency screen when an abnormal instruction is received, wherein the emergency screen is set based on the target function in the first touch screen.
[0109] In the present application, in order to prevent the user from being unable to control the vehicle through the touch screen when the touch screen is stuck or displays abnormally, at least two touch screens are set in the present application, namely the first touch screen and the second touch screen. When the first touch screen is abnormal, the second touch screen can be used to display the target function in the first touch screen, and then the user can realize the function of the first touch screen through the second touch screen. When the first touch screen is not abnormal, the second touch screen can hide its own touch function, and only when the first touch screen is abnormal, the touch function replaces part of the functions in the first display screen.
[0110] In some possible embodiments, in order to ensure that when an abnormality occurs on the first touch screen, the second touch screen can promptly display the emergency screen corresponding to the first touch screen, when an abnormality occurs on the first touch screen, the instruction generation module 1004 needs to generate an abnormal instruction and send the abnormal instruction to the second touch screen.
[0111] In some possible embodiments, in order to ensure that the second touch screen can realize the function of the first touch screen, after the display module 1001 executes the control of the second touch screen to display the emergency screen based on the abnormal instruction, it can also be used to execute the following steps: Figure 2 The operations shown, where:
[0112] In step 201: receiving a touch operation triggered by a user based on an emergency screen.
[0113] In the present application, the emergency screen displayed on the second touch screen is set according to the target function in the first touch screen, that is, the second touch screen can realize the target function in the first touch screen.
[0114] In some possible embodiments, in order to ensure that the second touch screen can cope with emergencies and ensure driving safety, the target function can be set by a technician according to the priority that affects the driving of the vehicle.
[0115] For example: the functions in the first touch screen include: music player, video player, navigation, voice assistant, window defogger, and automatic start and stop; the priority of each function is: music player priority 5, video player priority 5, navigation priority 2, voice assistant priority 4, window defogger priority 1, and automatic start and stop priority 3; then navigation, window defogger and automatic start and stop can be set as target functions.
[0116] In step 202: determining a target control corresponding to the touch operation.
[0117] The first touch screen and the second touch screen in the present application include a touch chip, which can convert analog quantities into corresponding digital quantities, and then establish a corresponding three-dimensional model through the internal algorithm of the chip. By judging the digital quantities, the target control triggered by the user can be determined according to the user's touch operation.
[0118] In step 203: executing the operation corresponding to the target control.
[0119] For example, when both the first touch screen and the second touch screen can be used normally, the screen displayed is as follows: Figure 3 As shown, if the second touch screen receives an abnormal instruction, it will display Figure 4 The emergency screen shown; if the user triggers Figure 4 If the automatic start-stop function is selected, the vehicle will perform the corresponding operation of automatic start-stop.
[0120] In some possible embodiments, in order to ensure that the second touch screen can realize its original functions while displaying the emergency screen, the display module 1001 can also be used to: obtain the display screen corresponding to the second touch screen; the display screen corresponding to the second touch screen is the screen being displayed before the second touch screen displays the emergency screen; reduce the display screen to obtain a reduced screen; and display the reduced screen at a first preset position in the emergency screen.
[0121] That is, in the present application, the second touch screen can reduce the display screen corresponding to itself, and display the reduced screen while displaying the emergency screen.
[0122] For example: Figure 5A As shown, the display module shrinks the display screen corresponding to the second touch screen to obtain a shrunken screen, and displays the shrunken screen in the upper right corner of the emergency screen.
[0123] It should be noted that Figure 5A This is only an embodiment and does not limit the first preset position. In specific implementation, the first preset position can be in the upper right corner, upper left corner, lower right corner, lower left corner, etc. of the emergency screen. This application does not limit the specific setting method of the first preset position.
[0124] Secondly, in the present application, there is no limitation on the reduction ratio when the display screen corresponding to the second touch screen is reduced. In specific implementation, the reduction ratio can be set according to the size of the display screen.
[0125] In some possible embodiments, when the display module performs a reduction process on the display screen corresponding to the second touch screen, the display module may use an equidistant sampling method. In the traditional equidistant sampling method, the pixel information that is not selected in the original image will be lost in the reduced image. Therefore, in the present application, when determining the reduced image, not only the sampling point pixels in the original image are taken, but also the original image is divided into multiple sub-image blocks based on two adjacent sampling points. The pixels of the reduced image take the pixel mean of the corresponding sub-image block. The reduced image is constructed based on the pixel mean of each sub-image block.
[0126] For example: Figure 5B As shown, the display screen corresponding to the second touch screen includes multiple pixel points, namely F11-F46. The display screen is divided to obtain 12 sub-image blocks, and the pixel means of the obtained sub-image blocks are: g11, g12, g13, g14, g21, g22, g23, g24, g31, g32, g33, g34, that is, g11 = (F11 + F12 + F21 + F22) / 4, g12 = (F13 + F24) / 4, 23) / 2, g13=(F14+F15+F24+F25) / 4, g14=(F16+F26) / 2, g21=(F31+F32) / 2, g22=F33, g23=(F34+F35) / 2, g24=F36, g31=(F41+F42) / 2, g32=F43, g33=(F44+F45) / 2, g34=F46; and thus a reduced image can be obtained.
[0127] Or, for example: Figure 5C As shown, the second touch screen includes N*N pixels. The N*N pixels are first segmented to obtain sub-image blocks F11-F46, and F11-F46 are segmented again to obtain 12 sub-image blocks. A reduced image is constructed based on the pixel means corresponding to the 12 sub-image blocks.
[0128] That is, in the present application, the display module may use the equal-interval sampling method multiple times when reducing the display image corresponding to the second touch screen, and the present application does not limit the number of times the equal-interval sampling method is used.
[0129] It should be noted that when dividing the display screen, the display screen can be divided into N*N sub-image blocks, and the number of divided sub-image blocks can be set according to the needs, which is not limited in the present application.
[0130] In some possible embodiments, when the second touch screen displays the emergency screen and the reduced screen, the user may want to operate the function of the second touch screen. Therefore, after the display module 1001 executes the display of the reduced screen at the first preset position in the emergency screen, it can also be used to implement the following operations: Figure 6The steps shown, where:
[0131] In step 601: in response to a zoom-in operation triggered by a zoomed-out picture, the zoomed-out picture is zoomed in to obtain an zoomed-in picture.
[0132] In the present application, in order to facilitate the user to operate the second touch screen, the reduced screen needs to be enlarged first.
[0133] For example: Figure 7 As shown, the user triggers a zoom-in operation on the zoomed-out picture to obtain the zoomed-in picture.
[0134] The specific implementation methods of the zoom-in operation are not limited in the present application, including but not limited to: single-click, double-click, triple-click, long press, etc.
[0135] In step 602: the enlarged image is displayed.
[0136] In step 603: the emergency screen is reduced to obtain a reduced emergency screen.
[0137] In the present application, in order to ensure that the second touch screen can display its own screen and the emergency screen at the same time, the emergency screen can be reduced.
[0138] In the present application, the process of reducing the emergency screen is the same as the process of reducing the display screen, and will not be repeated here.
[0139] For example: Figure 8 As shown, the emergency screen is reduced to obtain a reduced emergency screen.
[0140] In step 604: the reduced emergency screen is displayed at a second preset position in the enlarged screen.
[0141] For example: Fig. 9 As shown, a zoomed-in picture is displayed on the second touch screen, and a reduced emergency picture is displayed in the upper right corner of the zoomed-in picture.
[0142] What you need to know is, Fig. 9 This is only an embodiment and does not limit the second preset position. In specific implementation, the second preset position can be in the upper right corner, upper left corner, lower right corner, lower left corner, etc. of the emergency screen. This application does not limit the specific setting method of the second preset position, and the first preset position and the second preset position can be the same or different.
[0143] The second touch screen displays Fig. 9When the screen shown is displayed, if the user wants to operate the emergency screen, the zoom operation can be triggered for the emergency screen, and then the emergency screen is zoomed in and the screen corresponding to the second touch screen is zoomed out, and the zoomed out screen is displayed at the preset position of the emergency screen.
[0144] The acquisition module 1002 and the determination module 1003 in the present application are described below. The acquisition module 1002 is used to at least acquire the capacitance value of the first touch screen; the determination module 1003 is used to determine whether an abnormality occurs in the first touch screen based on the capacitance value.
[0145] In the present application, after the acquisition module 1002 acquires the capacitance value of the first touch screen, the determination module 1003 can convert the capacitance value acquired by the acquisition module 1002 into a noise value through an internal integrated algorithm, and then determine whether an abnormality occurs in the first touch screen through the noise value.
[0146] In some possible embodiments, the determination module 1003 is specifically configured to implement the following Fig. 10A The steps shown are used to determine whether an abnormality occurs on the first touch screen, wherein:
[0147] In step 1001: performing analog-to-digital conversion processing on the capacitance value to obtain a target noise value corresponding to the capacitance value.
[0148] In the present application, when performing analog-to-digital conversion on the capacitance value, the internal integrated algorithm of the determination module 1003 can be used to obtain a numerical noise value, which is convenient for subsequent calculations.
[0149] In step 1002: determine whether the target noise value is the same as the last noise value; the last noise value is the noise value corresponding to the capacitance value obtained last time; if they are the same, proceed to step 1003, otherwise proceed to step 1004.
[0150] In step 1003 : the first process is executed until the number of executions of the first process exceeds a preset number, or until it is determined that the first noise value is different from the target noise value.
[0151] In step 1004: determine that there is no abnormality in the first touch screen.
[0152] That is, in the present application, when the capacitance value collected this time is the same as the capacitance value collected last time, and the number of times they are the same is less than the preset number, it can be considered as an accidental situation, so the counter needs to be cleared. When the number of times the capacitance values collected are the same exceeds the preset number, it can be determined that the first touch screen has an abnormality in the touch function.
[0153] The following describes the process of the determination module determining an abnormality of the first touch screen in conjunction with the vehicle computer system. Fig. 10BAs shown, after the first touch screen is powered on, the determination module obtains the data of the first touch screen. If the received data is Code1, the first touch screen needs to be detected. Fig. 10A After the detection steps shown, if it is determined that the first touch screen has an abnormality, the first touch screen can be notified to perform a self-check again, and the abnormality detected this time can be recorded through the vehicle control unit (VCU).
[0154] The data carried in Code1 is the initialization data of the screen without the touch function, including but not limited to: the display state of the first touch screen, the image data latch pulse, the cyclic redundancy check (CRC), and the signal output mode.
[0155] like Fig. 10C As shown, after the second touch screen is powered on, if the first touch screen has no abnormality, the generated data is Code1, and Code1 is sent to the VCU. If an abnormal instruction is received, Code2 is generated and the emergency screen is displayed.
[0156] Among them, Code2 is the initialization data of the screen with touch function, including but not limited to: TP communication method, TP sensor (sensor) sensing amount, sensor partition method, finger and glove parameters.
[0157] In some possible embodiments, the first process can be specifically implemented as follows: Fig.11 The steps shown, where:
[0158] Step 1101: Obtain a target noise value and determine whether the target noise value is the same as the last noise value; if they are the same, proceed to step 1102, otherwise proceed to step 1103; wherein the last noise value is the noise value corresponding to the capacitance value obtained before the capacitance value corresponding to the target noise value.
[0159] Step 1102: Update a counter using the execution times of the first process.
[0160] If this is the first time to execute the first process, the starting value of the counter is a preset initial value. In some possible embodiments, the preset initial value can be set to 0 or 1.
[0161] Step 1103: Clear the counter.
[0162] For example: when the first process is executed for the first time, the target noise value obtained is A1, the last noise value is A1, it is determined that the target noise value is the same as the last noise value, and the initial value of the counter is determined to be 0, then the counter is updated to 1, and the preset number of times is 5, then the first process needs to be executed again;
[0163] The first process is executed for the second time, the target noise value obtained is A1, the previous noise value is A1, it is determined that the target noise value is the same as the previous noise value, and the current counter is determined to be 1, then the counter is updated to 2, the preset number of times is 5, and the first process needs to be executed again;
[0164] The first process is executed for the third time, the target noise value obtained is A1, the previous noise value is A1, it is determined that the target noise value is the same as the previous noise value, and the current counter is determined to be 2, then the counter is updated to 3, the preset number of times is 5, and the first process needs to be executed again;
[0165] The first process is executed for the fourth time, the target noise value obtained is A1, the previous noise value is A1, it is determined that the target noise value is the same as the previous noise value, and the current counter is determined to be 3, then the counter is updated to 4, the preset number of times is 5, and the first process needs to be executed again;
[0166] The first process is executed for the fifth time, the target noise value obtained is A1, the previous noise value is A1, it is determined that the target noise value is the same as the previous noise value, and the current counter is determined to be 4, then the counter is updated to 5, the preset number of times is 5, and the first process needs to be executed again;
[0167] The first process is executed for the sixth time, and the target noise value obtained is A1. The last noise value is A1. It is determined that the target noise value is the same as the last noise value. It is determined that the current counter is 5, so the counter is updated to 6. The preset number of times is 5, then it is determined that the execution number of the first process exceeds the preset number, then the execution of the first process is stopped, and it is determined that an abnormality has occurred on the first touch screen.
[0168] For another example: when the first process is executed for the first time, the target noise value obtained is A1, the previous noise value is A1, it is determined that the target noise value is the same as the previous noise value, and the initial value of the counter is determined to be 0, then the counter is updated to 1, and the preset number of times is 5, then the first process needs to be executed again;
[0169] The first process is executed for the second time, the target noise value obtained is A1, the previous noise value is A1, it is determined that the target noise value is the same as the previous noise value, and the current counter is determined to be 1, then the counter is updated to 2, the preset number of times is 5, and the first process needs to be executed again;
[0170] The first process is executed for the third time, the target noise value obtained is A2, the previous noise value is A1, and it is determined that the target noise value is different from the previous noise value, so the first process is stopped and it is determined that there is no abnormality in the first touch screen.
[0171] The instruction generation module 1001 in the present application is described below. The instruction generation module 1004 is used to generate an abnormal instruction when the determination module 1003 determines that the first touch screen is abnormal, and send the abnormal instruction to the display module 1001.
[0172] In some possible embodiments, in order to facilitate technicians to understand the abnormality type of the first touch screen, the instruction generation module 1004 is further used to: increase the level of the first target pin so that the second target pin executes the step of determining the abnormality type of the first touch screen after receiving the level.
[0173] In the present application, the instruction generation module 1004 can inform the second target pin that an abnormality has occurred in the first touch screen by increasing the level of the first target pin, so that the second target pin can start to execute the step of determining the abnormality type of the first touch screen.
[0174] In some possible embodiments, if a vehicle is provided with multiple touch screens, only one of them is a main touch screen, and the others are auxiliary touch screens. In this application, if the first touch screen is the main touch screen, the second touch screen is the auxiliary touch screen; if the first touch screen is the auxiliary touch screen, the second touch screen is the main touch screen. And the number of auxiliary touch screens in this application is greater than or equal to 1, that is, the vehicle has at least one main touch screen and one auxiliary touch screen.
[0175] Based on the same inventive concept, after introducing a control device provided by an embodiment of the present application, as shown in FIG. Fig.11 As shown, a control method provided by an embodiment of the present application is described below. Fig.12 As shown, where:
[0176] In step 1201 : in response to a zoom-in operation triggered by a zoomed-out screen, the zoomed-out screen is zoomed in to obtain an zoomed-in screen.
[0177] In step 1202: the enlarged image is displayed.
[0178] In step 1203: the emergency screen is reduced to obtain a reduced emergency screen.
[0179] In step 1204: the reduced emergency screen is displayed at a second preset position in the enlarged screen.
[0180] In some possible embodiments, determining whether an abnormality occurs in the first touch screen based on the capacitance value includes:
[0181] Performing analog-to-digital conversion on the capacitance value to obtain a target noise value corresponding to the capacitance value;
[0182] Determine whether the target noise value is the same as the last noise value; the last noise value is the noise value corresponding to the capacitance value obtained last time;
[0183] If they are the same, executing the first process until the number of executions of the first process exceeds a preset number of times, or until it is determined that the first noise value is different from the target noise value;
[0184] If the execution number of the first process exceeds the preset number, it is determined that an abnormality has occurred on the first touch screen;
[0185] The first process includes:
[0186] Obtaining a target noise value, and determining whether the target noise value is the same as a previous noise value; wherein the previous noise value is a noise value corresponding to a capacitance value obtained before a capacitance value corresponding to the target noise value;
[0187] If they are the same, the counter is updated using the execution times of the first process;
[0188] If they are different, the counter is cleared.
[0189] In some possible embodiments, after determining that an abnormality occurs on the first touch screen, the method further includes:
[0190] The level of the first target pin is increased so that the second target pin performs the step of determining the abnormal type of the first touch screen after receiving the level.
[0191] In some possible embodiments, after controlling the second touch screen to display the emergency screen based on the abnormal instruction, the method further includes:
[0192] Receiving a touch operation triggered by a user based on the emergency screen;
[0193] Determine a target control corresponding to the touch operation;
[0194] Execute the operation corresponding to the target control.
[0195] In some possible embodiments, the method further includes:
[0196] Acquire a display screen corresponding to the second touch screen; the display screen corresponding to the second touch screen is the screen that was being displayed before the second touch screen displayed the emergency screen;
[0197] Zooming out the display image to obtain a zoomed-out image;
[0198] The reduced screen is displayed at a first preset position in the emergency screen.
[0199] In some possible embodiments, after displaying the reduced screen at the first preset position in the emergency screen, the method further includes:
[0200] In response to a zoom-in operation triggered by the zoomed-out picture, zooming in on the zoomed-out picture to obtain an enlarged picture;
[0201] Displaying the enlarged image;
[0202] The emergency screen is reduced to obtain a reduced emergency screen;
[0203] The reduced emergency screen is displayed at a second preset position in the enlarged screen.
[0204] In some possible embodiments, the zooming out of the display screen to obtain a zoomed out screen includes:
[0205] Dividing the display image into a specified number of sub-image blocks;
[0206] Determine the pixel mean of each sub-image block;
[0207] The reduced picture is constructed based on the pixel mean value of each sub-image block.
[0208] In some possible embodiments, if the first touch screen is a main touch screen, the second touch screen is an auxiliary touch screen; if the first touch screen is an auxiliary touch screen, the second touch screen is a main touch screen.
[0209] In some possible embodiments, the number of the auxiliary touch screens is greater than or equal to one.
[0210] In some possible embodiments, if no abnormality occurs on the first touch screen, the second touch screen hides the touch function.
[0211] Corresponding to the above embodiments, the present application also provides an electronic device. Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, the electronic device 1300 may include: a processor 1301, a memory 1302 and a communication unit 1303. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention, it can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0212] The communication unit 1303 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0213] The processor 1301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs and / or modules stored in the memory 1302, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 1301 can only include a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0214] The memory 1302 is used to store the execution instructions of the processor 1301. The memory 1302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0215] When the execution instructions in the memory 1302 are executed by the processor 1301, the electronic device 1300 can execute Fig.12 Some or all of the steps in the illustrated embodiments.
[0216] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the control method provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0217] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.
[0218] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A control device, It is characterized in that The device comprises: A display module, the display module comprising a first touch screen and a second touch screen; the second touch screen is at least used to display an emergency screen when an abnormal instruction is received, wherein the emergency screen is set based on a target function in the first touch screen; An acquisition module, used to at least acquire a capacitance value of the first touch screen; A determination module, configured to determine whether an abnormality occurs to the first touch screen based on the capacitance value; The instruction generation module is used to generate an abnormal instruction if it is determined that the first touch screen has an abnormality, and send the abnormal instruction to the second touch screen.
2. The control device according to claim 1, It is characterized in that The determination module is specifically used for: Performing analog-to-digital conversion on the capacitance value to obtain a target noise value corresponding to the capacitance value; Determine whether the target noise value is the same as the last noise value; the last noise value is the noise value corresponding to the capacitance value obtained last time; If they are the same, executing the first process until the number of executions of the first process exceeds a preset number of times, or until it is determined that the first noise value is different from the target noise value; If the execution number of the first process exceeds the preset number, it is determined that an abnormality has occurred on the first touch screen; The first process includes: Obtaining a target noise value, and determining whether the target noise value is the same as a previous noise value; wherein the previous noise value is a noise value corresponding to a capacitance value obtained before a capacitance value corresponding to the target noise value; If they are the same, the counter is updated using the execution times of the first process; If they are different, the counter is cleared.
3. The control device according to claim 1, It is characterized in that After the instruction generation module determines that an abnormality occurs on the first touch screen, it is further configured to: The level of the first target pin is increased so that the second target pin performs the step of determining the abnormal type of the first touch screen after receiving the level.
4. The control device according to claim 1, It is characterized in that After the display module executes the control of the second touch screen to display the emergency screen based on the abnormal instruction, it is also used to: Receiving a touch operation triggered by a user based on the emergency screen; Determine a target control corresponding to the touch operation; Execute the operation corresponding to the target control.
5. The control device according to claim 1, It is characterized in that The display module is also used for: Acquire a display screen corresponding to the second touch screen; the display screen corresponding to the second touch screen is the screen that was being displayed before the second touch screen displayed the emergency screen; Zooming out the display image to obtain a zoomed-out image; The reduced screen is displayed at a first preset position in the emergency screen.
6. The control device according to claim 5, It is characterized in that After the display module displays the reduced screen at the first preset position in the emergency screen, the display module is further used to: In response to a zoom-in operation triggered by the zoomed-out picture, zooming in on the zoomed-out picture to obtain an enlarged picture; Displaying the enlarged image; The emergency screen is reduced to obtain a reduced emergency screen; The reduced emergency screen is displayed at a second preset position in the enlarged screen.
7. The device according to claim 5, It is characterized in that The display module is specifically used for: Dividing the display image into a specified number of sub-image blocks; Determine the pixel mean of each sub-image block; The reduced picture is constructed based on the pixel mean value of each sub-image block.
8. The control device according to claim 1, It is characterized in that If the first touch screen is a main touch screen, the second touch screen is an auxiliary touch screen; if the first touch screen is an auxiliary touch screen, the second touch screen is a main touch screen.
9. The control device according to claim 8, It is characterized in that The number of the auxiliary touch screens is greater than or equal to one.
10. The control device according to claim 1, It is characterized in that If no abnormality occurs to the first touch screen, the second touch screen is further used to: hide the touch function.
11. A control method, It is characterized in that The method comprises: Obtaining a capacitance value of a first touch screen; Determining whether an abnormality occurs on the first touch screen based on the capacitance value; If it is determined that an abnormality occurs on the first touch screen, an abnormality instruction is generated; Based on the abnormal instruction, the second touch screen is controlled to display an emergency screen; wherein, the emergency screen is set based on the target function in the first touch screen.
12. An electronic device, It is characterized in that Comprising the device as described in any one of claims 1-10.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method described in claim 10.
