This document is copyrighted, 2009. All rights are reserved. The
original manufacturer reserves the right to make improvements
to the products described in this manual at any time without
notice.
No part of this manual may be reproduced, copied, translated,
or transmitted in any form or by any means without the prior
written permission of the original manufacturer. Information
provided in this manual is intended to be accurate and reliable.
However, the original manufacturer assumes no responsibility
for its use, or for any in fringements upon the rights of third
parties that may result from its use.
The material in this document is for product information only
and is subject to change without notice. While reasonable
efforts have been made in the preparation of this document to
assure its accuracy, AAEON assumes no liabilities resulting
from errors or omissions in this document, or from the use of the
information contained herein.
AAEON reserves the right to make changes in the product
design without notice to its users.
i
CAN Bus Module PFM- C20N
Acknowledgments
All other products’ name or trademarks are properties of their
respective owners.
l Award is a trademark of Award Software International, Inc.
l CompactFlash™ is a trademark of the Compact Flash
Association.
l Microsoft Windows® is a registered trademark of Microsoft Corp.
l ITE is a trademark of Integrated Technology Express, Inc.
l IBM, PC/AT, PS/2, and VGA are trademarks of International
Business Machines Corporation.
lSoundBlaster is a trademark of Creative Labs, Inc.
All other product names or trademarks are properties of their
respective owners.
ii
CAN Bus Module PFM- C20N
Packing List
Before you begin installing your card, please make sure that the
3.1 Testing with Windows XP .......................................3-2
3.2 Testing with Linux ..................................................3-9
Appendix A Mating Connector
A.1 List of Mating Connectors and Cables................. A-2
v
CAN Bus Module PFM-C20N
Chapter
1
General
Information
Chapter 1 General Information 1- 1
CAN Bus Module PFM-C20N
1.1 Introduction
AAEON Technology, a leading company in embedded boards
manufacturing with a full range of PC/104 CPU Modules, launches
a brand new CAN Bus Module-PFM-C20N. Its compact size and
rich functionality ensures the most cost effective and compatible
module to coincide with your existing system planning devices.
The PFM-C20N features PC/104+ expansion interfaces. It
supports Windows XP and Linux operating systems. Moreover, it
is CAN 2.0 compatible and up to 1Mbps. The PFM-C20N was
designed to enhance benefit for the Subcompact and peripheral
boards.
1.2 Features
SJA 1000 Based CAN Interface Module
CAN 2.0 Compatible, Up to 1Mbps
Onboard S witch Sele ctable CAN Termination
LEDs Indicate Diagnostics Status
Supports Win dow XP And Linux
PC/104+ Interface
Isolating Voltage Up To 1600VDC
Chapter 1 General Information1- 2
CAN Bus Module PFM-C20N
1.3 Specifications
Form Factor PC/104 & PCI-104 (90mm x 96mm)
CAN Chipset SJA1000
Expansion Slot PC/104 or PCI-104
Power Requirement +3.3V and +5V
Operating Temperature 32˚F~ 140˚F (0˚C ~ 60˚C)
Isolation Voltage 1600V DC
Chapter 1 General Information
1 - 3
CAN Bus Module PFM-C20N
d
f
r
r
e
p
Chapter
2
Quick
Installation
Guide
The Quick Installation Guide is derive
rom Chapter 2 of user manual. For othe
chapters andfurther installation
instructions, please refer to the use
manual CD-ROM that came with th
roduct.
Chapter 2 Quick Installation Guide 2 - 1
Notice:
Printed in Taiwan, June 2009
CANBus Module PFM-C20N
2.1 Safety Precautions
Always completely disconnect the power cord
from your board whenever you are working on
it. Do not make connections while the power is
on, because a sudden rush of power can
damage sensitive electronic components.
Always ground yourself to remove any static
charge before touching the board. Modern
electronic devices are very sensitive to static
electric charges. Use a grounding wrist strap at
all times. Place all electronic components on a
static-dissipative surface or in a static-shielded
bag when they are not in the chassis
Chapter 2 Quick Installation Guide 2 - 2
CAN Bus Module PFM-C20N
2.2 Location of Connectors and Jumpers
Chapter 2 Quick Installation Guide 2- 3
CANBus Module PFM-C20N
2.3 Mechanical Drawing
Chapter 2 Quick Installation Guide 2 - 4
CAN Bus Module PFM-C20N
2.4 List of Jumpers
The board has a number of jumpers that allow you to configure your
system to suit your application. The table below shows the function
of each of the board's jumpers:
Label Function
JP1 CAN BUS Port 1 Termination Resistor Setup
JP2 Address Condition
JP3 CAN BUS Port 2 Termination Resistor Setup
JP4
JP5
JP6
CAN BUS Port 1 IRQ Setup
CAN BUS Port 2 IRQ Setup
PCICLOCK & Arbitration Pins Setup
2.5 List of Connectors
The board has a number of connectors that allow you to configure
your system to suit your application. The table below shows the
function of each board's connectors:
You configure your card to match the needs of your application by
setting jumpers. A jumper is the simplest kind of electric switch. It
consists of two metal pins and a small metal clip (often protected by
a plastic cover) that slides over the pins to connect them. To “close”
a jumper you connect the pins with the clip.
To “open” a jumper you remove the clip. Sometimes a jumper will
have three pins, labeled 1, 2 and 3. In this case you would connect
either pins 1 and 2 or 2 and 3.
3
2
1
OpenCedC2-3loslosed
OFF
ON ON 2-3
A pair of needle-nose pliers may be helpful when working with
jumpers. If you have any doubts about the best hardware
configuration for your application, contact your local distributor or
sales representative before you make any change. Generally, you
simply need a standard cable to make most connections.
Chapter 2 Quick Installation Guide 2 - 6
CAN Bus Module PFM-C20N
2.7 CAN BUS Port 1 Termination Resistor Setup (JP1)
3.1 Testing with Windows XP
Step1: Open the “WinXP2” folder and click on “vcredist_x86.exe” to
start installing VC2008 Redistributable.
Click ”Next “ to continue.
Chapter 3 Driver Installation 3 - 2
CAN Bus Module PFM-C20N
Check the check box and click on “Install” to follow the instruction
until the computer shows to “Finish”
Chapter 3 Driver Installation 3 - 3
CAN Bus Module PFM-C20N
Step 2: Double click on the “Canbus.exe” file
Step 3: Click on “Configuration ”, to setup setting.
Chapter 3 Driver Installation 3 - 4
CAN Bus Module PFM-C20N
The setting of Base Address has to be the same as Jumper
setting.
IRQ only support POLLING.
The Baud Rates of Transmit Port and Monitor Port have to be the
same.
For Mode, you may choose “Basic” or “Peli” (only Peli can transmit
“Extended frame”). The default setting of “Mode” is “Basic.”
The Acceptance Code and Mask will be varied by the “Mode” you
set. For example, “Basic” is 8 bits, Peli is 32 bits. You may
choose the default setting if the application has no specific request.
You may click on “OK” after finish setting these values.
Chapter 3 Driver Installation 3 - 5
CAN Bus Module PFM-C20N
Step 4: The system will show the configuration information on “Port
0” and “Port 1” windows and detect the hardware status
automatically. If the status is OK, it will show
. The Monitor
Port and Transmit Port will be selectable. If the status is Fail, the
situation will be contrary.
Chapter 3 Driver Installation 3 - 6
CAN Bus Module PFM-C20N
Step 5: Setup the “Monitor Port”: Please select “Port 0” or “Port 1”
as the Monitor Port. After setting, the pop out will ask you if the
setting is correct or not. Select “OK” to start monitoring CANBUS.
If you want to stop monitoring just click on “Stop” button.
Step 6: Setup the “Transmit Port.”:When you setup the “Transmit
Port,” please select the different port from the “Monitor Port.” If the
“Monitor Port” is “Port 0,” and the “Transmit Port” should be “Port 1.”
Otherwise, it will cause error messages.
Step 7: Data translation: Please fill out the boxes of ID, RT R and
Data in order. All the setting numbers are hexadecimal.
The ID of Standard frame (the box of Extended frame not be
Chapter 3 Driver Installation 3 - 7
CAN Bus Module PFM-C20N
checked.) can be keyed in “0~0x7ff.” The ID of Extended frame is
“0~0x1fffffff.” (The Extended frame can be selectable in “Peli” Mode
only.)
For RTR, please key in “0” or “1.”
For Data, you may key in “0~8 Bytes” and please fill out from the
“Byte 0” to “Byte 7” in order.
After filling, please click on “Send.” There is a pop-up to show if it
is a successful transmitting or not. Meanwhile, the “Monitor Port”
will receive the information you fill and show the related information
on “Monitor Port” window. You also can click on “Clean” to erase
all data you key in.
Chapter 3 Driver Installation 3 - 8
CAN Bus Module PFM-C20N
3.2 Testing with Linux
Step 1: Please log in as “root” when you start the computer. (If you
log in other identities, you have to command “sudo” to switch the
identity, or you cannot insert/remove module.
Below use Fedora5 as example (GENE-5315 + PFM-C20N PC-104)
Step 2: Copy the Fedora5 folder
(…/PFM-C20N/Linux/ISA/5315/FedoraCore5/Fedora5) to the root’s
home.
Open the Terminal: Applications->Accessories (Fedora4 in System
tool ->Terminal) and type command:
uname –n
[root@localhost~]# uname -n
Chapter 3 Driver Installation 3 - 9
CAN Bus Module PFM-C20N
localhost.localdomain
※ If it does not show ”localhost.localdomain,” you have to continue
to the following step 2-A. If it shows properly, please go to Step 3.
2-A: If you get the output is “aaeon.5315” for example, please
command the following instructions.
[root@localhost~]# cd Fedora5/etc
[root@localhost etc]#cp localhost.localdomain.conf aaeon.5315.conf
[root@localhost etc]# cd ~
Step 3:Chang the setting file.
Please open the file of “Fedora5/etc/$(uname –n).conf” by Text
Editor, where the “$(unam e –n)” is the output value that you got in
step 2. For example, the output value you got in Step 2
is ”localhost.localdomain,” and the file you have to open is
“localhost.localdomain.conf.”
Chapter 3 Driver Installation 3 - 10
CAN Bus Module PFM-C20N
Chapter 3 Driver Installation 3 - 11
CAN Bus Module PFM-C20N
The values under Channel 0 are the default setting value of Port 0,
and the values under Channel 1 are the default setting value of
Port1.
Below use Channel 0 as example, and the same as the Channel 1.
Chipset_0: Default value is “sja1000,” please do not change it since
the IC is sja1000.
Base_0: It is a complete memory address (segment + offset), please
adjust it based on the jumper of the board. (PFM-C20N=>JP2)
2-4 4-6
1-3 DC00 DB00
3-5 DA00 CC00
If it is DA00, you have to set “0xda000.” If it is DB00, you have to set
“0xdb000.”
irq_0: Setup interrupt, you may set “0” as polling mode.
For choosing IRQ of PFM-C20N, please use the same settings of
JP4 (PORT1) and JP5 (PORT2 ). If you set “0,” please get rid of the
jumper.
The following IRQ is useful for the boards co-work with PFM-C20N.
GENE-5315: IRQ 3.4.5.7.10
EPIC-8526: IRQ 4.5
PFM-541I: IRQ 3.4.5.7.11
You may command “cat” in the Terminal to check the occupied IRQ
and avoid using the same IRQ.
[root@localhost ~]# cat /proc/interrupts
Chapter 3 Driver Installation 3 - 12
CAN Bus Module PFM-C20N
Baud_0: can set with 125,250,500,800 and 1000
AccMask_0: Default=0xffffffff (no need to change)
AccCode_0: Default=0xffffffff (no need to change)
Timeout_0: Default=10 (no need to change)
Outc_0: Default=0xda (no need to change)
VendOpt_0: Default=a (no need to change)
IOModel_0: Default=m (no need to change)
TxSpeed_0: Default=f (no need to change)
Step 4: Setup inode: please open the terminal again
[root@localhost ~]# cd Fedora5
[root@localhost Fedora5]# make inodes
Step 5: install the driver:
[root@localhost Fedora5]# make load
Chapter 3 Driver Installation 3 - 13
CAN Bus Module PFM-C20N
Command “grep” to check if the driver setting is the same or not.
(you may skip this step)
[root@localhost Fedora5]# grep . /proc/sys/Can/*
Step 6: Start testing the transmission, you have to create a new
terminal (FileÆOpen Terminal) on the existing terminal. And then,
command “receive” in one of the terminals to monitor CANBUS and
receive data.
[root@localhost Fedora5]# ./receive
Chapter 3 Driver Installation 3 - 14
CAN Bus Module PFM-C20N
The default Monitor Port is “can0”. You may use the following
instruction to assign the Monitor Port to be “can1.”
[root@localhost Fedora5]# ./receive can1
And then, use the other Terminal to tran smit message.
[root@localhost Fedora5]# ./can_send 567 0x11 0x22 0x33 0x44
0x55 0x66
The following three digits of “can_send” is ID. (You can key in
000-999, decimal. The example is “567.”)
And then, you may key in 0~8 messages (0x00~0xff, hexadecimal.
The example is 0x11…)
The default Transmit Port is “can1.” You also can use the following
instruction to assign the Transmit Port.
[root@localhost Fedora5]# ./can_send –D can0 567 0x11 0x22 0x33
0x44 0x55 0x66
Adding up “-D can0” to command the Transmit Port as “can0” after
“can_send.”
If “can0” has been set to be the Monitor Port and it starts to monitor
data bus, you cannot assign “can0” as the Transmit Port.
If it is a successful transmission, the Terminal which receives data
will have shown the following message on Terminal window.
Chapter 3 Driver Installation 3 - 15
CAN Bus Module PFM-C20N
If you want to stop the Monitor Port to monitor data bus, just let the
Terminal on focus and press ctrl+c to stop. If you did not stop
receiving data via the Monitor Port, the resource of the port will be
occupied.
Step 7: Cross check
Set can0 (Monitor Port), can1 (Transmit Port) ÅÆ can1 (Monitor
Port), can0 (Transmit Port) in terms of th e Step 6. To make sure the
transmitting and receiving is working OK on can0 and can1.
Chapter 3 Driver Installation 3 - 16
CAN Bus Module PFM-C20N
Step 8: Testing by using different platforms
Using the two boards to test the transmitting and receiving. For
example, the can0 of GENE-5315 is the Monitor Port, and the can0
of EPIC-8526 will be the Transmit Port. Or the can1 of EPIC-8526 is
the Monitor Port, and the can0 of GENE-5315 is the Transmit Port.
In addition, you may use different systems. One is DOS system
and the other one is Windows system, or one is DOS system and the
other one is Linux system to test the transmitting and receiving
(make sure the Baud Rate setting is the same).
Step 9: Change the setting to test.
After testing, you may want to change the IRQ or Baud Rate for a
further testing. Please follow the steps below to activate.
9-1 Uninstall the driver
[root@localhost Fedora5]# /sbin/rmmod can.ko
9-2 Modify the setting based as the Step 3
9-3 Install the driver again
[root@localhost Fedora5]# make load
Chapter 3 Driver Installation 3 - 17
CAN Bus Module PFM-C20N
A
Appendix
Mating Connecotor
Appendix A Mating Connector A - 1
CAN Bus Module PFM-C20N
A.1 List of Mating Connectors and Cables
The table notes mating connectors and available cables.
Mating Connector Connector
VendorModel no
CATCH A003-678 CAN Cable 1703140150
Available Cable AAEON Cable
Label
CN3
Function
CAN
Connector
P/N
Appendix A Mating Connector A - 2
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.