Hijack w/out Home/Work option

Posted by: Taym

Hijack w/out Home/Work option - 12/02/2002 11:08

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.
Posted by: mlord

Re: Hijack w/out Home/Work option - 12/02/2002 12:11

The menu item only appears if your config.ini file actually has one or more ;@WORK or ;@HOME lines in it somewhere.

-ml
Posted by: Taym

Re: Hijack w/out Home/Work option - 12/02/2002 13:54

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?
Posted by: Taym

Re: Hijack w/out Home/Work option - 12/02/2002 13:59

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=no.spam.taym@ringnet.it
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
Posted by: tfabris

Re: Hijack w/out Home/Work option - 12/02/2002 14:17

... 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.
Posted by: loren

Re: Hijack w/out Home/Work option - 12/02/2002 14:39

working for me with v199.
Posted by: mlord

Re: Hijack w/out Home/Work option - 12/02/2002 15:14

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.
Posted by: mlord

Re: Hijack w/out Home/Work option - 12/02/2002 15:16

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.
Posted by: Alan

Re: Hijack w/out Home/Work option - 12/02/2002 15:39

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.
Posted by: Taym

Re: Hijack w/out Home/Work option - 13/02/2002 02:16

That was it. Thank you very much Tony!
Posted by: Taym

Re: Hijack w/out Home/Work option - 13/02/2002 03:09

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.
Posted by: mlord

Re: Hijack w/out Home/Work option - 13/02/2002 09:44

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
Posted by: tms13

Re: Hijack w/out Home/Work option - 13/02/2002 10:35

Perhaps it should put out a warning if the config file is too big?
Posted by: tfabris

Re: Hijack w/out Home/Work option - 13/02/2002 12:33

The config file growing bug will be fixed in the next release, so don't worry too much about it.
Posted by: number6

Re: Hijack w/out Home/Work option - 13/02/2002 16:55

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.

Posted by: adavidw

Re: Hijack w/out Home/Work option - 01/04/2002 03:00

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.
Posted by: mlord

Re: Hijack w/out Home/Work option - 01/04/2002 07:21

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