Small Intelligent CAN Card for USB

Similar documents
CANWiFi-200T User Manual

CANET-E(2E)-U User Manual

USBCAN Interface. Typical Applications. Operation system supported: CAN controller: SJA1000T. Windows98/Me/2000/XP/2003 CAN transceiver: PCA82C251

CANScope. CANScope Analyzer

USBCAN-modul 8. Industrial USB to CAN converter. User Manual. Document version 5.0(2017/06/16)

USBCAN-OBD. USB to CAN adapter. User Manual. Document version 3.01 (2015/04/22)

USBCAN-I Pro. USB to CAN adapter. User Manual. Ver.:V3.01 (2015/04/22)

CANCore-I/II. User Manual. Industrial grade CAN module. Ver.:V3.02 (2016/10/22)

3710 ACM 3750 PDC 3800 RTU. ISOCOM Communications Card Retrofit Instructions

H Series PLC. ! : Indicates Compulsion. EH-150 Analog input module EH-AXH8M Instruction manual. Safety precautions DANGER CAUTION COMPULSION

HITACHI. EH-150 series PLC EH-RTD8 Resistance Temperature Detective input module Instruction manual. Safety precautions

Analog Input/Output Modules

MTP58-FTxx-T1. Evaluation Board for the Micro-Thermal Printer

Installation and Configuration Quick Guide R3000. Industrial Dual SIM Cellular VPN Router 2 Eth + 1 RS RS USB Host.

TF-3239DL 10/100Mbps PCI Network Adapter

BNI USB A501. User s Guide

USB to CAN Equipment Specification (V1.01) Contents Aug. 28, Sept. 14, 2012

High Speed Remote I/O Module

Installation Guide V290 (Color) This guide provides basic information for Unitronics LCD color touchscreen models V C30B and V T40B.

F1000 User's Manual. (Version: V1.01)

STD_HLS36USB_V1.0E. HLS(MKY36)USB Unit. HLS-36USB Product Manual

EX-RC1 Remote I/O Adapter

SER-4485-SI-M USER S MANUAL

Model VC-SHIELD Shield Box

When any of the following symbols appear, read the associated information carefully. Symbol Meaning Description

IO-AO6X I/O Expansion Module 6 Isolated Analog Outputs

MTP58-Lx6B Series. Guangzhou ZLGMCU Technology Co., Ltd. Product Date Sheet. Document Information

V E5B Snap-in I/O Module

II. Intelligent PC/CAN Interface USER MANUAL ENGLISH

VM-11 SERIES MODEL VM-11B ACCELERATION INPUT VIBRATION SIGNAL CONDITIONER INSTRUCTION MANUAL. MANUAL No E1.8. Revised in Mar.

V E1B Snap-in I/O Module

This guide provides basic information for Unitronics Models 230/260/280/290 (Non-color Screens).

CANET-I/II Isolated CAN to Ethernet Converter V1.0

Installation and Configuration Quick Guide. R3000 Lite. Industrial Dual SIM Cellular VPN Router (1 Eth + 1 RS RS USB Host)

Appendix 3 Using NS-AL002 Converters

User Manual. For 3rd Generation. 5 Axis Standard & Professional Breakout Board Set

Conductive Level Controller

Dahua HD IR Vari-Focal Fixed Network Camera. Quick Start Guide

When any of the following symbols appear, read the associated information carefully. Symbol Meaning Description

UPort 2000 Series User s Manual

Operation Manual WARNING. Be sure to read this Operation Manual before use. Universal Space Amusement Equipment Ltd.

Package Contents. GP Options (Made by Digital)

CANcheck. Installation Tester for CAN/CANopen Networks MANUAL ENGLISH

TRANSDUCER T4311, T4411

User s Manual Model PBL100 Logic Probe IM E. 4th Edition

USER S MANUAL. FX2N-64DNET DeviceNet Interface Block

USB to RS-485/RS-422 Interface Converter. User Manual

ABB Drives. User s Manual. Analogue I/O Extension Module RAIO-01

HumidiProbe User Guide

PTC-101-M12 Hardware Installation Guide

Installation and Configuration Quick Guide R2000. Industrial Dual SIM Cellular VPN Router (2 Eth + 2 SIM) Package Contents

JANOME DESKTOP ROBOT JR2000N Series. Operation Manual. <Setup> For Qualified Installer ONLY

The following symbols are used to show dangerous operation or handling. Make sure you understand them before reading the guide.

ECAN-240. (Modbus TCP to 2-port CAN Bus Gateway User manual) ECAN-240 Modbus TCP to 2-port CAN Bus Gateway User Manual, Version 1.0.

User Manual PCM Port CAN-Bus Mini PCIe Module with Isolation Protection

NI USRP-2900/2901. Contents. Electromagnetic Compatibility Guidelines GETTING STARTED GUIDE. Universal Software Radio Peripheral

USB2CAN User Guide. High quality isolated USB to CAN interface. 1.0v

User Manual MIOe port CAN-bus PCIE/MIOe Module with Isolation Protection

Model Number Structure

Installation instructions RF-identification system with integrated AS-i slave DTSLF / / 2010

PISO-CAN400-D/T PISO-CAN200-D/T

V E2B Snap-in I/O Module

USP-070-B08 USP-104-B10, USP-104-M10 USP-156-B10

USB to RS232 Converter USB-013 (Rev3) User s Manual Ver. 1.2 HuMANDATA LTD.

PROGRAMMABLE CONTROLLER. FP0 A/D Converter Unit. Technical Manual ARCT1F321E

Operating instructions. Speed monitor D / / 2014

V E62B Snap-in I/O Module

NX-series SSI Input Unit. Read position information from encoders with Synchronous Serial Interface (SSI). Features. System Configuration

Thermal Hybrid PTZ Camera Quick Start Guide

Available in 2.0MP, 4.0MP and 8.0MP variants

Installation and Configuration Quick Guide GoRugged M1000 MP

MEV Limited USB232/485 INSTRUCTION MANUAL

ABB Drives. User s Manual. Modbus Adapter Module RMBA-01

BNI PNT Z015 BNI PNT Z015 BNI PNT Z015 BNI PNT Z015. IP67 Modules User s Guide

X-Writer. User Guide for TK Series. Revision 1.8 Dec. 2015

Power Supply. Users Guide PRODUCT MANUAL. WESTELL.COM Westell Technologies MNL rd

Arm-based DIN-rail industrial computers with 4 serial ports, 2 LAN ports, 8 DI/DO, and VGA. Features and Benefits. Certifications

Dahua HD Fixed-focal Pinhole Network Camera

Electro Magnetic Compatibility (EMC)

DVB-S/S2 to IP UDP/MPTS Gateway User Manual

M M WIFI Module

Operation Manual. Fieldbus system EX510-GPR1. PROFIBUS DP Compatible GW unit

CAN-Bridge. CAN Communications Module for CAN 2.0 A/B, CAN Layer AA01. Manual. Version 1/ from HW 1 & FW 1.00

E2KQ-X. Fluororesin-coated Capacitive Sensor with Sensitivity Adjuster. Chemical-resistant Proximity Sensor. Ordering Information

BNI PNT Z015. IP67 Modules 16 Input User s Guide

Appearance Size (mm) Power supply voltage Model (W H D) 100 to 240 VAC K3SC to 240 VAC

Ordering Information. Interface Converter K3SC. List of Models

CAN Repeater CAN-CR200, CAN-CR220, CAN-CR210/FO

Common to all H3CR. Basic Setting. Setting of Selectors. Selection of Operating Mode. Selection of Time Unit and Time Range. Common to all H3CR 1

RS-422/485 to Fiber Industrial Converter

USB TO RS-232 OR RS-422/485 CONVERTER

BNI EIP Z016. IP67 Modules, 8 Outputs BNI EIP Z016 BNI EIP Z016 IP67 Modules, 16 Outputs User s Guide

PA Series. Available in 6.0MP and 8.0MP

M M WIFI Module

Corporate Introduction

Dahua HD Mini IR Waterproof Bullet Network Camera. Quick Start Guide

System Monitoring Library Windows Driver Software for Industrial Controllers

CK3W-PD048 CSM_CK3W-PD048_DS_E_DITA_1_2

This guide provides basic information for Unitronics Models V230/260/280/290 (Non-color Screens).

The I-7530A RS-232/485/422 to CAN Converter

Transcription:

User Manual USBAN-I-mini UM01010101 V1.00 Date: 2015/10/8 User Manual Item Keywords Abstract ontent USBAN-I-mini, high performance, portable The USBAN-I-mini device complies with AN2.0A/B specification, supports any baudrate in the range of 5Kbps~1Mbps and provides device drives for multiple operating systems. It provides reliable and high-efficiency solution for industrial communication AN network, meeting various application requirements. Guangzhou ZHIYUAN Electronics o., Ltd.

Revision History USBAN-I-mini User Manual Version Rev. Date Modifications V1.00 2015/10/08 reated the document. i

ontents USBAN-I-mini User Manual hapter 1: Introduction... 4 1.1 Overview... 4 1.2 Specifications... 4 1.3 Product Appearance... 5 1.4 Typical Applications... 5 hapter 2: Device Installation... 6 2.1 AN-bus onnector... 6 2.2 Signal Indicator... 6 2.3 System onnection... 7 2.3.1 AN-bus onnection... 7 2.3.2 Bus Terminal Resistance... 8 hapter 3: Driver Installation... 9 3.1 Install the driver in Windows system for the first time... 9 3.2 heck whether the device is installed successfully... 10 3.2.1 Open the Device Manager in the Windows system... 10 3.2.2 onfirm whether the new device is installed successfully... 11 3.3 Install the driver in Linux... 11 hapter 4: Quick Start Guide... 13 4.1 Basic Operations of ANTest Software... 13 4.1.1 Device Type Selection... 13 4.1.2 Filter Settings... 14 4.1.3 Start AN... 15 4.1.4 Obtain device information... 16 4.2 Transmitting and receiving demonstration... 17 4.2.1 Build a test environment... 17 4.2.2 Open device... 17 4.2.3 Data Transmission... 17 4.2.4 Save in real time and stop saving... 19 4.2.5 Bus Utilization Rate... 19 4.2.6 Error Information Display... 20 hapter 5: Interface Function Usage... 21 5.1 How to call dynamic library in Windows... 21 5.1.1 How to call dynamic library in V development environment... 21 5.1.2 How to call dynamic library in VB development environment... 21 5.2 Interface Library Function Use Flow hart... 24 hapter 6: Inspection and Maintenance... 25 ii

USBAN-I-mini User Manual hapter 7: Rights & Statements... 27 Appendix A: AN Message Filter Settings... 28 A.1 Single Filter onfiguration... 28 A.2 Dual Filter onfiguration... 30 Appendix B: DB9 to OBD Interface... 32 B.1 Function Introduction... 32 B.2 Technical Specifications... 32 B.3 Pin Information... 32 B.3.1 Pin Assignments of DB9 onnector... 32 B.3.2 Pin Description of DB9 connector... 33 B.3.3 Pin assignments of OBD connector... 33 B.3.4 Pin Description of OBD onnector... 33 B.4 Mechanical Dimensions... 34 Appendix : Standard SJA1000 Baudrate... 35 iii

hapter 1: Introduction USBAN-I-mini User Manual 1.1 Overview The USBAN-I-mini intelligent AN interface card is a portable version of USBAN series and fully compatible with the USBAN-I single-channel intelligent AN interface card. It is an intelligent AN-bus communication interface card with 1- channel AN interface, and compatible with USB1.1 bus. Using the USBAN-I-mini intelligent AN interface card, a P can be connected with the AN-bus network through USB bus, which form the AN-bus network control node to process and acquire data in AN-bus network fields, such as field bus laboratory, industrial control, intelligent house, automotive electronic network. The USBAN-I-mini intelligent AN interface card is a powerful for AN-bus product development and AN-bus data analysis. Furthermore, due to its small size and plug-and-play, the USBAN-I-mini intelligent AN interface card is the best choice for portable system users. The AN card is equipped with an electrical isolation module, which prevents damage from ground circulation and improves its usage reliability in severe environments. The AN card supports Win9x/Me, Win2000/XP, Linux2.4, Linux2.6 and other operating systems. It also provides unified application programming interface and complete application demonstration code (including V, VB, Delphi, ++Builder and other demonstration code examples) for users to develop their application programs. The USBAN-I-mini interface card also supports OP interface. That means the card can be used in the configuration software that supports OP. In addition, the ANTest general testing software is provided for AN-bus message transmitting, receiving and monitoring. 1.2 Specifications P interface is compliance with USB2.0 protocol specification, and compatible with USB3.0 and USB1.1. It supports AN2.0A and AN2.0B protocols and conforms to ISO/DIS11898-1/2/3 standards. It is integrated with 1-channel AN-bus interface. Programmable AN-bus communication baudrate in the range of 5Kbps~1 Mbps. The power supply can be provided via the USB Bus. The AN channel is provided with electromagnetic isolation and D/D power isolation; and the isolation voltage is 3000VD. Maximum frame traffic of single channel: 14000 frames/ second for receiving, 4

USBAN-I-mini User Manual 3000 frames/ second for transmitting. It supports Win9x/Me, Win2000, WinXP and other Windows operating systems. EM level of AN interface:±4kv contact discharge, ±1KV group pulse. 1.3 Product Appearance Figure 1-1: USBAN-I-mini intelligent AN interface card (1) Figure 1-2: USBAN-I-mini intelligent AN interface card (2) 1.4 Typical Applications AN-bus diagnosis and test Automotive electronic application Electric power communication network Industrial control device High-speed, large data communication 5

USBAN-I-mini User Manual hapter 2: Device Installation 2.1 AN-bus onnector The USBAN-I-mini interface card is integrated with one AN-bus channel, which connects with the actual AN-bus network through DB9 pin-type socket or DB9 hole-type socket. Table 2-1 shows the pin definition of DB9 socket. The pin definition complies with the DeviceNet and ANopen standard. Table 2-1: AN-bus signal connection (DB9 socket) DB9 Pin-type Socket Pin Signal Description 1 N. Not used 2 AN_L AN_L signal line 3 AN_GND Reference ground 4 N.. Not used 5 AN_SHIELD Shielded line 6 AN_GND Reference ground 7 AN_H AN_H signal line 8 N.. Not used 9 N.. Not used The AN-bus signal of DB9 socket can be converted to the 5-pin OPEN5 connector through the optional DB9OPEN5 converter. The OPEN5 connector is easier to connect and its interface description is shown in Table 2-2. Table 2-2: Pin assignment of DB9OPEN5 converter (OPEN5 socket) OPEN5 Socket Pin Signal Description 1 V- Negative network power supply 2 AN_L AN_L signal line 3 SHIELD Shielded line (FG) 4 AN_H AN_H signal line 5 V+ Positive network power supply 2.2 Signal Indicator The USBAN-I-mini interface card contains one dual-color SYS indicator and one RUN indicator to indicate the operating status of device. The function of two indicators is described in Table 2-3 and Table 2-4. 6

USBAN-I-mini User Manual Table 2-3: Indicators on the USBAN-I-mini interface card Indicators Status Function Red Indicates the device initialization status. SYS Green Indicates USB interface signal. RUN Green Indicates AN interface operating status. When the USBAN-I-mini interface card is powered on, the SYS indicator is red to indicate that the device is powered on and the system is being initialized. If the SYS indicator is off, it indicates that there is system power supply fault or serious system error. After the USB interface is connected properly, the SYS indicator changes to green color from red color. When there is data transmission through the USB interface, the SYS indicator becomes green and flashes. When the RUN indicator lights, it indicates the AN controller has finished initialization and enters into normal operating status. Table 2-4: Indicator status of USBAN-I-mini interface card AN Indicator Status RUN indicator is off. RUN indicator is on. AN-bus Status The connection between AN controller and AN-bus is off. The AN bus is operating properly. 2.3 System onnection 2.3.1 AN-bus onnection When the USBAN-I-mini interface card is connected to AN-bus Bus, users only need to connect AN_L with AN_L signal, AN_H with AN_H signal. The AN-bus network uses linear topology, and the two terminals of bus should be connected with a 120Ω terminal resistance; if the number of nodes is greater than 2, the intermediate node does not need to connect with a 120Ω terminal resistance. For branch connections, the connection distance should not exceed 3m. The AN-bus connection is shown in Figure 2-1. Terminal Resistance Terminal Resistance Figure 2-1: AN-bus network topology Notes: The AN-bus can use common twisted pair or shielded twisted pair. If the 7

USBAN-I-mini User Manual communication distance exceeds 1Km, the section area of cable should be greater than 1.0mm 2, which depends on the specific distance. Generally, longer the communication distance is, greater the section area of cable is. 2.3.2 Bus Terminal Resistance In general, the two terminals of AN-bus network should be added a terminal matching resistance to improve communication reliability, as shown in Figure 2-1. The value of terminal matching resistance is determined by the characteristic impedance of transmission cable. For example, if the characteristic impedance of twisted pair is 120Ω, two terminals of AN-bus should be connected with a 120Ω terminal resistance. In addition, the USBAN-I-mini interface card uses FreeScale M33901WEF high-performance AN transceiver; therefore, if the other nodes on the network use different transceivers, the terminal resistance must be calculated separately. The USBAN-I-mini intelligent AN interface card is integrated with an internal 120Ω terminal resistance, without the need of external terminal resistance. The USB port on the USBAN-I-mini interface card is compliance with USB1.1 specification, and can be connected to a P with USB1.1 or USB2.0 interface. 8

USBAN-I-mini User Manual hapter 3: Driver Installation 3.1 Install the driver in Windows system for the first time A. Find usbcan.inf file in the \USBAN\Driver directory and copy it to the windows\inf directory, and find usbcan.sys file and copy it to the \windows\system32\driver. B. After the files are copied successfully, connects the USBAN-I-mini intelligent AN interface card with a P through the USB cable; Then the window system will detect a new hardware device and automatically start the Find new hardware device wizard, you can click Next to continue.. Start to search the new hardware device in the wizard. 9

USBAN-I-mini User Manual D. After a while, the warning about incompatibility between the driver and the operating system may be issued in the Windows XP/Windows 2000, please ignore it and click the ontinue button directly. E. ontinue to install the driver. The installation is completed after find the new hardware device. F. lick the Finish button. The SYS indicator on the USBAN-I-mini interface card turns green from red, which indicates the hardware driver is installed successfully and can be used. 3.2 heck whether the device is installed successfully 3.2.1 Open the Device Manager in the Windows system A. Right click the My omputer icon on the desktop. B. Select the Properties option on the dropdown menu.. Select the Hardware tag. 10

USBAN-I-mini User Manual D. lick the Device Manger button to open the current hardware device list. 3.2.2 onfirm whether the new device is installed successfully heck the Universal serial bus device device class to view whether the USBAN device is already in the current hardware list. If the device driver is installed successfully, the USBAN device will be seen under the Universal serial bus device device class in the Device Manager interface. The following figure shows the interface after the ZLG USBAN series intelligent AN interface card device is installed properly. When the data transmission is performed between the USBAN-I-mini intelligent AN interface card and a P, the SYS indicator on the interface card becomes green and flashes. 3.3 Install the driver in Linux A. opy usbcan.ko and libusbcan.so.1 to the /lib directory to creat symblic link. # ln s/lib/libusbcan.so.1/lib/libusbscan.so Notes: Please obtain the usbcan.ko or libusbcan.so.1 from our R&D engineer. B. Load the driver: # insmod/lib/usbcan.ko. heck whether the driver is loaded successfully. One line of module information will be list when load the driver successfully; otherwise it indicates that the driver load fails. # lsmod grep usbcan D. Switch to the directory./test. E. ompile the make test routine. Please note this step is optional, and there is compiled routines in the./test directory. F. Run the test routine in the./test directory. G. The test routine perform tests for each channel in the way of self-transmitting and 11

USBAN-I-mini User Manual self-receiving. If the board works properly, the number of frames and the transmission speed will be displayed after the operation is completed. Notes: The old release is not open source, therefore users should apply to the R&D department of ZHIYUAN Electronics for customized driver when the kernel needs to be changed. 12

USBAN-I-mini User Manual hapter 4: Quick Start Guide 4.1 Basic Operations of ANTest Software Users can obtain the ANTest_Setup_Vx.xx.exe installation file of ANtest testing software in the product D. Figure 4-1 shows the software icon after the ANTest software is installed successfully. Figure 4-1: ANTest software icon Notes: The ANTest software can be downloaded via http://www.zlg.cn/canbus /product_detail.php?id=4. 4.1.1 Device Type Selection Select USBAN1 from the Select Device menu before operation, as shown in Figure 4-2. Figure 4-2: Device type selection The Open Device dialog box pops up after selection, as shown in Figure 4-3. 13

USBAN-I-mini User Manual Figure 4-3: Open Device dialog box In this dialog box, users can select the Device Index Number and hannel No. for the device and set the AN initialization parameters, then click OK button to open the device operation window (or click onfirm and start AN button to open the device operation window and automatically open device and start AN channel). Notes: The Device Index Number is the code to identify a device. The same device with different AN interfaces should select same device index number and the different devices should select different device index number. The initial value of device index number is 0. Notes: The hannel Number is used to distinguish different AN channels of the same device, and its initial value is 0. Since the USBAN-I-mini device only have single AN channel, the hannel Number is 0. 4.1.2 Filter Settings Then, click Filter Settings button to set filter in the device operation window (if it is not necessary to set filter, please ignore this step), as shown in Figure 4-4. 14

USBAN-I-mini User Manual Figure 4-4: Filter settings 1 The Filter Settings dialog box will pops up, as shown in Figure 4-5. Figure 4-5: Filter Settings 2 Select the filter mode, and then set filter for those AN frames that need to be filtered. 4.1.3 Start AN lick Start button to start a AN channel, and the received AN data will be automatically displayed in the data list, as shown in Figure 4-6. 15

USBAN-I-mini User Manual Figure 4-6: Start 4.1.4 Obtain device information Figure 4-7: Device operations After start the AN channel, users can select the Device information option in the Device Operations menu to obtain the detailed information of current device, as shown in Figure 4-7. 16

USBAN-I-mini User Manual 4.2 Transmitting and receiving demonstration This section describes simple transmitting and receiving test and bus utilization rate demonstration. 4.2.1 Build a test environment onnect the USBAN-I-mini interface card with a P and the device to be tested and make sure the correct connection. For interface definition, please refer to Appendix B. 4.2.2 Open device Run the ANTest software and select device type. onfigure the device and start it, as shown in Figure 4-8. Figure 4-8: Initial device parameters setup Notes: The Device Index Number is the code to identify a device. The same device with different AN interfaces should select same device index number and the different devices should select different device index number. The initial value of device index number is 0. Notes: The hannel Number is used to distinguish different AN channels of the same device, and its initial value is 0. Since the USBAN-I-mini device only have single AN channel, the hannel Number is 0. 4.2.3 Data Transmission After start AN-bus successfully, set various parameters for the AN frame, and then click the Send button to transmit data (the Self-transmitting and self-receiving option in the dropdown box of Transmission mode means that the transmitted AN frame can be received by the sender. This option is only for test. Please select the 17

USBAN-I-mini User Manual Normal transmission in the practical application). Figure 4-9: Basic settings of data transmission Users can click the Advanced Operation tag to enter into the advanced operation page. In this page, users may set the number of different AN frames that are allowed to transmit each time (at most 100 frames), the interval between each frame and the interval between each batch of frames, as shown in Figure 4-10. Figure 4-10: Advanced settings of data transmission Figure 4-11 and Figure 4-12 show the results of data transmitting and receiving respectively. Figure 4-11: Data transmitting result 18

USBAN-I-mini User Manual Figure 4-12: Data receiving result 4.2.4 Save in real time and stop saving When it is necessary to record messages in a long time, the Save in real time function should be used. If the software buffer is full, the subsequent messages are saved into the file in the hard disk (in SV format) and the software buffer is cleared. The names of message files can be automatically numbered in turn, which should be enabled before start. Note that the drive should not be specified as storage location; otherwise the message may not be saved. lick Stop saving to stop saving messages into the hard disk, as shown in Figure 4-13. Figure 4-13: Save message 4.2.5 Bus Utilization Rate lick BusFlow to open the Bus Utilization Rate interface. The current bus utilization rate and frame rate can be monitored in real time. The display speed can 19

USBAN-I-mini User Manual be adjusted by adjusting refresh time, as shown in Figure 4-14. Figure 4-14: Bus utilization rate 4.2.6 Error Information Display lick Error Information to open the Error Information Display interface. When there is error occurred in the AN channel, it will print the error information (transmitting error counter value and receiving error counter value) and the time when the error takes place, as shown in Figure 4-15. Figure 4-15: Error information display 20

USBAN-I-mini User Manual hapter 5: Interface Function Usage The effective and easy-to-use secondary development function are provided, which support various development environments like V, #, Labview, LINUX, etc, as shown in Figure 5-1. Figure 5-1: Development environment support 5.1 How to call dynamic library in Windows First, save the library function file into the working directory. The library function file contains 3 files (ontrolan.h, ontrolan.lib and ontrolan.dll) and 1 folder (kerneldlls). 5.1.1 How to call dynamic library in V development environment (1) Include the ontrolan.h file into the file with.pp extension. For example, #include ontrolan.h (2) Set ontrolan.lib file link in the project linker setting. For example, add ontrolan.lib in the onfiguration Properties Linker Input Additional dependent items of the project property page in the V7 environment. 5.1.2 How to call dynamic library in VB development environment The dynamic library can be called after making the following declaration. Grammar: 21

USBAN-I-mini User Manual [Public Private] Declare Function name Lib "libname" [Alias "aliasname"] [([arglist])] [As type] Declare statement contains the following parts: Public (optional) It is used to declare the functions that can be called in all procedures of all modules. Private (optional) It is used to declare the functions that can only be used in the modules including this declaration. Name (required) Any legal function name. It is the function name at DLL entry point and case-sensitive. Libname (required) It contains the declared function dynamic link library name or code source name. Alias (optional) It indicates the function to be called has another name in DLL. If an external function has the same name with a certain function, this parameter is used. When the function in DLL has the same name with the public variable and constant in the same area or the other procedures, this parameter can be used. If the naming of a certain character of the function in DLL does not comply with the naming convention of DLL, this parameter can also be used. Aliasname (optional) Dynamic link library. If the first character is not a numeric symbol (#), the aliasname is the name of the function at DLL entry point. If the first character is (#), the sequent character should specify the number of the function in the entry point. Arglist (optional) It represents the argument list to be passed when calling this function. Type (optional) It is the data type of the function return value, which can be Byte, Boolean, Integer, Long, urrency, Single, Double, Decimal (not supported currently), Date, String or Variant, user-defined type, or object type. The grammar of arglist parameter is as follows: [Optional] [ByVal ByRef] [ParamArray] varname[( )] [As type] Description: 22

Optional (optional) USBAN-I-mini User Manual It indicates that the parameter is not required. If this option is used, the subsequent arguments in arglist must be optional and must be declared using the Optional keyword. If ParamArray is used, any parameter can not use Optional. ByVal (optional) It indicates this parameter is passed by value. ByRef (optional) It indicates this parameter is passed by address. For example: Public Declare Function VI_OpenDevice Lib "ontrolan" (ByValdevicetypeAs Long, ByValdeviceind As Long, ByVal reserved As Long) As Long 23

USBAN-I-mini User Manual 5.2 Interface Library Function Use Flow hart 24

USBAN-I-mini User Manual hapter 6: Inspection and Maintenance The main electrical components of USBAN-I-mini interface card are semiconductor parts. Although these parts have long life time, they may age quickly if used in improper environment. Therefore, the device should be inspected regularly to guarantee it is used in the allowable condition. The device is recommended to be inspected at least once per 6 months to 1 year, and it should be inspected more frequently if used in the improper environment. If there is problem occurred during the device maintenance, please read the following table to find the cause. If the problem can not be solved yet, please contact ZLG ZHIYUAN Electronics. No. ontent Inspection riterion Operation 1 Power supply Ambient 2 environment heck the voltage fluctuation of power supply input heck ambient temperature (including internal temperature in the closed environment) heck ambient humidity (including internal humidity in the closed environment) heck the accumulation of dust, powder, salt, metal shavings heck whether water, oil, or chemical spray touches the device heck whether there is corrosive or flammable gases around the device heck vibration and shock heck the noise source near the device +5V D USB port power supply Use a voltmeter to measure the USB port voltage on the power supply input terminal. -25 ~+85 Use a thermometer to measure temperature and ensure the ambient temperature remains within the allowable range. The relative humidity Use a hygrometer to measure should be 10%~90% humidity and ensure the without ambient humidity remains air-conditioning. within the allowable range. No accumulation lean and protect the device. No spray touches If necessary, please clean and the device. protect the device. No corrosive or Smell or use a sensor to flammable gas check whether there is corrosive or flammable gas. Vibration and shock If necessary, please install a within the specified gasket or other shock limits absorber. No important noise Isolate the device from noise signal source source or protect the device 25

USBAN-I-mini User Manual No. ontent Inspection riterion Operation heck the connection of each unit and whether each unit has No loosening Fully press the connectors together and lock them with the slider been securely locked with next unit. heck whether the cable connector is inserted and locked No loosening orrect any error connection installation. 3 Installation completely. and wiring heck whether there is No loosening Tighten the screw with a loose screw in the screwdriver. external wiring. heck the crimp connector in the There is enough space between heck it visually, and adjust it if necessary external wiring connectors. heck whether there is any damage in the external cable. No damage heck it visually, and replace the cable if necessary 26

USBAN-I-mini User Manual hapter 7: Rights & Statements This document provides information about ZHIYUAN electronic products. This document does not grant any intellectual property license and does not grant any intellectual property license by express or implied, or by way of prohibited speech or other means. ZHIYUAN Electronics shall not be liable for any liability other than the liability stated in the terms and conditions of sale of its products. Furthermore, with regard to the sale and / or use of its products, ZHIYUAN Electronics does not makes any express or implied warranty, including any use of the product for specific purposes, merchantability or infringement of any patent, copyright or other intellectual property rights. The products from ZHIYUAN electronic are not designed for medical, life-saving or life-sustaining purposes. ZHIYUAN Electronics reserves the right to revise product specifications and descriptions at any time without notice. 27

USBAN-I-mini User Manual Appendix A: AN Message Filter Settings The AN message filter of this converter is designed based on the PeliAN mode of PHILIPS SJA1000 AN controller. The filter of SJA1000 is composed of 4 groups (4 bytes) of acceptance code register (AR) and 4 groups (4 bytes) of acceptance mask register (AMR). The AR value is predefined acceptance code value, and the AMR value indicates whether the corresponding AR value is used for acceptance filtering. However, some registers of the filter are not used in some modes of the SJA1000. For ease of use, only the actual value of the filter is involved in the configuration software and the irrelevant data is discarded. The general rule of filtering is that each acceptance mask bit corresponds to an acceptance code bit. When the acceptance mask bit is 1 (that is, don t care), it indicates acceptance regardless of whether the received frame ID bit is equal to the corresponding acceptance code bit; however, when the acceptance mask bit is 0 (relevant), it indicates acceptance only if the received frame ID bit is equal to the corresponding acceptance code bit. And only when all single bit comparisons signal acceptance, AN controller will receive the frame message. The filter mode is divided into single filter and dual filter. The filter is slightly different between standard frame and extended frame. If the user-defined acceptance mask is set in the configuration software, all filter function is enabled, which is described as follows: A.1 Single Filter onfiguration In this filter configuration, one long filter could be defined. The bit correspondences between the filter bytes and the message bytes depend on the currently received frame format. Standard frame: if a standard frame format is used, only part of data bits (lower 11 bits) of the first two AR bytes (AR3 and AR4) is used for acceptance filtering; similarly, only lower 11 bits of AMR3 and AMR4 are used for acceptance filtering. If a bit in AMR is 0 (relevant), when the corresponding bit (such as, AR1.0 corresponds to AMR1.0 and ID.00) in AR is equal to the received frame identifier bit, it indicates acceptance (logic 1); when the values of two bits are not equal, it indicates not acceptance (logic 0). On the other hand, if a bit in AMR is 1, it indicates acceptance (logic 1) regardless of whether the corresponding bit in AR is equal to the received frame identifier bit. For a successful reception of a message, all single bit comparisons have to signal acceptance, as shown in Figure 8-1. 28

USBAN-I-mini User Manual Acceptance code Acceptance mask Received frame identifier Message bit Acceptance code bit Acceptance mask bit bit x of data byte Acceptance ode Register Acceptance Mask Register Accepted Not accepted Figure 8-1: Single filter configuration, receiving standard frame messages Extended frame: when an extended frame format is used, since the frame identifier is 29 bits, part of data bits (lower 29 bits) of four AR bytes is used for acceptance filtering; similarly, only lower 29 bits of AMR are used for acceptance filtering. For a successful reception of a message, all single bit comparisons have to signal acceptance, as shown in Figure 8-2. Acceptance code Acceptance mask Frame identifier Filter 1 Acceptance mask bit Acceptance code bit Acceptance ode Register Acceptance Mask Register Frame identifier bit Accepted Not accepted Filter 2 Acceptance code bit Acceptance mask bit bit x of data byte Figure 8-2: Single filter configuration, receiving extended frame messages. 29

A.2 Dual Filter onfiguration USBAN-I-mini User Manual In this filter configuration, two short filters can be defined. A received message is compared with both filters to decide whether this message should be copied into the receive buffer or not. If at least one of the filters signals an acceptance, the received message becomes valid. The bit correspondences between the filter bytes and the message bytes depend on the currently received frame format. Standard frame: for a standard frame, it means the acceptance filtering is performed for the received frame identifier in the case of two single filters. The acceptance logic is shown in Figure 8-3. For a successful reception of a message, all single bit comparisons of at least one complete filter have to signal acceptance. The message frame can be received only when at least one filter signals acceptance. Filter 1 Received frame identifier Filter 2 Filter 1 Acceptance mask bit Acceptance code bit Acceptance ode Register Acceptance Mask Register Frame identifier bit Accepted Not accepted Filter 2 Acceptance code bit Acceptance mask bit bit x of data byte Figure 8-3: Dual filter configuration, receiving standard frame messages. Extended frame: for an extended frame, the two defined filters are identical. Both two filters only compare the first two bytes of extended identifier (i.e., ID.28~ID.13), not the whole 29 bit identifier, as shown in Figure 8-4. 30

USBAN-I-mini User Manual For a successful reception of a message, all single bit comparisons of at least one complete filter have to signal acceptance. The message frame can be received only when at least one filter signals acceptance. Filter 1 Received frame identifier Filter 2 Filter 1 Acceptance mask bit Acceptance code bit Acceptance ode Register Acceptance Mask Register Frame identifier bit Filter 2 Acceptance code bit Acceptance mask bit Accepted Not accepted bit x of data byte Figure 8-4: Dual filter configuration, receiving extended frame messages. 31

USBAN-I-mini User Manual Appendix B: DB9 to OBD Interface B.1 Function Introduction The DB9-OBD is an accessory of the USBAN-I-mini device. One terminal is connected to the Port header of USBAN-I-mini (DB9 interface), and another terminal directly plugs into the OBD interface of automobile, so that users can use the USBAN-I-mini to diagnose and test an automobile. Figure 9-1: Appearance of DB9-OBD B.2 Technical Specifications Input voltage range: 60V. Input current range: 4A@40. Isolation resistance between lines: >=100MΩ. Temperature range: -20~+80. Times of plugging and unplugging: >=100. B.3 Pin Information B.3.1 Pin Assignments of DB9 onnector 32

USBAN-I-mini User Manual Figure 9-2: Pin assignments of DB9 connector B.3.2 Pin Description of DB9 connector Pin No. Pin Name Description 1 N. Not used. 2 AN_L AN_L signal line 3 AN_GND Reference ground 4 N.. Not used 5 AN_SHIELD Shielded line 6 AN_GND Reference ground 7 AN_H AN_H signal line 8 N.. Not used 9 N.. Not used Figure 9-3: Pin description of DB9 connector B.3.3 Pin assignments of OBD connector Figure 9-4: Pin assignments of OBD connector B.3.4 Pin Description of OBD onnector Pin No. Pin Name Description 5 GND onnect to Pin 6 of DB9 directly 12 ANH -- 13 ANL -- Notes: Other pins are not used and left floating. Figure 9-5: Pin description of OBD connector 33

B.4 Mechanical Dimensions USBAN-I-mini User Manual Figure 9-6: Mechanical dimensions of DB9 connector Figure 9-7: Mechanical dimensions of OBD connector 34

USBAN-I-mini User Manual Appendix : Standard SJA1000 Baudrate No. Baudrate rystal Oscillator Frequency = 16MHz (Kbps) BTR0 (Hex) BTR1 (Hex) 1 5 BF FF 2 10* 31 1 3 20* 18 1 4 40 87 FF 5 50* 09 1 6 80 83 FF 7 100* 04 1 8 125* 03 1 9 200 81 FA 10 250* 01 1 11 400 80 FA 12 500* 00 1 13 666 80 B6 14 800* 00 16 15 1000* 00 14 Notes: The value with * in the table is the baudrate recommended by IA association. 35

Sales Information USBAN-I-mini User Manual Guangzhou ZHIYUAN Electronics o., Ltd Address:Floor 2, Building No.7, Huangzhou Industrial Estate, hebei Road, Tianhe District, Guangzhou. Zip ode:510660 Website:www.zlg.cn Nationwide service hotline:400-888-4005 Nationwide service hotline:400-888-4005 Sales and service network: Guangzhou Sales Office Floor 2, Building No.7, Huangzhou Industrial Estate, hebei Road, Tianhe District, Guangzhou. TEL:(020)28267985 22644261 Shanghai Branch: Shanghai Room 12E, Jingcheng Building (E), No.668 Beijing Road (E), Shanghai. TEL:(021)53865521 53083451 Beijing Branch F/19, Haojing Building A, No.108 Zhichun Road, Haidian District, Beijing. TEL:(010)62536178 62635573 Shanghai Branch: Nanjing Room 1501, Pearl River Building, No.280 Pearl River Road, Nanjing. TEL:(025)68123923 68123920 Shenzhen Office Room 1203, F/12 Electronics Building, No.2072 Shennan Road (M), Futian District, Shenzhen. TEL:(0755)83640169 83783155 Shanghai Branch: Hangzhou Room 502, Jiangnan Electronics Building, No.217 Tianmushan Road, Hangzhou. TEL:(0571)89719491 89719493 Wuhan Office Room 12128, No.158 Luoyu Road, Guangbu Village, Hongshan District, Wuhan. TEL:(027)87168497 87168397 hongqing Office Room 2705, Atlantic International Building (SEG Electronics Market), Shiqiaopu Science and Technology Park Road I, hongqing. TEL:(023)68796438 68797619 hengdu Office Room 403, Digital Technology Building, No.1 Yihuan Road, South 2nd section, hengdu. TEL:(028)85439836 85432683 Xi an Office Room 1201, Pacific Building, No.54 hangan Road (N), Xi an. TEL:(029)87881295 87881296 Please contact us with the above information. Thank you for your attention to our products! 36