Skip to content

eiannone/CANBus-Triple-Dll

Repository files navigation

Logo

CANBus Triple Dll - The car hacking platform

See CANBus Triple for more information, or to purchase hardware.

About

This repository contains a dll library to connect to a CANBus Triple Device via Serial Port.

Using library

Instantiate the CBTController class, passing serial port name, and then call methods, for example:

var cbt = new CBTController("COM1");
var info = await cbt.GetSystemInfo();
Console.Writeln("Device: " + info["name"]);

Implemented methods

  • void Connect()
  • async Task Disconnect()
  • void SetComPort(string portName)
  • async Task<string> SendCommand(byte[] cmd)
  • async Task CancelCommand(bool closePort)
  • async Task<Dictionary<string, string>> GetSystemInfo()
  • async Task<byte[]> DumpEeprom()
  • async Task SaveEeprom(byte[] eeprom)
  • async Task SaveSettings(CBTSettings settings)
  • async Task RestartBootloader()
  • async Task<Dictionary<string, string>> ResetEeprom()
  • async Task<Dictionary<string, string>> AutoBaudRate(int bus)
  • async Task<Dictionary<string, string>> SetBaudRate(int bus, int baud)
  • async Task<Dictionary<string, string>> GetBusStatus(int bus)
  • async Task<CBTSettings> GetSettings()
  • async Task<Dictionary<string, string>> ShowSettings()
  • async Task<CanMode> GetCanMode(int bus)
  • async Task SetCanMode(int bus, CanMode mode)
  • async Task SendCanPacket(int bus, byte[] msgId, byte[] data)
  • async Task<bool> DisableLog(int bus)
  • async Task<bool> EnableLog(int bus, int msgFilter1, int msgFilter2)
  • async Task<bool> EnableLogWithMask(int bus, int msgFilter1, int mask1, int msgFilter2, int mask2)
  • async Task SetBluetoothMsgFilter(int bus, bool enabled, int msgFilter1, int msgFilter2)
  • async Task ResetBluetooth()
  • async Task EnableBluetoothPassthrough(bool enabled)
  • async Task SleepTimerToggle(bool activate)

Firmware compatibility

SetCanMode() method require at least firmware version 0.5.0, which you can find here: https://github.com/eiannone/CANBus-Triple/tree/main

EnableLogWithMask() method require at least firmware version 0.5.1, which you can find here: https://github.com/eiannone/CANBus-Triple/tree/can-mask

About

Windows dll for using with CANBus Triple device

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages