METHOD AND APPARATUS FOR CROSS-EXECUTION OF BINARY EMBEDDED SOFTWARE
20200183661 ยท 2020-06-11
Inventors
- Asher Waldfogel (Palo Alto, CA, US)
- Paolo Giusto (Brentwood, CA, US)
- Soheil Samii (Royal Oak, MI, US)
- Prathap Venugopal (Troy, MI, US)
Cpc classification
H04L12/4625
ELECTRICITY
G06F30/331
PHYSICS
G06F9/45504
PHYSICS
H04L12/66
ELECTRICITY
G06F9/455
PHYSICS
International classification
G06F9/455
PHYSICS
Abstract
A vehicle, control system for the vehicle and method of operating the vehicle. The control system includes a target processor, a binary executable program and an instruction set simulator (ISS). The binary executable program is compiled to run on a legacy processor in order to operate the vehicle. The ISS is configured to run on the target processor and emulate operation of the legacy processor. The binary executable program runs on the target processor via the ISS in order to operate the vehicle.
Claims
1. A method of operating a vehicle, comprising: compiling a source code for a software application to obtain a binary executable program for controlling an operation of the vehicle, the binary executable program being operable on a first processor; loading an instruction set simulator (ISS) and the binary executable program onto a second processor, wherein the ISS runs on the second processor and emulates operation of the first processor; and executing the binary executable program via an emulation of the first processor provided by the ISS on the second processor to operate the vehicle.
2. The method of claim 1, wherein the second processor is an embedded processor of the vehicle.
3. The method of claim 1, further comprising configuring the ISS to stub execution of a legacy operation of the binary executable program.
4. The method of claim 1, further comprising loading a software bridge onto the second processor and communicating between the binary executable program and the vehicle through the software bridge.
5. The method of claim 4, further comprising compiling at least one of an operating system and input/output software for operation on the first processor and running the at least one of the operating system and the input/output software on the second processor via the ISS and the software bridge.
6. The method of claim 4, wherein the software bridge is configured to receive to a first gateway command for a first interface from the binary executable program and implement a second gateway command for a second interface in place of the first interface to communicate to a component of the vehicle.
7. The method of claim 1, further comprising communicating between the binary executable program on the second processor and a software application running on a third processor.
8. A control system for a vehicle, comprising: a target processor; a binary executable program compiled to run on a legacy processor in order to operate the vehicle; and an instruction set simulator (ISS) configured to run on the target processor and emulate operation of the legacy processor, wherein the binary executable program runs on the target processor via the emulation of the legacy processor provided by the ISS in order to operate the vehicle.
9. The control system of claim 8, wherein the target processor is an embedded processor of the vehicle.
10. The control system of claim 8, wherein the ISS is configured to perform host execution of a legacy operation of the binary executable program.
11. The control system of claim 8, further comprising a software bridge configured to run on the target processor, wherein the binary executable program interfaces with the vehicle through the software bridge.
12. The control system of claim 11, wherein the ISS and the software bridge are compiled to operate on the target processor.
13. The control system of claim 11, wherein the software bridge is configured to receive a first gateway command for a first interface from the binary executable program and implement a second gateway command for a second interface in place of the first interface to communicate to a component of the vehicle.
14. The control system of claim 8, further comprising another processor in communication with the target processor, wherein the binary executable program running on the target processor communicates with a new software application running on the other processor.
15. A vehicle, comprising: a target processor; a binary executable program compiled to operate on a legacy processor in order to control and operation of the vehicle; and an instruction set simulator (ISS) configured to run on the target processor and emulate operation of the legacy processor, wherein the binary executable program runs on the target processor via the emulation of the legacy processor provided by the ISS in order to operate the vehicle.
16. The vehicle of claim 15, wherein the target processor is an embedded processor of the vehicle.
17. The vehicle of claim 15, wherein the ISS is configured to perform host execution of a legacy operation of the binary executable program.
18. The vehicle of claim 15, further comprising a software bridge configured to run on the target processor, wherein the binary executable program interfaces with the vehicle through the software bridge.
19. The vehicle of claim 18, wherein the ISS and the software bridge are compiled to operate on the target processor.
20. The vehicle of claim 18, wherein the software bridge is configured to receive a first gateway command for a first interface from the binary executable program and implement a second gateway command for a second interface in place of the first interface to communicate to a component of the vehicle.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Other features, advantages and details appear, by way of example only, in the following detailed description, the detailed description referring to the drawings in which:
[0011]
[0012]
[0013]
[0014]
DETAILED DESCRIPTION
[0015] The following description is merely exemplary in nature and is not intended to limit the present disclosure, its application or uses. It should be understood that throughout the drawings, corresponding reference numerals indicate like or corresponding parts and features.
[0016] In accordance with an exemplary embodiment,
[0017]
[0018]
[0019] With the ISS 312 and the software bridge 314 emulating the operation of the first processor 210,
[0020] In various embodiments, the software bridge 314 receives a command from an I/O driver of the input/output software 214 and stubs the I/O driver. The software bridge 314 replaces the command with a new I/O command in order to communicate with components of the vehicle. In particular, the software bridge 314 can receive an I/O or gateway command for communication to the electronic equipment via a network of the vehicle 100 that uses a legacy protocol. In an embodiment, where the network of the vehicle 100 has been upgraded, the software bridge 314 wraps the legacy protocol command within the protocol for the upgraded network, in order to send the I/O or gateway commend over the upgraded network. In various embodiments, the upgraded network is Ethernet network using an Ethernet communication protocol. Therefore, the operating system 212, input/output software 214, and applications can be operated on the second processor 310 without the need to be recompiled or redesigned.
[0021] As shown in
[0022]
[0023] Returning to box 406, when a software bridge is to be added, the method proceeds to box 408. At box 408, the software bridge is implemented on the target processor in order to be able to execute I/O gateway functionality from the legacy I/O interface to a new communication interface, such as Ethernet for example. In box 410, the software bridge is compiled to the target processor. Then in box 412, the control unit is operated by running the binary executable file on the target processor via the ISS and the software bridge.
[0024] While the above disclosure has been described with reference to exemplary embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from its scope. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the disclosure without departing from the essential scope thereof. Therefore, it is intended that the present disclosure not be limited to the particular embodiments disclosed, but will include all embodiments falling within the scope thereof.