Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/YuriyLogvin/CAN-RS485-adapter

The adapter can be used for sniff CAN-bus or other cases
https://github.com/YuriyLogvin/CAN-RS485-adapter

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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);
.....
}