Method and apparatus for accessing vehicle resource and vehicle controller
View Patent ↗A method for accessing a vehicle resource includes a vehicle controller that receives first data of a vehicle sensor, where the first data is data in a physical format of the vehicle sensor. The vehicle controller converts the first data into second data, where the second data is data in an external message format. The vehicle controller sends the second data to the outside.
1 . A method, comprising:
receiving first data of a vehicle sensor, wherein the first data is in a first physical format of the vehicle sensor;
converting the first data into second data, wherein the second data is in an external message format;
outputting the second data;
receiving third data that is from outside a vehicle and that is in the external message format;
converting the third data into fourth data, wherein the fourth data is in a second physical format of a vehicle actuator; and
sending the fourth data to the vehicle actuator;
wherein converting the first data into the second data comprises a south gateway converting the first data into an intermediate data in an internal message format and a north gateway converting the intermediate data into the second data,
wherein converting the third data into the fourth data comprises the north gateway converting the third data into fifth data in the internal message format and the south gateway converting the fifth data into the fourth data, and
wherein the method enables external access to the vehicle sensor and the vehicle actuator without reconstruction of an original vehicle harness and without introducing a professional test device.
2 . The method of claim 1 , wherein the first physical format is a binary sequence format.
3 . The method of claim 1 , wherein the external message format is a Hypertext Transfer Protocol (HTTP) format.
4 . A vehicle comprising:
a sensor;
an interface coupled to the sensor;
a vehicle controller configured to receive, through the interface, first data of the sensor, wherein the first data is in a first physical format of the sensor; and
a gateway system coupled to the interface and configured to:
convert the first data into second data, wherein the second data is in an external message format;
output the second data;
enable the vehicle controller to receive third data from outside the vehicle, wherein the third data is in the external message format; and
enable the vehicle controller to convert the third data into fourth data, wherein the fourth data is in a second physical format of a vehicle actuator;
wherein the interface is further configured to enable the vehicle controller to send the fourth data to the vehicle actuator,
wherein the gateway system comprises a south gateway and a north gateway that are separated from each other,
wherein the south gateway is configured to convert between the first/second physical formats and an internal message format,
wherein the north gateway is configured to convert between the internal message format and the external message format, and
wherein the gateway system enables external access to the sensor and the actuator without reconstruction of an original vehicle harness and without introducing a professional test device.
5 . The vehicle of claim 4 , wherein the first physical format is a binary sequence format.
6 . The vehicle of claim 4 , wherein the external message format is a Hypertext Transfer Protocol (HTTP) format.
7 . A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by at least one processor, cause an apparatus to:
receive first data of a vehicle sensor, wherein the first data is in a first physical format of the vehicle sensor;
convert the first data into second data, wherein the second data is in an external message format;
output the second data;
receive third data that is from outside a vehicle and that is in the external message format;
convert the third data into fourth data, wherein the fourth data is in a second physical format of a vehicle actuator; and
send the fourth data to the vehicle actuator:
wherein the instructions further cause the apparatus to perform the conversions via a south gateway that handles physical-to-internal and internal-to-physical format conversions and a north gateway that handles internal-to-external and external-to-internal format conversions, and
wherein the conversions enable external access to the vehicle sensor and the vehicle actuator without reconstruction of an original vehicle harness and without introducing a professional test device.
8 . The computer program product of claim 7 , wherein the first physical format is a binary sequence format.
9 . The computer program product of claim 7 , wherein the external message format is a Hypertext Transfer Protocol (HTTP) format.
10 . The computer program product of claim 7 , wherein the external message format is a File Transfer Protocol (FTP) format.
11 . The method of claim 1 , wherein the external message format is a File Transfer Protocol (FTP) format.
12 . The vehicle of claim 7 , wherein the external message format is a File Transfer Protocol (FTP) format.
13 . The vehicle of claim 7 , wherein the external message format is an Extensible Markup Language (XML) format.
14 . The method of claim 1 , wherein the external message format is an Extensible Markup Language (XML) format.
15 . The computer program product of claim 13 , wherein the external message format is an Extensible Markup Language (XML) format.
16 . The computer program product of claim 7 , wherein the second data and the third data are JavaScript object notation (JSon)-based structured data.
17 . The computer program product of claim 7 , wherein the first physical format is a hexadecimal sequence format.
18 . The computer program product of claim 7 , wherein the first physical format is an octal sequence format.
19 . The method of claim 1 , wherein the second data and the third data are JavaScript object notation (JSon-based) structured data.
20 . The vehicle of claim 4 , wherein the second data and the third data are JavaScript object notation (JSon-based) structured data.