Unoffical empeg BBS

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

Topic Options
#280064 - 24/04/2006 22:41 Hijack v455: Fixed issues with MUTE line (even if you don't use mute!)
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
Hijack v455 is now available.

Even if you have not upgraded in a while, then this one's for you!

It includes a fix for a nasty bug regarding treatment of the "MUTE" (aka RS232 "DCD") line on the back of the player. It was not being correctly handled in all prior versions of hijack, leading to the possibility of it "spamming" the player into oblivion. Fixed.

Also in this version, the extmute_on and extmute_off options actually work as intended now. In addtion to the fix described above, there was also an issue with the player s/w swallowing button codes from the extmute functions. This has been fixed by having SaveAux automatically insert a delay into the button queue when necessary.

So one really can now do this for external mobile phone audio on the Empeg Aux input:

[hijack]
;@DC extmute_off=SaveAux
;@DC extmute_on=RestoreSrc


Note that the ;@DC prefixes are advisable, because when on AC power the MUTE line is usually floating (or connected to a serial port, oops!), and bounces around when the ethernet is in use. Not good behaviour there, so use the ;@DC prefix to ensure that MUTE is ignored unless in the car.

Cheers

Top
#280065 - 25/04/2006 18:04 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
I just tried this out, and it is absolutely perfect! It seems so much more reliable than before, and the switching input, waking and sleeping logic is really nicely done.

All you guys with car phones and handsfree kits - you really need this.

Thanks Mark for getting this all sorted out.
_________________________
Hussein

Top
#280066 - 26/04/2006 00:14 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31584
Loc: Seattle, WA
Mark, you sir, are THE MAN.

I personally don't use the feature you just spent all that time bugfixing, but I think it's utterly awesome that you're doing that work and supporting us all in such a cool way.

If you were a mad scientist, I would happily be your minion.
_________________________
Tony Fabris

Top
#280067 - 26/04/2006 07:59 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: tfabris]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Quote:
If you were a mad scientist, I would happily be your minion.


Isn't the correct name "your Igor"? You need to be a mad megalomanic to have minions, I think.

Hugo

Top
#280068 - 26/04/2006 12:47 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
Quote:
... it's utterly awesome that you're doing that work and supporting us all in such a cool way.

Nah, it's just a slight flaw in my character that's showing through. I need to work on that some more.

Quote:
If you were a mad scientist, I would happily be your minion.

Heh.. I'll just let the Dictionary Tooltip respond to this:

min·ion Pronunciation (mnyn). n.
1. An obsequious follower or dependent; a sycophant.
2. A subordinate official.
3. One who is highly esteemed or favored; a darling.
[French mignon, darling, from Old French mignot, mignon.]

ob·se·qui·ous Pronunciation (b-skw-s, b-). adj.
Full of or exhibiting servile compliance; fawning.
[Middle English, from Latin obsequisus, from obsequium, compliance, from obsequ, to comply : ob-, to; see ob- + sequ, to follow; see sekw-1 in Indo-European roots.]

syc·o·phant Pronunciation (sk-fnt, sk-). n.
A servile self-seeker who attempts to win favor by flattering influential people.
[Latin scophanta, informer, slanderer, from Greek skophants, informer, from skon phainein, to show a fig (probably originally said of denouncers of theft or exportation of figs) : skon, fig + phainein, to show; see bh-1 in Indo-European roots.]


Top
#280069 - 26/04/2006 13:15 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
JBjorgen
carpal tunnel

Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
Sweet. Now if we can just get some CallerID goodness, I'll be motivated to pull my dash apart when I get my new Treo next week.
_________________________
~ John

Top
#280070 - 26/04/2006 13:21 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
Mmm.. another thought..

I suppose it might make sense for Hijack to auto-disable the "regular" plain-vanilla "mute" mechanism whenever Hijack's own extmute_* functionality is used. Right?

Can anyone imagine a plausible scenario for both mechanisms to be used simultaneously (the built-in player one, and Hijack's own) ?

Top
#280071 - 26/04/2006 15:55 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: tfabris]
Major_Sarcasm
member

Registered: 28/08/2003
Posts: 149
Loc: Isle of Wight, UK
Quote:
Mark, you sir, are THE MAN.


Totally.

This neat fix has convinced me to go out and get a handsfree. Top man, Mark.
_________________________
Steve

Top
#280072 - 04/05/2006 04:45 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
ChristianAC
new poster

Registered: 31/08/2005
Posts: 11
Hmmmm works not really here.

extmute_off=SaveAux
extmute_on=RestoreSrc

It switches off the display when starting a telefon-call and cut the speaker.

When the call is finished it goes back du Source from AUX with a flashing "Waiting"

With:

extmute_off=Pause
extmute_on=Pause

It just does nothing when the phone call starts but
switches to Pause when the call is finished.

Its an MK2a with V3-alpha8 and hijack v455.

Regards

Christian

Top
#280073 - 04/05/2006 08:05 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
What car kit do you have? What does it switch to and from - open to 0v, or 0v to 12v, or something else?

What does the [sense] portion of your config.ini look like?

Depending on your car kit it may be a case for trying the pull-up-resistor mod.
_________________________
Hussein

Top
#280074 - 04/05/2006 08:53 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: sein]
ChristianAC
new poster

Registered: 31/08/2005
Posts: 11
I think the car kit is OK an configured to 0v.

As long as the call lasts, the telefon symbol is shown.
Only the mute-reaction is wrong.

Regards

Christian

Top
#280075 - 04/05/2006 09:26 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
What kit is it exactly, Nokia, Sony, Parrot, or something else? Include the model number so we can download the manual and check what the mute line does.

Also, I think it would be best if you used JEmplode, or Emplode with these instructions to access the config.ini on the player. Save that to a text file and attach it to your reply. This way we can ask you to try specific things.

It will work!
_________________________
Hussein

Top
#280076 - 04/05/2006 09:48 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Quote:

As long as the call lasts, the telefon symbol is shown.
Only the mute-reaction is wrong.




Yeah, what Hussein's suggesting is that when a call is made, the line goes to 12v (or 0v), but when the call ends, the line floats, and stays near 12v (or 0v).

What you might need is a pull-up or pull-down resistor to ensure that it's either 12v or 0v, but not floating.

At least I think that's what he's getting at.
_________________________
-- roger

Top
#280077 - 04/05/2006 10:08 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: Roger]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
That is definately one thing that I am looking at, Roger. The other thing I want to take note of is whether the mute value in the [sense] section of the config.ini file is set to the correct value for the kit he is using. For example, my file with a Nokia kit looks like this:

[sense]
muteaction=0
mute=-1


It is possible that that could make a difference. I am guessing that line tells the player app what voltage to look for before activating a MUTE keycode. Hijack would then pick up this keycode and do what it is told in its config.ini section.

This is how I think it works anyway. Mark and others, please correct me if I am wrong.
_________________________
Hussein

Top
#280078 - 04/05/2006 11:09 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: sein]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
If one is using the Hijack extmute functions, then one must disable the original player software's telemute function (which interferes with Hijack's attempts), by including these lines:


[sense]
muteaction=0
mute=-1
...
[hijack]
;@DC extmute_off=SaveAux
;@DC extmute_on=RestoreSrc


Edited by mlord (04/05/2006 11:10)

Top
#280079 - 04/05/2006 11:38 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
Oh I see... didn't realise they were independant. Thanks for clearing that up.
_________________________
Hussein

Top
#280080 - 09/05/2006 18:48 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
ChristianAC
new poster

Registered: 31/08/2005
Posts: 11
Hi,

the telephone is a Nokia 810.

The empeg config.ini looked like:

[hijack]
extmute_on=SaveAux
extmute_off=RestoreSrc
[sense]
muteaction=1
mute=0


I will try the suggested on tomorrow.

Regards

Christian

Top
#280081 - 10/05/2006 04:44 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
ChristianAC
new poster

Registered: 31/08/2005
Posts: 11
Hi

Works much better now. I also installed v459.

Tuner-Mode: Switched to AUX and back just fine.

Player-Mode: Switches to AUX and back to Player, but
the Player is in stopped-mode afterwards.
So you have to push the Pause-Button to get
it back playing the song just where it was
when the phone was activated.

Hope that helps.

Regards

Christian

Top
#280082 - 10/05/2006 08:12 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
Not bad, its nearly there Christian

As a side note, now with the Hijack mute line code all fixed up (v455+) I can no longer crash my player by choosing a playlist within the first 10 seconds of power up. Also my Tuner now works all the time (previously it would not be found about ~5% of the time, and require a reboot).

Those were the only niggles I had since I got my Empeg back in August, and now its all fixed! Nice one Mark!
_________________________
Hussein

Top
#280083 - 10/05/2006 08:27 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
jarob10
enthusiast

Registered: 07/01/2002
Posts: 274
Loc: Stockport, UK
Perhaps you could try changing mute=0 to mute=-1, and changing muteaction=1 to muteaction=0


Edited by jarob10 (10/05/2006 08:29)
_________________________
A coward you are, an expert on bulls you are not.

Top
#280084 - 10/05/2006 13:05 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
Quote:
Player-Mode: Switches to AUX and back to Player, but
the Player is in stopped-mode afterwards.


I don't see that happening here. Anybody else see that?

Post your entire config.ini for us to have a peek at.

Thanks

Top
#280085 - 11/05/2006 04:25 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: mlord]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
Quote:
I don't see that happening here. Anybody else see that?

Just installed v459. I don't see it either.
_________________________
Hussein

Top
#280086 - 20/05/2006 10:18 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: sein]
ChristianAC
new poster

Registered: 31/08/2005
Posts: 11
Sorry for the long delay.

Here comes the complete config.ini

[hush]
hushpercent=20
[display]
visual_names=1
caching=0
[volumecap]
enabled=1
[kenwood]
disabled=1
[ramp]
disabled=1
[menu]
quit=0
sort_playlist=1
[controls]
stalk_side=left
[tuner]
region=europe
[Options]
Name=Marvin
[User Info]
Email=marvin@dascon.de
Phone=+49 171 3117884
Name=Christian Bode
[Network]
Gateway=192.168.42.254
Netmask=255.255.255.0
IPAddress=192.168.42.3
DHCP=0
[hijack]
;@DC extmute_off=SaveAux
;@DC extmute_on=RestoreSrc
[sense]
muteaction=1
mute=0
[power]
off_timeout=60000
[aux]
source=
title=
artist=
[hijack]
;@DC ;@EXEC_ONCE /drive0/roadmap/roadmapgpsapp
[synchronise]
seq_num=69
[wendy]
flag8=Lorins
flag7=Spanish
flag6=60s-70s
flag5=Classical
flag4=Rocka-Billy
flag3=Showtunes
flag2=Bluegrass
flag1=TV-Radio
flag0=Rap
flag_amount=9
[custom]
wendy=Lorin,511,256/Greg,256,0
[searches]
amount=1
[VisualFavourites_AM]
count=0
[VisualFavourites_AUX]
count=0
[VisualFavourites_DSP]
count=8
8=Shapescape
7=Sound Samosa
6=Oscilloscope Terra
5=Marquesas
4=TimeShade 128
3=StarDust
2=Flancedoor
1=Clock
[VisualFavourites_FM]
count=2
2=Anna Vu
1=Swarm
[search0]
expression=marked="yes"
type=advanced
name=marked="yes"
[gpsapp]routedir=/drive0/var/gpsapp/routes

Regards

Chrsitian

Top
#280087 - 20/05/2006 16:14 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
Quote:
Sorry for the long delay.

Here comes the complete config.ini

[ ... ]

[sense]
muteaction=1
mute=0

[ ... ]




That should be:

[sense]
muteaction=0
mute=-1
_________________________
Hussein

Top
#280088 - 21/05/2006 17:55 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: sein]
ChristianAC
new poster

Registered: 31/08/2005
Posts: 11
Ok.

I changed that and here are the results:

Player-Mode:

Switches between Player and AUX as ist should:

Tuner-Mode

1.Call During-Call: AUX After-Call: Tuner
2.Call Duing-Call: Player After-Call: Tuner
3.Call During-Call: AUX After-Call: Tuner
4.Call During-Call: Player After-Call: Tuner

and so on.

Regards

Christian

V3alpha8 + hijack459


Edited by ChristianAC (21/05/2006 18:32)

Top
#280089 - 21/05/2006 19:30 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
OK, I have not tried multple subsecutive calls in Tuner mode. Will check this out tomorrow to see whether mine does the same.
_________________________
Hussein

Top
#280090 - 21/05/2006 23:24 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
If people continue to have such difficulty disabling the player software's interference with this function, then I might have to simply have Hijack conceal the mute line from the player (but only when Hijack's extmute_* stuff is active).

In the meanwhile, since I'm away from my players & build environment right now, see if you can get the config.ini player stuff right (whatever right happens to be -- I don't use this stuff myself).

-ml

Top
#280091 - 23/05/2006 07:13 Re: Hijack v455: Fixed issues with MUTE line (even if you don't use mu [Re: ChristianAC]
sein
old hand

Registered: 07/01/2005
Posts: 893
Loc: Sector ZZ9pZa
Quote:
Tuner-Mode

1.Call During-Call: AUX After-Call: Tuner
2.Call During-Call: Player After-Call: Tuner
3.Call During-Call: AUX After-Call: Tuner
4.Call During-Call: Player After-Call: Tuner

I tested mine this morning and didn't get that, it works correctly for me. Double/Triple check the [sense] section of your config.ini
_________________________
Hussein

Top