Powered by Blazor - a free and open-source web framework. Blazor Server edition of Blazor apps has been used.
- Microsoft.Extensions.Configuration - to configure COM port in appsettings.json
- System.IO.Ports - to read data from Serial Port
- 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.
- 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
Ready to process input data in the form:
- 77E 05 62 22 0D 00 65 AA AA
- Configure appsettings.json with your COM port(normal tested Baud Rate is 115200)
CAN-receiver consists of stm32f103 board and tja1050 CAN transceiver.
CAN-receiver listens to all incoming CAN messages and resends them via serial.
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