web server to work in car mode

Posted by: jamville

web server to work in car mode - 26/09/2002 13:28

Is there a way to get the web server to work in DC mode w/o 'force AC'?

and/or

Is there a way to get the fader operational in AC mode?




Posted by: tfabris

Re: web server to work in car mode - 26/09/2002 13:30

Is there a way to get the web server to work in DC mode w/o 'force AC'?

Yes. Hijack FAQ entry, option is dc_servers.

Is there a way to get the fader operational in AC mode?

No, that's in the player software, not in hijack. But since you can do dc_servers you don't need it.
Posted by: jamville

Re: web server to work in car mode - 26/09/2002 21:30

Thanks Tony,

In DC mode w/ dc_servers=1 Charcoalgrey's web interface reports that I must have notify enabled; it is. Do you know of a work around w/o 'force AC'?

Thanks,
Posted by: tfabris

Re: web server to work in car mode - 27/09/2002 09:49

Odd, that should work. Try upping the car_rate and see if that fixes it. And make sure you don't have some other option that disables it like an @DC option for notify=0.
Posted by: jamville

Re: web server to work in car mode - 27/09/2002 21:11

Thank you again sir.

Upping the car rate made http notify work in the sled.
Posted by: mlord

Re: web server to work in car mode - 28/09/2002 13:34

Does it also work with Hijack v297 and the default car rate?

Thanks
Posted by: jamville

Re: web server to work in car mode - 28/09/2002 23:04

Mark Lord,

It does indeed work with the default serial setting if using Hijack 297.

Thank you,
Posted by: jamville

Re: web server to work in car mode - 29/09/2002 07:56

Mark,

I must have been brain dead when I thought I tested it earlier as it wasn't in a "sled" (in DC mode).

In DC mode w/ the default serial rate, even w/ Hijack 297, I get the notify notice.
Posted by: mlord

Re: web server to work in car mode - 29/09/2002 09:05

Ahh. thanks.

I now see that my efforts are futile, since the player says this (below) when using the default car_rate, and afterwards it internally disables notify=1.

Switching to baud rate: 4800, disabling logging

Ugh. Very Ughly.

Posted by: Daria

Re: web server to work in car mode - 29/09/2002 09:11

Does the player get bitter if you return EINVAL when it tries to switch the baud rate?
Posted by: mlord

Re: web server to work in car mode - 29/09/2002 10:03

Dunno. Probably not. But Hijack doesn't really care about the baud rate, instead it's the "disabled logging" part that matters..

I've put detection of this into Hijack v298, so at least the restore dc/car visuals will work (finally) by default. And the notify data (/proc/empeg_notify) will contain a message indicating how to fix it.

Really, silly stuff like this makes life difficult. I suppose I may eventually have to have Hijack pre-read config.ini, and "vitually" add any missing options like car_rate= before the player gets to touch that file. This is MUCH harder than it looks at first, because the player first does stat() to see how big the file is before reading it..

Ugh.
Posted by: jaharkes

Re: web server to work in car mode - 29/09/2002 11:41

It will become impossible to ever use the serial port by other applications (like gpsapp) if you disable the possibility to change the baudrate and override config.ini options like car_rate= and notify=. Can't it figure the current playlist and song from data stored in the flash recovery area?

I'm already starting to worry that hijack is just trying a little too hard to do a little too much. Right now hijack would probably assume the player is restarting when gpsapp opens the serial port, etc.
Posted by: Daria

Re: web server to work in car mode - 29/09/2002 12:01

Dunno. Probably not. But Hijack doesn't really care about the baud rate

I'm just big on telling things "you can't do that" and watching how badly they deal
Posted by: mlord

Re: web server to work in car mode - 29/09/2002 18:22

Nio, actually, it would not assume that!

-ml