Close

Not a member yet?Register now and get started.

lock and key

Sign in to your account.

Account Login

Vehicle Hub

Application type: 
Summary: 

The webinos Vehicle Hub

What is it about?

Based on webinos technology, the webinos Vehicle Hub provides a solution for showing the  OBD-II (On board Diagnostics) vehicle parameters values that can be viewed on the Graphs which is integrated with the webinos dashboard as an interface for managing devices and to register services in the user's personal zone or services that the user's friends provided. The dashboard provides 18 OBD-II parameters lists where we can choose the parameters and set the intervals to see the values accordingly.

Why Webinos?: 

What is so special about webinos vehicle?

The Open Source “webinos” middleware provides a practical solution for in-car application development. Like Chrome OS, Firefox OS and Tizen it is HTML5 based, and indeed largely compatible with these technologies. It differs in that it is not tied to a specific application ecosystem, and comes with a suite of vehicle specific additions, which speed up automotive application development.

A strong emphasis has been placed on the webinos security model. This is important because vehicle informatics subsystems are extremely sensitive, and grant access to highly sensitive data. Security plus interoperability is the key here. The webinos protocols are unusual in that the same mechanism that allows device interaction over the cloud can be reused for local, in-vehicle networks. For real world deployment where internet in-car is unreliable this is essential. In practice this means that “permissions permitting” any phone or tablet in car can securely and interoperably interact with the core infotainment systems of the car. Imagine controlling the radio from the back seat, pushing the location of the destination directly from a tablet to the in-vehicle navigation – or even using this exact same technology to push locations from a remote desktop.

How it works?

The vehicle is both a consumer and provider of valuable data. Applications hosted on the car (presented in the head unit) are web based and connect to vehicle capabilities through public, interoperable JavaScript APIs. An application running on a phone inside the car, or a remote PC, can also connect to these same JavaScript Services, but in this case a security layer ensures only trusted devices and trusted people can connect, and a remoting protocol handles the passing of messages between the physical pieces of hardware.

Rich applications are effortless by using webinos JavaScript APIs: Vehicle (grants access to low level data from CanBUS), Geolocation(for GPS data), Device Orientation(acceleration data in three dimensions), Device Status (access to device specific data), Generic Sensor/Actuator (a general purpose sensing and switching interface) and Media (access and control in-vehicle media).

 

Screen Shots

1. Dashboard AutoView

 

2. Diagnostics View

 

3. Drag and Drop Dashboard View

 

Installation Instructions

The application can be installed on all types of devices supported by webinos.

Steps to run webinos Vehicle Hub using OBD on Modularized Codebase: 

1.     Clone the hub-webinosVehicle repo from the github link -   https://github.com/webinos/hub-webinosVehicle inside the web_root folder of the webinos-pzp Or Copy the content of the hub-webinosVehicle folder into the web_root folder in webinos-pzp. The demo works on above webinos 0.8 vesion. The demo can be executed using firefox/Chrome browser.

2. You need-> webinos-api-iot, webinos-api-deviceOrientation, webinos-api-geolocation API. In webinos-api-iot/node modules clone drivers for OBD.

After installing webinos-api-iot and webinos-driver-obd2, Change settings in config.json in webinos-api-driverobd2

Set the connector parameter for the Vehicle to OBD or if using the Simulator then to obdsim. 

 

OBD II Simulator

Starting OBD Simulator - Install the OBD Simulator on to the Linux machine and can start with the command - obdsim according to this change the /dev/pts/(Port Number) in config.json in webinos-api-driverobd2

To run the OBD Simulator - To Install onyour terminal

  •  apt-cache search obd
  •  sudo apt-get install obdgpslogger

To Run

  •  obdsim or obdsim –o

Or 

Connect OBD (Car - Real Time Values - Bluetooth/Serial) - Once all the Connection is done it runs on /dev/USB0 for serial and for bluetooth change the parameters in the OBD params settings in the config.json in webinos-api-driverobd2. 

 

Webinos Prerequistes 

To run the application you need the latest webinos version with at least the following API installed:

  • Webinos Sensors API – OBD2 Drivers
  • Webinos Events API
  • Webinos Device Orientation API
  • Webinos Geolocation API

Webinos Vehicle Hub Features

  •   Drag and Drop OBD parameters
  •   Shows Live streaming data
  •   Historical View
  •   Diagnostics Data
  •   Dashboard View with Gauges in the Autoview 

In Car preferred Vehicle Hub Hardware

  •  OBD-II
  •  Raspberry Pi
  •  Mini Display
  •  Keyboard and Mouse
  •  Cables for Connectivity

Technical Section

  • The application uses web technologies such as HTML, JavaScript and CSS.
  • The application uses drivers that are written for the webinos API – sensors, that is registered within user's personal zone.
  • The sensors APIs allow the application to listen for values from OBD sensors.
  • Uses library JSPlumb for drag & drop. HTML5 canvas and JavaScript based library built for web charts.

Download the App

A widget for the App is available here

Or you can clone it from github: https://github.com/webinos/hub-webinosVehicle.git

Author: Krishna Bangalore "Technische Universität München"