Artila Matrix 522 Gebruikershandleiding - Pagina 5

Blader online of download pdf Gebruikershandleiding voor {categorie_naam} Artila Matrix 522. Artila Matrix 522 10 pagina's. Arm9-based linux ready industrial computer

SocketCAN:
Matrix 522 supports SocketCAN which implements a standard
network interface for CAN protocols for Linux. Unlike other
CAN implementation for Linux based on character devices,
SocketCAN uses Berkeley socket API, the Linux network stack
and implements CAN device drivers as network interfaces.
The CAN socket API has been designed as similar as possible
to the TCP/IP protocols to allow programmers, familiar with
network programming, to easily learn how to use CAN sockets.
Please refer to the document:
\Example\CanBus\socketcan\socketCAN.txt
in Artila CD for the SocketCAN API.
libsocketcan:
The libsocketcan library allows you to control some basic
functions in socketcan from userspace. Please refer to :
\Example\CanBus\libsocketcan
For the examples program for libsocketcan
Configure CAN:
To configure CAN device, you can use utility programs:
/canconfig
/candump
/canecho
/cansend
/cansequnce
User can also use ip command to configure CAN e.g.
/ip link set can0 down
/ip link set can0 type can bitrate 250000
/ip link set can0 up
/ip –details link show can0
The boot up CAN bit rate setting is at /etc/can_config
Format: [can port]: [bit rate]
0:250000
1:250000
Bit rate: 10K~ 1M
CANOpen:
The Artila CD also includes CanFestival 3 open
source for CANOpen. Please refer to
\example\CanBus\canfestival
and http://www.canfestival.org for Canfestival