CN112445630B - Information interaction method and device and terminal equipment - Google Patents

Information interaction method and device and terminal equipment Download PDF

Info

Publication number
CN112445630B
CN112445630B CN202011294002.8A CN202011294002A CN112445630B CN 112445630 B CN112445630 B CN 112445630B CN 202011294002 A CN202011294002 A CN 202011294002A CN 112445630 B CN112445630 B CN 112445630B
Authority
CN
China
Prior art keywords
vehicle data
display interface
data packet
shared memory
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011294002.8A
Other languages
Chinese (zh)
Other versions
CN112445630A (en
Inventor
刘均
樊球
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202011294002.8A priority Critical patent/CN112445630B/en
Publication of CN112445630A publication Critical patent/CN112445630A/en
Application granted granted Critical
Publication of CN112445630B publication Critical patent/CN112445630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of information processing, and provides an information interaction method, an information interaction device and terminal equipment, wherein the method comprises the following steps: when the client is detected to be started, a shared memory area is created; when receiving a demand instruction sent by a user, transmitting the demand instruction to diagnostic software through the shared memory; and the diagnostic software executes a corresponding diagnostic program according to the demand instruction. By creating the shared memory area, when receiving a demand instruction sent by a user, the embodiment of the application transmits the demand instruction to diagnostic software through the shared memory. Because the information interaction is realized by creating the shared memory, the information interaction efficiency can be improved.

Description

Information interaction method and device and terminal equipment
Technical Field
The application belongs to the technical field of information processing, and particularly relates to an information interaction method, an information interaction device and terminal equipment.
Background
With the progress of society, the quantity of automobile maintenance is rapidly increasing, and the vehicle maintenance industry is widely used, and diagnostic software for diagnosing various functions of automobiles is increasing.
In the current process of diagnosing a vehicle by the diagnostic software executing the diagnostic program, frequent interaction with a user is needed, for example, when a message processing system of a client detects an instruction sent by the user (for example, a relevant instruction is input into a display interface of the client), the instruction is sent to the corresponding diagnostic software, and the diagnostic software executes the diagnostic program according to the instruction, so that the vehicle is diagnosed. Because the client message processing system and the diagnostic software respectively allocate one memory for caching data in the process of information interaction, the interaction process can respectively read data from various memories, and the information interaction efficiency between the diagnostic software and the client is low when the user interacts frequently or transmits too much data with the diagnostic software.
Disclosure of Invention
The embodiment of the application provides an information interaction method, an information interaction device and terminal equipment, and aims to solve the problem of low information interaction efficiency between existing diagnostic software and a client.
In a first aspect, an embodiment of the present application provides an information interaction method, applied to a client, where the method includes:
when the client is detected to be started, a shared memory area is created;
when the message processing system receives a demand instruction sent by a user, the demand instruction is transmitted to diagnostic software through the shared memory;
and the diagnostic software executes a corresponding diagnostic program according to the demand instruction.
In one embodiment, the client comprises loaded diagnostic software, a communication layer preset in association with the diagnostic software, and a message processing system; the shared memory area is a shared memory area corresponding to the communication layer and the message processing system of the client;
when receiving a demand instruction sent by a user, the method transmits the demand instruction to diagnostic software through the shared memory, and comprises the following steps:
when the message processing system receives a demand instruction sent by a user, the demand instruction is transmitted to the communication layer through the shared memory;
the communication layer analyzes the demand instruction into a target instruction; the target instruction is an instruction matched with a data format corresponding to the diagnostic software;
the communication layer communicates the target instructions to the diagnostic software.
In one embodiment, the method further comprises:
when the diagnosis software receives vehicle data sent by a vehicle to be diagnosed, if the vehicle data meets preset conditions, the vehicle data is subjected to data encapsulation to obtain a vehicle data packet;
the diagnostic software sends the vehicle data packet to the communication layer;
the communication layer acquires a display interface corresponding to the vehicle data packet according to the vehicle data packet;
the communication layer transmits the vehicle data packet and the display interface to the message processing system through the shared memory;
and the message processing system creates a display interface according to the vehicle data packet and the display interface and displays information corresponding to the vehicle data.
In one embodiment, if the vehicle data meets the preset condition, data packaging is performed on the vehicle data to obtain a vehicle data packet, including:
if the type of the vehicle data is the display data type, judging that the vehicle data meets the preset condition, and acquiring a display interface identifier corresponding to the vehicle data;
and carrying out data encapsulation on the display interface identifier and the vehicle data to obtain a vehicle data packet.
In one embodiment, the communication layer obtains a display interface corresponding to the vehicle data packet according to the vehicle data packet, including:
and the communication layer acquires a prestored display interface corresponding to the display interface identifier according to the display interface identifier in the vehicle data packet.
In one embodiment, the message processing system creates a display interface and displays information corresponding to the vehicle data according to the vehicle data packet and the display interface, including:
creating a corresponding display interface according to the display interface;
and filling the vehicle data into the display interface according to a preset data filling rule and displaying the vehicle data.
In one embodiment, the method further comprises:
if the vehicle data are non-display data, judging that the vehicle data do not meet preset conditions;
and when the vehicle data do not meet the preset conditions, the diagnosis software diagnoses the vehicle to be diagnosed according to the vehicle data.
In one embodiment, when the communication layer communicates the vehicle data packet with the display interface, the communication layer transmits the vehicle data packet to the message processing system through the shared memory, including:
the communication layer sends a display instruction to the message processing system, and caches the vehicle data packet and the display interface into the shared memory area;
and when the message processing system receives the display instruction, the vehicle data packet and the display interface are read from the shared memory area.
In a second aspect, an embodiment of the present application provides an information interaction device, including:
the message processing system is used for creating a shared memory area when the client is detected to be started, and transmitting a demand instruction sent by a user to the diagnostic software through the shared memory when the demand instruction is received;
and the diagnosis software is used for executing a corresponding diagnosis program according to the demand instruction.
In one embodiment, the information interaction device further comprises a communication layer preset in association with the diagnostic software;
the message processing system is specifically configured to: when receiving a demand instruction sent by a user, transmitting the demand instruction to the communication layer through the shared memory;
the communication layer is further used for analyzing the demand instruction into a target instruction; the target instruction is an instruction matched with a data format corresponding to the diagnostic software; and passing the target instruction to the diagnostic software.
In one embodiment, the diagnostic software is further configured to, when receiving vehicle data sent by a vehicle to be diagnosed, perform data encapsulation on the vehicle data if the vehicle data meets a preset condition, obtain a vehicle data packet, and send the vehicle data packet to the communication layer;
the communication layer is further configured to obtain a display interface corresponding to the vehicle data packet according to the vehicle data packet, and transmit the vehicle data packet and the display interface to the message processing system through the shared memory;
the message processing system is also used for creating a display interface and displaying information corresponding to the vehicle data according to the vehicle data packet and the display interface.
In one embodiment, the diagnostic software is specifically further configured to: if the type of the vehicle data is the display data type, judging that the vehicle data meets the preset condition, and acquiring a display interface identifier corresponding to the vehicle data; and carrying out data encapsulation on the display interface identifier and the vehicle data to obtain a vehicle data packet.
In one embodiment, the communication layer is specifically further configured to: and acquiring a prestored display interface corresponding to the display interface identifier according to the display interface identifier in the vehicle data packet.
In one embodiment, the message processing system is specifically further configured to: creating a corresponding display interface according to the display interface; and filling the vehicle data into the display interface according to a preset data filling rule and displaying the vehicle data.
In one embodiment, the diagnostic software is specifically further configured to: when vehicle data sent by a vehicle to be diagnosed is received, if the vehicle data is non-display data, judging that the vehicle data does not meet preset conditions; and when the vehicle data do not meet the preset conditions, the diagnosis software diagnoses the vehicle to be diagnosed according to the vehicle data.
In one embodiment, the communication layer is specifically further configured to: sending a display instruction to the message processing system, and caching the vehicle data packet and the display interface into the shared memory area;
the message processing system is specifically further configured to: and when the display instruction is received, reading the vehicle data packet and the display interface from the shared memory area.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the information interaction method described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, where the computer program implements the steps of the information interaction method described above when executed by a processor.
In a fifth aspect, embodiments of the present application provide a computer program product for causing an electronic device to perform the steps of the above-described information interaction method when the computer program product is run on the electronic device.
Compared with the prior art, the embodiment of the application has the beneficial effects that: by creating the shared memory area, when receiving a demand instruction sent by a user, the embodiment of the application transmits the demand instruction to diagnostic software through the shared memory. Because the information interaction is realized by creating the shared memory, the information interaction efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic structural diagram of an application scenario of an information interaction method according to an embodiment of the present application;
FIG. 2 is a flow chart of an information interaction method according to an embodiment of the present disclosure;
fig. 3 is a flow chart of an information interaction method according to another embodiment of the present application;
fig. 4 is a flow chart of an information interaction method according to another embodiment of the present application;
FIG. 5 is a schematic diagram of a data format of a data packet according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an information interaction device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The information interaction method provided by the embodiment of the application can be applied to a client for loading diagnostic software, wherein the client can be a tablet personal computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), a mobile phone, a server or other various terminal devices capable of performing data processing, the client can be in communication connection with a vehicle to be diagnosed through diagnostic equipment, for example, the diagnostic equipment is the physical connection between the client and the vehicle, one end of the diagnostic equipment is connected with the vehicle through a vehicle-mounted OBD interface, and the other end of the diagnostic equipment is connected with the PC client through USB or WIFI.
The embodiments of the present application do not set any limit to the specific type of device.
In order to illustrate the technical solutions described in the present application, the following description is made by means of specific examples.
In an application scenario, please refer to fig. 1, which shows a schematic structural diagram of an application scenario of an information interaction method provided in an embodiment of the present application, where the information interaction method is applied to a client, and the client 1 includes loaded 10 diagnostic software, a communication layer 20 preset in association with the diagnostic software, and a message processing system 30, where the client may be communicatively connected to a vehicle 3 to be diagnosed through a diagnostic device 2, for example, the diagnostic device is a physical connection between the client and the vehicle, one end of the diagnostic device is connected to the vehicle through a vehicle-mounted OBD interface, and the other end of the diagnostic device is connected to the PC client through a USB or WIFI. The communication layer may be understood as a preset communication interface associated with the diagnostic software, through which the diagnostic software implements information interaction with the client, and the message processing system includes a message driver in the client, where the message driver may implement information interaction between the client operating system and an application in the client through a message driver mechanism, for example, when a user presses a keyboard or other operation input or sends a message on the client by clicking a screen on the client, and when the message processing system receives or obtains a message, the message is sent to a corresponding application (for example, the application may be the loaded diagnostic software).
As shown in fig. 2, the information interaction method includes:
step S101, when the client is detected to be started, creating a shared memory area.
Specifically, when the client is detected to be started, a shared memory area is created, and the shared memory area can be used for accessing the same logic memory for two unrelated processes, so that the shared memory can efficiently share and transfer data between the two running processes.
In one embodiment, the shared memory area is a shared memory area corresponding to the communication layer and the message processing system of the client. The detection of the client activation may be detected by a message processing system, a communication layer or other processing system in the client. When a message of a user-initiated client is detected, a shared memory area is created for the message processing system and the communication layer, the shared memory area being used for caching a common area of data for the message processing system and the communication layer. The shared memory area is created for the message processing system and the communication layer, and the program command for creating the shared memory can be added in advance in other processing processes in the message processing system, the communication layer or the client side, so that the shared memory area can be created by the message processing system, the communication layer or the other processing processes in the client side.
Step S102, when the message processing system receives a demand instruction sent by a user, the demand instruction is transmitted to diagnostic software through the shared memory.
Specifically, the received demand instructions may be transferred to the diagnostic software via a shared memory technique, thereby enabling efficient sharing and transfer of data.
In one embodiment, as shown in FIG. 3, a client includes loaded diagnostic software, a communication layer preset in association with the diagnostic software, and a message processing system; the shared memory area is the shared memory area corresponding to the communication layer and the message processing system of the client; the step S102 includes steps S1021 to S1023;
in step S1021, when the message processing system receives a demand instruction sent by a user, the demand instruction is transferred to the communication layer through the shared memory.
Specifically, the user sends the demand instruction to the client, and inputs the demand instruction on the display interface or presses a corresponding preset instruction key, etc., so that the message driver drives the demand instruction as a message when the detection element of the client detects the demand instruction input by the user because the user operates on the hardware of the client. The transferring the demand instruction to the communication layer through the shared memory may be: and transmitting the demand instruction to the communication layer in a mode of sharing the memory.
Step S1022, the communication layer parses the demand instruction into a target instruction; the target instruction is an instruction matched with a data format corresponding to the diagnostic software.
Specifically, when the communication layer receives the demand instruction, the demand instruction is only an instruction for informing what operation is executed at the client, if a specific position is clicked, the communication layer obtains associated display information corresponding to the position, if the associated display information corresponding to the position is a preset icon for obtaining a vehicle fault code, the demand instruction is analyzed to be a demand instruction for obtaining the vehicle fault code, and the demand instruction is analyzed to be a target instruction according to a diagnostic protocol of diagnostic software corresponding to a preset data format requirement. Therefore, the diagnostic software does not need to increase related programs for analyzing instructions of the client, if new interactive instructions or functions between the diagnostic software and a user need to be increased, only the analysis programs corresponding to the instructions or functions need to be increased in the communication layer, and the diagnostic programs in the diagnostic software do not need to be changed, so that the development difficulty of the newly-increased interactive instructions or functions can be reduced, and the development efficiency is improved.
In step S1023, the communication layer passes the target instruction to the diagnostic software.
Specifically, after parsing the demand instruction into a target instruction, the communication layer sends the target instruction to the diagnostic software.
Step S103, the diagnostic software executes a corresponding diagnostic program according to the demand instruction.
Specifically, after the diagnostic software receives the demand instruction, executing a diagnostic program corresponding to the demand instruction, and if the demand instruction corresponds to the fault code acquisition instruction, executing the vehicle fault code acquisition program for acquiring the vehicle to be diagnosed sends a request instruction for acquiring the fault code to the vehicle to be diagnosed.
In an embodiment, the demand instruction may be a demand instruction parsed by the communication layer, that is, the target instruction. After receiving the target instruction, the diagnostic software executes a corresponding diagnostic program in the diagnostic software according to the requirement of the target instruction.
By creating the shared memory area, when receiving a demand instruction sent by a user, the embodiment of the application transmits the demand instruction to diagnostic software through the shared memory. Because the information interaction is realized by creating the shared memory, the information interaction efficiency can be improved.
In one embodiment, as shown in fig. 4, the method further comprises:
step S201, when the diagnostic software receives the vehicle data sent by the vehicle to be diagnosed, if the vehicle data meets the preset condition, the vehicle data is subjected to data encapsulation, and a vehicle data packet is obtained.
Specifically, when the vehicle to be diagnosed sends a corresponding instruction for acquiring the vehicle data in the process of executing the diagnostic program according to the diagnostic software, the vehicle to be diagnosed sends the vehicle data to the diagnostic software, or the vehicle to be diagnosed actively sends the vehicle data to the diagnostic software. When the diagnostic software receives vehicle data sent by a vehicle to be diagnosed, detecting that the vehicle data meets a preset condition can be that the vehicle data is analyzed to be data needing to be displayed, adding display identification information needed for displaying the vehicle data, forming a group of data packets with the vehicle data, and sending the data packets to a communication layer. Different display interface identification information is stored in diagnostic software in advance according to the type of vehicle data. Display interface identification information is also stored in the communication layer, and display interface information associated with the display interface identification information is stored.
In one embodiment, if the vehicle data meets the preset condition, data packaging is performed on the vehicle data to obtain a vehicle data packet, including: if the type of the vehicle data is the display data type, judging that the vehicle data meets the preset condition, and acquiring a display interface identifier corresponding to the vehicle data; and carrying out data encapsulation on the display interface identifier and the vehicle data to obtain a vehicle data packet.
Specifically, if the vehicle data is the vehicle data returned based on the display instruction, the vehicle data includes the display instruction, or the vehicle data is preset display data, the type of the vehicle data is determined to be the display data type. And if the type of the vehicle data is the display data type, judging that the vehicle data meets the preset condition.
In one embodiment, the data packaging the display interface identifier and the vehicle data may be: adding the length of the header, the type of the displayed interface and the effective data length for displaying the data; wherein, the data in the header length is used for distinguishing the use of the data packet, for example, the data in the header length is used for displaying an interface; the data in the interface type is used for indicating the interface type associated with the data packet and the data required by interface display; the data in the data length is used for indicating the valid data length in the data packet and is used for acquiring valid data. As shown in fig. 5, a data format of a data packet is preset.
In one embodiment, after the diagnostic software receives the vehicle data sent by the vehicle to be diagnosed, the method further comprises: if the vehicle data are non-display data, judging that the vehicle data do not meet preset conditions; and when the vehicle data do not meet the preset conditions, the diagnosis software diagnoses the vehicle to be diagnosed according to the vehicle data.
Specifically, when the vehicle data does not meet the preset condition, the diagnosis software diagnoses the vehicle to be diagnosed according to the vehicle data. And if the diagnosis result data obtained after the diagnosis of the vehicle data is the data to be displayed, the diagnosis result data is subjected to data encapsulation to obtain a vehicle data packet, and the step S202 and the subsequent steps are executed.
In step S202, the diagnostic software sends the vehicle data packet to the communication layer.
In step S203, the communication layer obtains a display interface corresponding to the vehicle data packet according to the vehicle data packet.
Specifically, the communication layer receives the vehicle data packet, analyzes and obtains the display interface identifier corresponding to the vehicle data packet, and obtains corresponding display interface information according to the display interface identifier, namely, the communication layer can know how to display the vehicle data.
In one embodiment, the communication layer obtains a display interface corresponding to the vehicle data packet according to the vehicle data packet, including: and the communication layer acquires a prestored display interface corresponding to the display interface identifier according to the display interface identifier in the vehicle data packet.
Specifically, different types of display interface identifiers and corresponding display interfaces are preset, so that the corresponding display interfaces can be obtained according to the display interface identifiers.
In step S204, the communication layer transmits the vehicle data packet and the display interface to the message processing system through the shared memory.
Specifically, the communication layer transmits the vehicle data packet and the display interface to the message processing system in the mode of the shared memory.
In one embodiment, when the communication layer communicates the vehicle data packet with the display interface, the communication layer transmits the vehicle data packet to the message processing system through the shared memory, including: the communication layer sends a display instruction to the message processing system, and caches the vehicle data packet and the display interface into the shared memory area; and when the message processing system receives the display instruction, the vehicle data packet and the display interface are read from the shared memory area.
Specifically, both the communication layer and the message processing system cache the data in the shared content, and directly read the data from the shared memory, so that the efficiency of information interaction can be improved.
In step S205, the message processing system creates a display interface according to the vehicle data packet and the display interface, and displays information corresponding to the vehicle data.
Specifically, the message processing system fills corresponding vehicle data in the display interface according to the vehicle data packet and the display interface and displays the corresponding vehicle data, so that the client can manufacture and display the corresponding diagnosis interface.
In one embodiment, the message processing system creates a display interface and displays information corresponding to the vehicle data according to the vehicle data packet and the display interface, including: creating a corresponding display interface according to the display interface; and filling the vehicle data into the display interface according to a preset data filling rule and displaying the vehicle data. Creating a corresponding display interface, and filling effective vehicle data in a vehicle data packet into a corresponding area of the display interface for display according to a preset data filling rule corresponding to the display interface.
According to the method, the communication layer acquires the display interface corresponding to the vehicle data packet, the vehicle data packet and the display interface are transmitted to the message processing system through the shared memory, and the message processing system creates the display interface and displays information corresponding to the vehicle data according to the vehicle data packet and the display interface. Because the diagnostic software does not need to increase the program of how the display interface is displayed, if a new display interface needs to be added or an existing display interface needs to be changed, only the corresponding display interface program needs to be added or the original display interface program needs to be changed in the communication layer, and the diagnostic program in the diagnostic software does not need to be changed, for example, only the display interface identifier and the corresponding display data format need to be sent to the diagnostic software for storage in the newly added display interface, so that the development difficulty of the newly added display interface can be reduced, and the development efficiency is improved.
Fig. 6 shows a block diagram of an information interaction device according to an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 6, the information interaction device 600 includes:
the message processing system 600 is configured to create a shared memory area when a client start is detected; when receiving a demand instruction sent by a user, transmitting the demand instruction to diagnostic software through the shared memory;
diagnostic software 603 for executing a corresponding diagnostic program according to the demand instruction.
In one embodiment, the information interaction device further comprises a communication layer 602 preset in association with the diagnostic software;
the message processing system is specifically configured to: when receiving a demand instruction sent by a user, transmitting the demand instruction to the communication layer through the shared memory;
the communication layer 602 is further configured to parse the demand instruction into a target instruction; the target instruction is an instruction matched with a data format corresponding to the diagnostic software; and passing the target instruction to the diagnostic software.
In one embodiment, the diagnostic software is further configured to, when receiving vehicle data sent by a vehicle to be diagnosed, perform data encapsulation on the vehicle data if the vehicle data meets a preset condition, obtain a vehicle data packet, and send the vehicle data packet to the communication layer;
the communication layer is further configured to obtain a display interface corresponding to the vehicle data packet according to the vehicle data packet, and transmit the vehicle data packet and the display interface to the message processing system through the shared memory;
the message processing system is also used for creating a display interface and displaying information corresponding to the vehicle data according to the vehicle data packet and the display interface.
In one embodiment, the diagnostic software is specifically further configured to: if the type of the vehicle data is the display data type, judging that the vehicle data meets the preset condition, and acquiring a display interface identifier corresponding to the vehicle data; and carrying out data encapsulation on the display interface identifier and the vehicle data to obtain a vehicle data packet.
In one embodiment, the communication layer is specifically further configured to: and acquiring a prestored display interface corresponding to the display interface identifier according to the display interface identifier in the vehicle data packet.
In one embodiment, the message processing system is specifically further configured to: creating a corresponding display interface according to the display interface; and filling the vehicle data into the display interface according to a preset data filling rule and displaying the vehicle data.
In one embodiment, the diagnostic software is specifically further configured to: when vehicle data sent by a vehicle to be diagnosed is received, if the vehicle data is non-display data, judging that the vehicle data does not meet preset conditions; and when the vehicle data do not meet the preset conditions, the diagnosis software diagnoses the vehicle to be diagnosed according to the vehicle data.
In one embodiment, the communication layer is specifically further configured to: sending a display instruction to the message processing system, and caching the vehicle data packet and the display interface into the shared memory area;
the message processing system is specifically further configured to: and when the display instruction is received, reading the vehicle data packet and the display interface from the shared memory area.
By creating the shared memory area, when receiving a demand instruction sent by a user, the embodiment of the application transmits the demand instruction to diagnostic software through the shared memory. Because the information interaction is realized by creating the shared memory, the information interaction efficiency can be improved.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 700 includes: a processor 701, a memory 702, and a computer program 703 stored in the memory 702 and executable on the processor 701. The processor 701, when executing the computer program 703, implements the steps of the information interaction method embodiments described above.
The terminal device 700 may be a server, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), a cell phone, or other various terminal devices capable of processing vehicle data. The terminal device 700 may include, but is not limited to, a processor 701, a memory 702. It will be appreciated by those skilled in the art that fig. 7 is merely an example of a terminal device 700 and is not intended to limit the terminal device 700, and may include more or less components than those illustrated, or may combine certain components, or may be different components, e.g., the terminal device 700 may further include input and output devices, network access devices, buses, etc.
The processor 701 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 702 may be an internal storage unit of the terminal device 700, for example, a hard disk or a memory of the terminal device 700. The memory 702 may be an external storage device of the terminal device 700, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided in the terminal device 700. Further, the memory 702 may also include both an internal storage unit and an external storage device of the terminal device 700. The memory 702 is used for storing the computer programs and other programs and data required for the terminal device 700. The memory 702 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the information interaction device may refer to the corresponding process in the foregoing method embodiment, which is not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by means of a computer program for targeting hardware related to instructions, where the computer program may be stored in a computer readable storage medium, and where the computer program, when executed by a processor, may implement the steps of the method embodiments described above. The computer program comprises computer program code, and the computer program code can be in a source code form, an object code form, an executable file or some intermediate form and the like. The computer readable medium may include: any entity or device capable of carrying the computer program code described above, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium described above can be appropriately increased or decreased according to the requirements of the jurisdiction's legislation and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the legislation and the patent practice. The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. An information interaction method, which is applied to a client, the method comprising:
when the client is detected to be started, a shared memory area is created;
when receiving a demand instruction sent by a user, transmitting the demand instruction to diagnostic software through the shared memory;
the diagnostic software executes a corresponding diagnostic program according to the demand instruction;
the method further comprises the steps of:
when the diagnosis software receives vehicle data sent by a vehicle to be diagnosed, if the vehicle data meets preset conditions, the vehicle data is subjected to data encapsulation to obtain a vehicle data packet; if the type of the vehicle data is the display data type, judging that the vehicle data meets a preset condition;
the diagnostic software sends the vehicle data packet to a communication layer;
the communication layer acquires a display interface corresponding to the vehicle data packet according to the vehicle data packet;
the communication layer transmits the vehicle data packet and the display interface to a message processing system through the shared memory;
and the message processing system creates a display interface according to the vehicle data packet and the display interface and displays information corresponding to the vehicle data.
2. The information interaction method according to claim 1, wherein the client comprises a loaded diagnostic software, a communication layer preset in association with the diagnostic software, and a message processing system; the shared memory area is a shared memory area corresponding to the communication layer and the message processing system of the client;
when receiving a demand instruction sent by a user, the method transmits the demand instruction to diagnostic software through the shared memory, and comprises the following steps:
when the message processing system receives a demand instruction sent by a user, the demand instruction is transmitted to the communication layer through the shared memory;
the communication layer analyzes the demand instruction into a target instruction; the target instruction is an instruction matched with a data format corresponding to the diagnostic software;
the communication layer communicates the target instructions to the diagnostic software.
3. The information interaction method according to claim 1, wherein if the vehicle data meets a preset condition, performing data encapsulation on the vehicle data to obtain a vehicle data packet, including:
if the type of the vehicle data is the display data type, judging that the vehicle data meets the preset condition, and acquiring a display interface identifier corresponding to the vehicle data;
and carrying out data encapsulation on the display interface identifier and the vehicle data to obtain a vehicle data packet.
4. The information interaction method according to claim 3, wherein the communication layer obtains a display interface corresponding to the vehicle data packet according to the vehicle data packet, and the method comprises:
and the communication layer acquires a prestored display interface corresponding to the display interface identifier according to the display interface identifier in the vehicle data packet.
5. The information interaction method according to claim 3, wherein the message processing system creates a display interface and displays information corresponding to the vehicle data according to the vehicle data packet and the display interface, and includes:
creating a corresponding display interface according to the display interface;
and filling the vehicle data into the display interface according to a preset data filling rule and displaying the vehicle data.
6. The information interaction method according to claim 3, further comprising, after the diagnostic software receives the vehicle data transmitted from the vehicle to be diagnosed:
if the vehicle data are non-display data, judging that the vehicle data do not meet preset conditions;
and when the vehicle data do not meet the preset conditions, the diagnosis software diagnoses the vehicle to be diagnosed according to the vehicle data.
7. The information interaction method according to any one of claims 3 to 6, wherein when the communication layer transfers the vehicle data packet and the display interface to the message processing system through the shared memory, the method comprises:
the communication layer sends a display instruction to the message processing system, and caches the vehicle data packet and the display interface into the shared memory area;
and when the message processing system receives the display instruction, the vehicle data packet and the display interface are read from the shared memory area.
8. An information interaction device, comprising:
the message processing system is used for creating a shared memory area when the client is detected to be started, and transmitting a demand instruction sent by a user to the diagnostic software through the shared memory when the demand instruction is received;
diagnostic software for executing a corresponding diagnostic program according to the demand instruction;
the diagnosis software is further used for carrying out data encapsulation on the vehicle data to obtain a vehicle data packet if the vehicle data meet preset conditions when the vehicle data sent by the vehicle to be diagnosed are received; if the type of the vehicle data is the display data type, judging that the vehicle data meets a preset condition; and transmitting the vehicle data packet to a communication layer;
the communication layer is further used for acquiring a display interface corresponding to the vehicle data packet according to the vehicle data packet; transmitting the vehicle data packet and the display interface to the message processing system through the shared memory;
the message processing system is also used for creating a display interface and displaying information corresponding to the vehicle data according to the vehicle data packet and the display interface.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
CN202011294002.8A 2020-11-18 2020-11-18 Information interaction method and device and terminal equipment Active CN112445630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011294002.8A CN112445630B (en) 2020-11-18 2020-11-18 Information interaction method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011294002.8A CN112445630B (en) 2020-11-18 2020-11-18 Information interaction method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN112445630A CN112445630A (en) 2021-03-05
CN112445630B true CN112445630B (en) 2023-06-02

Family

ID=74737525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011294002.8A Active CN112445630B (en) 2020-11-18 2020-11-18 Information interaction method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN112445630B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467645B (en) * 2021-09-06 2022-07-29 中汽创智科技有限公司 Vehicle screen control method, device and system and storage medium
CN114967634A (en) * 2021-09-16 2022-08-30 长城汽车股份有限公司 Processor diagnostic device, processor diagnostic method, and electronic apparatus
CN114973447B (en) * 2022-07-21 2022-11-01 深圳市星卡软件技术开发有限公司 Method and device for collecting automobile data and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5363501A (en) * 1992-12-22 1994-11-08 Sony Electronics, Inc. Method for computer system development verification and testing using portable diagnostic/testing programs
US6601183B1 (en) * 1999-09-30 2003-07-29 Silicon Graphics, Inc. Diagnostic system and method for a highly scalable computing system
CN103901874A (en) * 2014-03-03 2014-07-02 深圳市元征科技股份有限公司 Method for graphically displaying fault codes of electronic control system of automobile and system thereof
CN110554937A (en) * 2018-05-31 2019-12-10 奥特润株式会社 Software diagnostic system for vehicle and method of operating the same
CN111708584A (en) * 2020-05-29 2020-09-25 深圳市元征科技股份有限公司 Vehicle diagnosis method and device, diagnosis equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10747597B2 (en) * 2018-12-28 2020-08-18 Beijing Voyager Technology Co., Ltd. Message buffer for communicating information between vehicle components

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5363501A (en) * 1992-12-22 1994-11-08 Sony Electronics, Inc. Method for computer system development verification and testing using portable diagnostic/testing programs
US6601183B1 (en) * 1999-09-30 2003-07-29 Silicon Graphics, Inc. Diagnostic system and method for a highly scalable computing system
CN103901874A (en) * 2014-03-03 2014-07-02 深圳市元征科技股份有限公司 Method for graphically displaying fault codes of electronic control system of automobile and system thereof
CN110554937A (en) * 2018-05-31 2019-12-10 奥特润株式会社 Software diagnostic system for vehicle and method of operating the same
CN111708584A (en) * 2020-05-29 2020-09-25 深圳市元征科技股份有限公司 Vehicle diagnosis method and device, diagnosis equipment and storage medium

Also Published As

Publication number Publication date
CN112445630A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN112445630B (en) Information interaction method and device and terminal equipment
WO2019010686A1 (en) Data processing method and data processing apparatus
CN112099967A (en) Data transmission method, terminal, device, equipment and medium
CN113608483B (en) Method for acquiring vehicle signal value, electronic equipment and electronic control unit
CN109885037B (en) Vehicle diagnosis method and related equipment
CN111538312B (en) Vehicle remote diagnosis method, system, equipment connector and vehicle connector
CN113872967B (en) Vehicle information transmission method and device, electronic equipment and storage medium
CN113359674A (en) Vehicle diagnostic system, method, electronic device, and storage medium
CN113867324A (en) Vehicle diagnosis method, vehicle-mounted device, terminal, and storage medium
CN113703868A (en) Vehicle diagnostic software configuration method, electronic device and readable storage medium
CN105067831A (en) CAN-bus rotating speed sensor and data processing method based on CAN bus
CN111552268B (en) Vehicle remote diagnosis method, equipment connector and vehicle connector
CN113038421A (en) Automobile diagnosis method, automobile diagnosis device and automobile gateway
CN112558584A (en) Diagnostic data acquisition method and device and diagnostic equipment
CN109286689B (en) Information sending method and device and vehicle-mounted man-vehicle interaction terminal
CN111797345B (en) Application page display method, device, computer equipment and storage medium
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN111351669A (en) Fault diagnosis method and device, storage medium and vehicle
CN114338270A (en) Data communication method, device, electronic equipment and storage medium
CN115134186A (en) Data processing method and related equipment
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN111131369B (en) APP use condition transmission method and device, electronic equipment and storage medium
CN117677540A (en) Abnormality detection device, safety system, and abnormality notification method
CN113051077A (en) User request processing method and device, terminal equipment and storage medium
CN113141603B (en) Data communication method, system, master terminal device and slave terminal device

Legal Events

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