CN108427392B - Interface control method and diagnostic equipment - Google Patents

Interface control method and diagnostic equipment Download PDF

Info

Publication number
CN108427392B
CN108427392B CN201810079805.8A CN201810079805A CN108427392B CN 108427392 B CN108427392 B CN 108427392B CN 201810079805 A CN201810079805 A CN 201810079805A CN 108427392 B CN108427392 B CN 108427392B
Authority
CN
China
Prior art keywords
interface
diagnosis
diagnostic
diagnostic device
current state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810079805.8A
Other languages
Chinese (zh)
Other versions
CN108427392A (en
Inventor
刘均
邓春武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810079805.8A priority Critical patent/CN108427392B/en
Publication of CN108427392A publication Critical patent/CN108427392A/en
Application granted granted Critical
Publication of CN108427392B publication Critical patent/CN108427392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24048Remote test, monitoring, diagnostic

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the invention discloses an interface control method and diagnostic equipment, wherein the method comprises the following steps: displaying a diagnosis interface in the diagnosis process of the diagnosis equipment; the diagnosis interface is used for displaying diagnosis data and receiving user operation; determining a current state of the diagnostic device; if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner; the overlay interface is used for responding to the touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event. The invention can reduce the error rate of the diagnostic equipment in the diagnostic process and improve the data processing rate.

Description

Interface control method and diagnostic equipment
Technical Field
The invention relates to the technical field of automobile diagnosis, in particular to an interface control method and diagnosis equipment.
Background
In the remote diagnosis of the automobile, generally speaking, the control end may use the controlled end to assist the remote diagnosis of the vehicle, but the controlled end does not control the remote diagnosis process.
Generally, when the diagnostic device is applied to a remote diagnosis process, the diagnostic device can be used as a control end or a controlled end according to actual requirements. When the diagnostic device is used as a controlled terminal, an interface in the diagnostic process (hereinafter referred to as a diagnostic interface) can be output to display data in the diagnostic process. If a user operable area (such as a page turning button) exists in the diagnostic interface, the diagnostic device needs to distinguish whether the diagnostic device is currently used as a controlled terminal or a control terminal, hide the operable area or disable the operable area if the diagnostic device is used as the controlled terminal, and receive an operation in the operable area if the diagnostic device is used as the control terminal.
However, the above judgment logic added to the diagnostic interface makes the error rate of the diagnostic device (or the application program for vehicle diagnosis in the diagnostic device) higher during the diagnostic process, and the interface response speed is slow.
Disclosure of Invention
The embodiment of the invention provides an interface control method and a diagnosis device, which can reduce the error rate of the diagnosis device in the diagnosis process and improve the data processing rate.
In a first aspect, an embodiment of the present invention provides an interface control method, including:
displaying a diagnosis interface in the diagnosis process of the diagnosis equipment; the diagnosis interface is used for displaying diagnosis data and receiving user operation;
determining a current state of the diagnostic device;
if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner; the overlay interface is used for responding to the touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event.
Optionally, the determining the current state of the diagnostic device comprises:
if the diagnostic equipment is detected to send a first control request to a control end, determining that the current state of the diagnostic equipment is a controlled state; the first control request is used for indicating the diagnosis equipment to be used as a controlled terminal to assist diagnosis;
or if a second control request sent by a control terminal is received, determining that the current state of the diagnostic equipment is a controlled state; the second control request is for requesting the diagnostic device to assist in diagnosis.
Optionally, the method further comprises:
canceling the display of the overlay interface after the diagnostic device exits the diagnosis;
and receiving a first operation of a user on the diagnosis interface, and executing a corresponding function according to the first operation.
Optionally, after determining the current state of the diagnostic device, the method further comprises:
if the current state is the control state, receiving a second operation of the user on the diagnosis interface;
and executing corresponding functions according to the second operation.
Optionally, the diagnostic interface includes a display area and an interaction area, the interaction area is used for receiving a user operation, and the overlaying the overlay interface is displayed on the diagnostic interface in an overlaying manner, including:
acquiring first position information of the display area and second position information of the interaction area;
adjusting the transparent state of the area corresponding to the first position information of the covering interface to be fully transparent;
and adjusting the transparent state of the area corresponding to the second position information of the covering interface to be semi-transparent or opaque.
In a second aspect, an embodiment of the present invention provides a diagnostic apparatus, where the diagnostic apparatus includes at least a processor and a memory, and the processor is connected to the memory; wherein the memory stores an application program; the processor is used for calling the application program stored in the memory to execute the following steps:
displaying a diagnosis interface in the diagnosis process of the diagnosis equipment; the diagnosis interface is used for displaying diagnosis data and receiving user operation;
determining a current state of the diagnostic device;
if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner; the overlay interface is used for responding to the touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event.
Optionally, the processor is configured to invoke an application program stored in the memory to execute determining a current state of the diagnostic device, and specifically, to:
if a first control request is detected to be sent to a control end, determining that the current state of the diagnostic equipment is a controlled state; the first control request is used for indicating the diagnosis equipment to be used as a controlled terminal to assist diagnosis;
or if a second control request sent by a control terminal is received, determining that the current state of the diagnostic equipment is a controlled state; the second control request is for requesting the diagnostic device to assist in diagnosis.
Optionally, the processor is further configured to call an application program stored in the memory to perform the following steps:
canceling the display of the overlay interface after exiting the diagnosis;
and receiving a first operation of a user on the diagnosis interface, and executing a corresponding function according to the first operation.
Optionally, the processor is configured to call an application program stored in the memory to determine the current state of the diagnostic device, and then further configured to perform the following steps:
if the current state is the control state, receiving a second operation of the user on the diagnosis interface;
and executing corresponding functions according to the second operation.
Optionally, the diagnostic interface includes a display area and an interaction area, the interaction area is configured to receive a user operation, and the processor is configured to invoke an application program stored in the memory to execute the execution and display the overlay interface on the diagnostic interface in an overlay manner, specifically, to:
acquiring first position information of the display area and second position information of the interaction area;
adjusting the transparent state of the area corresponding to the first position information of the covering interface to be fully transparent;
and adjusting the transparent state of the area corresponding to the second position information of the covering interface to be semi-transparent or opaque.
Therefore, the diagnostic equipment can add the overlay interface to the diagnostic interface when the diagnostic equipment is in a controlled state in the diagnostic process. By adding the overlay interface, the error rate of the diagnostic equipment in the diagnostic process is reduced, and the data processing rate is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a system architecture diagram provided by an embodiment of the present invention;
fig. 2 is a schematic flowchart of an interface control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface setup in a diagnostic process according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating another interface control method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an interface after exiting a diagnostic process according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an interface control device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a diagnostic apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a system architecture diagram according to an embodiment of the present invention. The system may be used for remote diagnostics. Fig. 1 includes a remote control device 10 (control end), a diagnostic device 20 (controlled end), and an automobile 30. Therein, the diagnostic device 20 may establish communication with the remote control device 10, respectively the car 30, to interact with the data.
The remote control device 10 may implement control of the diagnostic process, including but not limited to a smart terminal, such as a smart phone, a personal computer, a diagnostic device (as a control terminal), and other terminals. The diagnostic device 20 may be a device that can perform the entire diagnostic task or a portion of the diagnostic task. The automobile 30 may be any vehicle that requires diagnostics.
The remote control device 10 may transmit a diagnosis instruction to the diagnosis device 20, and the diagnosis device 20 may communicate with the automobile 30 according to the diagnosis instruction and return diagnosis data received from the automobile 30 to the remote control device 10 upon receiving the diagnosis instruction. The remote control device 10 may view the diagnostic data and send corresponding operating instructions to the diagnostic device 20.
In the diagnosis process, the diagnosis device 20 overlays at least one overlay interface on the displayed diagnosis interface, so that the diagnosis interface cannot receive a touch operation event and cannot execute a corresponding function. After the diagnosis process is finished, the overlay interface added on the diagnosis interface can be withdrawn, so that a user can execute touch operation on the diagnosis interface, and the diagnosis interface can detect the touch operation event so as to execute the corresponding function.
In one embodiment, the transparency of the overlay interface may be adjusted, for example, the overlay interface may be set to a fully transparent state or a semi-transparent state. Alternatively, the overlay interface may be configured with different transparencies depending on the regions in the diagnostic interface. For example, a fully transparent state is set for a display area in the diagnostic interface and an opaque state, i.e., invisible to the user, is set for an interactive area (e.g., interactive buttons) in the diagnostic interface. The transparency setting manner described in the above embodiments does not limit the present invention.
It can be seen that the architecture shown in fig. 1 can make the diagnostic device uncontrollable for the diagnostic interface in the diagnostic process by adding the overlay interface when the diagnostic device is in the controlled state, and can control the diagnostic interface after exiting the diagnostic process, so that not only the amount of code required for implementing the diagnostic function is reduced, but also the error rate in the diagnostic process can be reduced, and the data processing rate of the diagnostic device can be improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating an interface control method according to an embodiment of the present invention. Wherein the method may be applied to a diagnostic device. Specifically, the method may comprise the steps of:
and S101, displaying a diagnosis interface in the diagnosis process of the diagnosis equipment.
In the embodiment of the invention, the diagnosis interface can be output after the diagnosis equipment enters the diagnosis process. The diagnostic interface may be used to display diagnostic data and receive user actions. For example, the diagnostic data is a diagnostic result obtained from the vehicle or data obtained by processing the diagnostic result obtained from the vehicle. The user operation includes, but is not limited to, a click operation, a drag operation, and the like.
It should be noted that the diagnostic device may be used to assist in the diagnostic process. And, the diagnostic device may be in a controlled state or a controlled state depending on actual demand. When in the control state, the diagnostic device can be used as a control terminal. When the diagnostic device is in a controlled state, the diagnostic device can be used as a controlled terminal.
Generally, the diagnostic device, when acting as a controlled end, can directly interact with the vehicle to assist in diagnosis. When the diagnostic device is used as a control terminal, other devices (such as other diagnostic devices) can be controlled to assist diagnosis.
And S102, determining the current state of the diagnostic equipment.
In the embodiment of the invention, after the diagnostic equipment enters the diagnostic process, the current state of the diagnostic equipment can be determined. Among them, the current state can be classified into a controlled state and a control state according to whether the diagnostic apparatus is a controlled party or a control party.
In one embodiment, the diagnostic device may interact with the vehicle and may present data during the diagnostic process while in the controlled state (i.e., while the diagnostic device is acting as the controlled end). In addition, the diagnostic device may send diagnostic data obtained from the vehicle to a control terminal (e.g., a personal computer) for a remote operator to control the diagnostic process.
In one embodiment, if the diagnostic equipment is detected to send a first control request to a control terminal, determining that the current state of the diagnostic equipment is a controlled state; the first control request is used for indicating the diagnosis equipment as a controlled terminal to assist diagnosis; or if a second control request sent by the control terminal is received, determining that the current state of the diagnostic equipment is a controlled state; the second control request is for requesting the diagnostic device to assist in the diagnosis. The first Control request may carry device information of the diagnostic device, such as information of an Internet Protocol (IP) address, a hardware Access Control (MAC) address, a device name, and the like. The second control request may carry information such as a device name of the control end.
In one embodiment, when the diagnostic device is in a control state (i.e., when the diagnostic device is acting as a control end), the diagnostic device may interact data with the controlled end to control the diagnostic process. Accordingly, when the diagnostic device is used as a control terminal, the diagnostic device may also receive a request sent by a controlled terminal or send a request to the controlled terminal to be used as a control terminal.
S103, if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner.
The overlay interface is used for responding to the touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event. Specifically, it can be understood that the touch operation event is processed in response to the touch operation event at the overlay interface (for example, consumed or intercepted), and the touch operation event will not be transmitted to the diagnostic interface below the overlay interface. Therefore, the diagnostic interface will not receive the touch operation event, and therefore will not respond to the touch operation event.
In one embodiment, according to the practical application, a plurality of overlay interfaces may be further superimposed on the diagnostic interface, or a plurality of overlay interfaces may be added on the diagnostic interface respectively according to the difference of the areas. Or, the transparency of the corresponding position of the covered interface is adjusted on the diagnosis interface according to the difference of the areas.
For example, if the diagnostic interface includes a display area and an interaction area, the diagnostic device may obtain first position information (which may be a position range) of the display area and second position information (which may be a position range) of the interaction area; adjusting the transparent state of the area corresponding to the first position information of the covering interface to be fully transparent; and adjusting the transparent state of the area corresponding to the second position information of the covering interface to be semi-transparent or opaque. For example, the interactive region of the diagnostic interface may be an interactive button and the display region may be a diagnostic data display region.
The diagnostic interface may be provided and output by an application included with the diagnostic device for diagnosing the automobile. Alternatively, in one embodiment, the diagnostic device may also be provided and output by the operating system of the diagnostic device.
In the embodiment of the present invention, a user may execute a touch operation on the diagnostic device, the diagnostic device may obtain a touch operation event (click, long press, slide, etc.) corresponding to the touch operation, and the overlay layer may receive the touch operation event.
In a practical application scenario, it is assumed that the diagnostic device is designed based on the android system. The diagnostic device integrates or is equipped with software for vehicle diagnostics. The diagnostic device establishes communication with the remote control device and the vehicle, respectively, during the remote diagnosis.
After establishing communication with the remote control device, the diagnostic device may send a request (including connection information of the diagnostic device, including but not limited to IP address, MAC address, device name, and the like) to the remote control device to request to be the controlled end, and after the request of the diagnostic device is successful, the diagnostic device may be the controlled end. Alternatively, the diagnostic device may serve as the controlled terminal after receiving the control request sent by the remote control device (or after receiving the control request and receiving a confirmation operation of the user on the control request).
After the diagnostic device is connected to the vehicle, software suitable for diagnosing the type of vehicle, such as application 1, may be matched for remote diagnosis. In the remote diagnosis process, the application 1 may output a diagnosis interface (interface in the diagnosis process). If the diagnosis interface outputs table 1, the table 1 displays data that is output after processing the diagnosis result acquired from the automobile. At this time, the diagnostic apparatus may add an overlay interface on the diagnostic interface, which is in a semi-transparent state to the user a (the user using the diagnostic apparatus). The user a can see the diagnostic interface.
Fig. 3 is a schematic view of an interface setup in a diagnostic process according to an embodiment of the present invention. Fig. 3 includes an overlay interface 01 and a diagnostic interface 02. After the user a clicks on the overlay interface 01, the diagnostic device may receive a click operation of the user a, and may obtain a touch operation event corresponding to the click operation. Since the overlay interface is 01 which is one layer before the diagnostic interface 02, the overlay interface 01 can process the touch operation event preferentially. After the overlay interface 01 processes the touch operation event, a processing result of true may be obtained to indicate that the touch operation event is intercepted, that is, the overlay interface 01 does not transmit the touch operation event to the diagnostic interface 02 for processing, so as to achieve the purpose that the user a cannot control the diagnostic process on the diagnostic device when the diagnostic device is in the controlled state.
In the application scenario, when the diagnostic interface 02 includes a page turning button, the user a may see the page turning button of the diagnostic interface 02 through the overlay interface, but cannot turn a page by clicking the page turning button. Since the overlay interface 01 is covered on the diagnostic interface 02 in the remote diagnosis process, the user a is actually the clicked overlay interface 01, and the overlay interface intercepts the touch operation event corresponding to the click operation. At this time, the diagnostic interface 02 does not receive the touch operation event corresponding to the click operation, and therefore the diagnostic device will not perform the page turning operation.
In one embodiment, the overlay interface processes the touch operation event, including but not limited to, discarding.
It can be seen that in the embodiment shown in fig. 2, by adding the overlay interface, the diagnostic device can add logic (operable or inoperable logic) for judging whether the diagnostic device is currently in a control state or a controlled state and giving the interface and the key operation to the diagnostic device without aiming at each interface and key in the diagnostic process, so that the amount of code required by the diagnostic device (or an application program for automobile diagnosis in the diagnostic device) to realize the diagnostic function is reduced. Moreover, because the overlay interface is directly added, the diagnosis interface (including the button) appearing in the diagnosis process does not need to execute the judgment logic (for example, whether the judgment is operable or inoperable), so that the error rate of the diagnosis equipment in the diagnosis process is reduced, and the data processing rate of the diagnosis equipment is improved.
Fig. 4 is a schematic flow chart of another interface control method according to an embodiment of the present invention. Specifically, the method may comprise the steps of:
it should be noted that steps S201 to S203 can refer to steps S101 to S103 in the embodiment of fig. 2. After step S202 is executed, step S203 and step S206 may be executed in parallel.
S201, in the diagnosis process of the diagnosis equipment, displaying a diagnosis interface.
S202, determining the current state of the diagnosis equipment.
And S203, if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner.
And S204, canceling the display of the covering interface after the diagnosis equipment exits the diagnosis.
In an embodiment of the present invention, the diagnostic device may withdraw the overlay interface after exiting the diagnosis. I.e. there will be no overlay interface superimposed on the diagnostic interface at this time.
In one embodiment, the exit diagnosis includes, but is not limited to, an active exit by the diagnostic device, an active exit by the control end, and an exit caused by an external factor, such as a signal difference. It should be noted that the above-listed manner of exiting the diagnostic process is not a limitation of the present invention.
S205, receiving a first operation of a user on the diagnosis interface, and executing a corresponding function according to the first operation.
In the embodiment of the present invention, after the diagnostic device finishes the diagnostic process, the diagnostic device may receive a first operation of a user on the diagnostic interface to obtain a touch operation event corresponding to the first operation, and the diagnostic interface may receive the touch operation event corresponding to the first operation to execute a corresponding function.
In a practical application scenario, it is assumed that the diagnostic device is designed based on the android system. The diagnostic device integrates or is equipped with software for vehicle diagnostics. The diagnostic device establishes communication with the remote control device and the vehicle, respectively, during a remote diagnosis.
Referring to fig. 3, fig. 3 includes an overlay interface 01 and a diagnostic interface 02. After the user a clicks on the overlay interface 01, the diagnostic device may receive a click operation of the user a, and may obtain a touch operation event corresponding to the click operation. Since the overlay interface is 01 which is one layer before the diagnostic interface 02, the overlay interface 01 can preferentially process the touch operation event (e.g., capture processing).
Fig. 5 is a schematic view of an interface after exiting the diagnostic process according to an embodiment of the present invention. Therein, fig. 5 includes a diagnostic interface 02. After the diagnostic device exits the diagnostic process, the overlay interface 01 shown in FIG. 3 will be withdrawn. At this time, the user a may touch or edit the diagnosis interface. If the diagnostic interface 02 displays a page turning button, after the user a clicks the page turning button of the diagnostic interface 02, the diagnostic device may obtain a touch operation event corresponding to the click operation of the page turning button after detecting the click operation (the first operation). After the diagnostic interface 02 receives a touch operation event for a click operation of a page turning button, the diagnostic device may perform a page turning operation.
In the application scenario, according to the difference between the regions in the diagnostic interface 02, the transparency of the region corresponding to the overlay interface 01 of the diagnostic interface 02 can be adjusted to be different. For example, when the diagnostic interface 02 includes a page turning button, the position of the page turning button corresponding to the overlay interface 01 is turned to an opaque state to prompt the user a, so as to avoid invalid touch.
And S206, if the current state is the control state, receiving a second operation of the user on the diagnosis interface.
And S207, executing corresponding functions according to the second operation.
In the embodiment of the invention, when the terminal is in the control state, after the user touches the diagnosis interface, the diagnosis device can receive the second operation of the user on the diagnosis interface. The diagnostic device may obtain a touch operation event corresponding to the second operation, and the diagnostic interface may receive the touch operation event, so as to process the touch operation event to trigger execution of a corresponding function.
For example, if the diagnostic interface includes a page turning button, the diagnostic device may receive a click operation of a user on the page turning button, and obtain a touch operation event of the click operation on the page turning button, and the diagnostic interface may receive the touch operation event corresponding to the click operation on the page turning button, so that the diagnostic device executes a page turning function.
It can be seen that in the embodiment shown in fig. 4, the diagnostic device can control the interface according to the controlled state and the control state. For example, when the diagnostic device is in a control state, the diagnostic device may receive a touch operation event; when the diagnostic device is in the controlled state, the overlay interface overlaid on the diagnostic interface can process the touch operation event. According to the embodiment of the invention, by adding the overlay interface, the diagnostic equipment can be endowed with the interface and key operation logic (operable or inoperable logic) by adding and judging whether the diagnostic equipment is in a control state or a controlled state currently without aiming at each interface and key in the diagnostic process, so that the code amount required by the diagnostic equipment for realizing the diagnostic function is reduced. Moreover, because the overlay interface is directly added on the diagnosis interface, the diagnosis interface (which can comprise buttons) appearing in the diagnosis process can be free from executing the judgment logic (for example, judging whether the diagnosis interface is operable or inoperable), thereby not only reducing the error rate of the diagnosis equipment in the diagnosis process, but also improving the data processing rate of the diagnosis equipment.
Fig. 6 is a schematic structural diagram of an interface control device according to an embodiment of the present invention. The interface control means may be provided in the diagnostic device. The interface control device may include a display module 601, a determination module 602, and a processing module 603. Specifically, the apparatus may include:
the display module 601 is used for displaying a diagnosis interface in the diagnosis process of the diagnosis equipment; the diagnosis interface is used for displaying diagnosis data and receiving user operation;
a determination module 602 for determining a current state of the diagnostic device;
a processing module 603, configured to generate an overlay interface if the current state is a controlled state, and display the overlay interface on the diagnostic interface in an overlay manner; the overlay interface is used for responding to the touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event.
Optionally, the processing module 603 is further configured to cancel displaying the overlay interface after the diagnostic device exits the diagnosis; and receiving a first operation of a user on the diagnosis interface, and executing a corresponding function according to the first operation.
Optionally, the processing module 603 is further configured to, after the determining module 602 determines the current state of the diagnostic device, receive a second operation of the user on the diagnostic interface if the current state is the control state, and execute a corresponding function according to the second operation.
Optionally, the diagnostic interface includes a display area and an interactive area, and the interactive area is used for receiving user operation.
Optionally, the processing module 603 displays the overlay interface on the diagnostic interface in an overlay manner, specifically, obtains first position information of the display area and second position information of the interaction area; adjusting the transparent state of the area corresponding to the first position information of the covering interface to be fully transparent; and adjusting the transparent state of the area corresponding to the second position information of the covering interface to be semi-transparent or opaque.
Optionally, the determining module 602 determines the current state of the diagnostic device, specifically, if it is detected that the diagnostic device sends a first control request to a control end, it is determined that the current state of the diagnostic device is a controlled state; the first control request is used for indicating the diagnosis equipment to be used as a controlled terminal to assist diagnosis; or if a second control request sent by a control terminal is received, determining that the current state of the diagnostic equipment is a controlled state; the second control request is for requesting the diagnostic device to assist in diagnosis.
It can be seen that in the embodiment shown in fig. 6, by adding the overlay interface, the diagnostic device can not need to add logic (operable or inoperable logic) for judging whether the diagnostic device is currently in a control state or a controlled state and giving the interface and key operation logic to each display interface and key in the diagnostic process, so that the code amount required by the diagnostic device to realize the diagnostic function is reduced. Moreover, because the overlay interface is directly added on the diagnosis interface, the diagnosis interface (including the button) appearing in the diagnosis process does not need to execute the judgment logic (for example, judging whether the diagnosis interface is operable or inoperable), thereby not only reducing the error rate of the diagnosis equipment in the diagnosis process, but also improving the data processing rate of the diagnosis equipment.
Fig. 7 is a schematic structural diagram of a diagnostic apparatus according to an embodiment of the present invention. Specifically, the diagnostic apparatus may include: at least one processor 701, such as a Central Processing Unit (CPU), at least one communication interface 702, a communication bus 703, and at least one memory 704. The communication interface 702 may include a standard wired interface and a wireless interface. Optionally, the communication interface 702 may further include a camera, a Display (Display), and a Keyboard (Keyboard). Wherein a communication bus 803 is used to enable connection communication between these components. The Memory 704 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 704 may optionally be at least one memory device located remotely from the processor 701. Wherein, a group of application programs can be stored in the memory 704, and the processor 701 can call the application program stored in the memory 704 to execute an interface control method in conjunction with the apparatus described in fig. 6, that is, to execute the following operations:
displaying a diagnosis interface in the diagnosis process of the diagnosis equipment; the diagnosis interface is used for displaying diagnosis data and receiving user operation;
determining a current state of the diagnostic device;
if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner; the overlay interface is used for responding to the touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event.
Optionally, the processor 701 is configured to call an application program stored in the memory 704 to determine a current state of the diagnostic device, specifically, to:
if a first control request is detected to be sent to a control end, determining that the current state of the diagnostic equipment is a controlled state; the first control request is used for indicating the diagnosis equipment to be used as a controlled terminal to assist diagnosis;
or if a second control request sent by a control terminal is received, determining that the current state of the diagnostic equipment is a controlled state; the second control request is for requesting the diagnostic device to assist in diagnosis.
Optionally, the processor 701 is further configured to call an application program stored in the memory 704 to perform the following steps:
canceling the display of the overlay interface after exiting the diagnosis;
and receiving a first operation of a user on the diagnosis interface, and executing a corresponding function according to the first operation.
Optionally, the processor 701 is configured to call an application program stored in the memory 704 to determine the current state of the diagnostic device, and then further configured to perform the following steps:
if the current state is the control state, receiving a second operation of the user on the diagnosis interface;
and executing corresponding functions according to the second operation.
Optionally, the diagnostic interface includes a display area and an interaction area, the interaction area is configured to receive a user operation, and the processor 701 is configured to invoke an application program stored in the memory 704 to execute to display the overlay interface on the diagnostic interface in an overlay manner, specifically, to:
acquiring first position information of the display area and second position information of the interaction area;
adjusting the transparent state of the area corresponding to the first position information of the covering interface to be fully transparent;
and adjusting the transparent state of the area corresponding to the second position information of the covering interface to be semi-transparent or opaque.
An embodiment of the present invention provides a computer program product, wherein when instructions in the computer program product are executed by a processor, an interface control method as shown in the embodiment of fig. 2 or the embodiment of fig. 4 of the present application may be performed.
An embodiment of the present invention further provides a storage medium, where instructions in the storage medium, when executed by a processor of an in-vehicle device, enable the diagnostic device to execute an interface control method as shown in the embodiment of fig. 2 or the embodiment of fig. 4 in the present application.
It can be seen that in the embodiment shown in fig. 7, by adding the overlay interface, the diagnostic device can not add logic (operable or inoperable logic) for judging whether the diagnostic device is currently in a control state or a controlled state and giving the interface and key operation logic to each interface and key in the diagnostic process, so that the amount of code required by the diagnostic device (such as the diagnostic device or an application program used for vehicle diagnosis in the diagnostic device) to realize the diagnostic function is reduced. Moreover, because the overlay interface is directly added, the diagnosis interface (including the button) appearing in the diagnosis process does not need to execute the judgment logic (for example, judging whether the diagnosis interface is operable or inoperable), so that the error rate of the diagnosis equipment in the diagnosis process is reduced, and the data processing rate of the diagnosis equipment is improved.
The interface control method and the diagnostic device disclosed in the embodiments of the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An interface control method, characterized in that the method comprises:
displaying a diagnosis interface in the diagnosis process of the diagnosis equipment; the diagnosis interface is used for displaying diagnosis data and receiving user operation;
determining a current state of the diagnostic device; the current state is determined for a controlled party or a control party according to the diagnostic equipment;
if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner; the overlay interface is used for performing response processing on a touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event, and the response processing comprises consumption processing or interception processing;
the determining the current state of the diagnostic device includes:
if the diagnostic equipment is detected to send a first control request to a control end, determining that the current state of the diagnostic equipment is a controlled state; the first control request is used for indicating the diagnosis equipment to be used as a controlled terminal to assist diagnosis.
2. The method of claim 1, wherein the determining the current state of the diagnostic device comprises:
if a second control request sent by a control terminal is received, determining that the current state of the diagnostic equipment is a controlled state; the second control request is for requesting the diagnostic device to assist in diagnosis.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
canceling the display of the overlay interface after the diagnostic device exits the diagnosis;
and receiving a first operation of a user on the diagnosis interface, and executing a corresponding function according to the first operation.
4. The method of claim 3, wherein after determining the current state of the diagnostic device, the method further comprises:
if the current state is the control state, receiving a second operation of the user on the diagnosis interface;
and executing corresponding functions according to the second operation.
5. The method of claim 1, wherein the diagnostic interface includes a display area and an interactive area, wherein the interactive area is configured to receive a user operation, and wherein displaying the overlay interface overlay on the diagnostic interface includes:
acquiring first position information of the display area and second position information of the interaction area;
adjusting the transparent state of the area corresponding to the first position information of the covering interface to be fully transparent;
and adjusting the transparent state of the area corresponding to the second position information of the covering interface to be semi-transparent or opaque.
6. A diagnostic device, characterized in that it comprises at least a processor and a memory, said processor being connected to said memory; wherein the memory stores an application program; the processor is used for calling the application program stored in the memory to execute the following steps:
displaying a diagnosis interface in the diagnosis process of the diagnosis equipment; the diagnosis interface is used for displaying diagnosis data and receiving user operation;
determining a current state of the diagnostic device; the current state is determined for a controlled party or a control party according to the diagnostic equipment;
if the current state is the controlled state, generating a covering interface, and displaying the covering interface on the diagnosis interface in a covering manner; the overlay interface is used for performing response processing on a touch operation event after the touch operation event is detected, so that the diagnosis interface does not respond to the touch operation event, and the response processing comprises consumption processing or interception processing;
the processor is configured to call an application program stored in the memory to execute determining a current state of the diagnostic device, and specifically configured to:
if the diagnostic equipment is detected to send a first control request to a control end, determining that the current state of the diagnostic equipment is a controlled state; the first control request is used for indicating the diagnosis equipment to be used as a controlled terminal to assist diagnosis;
7. the diagnostic device of claim 6, wherein the processor is configured to invoke an application program stored in the memory to perform the determining of the current state of the diagnostic device, and is specifically configured to:
if a second control request sent by a control terminal is received, determining that the current state of the diagnostic equipment is a controlled state; the second control request is for requesting the diagnostic device to assist in diagnosis.
8. The diagnostic device of claim 6 or 7, wherein the processor is further configured to invoke an application program stored in the memory to perform the steps of:
canceling the display of the overlay interface after exiting the diagnosis;
and receiving a first operation of a user on the diagnosis interface, and executing a corresponding function according to the first operation.
9. The diagnostic device of claim 8, wherein the processor is configured to invoke the application program stored in the memory to determine the current state of the diagnostic device, and further configured to perform the following steps:
if the current state is the control state, receiving a second operation of the user on the diagnosis interface;
and executing corresponding functions according to the second operation.
10. The diagnostic device of claim 6, wherein the diagnostic interface comprises a display area and an interactive area, the interactive area is configured to receive a user operation, and the processor is configured to invoke the application program stored in the memory to execute the overlay display of the overlay interface on the diagnostic interface, and in particular to:
acquiring first position information of the display area and second position information of the interaction area;
adjusting the transparent state of the area corresponding to the first position information of the covering interface to be fully transparent;
and adjusting the transparent state of the area corresponding to the second position information of the covering interface to be semi-transparent or opaque.
CN201810079805.8A 2018-01-27 2018-01-27 Interface control method and diagnostic equipment Active CN108427392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810079805.8A CN108427392B (en) 2018-01-27 2018-01-27 Interface control method and diagnostic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810079805.8A CN108427392B (en) 2018-01-27 2018-01-27 Interface control method and diagnostic equipment

Publications (2)

Publication Number Publication Date
CN108427392A CN108427392A (en) 2018-08-21
CN108427392B true CN108427392B (en) 2021-11-09

Family

ID=63156245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810079805.8A Active CN108427392B (en) 2018-01-27 2018-01-27 Interface control method and diagnostic equipment

Country Status (1)

Country Link
CN (1) CN108427392B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941388A (en) * 2019-11-27 2020-03-31 北京字节跳动网络技术有限公司 Interface control method, device, terminal and storage medium in task execution process
CN114579000A (en) * 2020-12-01 2022-06-03 鸿富锦精密电子(天津)有限公司 Method and device for forbidding user operation, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176770A (en) * 2011-02-17 2011-09-07 宇龙计算机通信科技(深圳)有限公司 Method for assisting navigation in mobile communication and mobile terminal
CN103676922A (en) * 2012-09-07 2014-03-26 深圳市车博仕电子科技有限公司 Remote diagnosis method
CN104750315A (en) * 2015-04-20 2015-07-01 京东方科技集团股份有限公司 Control method and device of screen touching device, and touch screening device
CN106201491A (en) * 2016-07-01 2016-12-07 北京奇虎科技有限公司 Mobile terminal and mobile terminal remote assist course control method for use, device
CN106550090A (en) * 2015-09-16 2017-03-29 中兴通讯股份有限公司 Long-range control method, device and mobile terminal
CN107608337A (en) * 2017-09-25 2018-01-19 深圳市道通科技股份有限公司 Automobile remote diagnostic method and apparatus, mobile terminal, electronic equipment and server

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100593794C (en) * 2007-06-13 2010-03-10 北京农业信息技术研究中心 Long-distance controlling apparatus used for crops production expert diagnosing system and method thereof
CN101706372B (en) * 2009-11-10 2013-11-06 奇瑞汽车股份有限公司 Electronic-control vehicle remote diagnosis system and diagnosis method thereof
CN102546725B (en) * 2010-12-31 2016-02-24 上海博泰悦臻电子设备制造有限公司 The remote assistance method of car-mounted electronic device and system
CN201993626U (en) * 2011-01-07 2011-09-28 深圳市航天星网通讯有限公司 Vehicle intelligent diagnosis system
CN102073319B (en) * 2011-01-25 2013-02-27 武汉理工大学 Multifunctional comprehensive type electric control automobile fault diagnosis system
US20130111001A1 (en) * 2011-10-31 2013-05-02 Brocade Communications Systems, Inc. System And Method For Creating And Communicating Freely Associated Collection To Share Information
CN103019936B (en) * 2012-12-06 2015-07-22 武汉华中数控股份有限公司 Numerical control software testing system
CN103092523A (en) * 2013-01-29 2013-05-08 北京小米科技有限责任公司 Unlocking method and terminal
CN103604612B (en) * 2013-10-30 2016-08-17 奇瑞汽车股份有限公司 A kind of vehicle remote diagnosis system and diagnostic method
CN103744740A (en) * 2013-12-16 2014-04-23 北京能源投资(集团)有限公司 Application program management method and mobile terminal
CN105988461A (en) * 2015-03-03 2016-10-05 广州汽车集团乘用车有限公司 Internet-based automobile remote network software refreshing and diagnostic system
CN105487893A (en) * 2015-11-26 2016-04-13 小米科技有限责任公司 Display method of mobile terminal interface mask and mobile terminal
US9971498B2 (en) * 2015-12-15 2018-05-15 General Electric Company Medical imaging device and method for using adaptive UI objects
CN107305372B (en) * 2016-04-25 2020-06-19 岳秀兰 Electric automobile energy monitoring and supply network for remote monitoring of cloud computing network architecture
CN105812575A (en) * 2016-05-05 2016-07-27 绿网天下(福建)网络科技股份有限公司 Method for performing management and control of mobile phone through APP
CN106020058A (en) * 2016-07-18 2016-10-12 广州市慧佳智能卡有限公司 Control box and system for remotely controlling X-ray machine
CN107577926A (en) * 2017-08-14 2018-01-12 北京小米移动软件有限公司 Intelligent terminal control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176770A (en) * 2011-02-17 2011-09-07 宇龙计算机通信科技(深圳)有限公司 Method for assisting navigation in mobile communication and mobile terminal
CN103676922A (en) * 2012-09-07 2014-03-26 深圳市车博仕电子科技有限公司 Remote diagnosis method
CN104750315A (en) * 2015-04-20 2015-07-01 京东方科技集团股份有限公司 Control method and device of screen touching device, and touch screening device
CN106550090A (en) * 2015-09-16 2017-03-29 中兴通讯股份有限公司 Long-range control method, device and mobile terminal
CN106201491A (en) * 2016-07-01 2016-12-07 北京奇虎科技有限公司 Mobile terminal and mobile terminal remote assist course control method for use, device
CN107608337A (en) * 2017-09-25 2018-01-19 深圳市道通科技股份有限公司 Automobile remote diagnostic method and apparatus, mobile terminal, electronic equipment and server

Also Published As

Publication number Publication date
CN108427392A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
EP3627809B1 (en) Method and device for reducing power consumption of mobile terminal, storage medium and mobile terminal
US11003315B2 (en) Terminal device and sharing method thereof
EP2752749B1 (en) Processing method of touch screen device user interface and touch screen device
CN106603762B (en) Terminal control method and control terminal
US20140002396A1 (en) Information processing method, information processing apparatus and electronic device
CN110647305A (en) Voice interaction method, device, equipment and medium of application program
US20180224997A1 (en) Method and system for one-handed operations of mobile terminal
CN108427392B (en) Interface control method and diagnostic equipment
CN108668241B (en) Information reminding method and device, storage medium and electronic equipment
WO2015074425A1 (en) Systems and methods for confirmation processing
CN113791834A (en) Information display apparatus
CN111090529B (en) Information sharing method and electronic equipment
CN115661917A (en) Gesture recognition method and related product
CN109829707B (en) Interface display method and terminal equipment
WO2023134599A1 (en) Voice information sending method and apparatus, and electronic device
CN109634508B (en) User information loading method and device
TWI825496B (en) An information processing method and device
CN111859356B (en) Application program login method and device
CN111045584B (en) Interface display method and electronic equipment
CN109032379B (en) Language option display method and terminal
CN114013431A (en) Automatic parking control method and system based on user intention
CN111880702A (en) Interface switching method and device and electronic equipment
CN113238708B (en) Method and device for displaying touch operation information in head-mounted display equipment
US20230214110A1 (en) Input control method, device, and electronic apparatus
CN117377133A (en) Bluetooth connection establishment method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant