亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readme.txt

?? linux下PCI_CAN 的驅動程序
?? TXT
字號:
				 README=============================================================================	   ADVANTECH CAN comunication cards device driver, Ver. 1.0,		  Installation & Program Guide		    for Linux Kernel 2.4.xx	       Copyright (C) 2002, ADVANTECH Co, Ltd.=============================================================================Contents1. Introduction2. System Requirement3. Installation4. User space program for this driver5. Troubleshooting-----------------------------------------------------------------------------1. Introduction      ADVANTECH CAN comunication cards device driver, Ver. 1.0,   supports following boards.        - PCI-1680	: 2 port Isolated PCI CAN-bus Card.	    This driver supports Linux Kernel 2.4.xx, Intel x86  hardware    platform. Any problem occurs, please contact ADVANTECH at    support@ADVANTECH.com.tw.   This driver and utilities are published in form of source code under   GNU General Public License in this version. Please refer to GNU General   Public License announcement in each source code file for more detail.   In ADVANTECH's ftp sites, you may always find latest driver at   ftp://ftp.ADVANTECH.com  or ftp://ftp.ADVANTECH.com.tw.   This version of driver can be installed as Loadable Module (Module driver)   Before you install the driver, please refer to hardware installation    procedure in the User's Manual.-----------------------------------------------------------------------------2. System Requirement   - Hardware platform: Intel x86    - Kernel version: 2.4.x   - gcc version 2.72 or later-----------------------------------------------------------------------------3. Installation   3.1 Hardware installation       Just install the card into your computer, please refer to hardware       installation procedure in the User's Manual.        3.2 Driver files and device naming convention       The driver file may be obtained from ftp, CD-ROM or floppy disk. The       first step, anyway, is to copy driver file "adv_can.tar.gz" into        specified directory. e.g. /can. The execute commands as below.       # cd /pci_can       # tar -zxvf pci_can.tar.gz         3.3 Module driver configuration       Module driver is easiest way to install. If you prefer static driver       installation, please skip this paragraph.       1. Find "Makefile" in /can/pci_can/driver/, then run          # make	  The driver files "pci_can.o"  will be properly compiled	  and copied to system directories respectively.   3.4 Driver load.       After configure your driver, you can load the driver manully or automatic       load it at the boot time.       1. Manully load	  You can load the driver by following command:	  # cd /can/pci_can/driver/	  # insmod pci_can.o	  This will activate the moduler driver. You can see CAN Cards found. 	  You may run "lsmod" to check if "pci_can" is activated.       2. Auto load driver at the boot time.	  For the above description, you may manually execute "insmod"           to activate this driver.           However, it's better to have a boot time configuration to           eliminate manual operation. Boot time configuration can be           achieved by rc file. We offer one "rc.can" file to simplify           the procedure under "pci_can/driver".	  	  Run following command for setting rc files.	  # cd /can/pci_can/driver	  # cp ./rc.can /etc/rc.d	  # cd /etc/rc.d	  Modify the /etc/rc.d/rc.can file, change the following line:	  	  insmod /can/pci_can/driver/pci_can.o	  	  Then modify the /etc/rc.d/rc.local,	  Add "/etc/rc.d/rc.can" in last line,           Reboot and check if pci_can.o activated by "lsmod" command.      3.5 Create device driver file   	Ensure you have insert the adv_can module in the kernel(which can   	be show by the lsmod command)   	then use the command:   	   	# cd /can/pci_can/drvier   	# ./install   	   	Check the created device file:   	   	#ls -l /dev/can*   	crw-r--r--   1 root    root     254,   0 Jun 15 15:32 /dev/can0   	crw-r--r--   1 root    root     254,   1 Jun 15 15:32 /dev/can1   					 |     |	   					 |     |---- the minor number   					 |---------- the major number   	you also can get the major number of this device driver from system:   	   	# cat /proc/devices   	   	you can find the major number of the adv_can device driver, and ensure   	the major number displayed use ls command is as same as the major get    	from system. Other wise use the following command to create the correct   	device driver file:   	   	# mknod /dev/can0 c 254 0   	# mknod /dev/can1 c 254 1   			     |-----the major number which get from system   3.6 Driver rmmove.        You can use the following command to remove the driver from the system:		# rmmod pci_can-----------------------------------------------------------------------------4. User space program for this driver      4.1 Include file   	  To program for this driver, the user must include the    	  "./driver/adv_can.h" head file. You also can copy this head    	  file to your owner work dirctory and include it.      4.2 Message and CAN device struct  	CAN message struct used to send or recieve a message to or from the driver: 		typedef struct {         	unsigned char ff;     /*infomation of frame, 0 for sff, 128 for eff*/  		unsigned char rtr;     /*remore frame*/        	unsigned int  id;       /* message id */		unsigned char dlen;     /* message length */        	unsigned char data[8];  /* message */	} can_msg_t;		CAN device struct used to setup the option of the hardware, such as	baud rate and other value.		typedef struct {        	unsigned char accode[4];   /* access code */        	unsigned char accmask[4];  /* access mask */		unsigned char speed;       /* baud rate */		unsigned char interruptmask;		unsigned char protocol;	   /*protocol*/		unsigned char filtertype;    /* filter type */	}CAN_STRUCT;	   4.3 Command   	  This driver can accept the following command, both of these two command   	  can be translated to the driver use the ioctl() method:   	     	  IOCTL_SET_CAN   	  	setup the hardware use a CAN_STRUCT, eg:   	  	ioctl(fd,IOCTL_SET_CAN,&can);   	  IOCTL_RESET_CAN   	  	reset the hardware, eg:   	  	ioctl(fd, IOCTL_RESET_CAN, NULL);   	       4.4 Access to the driver      	  4.4.1 Device driver file   	  	Device file is used to access the device. In the userspace,    	  	the only way to access the device is through the device file.   	  	For this driver, it has two device file, "/dev/can0" for    	  	channel 1 and "/dev/can1" for channel 0. The hardware can be   	  	controled through access these two device file, use the method   	  	such as open(), close(), read(), write() and ioctl().      	  4.4.1 Open   	  	Before access the device file, you need to open it.   	  	Just open the "/dev/can0" or "/dev/can1" as the nomal file.   	     	  4.4.2 Reset and setup the hardware   	  	After open the device file, you need to reset and setup the   	  	device through ioctl command as following. 		note: the data field of setup struct is different up to protocol.   	  			set to 2.0A protocol:					ioctl(fd, IOCTL_RESET_CAN, NULL);  			can.accode[0]=0x0;      			can.accmask[0]=0xff;    			can.protocol=CAN_PROTOCOL_20A;			can.speed=CAN_125K;		/* baud	rate 125Kbps */ 						ioctl(fd,IOCTL_SET_CAN,&can);				set to 2.0B protocol:				        ioctl(fd, IOCTL_RESET_CAN, NULL);  			for(int i=0;i<4;i++) can.accode[i]=0x0;      			for(int i=0;i<4;i++) can.accmask[i]=0xff;    			can.protocol=CAN_PROTOCOL_20B;			can.speed=CAN_125K;		/* baud	rate 125Kbps */ 			can.filtertype = 0;	  		ioctl(fd,IOCTL_SET_CAN,&can);  		  		  	  4.4.3 Send and recieve message   	  	You can use the standard i/o function(read(), writer()) to read   	  	and write a message to the driver:   	  			case protocol 2.0A:				     msg.id = 0x15;		    		     msg.info = 0;		     msg.dlen = 8;		     for(i=0;i<8;i++)			msg.data[i] = data[i];    		     write(fd, &msg, CAN_MSG_LEN);		case protocol 2.0B:		     msg.id = 0x15;		     msg.info = PELICAN_SFF;		     msg.dlen = 8;		     for(i=0;i<8;i++)			msg.data[i] = data[i];    		     write(fd, &msg, CAN_MSG_LEN);    		    	  4.4.4 Close    	  	Remember to close the device file which has been open before exit    	  	from the program, other wise, the device driver module will can't    	  	be removed from kernel. Juse use the close() function to close it.      	  4.4.5 The program following   	  	The must be control in order:   	  	   	  			open()   	  			  |   	  			  |   	  			reset   	  			  |   	  			  |   	  			setup   	  			  |   	  		    read(),write()	     	  		          |   	  		          |   	  		        close()   	  		           	There are two example program "send.c" and "receive.c". They will be found   	in ./pci_can/test directory.    	The "send.c" program show how to send a message to a refer port.   	The "receive.c" program show how to recieve a message from a port.   	You can complie them use:   	# cd /can/pci_can/test   	# make 	# ./send        0       a        s 			|       |	 |----frame(s for SFF, e for EFF, r for RTR, x for SFF and RTR, y for EFF and RTR)   			|       |---- the CAN protocol, a or b, a for 2.0A b for 2.0B   			|---------- the portnum 	# ./receive     1       a			|       |   			|       |---- the CAN protocol, a or b, a for 2.0A b for 2.0B   			|---------- the portnum  -----------------------------------------------------------------------------5. Troubleshooting   The boot time error mesages and solutions are stated as clearly as   possible. If all the possible solutions fail, please contact our technical   support team to get more help.   Error msg:   pci_can.o: init_module: No such device   Hit: insmod errors can be caused by incorrect module parameters,    includeing invalid IO or IRQ parameters   Solution:   The driver can find the hardware use the given io and irq parameters,   check the hardware install to ensure the correct io and irq parameters.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频免费看| 日韩一区二区免费在线观看| 91在线视频观看| 欧美精品在线观看一区二区| 欧美r级在线观看| 亚洲日穴在线视频| 狠狠色综合播放一区二区| 一本久道久久综合中文字幕| 欧美精品一区二区三区蜜桃视频| 亚洲毛片av在线| 高清在线不卡av| 精品精品欲导航| 五月开心婷婷久久| 91视视频在线直接观看在线看网页在线看 | 欧美日本一区二区三区四区 | 国产精品动漫网站| 精品一区二区日韩| 欧美精选午夜久久久乱码6080| 国产精品视频一二| 韩国毛片一区二区三区| 69堂成人精品免费视频| 一区二区在线观看视频在线观看| 高清视频一区二区| 精品国产一区久久| 男女视频一区二区| 欧美精品乱码久久久久久按摩| 亚洲欧美一区二区三区国产精品| 国产成人在线电影| 久久久精品免费观看| 久久av资源站| 亚洲精品一区二区三区99| 日韩高清中文字幕一区| 欧美日韩一区二区三区不卡| 亚洲一区二区三区四区在线 | 国产一区二区不卡老阿姨| 欧美一级日韩免费不卡| 日本女人一区二区三区| 欧美日韩午夜在线| 天天亚洲美女在线视频| 884aa四虎影成人精品一区| 午夜一区二区三区在线观看| 欧美日韩日日摸| 日韩电影一区二区三区四区| 在线电影院国产精品| 视频一区在线视频| 欧美精品久久久久久久多人混战| 亚洲国产日韩av| 欧美日韩国产高清一区| 国产亚洲一区二区三区在线观看| 日韩成人伦理电影在线观看| 日韩一区二区在线观看视频播放| 日韩专区一卡二卡| 欧美一区二区三区男人的天堂| 视频一区中文字幕国产| 日韩欧美国产综合在线一区二区三区| 日韩精品久久理论片| 欧美日韩国产成人在线91| 日韩精品一级二级| 26uuu国产日韩综合| 国产专区综合网| 亚洲人123区| 欧美精品第1页| 国产福利一区在线| 亚洲视频在线一区二区| 欧美日韩大陆一区二区| 免费高清不卡av| 国产精品日韩成人| 亚洲男人的天堂在线aⅴ视频| 成人国产免费视频| 亚洲chinese男男1069| 国产在线视频精品一区| 亚洲视频在线观看三级| 欧洲激情一区二区| 韩国毛片一区二区三区| 国产精品情趣视频| 911精品产国品一二三产区 | 欧美日韩国产精品成人| 2022国产精品视频| 亚洲国产你懂的| 毛片av一区二区| 91伊人久久大香线蕉| 91片黄在线观看| 高清不卡一二三区| 成人午夜看片网址| 欧洲亚洲国产日韩| 亚洲四区在线观看| 国产成人精品一区二区三区四区 | 日韩欧美电影一二三| 亚洲成人激情社区| 欧美区一区二区三区| 亚洲欧美综合色| 日本道免费精品一区二区三区| 国产午夜久久久久| 99久久精品国产观看| 国产一区二区三区高清播放| 成人开心网精品视频| 欧美色区777第一页| 国产日韩欧美精品一区| 天堂av在线一区| 国产欧美综合色| 91在线观看一区二区| 日韩中文字幕亚洲一区二区va在线| 欧美一区二区三区喷汁尤物| 成人a级免费电影| 蜜臂av日日欢夜夜爽一区| 国产精品区一区二区三| 宅男噜噜噜66一区二区66| 日韩高清欧美激情| 国产女人水真多18毛片18精品视频| 日本高清视频一区二区| 成人午夜激情在线| 蜜臀久久99精品久久久画质超高清 | 久久久高清一区二区三区| 91福利国产成人精品照片| 国产经典欧美精品| 另类调教123区| 视频一区免费在线观看| 亚洲欧美激情小说另类| 久久精品日产第一区二区三区高清版 | 欧美日韩精品一区二区| 国产精品一级在线| 偷拍一区二区三区| 亚洲视频图片小说| 亚洲国产精品99久久久久久久久| 日韩一级大片在线观看| 91精品国产一区二区三区| 国产成人精品免费看| 蜜桃av一区二区三区电影| 亚洲制服欧美中文字幕中文字幕| 中文字幕高清不卡| 中文字幕不卡一区| 亚洲国产高清在线观看视频| 国产午夜精品一区二区三区嫩草| 欧美人妇做爰xxxⅹ性高电影 | 亚洲精品国产一区二区精华液 | 欧美大胆人体bbbb| 日韩欧美一卡二卡| 日韩三级视频在线观看| 精品日产卡一卡二卡麻豆| 欧美电影免费观看高清完整版在| 337p亚洲精品色噜噜噜| 欧美色图第一页| 丁香亚洲综合激情啪啪综合| 极品少妇一区二区| 国产精品1区2区| 波多野结衣中文字幕一区| 91视频观看视频| 欧美午夜在线观看| 欧美精品99久久久**| 777午夜精品免费视频| 精品国产一区久久| 亚洲国产精品ⅴa在线观看| 亚洲三级视频在线观看| 亚洲电影一级片| 舔着乳尖日韩一区| 成人午夜大片免费观看| 91在线你懂得| 欧美一区二区在线免费观看| 日韩精品一区二区三区中文不卡| 日韩午夜电影av| 久久久午夜精品| 亚洲女人的天堂| 亚洲乱码日产精品bd| 一区二区三区在线免费播放| 亚洲色图19p| 午夜影院在线观看欧美| 国产精品资源在线看| 91免费版在线| 日韩精品一区二区三区在线观看| 欧美精品一区二| 一卡二卡欧美日韩| 久久国产精品99久久人人澡| 99久久精品国产毛片| 91精品国产高清一区二区三区| 日韩欧美激情在线| 久久夜色精品国产噜噜av| 久久精品欧美日韩精品| 亚洲一区二区三区精品在线| 精品亚洲aⅴ乱码一区二区三区| 99精品视频在线观看免费| 日韩一区二区三区观看| 国产精品麻豆视频| 亚洲国产成人av网| av毛片久久久久**hd| 日韩欧美国产一二三区| 国产精品久久久爽爽爽麻豆色哟哟 | 国产综合色产在线精品| 色视频成人在线观看免| 欧美一级片在线观看| 最新日韩在线视频| 国产乱对白刺激视频不卡 | 精品亚洲成a人| 欧洲精品中文字幕| 国产精品欧美久久久久无广告 | 亚洲chinese男男1069| www.66久久| 国产日韩欧美制服另类| 三级在线观看一区二区| 91黄视频在线| 中文字幕一区二区三区精华液|