Skip to content

The adapter can be used for sniff CAN-bus or other cases

Notifications You must be signed in to change notification settings

YuriyLogvin/CAN-RS485-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

CAN-RS485-adapter

HW device in shop: https://shop.emkit.net/ru_RU/shop/product/rs-485-can-21

For first use:

  • Clone repository to local folder
  • Run SW4STM32 (System Workbench for STM32)
  • Select "CAN-RS485-adapter/Firmware" workspace directory
  • Close "Welcome" window
  • In "Project explorer" via context menu call "Import/General/Exsting Project into Workspace" and select "CAN-RS485-adapter/Firmware/A11096" directory
  • After first "Debug" command select "Ac6 STM32 C/C++ Application"

For taking current, voltage or velocity from can-adapter you need detach other adapters. And select current, voltage, velocity sources from RS485.

If you want do not use current sensor on CAN-adapter (for example), comment _ProtocolHost->AddSelfAddr(EmkAddr::CurrentSensor);

void Kernel::Init() { _ProtocolHost = new ProtocolHost(EmkAddr::SpeedSensor); _ProtocolHost->AddSelfAddr(EmkAddr::CurrentSensor); _ProtocolHost->AddSelfAddr(EmkAddr::VoltageSensor); ..... }

About

The adapter can be used for sniff CAN-bus or other cases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published