8000 GitHub - strange-v/car-telemetry
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

strange-v/car-telemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Telemetry

See in Web data from CAN bus

Powered by Blazor - a free and open-source web framework. Blazor Server edition of Blazor apps has been used.

NuGet Packages:

  • Microsoft.Extensions.Configuration - to configure COM port in appsettings.json
  • System.IO.Ports - to read data from Serial Port

Algorithm:

  • Reading CAN frame from the serial port, to which the CAN frame has already been sent.
  • Then composing a CAN frame.
  • Then analyzing the frame through the CAN Handlers.
  • Display data on the Web.

CAN handlers are presented:

  • Door Handler, which is responsible for door state(open or closed)
  • CurrFuelConsumptionHandler, current fuel consumption
  • EngineRPMHandler, engine speed in RPM
  • FuelLevelHandler, fuel level in liters
  • HandbrakeHandler, state of the handbrake
  • InTempHandler, the temperature in the cabin
  • OilTempHandler, oil temperature
  • OutTempHandler, outside temperature
  • TotalKmHandler, odometer
  • TurnSignalsHandler, state of the turn signals

Input data format:

Ready to process input data in the form:

  • 77E 05 62 22 0D 00 65 AA AA

Setup:

  • Configure appsettings.json with your COM port(normal tested Baud Rate is 115200)

Structure of Hardware:

Hardware schematic

CAN-receiver

CAN-receiver consists of stm32f103 board and tja1050 CAN transceiver.
CAN-receiver listens to all incoming CAN messages and resends them via serial.

Emulator

Emulator consists of Arduino Uno board and mcp2515 CAN controller. It emulates CAN interface of ECU by sending with some interval CAN packages that represent emulated parameters.
Emulator holds raw representation of emulated parameters and updates related CAN packages according to them.
Also, emulator can output CAN messages via serial, instead of sending them via mcp2515, for testing purposes.

Emulated parameters:

  • Doors state
  • Current fuel consumption
  • Engine RPM
  • Fuel level
  • Handbrake state
  • Inside temperature
  • Outside temperature
  • Coolant temperature
  • Oil temperature
  • Odometer
  • Turn signals switch state

Screenshot:

Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0