=============================================================================
	     ADVANTECH CAN comunication cards QNX device driver
		    Installation & Program Guidei
               for QNX 6.3.x,QNX 6.4.x and QNX 6.5.x
	       Copyright (C) 2010, ADVANTECH Co, Ltd.
=============================================================================
Contents

1. Introduction
2. Installation
3. Configure device
4. How to test the driver
5. User space program for this driver

-----------------------------------------------------------------------------
1. Introduction
 1.1 Support devices
   ADVANTECH CAN comunication cards device driver,
   Now it supports following boards.
    
    - PCM-3680       : 2 port Isolated PC/104 CAN-bus Card.
    - PCL-841        : 2 port Isolated ISA CAN bus Card.
    - TPC-662G       : 1 port Isolated ISA CAN bus Device on TPC-662G.
    - PCI-1680       : 2 port Isolated PCI CAN-bus Card.
    - UNO-2052(E)    : 2 port Isolated UNO-2052(E) onboard PCI CAN device.
    - EAMB-PH07		: 1 port Isolated PCI CAN bus Card.
    - ADVANTECH GENERAL CAN PORT (1 PORT)     : 1 port Isolated PCI CAN bus Card.
    - ADVANTECH GENERAL CAN PORT (2 PORT)     : 2 port Isolated PCI CAN bus Card.
    - ADVANTECH GENERAL CAN PORT (4 PORT)     : 4 port Isolated PCI CAN bus Card.
    - ADVANTECH GENERAL CAN PORT (1 PORT, support CANopen)     : 1 port Isolated PCI CAN bus Card and support CANopen.
    - ADVANTECH GENERAL CAN PORT (2 PORT, support CANopen)     : 2 port Isolated PCI CAN bus Card and support CANopen.
    - ADVANTECH GENERAL CAN PORT (4 PORT, support CANopen)     : 4 port Isolated PCI CAN bus Card and support CANopen.

    
 1.2  Test environment
    QNX 6.3.2, QNX6.4.1 and QNX 6.5.0

2. Installation

   2.1 Hardware installation

       Just install the card into your computer, please refer to hardware
       installation procedure in the Hardware User's Manual.     

   2.2 Login QNX before executing the following instructions.

   2.3 Uncompress driver

   	2.3.1 # tar zxvf advcan_vM_NN.tar.gz
   	2.3.2 # cd advcan_vM_NN/driver
    
   2.4 Install driver module
   
   	2.4.1 Go to the driver directory

   	2.4.2  For PCI CAN Device
	#./advcan &
                           
	2.4.3 For ISA CAN Device (PCM-3680 for examples):
	#./advcan -isa0 addr=0xda000 irq=3 -isa1 addr=0xda200 irq=5 &
	Here we config CAN port 1 of PCM-3680 as /dev/advcan0 and CAN port 2 of PCM-3680 as /dev/advcan1
	We assum that:
	Port 1 base address: 0xda000, IRQ: 3
	Port 2 base address: 0xda200, IRQ: 5
		
   	2.4.4 uninstall driver
         # slay advcan
        
3. How to test the driver
   Change to ../example and read  "readme" for details.
              
4. User space program for this driver   
   4.1 Include file
       To program for this driver, the user must include the 
       "advcan.h" head file. You also can copy this head 
       file to your owner work dirctory and include it.
   	  
   4.2 other information
       Please view the example
       For more details please refer to advcan QNX Driver User Manual.
