# CAN-RS485-adapter **Repository Path**: wujinyuwuchao/CAN-RS485-adapter ## Basic Information - **Project Name**: CAN-RS485-adapter - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-01-22 - **Last Updated**: 2024-01-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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); ..... }