CN112464825B - Drawing method, device and system of automobile signal waveform and mobile terminal - Google Patents
Drawing method, device and system of automobile signal waveform and mobile terminal Download PDFInfo
- Publication number
- CN112464825B CN112464825B CN202011378410.1A CN202011378410A CN112464825B CN 112464825 B CN112464825 B CN 112464825B CN 202011378410 A CN202011378410 A CN 202011378410A CN 112464825 B CN112464825 B CN 112464825B
- Authority
- CN
- China
- Prior art keywords
- automobile
- waveform
- automobile signal
- middle layer
- mobile terminal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000003745 diagnosis Methods 0.000 claims abstract description 24
- 238000004891 communication Methods 0.000 claims description 31
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000011161 development Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 239000012502 diagnostic product Substances 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/08—Feature extraction
- G06F2218/10—Feature extraction by analysing the shape of a waveform, e.g. extracting parameters relating to peaks
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric 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/02—Electric 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
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R13/00—Arrangements 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)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to the technical field of terminals, and discloses a method and a device for drawing an automobile signal waveform and a mobile terminal. Acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer; drawing waveforms of the automobile signal data through the intermediate layer to generate automobile signal waveforms; and controlling the middle layer to send the drawn automobile signal waveform to the client so that the client displays the automobile signal waveform in real time. The method and the device for generating the automobile signal waveform can improve drawing speed of the automobile signal waveform.
Description
Technical Field
The present invention relates to the field of automotive technologies, and in particular, to a method, an apparatus, a system, and a mobile terminal for drawing an automotive signal waveform.
Background
With the continuous advancement of automobile technology, the variety and 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 drawing of automobile signal waveforms is becoming more difficult.
Because the automobile signals are complex and various, the quantity of the drawn waveform data is overlarge, simple client drawing is easy to be blocked, and a huge quantity of waveform data cannot be accurately drawn in real time.
In carrying out the invention, the inventors have found that the prior art has at least the following problems:
The current drawing method of the automobile signal waveform directly draws through the client, so that the technical problem of low drawing speed is caused.
Disclosure of Invention
An object of the embodiment of the invention is to provide a method, a device, a system and a mobile terminal for drawing an automobile signal waveform, which can improve the drawing speed of the automobile signal waveform.
In a first aspect, an embodiment of the present invention provides a method 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 communicatively connected to an automobile, the mobile terminal is installed with a client, and the client is communicatively connected to an intermediate layer, the method includes:
Acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer;
Drawing waveforms of the automobile signal data through the intermediate layer to generate automobile signal waveforms;
And controlling the middle layer to send the drawn automobile signal waveform to the client so that the client displays the automobile signal waveform in real time.
In some embodiments, the generating the vehicle signal waveform by waveform drawing the vehicle signal data through the intermediate layer 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;
the intermediate 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, the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform, and the method comprises the following steps:
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 middle 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 to carry out waveform drawing on the coordinate data information.
In some embodiments, the client notifying the middle layer to waveform-draw the coordinate data information includes:
And calling a native interface, and informing the middle layer to carry out 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 layer comprises an NDK middle layer.
In a second aspect, an embodiment of the present invention provides a drawing device of an automobile signal waveform, which is applied to a mobile terminal, where the mobile terminal is connected to an automobile diagnostic device, the automobile diagnostic device is communicatively connected to an automobile, the mobile terminal is installed with a client, and the client is communicatively connected to an intermediate layer, 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 generation unit is used for carrying out 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 that the client displays the automobile signal waveform in real time.
In some embodiments, the automobile 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;
the intermediate 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 memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of drawing a vehicle signal waveform described above.
In a fourth aspect, an embodiment of the present invention provides a system for drawing a signal waveform of an automobile, which is applied to the 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 collecting automobile signal data of the automobile and sending the automobile signal data to the mobile terminal.
In a fifth aspect, an embodiment of the present invention provides a non-volatile computer-readable storage medium storing computer-executable instructions for causing a mobile terminal to perform the above-described method for drawing an automobile signal waveform.
In a sixth aspect, an embodiment of the present invention provides a computer program comprising program instructions that, when executed by one or more processors in a mobile terminal, cause the mobile terminal to perform the method for drawing a vehicle signal waveform described above.
The embodiment of the invention has the beneficial effects that: in comparison with the prior art, the method for drawing the automobile signal waveform provided by the embodiment of the invention is applied to a mobile terminal, wherein 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, 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; drawing waveforms of the automobile signal data through the intermediate layer to generate automobile signal waveforms; and controlling the middle layer to send the drawn automobile signal waveform to the client so that the client displays the automobile signal waveform in real time. The method and the device for generating the automobile signal waveform can improve drawing speed of the automobile signal waveform.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a schematic structural diagram of a drawing system for signal waveforms of an automobile according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another drawing system for signal waveforms of an automobile according to an embodiment of the present invention;
fig. 3 is a flow chart of a drawing method of an automobile signal waveform 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 diagram of a method for drawing an automobile signal waveform according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a drawing device for signal waveforms of an automobile 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
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, if not in conflict, the features of the embodiments of the present invention may be combined with each other, which is within the protection scope of the present invention. In addition, while functional block division is performed in a device diagram and logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. Furthermore, the words "first," "second," "third," and the like as used herein do not limit the order of data and execution, but merely distinguish between identical or similar items that have substantially the same function and effect.
Before explaining the present invention in detail, terms and terminology involved in the embodiments of the present invention are explained, and the terms and terminology involved in the embodiments of the present invention are applicable to the following explanation.
(1) The middle layer refers to a development kit for developing software for a mobile terminal, which is a library written in the C or c++ language, the developed software being capable of running on a machine of a specific CPU instruction set, typically for developing drivers or underlying applications.
(2) The client refers to an application platform installed on the mobile terminal, such as an android client, an apple client, etc., 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 the processor of the mobile terminal, and the execution main body 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 drawing system for signal waveforms of an automobile according to an embodiment of the present invention;
As shown in fig. 1, the drawing system 100 of the automobile signal waveform includes: the mobile terminal 10 is in communication connection with the automobile diagnostic device 20, the automobile diagnostic device 20 is in communication connection with an automobile 200, the automobile diagnostic device 20 is used for acquiring automobile signal data of the automobile 200 and transmitting the automobile signal data to the mobile terminal 10, and the mobile terminal 10 draws automobile signal waveforms based on the automobile signal data by receiving the automobile signal data transmitted by the automobile diagnostic device 20.
In the embodiment of the present invention, the automobile 200 may be a motor vehicle of any type, 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 parameters of the vehicle in real time, thereby ensuring reliable and safe operation of the automobile 200.
In an embodiment of the present invention, the vehicle diagnostic device 20 may be any type of vehicle diagnostic product including at least one electrical connector that terminates in a diagnostic connector that mates with a hardware communication interface of the vehicle 200, including Kelvin connectors, low frequency circular connectors, fiber optic connectors, rectangular connectors, printed circuit connectors, radio frequency connectors, and the like, preferably, the electrical connector in an embodiment of the present invention is a Kelvin connector. Preferably, the automobile diagnosis device 20 is a DC1911 device, which supports an automobile communication diagnosis, an oscilloscope, a universal meter, a signal generator and an OBD interface, and is mainly used for collecting and measuring automobile signal data.
In actual use, the automotive diagnostic device 20 establishes physical communication connections with various automotive buses in the vehicle via interface modules, such as diagnostic connectors and hardware communication interfaces, and loads appropriate or paired protocol configurations to effect data interaction with the electronic control system, such as sending test instructions or receiving test 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.
Referring to fig. 2 again, fig. 2 is a schematic structural diagram of another drawing system for signal waveforms of an automobile according to an embodiment of the present invention;
as shown in fig. 2, the drawing system 100 of the automobile signal waveform 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, the intermediate layer 12 is in communication connection with the automobile diagnostic device 20, and the intermediate layer 12 is used for acquiring automobile signal data acquired by the automobile diagnostic device 20, and carrying out waveform drawing on the automobile signal data to generate 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 middle layer is an NDK middle layer. Wherein, NDK middle layer (Native Development Kit, NDK) is a native development toolkit of Android, tools for utilizing C and c++ code in Android applications, which can be built with written source code, or with existing pre-built libraries, such as: the NDK builds these libraries or.so files from native source code, or native static libraries, the NDK may also build static libraries or.a files, which may be associated with other libraries. The native development toolkit (Native Development Kit, NDK) is used to quickly develop a C, C ++ dynamic library and automatically package so and applications together into APK to interact with native code (e.g., C, C ++) in Android through NDK using JNI interfaces.
Because the automobile signals are complex and various, the number of the drawing waveform data is overlarge, the current drawing modes basically draw through the client, and the client is easy to draw due to the large data volume, and cannot accurately draw huge waveform data in real time.
Referring to fig. 3, fig. 3 is a flow chart of a method for drawing an automobile signal waveform according to an embodiment of the invention;
As shown in fig. 3, the method for drawing the signal waveform of the automobile 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 the 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:
Step S10: acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer;
Specifically, the intermediate layer is communicatively connected to the automobile diagnostic device, the automobile diagnostic device is communicatively connected to the automobile, and the automobile diagnostic device is connected to a hardware communication interface of the automobile through an electrical connector to obtain automobile signal data of the automobile, where the automobile 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 automobile signal data includes data such as direct current signal data, alternating current signal data, frequency modulation signal data, pulse width modulation signal data, and serial data signal data, and it is understood that the automobile 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 diagnosis device. Wherein the automotive diagnostic device is communicatively connected to the intermediate layer, for example: the intermediate layer is connected through a wireless network, for example: the intermediate layer is connected through WiFi, or the automobile diagnostic device is connected through a wired manner, for example: and connecting the intermediate layer through USB.
Step S20: drawing waveforms of the automobile signal data through the intermediate layer to generate automobile signal waveforms;
After the intermediate layer acquires the automobile signal data acquired by the automobile diagnostic equipment, waveform drawing is performed on the automobile signal data to generate an automobile signal waveform, specifically, referring to fig. 4 again, fig. 4 is a detailed flowchart of step S20 in fig. 3;
as shown in fig. 4, this step S20: and carrying out waveform drawing on the automobile signal data through the intermediate layer to generate an automobile signal waveform, wherein the waveform drawing comprises the following steps:
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 middle layer processes the automobile signal data, and corresponds the automobile signal data 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 the automobile signal waveform is convenient to refresh.
Step S22: the intermediate layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform.
Specifically, after the middle 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 informed of refreshing 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 with the display tool, and the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform, and the method comprises the following steps:
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.
The client integrates an application program interface (Application Program Interface, API), displays the automobile signal waveform through the display waveform control, and calls the display tool to render the automobile signal waveform, in the embodiment of the invention, the application program interface is an OpenGL API, the OpenGL has an independent coordinate system, the initial coordinate system before no transformation is a three-dimensional coordinate system, and three types of drawing are supported in the OpenGL ES: points, lines, and triangles; all other figures are composed of these three figures, for example, a round sphere we see is also composed of triangles, the more triangles appear round.
In the embodiment of the present invention, the display waveform control is GLSurfaceView, and the display tool is glsurface view. The use of 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 displaying OpenGL renderings. It is understood that GLSurfaceView is what we have previously said to be a window for displaying OpenGL graphics. Glsurfaceview.renderer is a renderer of GLSurfaceview, set by glsurfaceview.setrender ().
In an embodiment of the present invention, the method further includes:
The middle 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 to carry out 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 last moment of the client, after the client receives the coordinate data information sent by the middle layer, the original coordinate data information is updated, the original coordinate data information is refreshed, and the middle layer is notified to conduct waveform drawing on the coordinate data information, wherein the client notifies the middle layer to conduct waveform drawing on the coordinate data information, and the method includes:
And calling a native interface, and informing the middle layer to carry out waveform drawing on the coordinate data information.
In an embodiment of the present invention, the native interface includes 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 a display waveform control, and calls the display tool to render the automobile signal waveform drawn by the display waveform 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 that the client displays the automobile signal waveform in real time.
Specifically, after the middle layer finishes drawing the automobile signal waveform, 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 drawing method of an automobile signal waveform according to an embodiment of the invention;
As shown in fig. 5, the interactive flow of the drawing method of the automobile signal waveform 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 automobile diagnosis device is in communication connection with an automobile, and collects automobile signal data through a hardware communication interface of the automobile, for example: and acquiring automobile signal data through an 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 middle layer processes the automobile signal data, and corresponds the automobile signal data 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 the automobile signal waveform is convenient to refresh.
Step S55: refreshing coordinate data information, and calling the middle layer to draw the waveform of the automobile signal;
Specifically, the middle 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 to carry out 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 last moment of the client, after the client receives the coordinate data information sent by the middle layer, the original coordinate data information is updated, the original coordinate data information is refreshed, and the middle layer is notified to conduct waveform drawing on the coordinate data information, wherein the client notifies the middle layer to conduct waveform drawing on the coordinate data information, and the method includes:
And calling a native interface, and informing the middle layer to carry out waveform drawing on the coordinate data information.
In an embodiment of the present invention, the native interface includes a JNI interface (Java NATIVE INTERFACE, JNI). The Java Native Interface (JNI) is an interface used for communicating Java and C++ components, the JNI interface is used for Java to call C++, 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 a display waveform control, and calls the display tool to render the automobile signal waveform drawn by the display waveform control so as to generate the drawn automobile signal waveform.
Step S56: connecting the coordinate data information to generate an automobile signal waveform;
specifically, the coordinate data information is connected in the display waveform control, waveform drawing is performed, and the display tool is called to render the automobile signal waveform drawn by the display waveform 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 applied to a mobile terminal, where the mobile terminal is connected to an automobile diagnostic device, the automobile diagnostic device is communicatively connected to an automobile, the mobile terminal is installed with a client, and the client is communicatively connected to an intermediate layer, and the method includes: acquiring automobile signal data acquired by automobile diagnosis equipment through the intermediate layer; drawing waveforms of the automobile signal data through the intermediate layer to generate automobile signal waveforms; and controlling the middle layer to send the drawn automobile signal waveform to the client so that the client displays the automobile signal waveform in real time. The method and the device for generating the automobile signal waveform can improve drawing speed of the automobile signal waveform.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a drawing device for an automobile signal waveform according to an embodiment of the invention; the drawing device 60 of the automobile signal waveform is applied to a mobile terminal, and specifically, one or more processors of the mobile terminal.
As shown in fig. 6, the drawing device 60 of the automobile signal waveform 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 way, the mobile terminal is provided with a client, and the client is connected with an intermediate layer in a communication way, and the device comprises:
an automobile signal data acquisition unit 61 for acquiring automobile signal data acquired by an automobile diagnostic device through the intermediate layer;
an automobile signal waveform generation unit 62 configured to generate an automobile signal waveform by waveform drawing the automobile signal data through the intermediate layer;
And the automobile signal waveform display unit 63 is used for controlling the middle layer to send the 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 generation 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;
the intermediate layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform.
It should be noted that, the device can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the method. Technical details which are not described in detail in the device embodiments may be found in the methods provided by the embodiments of the present application.
In an embodiment of the present invention, by providing a drawing device of an automobile signal waveform, the drawing device is applied to a mobile terminal, the mobile terminal is connected with an automobile diagnostic device, the automobile diagnostic 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, 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 generation unit is used for carrying out 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 that the client displays the automobile signal waveform in real time. The method and the device for generating the automobile signal waveform can improve drawing speed of the automobile signal waveform.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating 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: the mobile terminal 70 further comprises a camera, and the radio frequency unit 71, a network module 72, an audio output unit 73, an input unit 74, a sensor 75, a display unit 76, a user input unit 77, an interface unit 78, a memory 79, a processor 710, a power supply 711 and the like. It will be appreciated by those skilled in the art that the structure of the mobile terminal shown in fig. 7 is not limiting of the mobile terminal and that the mobile terminal may include more or less components than illustrated, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the mobile terminal comprises, 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.
A processor 710, configured to obtain, through the intermediate layer, vehicle signal data collected by a vehicle diagnostic device; drawing waveforms of the automobile signal data through the intermediate layer to generate automobile signal waveforms; and controlling the middle layer to send the drawn automobile signal waveform to the client so that the client displays the automobile signal waveform in real time.
In the embodiment of the invention, the automobile signal data is acquired through the intermediate layer and 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 transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from the base station, and then processing the received downlink data by the processor 710; and, 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 may also communicate with networks and other devices via a wireless communication system.
The mobile terminal 70 provides wireless broadband internet access to the user, such as helping the user to email, browse web pages, access streaming media, etc., via the network module 72.
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 (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 70. 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 processor (Graphics Processing Unit, GPU) 741 and a microphone 742, the graphics processor 741 processing a target image of a still picture or video obtained by an image capturing apparatus (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 graphics processor 741 may be stored in memory 79 (or other storage medium) or transmitted via the radio frequency unit 71 or the network module 72. The microphone 742 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 71 in the case of a telephone call mode.
The mobile terminal 70 also includes at least one sensor 75, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 761 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 761 and/or the backlight when the mobile terminal 70 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 75 may further 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 will not be described herein.
The display unit 76 is used to display information input by a 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 (Liquid CRYSTAL DISPLAY, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 77 may be used to receive input numerical or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 77 includes a touch panel 771 and other input devices 772. Touch panel 771, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on touch panel 771 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 771 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 710, and receives and executes commands sent from the processor 710. In addition, the touch panel 771 may be implemented in various types such as resistive, capacitive, infrared, and 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 thereabout, the touch panel is transferred to the processor 710 to determine the type of touch event, and then the processor 710 provides a corresponding visual output on the display panel 761 according to the type of touch event. Although in fig. 7, the touch panel 771 and the display panel 761 are implemented as two separate components 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, which 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 devices may include a wired or wireless headset port, an external power (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 an external device 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 an external device.
The memory 79 may be used to store software programs as well as various data. The memory 79 may mainly include a storage program area and a storage data area, wherein the storage program area may store an application program 791 (such as a sound playing function, an image playing function, etc.) required for at least one function, an operating system 792, etc.; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, 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 running or executing software programs and/or modules stored in the memory 79 and calling data stored in the memory 79, thereby performing overall monitoring of the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the 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 preferably be logically coupled to the processor 710 via a power management system, such as to perform charge, discharge, and power consumption management functions via the power management system.
In addition, the mobile terminal 70 includes some functional modules, which are not shown, and will not be described herein.
Preferably, the 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 when executed by the processor 710 implements each process of the foregoing embodiment of the method for drawing a vehicle signal waveform, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by one or more processors, implements the processes of the above-mentioned embodiment of the method for drawing the vehicle signal waveform, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or 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 one … …" 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, in which the unit modules illustrated as separate components may or may not be physically separate, and the components shown as unit modules may or may not be physical units, may be located in one place, or may be distributed over multiple network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal (which may be a mobile terminal, a personal computer, a server, or a network device, etc.) to perform 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 in connection with the accompanying drawings are only for illustrating the technical aspects of the present application, and the present application is not limited to the above-described embodiments, which are only illustrative, but not restrictive; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the application, the steps may be implemented in any order, and there are many other variations of the different aspects of the application as described above, which are not provided in detail for the sake of brevity; although the application 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (9)
1. The method for drawing the automobile signal waveform is characterized by being applied to a mobile terminal, wherein 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, 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;
Drawing waveforms of the automobile signal data through the intermediate layer to generate automobile signal waveforms;
Controlling the middle layer to send the drawn automobile signal waveform to the client so that the client displays the automobile signal waveform in real time;
the step of generating an automobile signal waveform by waveform drawing the automobile signal data through the intermediate layer comprises the following steps:
Converting the automobile signal data into coordinate data information which can be displayed in a screen of the mobile terminal through the middle layer;
the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform;
The middle layer is in communication connection with a display waveform control and a display tool, the display waveform control is bound with the display tool, the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform, and the method comprises the following steps:
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.
2. The method according to claim 1, wherein the method further comprises:
The middle 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 to carry out waveform drawing on the coordinate data information.
3. The method of claim 2, wherein the client informing the middle layer to waveform the coordinate data information comprises:
And calling a native interface, and informing the middle layer to carry out waveform drawing on the coordinate data information.
4. The method of claim 3, wherein the native interface comprises a JNI interface.
5. The method of any of claims 1-4, wherein the client comprises an android client and the middle layer comprises an NDK middle layer.
6. The utility model provides a drawing device of car signal waveform, its characterized in that is applied to mobile terminal, mobile terminal connects car diagnostic equipment, car diagnostic equipment communication connection car, mobile terminal installs a customer end, 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 generation unit is used for carrying out waveform drawing on the automobile signal data through the middle layer to generate an automobile signal waveform; the step of generating an automobile signal waveform by waveform drawing the automobile signal data through the intermediate layer comprises the following steps: converting the automobile signal data into coordinate data information which can be displayed in a screen of the mobile terminal through the middle layer; the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform; the middle layer is in communication connection with a display waveform control and a display tool, the display waveform control is bound with the display tool, the middle layer performs waveform drawing based on the coordinate data information to generate an automobile signal waveform, and the method comprises the following steps: 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;
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 that the client displays the automobile signal waveform in real time.
7. A mobile terminal, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of drawing automotive signal waveforms of any of claims 1-5.
8. A system for drawing a signal waveform of an automobile, which is applied to the automobile, the system comprising:
the mobile terminal of claim 7;
And the automobile diagnosis equipment is in communication connection with the mobile terminal and the automobile and is used for collecting automobile signal data of the automobile and sending the automobile signal data to the mobile terminal.
9. A non-transitory computer-readable storage medium storing computer-executable instructions for causing a mobile terminal to perform the method of drawing an automotive signal waveform according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011378410.1A CN112464825B (en) | 2020-11-30 | 2020-11-30 | Drawing method, device and system of automobile signal waveform and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011378410.1A CN112464825B (en) | 2020-11-30 | 2020-11-30 | Drawing method, device and system of automobile signal waveform and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112464825A CN112464825A (en) | 2021-03-09 |
CN112464825B true CN112464825B (en) | 2024-06-07 |
Family
ID=74806305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011378410.1A Active CN112464825B (en) | 2020-11-30 | 2020-11-30 | Drawing method, device and system of automobile signal waveform and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112464825B (en) |
Citations (3)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552274B (en) * | 2018-01-08 | 2021-10-12 | 深圳市道通科技股份有限公司 | Automotive diagnostic method, apparatus, apparatus, system, and diagnostic connection device |
-
2020
- 2020-11-30 CN CN202011378410.1A patent/CN112464825B/en active Active
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN112464825A (en) | 2021-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255378B (en) | Display control method and mobile terminal | |
CN106775833B (en) | Device driver loading method, terminal and system | |
CN110908750B (en) | Screen capturing method and electronic equipment | |
CN108536509B (en) | Application body-splitting method and mobile terminal | |
US10636228B2 (en) | Method, device, and system for processing vehicle diagnosis and information | |
CN110035181B (en) | A kind of quick application card theme setting method and terminal | |
CN109343788B (en) | Operation control method of mobile terminal and mobile terminal | |
CN113268047B (en) | Automobile diagnosis system and method and cloud server | |
CN107967153B (en) | Application program management method and mobile terminal | |
CN110012151B (en) | Information display method and terminal equipment | |
CN111399819A (en) | Data generation method and device, electronic equipment and storage medium | |
CN106203228A (en) | Two-dimensional code information transmission method, device and equipment | |
CN106919458B (en) | Method and device for Hook target kernel function | |
CN110096203B (en) | Screenshot method and mobile terminal | |
CN109829707B (en) | Interface display method and terminal equipment | |
CN109446435B (en) | Information display apparatus, method, system, and computer-readable storage medium | |
CN109491670A (en) | A kind of page display method and terminal device | |
CN111309390A (en) | Method for acquiring configuration information and electronic equipment | |
CN107479799B (en) | Method and device for displaying window | |
CN110022551B (en) | Information interaction method and terminal equipment | |
CN112464825B (en) | Drawing method, device and system of automobile signal waveform and mobile terminal | |
CN112130949A (en) | Prompt resource display method and device and computer readable storage medium | |
CN109842722B (en) | Image processing method and terminal equipment | |
CN111273961A (en) | Advertisement display method and device and electronic equipment | |
CN110717133A (en) | Page updating method and device, terminal equipment and 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 |