#279252 - 08/04/2006 10:03
Car Kit Behaviour - SaveAux/RestoreSrc
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Hey guys, A couple of days ago I had some quality time with my car dashboard and the Nokia CK-7W Bluetooth Handsfree Kit. I used this cable to hook it up to the Empeg (running 2.00) Aux input, hooked up the phone-mute cable, and fiddled with Hijack (v450) a little (extmute_on=RestoreSrc, extmute_off=SaveAux, volume_boost_AUX=25). It pretty much works as it should, the sound quality is pretty good, and the switching over to Aux *almost* works. When the Empeg is sleeping, an incoming phone call does wake it up, but doesn't switch over to Aux. At the end of the call, the Empeg doesn't go back to sleep. Is this something that can be fixed in Hijack? Also, the CK-7W manual says Quote: When a call is accepted, the Advanced Car Kit switches the yellow line (MUTE) to ground, muting the car radio. When the call is ended, the yellow line is separated from ground and the car radio is unmuted.
This works about 70% of the time. Is there any way of making it work better? I know there are a few of you guys and girls out there with CK-7W kits, what are your experiences? I think I need to do this, right?
|
Top
|
|
|
|
#279253 - 08/04/2006 10:53
Re: Car Kit Behaviour - SaveAux/RestoreSrc
[Re: sein]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
When the player is sleeping, it tosses the first button code that is seen (either Hijack or the player s/w do this, I forget which, but it happens).
So, if you want it to wake from sleep and do the saveaux thing, just add an innocuous button code in front: extmute_off=SelectMode,SaveAux
To get it to go back to sleep automatically is not possible, as the current interface does not know what the original state was. We'd have to add a new feature to Hijack for that.
Now, Hijack itself *usually* has a good idea of whether the player is sleeping or not, so maybe we could just add two more virtual button codes to manage this. Something like "SleepWake" and "SleepResume" or something. Anyone got some better name suggestions? With those, one might do this:
extmute_off=SleepWake,SaveAux extmute_on=RestoreSrc,SleepResume
Cheers
|
Top
|
|
|
|
#279254 - 08/04/2006 18:02
Re: Car Kit Behaviour - SaveAux/RestoreSrc
[Re: mlord]
|
carpal tunnel
Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
|
I'm assuming that SleepWake and SleepResume would have no affect at all on a player that wasn't sleeping, correct?
If so, how does Hijack know when SleepResume is called that the player was formerly sleeping? Possibly if the source hasn't changed since the last SleepWake call?
_________________________
~ John
|
Top
|
|
|
|
#279255 - 08/04/2006 18:14
Re: Car Kit Behaviour - SaveAux/RestoreSrc
[Re: JBjorgen]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Quote: I'm assuming that SleepWake and SleepResume would have no affect at all on a player that wasn't sleeping, correct?
Yes.
Quote: If so, how does Hijack know when SleepResume is called that the player was formerly sleeping? Possibly if the source hasn't changed since the last SleepWake call?
The idea is that Hijack would make note of the current sleep state when executing SleepWake, and then restore the player to that state upon SleepResume. It might be a good idea to have it skip the restore if the user switches sources before the SleepResume is requested.
Cheers
|
Top
|
|
|
|
#279256 - 08/04/2006 18:19
Re: Car Kit Behaviour - SaveAux/RestoreSrc
[Re: JBjorgen]
|
pooh-bah
Registered: 12/02/2002
Posts: 2298
Loc: Berkeley, California
|
Quote: If so, how does Hijack know when SleepResume is called that the player was formerly sleeping? Possibly if the source hasn't changed since the last SleepWake call?
Presumably, if the last SleepWake woke it up, a SleepResume would sleep it. If it was awake for the last SleepWake, a SleepResume wouldn't do anything.
The Save/Restore Aux have been working well for me. It's not 100%, but I assume that's my car kit switching things too quickly for the empeg to handle. I should look into some sort of delay circuit, but it works well enough that I'll never get around to it.
Just a note, but using hijack's volume adjust for the various sources is a great combination with this feature.
Matthew
|
Top
|
|
|
|
#279257 - 08/04/2006 19:48
Re: Car Kit Behaviour - SaveAux/RestoreSrc
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Quote: So, if you want it to wake from sleep and do the saveaux thing, just add an innocuous button code in front: extmute_off=SelectMode,SaveAux
Magic. Thanks Mark
Quote: The idea is that Hijack would make note of the current sleep state when executing SleepWake, and then restore the player to that state upon SleepResume. It might be a good idea to have it skip the restore if the user switches sources before the SleepResume is requested.
Personally, I think this would be a great feature.
|
Top
|
|
|
|
#279258 - 08/04/2006 21:50
Hijack v452: WakeUp and RestoreSleep
[Re: sein]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Now available, as per subject line.
-ml
|
Top
|
|
|
|
#279259 - 09/04/2006 02:52
Re: Hijack v452: WakeUp and RestoreSleep
[Re: mlord]
|
addict
Registered: 02/08/2004
Posts: 434
Loc: Helsinki, Finland
|
Damn, that's just Service with a capital "S"!!!! Mark, thanks for the great work you've done with Hijack and this community in general. I've done little here but gather bits and pieces to help me with my Empeg player and other various tidbits, but I just wanted to say thanks! This is exacly the kind of spirit that makes this sucha great forum to just browse through.
...and that concludes this nights episode of "cruising the Empegbbs while intoxicated"* episode!
But again thanks Mark and to all of you who share your knowledge here!
*shamefully stolen from the AVSforum BBS...
|
Top
|
|
|
|
#279260 - 09/04/2006 07:11
Re: Hijack v452: WakeUp and RestoreSleep
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Quote: Now available, as per subject line.
Mark, hope you can make it to Cambridge in September - a drink is on me.
|
Top
|
|
|
|
#279261 - 09/04/2006 17:44
Re: Hijack v452: WakeUp and RestoreSleep
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
I think something may be broken.
Previously I was running v450 with the config file attached. SaveAux and RestoreSrc were working for me (most of the time), and it was pretty cool.
A few hours ago I installed v452 and changed my config to:
Quote: extmute_off=WakeUp,SaveAux
extmute_on=RestoreSrc,RestoreSleep
Things were not right. Switching sources was not working. If you were in Player when the phone rings it would not switch to Aux, and it would switch to Tuner on hangup. It would not sleep on hangup if it was woken by the phone - and when woken by the phone it would not switch to Aux.
I tried to break it down. I tried just the new features to see whether it would Wake and Sleep correctly, forget switching to the correct source. I tried this:
Quote: extmute_off=WakeUp
extmute_on=RestoreSleep
I got a hijack config error. I should have double checked my config.ini file, but I admit that I did not.
Anyway. I put back the original config file (as attached) that I was using with v450. SaveAux and RestoreSrc were not working - the Empeg did not switch to Aux when in Player with the phone ringing, and on hangup it would switch to Tuner.
I downgraded to Hijack v451 and had the same problem.
Downgraded back to v450 (without touching the config.ini file) and it is all working as before.
While I've been messing about, I had been editing the config.ini file with vi over Telnet. A couple of times I used Jemplode instead because it was a bit faster (running rwm in the shell takes a while). I loaded v452 with Jemplode, and downgraded to v451 and v450 with Tony's Logo Editor. I may still be doing something wrong, I'm not sure.
Attachments
279618-config.ini (168 downloads)
Edited by sein (09/04/2006 17:57)
|
Top
|
|
|
|
#279262 - 09/04/2006 21:46
Re: Hijack v452: WakeUp and RestoreSleep
[Re: sein]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Oh, I know what most of the problem likely is.
The extmute_on and extmute_off codes are supposed to be single buttons, not lists of buttons. Ooops. Plus, there was a cut'n'paste bug in the restore code.
Mmm.. I think the easiest thing then, is to just rework the two new codes so that they are internally combined with the SaveAux and RestoreSrc codes.
So I'll just do away with the WakeUp and RestoreSleep codes altogether, and build that functionality into the existing codes.
Thanks for testing it!
Cheers
Edited by mlord (09/04/2006 21:49)
|
Top
|
|
|
|
#279263 - 09/04/2006 21:53
Hijack v453: Auto-wakeup/sleep for SaveAux and RestoreSrc
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
As per the subject line.
Cheers
|
Top
|
|
|
|
#279264 - 09/04/2006 22:56
Re: Hijack v452: WakeUp and RestoreSleep
[Re: mlord]
|
pooh-bah
Registered: 12/02/2002
Posts: 2298
Loc: Berkeley, California
|
Quote: The extmute_on and extmute_off codes are supposed to be single buttons, not lists of buttons.
That can be solved by creating a fake button code that IR_Translate translates into a list of buttons. That always worked fine for me. Of course, the current method is even better.
Matthew
|
Top
|
|
|
|
#279265 - 10/04/2006 10:16
Re: Hijack v453: Auto-wakeup/sleep for SaveAux and RestoreSrc
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Quote: So I'll just do away with the WakeUp and RestoreSleep codes altogether, and build that functionality into the existing codes.
Very neat! I'm looking forward to trying it out tonight.
|
Top
|
|
|
|
#279266 - 10/04/2006 11:46
Re: Car Kit Behaviour - SaveAux/RestoreSrc
[Re: sein]
|
enthusiast
Registered: 07/01/2002
Posts: 274
Loc: Stockport, UK
|
Quote: A couple of days ago I had some quality time with my car dashboard and the Nokia CK-7W Bluetooth Handsfree Kit.
Out of interest, did you have to install a pull up resistor to the mute line?
_________________________
A coward you are, an expert on bulls you are not.
|
Top
|
|
|
|
#279267 - 10/04/2006 20:27
Re: Car Kit Behaviour - SaveAux/RestoreSrc
[Re: jarob10]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Quote: Out of interest, did you have to install a pull up resistor to the mute line?
I did not do that in the end. I was driving around today (listening to the Player, with Hijack v450) and got a couple of calls. Both times the Empeg switched over perfectly, and switched back again at the end of the call. It's working great at the moment, so I won't fix it.
|
Top
|
|
|
|
#279268 - 11/04/2006 18:38
Re: Hijack v453: Auto-wakeup/sleep for SaveAux and RestoreSrc
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
I'm still having a few problems with this. I may not have something set up right or there could be a bug.
(1) When a call comes through when my Empeg is playing, RestoreSrc sends my Empeg to sleep when it ends.
EDIT: below changed to what I actually wanted to say:
(2) Also, SaveAux gets eaten by something when the Empeg is woken from sleep by it with extmute_off=SaveAux. If I use the innocuous button trick extmute_off=SelectMode,SaveAux, will SaveAux correctly record the power state when that line is invoked?
Edited by sein (12/04/2006 04:46)
|
Top
|
|
|
|
#279269 - 11/04/2006 20:01
Re: Hijack v453: Auto-wakeup/sleep for SaveAux and RestoreSrc
[Re: sein]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Upgrade. WakeUp got removed from Hijack in the most recent version.
-ml
|
Top
|
|
|
|
#279270 - 12/04/2006 04:49
Re: Hijack v453: Auto-wakeup/sleep for SaveAux and RestoreSrc
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Doh! Sorry, I did upgrade to v453, and I am not using WakeUp or RestoreSleep. My config file only has the following relevant lines:
extmute_off=SaveAux extmute_on=RestoreSrc
I just posted incorrectly. Edited my post now.
|
Top
|
|
|
|
#279271 - 12/04/2006 20:37
Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking up
[Re: sein]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Doh!
I put the save logic into the SaveSrc code, but not the SaveAux code. Doh!
Fixed. It's now in both places (actually, one common place).
-ml
|
Top
|
|
|
|
#279272 - 24/04/2006 16:46
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
It took me a little while to test out all the new code, but I have played around in the last few days. Its really cool, and very usable! The waking and sleeping thing is working well, and the normal input switching is working perfectly when the Empeg is on. One little bug that I can't seem to fix is when the Empeg is woken from sleep by the phone, it does not switch to Aux by itself, I have to do that manually. I tried using lines such as: Quote: extmute_off=SaveAux,Aux
orQuote: extmute_off=SelectMode,SaveAux
but (confusingly) it still doesn't work.
|
Top
|
|
|
|
#279273 - 24/04/2006 16:56
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: sein]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Quote:
One little bug that I can't seem to fix is when the Empeg is woken from sleep by the phone, it does not switch to Aux by itself, I have to do that manually. I tried using lines such as:
Quote: extmute_off=SaveAux,Aux
orQuote: extmute_off=SelectMode,SaveAux
but (confusingly) it still doesn't work.
It should just work with extmute_off=SaveAux, as of Hijack v454.
|
Top
|
|
|
|
#279274 - 24/04/2006 19:31
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Quote: It should just work with extmute_off=SaveAux, as of Hijack v454.
That is exactly what I have at the moment, and it doesn't switch to Aux when it is woken from sleep by the phone. If it is definately supposed to work, can someone else also try this to see whether it is just me?
|
Top
|
|
|
|
#279275 - 24/04/2006 19:38
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: sein]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Quote:
Quote: It should just work with extmute_off=SaveAux, as of Hijack v454.
That is exactly what I have at the moment, and it doesn't switch to Aux when it is woken from sleep by the phone. If it is definately supposed to work, can someone else also try this to see whether it is just me?
Mmm.. I've only tested it here by remapping buttons on the Rio Remote. To use the actual extmute line, what voltage should I be applying to it? (+12VDC?)
|
Top
|
|
|
|
#279276 - 24/04/2006 19:59
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: mlord]
|
pooh-bah
Registered: 12/02/2002
Posts: 2298
Loc: Berkeley, California
|
Yup. +12V should do it.
Matthew
|
Top
|
|
|
|
#279277 - 24/04/2006 20:00
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: mlord]
|
old hand
Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
|
Quote: Mmm.. I've only tested it here by remapping buttons on the Rio Remote. To use the actual extmute line, what voltage should I be applying to it? (+12VDC?)
I suspect my Nokia kit switches the line from open circuit to ground on an incoming call. I am not 100% certain of this as the manual is a bit ambiguous.
|
Top
|
|
|
|
#279278 - 24/04/2006 20:00
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: matthew_k]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Quote: Yup. +12V should do it.
Matthew
MMm... seems to want "GROUND" to trigger "extmute_off" here. And yes, I see it not switching sources also. I'll fix it now.
Cheers
|
Top
|
|
|
|
#279279 - 24/04/2006 21:08
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
A thousand curses on whomever decided it would be cute to wire up the external MUTE line to the in-car DB-9 harness. UGHHH!!!
Yes, I know it's using one of the serial port signals as "external MUTE", but it already has a separate wire for it on the ISO connector -- having it also on the DB-9 is very very silly.
Time to make a 3-wire patch cord, I guess..
|
Top
|
|
|
|
#279280 - 24/04/2006 22:43
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14493
Loc: Canada
|
Fixed (and tested!) in Hijack v455. See the full announcement in the General forum.
Cheers
|
Top
|
|
|
|
#279281 - 26/04/2006 11:10
Re: Hijack v454: Doh! might even work for SaveAux/RestoreSrc & waking
[Re: sein]
|
enthusiast
Registered: 07/01/2002
Posts: 274
Loc: Stockport, UK
|
I am not 100% certain of this as the manual is a bit ambiguous.
You are right it is ambiguous, so I checked my CK-7W with an avo. The mute line is normally floating, then switches to ground when a call is made.
I had to use a pull-up resistor (hacked into the CK-7W harness) to get the empeg to recognise an incoming call.
_________________________
A coward you are, an expert on bulls you are not.
|
Top
|
|
|
|
|
|