Author Topic: OEM controls joystick  (Read 17254 times)

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
OEM controls joystick
« on: February 10, 2012, 02:45:13 PM »
Where to start??
I have a HCJS9M15488 with limited documentation and so far no support from OEM controls......using can king I can see that it is in pre operational state   Identifier=0x70A and D0=7F  I tried using the JS6000 HWD file with no luck, so now I am just using canking solo trying to get any kind of responce at this point, if anyone has worked with OEM and has an Idea please let me know.
Thanks

Offline dlewis

  • PLUS+1 Guru
  • *****
  • Posts: 103
  • Karma: +2/-0
    • Getman Corporation
Re: OEM controls joystick
« Reply #1 on: February 10, 2012, 04:00:34 PM »
I use OEM CAN joysticks and find that they conform to the JS6000 hardware block.  I've had no problems.  It could be your addressing.  I use a U8 input to the SA pin and in my case the address is 208.  The manual for the JS6000 hardware block talks about using a hex input.  So I'm not sure what's going on there.  Good Luck.

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Re: OEM controls joystick
« Reply #2 on: February 10, 2012, 05:08:15 PM »
Making headway, turns out the device address is defined by a resistor on the circuit board allowing up to 10 joysticks on one system. 
Node ID:
72 (0x48) + ID resistor offset
ID resistor allows for 10 values {0 ... 9}
Node ID 127 (0x7f) indicates that the joystick is unable to determine its address from the ID
resistor.
A CAN joystick can derive its CAN ID from its firmware (a fixed or static address programmed
in flash) or from a CAN bus ID key that is plugged into two quick disconnect terminals on the
CAN joystick or from a board mounted fixed resistor. OEM has designed the CAN joystick with
the CAN bus ID key so that up to 10 nodes of the same joystick can be used in a system.

my node id is 0xA  does this make sense to anyone else??

i am now in operational state, I will try the SJ6000 now,
Thanks dlewis

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Re: OEM controls joystick
« Reply #3 on: February 10, 2012, 06:12:45 PM »
Dlewis,

Is your oem joystick j1939 or can open?
Turns out mine is CANopen so Im not so sure the SJ6000 is going to work for me.
« Last Edit: February 10, 2012, 06:15:50 PM by Jpshockster »

Offline dlewis

  • PLUS+1 Guru
  • *****
  • Posts: 103
  • Karma: +2/-0
    • Getman Corporation
Re: OEM controls joystick
« Reply #4 on: February 10, 2012, 07:53:37 PM »
I don't know off hand if it's J1939 or CANopen.  If I had to guess it's J1939.

I notices that I'm using the same series Joystick as the one you are using.  Try using an address of 208 or 209 into the SA port of the hardware block.  If I remember right, OEM uses 208 as their standard.

OEM should be able to tell you what address the Joystick uses. 

Your problem could also be due to a terminating resister in the CAN line.  I chose not to have the resister built into the joystick and supply my own terminating resister to the ends of the CAN line.

Offline Neil

  • PLUS+1 Expert
  • ****
  • Posts: 96
  • Karma: +2/-0
Re: OEM controls joystick
« Reply #5 on: February 13, 2012, 10:19:54 PM »
Hi.
Most CANopen stuff I have used todate required a bootup message to make the device operational and operated on 125kb.

Not sure if that helps?

Neil.

Offline Jpshockster

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +4/-0
    • Landoll
Re: OEM controls joystick
« Reply #6 on: February 16, 2012, 01:26:26 PM »
Thanks for the suggestions, I ended up making my own function block for the can open joystick.  The actual problem was lack of support from the vendor....making the joystick operational just required the following message    identifier= 0 - broadcast to all  byte 0= 1 - make operational  and byte 1= A - the id of the joystick.  Thanks again for all the input.
Sincerely
JP