Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interfaces:usb2can [2022/12/07 12:18] – [Test] darron | interfaces:usb2can [2022/12/19 00:32] (current) – [Upgrade] darron | ||
---|---|---|---|
Line 2: | Line 2: | ||
<wrap right> | <wrap right> | ||
{{: | {{: | ||
+ | \\ \\ | ||
+ | {{: | ||
</ | </ | ||
Line 15: | Line 17: | ||
CAN Device Drivers -> | CAN Device Drivers -> | ||
CAN USB interfaces -> | CAN USB interfaces -> | ||
- | < > 8 devices USB2CAN interface | + | <M> 8 devices USB2CAN interface |
</ | </ | ||
Line 41: | Line 43: | ||
===Termination=== | ===Termination=== | ||
- | There is no termination resistor in the USB2CAN and one can | + | There is no termination resistor in the USB2CAN and 120 ohms can |
- | be placed within | + | be placed within |
=== Test === | === Test === | ||
Line 61: | Line 63: | ||
cansend can0 123# | cansend can0 123# | ||
cangen can0 | cangen can0 | ||
+ | </ | ||
+ | |||
+ | === Pinout === | ||
+ | |||
+ | DB9 male socket | ||
+ | |||
+ | < | ||
+ | 1 2 3 4 5 | ||
+ | 6 7 8 9 | ||
+ | |||
+ | STANDARD | ||
+ | 2 CAN L | ||
+ | 3 GND | ||
+ | 6 GND | ||
+ | 7 CAN H | ||
+ | </ | ||
+ | |||
+ | === Upgrade === | ||
+ | |||
+ | Install dfu-util from source. | ||
+ | |||
+ | ==dfu-util== | ||
+ | |||
+ | < | ||
+ | dfu-util -V | ||
+ | dfu-util 0.11-dev | ||
+ | </ | ||
+ | |||
+ | ==Flash== | ||
+ | |||
+ | Hold down button with a paper clip, or more easily prise | ||
+ | open case and press the button with a thumb and insert | ||
+ | device in usb port. | ||
+ | |||
+ | When upgrading omit the device ID because the firmware is | ||
+ | for product id 0. | ||
+ | |||
+ | < | ||
+ | sudo dfu-util -D usb2can_1_7.dfu | ||
+ | </ | ||
+ | |||
+ | ==dmesg== | ||
+ | |||
+ | < | ||
+ | new full-speed USB device number 24 using dwc_otg | ||
+ | New USB device found, idVendor=0483, | ||
+ | New USB device strings: Mfr=1, Product=2, SerialNumber=3 | ||
+ | Product: USB2CAN converter | ||
+ | Manufacturer: | ||
+ | SerialNumber: | ||
+ | usb_8dev can0: firmware: 1.7, hardware: 1.0 | ||
</ | </ | ||
Line 72: | Line 125: | ||
[[https:// | [[https:// | ||
+ | |||
+ | /* | ||
+ | [[https:// | ||
+ | */ | ||
+ | |||
+ | [[https:// |