Efficient headunit communication integration
View Patent ↗In an example, the mobile device may be configured to determine whether to authorize a request for the vehicle head unit to utilize a resource of the mobile device. The mobile device may be configured to utilize a proxy of the mobile device to establish a connection with a destination in response to determining to authorize the request.
1. A mobile device, comprising:
a processing device configured to:
receive, at the mobile device, a request for a vehicle head unit coupled to the mobile device by at least one of a wire or a short range wireless transmitter;
responsive to receiving the request, determine, based on information about a backend destination of the request, whether to permit the vehicle head unit to utilize a resource of the mobile device, the resource including a long range wireless transmitter of the mobile device;
authorize the request for the vehicle head unit to utilize the resource of the mobile device based on a result of the determination; and
utilize a proxy of the mobile device to establish a connection with the backend destination if the request is authorized.
2. The mobile device of claim 1 , wherein the processing device is further configured to:
validate a requested protocol corresponding to the request; and
authorize the request for the vehicle head unit to utilize the resource of the mobile device based on a result of the determination and the validation.
3. The mobile device of claim 1 , wherein the processing device is further configured to permit a socket to be opened to the backend destination if the request is authorized.
4. The mobile device of claim 1 , wherein the processing device is further configured to transparently proxy a TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) socket to the backend destination on behalf of the vehicle head unit if the request is authorized.
5. The mobile device of claim 1 , wherein utilize the proxy of the mobile device to establish the connection with the backend destination if the request is authorized further comprises proxy data at a TCP or UDP layer.
6. A method, comprising:
receiving, at the mobile device, a request for a vehicle head unit coupled to the mobile device by at least one of a wire or a short range wireless transmitter;
responsive to receiving the request, determining, based on information about a backend destination of the request, whether to permit the vehicle head unit to utilize a resource of the mobile device, the resource including a long range wireless transmitter of the mobile device;
authorizing the request for the vehicle head unit to utilize the resource of the mobile device based on a result of the determination; and
utilizing a proxy of the mobile device to establish a connection with the backend destination if the request is authorized.
7. The method of claim 6 , further comprising:
validating a requested protocol corresponding to the request; and
authorizing the request for the vehicle head unit to utilize the resource of the mobile device based on a result of the determination and the validation.
8. The method of claim 6 , further comprising permitting a socket to be opened to the backend destination if the request is authorized.
9. The method of claim 6 , further comprising transparently proxying a TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) socket to the backend destination on behalf of the vehicle head unit if the request is authorized.
10. The method of claim 6 , wherein utilizing the proxy of the mobile device to establish the connection with the backend destination if the request is authorized further comprises proxying data at a TCP or UDP layer.