CANgineBerry Quickstart

Similar documents
CANgineBerry. Active CAN and CANopen interface for embedded computers. for revision 1.0 or higher COPYRIGHT BY EMBEDDED SYSTEMS ACADEMY GMBH

XS S ERIES TM PMB US TM O PTION C ARD

TORRIX RS485. Technical Documentation. with MODBUS Protocol. Edition: Version: 2 Art. no.:

BMS CAN Manual. V2.0, September 3, 2018 Visit to download the latest revision of this manual Copyright 2018 Roboteq, Inc

CANopen. Network configuration. Operating instructions Software. Integration of Bürkert devices in CANopen networks

CANopen IO X4 Fact sheet

TPMC815 ARCNET PMC. User Manual. The Embedded I/O Company. Version 2.0. Issue 1.2 November 2002 D

SC2004MBS 20x4 Characters MODBUS RTU Slave LCD

CANopen IO X1 Fact sheet

Ultra Short Installation Procedure of the UPS PIco HV3.0 Daemons. and UPS PIco HV3.0 broadcasting System

UM2375 User manual. Linux driver for the ST25R3911B/ST25R391x high performance NFC frontends. Introduction

DIO16 8 Channel digital input and 8 Channel digital output board. V1.0 August CANBUS-DIO16 Rev B v1.0

TORRIX RS485. Technical Documentation. with MODBUS Protocol. Edition: Version: 3 Art. no.:

PiCAN 2 USER GUIDE V1.2

User Manual Connection to CAN

5I24 ANYTHING I/O MANUAL

Getting started with Raspberry Pi (and WebIoPi framework)

PiCAN2 DUO ISO USER GUIDE V1.1. PiCAN 2 DUO ISO Rev B V1.1. PiCAN2 DUO CAN-Bus ISO Board for Raspberry Pi

Technical Documentation 0630

TIP815. ARCNET Controller. Version 1.0. User Manual. Issue September 2009

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

ugreen DAB Board Instructions v0.12

User Manual. CANopenIA-M0. Starter Kit

F16v2 Pixel Controller. Operation Manual. Revision v1.0.1

Adafruit seesaw. Created by Dean Miller. Last updated on :30:23 AM UTC

USB-SD MP3 Module Manual

ugreen DAB Board Instructions v5

CANopen IO X2 Fact sheet

CANopen Unit CANit-20

RaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett

F4v2 Pixel Controller. Operation Manual. Revision v1.0.0

Logosol Joystick Node LS-731

AN1204 Configuration of CANopen devices via LSS

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

The following file is used for updating the boot loader: xboot.bin: XSTREAM development platform boot loader image

CLOCKAUDIO. MR88 Automatic Microphone Mixer RS232 Programming Version 4.2

User Manual. R Series Encoders with CANopen Interface RNX HE 11 / 2005

LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide. Copyright 2008 IMS

TCP Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

Pressure transmitter CANopen DST P92C

FWA-6510 function Setting Introduction

Gooligum Electronics 2015

TPMC816. Two Independent Channels Extended CAN Bus PMC Module. Version 2.2. User Manual. Issue August 2014

CANopen User Manual IE25, IWN

VLSI AppNote: VSx053 Simple DSP Board

FACTORY AUTOMATION. MANUAL R CANopen Protocol

Graphical LCD Display Datasheet EB

Instruction manual EPL-Router

TPMC Digital Inputs/Outputs (Bit I/O) Version 2.0. User Manual. Issue February 2014

Adafruit's Raspberry Pi Lesson 6. Using SSH

SRF02 Ultrasonic range finder Technical Specification

ArduCAM-M-2MP Camera Shield

BNI IOL K023 BNI IOL K023. User s Guide

Raspberry Pi Setup Tutorial

Atmel 328-Processor for RaspberryPi

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission.

Adafruit NFC/RFID on Raspberry Pi

PiCAN 2 GPS Rev B V1.0. PiCAN GPS USER GUIDE V1.0. PiCAN GPS CAN-Bus Board for Raspberry Pi. SK Pang Electronics Ltd

TPMC /8 Digital Inputs (24V) 16/8 Digital Outputs (24V, 0.5A) Version 3.0. User Manual. Issue June 2014

DMD Extender. Raspberry Pi Installation Addendum

ugreen DAB Board Instructions v6

User Manual. K Series Encoders with CANopen Interface KXN FE 09 / 2005

Winsonic MODBUS Remote IO user manual Rev. 1.0

TCP Channel Serial Interface RS232 / RS422 cpci Module. User Manual. The Embedded I/O Company. Version 1.0. Issue 1.

PiRyte Mini ATX PSU Revision User Manual

J2 LCM Customer Display. Manual

Nuvoton Touch Key Series NT1160 Datasheet

NeoLoch. Inquisitor 4116 DRAM Blade Manual. Overview. Preliminary Release

minimon Simple CAN Monitoring Tool for Windows

User Manual. DVK512 Expansion Board For Raspberry Pi

JUN 18 Rev 3

BNI IOL Z026 BNI IOL-302-S01-Z026 User s Guide

BNI IOL Z026 BNI IOL-302-S01-Z026. User s Guide

Dual Interface LCD Display Controller

ambient XC RS232 Control Command Specification

JMY505G User's Manual

CANopen Manual. Draw Wire Sensor Series SX Draw Wire Sensor Series MH Encoder Series WP

TPMC x ADC, 16x/0x DAC and 8x Digital I/O. Version 1.0. User Manual. Issue May 2018

SC1602LCPro-YG ( Yellow Green Backlight ) SC1602LCPro-B ( Blue Backlight ) Large Character Size ( 4.88x9.66 mm )

PLC Stamp micro EVB Datasheet

Atmel 328-Processor for RaspberryPi

LK User Manual. LK rev 4 1

FNL Modbus TCP Interface

SKH. CANOpen Output Signal. Linear Position to 400 inches (10 m) Compact Design Simple To Install User Adjustable Measuring Cable Orientation

PiCAN GPS + Gyro +Accelerometer USER GUIDE V1.0

SATA Host-IP Demo Instruction Rev Jan-18

HTT Series. Quick Start Guide. For all variants of the HTT35A, HTT50A, HTT70A and HTT104A. Revision 1.1

MF1-RW-TTL-PCB Mhz Mifare ISO14443A reader/writer module with TTL interface CONTENT 1. MAIN FEATURES...,, PINNING INFORMATION...

TPMC Channel Isolated Serial Interface RS232. Version 1.0. User Manual. Issue August 2017

CANopen Firmware. for PCAN-MicroMod. User Manual

AN4872 Application note

GIGAVAC Contactors I 2 C Communication

Next Generation Intelligent LCDs

Boot Loader. Bootloader

USB-BASED 8-CHANNEL DATA ACQUISITION MODULE

NOVOtechnik SIEDLE GRUPPE

Adafruit PiUART - USB Console and Power Add-on for Raspberry Pi

Applied Motion Products CANopen Manual

TPMC310. Conduction Cooled PMC Isolated 2 x CAN Bus. Version 1.1. User Manual. Issue June 2014

1.5inch OLED Module User Manual

Transcription:

Raspberry Pi 3 setups 1 CANgineBerry Quickstart for revision 1.02 or higher Rev. 1.02 of 3 rd April 2018 Published by Embedded Systems Academy GmbH Bahnhofstraße 17 D-30890 Barsinghausen, Germany www.esacademy.com CANgine products by Embedded Systems Solutions GmbH Industriestraße 15 D-76829 Landau, Germany www.essolutions.de COPYRIGHT 2017-2018 BY EMBEDDED SYSTEMS ACADEMY GMBH

2 CANopen Diag User s Manual 1 Raspberry Pi 3 setups 1.1 Connecting the CANgineBerry Be careful when plugging the CANgineBerry onto the Pi to use the right pins. Never plug or unplug the CANgineBerry while the Raspberry Pi is connected to power! CANGINEBERRY CONNECTOR ON RASPBERRY PI GPIO The form factor of the module is designed to fit directly on top of the Raspberry Pi 3, connecting directly to the UART in the GPIO header row. CANGINEBERRY ON RASPBERRY PI 3

Raspberry Pi 3 setups 3 1.2 Raspbian system settings In the Raspberry PI 3, the UART at GPIO14 (pin 8) and GPIO15 (pin 10) is not available by default. It has to be enabled and the login shell via UART disabled in the raspi-config tool for it to be used with the CANgineBerry: sudo raspi-config Go to 5 Interfacing Options, P6 Serial, then: Confirm and select Finish to save, then reboot. Note that Bluetooth is now no longer available.

4 CANopen Diag User s Manual 2 Software settings 2.1 Preparation Download the latest Linux software archive from www.cangineberry.com to your Raspberry. Copy the executables from the UTIL directory to your working directory, for example the Public directory. Also copy the desired firmware version from the APPS directory to the working directory. 2.2 First commands Open a terminal window and make the working directory your current directory: cd Public Use the COIAupdater utility (parameter -h gives you list of commands available) to check current version and application active:./coiaupdater -p /dev/ttys0 -i COIAUpdater version 1.05.4265 Show device info... Waiting for bootloader to start... Bootloader is running. Bootloader version: 1.2 Hardware serial number: 0600100013434B5534353620 Stored configuration: Node ID: 125 (0x7D) CAN bitrate: 125 kbps LSS: disabled Application found: Type: 0x02 (CANopen IA Manager) Version: 1.2

Software settings 5 To reload or update the application running, use the -f command:./coiaupdater -p /dev/ttys0 -f CgB_COIA_MGR1.2_sec.bin COIAUpdater version 1.05.4265 Firmware file to write: /home/pi/public/cgb_coia_mgr1.2_sec.bin Waiting for bootloader to start... Bootloader is running. Bootloader version: 1.2 Hardware serial number: 0600100013434B5534353620 Stored configuration: Node ID: 125 (0x7D) CAN bitrate: 125 kbps LSS: disabled Application found: Type: 0x02 (CANopen IA Manager) Version: 1.2 Erasing flash...done. Programming...done. Update completed. The default CAN bitrate can be set (here 125 kbps) with:./coiaupdater -p /dev/ttys0 -r 125 The default CANopen node ID used can be set (here 125) with:./coiaupdater -p /dev/ttys0 -n 125 Note: Numbers can be entered in both decimal or hexadecimal. When using hexadecimal, simply start the hexadecimal number with 0x.

6 CANopen Diag User s Manual 3 CAN Basics A CAN interface cannot operate without a communication partner. Errors will occur, if nothing is connected to the CAN side or devices connected operate at a different bitrate. Before actively using the CANgineBerry, ensure that it is properly connected to a CAN system with one or multiple nodes (all configured to same bitrate) and that the termination resistors are in place. If needed, the CANgineBerry can provide one termination by setting the CAN_TERM jumper. See https://en.wikipedia.org/wiki/can_bus#architecture for the architecture layout. See https://en.wikipedia.org/wiki/can_bus#layers for the pinout. Note that typically GND is also connected via the network, but not V+ as the voltage for that is not standardized.

Application CANopenIA-MGR 7 4 Application CANopenIA-MGR This application implements a CANopen controller (minimal manager), that can handle up to 32 CANopen devices. Before connecting a CANopen device, ensure that it is configured to use the same CAN bitrate and has a unique node ID in the range of 1 to 32 (double node ID assignments will result in errors). CANOPENIA-MGR AND CANOPEN OBJECT DICTIONARIES 4.1 Using the COIA utility The COIA utility offers first access to the network connected. To get a common starting point, send a reset command (CANopen NMT reset message) to all connected devices:./coia -p /dev/ttys0 -n all,reset This ensures that all devices re-boot and the controller re-scans the devices that produced a boot-up message. For this test case, we connected a CANopenIA-M0 (node ID 10) evaluation board and a Schneider Advantys I/O system to our network (node ID 16 and 17).

8 CANopen Diag User s Manual CANGINEBERRY WITH CANOPENIA-M0 AND SCHNEIDER ADVANTYS SYSTEM

Application CANopenIA-MGR 9 The net-info parameter shows us a list of devices found:./coia -p /dev/ttys0 --net-info COIA version 1.73.4265 No information available for node 0x01 - not yet seen on network? No information available for node 0x02 - not yet seen on network? No information available for node 0x03 - not yet seen on network? No information available for node 0x04 - not yet seen on network? No information available for node 0x05 - not yet seen on network? No information available for node 0x06 - not yet seen on network? No information available for node 0x07 - not yet seen on network? No information available for node 0x08 - not yet seen on network? No information available for node 0x09 - not yet seen on network? Node 0x0A: Device type 0x00030191 Vendor ESAcademy - USA (0x01455341) Product code 0x11223344 Revision number 0x53521B2C Serial number 0x1212EE39 No information available for node 0x0B - not yet seen on network? No information available for node 0x0C - not yet seen on network? No information available for node 0x0D - not yet seen on network? No information available for node 0x0E - not yet seen on network? No information available for node 0x0F - not yet seen on network? Node 0x10: Device type 0x00030191 Vendor Schneider Electric - American Global Products (0x0400005A) Product code 0x0000000C Revision number 0x00013800 ERROR: Unable to get node 0x10 identity information (4): 0x00001000 ERROR: Node error: 0x0040 Node 0x11: Device type 0x00010191 Vendor Schneider Electric - American Global Products (0x0400005A) Product code 0x00000003 Revision number 0x00013800 ERROR: Unable to get node 0x11 identity information (4): 0x00001000 ERROR: Node error: 0x0040 No information available for node 0x12 - not yet seen on network? No information available for node 0x13 - not yet seen on network? No information available for node 0x14 - not yet seen on network? No information available for node 0x15 - not yet seen on network? No information available for node 0x16 - not yet seen on network? No information available for node 0x17 - not yet seen on network? No information available for node 0x18 - not yet seen on network? No information available for node 0x19 - not yet seen on network? No information available for node 0x1A - not yet seen on network? No information available for node 0x1B - not yet seen on network? No information available for node 0x1C - not yet seen on network? No information available for node 0x1D - not yet seen on network? No information available for node 0x1E - not yet seen on network? No information available for node 0x1F - not yet seen on network? No information available for node 0x20 - not yet seen on network?

10 CANopen Diag User s Manual Note that the Schneider devices do not have a serial number, therefore an error is reported when the CANopenIA-MGR app tries to read this entry. For more details about an individual node, use the --node-info parameter:./coia -p /dev/ttys0 --node-info 0x0A COIA version 1.73.4265 Node 0x0A: Device type 0x00030191 Vendor ESAcademy - USA (0x01455341) Product code 0x11223344 Revision number 0x53521B2C Serial number 0x1212EE39 For any CANopen I/O system that follows the CiA 401 specification for generic I/O, we know the CANopen Object Dictionary entry location for inputs and outputs. Index 0x6000 with Subindex 1 to 8 address up to 8 input bytes. Index 0x6000 with Subindex 1 to 8 address up to 8 output bytes. To read the first input byte from node 16, type:./coia -p /dev/ttys0 --node-read 0x0A,0x6000,0x01 COIA version 1.73.4265 Read from node 0x0A object dictionary [0x6000,0x01]: 0x0F

Application CANopenIA-MGR 11 Here the current value reported is 0x0F. To write to the first output byte of node 16 (here writing 1 byte, 0x55), type:./coia -p /dev/ttys0 --node-write 0x0A,0x6200,0x01,1,0x55 COIA version 1.73.4265 Wrote 0x00000055 to node 0x0A object dictionary [0x6200,0x01] On the CANopenIA-M0 evaluation board, this switches the outputs accordingly. 4.2 Programming your own controller application The CODE directory contains the RemoteAccessApp project including all sources. This is a basic C++ program that communicates with the CANgineBerry. Use this as a base for your own applications.