This shows you the differences between two versions of the page.
can_pci-200 [2006/08/17 11:41] manuel created |
can_pci-200 [2014/01/16 20:08] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
It can be built without the other OCERA components. The lincan drivers can be used under RT-Linux and plain Linux. | It can be built without the other OCERA components. The lincan drivers can be used under RT-Linux and plain Linux. | ||
- | Patches: | ||
- | * esdpci200 Patch Version 0.0.1 (for lincan 0.3.3): {{:lincan033_esdpci200_0.0.1.patch.txt|:lincan033_esdpci200_0.0.1.patch.txt}} | ||
- | Links:\\ | + | |
+ | |||
+ | ===== Patches: ===== | ||
+ | * esdpci200 Patch Version 0.0.6 (for lincan CVS of 20070814): {{lincan-cvs20070814_esdpci200_0.0.6.patch.txt|}} | ||
+ | * esdpci200 Patch Version 0.0.6 (for lincan 0.3.3): {{lincan033_esdpci200_0.0.6.patch.txt|}} | ||
+ | * Minor changes, removed debugging printk's | ||
+ | * esdpci200 Patch Version 0.0.5 (for lincan 0.3.3): {{lincan033_esdpci200_0.0.5.patch.txt|}} | ||
+ | * Interrupt handling improved. Supports both channels now. | ||
+ | * esdpci200 Patch Version 0.0.4 (for lincan 0.3.3): {{:lincan033_esdpci200_0.0.4.patch.txt|:lincan033_esdpci200_0.0.4.patch.txt}} | ||
+ | * released 20070606 | ||
+ | * this patch adds interrupt support, so the driver can now not only send, but also receive. | ||
+ | * //esdpci200 Patch Version 0.0.3 does not exist.// | ||
+ | * esdpci200 Patch Version 0.0.2 (for lincan 0.3.3): {{:lincan033_esdpci200_0.0.2.patch.txt|:lincan033_esdpci200_0.0.2.patch.txt}} | ||
+ | |||
+ | === Building it: === | ||
+ | //(plain Linux, without the rest of the OCERA stuff)//: | ||
+ | tar -xzf lincan-0.3.3.tar.gz | ||
+ | cd lincan-0.3.3 | ||
+ | patch -p1 < ../lincan033_esdpci200_0.0.4.patch.txt | ||
+ | sh ./switch-omk2std | ||
+ | make SUPPORTED_CARDS="esdpci200 virtual" | ||
+ | mknod -m666 /dev/can0 c 91 0 | ||
+ | mknod -m666 /dev/can1 c 91 1 | ||
+ | |||
+ | === Running/Testing: === | ||
+ | insmod ./can.o hw=esdpci200 io=0 irq= baudrate=10 | ||
+ | cd utils | ||
+ | ./rxtx # and answer the questions | ||
+ | |||
+ | **Notes:** | ||
+ | * the baudrate module option specifies the baudrate in kHz (kBaud). Common rates are 10kBaud to 1MBaud: | ||
+ | * 10kBaud | ||
+ | * 20kBaud | ||
+ | * 40kBaud | ||
+ | * 50kBaud | ||
+ | * 80kBaud | ||
+ | * 100kBaud | ||
+ | * 125kBaud | ||
+ | * 200kBaud | ||
+ | * 250kBaud | ||
+ | * 400kBaud | ||
+ | * 500kBaud | ||
+ | * 666kBaud | ||
+ | * 800kBaud | ||
+ | * 1MBaud | ||
+ | * Don't forget to have the CAN bus terminated at both ends of the cable (usually 120 Ohms) between CAN_H and CAN_L. | ||
+ | * the CAN/PCI-200 has provisions to add a termination resistor to the board (not factory installed by default) | ||
+ | |||
+ | |||
+ | ===== Links: ===== | ||
* ESD: http://esd-electronics.com/ | * ESD: http://esd-electronics.com/ | ||
* CAN/PCI-200 page: http://www.esd-electronics.com/german/products/CAN/can-pci-200_e.htm | * CAN/PCI-200 page: http://www.esd-electronics.com/german/products/CAN/can-pci-200_e.htm | ||
Line 16: | Line 63: | ||
* Freshmeat: http://freshmeat.net/projects/lincan/ | * Freshmeat: http://freshmeat.net/projects/lincan/ | ||
* Sourceforge: http://sourceforge.net/project/showfiles.php?group_id=51629&package_id=108731 | * Sourceforge: http://sourceforge.net/project/showfiles.php?group_id=51629&package_id=108731 | ||
+ | |||
+ |