Unoffical empeg BBS

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

Topic Options
#70228 - 12/02/2002 11:08 Hijack w/out Home/Work option
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
I must be doing something wrong, here, but my hijack 199 does not have an option to switch between the two modes anymore. Help!

Thank you.
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#70229 - 12/02/2002 12:11 Re: Hijack w/out Home/Work option [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
The menu item only appears if your config.ini file actually has one or more ;@WORK or ;@HOME lines in it somewhere.

-ml

Top
#70230 - 12/02/2002 13:54 Re: Hijack w/out Home/Work option [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Mine does, but it doesn't appear... I have them under the section:

[network]
;@work dhcp=1
;@home dhcp=0

and they've always been there since this feature was introduced.

Should I move those to lines in the [hijack] section?
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#70231 - 12/02/2002 13:59 Re: Hijack w/out Home/Work option [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Actually, here's my config.ini, in case it helps to sort out this bug, IF it is such.

[Options]
Name=taympeg
[User Info]
[email protected]
Phone=+39-348-********
Name=Claudio .:[Taym]:. Marinangeli
[Network]
Gateway=10.10.1.100
Netmask=255.255.255.0
IPAddress=10.10.1.108
;@HOME DHCP=0
;@WORK DHCP=1
DHCP=1
[sense]
muteaction=0
mute=-1
[power]
off_timeout=180000
[display]
visual_names=1
caching=0
[synchronise]
seq_num=376
[tuner]
region=europe
[controls]
stalk_side=none
[aux]
source=
title=
artist=
[hush]
hushpercent=10
[volumecap]
enabled=0
[kenwood]
disabled=0
[ramp]
disabled=0
[wendy]
flag_amount=0
[custom]
wendy=
[searches]
amount=0
[ir_translate]
00b94613.LT=20df07 ; If longpress and Tuner active, then toggle AM/FM
00b94613.T=b9461e ; If Tuner active, then select Main/mp3
00b94613.M=b9461c ; If Main/mp3 active, then select Tuner
80b9460c.L=0020DF10 ; hold left-top FFWD
80b9460d.L=0020DF11 ; hold left-bottom REW
80b9460c=8020df14 ; left-top changes visual
80b9460d=8020df15 ; left-bottom changes info
PopUp0=Info,Mark,Repeat,SelMode,Shuffle,Source,Tuner,Visual
[menu]
quit=0
sort_playlist=0
[output]
notify=1
[hijack]
kftpd_control_port=210
kftpd_data_port=209
khttpd_port=800
kftpd_password=*********
[VisualFavourites_AM]
count=0
[VisualFavourites_AUX]
count=0
[VisualFavourites_DSP]
184=Anna Vu
[... huge list (184 items) of visuals here. I don't know what the logic is behind this, yet]
1=OurEmEss LR
count=184
[VisualFavourites_FM]
count=0
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#70232 - 12/02/2002 14:17 Re: Hijack w/out Home/Work option [Re: Taym]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31573
Loc: Seattle, WA
... huge list (184 items) of visuals here. I don't know what the logic is behind this, yet

This could be the very reason for the trouble. Please check this FAQ entry.
_________________________
Tony Fabris

Top
#70233 - 12/02/2002 14:39 Re: Hijack w/out Home/Work option [Re: Taym]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
working for me with v199.
_________________________
|| loren ||

Top
#70234 - 12/02/2002 15:14 Re: Hijack w/out Home/Work option [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
No, "DHCP=" is not a Hijack option, so it should not go under [hijack]..

How about posting your config.ini so people can see what's been fscked up? Thanks.

Top
#70235 - 12/02/2002 15:16 Re: Hijack w/out Home/Work option [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
That won't do, as the BBS mangles the formatting (which matters). Post it again, as either an ATTACHMENT, or with a [pre] thingie in front.

Top
#70236 - 12/02/2002 15:39 Re: Hijack w/out Home/Work option [Re: tfabris]
Alan
member

Registered: 06/05/2000
Posts: 142
Loc: Cedar Grove , IN
I had so many lines under visuals that I had to delete the conf ini file thru ftp and load an older copy. Too bad you can just do a select all (visuals) and delete thru emplode. It some how was approx 2400 listings and growing, eventually the player would have been killed.
_________________________
home page

Top
#70237 - 13/02/2002 02:16 Re: Hijack w/out Home/Work option [Re: tfabris]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
That was it. Thank you very much Tony!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#70238 - 13/02/2002 03:09 Re: Hijack w/out Home/Work option [Re: mlord]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Sorry, I should give more details here.
As said in the faq Tony pointed me at, I deleted all preferred visuals from Emplode, without any editing of the config.ini directly. Re-synchronized and everything was working again. Also, by going back to the config.ini, all the lines in the favourites visuals sections had been properly deleted.

So, it seems that for some reason the config.ini fills up of those lines when some visual is selected as favourite in emplode, and this prevents it from being properly handeled by hijack. Or is my guess wrong? Anyway the question remains (unless I did not look properly at the faqs): why are all those lines being created in the first place? Sorry if this has been discussed already in the bugs section of the bbs, I haven't looked at it yet, so feel free to disregard my question in that case.

Thank you Tony and Mark again fro your help.
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#70239 - 13/02/2002 09:44 Re: Hijack w/out Home/Work option [Re: Taym]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
Yeah, an intentional limitation with Hijack is that config.ini has to be small enough to fit in a single "read()" from the player software. I'm not sure how small/large that number is, but probably 4KB or 8KB max.

-ml

Top
#70240 - 13/02/2002 10:35 Re: Hijack w/out Home/Work option [Re: mlord]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
Perhaps it should put out a warning if the config file is too big?
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#70241 - 13/02/2002 12:33 Re: Hijack w/out Home/Work option [Re: tms13]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31573
Loc: Seattle, WA
The config file growing bug will be fixed in the next release, so don't worry too much about it.
_________________________
Tony Fabris

Top
#70242 - 13/02/2002 16:55 Re: Hijack w/out Home/Work option [Re: tfabris]
number6
old hand

Registered: 30/04/2001
Posts: 745
Loc: In The Village or sometimes: A...
Well,
I think Hijack should warn you that it read only part of the file, because as IR maps get larger and more complex it may well be possible to have a config.ini longer than 4 or 8k either deliberately or accidentally.

The only question is, how should Mark warn you? via the serial port message like he does with bad IR translations?
Or via a pop-up menu (or both).

I'd prefer both methods.

I don't think we have to get too clever with stat()ing the file etc - all that needs to be done is compare the number of bytes the read() call returns, compared to the block size/max amount amount of bytes requested -
if they are the same then you either have a exact sized config.ini (in which case I'd like to know before I add anything else to it), or I have a file thats larger than the amount I read - as a read will normally return less than what you request if the file is smaller than the amount you requested.

In either case (exactly 4 or 8K file or >4 or 8K file) its time for a warning.

You could also popup a warning/log a message on the serial port - if config.ini appears to be close to the maximum size without exceeding it.
Not sure I'd want a popup warning about this though.


Top
#70243 - 01/04/2002 03:00 Re: Hijack w/out Home/Work option [Re: mlord]
adavidw
addict

Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
The menu item only appears if your config.ini file actually has one or more ;@WORK or ;@HOME lines in it somewhere.


Mark,

Has this changed at all? Because I've got v251 installed, and I have this menu option in my Hijack menu, and I definitely do not have and @home or @work entries in my config.ini.
_________________________
-Aaron

Top
#70244 - 01/04/2002 07:21 Re: Hijack w/out Home/Work option [Re: adavidw]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14483
Loc: Canada
Yes, I think in the last version or two I altered it so that the menu item shows up regardless -- a response to too many repeats of the same stupid question.

Cheers

Top