Peak-System PCAN-USB (CAN-Adapter)

Aus Wiki
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Hardware

1. 3V3? GND? n.c.? 2. n.c.
3. MCU Pin 3 (nRESET)? 4. n.c.
5. MCU Pin 29 (TCK/SWDCLK)? 6. MCU Pin 33 (TMS)
7. MCU Pin 34 (TDO) 8. MCU Pin 32 (TDI)
9. n.c. 10. MCU Pin 35 (nTRST)
11. MCU Pin 28 (SWO) 12. MCU Pin 39 (SWDIO)
  • J3: MCU UART, 2x3 Pins, RM 2.54mm
1. MCU Pin 3 (nRESET) 2. MCU Pin 47 (TXD)
3. MCU Pin 46 (RXD) 4. MCU Pin 44 (VDD)
5. Primary side GND/VSS 6. MCU Pin 4 (CLKOUT)

unsure:

  • LM3671: Step-Down DC/DC converter

Testpunkte

  • TP2 = CAN-H
  • TP7 = CAN-L

Linux

General usage

modprobe peak_usb
ip link set can0 type can bitrate 1000000
ifconfig can0 up
candump can0
cansend can0 123#

Syslog

usb 1-1.1.4: new full-speed USB device number 123 using ehci-pci
usb 1-1.1.4: New USB device found, idVendor=0c72, idProduct=000c
usb 1-1.1.4: New USB device strings: Mfr=10, Product=4, SerialNumber=0
usb 1-1.1.4: Product: PCAN-USB
usb 1-1.1.4: Manufacturer: PEAK-System Technik GmbH
peak_usb 1-1.1.4:1.0: PEAK-System PCAN-USB adapter hwrev 84 serial FFFFFFFF (1 channel)
peak_usb 1-1.1.4:1.0 can0: attached to PCAN-USB channel 0 (device 255)
peak_usb 1-1.1.4:1.0 can0: bit-timing not yet defined
peak_usb 1-1.1.4:1.0 can0: setting BTR0=0x00 BTR1=0x14
peak_usb 1-1.1.4:1.0 can0: setting BTR0=0x00 BTR1=0x14

Module

can_dev                24576  1 peak_usb
can_raw                20480  0 
can                    49152  1 can_raw

ifconfig can0

can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:483925 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 
          RX bytes:2901938 (2.7 MiB)  TX bytes:0 (0.0 B)

Links

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge