Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#186040 - 22/10/2003 11:36 Sony stalk tuner inputs - resistor values fixed?
jbrinkerhoff
member

Registered: 02/04/2002
Posts: 148
OK, thinking about taking the plunge with the stock steering wheel buttons on my jeep. This link

http://www.wjjeeps.com/steering_btn_3c.jpg

shows what they look like, and as you see there are simple resistors in series with each switch. I have (5) functions available, up, down, center btn on left switch. And Up, down on the right one.

Question: can the resistance values the sony stalk interface looks for be set, or is it hard coded? I dont want to rip the steering wheel apart if I dont have to, but either way, anyone have thoughts on how to best map functions? Having not used the tuner yet, Im not sure what buttons do what in tuner mode.

I'm thinking right rocker = vol up/vol down (knob turn?)
Left rocker = <<, >> and the round button. I loose the down arrow, but for most things I could live with that. Radio mode?

Thanks-
Jeff
_________________________
Empeg Mk2a 60G

Top
#186041 - 22/10/2003 12:19 Re: Sony stalk tuner inputs - resistor values fixed? [Re: jbrinkerhoff]
rtundo
addict

Registered: 27/02/2001
Posts: 569
Loc: Albany, NY

Top
#186042 - 22/10/2003 12:24 Re: Sony stalk tuner inputs - resistor values fixed? [Re: rtundo]
rtundo
addict

Registered: 27/02/2001
Posts: 569
Loc: Albany, NY

Top
#186043 - 23/10/2003 12:42 Re: Sony stalk tuner inputs - resistor values fixe [Re: jbrinkerhoff]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
You can supposedly set the stalk resistor values that Hijack recognises:

[hijack]
;; Min/max A/D pairs for all ten buttons on a Stalk
;; Button order is: KOff,KSource,KAtt,KFront,KNext,KPrev,KVolUp,KVolDown,KRear,KBottom
stalk_lhs=0,0,0,0,0,0,0,0,0x40,0x4f,0x53,0x62,0x66,0x7a,0x7c,0x90,0x90,0x90,0xa0,0xa0
stalk_rhs=0x00,0x07,0x10,0x1c,0x24,0x30,0x34,0x40,0x42,0x4e,0x54,0x60,0x68,0x74,0x7e,0x8a,0x94,0xa0,0xa0,0xb5

(I say "supposedly" as I haven't tested it myself.)

You'll need to calculate (edit: or measure) the A/D values based on the resistors your buttons have - relevant info is in the Developer section of RioCar.Org.


Edited by tms13 (23/10/2003 12:43)
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#186044 - 23/10/2003 13:06 Re: Sony stalk tuner inputs - resistor values fixe [Re: tms13]
rtundo
addict

Registered: 27/02/2001
Posts: 569
Loc: Albany, NY
Yes it definitely works and works well. Had my Denali steering wheel remote "custom" matched to the Soundgate adapter/tuner and it worked flawlessly (once I had it wired correctly ).

Top
#186045 - 23/10/2003 15:49 Re: Sony stalk tuner inputs - resistor values fixe [Re: tms13]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
This is very interesting info. I wish there were a way to get Hijack to display the resistor values that the tuner module is seeing, without having to open up the dash and measure. Is that a limitation of the tuner module, or can it be done in software somehow?
_________________________
Tony Fabris

Top
#186046 - 24/10/2003 04:18 Re: Sony stalk tuner inputs - resistor values fixe [Re: tfabris]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
You can get it to spit the values out on the serial port, if you set the debug setting in config.ini.
_________________________
Cheers,

Andy M

Top
#186047 - 24/10/2003 11:19 Re: Sony stalk tuner inputs - resistor values fixe [Re: andym]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
You can get it to spit the values out on the serial port, if you set the debug setting in config.ini.
Thanks for that information. Useless, though, since my goal is to retrieve the information without ripping open the dash and hauling a computer out to the car to plug into the serial port. Can't bring the stalk equipment into the house because one critical part of the equipment is the car's steering wheel. (We're using a factory button interface.)

Good news is that the values are software-accessible, it's just a question of making the software.

Hmmm. Wonder if The Lord could be convinced to pipe that information to an optional Hijack screen?
_________________________
Tony Fabris

Top
#186048 - 24/10/2003 11:23 Re: Sony stalk tuner inputs - resistor values fixe [Re: tfabris]
rtundo
addict

Registered: 27/02/2001
Posts: 569
Loc: Albany, NY
The first thing you could do is use "button codes display" to see if any of the steering controls actually work already. Who knows you may get lucky.

Top
#186049 - 24/10/2003 11:29 Re: Sony stalk tuner inputs - resistor values fixe [Re: rtundo]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Right. First thing we did. Some of the controls work intermittently. So the next step I wanted to try was to see if there were any other resistor values being sent to the controller which were out-of-range.

If it is a simple case of out-of-range values, then simply programming the player to interpret proper in-range values is all we'd need to do.

But until we can see those values in the car, we'll never know.
_________________________
Tony Fabris

Top
#186050 - 24/10/2003 15:04 Re: Sony stalk tuner inputs - resistor values fixe [Re: tfabris]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
In reply to:

Can't bring the stalk equipment into the house because one critical part of the equipment is the car's steering wheel. (We're using a factory button interface.)




Same problem here, but luckily I have a laptop!
_________________________
Cheers,

Andy M

Top
#186051 - 24/10/2003 15:27 Re: Sony stalk tuner inputs - resistor values fixe [Re: andym]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
Wonder if The Lord could be convinced to pipe that information to an optional Hijack screen?
This would rock. I'm going to help Ryan install his empeg into his S2000 (as posted in the install forum) and try and wire up the dash controls, and this would make life a bit easier.
_________________________
|| loren ||

Top
#186052 - 24/10/2003 15:47 Re: Sony stalk tuner inputs - resistor values fixe [Re: loren]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Yeah, unfortunately, according to this thread, Mark and his SWMBO are otherwise occupied at the moment and won't be compiling any kernels for a while.
_________________________
Tony Fabris

Top
#186053 - 24/10/2003 15:55 Re: Sony stalk tuner inputs - resistor values fixe [Re: tfabris]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
hm. Well, first i've gotta sorce a 4 or 5 way switch... like a joystick with a pushbutton. Sorta like the one V99 is using but without the rotary encoder. Can't find one after half an hour of searching.
_________________________
|| loren ||

Top
#186054 - 24/10/2003 15:57 Re: Sony stalk tuner inputs - resistor values fixe [Re: loren]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
You could cannibalize one out of a Karma...
_________________________
Tony Fabris

Top
#186055 - 24/10/2003 15:59 Re: Sony stalk tuner inputs - resistor values fixe [Re: tfabris]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
hahah =] as soon as dell ships it!
_________________________
|| loren ||

Top
#186056 - 25/10/2003 00:18 Re: Sony stalk tuner inputs - resistor values fixe [Re: loren]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
first i've gotta sorce a 4 or 5 way switch... like a joystick with a pushbutton

If you don't find a joystick with pushbutton, there was a small & cheap joystick linked in this post.

/Michael
_________________________
/Michael

Top
#186057 - 28/10/2003 11:18 Re: Sony stalk tuner inputs - resistor values fixe [Re: tfabris]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
There shouldn't be a problem getting Hijack to display the ADC values it's seeing (more useful than the resistances) with an interface like the Button Codes Display. It's just a matter of writing the code...

You could write a player replacement that does nothing except listen to the tuner port (/dev/ttyS1, I think) for stalk command packets, and display the values it receives - there's sufficient documentation in the Developer section. I think there's an incantation for /bin/od to print out stalk packets - we just need to adapt that to dump them to the player screen. (Then you bring the empeg back indoors and move the real /usr/bin/player back into its rightful place).
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top