Artila Matrix 522 User Manual Download Page 5

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 

Summary of Contents for Matrix 522

Page 1: ...Micro SD memory card 7 Two 3 in 1 RS 232 422 485 ports 8 Two 2500 Vrms fully isolated CAN 2 0A 2 0B ports 9 21 programmable Digital I O port 10 9 to 40VDC power input 11 Pre installed Standard Linux 2...

Page 2: ...The dual color LEDs indicate the data traffic at the serial bus and CAN bus When RXD line is high then Green light is ON and when TXD line is high Yellow light is ON Ethernet Port Serial Ports Port 1...

Page 3: ...127 Login root or guest telnet guest only Password root or guest telnet guest only Serial Console Port Baud rate 115200 Data format 8 Bits No Parity 1 Stop bit N 8 1 Flow Control None Terminal type V...

Page 4: ...of SSH and key are located at etc ssh The key generation program is available at usr bin Putty Console Software For Windows user you can download the putty software at http www chiark greenend org uk...

Page 5: ...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...

Page 6: ...nd to set transfer mode to binary ftp bin to transfer the execution file to Matrix 504 user disk home guest and use chmod x file o To change it to execution mode and file o to run the program Auto sta...

Page 7: ...200 Data bits 8 Parity N Stop bit 1 Flow Control None Terminal type VT100 Once power up M 518 please repeatedly keying and you will see the loader menu appear as follow If you miss the timing please p...

Page 8: ...using this function you need to copy the folder of mkimage522 in the Artila CD to an USB disk This function will create a new file system image for users and they can use it to duplicate the customiz...

Page 9: ...rver to update the software you want To install the utility from Artila ftp please use vi to edit the etc ipkg conf src gz arm ftp ftp ftp ftp artila com AT9G20 Artila CD Linux Utility src gz kernel f...

Page 10: ...at 17 NL 7483 PG Haaksbergen Tel 31 0 53 573 33 33 Fax 31 0 53 573 33 30 nl texim europe com St Mary s House Church Lane Carlton Le Moorland Lincoln LN5 9HS Tel 44 0 1522 789 555 Fax 44 0 845 299 22 2...

Reviews: