All Projects → duraki → Virtualcar

duraki / Virtualcar

A virtual car. Because you wouldn't download a car, would you?

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Virtualcar

Intel nuc led
Intel NUC7i[x]BN and NUC6CAY LED Control for Linux
Stars: ✭ 77 (-32.46%)
Mutual labels:  linux-kernel
Tesla Api
🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
Stars: ✭ 1,317 (+1055.26%)
Mutual labels:  car
Self Driving Car
Automated Driving in NFS using CNN.
Stars: ✭ 105 (-7.89%)
Mutual labels:  car
Linux 0.11
A heavily commented linux kernel source code in Chinese.
Stars: ✭ 81 (-28.95%)
Mutual labels:  linux-kernel
Lpic 1 Anki Flashcards
Deck of Anki flashcards for the LPIC-1 (Linux System Administrator) exams 101 and 102 of the Linux Professional Institute (LPI).
Stars: ✭ 90 (-21.05%)
Mutual labels:  linux-kernel
Udev Joystick Blacklist
Fix for keyboard/mouse/tablet being detected as joystick in Linux
Stars: ✭ 97 (-14.91%)
Mutual labels:  linux-kernel
Kernel Exploits
My proof-of-concept exploits for the Linux kernel
Stars: ✭ 1,173 (+928.95%)
Mutual labels:  linux-kernel
Googlemap
Google Map to use create path on map and play vehicle on path like Uber and Ola
Stars: ✭ 112 (-1.75%)
Mutual labels:  car
Kotlin Obd Api
🚙 A Kotlin OBD-II API for reading engine data
Stars: ✭ 91 (-20.18%)
Mutual labels:  car
Movel
Móvel - Dashboard for Raspberry pi car computer
Stars: ✭ 103 (-9.65%)
Mutual labels:  car
Machinery Industry Press
本项目预计分享数千册电子书,98%以上为机械工业出版社原版电子书,其余为其它出版社出版的一些经典外文读物的原版译本电子书,每本书都配有当当网一键搜索,可查看书价格和简介。目前共计更新2542册图书
Stars: ✭ 85 (-25.44%)
Mutual labels:  car
Renault Radio Code List
List of all security codes required to activate Renault car radios.
Stars: ✭ 88 (-22.81%)
Mutual labels:  car
Xia For Linux
XIA implementation for the Linux kernel
Stars: ✭ 98 (-14.04%)
Mutual labels:  linux-kernel
Genivi Dev Platform
GENIVI Development Platform
Stars: ✭ 81 (-28.95%)
Mutual labels:  car
Ttgo T Beam Car Tracker
TTGO-T-Beam Arduino Car Tracker - ESP32 + LoRa + GPS + GSM (optional)
Stars: ✭ 106 (-7.02%)
Mutual labels:  car
Linux Baytrail Flexx10
Install GNU/Linux on NextBook Flexx 10.1
Stars: ✭ 73 (-35.96%)
Mutual labels:  linux-kernel
3d Boundingbox
PyTorch implementation for 3D Bounding Box Estimation Using Deep Learning and Geometry
Stars: ✭ 95 (-16.67%)
Mutual labels:  car
Ltp
Linux Test Project http://linux-test-project.github.io/
Stars: ✭ 1,654 (+1350.88%)
Mutual labels:  linux-kernel
Fpga Soc Linux
FPGA+SoC+Linux+Device Tree Overlay+FPGA Manager U-Boot&Linux Kernel&Debian10 Images (for Xilinx:Zynq-Zybo:PYNQ-Z1 Altera:de0-nano-soc)
Stars: ✭ 106 (-7.02%)
Mutual labels:  linux-kernel
Fine grained classification
Fined grained classification On Car dataset
Stars: ✭ 103 (-9.65%)
Mutual labels:  car

Notice: This project is original version of vircar. The change of name occured on 12/04/17.

virtualcar

virtualcar (vir-tual-car) is a CAN-based wrapper written in C, that acts as a virtual car. The core is listening to the virtual CAN device and parse, analyze and transmit signal from nodes to nodes, or in other way manipulate with request.

This software is licensed under GNU General Public V3 license. Please, keep the software open source and contribute to the project if you want.

The project is developed on top of SocketCAN module and therefore requires Linux based system. I am currently rewriting the SocketCAN module for MacOS and you may fork the repository from duraki/socketcanx.

a car? really?

Yes! A fully, functional car.
Well, not really no. It does represent a car/vehicle but in a limited spirit and form. I was writing a post about cyber-attacks on a vehicle systems and another one that show virtualcar in action, and didn't have necessary (hardware) equipment to test the techniques, so I wrote this to let myself experiment a bit.

So a few months passed, and I talked about this little code on a BalCCon 2k16 where I offered a small introduction to these cyber-attacks, plus you could buy me a drink and I'd tell you some secrets. So I renamed this project and I'll try to develop some nodes as per request in Issues board. Meanwhile, I'd appreciate pull requests that make sense.

functionality

Currently, virtualcar offers several different controllers or nodes that understand a particular signal and either accept or reject the CAN frame. I'm implementing both data frames and RTR. The RTR has some basic functions like asking for value of an instrument.

virtualcar nodes:

  • NODE_SIGNAL_DOOR_MODE - Door actions
  • NODE_SIGNAL_EHPS_MODE - EHPS actions

TODO nodes (@see nodes.h):

  • NODE_SIGNAL_INST_MODE
  • NODE_SIGNAL_ENGN_MODE
  • NODE_SIGNAL_MABS_MODE
  • NODE_SIGNAL_MESP_MODE
  • NODE_SIGNAL_AIRB_MODE
  • NODE_SIGNAL_NAVG_MODE
  • NODE_SIGNAL_TRNC_MODE

virtualcar-web

I'm sorry, the virtualcar-web is being developed and there is some kind of version floating as a private repository and a submodule in this repo. Anyway, virtualcar-web should be used as web-interface to manipulate with virtualcar daemon. It's written in Rails and support some interesting things but more about that inside virtualcar-web repository and README file.

$ git submodule init
Submodule 'virtualcar-web' (...) registered for path 'virtualcar-web'

$ git submodule update
Cloning into 'virtualcar-web'...
...

To update or fetch the virtualcar-web project:

$ cd virtualcar/virtualcar-web
$ git fetch
...

$ git merge origin/master

requirements

I love to write pure native scripts. The only requirement for now is that you are running under GNU Linux and have can-utils installed on your system.

  • gcc
  • linux kernel (can.h)
  • can-utils

compile & running

To clone the repo and compile it from source:

$ git clone https://github.com/duraki/virtualcar.git
$ cd virtualcar 
$ make
$ chmod 777 virtualcar 

To run virtualcar use sudo (entirely for CAN bus device linking)

$ sudo ./virtualcar
Welcome to vir(tual) car.
~
=========================================
https://github.com/duraki/virtualcar

# waiting for operation

To exit vircar use Ctrl+C.
To kill a car and remove protocol use:

$ ./virtualcar k
ka-boom, pfw, aaa, ts
*car exploded*

outro

If you are interested in car hacking, write me on twitter. Any additional options and CAN nodes should be accepted if they follow RTR or Accept/Desctruct operation. Please, keep the code and project with clean lines of code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].