CN112540825A - Data receiving and transmitting method and system for diagnostic software in virtual machine - Google Patents
Data receiving and transmitting method and system for diagnostic software in virtual machine Download PDFInfo
- Publication number
- CN112540825A CN112540825A CN202011398684.7A CN202011398684A CN112540825A CN 112540825 A CN112540825 A CN 112540825A CN 202011398684 A CN202011398684 A CN 202011398684A CN 112540825 A CN112540825 A CN 112540825A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- data
- diagnostic software
- operating system
- software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000004891 communication Methods 0.000 claims abstract description 27
- 230000005540 biological transmission Effects 0.000 claims description 12
- 230000003044 adaptive effect Effects 0.000 claims description 2
- 230000003993 interaction Effects 0.000 abstract description 5
- 238000012546 transfer Methods 0.000 abstract description 2
- 238000003745 diagnosis Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45591—Monitoring or debugging support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a data receiving and sending method and system of diagnostic software in a virtual machine, which utilize a hardware driver with a network interface in the virtual machine, so that the diagnostic software in the virtual machine can identify the network interface of an upper computer, further perform data interaction with a cloud, and perform data transfer through the cloud, so as to realize data sending and receiving of the diagnostic software in the virtual machine, and a complex hardware driver does not need to be developed for a communication module of the virtual machine aiming at the upper computer, so that the efficiency is improved, the cost is saved, and the flexibility is higher.
Description
Technical Field
The invention belongs to the technical field of vehicle diagnosis, and particularly relates to a data receiving and transmitting method and a data receiving and transmitting system for diagnostic software in a virtual machine.
Background
The vehicle diagnosis equipment is usually composed of an upper computer and a lower computer VCI, wherein the upper computer is used for receiving instructions input by a user, and the type of the upper computer is a mobile phone, a tablet or a PC terminal. In order to realize diversification of diagnostic equipment and convenience of after-sales maintenance, a user can use vehicle diagnostic software developed under another operating system in an operating system of an upper computer by adopting a virtual machine mode, for example, a WINDOWS virtual machine is installed in an android system of a mobile phone, vehicle diagnostic software with a running environment of the WINDOWS system is installed in the WINDOWS virtual machine, or an android virtual machine is installed in the WINDOWS system of a computer, and vehicle diagnostic software with a running environment of the android system is installed in the android virtual machine.
The upper computer usually communicates with the lower computer through a communication module (such as a USB module or a bluetooth module) of the upper computer to send data sent by the diagnostic software to the ECU, or send data fed back by the ECU to the diagnostic software, but to implement data interaction between the vehicle diagnostic software in the virtual machine and the communication module of the upper computer, that is, the vehicle diagnostic software directly sends data to the communication module, or receives data from the communication module, a set of complex hardware drivers needs to be developed for the vehicle diagnostic software in the virtual machine to identify the communication module of the upper computer, and the development process of the hardware drivers is very complex, time-consuming, labor-consuming and inefficient.
Disclosure of Invention
In view of the above, a data transmission/reception method and system for diagnostic software in a virtual machine are provided.
In order to solve the technical problems, the invention adopts the following technical scheme:
in one aspect, a data transmission method for diagnostic software in a virtual machine is provided, including:
converting data sent by diagnosis software into network data through a virtual machine, wherein the virtual machine is installed in an operating system of an upper computer, and the diagnosis software is installed in the virtual machine;
sending the network data to a cloud end through a network interface of the upper computer by the virtual machine;
receiving, by the operating system, network data from the cloud via the network interface;
converting the network data into communication data adapted to a lower computer through the operating system;
and sending the communication data to the lower computer through the operating system.
In still another aspect, a data transmission system of diagnostic software in a virtual machine is provided, which includes a storage module including instructions loaded and executed by a processor, and when executed, the instructions cause the processor to execute the above data transmission method of diagnostic software in a virtual machine.
In another aspect, a data receiving method of diagnostic software in a virtual machine is provided, including:
receiving communication data from a lower computer through an operating system of an upper computer, wherein the virtual machine is installed in the operating system, and the diagnosis software is installed in the virtual machine;
converting, by the operating system, the communication data into network data;
sending the network data to a cloud end through a network interface of the upper computer by the operating system;
receiving, by the virtual machine, network data from the cloud via the network interface;
and converting the network data into data adaptive to the diagnostic software through the virtual machine, and sending the data to the diagnostic software.
In still another aspect, a data receiving system of diagnostic software in a virtual machine is provided, which includes a storage module including instructions loaded and executed by a processor, and when executed, the instructions cause the processor to execute the data receiving method of diagnostic software in a virtual machine.
In another aspect, a data transceiving method for diagnostic software in a virtual machine is provided, which includes the above data transmitting method for diagnostic software in a virtual machine and the above data receiving method for diagnostic software in a virtual machine.
In still another aspect, a data transceiving system of diagnostic software in a virtual machine is provided, which includes a storage module including instructions loaded and executed by a processor, and when executed, the instructions cause the processor to perform the above data transceiving method of diagnostic software in a virtual machine.
According to the method, the hardware driver which usually has a network interface in the virtual machine is utilized, so that the diagnostic software in the virtual machine can identify the network interface of the upper computer, further perform data interaction with the cloud, transfer data through the cloud, and send and receive data of the diagnostic software in the virtual machine, the complex hardware driver does not need to be developed for a communication module of the virtual machine aiming at the upper computer, the efficiency is improved, the cost is saved, and the flexibility is higher.
Drawings
The invention is described in detail below with reference to the following figures and detailed description:
FIG. 1 is a flow chart of a method for sending data of diagnostic software in a virtual machine according to the present invention;
FIG. 2 is a flow chart of a data receiving method of diagnostic software in a virtual machine according to the present invention;
fig. 3 is a schematic structural diagram of the present invention.
Detailed Description
As shown in fig. 1, an embodiment of the present specification provides a data transmission method for diagnostic software in a virtual machine, including:
and S111, converting the data sent by the diagnosis software into network data through the virtual machine.
The virtual machine is installed in an operating system of the upper computer, the diagnosis software is installed in the virtual machine, and the data can be a diagnosis command.
And S112, sending the network data to a cloud end through the virtual machine through a network interface of the upper computer.
In step S111, the data sent by the diagnostic software is generally in a protocol format defined by a diagnostic instrument manufacturer, such as a J2534 or RP1210 protocol format, and the cloud receives the data in the specified protocol format, converts the data into network data, and sends the network data to the upper computer.
And S113, receiving network data from the cloud through the network interface by the operating system.
And S114, converting the network data into communication data adapted to the lower computer through the operating system.
And S115, sending the communication data to a lower computer through the operating system.
In one embodiment, the virtual machine is an android virtual machine, the operating system is a windows operating system, and in steps S114 and S115, the communication data is USB data or bluetooth data.
In another embodiment, the virtual machine is a windows virtual machine, the operating system is an android operating system, and in steps S114 and S115, the communication data is USB data or bluetooth data.
As shown, the upper computer 110 and the lower computer 120 constitute a vehicle diagnosis apparatus, and are typically connected by USB or bluetooth.
It should be noted that, a hardware driver of a network interface is usually provided in the virtual machine itself, that is, the diagnostic software in the virtual machine can identify the network interface of the upper computer, and then perform data interaction with the cloud.
Based on the same inventive concept, the present specification further provides a data transmission system of diagnostic software in a virtual machine, including a storage module, where the storage module includes instructions loaded and executed by a processor, and when executed, the instructions cause the processor to execute the steps according to the various exemplary embodiments of the present invention described in the data transmission method section of the diagnostic software in the virtual machine described above in the present specification.
As shown in fig. 2, an embodiment of the present specification provides a data receiving method for diagnostic software in a virtual machine, including:
and S121, receiving communication data from the lower computer through an operating system of the upper computer.
As shown in fig. 3, after the diagnosis command sent by the diagnosis software is sent to the ECU by the lower computer, the ECU feeds back data to the lower computer, and the lower computer needs to send the fed-back data to the diagnosis software.
The virtual machine is installed in an operating system of the upper computer, and the diagnosis software is installed in the virtual machine.
And S122, converting the communication data into network data through the operating system.
And S123, sending the network data to a cloud terminal through the network interface of the upper computer by the operating system.
And after the cloud receives the communication data, the communication data is converted into network data and sent to the upper computer.
And S124, receiving network data from the cloud end through the virtual machine through the network interface.
And S125, converting the network data into data (data in a protocol format defined by a diagnostic instrument manufacturer, such as data in a J2534 or RP1210 protocol format) matched with the diagnostic software through the virtual machine, and sending the data to the diagnostic software.
In one embodiment, the virtual machine is an android virtual machine, the operating system is a windows operating system, and in steps S114 and S115, the communication data is USB data or bluetooth data.
In another embodiment, the virtual machine is a windows virtual machine, the operating system is an android operating system, and in steps S114 and S115, the communication data is USB data or bluetooth data.
As shown, the upper computer 110 and the lower computer 120 constitute a vehicle diagnosis apparatus, and are typically connected by USB or bluetooth.
It should be noted that, a hardware driver of a network interface is usually provided in the virtual machine itself, that is, the diagnostic software in the virtual machine can identify the network interface of the upper computer, and then perform data interaction with the cloud.
Based on the same inventive concept, the embodiment of the present specification further provides a data receiving system of diagnostic software in a virtual machine, which includes a storage module, where the storage module includes instructions loaded and executed by a processor, and when executed, the instructions cause the processor to execute the steps according to the various exemplary embodiments of the present invention described in the data receiving method section of the diagnostic software in the virtual machine described above in the present specification.
Based on the same inventive concept, the embodiments of the present specification further provide a data transceiving method for diagnostic software in a virtual machine, where the method includes steps according to various exemplary embodiments of the present invention described in the data transmitting method section of the diagnostic software in the virtual machine of the present specification and steps according to various exemplary embodiments of the present invention described in the data receiving method section of the diagnostic software in the virtual machine of the present specification.
Based on the same inventive concept, the present specification also provides a data transceiving system of diagnostic software in a virtual machine, which includes a storage module, where the storage module includes instructions loaded and executed by a processor, and when the instructions are executed, the processor executes the data transceiving method of the diagnostic software in the virtual machine according to the present specification.
The memory module in this specification may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM) and/or a cache memory unit, and may further include a read only memory unit (ROM).
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
However, those skilled in the art should realize that the above embodiments are illustrative only and not limiting to the present invention, and that changes and modifications to the above described embodiments are intended to fall within the scope of the appended claims, provided they fall within the true spirit of the present invention.
Claims (10)
1. A data transmission method of diagnostic software in a virtual machine is characterized by comprising the following steps:
converting data sent by diagnosis software into network data through a virtual machine, wherein the virtual machine is installed in an operating system of an upper computer, and the diagnosis software is installed in the virtual machine;
sending the network data to a cloud end through a network interface of the upper computer by the virtual machine;
receiving, by the operating system, network data from the cloud via the network interface;
converting the network data into communication data adapted to a lower computer through the operating system;
and sending the communication data to the lower computer through the operating system.
2. The method according to claim 1, wherein the virtual machine is an android virtual machine, and the operating system is a windows operating system;
or, the virtual machine is a windows virtual machine, and the operating system is an android operating system.
3. The method as claimed in claim 2, wherein the communication data is USB data or bluetooth data.
4. A data transmission system of diagnostic software in a virtual machine, comprising a storage module including instructions loaded and executed by a processor, the instructions when executed causing the processor to execute a data transmission method of diagnostic software in a virtual machine according to any one of claims 1-4.
5. A data receiving method of diagnostic software in a virtual machine is characterized by comprising the following steps:
receiving communication data from a lower computer through an operating system of an upper computer, wherein the virtual machine is installed in the operating system, and the diagnosis software is installed in the virtual machine;
converting, by the operating system, the communication data into network data;
sending the network data to a cloud end through a network interface of the upper computer by the operating system;
receiving, by the virtual machine, network data from the cloud via the network interface;
and converting the network data into data adaptive to the diagnostic software through the virtual machine, and sending the data to the diagnostic software.
6. The method for receiving data of diagnostic software in a virtual machine according to claim 5, wherein the virtual machine is an android virtual machine, and the operating system is a windows operating system;
or, the virtual machine is a windows virtual machine, and the operating system is an android operating system.
7. The data receiving method of diagnostic software in a virtual machine according to claim 6, wherein the communication data is USB data or bluetooth data.
8. A data reception system for diagnostic software in a virtual machine, comprising a storage module including instructions loaded and executed by a processor, the instructions when executed causing the processor to perform a data reception method for diagnostic software in a virtual machine according to any one of claims 5 to 7.
9. A data transmission and reception method of diagnostic software in a virtual machine, comprising the data transmission method of diagnostic software in a virtual machine according to any one of claims 1 to 4 and the data reception method of diagnostic software in a virtual machine according to any one of claims 5 to 7.
10. A data transceiving system of diagnostic software in a virtual machine, comprising a storage module including instructions loaded and executed by a processor, the instructions when executed causing the processor to perform a data transceiving method of diagnostic software in a virtual machine according to claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011398684.7A CN112540825A (en) | 2020-12-02 | 2020-12-02 | Data receiving and transmitting method and system for diagnostic software in virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011398684.7A CN112540825A (en) | 2020-12-02 | 2020-12-02 | Data receiving and transmitting method and system for diagnostic software in virtual machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112540825A true CN112540825A (en) | 2021-03-23 |
Family
ID=75015649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011398684.7A Pending CN112540825A (en) | 2020-12-02 | 2020-12-02 | Data receiving and transmitting method and system for diagnostic software in virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112540825A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113419515A (en) * | 2021-06-22 | 2021-09-21 | 上海星融汽车科技有限公司 | Master-slave mode switching method, electronic equipment and vehicle diagnostic instrument |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104698978A (en) * | 2015-03-17 | 2015-06-10 | 华中科技大学 | Numerical control system remote monitoring and debugging method based on virtualization technology |
CN107526353A (en) * | 2017-09-15 | 2017-12-29 | 杜明生 | A kind of automotive diagnostic system and method |
CN110244691A (en) * | 2019-06-19 | 2019-09-17 | 深圳市道通科技股份有限公司 | A kind of vehicle diagnosis method, apparatus and system |
-
2020
- 2020-12-02 CN CN202011398684.7A patent/CN112540825A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104698978A (en) * | 2015-03-17 | 2015-06-10 | 华中科技大学 | Numerical control system remote monitoring and debugging method based on virtualization technology |
CN107526353A (en) * | 2017-09-15 | 2017-12-29 | 杜明生 | A kind of automotive diagnostic system and method |
CN110244691A (en) * | 2019-06-19 | 2019-09-17 | 深圳市道通科技股份有限公司 | A kind of vehicle diagnosis method, apparatus and system |
Non-Patent Citations (1)
Title |
---|
乔美昀: "基于Android平台的汽车故障诊断系统设计", 《装备制造技术》, no. 08, 15 August 2018 (2018-08-15), pages 60 - 65 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113419515A (en) * | 2021-06-22 | 2021-09-21 | 上海星融汽车科技有限公司 | Master-slave mode switching method, electronic equipment and vehicle diagnostic instrument |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6181994B1 (en) | Method and system for vehicle initiated delivery of advanced diagnostics based on the determined need by vehicle | |
CN102404306B (en) | Protocol configuration method and device | |
EP2372603A1 (en) | Appliance including a radio frequency identification (RFID) device and method for two-way communication of dynamic data by the appliance via the RFID device | |
CN101977275A (en) | Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof | |
US20150025733A1 (en) | Vehicle control device and method | |
JP2009517766A (en) | Integrated mobile diagnostics and electronic customer care test script in browser | |
CN109669787B (en) | Data transmission method and device, storage medium and electronic equipment | |
CN112540825A (en) | Data receiving and transmitting method and system for diagnostic software in virtual machine | |
CN104461978B (en) | Method and device for unidirectional data transmission | |
EP2037370A2 (en) | Portable communication interface device | |
RU2007131194A (en) | SYSTEM AND METHOD OF SUPPORTING MANY LANGUAGES FOR APPLICATION | |
CN109286689B (en) | Information sending method and device and vehicle-mounted man-vehicle interaction terminal | |
CN115269361A (en) | Software development kit testing method and device and readable storage medium | |
CN106775818B (en) | ECU (electronic control Unit) upgrading method and ECU upgrading equipment based on CAN (controller area network) bus | |
CN111131358B (en) | Information acquisition method, device and system, readable storage medium and electronic equipment | |
CN203754167U (en) | Handheld terminal for elevator debugging and maintenance | |
CN115373367A (en) | Automobile remote diagnosis method, system, diagnostic instrument and terminal equipment | |
CN113438226B (en) | Message generating and analyzing method, device and system based on hybrid transmission protocol | |
CN115827030A (en) | Method and device for upgrading USB firmware of vehicle and vehicle | |
CN115695077A (en) | Bus data receiving method and device, electronic equipment and storage medium | |
CN114880136A (en) | Scanner using method and device, computing equipment and storage medium | |
CN108199918B (en) | Method and system for testing washing machine | |
CN106874030B (en) | Method and device for analyzing and optimizing instructions in application under robot operating system environment | |
CN116594951B (en) | FPGA-based data transmission system and method | |
CN116394762B (en) | Fuel cell vehicle data processing system and method and fuel cell vehicle |
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 |