Difference between revisions of "Can-hacking"
Line 5: | Line 5: | ||
* Nathan - $40 | * Nathan - $40 | ||
+ | * Jay - $40 | ||
Revision as of 17:01, 19 May 2011
Our electric wheel chair appears to use a derivative of the CAN bus for it's control network, we need some tools for working on this. There are some different ways to go, however on something like this we need known-good tools to start out with. If anyone wants to go in on a CANUSB cable we can begin hacking on this wheel chair controller. From what I've read this cable essentially gives you a serial interface to the CAN bus, use minicom/hyperterminal/etc. to read data off the bus and to inject commands into it. In theory we could watch the joystick issue commands to the controller and then write some arduino code to mimic the joystick.
Contents |
CANUSB interface cable money
We need $150 to buy this, who wants to go in?
- Nathan - $40
- Jay - $40
CAN Interfaces
USA reseller appears to be imagecraft again, appears to be the RS232 device on the above page.
- SJA1000 IC used by the CANDIP-M162 board:
http://www.nxp.com/#/pip/pip=[pip=SJA1000]|pp=[t=pip,i=SJA1000]
- DX key - parallel port DXBUS interface sold by Dynamic Controls (no longer sold):
Documents relating to our wheel chair, controller, and the DX Bus protocol
- Ours is the Alante 202: [4]
- Maker of the controller: [5]
- Wheel chair parts list, including Dynamic controller parts: [6]
Dolphin after-market joystick made for our wheelchair series
Raptor PS servicemanual_Vedlegg 1_dolphin-installation-manual.pdf [7]
- page 22:
The DX Hand Held Programmer (HHP) is the normal programming tool used by dealers, allowing easy adjustment of all commonly adjusted Drive Program parameters.
Warning : The DX HHP is for use only by wheelchair manufacturers, their authorised dealers and support personnel. It is not intended for use by the wheelchair user.
The DX HHP Manual should be read and understood before attempting to use it.
Fault codes: [8]
Other peoples tribulations on this same subject
Make: [9]
Engineering project using DXBUS protocol, they used a DX hardware interface to control the chair via a laptop: [10]
A Smart Electric Wheelchair Using UPnP They used some parallel port interface to insert their laptop into the system to issue commands: [11]
Others asking about reversing the DX Bus protocol: [12]
Hacking
Interfacing to DXBUS with a PIC
- PIC dxbus hacking (dosman's note: this search no longer finds schematics for the controller, included for completeness only):
[13] ... Google this --- Dynamic DX Joystick Controller schematic -- and you will get a rather larger [93 page PDF file] that explains the whole specification. This is suppose to be THE 1101 joystick module. ...
- DXBUS info (SLM integration):
- from the manual:
... Programmable parameters relating to the SLM are contained in the DX Remote (UCM Remote) and the SLM programs. These programs can be modified using the PCD (Programming Configuration Diagnostic) tool. ...
Verification that DXBUS is based on CAN
DXBUS appears to be partially or fully based on the CAN bus based on several references. This is from the Dolphin joystick manual (page 50): [15]
CAN short fault Cause:
1. Short between CANL and CANH.
Action: < The short may be within a module or within a DX Cable, or the exposed DXBUS contacts may be shorted by foreign material. Ensure that all DXBUS contacts are clean.
CAN L fault Cause:
CANL failure.
Action < Check for a short from CANH to another DXBUS wire, or a short