Unoffical empeg BBS

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

Topic Options
#118006 - 26/09/2002 13:28 web server to work in car mode
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
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?




_________________________
Joe Mumme

Top
#118007 - 26/09/2002 13:30 Re: web server to work in car mode [Re: jamville]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
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.
_________________________
Tony Fabris

Top
#118008 - 26/09/2002 21:30 Re: web server to work in car mode [Re: tfabris]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
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,
_________________________
Joe Mumme

Top
#118009 - 27/09/2002 09:49 Re: web server to work in car mode [Re: jamville]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
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.
_________________________
Tony Fabris

Top
#118010 - 27/09/2002 21:11 Re: web server to work in car mode [Re: tfabris]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
Thank you again sir.

Upping the car rate made http notify work in the sled.
_________________________
Joe Mumme

Top
#118011 - 28/09/2002 13:34 Re: web server to work in car mode [Re: jamville]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Does it also work with Hijack v297 and the default car rate?

Thanks

Top
#118012 - 28/09/2002 23:04 Re: web server to work in car mode [Re: mlord]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
Mark Lord,

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

Thank you,
_________________________
Joe Mumme

Top
#118013 - 29/09/2002 07:56 Re: web server to work in car mode [Re: mlord]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
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.
_________________________
Joe Mumme

Top
#118014 - 29/09/2002 09:05 Re: web server to work in car mode [Re: jamville]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
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.


Top
#118015 - 29/09/2002 09:11 Re: web server to work in car mode [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Does the player get bitter if you return EINVAL when it tries to switch the baud rate?

Top
#118016 - 29/09/2002 10:03 Re: web server to work in car mode [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
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.

Top
#118017 - 29/09/2002 11:41 Re: web server to work in car mode [Re: mlord]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
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.
_________________________
40GB - serial #40104051 gpsapp

Top
#118018 - 29/09/2002 12:01 Re: web server to work in car mode [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
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

Top
#118019 - 29/09/2002 18:22 Re: web server to work in car mode [Re: jaharkes]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Nio, actually, it would not assume that!

-ml

Top