ZLG PCIe-9140I Скачать руководство пользователя страница 18

 

 

15 

©2017  Guangzhou  ZHIYUAN  Electronics

 

Date: 2017/10/09

 

User Manual

 

V1.00

 

 

C

 

Guangzhou ZHIYUAN Electronics Co., Ltd.

 

High  performance  CAN  card  for  PCIe  interface

 

 

PCIe-9140I  User  Manual

 

VCI_CloseDevice  function  only  need  to  be  called  once  when  the  application  is 

initialized and exited. 

In order to disable the current CAN port when closing device, the VCI_ResetCAN 

function should be called to make the current CAN port away from CAN-bus. The 

device  driver  automatically  call  VCI_ReseCAN  to  exit  CAN  bus  only  if  the  last 

device handler is closed. 

8.  How to utilize an interrupt to operate the communication card? 

The PCIe-9140I card does not provide an interface for direct interrupt operation, 

because the interrupt has been processed in the driver. The most of the reasons 

for  that  an  interrupt  needs  to  be  handled  in  the  application  are:  the  application 

does not know when the data will arrive, and it can read the data from buffer only 

if the message reception operation is triggered. The general method to solve this 

problem is to use multiple threads (or multiple tasks), i.e., start a new thread and 

the VCI_Receive function is looped in the thread to query the receive buffer. The 

blocking  mechanism  has  been  implemented  inside  the  VCI_Receive,  and  the 

thread calling will be suspended when there is no data in the buffer. At this point, 

it  does  not  take  up  the  CPU  time  and  the  application  can  still  handle  other 

transactions. 

9.  How to use the VCI_Transmit transmitting function better? 

The  PCIe-9140I  device  driver  provides  16  frames  of  software  transmit  buffer 

FIFO. 16-frame data are transmitted at most each time the VCI_Transmit is called. 

The  transmitting  speed  of  device  is  decided  by  current  computer  software  and 

hardware performance. The continuous transmitting speed is generally between 

2000 frames/s and 4000 frames/s (11Bytes and 1Mbps for standard data frame). 

If  the  transmitting  speed  is  too  fast,  the  data  of  remote  receiving  device  is 

possible to overflow so that the response is lost. Users can increase delay time 

appropriately in the application to reduce the transmitting speed. 

Each frame has a timeout limit during transmission. The timeout for single frame 

transmission is about 2 seconds. If multiple frames are transmitted at a time, the 

timeout for last frame transmission is 2 seconds, and the timeout for other frames 

is  1  second.  The  transmission  timeout  generally  occurs  when  the  CAN-bus  is 

busy  and  the  priority  of  current  node  is  low.  It  is  not  a  function  calling  or 

communication error, and users can write codes to achieve data re-transmission 

(the timeout event seldom occurs in the middle-speed and low-speed network). 

So, it should ensure that the occupancy ratio of CAN bus should not exceed the 

60-70% of bus capacity.   

10. How to use the VCI_Receive function better? 

The  device  driver  provides  100000  frames  of  software  receive  buffer,  which 

provides  sufficient  response  handling  time  for  application  programmers.  When 

the software receive buffer overflows, the device driver will call VCI_ResetCAN to 

Содержание PCIe-9140I

Страница 1: ...0I is a PCI Express x1 4 channel CAN card and a high performance CAN card with 4 channel CAN interface A PC IPC accesses the CAN network through its PCI E port implementing the data acquisition and pr...

Страница 2: ...7 10 09 User Manual V1 00 C Guangzhou ZHIYUAN Electronics Co Ltd High performance CAN card for PCIe interface PCIe 9140I User Manual R Re ev vi is si io on n H Hi is st to or ry y Version Date Modific...

Страница 3: ...t Appearance 2 Chapter 2 Device Hardware 3 2 1 Specifications 3 2 2 Interface Definition 3 2 3 Terminal Resistor 4 2 4 Hardware Installation 5 Chapter 3 Install Driver 7 3 1 Install driver 7 3 2 Check...

Страница 4: ...ronment The PCIe 9140I device provides a unified application programming interface and complete application example code including VC VB Delphi and labview routines facilitating users to develop appli...

Страница 5: ...Ltd High performance CAN card for PCIe interface PCIe 9140I User Manual Programmable CAN Baud rate in the range of 5Kbps 1 Mbps CAN interface DB 9 pin connector configurable 120 terminal resistance i...

Страница 6: ...nector CAN baud rate 5Kbps 1Mbps programmable Data reception capability 14000 frames s per channel Data transmission capability 4000 frames s per channel Windows system drive Supported Linux system dr...

Страница 7: ...al wire 5 V Positive electrode of network power supply 2 3 Terminal Resistor As Figure 2 1 shows there are built in 120 terminal resistors in the CAN channels of PCIe 9140I The interface card selects...

Страница 8: ...an body touch when users use the interface card The PCIe 9140I interface card should be installed when the PC IPC is powered off similarly it should be removed when the PC IPC is powered off The PCIe...

Страница 9: ...d High performance CAN card for PCIe interface PCIe 9140I User Manual Figure 2 3 PCIe 9140I series CAN interface card Note Do not insert extract the PCI E interface card while the computer is power on...

Страница 10: ...dows XP can automatically detect new device and activate the Found new hardware wizard program to install the device driver If there is no prompt information about finding new device please check whet...

Страница 11: ...nstallation 4 The Found new hardware wizard is prompted that the device driver installation has completed Click the Finish button to complete the installation 5 At this point the system will prompt th...

Страница 12: ...5 appears Figure 3 5 Open device manager If the device is installed successfully the PCIe 9140I PCIeCAN Communication Card will appears below the ZLGCAN device class in the Device Manager as shown in...

Страница 13: ...7 System Properties Move cursor to ZLG CAN PCIe 9140I PCIeCAN Communication Card and click right mouse button and then select the uninstall button on the pop up menu Figure 3 8 Uninstall driver Click...

Страница 14: ...tion Standard Operation Power Supply Check the voltage fluctuation at the power supply terminal 12V DC Use a voltmeter to check the power supply at the power supply input Take the necessary measures t...

Страница 15: ...ch unit and each unit has been locked securely with the next unit No loose Press the connector completely together and lock them with the slider Check that the cable connector is fully inserted and lo...

Страница 16: ...ectly however the data can not been sent A Check whether the cable is connected correctly B The cable or board card has problem Please try other ports cables or another board card C Check whether the...

Страница 17: ...umber exceeds the specified range wrong type number etc The error number returned by Win32 GetLastError function is 87 and operate an unopened device which actually is an illegal handle operation The...

Страница 18: ...nsactions 9 How to use the VCI_Transmit transmitting function better The PCIe 9140I device driver provides 16 frames of software transmit buffer FIFO 16 frame data are transmitted at most each time th...

Страница 19: ...returned immediately when the function is called 0 is returned if the receive buffer is empty If Wait is not 0 the number of current read frames is returned immediately if there is data in the receive...

Страница 20: ...Data 4 Byte 8 Data 5 Byte 9 Data 6 Byte 10 Data 7 Byte 11 Data 8 Byte 1 is the frame information Bit 7 FF indicates the frame format and it is 0 for standard frame Bit 6 RTR indicates the frame type a...

Страница 21: ...7 Byte 13 Data 8 Byte 1 is the frame information Bit 7 FF indicates the frame format and it is 1 for extended frame Bit 6 RTR indicates the frame type and it is 0 for data frame 1 for remote frame DLC...

Страница 22: ...7 A Ap pp pe en nd di ix x B B S SJ JF F1 10 00 00 0 S St ta an nd da ar rd d B Ba au ud d R Ra at te e No Baud rate Kbps Crystal Frequency 16MHz BTR0 Hex BTR1 Hex 1 5 BF FF 2 10 31 1C 3 20 18 1C 4 40...

Страница 23: ...t make any express or implied warranties including product specific applicability merchantability or tort liability for any patent copyright or other intellectual property The products from ZHIYUAN El...

Страница 24: ...35573 Shenzhen Office Room 1203 F 12 Electronics Building No 2072 Shennan Road M Futian District Shenzhen TEL 0755 83640169 83783155 Wuhan Office Room 12128 No 158 Luoyu Road Guangbu Village Hongshan...

Отзывы: