CN112464825A - Method, device and system for drawing automobile signal waveform and mobile terminal - Google Patents

Method, device and system for drawing automobile signal waveform and mobile terminal Download PDF

Info

Publication number
CN112464825A
CN112464825A CN202011378410.1A CN202011378410A CN112464825A CN 112464825 A CN112464825 A CN 112464825A CN 202011378410 A CN202011378410 A CN 202011378410A CN 112464825 A CN112464825 A CN 112464825A
Authority
CN
China
Prior art keywords
automobile
waveform
mobile terminal
automobile signal
client
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.)
Pending
Application number
CN202011378410.1A
Other languages
Chinese (zh)
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.)
Autel Intelligent Technology Corp Ltd
Original Assignee
Autel Intelligent Technology Corp 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 Autel Intelligent Technology Corp Ltd filed Critical Autel Intelligent Technology Corp Ltd
Priority to CN202011378410.1A priority Critical patent/CN112464825A/en
Publication of CN112464825A publication Critical patent/CN112464825A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction
    • G06F2218/10Feature extraction by analysing the shape of a waveform, e.g. extracting parameters relating to peaks
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the technical field of terminals, and discloses a method and a device for drawing automobile signal waveforms and a mobile terminal, wherein the method is applied to the mobile terminal, the mobile terminal is connected with automobile diagnosis equipment, the automobile diagnosis equipment is in communication connection with an automobile, the mobile terminal is provided with a client, the client is in communication connection with an intermediate layer, and the method comprises the following steps: acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer; performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform; and controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time. The method and the device have the advantages that the automobile signal data are obtained through the middle layer, the waveform drawing is carried out according to the automobile signal data, and the automobile signal waveform is generated.

Description

Method, device and system for drawing automobile signal waveform and mobile terminal
Technical Field
The invention relates to the technical field of automobiles, in particular to an automobile signal waveform drawing method, device and system and a mobile terminal.
Background
With the continuous progress of automobile technology, the types and the number of automobile signals are increasing, and the number of various signals such as direct current signals, alternating current signals, frequency modulation signals, pulse width modulation signals, serial data signals and the like is increasing, so that the waveform of the automobile signals is difficult to draw.
Because automobile signals are complex and various, the quantity of drawn waveform data is too large, simple client drawing is easy to be blocked, and huge quantity of waveform data cannot be correctly drawn in real time.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the current drawing method of the automobile signal waveform directly draws through a client, which causes the technical problem of low drawing speed.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method, an apparatus, a system and a mobile terminal for drawing a waveform of an automobile signal, which can improve the speed of drawing the waveform of the automobile signal.
In a first aspect, an embodiment of the present invention provides a method for drawing an automobile signal waveform, where the method is applied to a mobile terminal, the mobile terminal is connected to an automobile diagnostic device, the automobile diagnostic device is connected to an automobile in a communication manner, the mobile terminal is installed with a client, and the client is connected to an intermediate layer in a communication manner, and the method includes:
acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer;
performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform;
and controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time.
In some embodiments, the waveform drawing the car signal data through the intermediate layer to generate a car signal waveform includes:
converting the automobile signal data into coordinate data information which can be displayed in a screen of the mobile terminal through the middle layer;
and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform.
In some embodiments, the middle layer is communicatively connected to a display waveform control and a display tool, the display waveform control is bound to the display tool, and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform, including:
and the middle layer calls the display waveform control, displays the automobile signal waveform through the display waveform control and calls the display tool to render the automobile signal waveform.
In some embodiments, the method further comprises:
the intermediate layer sends the coordinate data information to the client so that the client refreshes the original coordinate data information after receiving the coordinate data information;
and the client informs the middle layer of performing waveform drawing on the coordinate data information.
In some embodiments, the client notifying the middle tier of waveform drawing of the coordinate data information comprises:
and calling a native interface, and informing the middle layer to perform waveform drawing on the coordinate data information.
In some embodiments, the native interface comprises a JNI interface.
In some embodiments, the client comprises an android client, and the middle tier comprises an NDK middle tier.
In a second aspect, an embodiment of the present invention provides an apparatus for drawing a waveform of an automobile signal, which is applied to a mobile terminal, where the mobile terminal is connected to an automobile diagnostic device, the automobile diagnostic device is connected to an automobile in a communication manner, the mobile terminal is installed with a client, and the client is connected to an intermediate layer in a communication manner, and the apparatus includes:
the automobile signal data acquisition unit is used for acquiring automobile signal data acquired by the automobile diagnosis equipment through the middle layer;
the automobile signal waveform generating unit is used for performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform;
and the automobile signal waveform display unit is used for controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time.
In some embodiments, the vehicle signal waveform generation unit is specifically configured to:
converting the automobile signal data into coordinate data information which can be displayed in a screen of the mobile terminal through the middle layer;
and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of mapping a waveform of a vehicle signal as described above.
In a fourth aspect, an embodiment of the present invention provides a system for drawing a waveform of an automobile signal, where the system is applied to an automobile, and the system includes:
a mobile terminal as described above;
and the automobile diagnosis equipment is in communication connection with the mobile terminal and the automobile, and is used for acquiring automobile signal data of the automobile and sending the automobile signal data to the mobile terminal.
In a fifth aspect, the embodiment of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions for causing a mobile terminal to execute the above-mentioned drawing method of the automobile signal waveform.
In a sixth aspect, an embodiment of the present invention provides a computer program, which contains program instructions, and when the program instructions are executed by one or more processors in a mobile terminal, the program instructions cause the mobile terminal to execute the above-mentioned method for drawing a waveform of an automobile signal.
The embodiment of the invention has the beneficial effects that: different from the situation of the prior art, the method for drawing the waveform of the automobile signal provided by the embodiment of the invention is applied to a mobile terminal, the mobile terminal is connected with an automobile diagnosis device, the automobile diagnosis device is in communication connection with an automobile, the mobile terminal is provided with a client, and the client is in communication connection with an intermediate layer, and the method comprises the following steps: acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer; performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform; and controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time. The method and the device have the advantages that the automobile signal data are obtained through the middle layer, the waveform drawing is carried out according to the automobile signal data, and the automobile signal waveform is generated.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of a system for drawing waveforms of automotive signals according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of another system for mapping waveforms of vehicle signals according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for drawing a waveform of an automobile signal according to an embodiment of the present invention;
FIG. 4 is a detailed flowchart of step S20 in FIG. 3;
fig. 5 is an interactive flow chart of a method for drawing a waveform of an automobile signal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for drawing a waveform of an automobile signal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the invention. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts. The terms "first", "second", "third", and the like used in the present invention do not limit data and execution order, but distinguish the same items or similar items having substantially the same function and action.
Before the present invention is explained in detail, terms and expressions referred to in the embodiments of the present invention are explained, and the terms and expressions referred to in the embodiments of the present invention are applied to the following explanations.
(1) The middle layer refers to a development kit for developing software of the mobile terminal, which is a library written in C or C + + language, and the developed software can run on a machine of a specific CPU instruction set, and is generally used for developing a driver or an underlying application.
(2) The client refers to an application platform installed on the mobile terminal, such as an android client, an apple client, and the like, and is used for providing the user of the mobile terminal with operations.
It should be noted that, in the embodiment of the present invention, the mobile terminal may be a hardware device with various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, and the like. The method for drawing the automobile signal waveform is realized based on a processor of the mobile terminal, and the execution subject of the method is one or more processors of the mobile terminal.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a system for drawing waveforms of an automobile signal according to an embodiment of the present invention;
as shown in fig. 1, the system 100 for mapping a waveform of an automobile signal includes: the mobile terminal 10 is in communication connection with the automobile diagnosis device 20, the automobile diagnosis device 20 is in communication connection with an automobile 200, the automobile diagnosis device 20 is used for acquiring automobile signal data of the automobile 200 and sending the automobile signal data to the mobile terminal 10, and the mobile terminal 10 draws an automobile signal waveform based on the automobile signal data by receiving the automobile signal data sent by the automobile diagnosis device 20.
In the embodiment of the present invention, the automobile 200 may specifically be a motor vehicle of any model, such as a truck, a car, a bus, etc., and has an electronic control system composed of a plurality of electronic control units, so as to coordinate and control the vehicle according to an operation instruction of a driver, etc., and monitor one or more vehicle parameters in real time, thereby ensuring that the automobile 200 operates reliably and safely.
In the present embodiment, the automotive diagnostic apparatus 20 may be any type of automotive diagnostic product, including at least one electrical connector terminating in a diagnostic connector that matches the hardware communication interface of the automobile 200, the electrical connector including Kelvin (Kelvin) connector, low frequency circular connector, optical fiber connector, rectangular connector, printed circuit connector, radio frequency connector, etc., preferably, the electrical connector in the present embodiment is a Kelvin connector. Preferably, the automobile diagnosis device 20 is a DC1911 device, which respectively supports an automobile communication diagnosis, an oscilloscope, a multimeter, a signal generator, and an OBD interface, and is mainly used for collecting and measuring automobile signal data.
In actual use, the automotive diagnostic apparatus 20 establishes physical communication connections with various automotive buses in the vehicle through interface modules, such as diagnostic connectors and hardware communication interfaces, and loads appropriate or paired protocol configurations to implement data interaction with the electronic control system, such as sending detection instructions or receiving detection data.
In the embodiment of the present invention, the automobile 200 further includes components such as a tire, a steering wheel, and a driving motor, which belong to the prior art and are not described herein again.
Referring to fig. 2 again, fig. 2 is a schematic structural diagram of another system for drawing waveforms of vehicle signals according to an embodiment of the present invention;
as shown in fig. 2, the system 100 for mapping a waveform of an automobile signal includes: the mobile terminal 10 comprises a client 11 and an intermediate layer 12, wherein the client 11 is in communication connection with the intermediate layer 12, and the intermediate layer 12 is in communication connection with the automobile diagnostic device 20 and is used for acquiring automobile signal data acquired by the automobile diagnostic device 20, performing waveform drawing on the automobile signal data, and generating an automobile signal waveform.
In the embodiment of the present invention, the client 11 includes an android client, an apple client, and the like, and the middle layer 12 includes an SDK middle layer, an NDK middle layer, and the like. Preferably, the client 11 is an android client, and the intermediate layer is an NDK intermediate layer. The NDK middle layer (NDK) is a Native Development Kit of Android, and is a tool for utilizing C and C + + codes in Android applications, and may be constructed by using a written source code or by using an existing pre-constructed library, for example: a native shared library, NDK builds these libraries or. so files from native source code, or a native static library, NDK can also build a static library or. a files, can be linked to other libraries. The Native Development Kit (NDK) is used for rapidly developing C, C + + dynamic libraries and automatically packaging so and applications together into APK, and can interact with Native code (such as C, C + +) through the JNI interface in Android using NDK.
The invention provides a method for drawing a waveform of an automobile signal, which is based on the fact that the automobile signal is complex and various, the quantity of drawn waveform data is overlarge, the current drawing mode is basically drawn through a client side, the drawing of the client side is easy to pause due to the large data quantity, and the huge quantity of waveform data cannot be drawn accurately in real time.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a method for drawing a waveform of an automobile signal according to an embodiment of the present invention;
as shown in fig. 3, the method for drawing the waveform of the automobile signal is applied to a mobile terminal, the mobile terminal is connected with an automobile diagnosis device, the automobile diagnosis device is connected with an automobile in a communication manner, the mobile terminal is provided with a client, and the client is connected with an intermediate layer in a communication manner, and the method includes:
step S10: acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer;
specifically, the intermediate layer is communicatively connected to the vehicle diagnostic device, the vehicle diagnostic device is communicatively connected to the vehicle, and the vehicle diagnostic device is connected to a hardware communication interface of the vehicle through an electrical connector to obtain vehicle signal data of the vehicle, where the vehicle signal includes a direct current signal, an alternating current signal, a frequency modulation signal, a pulse width modulation signal, a serial data signal, and the like, and the vehicle signal data includes data such as direct current signal data, alternating current signal data, frequency modulation signal data, pulse width modulation signal data, serial data signal data, and the like, and it can be understood that the vehicle includes a plurality of sensors and devices, and each sensor or device generates a signal, for example: the primary ignition coil generates an ignition signal, and the intermediate layer acquires ignition signal data acquired by the automobile diagnostic equipment. Wherein the automotive diagnostic device is communicatively coupled to the intermediate layer, such as: connecting the intermediate layer via a wireless network, for example: the intermediate layer is connected through WiFi, or the automobile diagnostic device is connected to the intermediate layer through a wired manner, for example: and connecting the middle layer through a USB.
Step S20: performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform;
after the automobile signal data acquired by the automobile diagnostic equipment is acquired, the intermediate layer performs waveform drawing on the automobile signal data to generate an automobile signal waveform, specifically, please refer to fig. 4 again, where fig. 4 is a detailed flowchart of step S20 in fig. 3;
as shown in fig. 4, the step S20: through the intermediate level is to the car signal data carries out the waveform drawing, generates car signal waveform, includes:
step S21: converting the automobile signal data into coordinate data information which can be displayed in a screen of the mobile terminal through the middle layer;
specifically, the intermediate layer processes the automobile signal data, and the automobile signal data corresponds to coordinates in a screen of the mobile terminal, so that coordinate data information corresponding to the automobile signal data is generated, a client of the mobile terminal can update the coordinate position of each coordinate point of the automobile signal data, and automobile signal waveforms are convenient to refresh.
Step S22: and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform.
Specifically, after the intermediate layer converts the automobile signal data into corresponding coordinate data information, waveform drawing is performed on the coordinate data information to generate an automobile signal waveform, and the client is notified to refresh the automobile signal waveform.
Specifically, the middle layer is in communication connection with a display waveform control and a display tool, the display waveform control is bound to the display tool, and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform, including:
and the middle layer calls the display waveform control, displays the automobile signal waveform through the display waveform control and calls the display tool to render the automobile signal waveform.
In an embodiment of the present invention, the Application Program Interface is an OpenGL API, OpenGL has an independent coordinate system, an initial coordinate system before any transformation is not provided is a three-dimensional coordinate system, and in OpenGL ES, three types of rendering are supported: points, lines, and triangles; all other figures are formed by the three figures, for example, a round sphere seen by people is also formed by triangles, and the more the triangles are, the more round the spheres are seen.
In the embodiment of the invention, the display waveform control is GLSurfaceView, and the display tool is GLSurfaceView. Using OpenGL in the Android system requires the involvement of two most basic classes, GLSurfaceView and GLSurfaceView. GLSurfaceView inherits the SurfaceView class, which is a graphic dedicated to display OpenGL rendering. It can be understood that GLSurfaceView is the window we have said before to display OpenGL graphics. Render is a renderer of GLSurfaceview, set by GLSurfaceview.
In an embodiment of the present invention, the method further comprises:
the intermediate layer sends the coordinate data information to the client so that the client refreshes the original coordinate data information after receiving the coordinate data information; and the client informs the middle layer of performing waveform drawing on the coordinate data information.
Specifically, the client stores coordinate data information in real time, the original coordinate data information is coordinate data information displayed at the client at the last moment, and after the client receives the coordinate data information sent by the intermediate layer, the client updates the original coordinate data information, refreshes the original coordinate data information, and notifies the intermediate layer to perform waveform drawing on the coordinate data information, where the client notifies the intermediate layer to perform waveform drawing on the coordinate data information, and the method includes:
and calling a native interface, and informing the middle layer to perform waveform drawing on the coordinate data information.
In an embodiment of the present invention, the native interface comprises a JNI interface. And the client informs the middle layer of drawing the automobile signal waveform by calling the JNI interface, namely the middle layer draws the waveform in the waveform display control, and calls the display tool to render the automobile signal waveform drawn by the waveform display control so as to generate the drawn automobile signal waveform.
Step S30: and controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time.
Specifically, after the automobile signal waveform is drawn, the middle layer sends the drawn automobile signal waveform to the client, so that the client refreshes and displays the automobile signal waveform on a screen of the mobile terminal in real time.
Referring to fig. 5 again, fig. 5 is an interactive flow chart of a method for drawing a waveform of an automobile signal according to an embodiment of the present invention;
as shown in fig. 5, the interaction flow of the method for drawing a waveform of an automobile signal includes:
step S51: starting;
specifically, a client of the mobile terminal is started, wherein the client is an android client.
Step S52: acquiring automobile signal data;
specifically, the intermediate layer acquires automobile signal data acquired by the automobile diagnosis equipment.
Step S53: collecting automobile signal data;
specifically, the vehicle diagnostic device is in communication connection with the vehicle and collects vehicle signal data through a hardware communication interface of the vehicle, for example: and acquiring automobile signal data through the OBD interface of the automobile.
Step S54: converting the automobile signal data into coordinate data information which can be displayed on a display screen;
specifically, the intermediate layer processes the automobile signal data, and the automobile signal data corresponds to coordinates in a screen of the mobile terminal, so that coordinate data information corresponding to the automobile signal data is generated, a client of the mobile terminal can update the coordinate position of each coordinate point of the automobile signal data, and automobile signal waveforms are convenient to refresh.
Step S55: coordinate data information is refreshed, and the middle layer is called to draw the waveform of the automobile signal;
specifically, the intermediate layer sends the coordinate data information to the client, so that the client refreshes the original coordinate data information after receiving the coordinate data information; and the client informs the middle layer of performing waveform drawing on the coordinate data information.
Specifically, the client stores coordinate data information in real time, the original coordinate data information is coordinate data information displayed at the client at the last moment, and after the client receives the coordinate data information sent by the intermediate layer, the client updates the original coordinate data information, refreshes the original coordinate data information, and notifies the intermediate layer to perform waveform drawing on the coordinate data information, where the client notifies the intermediate layer to perform waveform drawing on the coordinate data information, and the method includes:
and calling a native interface, and informing the middle layer to perform waveform drawing on the coordinate data information.
In an embodiment of the present invention, the Native Interface includes a JNI Interface (JNI). The client side calls the JNI interface to inform the middle layer of drawing automobile signal waveforms, namely the middle layer draws the waveforms in a displayed waveform control and calls the display tool to render the automobile signal waveforms drawn by the displayed waveform control so as to generate drawn automobile signal waveforms.
Step S56: connecting the coordinate data information to generate an automobile signal waveform;
specifically, the coordinate data information is connected in the waveform display control for waveform drawing, and the display tool is called to render the automobile signal waveform drawn by the waveform display control so as to generate the drawn automobile signal waveform.
In an embodiment of the present invention, a method for drawing a waveform of an automobile signal is provided, and is applied to a mobile terminal, where the mobile terminal is connected to an automobile diagnostic device, the automobile diagnostic device is connected to an automobile in a communication manner, the mobile terminal is installed with a client, and the client is connected to an intermediate layer in a communication manner, where the method includes: acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer; performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform; and controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time. The method and the device have the advantages that the automobile signal data are obtained through the middle layer, the waveform drawing is carried out according to the automobile signal data, and the automobile signal waveform is generated.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an apparatus for drawing waveforms of automotive signals according to an embodiment of the present invention; the device 60 for drawing the waveform of the automobile signal is applied to the mobile terminal, and particularly, to one or more processors of the mobile terminal.
As shown in fig. 6, the apparatus 60 for drawing a waveform of an automobile signal is applied to a mobile terminal, the mobile terminal is connected to an automobile diagnostic device, the automobile diagnostic device is connected to an automobile in a communication manner, the mobile terminal is installed with a client, the client is connected to an intermediate layer in a communication manner, and the apparatus includes:
the automobile signal data acquisition unit 61 is used for acquiring automobile signal data acquired by the automobile diagnosis equipment through the middle layer;
the automobile signal waveform generating unit 62 is used for performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform;
and the automobile signal waveform display unit 63 is configured to control the middle layer to send a drawn automobile signal waveform to the client, so that the client displays the automobile signal waveform in real time.
In the embodiment of the present invention, the automobile signal waveform generating unit 62 is specifically configured to:
converting the automobile signal data into coordinate data information which can be displayed in a screen of the mobile terminal through the middle layer;
and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform.
It should be noted that the above-mentioned apparatus can execute the method provided by the embodiments of the present application, and has corresponding functional modules and beneficial effects for executing the method. For technical details which are not described in detail in the device embodiments, reference is made to the methods provided in the embodiments of the present application.
In an embodiment of the present invention, a device for drawing a waveform of an automobile signal is provided, and is applied to a mobile terminal, where the mobile terminal is connected to an automobile diagnostic device, the automobile diagnostic device is connected to an automobile in a communication manner, the mobile terminal is installed with a client, and the client is connected to an intermediate layer in a communication manner, and the device includes: the automobile signal data acquisition unit is used for acquiring automobile signal data acquired by the automobile diagnosis equipment through the middle layer; the automobile signal waveform generating unit is used for performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform; and the automobile signal waveform display unit is used for controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time. The method and the device have the advantages that the automobile signal data are obtained through the middle layer, the waveform drawing is carried out according to the automobile signal data, and the automobile signal waveform is generated.
Referring to fig. 7, fig. 7 is a schematic diagram of a hardware structure of a mobile terminal according to various embodiments of the present invention;
as shown in fig. 7, the mobile terminal 70 includes, but is not limited to: radio frequency unit 71, network module 72, audio output unit 73, input unit 74, sensor 75, display unit 76, user input unit 77, interface unit 78, memory 79, processor 710, and power supply 711, and the mobile terminal 70 further includes a camera. Those skilled in the art will appreciate that the configuration of the mobile terminal shown in fig. 7 does not constitute a limitation of the mobile terminal, and that the mobile terminal may include more or less components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a television, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to obtain vehicle signal data acquired by the vehicle diagnostic device through the middle layer; performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform; and controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time.
In the embodiment of the invention, the automobile signal data is obtained through the middle layer, and the waveform drawing is carried out according to the automobile signal data so as to generate the automobile signal waveform.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 71 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, the processor 710 is configured to receive downlink data from a base station and process the received downlink data; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 71 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 71 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal 70 provides the user with wireless broadband internet access via the network module 72, such as assisting the user in e-mailing, browsing web pages, and accessing streaming media.
The audio output unit 73 may convert audio data received by the radio frequency unit 71 or the network module 72 or stored in the memory 79 into an audio signal and output as sound. Also, the audio output unit 73 may also provide audio output related to a specific function performed by the mobile terminal 70 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 73 includes a speaker, a buzzer, a receiver, and the like.
The input unit 74 is for receiving an audio or video signal. The input Unit 74 may include a Graphics Processing Unit (GPU) 741 and a microphone 742, and the Graphics processor 741 processes a target image of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 76. The image frames processed by the graphic processor 741 may be stored in the memory 79 (or other storage medium) or transmitted via the radio frequency unit 71 or the network module 72. The microphone 742 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 71 in case of the phone call mode.
The mobile terminal 70 also includes at least one sensor 75, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 761 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 761 and/or a backlight when the mobile terminal 70 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 75 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 76 is used to display information input by the user or information provided to the user. The Display unit 76 may include a Display panel 761, and the Display panel 761 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 77 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 77 includes a touch panel 771 and other input devices 772. The touch panel 771, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 771 (e.g., operations by a user on or near the touch panel 771 using a finger, stylus, or any suitable object or attachment). The touch panel 771 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 771 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 771, the user input unit 77 may also include other input devices 772. In particular, other input devices 772 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 771 may be overlaid on the display panel 761, and when the touch panel 771 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 761 according to the type of the touch event. Although the touch panel 771 and the display panel 761 are shown as two separate components in fig. 7 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 771 and the display panel 761 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 78 is an interface for connecting an external device to the mobile terminal 70. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 78 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 70 or may be used to transmit data between the mobile terminal 70 and external devices.
The memory 79 may be used to store software programs as well as various data. The memory 79 may mainly include a program storage area and a data storage area, wherein the program storage area may store an application 791 (such as a sound playing function, an image playing function, etc.) required for at least one function, an operating system 792, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 79 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 79 and calling data stored in the memory 79, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 70 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, the mobile terminal 70 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 710, a memory 79, and a computer program stored in the memory 79 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-mentioned method for drawing an automobile signal waveform, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by one or more processors, the computer program implements each process of the above-mentioned method for drawing an automobile signal waveform, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile terminal, a personal computer, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present invention.
Finally, it should be noted that: the embodiments described above with reference to the drawings are only for illustrating the technical solutions of the present invention, and the present invention is not limited to the above-mentioned specific embodiments, which are only illustrative and not restrictive; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method for drawing automobile signal waveforms is applied to a mobile terminal, the mobile terminal is connected with automobile diagnosis equipment, the automobile diagnosis equipment is in communication connection with an automobile, the mobile terminal is provided with a client, the client is in communication connection with an intermediate layer, and the method comprises the following steps:
acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer;
performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform;
and controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time.
2. The method of claim 1, wherein the waveform mapping the vehicle signal data through the intermediate layer to generate a vehicle signal waveform comprises:
converting the automobile signal data into coordinate data information which can be displayed in a screen of the mobile terminal through the middle layer;
and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform.
3. The method of claim 2, wherein the middle layer communicatively connects a display waveform control and a display tool, the display waveform control is bound to the display tool, and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform, comprising:
and the middle layer calls the display waveform control, displays the automobile signal waveform through the display waveform control and calls the display tool to render the automobile signal waveform.
4. The method of claim 2, further comprising:
the intermediate layer sends the coordinate data information to the client so that the client refreshes the original coordinate data information after receiving the coordinate data information;
and the client informs the middle layer of performing waveform drawing on the coordinate data information.
5. The method of claim 1, wherein the client notifying the middle tier of waveform drawing of the coordinate data information comprises:
and calling a native interface, and informing the middle layer to perform waveform drawing on the coordinate data information.
6. The method of claim 1, wherein the native interface comprises a JNI interface.
7. The method of any of claims 1-6, wherein the client comprises an android client and the middle tier comprises an NDK middle tier.
8. The utility model provides a drawing device of car signal waveform which characterized in that is applied to mobile terminal, mobile terminal connects automobile diagnosis equipment, automobile diagnosis equipment communication connection car, mobile terminal installs a customer end, a customer end communication connection intermediate level, the device includes:
the automobile signal data acquisition unit is used for acquiring automobile signal data acquired by the automobile diagnosis equipment through the middle layer;
the automobile signal waveform generating unit is used for performing waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform;
and the automobile signal waveform display unit is used for controlling the middle layer to send the drawn automobile signal waveform to the client so as to enable the client to display the automobile signal waveform in real time.
9. A mobile terminal, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of mapping a waveform of an automotive signal according to any one of claims 1 to 7.
10. A system for drawing automobile signal waveform, which is applied to an automobile, and is characterized by comprising:
a mobile terminal according to claim 9;
and the automobile diagnosis equipment is in communication connection with the mobile terminal and the automobile, and is used for acquiring automobile signal data of the automobile and sending the automobile signal data to the mobile terminal.
11. A non-transitory computer-readable storage medium storing computer-executable instructions for causing a mobile terminal to perform the method for mapping a waveform of an automobile signal according to any one of claims 1 to 7.
CN202011378410.1A 2020-11-30 2020-11-30 Method, device and system for drawing automobile signal waveform and mobile terminal Pending CN112464825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011378410.1A CN112464825A (en) 2020-11-30 2020-11-30 Method, device and system for drawing automobile signal waveform and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011378410.1A CN112464825A (en) 2020-11-30 2020-11-30 Method, device and system for drawing automobile signal waveform and mobile terminal

Publications (1)

Publication Number Publication Date
CN112464825A true CN112464825A (en) 2021-03-09

Family

ID=74806305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011378410.1A Pending CN112464825A (en) 2020-11-30 2020-11-30 Method, device and system for drawing automobile signal waveform and mobile terminal

Country Status (1)

Country Link
CN (1) CN112464825A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464740A (en) * 2016-07-15 2017-02-22 株式会社小松制作所 Operating vehicle, remote diagnoses system and remote diagnosis method
CN107168296A (en) * 2017-06-30 2017-09-15 东南(福建)汽车工业有限公司 A kind of automotive diagnostic installation software systems
WO2018103252A1 (en) * 2016-12-05 2018-06-14 深圳市元征科技股份有限公司 Secondary development method and apparatus for diagnostic device
US20200339139A1 (en) * 2018-01-08 2020-10-29 Autel Intelligent Technology Corp., Ltd. Automobile diagnostic method, apparatus, device and system, and diagnostic connection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464740A (en) * 2016-07-15 2017-02-22 株式会社小松制作所 Operating vehicle, remote diagnoses system and remote diagnosis method
WO2018103252A1 (en) * 2016-12-05 2018-06-14 深圳市元征科技股份有限公司 Secondary development method and apparatus for diagnostic device
CN107168296A (en) * 2017-06-30 2017-09-15 东南(福建)汽车工业有限公司 A kind of automotive diagnostic installation software systems
US20200339139A1 (en) * 2018-01-08 2020-10-29 Autel Intelligent Technology Corp., Ltd. Automobile diagnostic method, apparatus, device and system, and diagnostic connection device

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN109885257B (en) Disk file reading and writing method and device
US10636228B2 (en) Method, device, and system for processing vehicle diagnosis and information
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN110035181B (en) Method and terminal for setting theme of quick application card
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
US20220019332A1 (en) Electronic device including touch sensor and method for driving touch sensor included in electronic device
CN109888928B (en) Terminal and wireless charging control method
CN110908750B (en) Screen capturing method and electronic equipment
CN111309390A (en) Method for acquiring configuration information and electronic equipment
CN107479799B (en) Method and device for displaying window
CN111399819A (en) Data generation method and device, electronic equipment and storage medium
CN113268047B (en) Automobile diagnosis system and method and cloud server
CN110012151B (en) Information display method and terminal equipment
CN106919458B (en) Method and device for Hook target kernel function
CN109446435B (en) Information display apparatus, method, system, and computer-readable storage medium
WO2022016650A1 (en) Smart pen image processing method, apparatus and electronic device
CN113407169A (en) Software development method and device
CN109829707B (en) Interface display method and terminal equipment
CN109889568B (en) Data export method, server and system
CN110717133A (en) Page updating method and device, terminal equipment and storage medium
CN109189517B (en) Display switching method and mobile terminal
CN111273961A (en) Advertisement display method and device and electronic equipment
CN112464825A (en) Method, device and system for drawing automobile signal waveform and mobile terminal

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