Unoffical empeg BBS

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

Page 1 of 4 1 2 3 4 >
Topic Options
#58942 - 14/01/2002 22:59 Hijack v124: kftpd & khttpd stuff
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay v124 is out.

Recent stuff of interest includes the new kftpd "SITE" commands:

-- SITE RO
-- SITE RW
-- SITE REBOOT
-- SITE EXEC arbitrary command ; another arbitrary command

The RW command remounts /,/drive0,drive1 for read-write access, and RO puts them back into read-only. Wait about 5 seconds after issuing them, because they execute asynchronously.

None of the SITE commands return any output, and none of them return any status codes other than "Okay". That's because I gave up trying to figure out how to communicate with the child spawned from the internal execve() invocation (slightly different from usermode). All stdin/stdout/stderr for any such commands is simply redirected to the serial port for now. But the mechanism works, crude as it may be.

Also new, is the /proc/empeg_kernel "device", created within the kernel by Hijack. This is simply a block device entry for MAJOR=60 MINOR=8, the "kernel" flasher. If you use FTP to upload a kernel zImage file to /proc/empeg_kernel then it will be burned to flash during the FTP. Takes about 5 seconds.

This is the much faster equivalent to using "download" or "logo editor" to flash a new kernel. Works fine on a stock consumer image, too, so long as Hijack v124 (or higher) has been installed.

Also recently new, is the ability to write to /proc/empeg_notify. Reading from it just gives the player status (requires [output]notify=1 in config.ini), but the other direction can be used to inject commands to Hijack:

echo "button 20df12" >/proc/empeg_notify (a short press)
echo "button 20df12.L" >/proc/empeg_notify (a long press)

This virtual button pressing can be done remotely using FTP to write to those files, as well as using the FTP SITE EXEC command to issue those "echo" commands shown above.

In addition to "button" commands, one can also do"

echo "reboot" >/proc/empeg_notify

and also for fun you can do:

echo "popup Hello, World!" >/proc/empeg_notify

Cool, eh!

-ml



Edited by mlord (14/01/2002 23:13)

Top
#58943 - 14/01/2002 23:12 Re: Hijack v125: kftpd & khttpd stuff [Re: mlord]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hmm.. im only seeing v124 on your site...

-Greg

Top
#58944 - 14/01/2002 23:13 Re: Hijack v124: kftpd & khttpd stuff [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay, I've edited the posting.. v124 is correct (I had an internal v125 that confused me).

-ml

Top
#58945 - 14/01/2002 23:21 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Beautiful stuff as always. I love the reboot, now my empflash.sh script can automatically reboot if the kernel files match.
_________________________
- Tony C
my empeg stuff

Top
#58946 - 15/01/2002 02:51 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
wvloon
journeyman

Registered: 13/08/2000
Posts: 82
Loc: Near Arnhem, Netherlands
Mark,

What does this khttpd: "index.html" lookups do ?
_________________________
[email protected] ------------------------ Reg:1934/Mk1:158-Blue(sold)/Mk2:380-Amber(sold)/Mk2a:3273-Blue

Top
#58947 - 15/01/2002 03:47 Re: Hijack v124: kftpd & khttpd stuff [Re: wvloon]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
If you request a directory, say "http://empeg/drive0/" khttpd will look to see if there is a file called index.html in the directory in question. If there is it will serve out the index.html file instead of a directory listing.

At least I guess that's want it does, I haven't downloaded the new version yet...
_________________________
Remind me to change my signature to something more interesting someday

Top
#58948 - 15/01/2002 07:56 Re: Hijack v124: kftpd & khttpd stuff [Re: andy]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Yup, that's exactly what it does. Most webservers do (or can be configured to do) the same kind of thing. Useful if you want to hide the contents of a directory from direct viewing, too.. just drop any "index.html" file you please into the dir, and it becomes unviewable. I use this on my webserver to hide "private" content.

Cheers

Top
#58949 - 15/01/2002 09:43 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
jwtadmin
enthusiast

Registered: 05/09/2000
Posts: 210
Loc: Ipswich, MA
for us windows users using windows builtin FTP client
ftp> literal SITE EXEC echo "button 20df12" >/proc/empeg_notify

Now where do I find all of the button codes?
_________________________
___ John Turner "It's easier to ask for forgiveness than to ask for permission"

Top
#58950 - 15/01/2002 10:05 Re: Hijack v124: kftpd & khttpd stuff [Re: jwtadmin]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
The button codes can be found by entering the hijack menu, and using the "Button Codes Display" screen in conjunction with pressing buttons on your remote. Just ignore the codes that start with "8".

Or you could look in the ir_translations section on the hijack website.

Cheers

Top
#58951 - 15/01/2002 10:07 Re: Hijack v124: kftpd & khttpd stuff [Re: jwtadmin]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Speaking of which.. Yes, I am going to be adding "http POST" commands to do what the "FTP SITE" commands do (RO, RW, POPUP, REBOOT, and soon.. BUTTON).

-ml

Top
#58952 - 15/01/2002 14:40 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
Dearing
addict

Registered: 22/07/1999
Posts: 453
Loc: Florida
Cool... another use for Tony's remote control imagemap.
_________________________
_~= Dearing =~_
Gettin' back into it thanks to slimrio!

Top
#58953 - 15/01/2002 15:21 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Yes, I am going to be adding "http POST" commands to do what the "FTP SITE" commands do (RO, RW, POPUP, REBOOT, and soon.. BUTTON).

What I would really like to see (rub, rub) is this HTTP interface become a full file management interface. Like this:



What do you think, Mark?


Attachments
57431-rub_lamp.gif (267 downloads)

_________________________
Tony Fabris

Top
#58954 - 15/01/2002 16:05 Re: Hijack v124: kftpd & khttpd stuff [Re: tfabris]
bloated
new poster

Registered: 10/01/2002
Posts: 2
Loc: Lincoln, NE
This is a good idea, but I would prefer if it was an option, not the default. Perhaps it could
be like "Fancy Indexing" in Apache where, via the .htaccess file, you can define a header
and footer which would include the necessary forms for your user interface.

Top
#58955 - 15/01/2002 18:19 Re: Hijack v124: kftpd & khttpd stuff [Re: tfabris]
cwillenbrock
enthusiast

Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
What I would really like to see (rub, rub) is this HTTP interface become a full file management interface

That would rule. I don't see a means to changing attributes on existing files, tho. That would make it an almost full file management interface.
_________________________
- Chris Orig. Empeg Queue position 2

Top
#58956 - 15/01/2002 21:49 Re: Hijack v124: kftpd & khttpd stuff [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay, all that we need for this is some html to dress up a directory listing. Anybody want to generate the html?

-ml

Top
#58957 - 15/01/2002 22:21 Hijack v126: more kftpd & khttpd stuff [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay v126 has just been released http://empeg-hijack.sourceforge.net/

Improvements from v124/v125 include:

-- http dirlist works again (was broken in v125).

-- SITE EXEC is as broken as before.. I think I'll remove it entirely next release, since the enhancements below pretty much eliminate most needs for it.

-- Popup messages are now used as progress indicators for SITE RO and SITE RW commands in ftp.

-- ftp SITE RO and SITE RW are now implemented internal to the kernel, so they will work fine on a consumer image (previously required the developer image).

-- ftp SITE POPUP command can be used to display a timed message on the front panel, as in:

ftp myempeg.localnet.

site popup 99 Flashing new kernel..
put zImage /proc/empeg_kernel
site popup 1 Done.
site reboot

-- ftp SITE REBOOT command now does "SITE RO" automatically before reboot. Note that the Hijack Menu "Reboot Machine" does NOT do RO before booting though..

-- ftp SITE BUTTON xxxxxxxx command exists for remote button simulations. Also works with xxxxxxxx.L to simulate longer presses.

-- Multiple SITE commands can be issued at once, separated by semi-colons.

-- All of the SITE syntax now also works for echoing commands to /proc/empeg_notify as well as for using HTTP GET commands with parameters for /proc/empeg_notify, as in:

http://myempeg.localnet./proc/empeg_notify?button=20df12.L

-- I have replaced /proc/empeg_screen.tiff with a PNG version called /proc/empeg_screen.png --- it is still tiny (32x128 pixels), but if we later put an HTML wrapper around it, we can get most browsers to scale it to a viewable size. I'm hoping somebody writes some HTML to present this screen display along with some buttons that use the parameter syntax (discussed above) to do full remote control.. How about it?

Other changes, but I've lost track..

Enjoy!



Top
#58958 - 15/01/2002 22:53 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Also new as of v126, the SITE RO and SITE RW commands are now fully synchronous, meaning you don't get a response from them until they finish their job 100%.

I'm putting out a v127 shortly, the only difference being that it omits the networking stuff (kftpd, khttpd, and some of the /proc features) when built for a mk1 unit (no ethernet on those).

Cheers.

-ml

Top
#58959 - 15/01/2002 23:43 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I'll start working on HTML for an interface of some sort. I'll keep everyone posted.

Top
#58960 - 15/01/2002 23:52 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
bloated
new poster

Registered: 10/01/2002
Posts: 2
Loc: Lincoln, NE
Ok, here's my lame attempt at an html interface. Note that this is fairly simple
and I didn't do any image maps or anything (I'll leave that for someone else, or
I'll do it tomorrow after I get some sleep...)

There are three files:

index.html: The frameset file
empeg-display.html: loads the display image and has a 10-second refresh
empeg-control.html: a crude version of the rio remote

Note: my empeg appears to lock up after several minutes when using this.
It looks like the load starts to climb and then it stops responding.


Attachments
57577-empeg-html.zip (36 downloads)


Top
#58961 - 15/01/2002 23:53 Re: Hijack v126: more kftpd & khttpd stuff [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I'll start working on HTML for an interface of some sort. I'll keep everyone posted.

Cool. I was thinking something along the lines of the HTML file management interface that's up for the admins at riocar.org, except without the graphics (don't want to cram those into the kernel).
_________________________
Tony Fabris

Top
#58962 - 16/01/2002 01:16 Re: Hijack v124: kftpd & khttpd stuff [Re: tfabris]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
To support the upload functionality Mark would have to do a bit more work on khttpd, he would need to implement multi part POST requests to process the results of POSTing a form with a "file" type input box on it.
_________________________
Remind me to change my signature to something more interesting someday

Top
#58963 - 16/01/2002 01:19 Re: Hijack v124: kftpd & khttpd stuff [Re: andy]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I get the feeling that Mark could implement a cure for cancer and world peace in the Empeg kernel if we asked him to.
_________________________
Tony Fabris

Top
#58964 - 16/01/2002 01:45 Re: Hijack v124: kftpd & khttpd stuff [Re: tfabris]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Ok I officially suck at java... hehe... I've been trying for about 2 hours to write a script to refresh the empeg_screen image on the page so that there wouldn't have to be a whole frame refreshing, plus it looks smoother, but it doesnt like the .png format. I got it working for .jpg just fine. I threw out the code and am trying again but its 2:44am and i've got class in 4.5 hours. Anyone have something like this? i suppose its the same kind of script that is used for refreshing webcame images on a webpage. If you do post it or email it to me at [email protected]. I got something kinda cool worked out ; ) but i need this as a start to the (short) developement.

-Greg

Top
#58965 - 16/01/2002 08:06 Re: Hijack v126: more kftpd & khttpd stuff [Re: bloated]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
> Note: my empeg appears to lock up after several minutes
>when using this. It looks like the load starts to climb
>and then it stops responding.

Mmm.. yes, the khttpd threads seem to be getting stuck in Zombie status, rather than dying away like they were supposed to do. So the machine just runs out of memory after a few (re)connections. Maybe this is why ftp sometimes fails (once every hundred or two files). I'll look into that and fix it (somehow).

-ml

Top
#58966 - 16/01/2002 08:17 Re: Hijack v124: kftpd & khttpd stuff [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Yeah, sorry for the .png, but it's the only lossless image format that all browsers understand. Pity it's so bloody complex, even for an uncompressed image like the screen dump.

If you'd prefer a raw packed pixel dump, I can provide that as an alternative, almost for free. But it's easy enough to extract from the .png as well. Just remember, in the IDAT section, every screen row is 33 (not 32) bytes -- throw away the first byte of each row (a "null" filter code), and keep the other 32 bytes. Within each byte are four 2-bit pixels, laid out in viewing order from msb to lsb (silly png!!). All of this is at offset 48(decimal) from the first byte of the png file; the rest of the file can be ignored.

-ml

Top
#58967 - 16/01/2002 08:33 Re: Hijack v124: kftpd & khttpd stuff [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
>I get the feeling that Mark could implement a cure for cancer
>and world peace in the Empeg kernel if we asked him to.

Curing world peace is easy.. already been done a thousand times.
But curing world unrest is much more difficult.. not enough memory.


Edited by mlord (16/01/2002 08:33)

Top
#58968 - 16/01/2002 08:56 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Ok, you know about this then. I was about to post my capture on it, the empeg didn't like my javascript autorefresher.

And would would people prefer, a Javascript based autorefresher, or a java one?

(Ugg, looks like we have a nother round of Nimda running around here again. Looks like that could freese up my empeg, time to move it to the test network again)

Top
#58969 - 16/01/2002 11:05 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Smart ass.
_________________________
Tony Fabris

Top
#58970 - 16/01/2002 11:54 Re: Hijack v126: more kftpd & khttpd stuff [Re: drakino]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Drakino. I'd say javascript. That way its easily customized and inserted. (plus probobly smaller in size, which I guess doesn't matter since it will be like 30k if that). I still havn't gotten it to work yet. If anyone gets it to work please post it. I'll do the same.

-Greg

Top
#58971 - 16/01/2002 12:06 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868

< script language="JavaScript" >
function cycle() {
document.empegScreen.src="http://empeg/proc/empeg_screen.png"
setTimeout("cycle()",1 * 250)
}
< /script >
< img src="http://empeg/proc/empeg_screen.png" name="empegScreen" border="0" width="128" height="32" >
< script language="JavaScript" >
cycle()
< /script >


That will refresh the image every 250 ms. Keep in mind with the current zombie problem, this will crash the empeg in under a minute.


Top
#58972 - 16/01/2002 13:16 Re: Hijack v126: more kftpd & khttpd stuff [Re: drakino]
thenominous
member

Registered: 22/12/2001
Posts: 189
Loc: UK
I dont seem to be able to get that to work here. It requests from the empeg, but the image is not refreshed.

The meta tag refrest works, and is a fast update with 0.5 and below although a little flickery but as mentioned crashes the machine very quickly.

On a side note a friend who said it was too expensive for him in the xmas rush is now immensely jealous

Top
#58973 - 16/01/2002 13:38 Re: Hijack v126: more kftpd & khttpd stuff [Re: thenominous]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
What browser are you using? I think I may not be using one of my old universal methods for referring to an object, so it may not work outside of IE.

I'll dig up some of my Javascript coding to see the best way to do it.

Top
#58974 - 16/01/2002 13:44 Re: Hijack v126: more kftpd & khttpd stuff [Re: tfabris]
eternalsun
Pooh-Bah

Registered: 09/09/1999
Posts: 1721
Loc: San Jose, CA
Forget *FILE* management. How about a Jukebox manager?

Basically an HTML interface that *EVERYONE* in the office can use to "request" songs. Songs that are requested are queued up. The empeg can then be hooked up directly into the pager system of the office, and voila!!!!

Calvin

Top
#58975 - 16/01/2002 13:50 Re: Hijack v126: more kftpd & khttpd stuff [Re: eternalsun]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Forget *FILE* management. How about a Jukebox manager? Songs that are requested are queued up. The empeg can then be hooked up directly into the pager system of the office, and voila!!!!

That would be a cool thing to implement as an external program using the Emplode protocols. You could distribute it as a client program to each of the workstations. Each workstation could insert one song at a time (using the emplode protocol's "insert" feature), and then would lock the user out of inserting anything for the next ten minutes or so (so no one would monopolize it).

A little work with password protection would need to be done to prevent someone from just running Emplode and taking over the player, but it's do-able.

Sounds like a fun idea for small offices.
_________________________
Tony Fabris

Top
#58976 - 16/01/2002 14:01 Re: Hijack v126: more kftpd & khttpd stuff [Re: tfabris]
eternalsun
Pooh-Bah

Registered: 09/09/1999
Posts: 1721
Loc: San Jose, CA
Since Mark implemented HTTP methods for controlling the player.. it seems like it's one step away from complete HTTP access to the player. You don't need the empode protocols (though it can be done with I guess).

It seems to me, that you have designate one machine as the "gatekeeper" to the empeg, install the jukebox queue there, and that machine has the necessary software to connect to the empeg and insert songs, etc. The "gatekeeper" machine is also running a web front end that loads the queue. Pretty simple, no need to install any client programs anywhere.

Calvin

Top
#58977 - 16/01/2002 14:04 Re: Hijack v126: more kftpd & khttpd stuff [Re: eternalsun]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Inserting songs into the players current playlist pretty much has to be done with the emplode protocol. However, there could in theory be a daemon running on the player that connected locally using the emplode protocol, but then accepted HTTP request and passed them through to the player.

This sort of thing doesn't belong in the kernel however...
_________________________
Remind me to change my signature to something more interesting someday

Top
#58978 - 16/01/2002 14:06 Re: Hijack v126: more kftpd & khttpd stuff [Re: eternalsun]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Since Mark implemented HTTP methods for controlling the player.. it seems like it's one step away from complete HTTP access to the player. You don't need the empode protocols (though it can be done with I guess).

I guess you could do it that way, yeah, my point was that it sounded like a good project for a third-party app that didn't depend upon a hacked kernel. Seems like it could be done pretty easily with a subset of the Jemplode code. It's always nice when something can run against a stock player with the default consumer build installed.
_________________________
Tony Fabris

Top
#58979 - 16/01/2002 15:06 Re: Hijack v126: more kftpd & khttpd stuff [Re: andy]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Almost everything in Hijack belongs in the player, not the kernel.

But the player is closed source, and uses proprietary (though published) non-extensible protocols to communicate. So that leaves us with a very hackable kernel.

Speaking of hacks.. is there a way to use the remote or the serial port to feed a "FID" to the player??

-ml

Top
#58980 - 16/01/2002 15:25 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Fair point, although I think adding code for the emplode protocol into the kernel would be more bloat that we need...

There was a command to play a FID from the serial port, but I believe it stopped working many builds ago.
_________________________
Remind me to change my signature to something more interesting someday

Top
#58981 - 16/01/2002 15:26 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
wvloon
journeyman

Registered: 13/08/2000
Posts: 82
Loc: Near Arnhem, Netherlands
Take a look at this post for an answer.
_________________________
[email protected] ------------------------ Reg:1934/Mk1:158-Blue(sold)/Mk2:380-Amber(sold)/Mk2a:3273-Blue

Top
#58982 - 16/01/2002 15:31 Re: Hijack v126: more kftpd & khttpd stuff [Re: wvloon]
cwillenbrock
enthusiast

Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
Not so much an answer...

I'm still wondering why it isn't working.
_________________________
- Chris Orig. Empeg Queue position 2

Top
#58983 - 16/01/2002 16:50 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
eternalsun
Pooh-Bah

Registered: 09/09/1999
Posts: 1721
Loc: San Jose, CA
If you can FID or script-FID the player, then I can see the beginnings of speci,alist off-empeg control programs.

I think you take the empeg not as a computer, but at face value -- hardware that plays music... then indeed, you can argue that some of this stuff "belongs" in the kernel. (yeah, the argument is weak because there are alternatives for functionality placement ). In any case, given that "playing a song" is associated with the hardware, then you could wrap that with some HTTP compatible control mechanism and create firewall friendly, network friendly, web based software that leverages the box pretty easily.

Calvin

Top
#58984 - 16/01/2002 17:16 Re: Hijack v126: more kftpd & khttpd stuff [Re: bloated]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
The crashing (after a while) is now fixed in v128.

It took, like, forever to find the magic flag that wait4() wanted for it to "wait" on kernel threads..

-ml


Edited by mlord (16/01/2002 17:24)

Top
#58985 - 16/01/2002 17:29 Re: Hijack v126: more kftpd & khttpd stuff [Re: drakino]
thenominous
member

Registered: 22/12/2001
Posts: 189
Loc: UK
Im using IE 5 so something's a miss somewhere
Still a problem with Hijack V128

Top
#58986 - 16/01/2002 17:57 Re: Hijack v126: more kftpd & khttpd stuff [Re: thenominous]
thenominous
member

Registered: 22/12/2001
Posts: 189
Loc: UK
Its working really well now in the web browser with meta refresh set to 0.1
The only problem being that the refresh flashes the .png file, it reminds me of some of the old AMiga demos
Is there any way to have a real time display update without the flashing? The best I could think of is some sort of quicktime stream, but then I hate QT so...

Top
#58987 - 16/01/2002 18:16 Re: Hijack v126: more kftpd & khttpd stuff [Re: thenominous]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
That Javascript method above dosen't have a flicker (Are you removing the spaces I had to add around all the tags?), and a Java applet would also be able to do it with no flicker.

Let me dig up a premade java applet for web cams here real quick...Here we go.

Top
#58988 - 16/01/2002 18:26 Re: Hijack v126: more kftpd & khttpd stuff [Re: drakino]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Ok I did this at my G/F house (see attached) in notepad and paint for a while till i got home since she has nothing good for editing on her computer. This is really simple to make but I know there are some out there that don't have much design experience so I decided to write this. It need hijack install but it can be run from whereever you download it or in your / dir on your empeg as long as your empeg ip is 192.168.0.2 otherwise you'll need to change that. I had a problem with linking the empeg fascia around the display screen with the javascript that was posted. It would leave a white line on the bottom of the display ; / If anyone can get this to work please post. I set the display to update every 3 seconds you can change this very easily. If you guys want me to work on this more I'll be happy to.. this is just a rough design to see how it all looked. I was trying to make something in flash so a blue/green/red transparency could be put over the empeg_screen.png and make it look like your player. The problem is getting the empeg_screen.png into the flash and refreshing it. Let me know what you thing.

-Greg


Attachments
57959-empegweb.zip (35 downloads)


Top
#58989 - 16/01/2002 18:35 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
thenominous
member

Registered: 22/12/2001
Posts: 189
Loc: UK
ohhh!!!! you sod!
Guess what I just finnished doing...

Right thats it, Im off to bed...

IIRC flash lets you do transparency, so could you not just use the .png file as a backgrouns image and have the flash movie over the top, with an option to select the colour of your face plate?

Top
#58990 - 16/01/2002 18:36 Re: Hijack v126: more kftpd & khttpd stuff [Re: thenominous]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hehe.. post yours.. im interested in seeing you idea. ; )
-Greg

Top
#58991 - 16/01/2002 18:38 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
thenominous
member

Registered: 22/12/2001
Posts: 189
Loc: UK
well, I just finnshed the code for the image map (I cheated, used FIreworks) and it was a dodgy attempt at using my girlfriends new digicam Its embarassing in comparison, but Ive attached the code anyways for a laugh.


Attachments
57967-remote.zip (74 downloads)


Top
#58992 - 16/01/2002 19:06 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Here is a ScreenShot of the source I posted above. Just to know what your downloading.


Attachments
57977-screenshot.png (210 downloads)


Top
#58993 - 16/01/2002 19:26 Re: Hijack v126: more kftpd & khttpd stuff [Re: thenominous]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Oops, found the problem. I grabbed some old rorational image code, and stripped it down. I though I had saved and verified it, but I just went back to my HTML editor and realised I missed the save button

Attached is the updated screen.htm with Javascript Based rotation. I'll work on using that Java webcam one above here in a bit.


Attachments
57985-screen.htm (309 downloads)


Top
#58994 - 16/01/2002 19:35 Re: Hijack v126: more kftpd & khttpd stuff [Re: thenominous]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Me too !!!

I was just putting the finishing touches to my player graphics when it was posted...
_________________________
Remind me to change my signature to something more interesting someday

Top
#58995 - 16/01/2002 19:38 Re: Hijack v126: more kftpd & khttpd stuff [Re: drakino]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
You guys are insane!!!

Okay, a couple of notes for you script/java/flash writers:

The latest (v128) hijack now supports "GET" with parameters and any (or no) pathname.. this may make button pressing easier for you.

Eg. instead of: "GET /proc/empeg_notify?button=20df12"
you can now do: "GET /?button=20df12"
or even: "GET /proc/empeg_screen?button=20df12"

And I'm looking a a table-based CRC32 to see if it's any faster than the on-the-fly CRC32 currently used for the .png encoding -- see if the load on the empeg can be further reduced with it.

And if anyone wants a non-PNG version of the display (for flash importing or whatever), let me know.. not sure if it will speed anything up, though, since even my PNG version does NOT actually compress the image.

Cheers

-ml


Edited by mlord (16/01/2002 19:39)

Top
#58996 - 16/01/2002 19:38 Re: Hijack v126: more kftpd & khttpd stuff [Re: andy]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hehe. if anyone else was working on one post them I'd like to see your guys idea. If enough people are going to use this i'd like to get it up on a website for people to download from. I'd stick it on my server but anymore traffic and im gunna have to get a loan hehe. Let me know if you guys have any idea's to make it better.

-Greg

Top
#58997 - 16/01/2002 19:50 Re: Hijack v126: more kftpd & khttpd stuff [Re: drakino]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
That Java applet dosen't work with PNG images, so no go without modifications.

Has anyone looked at the Java file from Displayserver? It had support in it for color. In theory, a few modifications (possibly with a raw feed available in /proc), it should work pretty well.

The odd thing is that Sun says 1.30 and higher supports PNG images. Maybe it has to be compiled and run under that version. (I'm running 1.31 here). I don't have all the tools here to recompile it and try, and I'm heading home for my weekend once this call is over.

Top
#58998 - 16/01/2002 19:51 Re: Hijack v126: more kftpd & khttpd stuff [Re: thenominous]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
You can improve your .html scripts if you use "relative" paths instead of hardcoded ones. Eg. instead of "http://192.168.0.2/proc/empeg_notify?button=20df07.S just use "/proc/empeg_notify?button=20df07.S".

Note that the ".S" is totally ignored, so it should get removed.

And with v128 hijack, this all becomes: "/?button=20df07"

Cheers


Top
#58999 - 16/01/2002 19:53 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Don't think flash is possible, i've been looking around. I've attached the latest files to this one. It has Drakino's refresh javascript and I added controlls on the empeg fascia. For volume the top have increases volume and vice versa.

-Greg


Attachments
58006-empegwebv1.2.zip (33 downloads)


Top
#59000 - 16/01/2002 19:57 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Also, I'd like to see a larger image size. If you add WIDTH=256 HEIGHT=64 to the IMG tag for /proc/empeg_screen.png, then it becomes readable. Could somebody have a go at that, with larger facia to match?

This is just soooo CL!!

Top
#59001 - 16/01/2002 20:09 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Noproblem. I'll work on it when I get home. No image editing tools here for the fascia. I just set it small since the empeg_screen.png is really nice at the size it is now. I tried expanding the .tiff when it was set to that and it didn't look as nice. Maybe png will look better. I also just set in the 192.*.*.* so it could be ran right away without having to upload it so you can modify it a bit. I'll post the next one with relative paths. Anyone know of a way to make a link not actually open a page? I had to add that other frame in the upper right corner so that everything would work, there has to be a better way.

-Greg


Edited by mandiola (16/01/2002 20:13)

Top
#59002 - 16/01/2002 20:13 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Any known issues with load problems and the kftpd in v128? I just had an ftp session lock, and the setail port, plus kftp/khttpd are unresponsive. Vitals show load of 202.30, 166.56, 87.something...


Top
#59003 - 16/01/2002 20:37 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
The button links send "GET " commands, which REQUIRE loading a page of some kind.. but you could "GET /dev/null" for really short ouput. Maybe I'll redirect "?button=xxxx" to /dev/null in v129, just for a trial.

Also, table-based CRC32 turns out to take 1/10 the CPU usage (I measured it) of the non-table version used in v128. So, I guess I'll waste another KB on a CRC table..

Cheers

Top
#59004 - 16/01/2002 20:41 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Hey Mark why was site exec removed from kftpd? Permanent change or just remodeling?
_________________________
- Tony C
my empeg stuff

Top
#59005 - 16/01/2002 20:44 Re: Hijack v124: kftpd & khttpd stuff [Re: drakino]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
No, solid as a rock here, until beta7 crashes on its own (rare, now that I have reserved=9 in config.ini).

Top
#59006 - 16/01/2002 20:47 Re: Hijack v126: more kftpd & khttpd stuff [Re: tonyc]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
It was giving me too much grief, so I nuked it -- non synchronous, no output, etc.. and not really required for a "stripped down" kernel kftpd.

I think just running a telnet server would be a better idea, and they're easy to install with kftpd now. I'll eventually see about program launching from config.ini, where being synchronous isn't a big deal, but I just got terribly frustrated with it all today.

Cheers

Top
#59007 - 16/01/2002 20:54 Hijack v129 [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay, v129 will be out shortly:

-- http "GET /?button=xxxxx" now returns NO DATA WHATSOEVER.
-- http "GET /?" also now returns NO DATA
-- the .PNG encoder now uses a table-lookup version of the crc32 calculation, which reduces it's CPU load by a factor of 10 (for just that portion of the PNG code).

Nothing else (that I remember).

Cheers

Top
#59008 - 16/01/2002 20:56 Re: Hijack v126: more kftpd & khttpd stuff [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Gotcha... Good reasons. So where's ktelnetd?

No I'm not at all serious about that. I was thinking of getting telnetd on my Empeg at some point but I didn't want to waste the memory. Actually I still don't.. Forget I mentioned telnetd.
_________________________
- Tony C
my empeg stuff

Top
#59009 - 16/01/2002 21:25 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
siberia37
old hand

Registered: 09/01/2002
Posts: 702
Loc: Tacoma,WA
Tried out your code here, very cool! Only thing is I couldn't get javascript refresh to work. So I modified your code a bit, this method of cycling is dead simple, just attach ?nocache=x to the url where x is an incrementing number. See the code attached.


Attachments
58040-screen.htm (321 downloads)


Top
#59010 - 16/01/2002 21:38 Re: Hijack v126: more kftpd & khttpd stuff [Re: siberia37]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hmm.. the code you just posted was just like the one i tried writing last night. For some reason it doesnt work for me. I'll have to look into this.

-Greg

Top
#59011 - 16/01/2002 22:21 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Ok attached is the most resent updates. I've done a few more things with this one. There are not more static links (unless I forgot to take one out here or there). There is also a built in option to view the empeg large or small. I couldn't find an easily modifiable fascia that would with on the 2x screen so i just blew up the small fascia. If anyone wants a better looking one I can do it, no problem. I actuly don't think it looks too bad. I also fixed a few buttons on the empeg that were set wrong.
Let me know if theres anything else I should put in here. I also tried making this out of flash and i can't get the screen to refresh. If anyone has a better way of updating the screen please post. The way right now is ok but it could be a lot better.

-Greg


Attachments
58053-EmpegWeb V1.3.zip (39 downloads)


Top
#59012 - 16/01/2002 22:39 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
A few absolute URL's (with 192.168.0.2) are still hanging around in
screenlarge.html
screenregular.html
index.html

Buttons aren't working for me on this one.. Not sure why.

Anyway Flash is nice I think a Java applet might work well. Frank certainly had that part of it nailed down with display server. Java is also much more portable than Flash.
_________________________
- Tony C
my empeg stuff

Top
#59013 - 16/01/2002 22:42 Re: Hijack v126: more kftpd & khttpd stuff [Re: tonyc]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
The buttons use new features in Hijack v129. If you upgrade they should work. I'll fix the statcs ; ) . Java would be nice but I only have experience in javascript not actaul coding.. I guess its never too late to learn.

-Greg

Top
#59014 - 16/01/2002 22:55 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Ok here is the latest. I went over everything to make sure it works. I also removed all the statics ip's except for the main ftp:// link. Anyone know how i can make this load to show the directory of the empeg without having it static? I tried "/" but it didn't work. MAKE SURE YOU HAVE Hijack v129 or this wont work without modifying. You should be updating Hijack every release anyways, hehehe.

-Greg


Attachments
58061-EmpegWebV1.3.zip (33 downloads)


Top
#59015 - 16/01/2002 23:10 Re: Hijack v129 [Re: mlord]
Diznario
enthusiast

Registered: 17/10/2001
Posts: 265
Loc: Portland OR
Hey Mark,

It looks like IE6 doesn't like the FTP server in v129 anymore. In v128, it worked fine, but now with v129, IE crashes as soon as I try to contact my player via FTP.

HTTP still works fine though.

I'm runng the XP version of IE6, BTW.
_________________________
Dario
MK2 in an Impreza 2.5RS

Top
#59016 - 16/01/2002 23:13 Re: Hijack v129 [Re: Diznario]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hmm. It works fine for me. I just tried it on my WindowsXP box with IE6. Check windowsupadate I think there was a something that needed to be patched with the ftp and some other stuff in IE6. Plus if you havnt already you can patch the nasty exploits that were found.

-Greg

Top
#59017 - 16/01/2002 23:16 Re: Hijack v126: more kftpd & khttpd stuff [Re: tfabris]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Actually, this is exactly how I got into mp3s.

Back at warwick university, where myself, Mike, Roger, John and John also went (though not all at the same time), there was a terminal room in the CS dept called the Fyshbowl, because it had glass walls.

This is where all the geeks hung out, despite the room being starved of decent hardware (lots of ADM-3As, a couple of IPCs, several ELC(?)s and one Sparc 5 a bit later on).

Anyway, people got to finding sun 8khz mono .au files around on the net, and built a jukebox/chat server. You could log into it, chat, search for music and play it (queue it up), which was used for general entertainment for everyone in the room.

When the sparc 5 came on the scene with its bigger speaker and better sound (22khz?) people found l3dec and integrated it - it didn't have enough CPU for full rate decode though! I used to record (at 22khz) my CDs on my pc through an analogue connection, mp3 encode them and bring them in on floppies to build the library.

Later versions even had fair queuing, so if someone had queued 10 files then another used queued 1, it'd go in as nr 2 in the list.

Richard Neal was the original perpetrator

Hugo

Top
#59018 - 16/01/2002 23:19 Re: Hijack v129 [Re: Diznario]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
Same problem here. With W2k and IE60. V128 works also ok.

bye
_________________________
crazymelki.com

Top
#59019 - 16/01/2002 23:40 Re: Hijack v129 [Re: mandiola]
Diznario
enthusiast

Registered: 17/10/2001
Posts: 265
Loc: Portland OR
I just checked Windows Update again, and theres nothing new in there. I check it at least once a day, so I'm usually pretty on top of updates. The only stuff that I haven't downloaded are completely nonsequiter, like the "Euro Conversion tool". Don't think the stuff that's in there has anything to do with the problem I'm seeing. Keep in mind, that it works fine with v128. I backgraded to that, and sure enough, it works fine again.
_________________________
Dario
MK2 in an Impreza 2.5RS

Top
#59020 - 17/01/2002 03:38 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
This is awsome! GREAT JOB!
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#59021 - 17/01/2002 07:05 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
siberia37
old hand

Registered: 09/01/2002
Posts: 702
Loc: Tacoma,WA
this could be a browser problem I was using IE 5.0 what browser were you using? Javascript is notorious for not being standard. I get the feeling also that IE doesn't handle PNG image rollovers as smoothly as it does gif and jpg files, the support for png files in IE has never been perfect.

Top
#59022 - 17/01/2002 08:18 Re: Hijack v129 [Re: Diznario]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Well, that is easy enough to fix: just insert a Mandrake-8.1 installation disk into the CD-ROM tray, hit the reset button, and choose "fully automatic" installation.

Or you could try connecting up your serial port, setting [hijack] kftpd_verbose=1 in config.ini, and then running ftp again, and sending me some useful diagnostics.

Cheers


Edited by mlord (17/01/2002 08:18)

Top
#59023 - 17/01/2002 09:31 Hijack v130 [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
>Ok here is the latest. I went over everything to make sure it works.
>I also removed all the statics ip's except for the main ftp:// link.
>Anyone know how i can make this load to show the directory
>of the empeg without having it static?
>I tried "/" but it didn't work.

Well, now that you've got it looking really pretty-like, I've probably gone and broken it again.

Hijack v130 is out, and the changes that affect your awesome scripting are:

-- http "GET /some/path?options" no longer returns NULL, but rather fetches the path as in pre-v129 versions. So if you want button presses to not waste bandwidth, then point them at /dev/null, as in "GET /dev/null?button=20df12"

-- http "GET /any/directory/?anything" now skips the search for "index.html". This means the "ftp://static_ip/" can now be replaced with a simple "?"" (I think), or perhaps "/?"

Other new stuff in v130:

-- new "SITE RW /" command: rw remount of / only
-- new "SITE RW /drive0" command: rw remount of /drive0 and /
-- new "SITE RW /drive1" command: rw remount of /drive1 and /
-- ftp "CWD" command now validates the new directory path
-- the .png generator is faster and smaller than before
-- the .png generator is now re-entrant, allowing multiple simultaneous connections to /proc/empeg_screen.png

Cheers


Edited by mlord (17/01/2002 09:32)

Top
#59024 - 17/01/2002 10:20 Re: Hijack v129 [Re: crazymelki]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
I did again some tests and found the problem. The problem is when I start to edit the index.html. If I do open local on my PC the original file from empegweb13 then it works. But after editing with Frontpage or Ultraedit my Internet Explorer 6.0 hangs.

I did only change my IP Address.

Any idea why?

bye
_________________________
crazymelki.com

Top
#59025 - 17/01/2002 10:31 Re: Hijack v129 [Re: crazymelki]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
Sorry,

Some addional information. If I change the IP back to 192.168.0.2 then it works again...So I think there is a bug somewhere in the empegweb! But for mandiola and mlord is this peanuts .

Thanks
_________________________
crazymelki.com

Top
#59026 - 17/01/2002 10:37 Re: Hijack v129 [Re: crazymelki]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
At this point, I haven't the foggiest what you are having a problem with. Can you post a URL that does not work for you? Or is the FTP server not working (try something like ftp://my.empeg./proc/)

Top
#59027 - 17/01/2002 10:40 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Any chance of using meta tags to refresh ONLY the empeg_screen.png image, rather than the current javascript? I ask because Communicator doesn't do refreshes for the latter method (under Linux). Mozilla works, though, but 0.9.7 is wwwaaaayyyy too buggy for general use yet.

Cheers

Top
#59028 - 17/01/2002 10:43 Re: Hijack v126: more kftpd & khttpd stuff [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay, I replaced the FTP reference with a simple src="/?" for Hijack v130, and it works well. But if you descend a directory, and then click on "..", one end's up with a nested page -- because of the "index.html" name of the main file. So, I've renamed "index.html" to "RUNME.html" to get around the problem. Works FANTASTIC now!

Top
#59029 - 17/01/2002 10:46 Hijack v131 (soon) [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Now all that is needed is a little more JavaScript for the button presses, to distinguish between LONG and SHORT presses somehow.

In aid of this, I'll add a "buttonraw=" command that only sends a single press or release code into Hijack. The current "button=" command automatically sends a press followed by a release, which makes it harder to do synchronous press/release events from a web browser..

Look for "buttonraw=" in hijack v131 shortly.

Cheers

Top
#59030 - 17/01/2002 10:49 Re: Hijack v129 [Re: mlord]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
Mark,

I did delete all the empegweb Files on my Empeg. And then the HTTP and FTP Connection to my Empeg is working (Hijack V130). But If I go to install the latest version 1.2 or 1.3 from empegweb it does not work.

This means: I did the change the IP-Address in the index.html from 192.168.0.2 to 10.0.1.10. And then It doen't work. I did try to browse empegweb on my local machine. Not on the Empeg. But the same problem is also on the Empeg. I did only try to get out where excactly the problem is. If I go and change the IP-Address back to 192.168.0.2 then I can browse it locally again.

So I thinks there is a little problem in the Empegweb application.
_________________________
crazymelki.com

Top
#59031 - 17/01/2002 10:49 Re: Hijack v131 (soon) [Re: mlord]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
That's reasonably easy, by using the mousedown and mouseup events (and a timer variable) instead of the onclick event.
_________________________
Remind me to change my signature to something more interesting someday

Top
#59032 - 17/01/2002 11:57 Re: Hijack v131 (soon) [Re: andy]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
I never removed the button catch. So when you click a button it still goes to that frame. It saves a lot of problems. So that doesn't need to be changed for v130. I'm looking into other was to show the empeg screen since updateing the picture the way im doing it now is kind of obnoxious since its choppy and makes the mouse point go crazy. Hopefully I'll get something out tonight since this seems like something people are enjoying. I think i'll also setup a webpage, unless (Mark) you want to set me up someway I can put it on the page with Hijack since they do go hand in hang ; ) I got to go to work and network an office so i'll work on it when i get home.

-Greg

Top
#59033 - 17/01/2002 12:44 Re: Hijack v129 [Re: mlord]
Diznario
enthusiast

Registered: 17/10/2001
Posts: 265
Loc: Portland OR
heh heh... sounds cool.

I'm a little busy at work today... I'll try it when I get home tonight.

So... Where exactly is it going to spit out the debug info...? I'm guessing it makes some log file somewhere?
_________________________
Dario
MK2 in an Impreza 2.5RS

Top
#59034 - 17/01/2002 14:52 Re: Hijack v129 [Re: mlord]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
I think I found finally the bug. First I did try the empegweb with Linux. There is the app. really working well.

But I deleted in the index.html the line with the ftp info and then it works.

bye
_________________________
crazymelki.com

Top
#59035 - 17/01/2002 19:43 Re: Hijack v131 (soon) [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
If you want to visit http://sourceforge.net/ and create a userid for yourself, then I can add you to the "empeg-hijack" project to give you direct access to the directories there..

Or you can find another home for your wonderful hack, and I'll put a prominent link for it onto the hijack site.

Cheers

Top
#59036 - 17/01/2002 20:15 Re: Hijack v129 [Re: mlord]
Diznario
enthusiast

Registered: 17/10/2001
Posts: 265
Loc: Portland OR
Or you could try connecting up your serial port, setting [hijack] kftpd_verbose=1 in config.ini, and then running ftp again, and sending me some useful diagnostics.

Well, I'd love to do that, but I can't seem to figure out how. I'm at a loss here... I made the config.ini change, but where does it output the debug info? Is there a log file somewhere or something? I can't seem to find it... Do I need to be using the dev image?

Also, I tried the command line version of FTP, and that works fine. It's only the IE6 FTP that's having the trouble. I just tried Hijack v133 too, and same thing. IE hangs immediately...
_________________________
Dario
MK2 in an Impreza 2.5RS

Top
#59037 - 17/01/2002 21:41 Re: Hijack v129 [Re: Diznario]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
The debug output will appear on the serial line, which you can connect to with kermit, cat, or even hyperterminal, and it will show exactly what the issue is with your FTP client not liking Hijack.

Cheers

Top
#59038 - 17/01/2002 23:54 Doh! [Re: mlord]
Diznario
enthusiast

Registered: 17/10/2001
Posts: 265
Loc: Portland OR
*Me shoots self*

ok... I should have been able to figure that one out. I blame it on the fact that I've been sicker than snot for the past week...

Anyway, here ya go...

kftpd: connection from 192.168.0.42
kftpd: 220 Connected.
kftpd: 'USER anonymous'
kftpd: 230 Okay.
kftpd: 'opts utf8 on'
kftpd: 500 Bad command.
kftpd: 'syst'
kftpd: 215 UNIX Type: L8.
kftpd: 'site help'
kftpd: 216-The following SITE commands are recognized
BUTTON CHMOD HELP POPUP REBOOT RO RW
216 Okay.
Bad mode in prefetch abort handler detected: mode SVC_32
Vectors:
00000000: ef9f0000 ea0000cd e59ff3d0 ea0000bb ea00009a ea0000ea ea000078 e3a0c0
04
00000020: e58bc018 e5dac000 e5dad000 e18cc40d
f8
Stubs:
00000200: e59fd1dc e24ee004 e58de000 e14fe000 e58de004 e3a0d093 e161f00d e20ee0
0f
00000220: e79fe10e e1b0f00e c0009e20 c0009bc8 c0009bc8 c0009ce0 c0009bc8 c0009b
c8
00000240: c0009bc8 c0009bc8 c0009bc8 c0009bc8 c0009bc8 c0009bc8 c0009bc8 c0009b
c8
00000260: c0009bc8 c0009bc8 00000000 00000000 00000000 00000000 00000000 000000
00
00000280: e59fd164 e24ee008 e58de000 e14fe000 e58de004 e3a0d093 e161f00d e20ee0
0f
000002a0: e79fe10e e1b0f00e c0009de0 c0009bb4 c0009bb4 c0009c80 c0009bb4 c0009b
b4
000002c0: c0009bb4 c0009bb4 c0009bb4 c0009bb4 c0009bb4 c0009bb4 c0009bb4 c0009b
b4
000002e0: c0009bb4 c0009bb4 00000000 00000000 00000000 00000000 00000000 000000
00
00000300: e59fd0e4 e24ee004 e58de000 e14fe000 e58de004 e3a0d093 e161f00d e21ee0
0f
00000320: 059fe004 159fe004 e1b0f00e c0009ee0 c0009ba0 00000000 00000000 000000
00
00000340: e59fd0a0 e58de000 e14fe000 e58de004 e3a0d093 e161f00d e20ee00f e79fe1
0e
00000360: e1b0f00e c0009e80 c0009bdc c0009bdc c0009d60 c0009bdc c0009bdc c0009b
dc
00000380: c0009bdc c0009bdc c0009bdc c0009bdc c0009bdc c0009bdc c0009bdc c0009b
dc
000003a0: c0009bdc 00000000 00000000 00000000 00000000 00000000 00000000 000000
00
000003c0: e25ef004 eafffffe 00000000 00000000 00000000 00000000 00000000 000000
00
000003e0: c000a000 c0102960 c010296c c0102978 00000000 00000000 00000000 000000
00
00000400: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffff
ff
00000420: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffff
ff
00000440: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffff
ff
00000460: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffff
ff
00000480: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffff
ff
000004a0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff

Internal error: Oops: 0
CPU: 0
pc : [<4f4f4244>] lr : [<00000072>]
sp : c0441f88 ip : c0103cc4 fp : 00000000
r10: 000000d8 r9 : 00000000 r8 : 52202020
r7 : 5055504f r6 : 50202020 r5 : 20504c45 r4 : 48202020
r3 : 00000000 r2 : 00000072 r1 : c08421d0 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment kernel
Control: C000517D Table: C000517D DAC: 0000001D
Process kftpd (pid: 24, stackpage=c0441000)
Stack:
c0441fc0: 00000072 4f4f4244 60000013 ffffffff 52202054 2020204f 52202020 320a0d
57
c0441fe0: 4f203631 2e79616b c0000a0d c00fc5c4 c00cf334 c00cf3c0 c00cf334 c000b4
44
Backtrace: no frame pointer
Code: pc not in code space
_________________________
Dario
MK2 in an Impreza 2.5RS

Top
#59039 - 18/01/2002 03:02 Re: Hijack v129 [Re: Diznario]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
IE6's FTP client is terrible. Just use any other FTP client fro W32 platforms. My favorite's SmartFTP, and that's free. There are dozens out there, a lot of them are free, and all of them are better than IE6's built-in one. IE6 is a great browser, I believe, but a really really poor ftp client.
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#59040 - 18/01/2002 04:01 Re: Hijack v130 [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Any chance of getting hijack menu options for these mount options now that the commands themselves are in the kernel?

Top
#59041 - 18/01/2002 07:27 Re: Doh! [Re: Diznario]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
For that backtrace to have any meaning, I also need to know exactly which Hijack version was installed at the time of the crash..

Top
#59042 - 18/01/2002 07:33 Re: Doh! [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Never mind.. found it. Buffer too small for new response_table[] code in ftpd.. only crashes if you use the HELP or SITE HELP commands.. Doh!

Fixed in the forthcoming v135.

Cheers

Top
#59043 - 18/01/2002 09:45 Re: Doh! [Re: mlord]
Diznario
enthusiast

Registered: 17/10/2001
Posts: 265
Loc: Portland OR
heh... I was just going to say, nevermind, it's fixed in 135...
_________________________
Dario
MK2 in an Impreza 2.5RS

Top
#59044 - 18/01/2002 09:54 Re: Hijack v129 [Re: Taym]
Diznario
enthusiast

Registered: 17/10/2001
Posts: 265
Loc: Portland OR
IE6's FTP client is terrible.

Heh, you can say that again. I've never tried SmartFTP, but I think any FTP client has to be better than their built in one. I used CuteFTP back in the day, and I loved that app. Haven't gotten around to installing it on this system yet...
_________________________
Dario
MK2 in an Impreza 2.5RS

Top
#59045 - 18/01/2002 10:56 Re: Doh! [Re: mlord]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
And now it works for me also with V135 and IE 6.0!

thanks a lot.
_________________________
crazymelki.com

Top
#59046 - 20/01/2002 02:30 Re: Hijack v124: kftpd & khttpd stuff [Re: mlord]
silmonkey
new poster

Registered: 19/01/2002
Posts: 5
Loc: Redmond,WA
Kind of off topic. forgive me please, but I was browsing earlier and was reading about someones proposal to MLord to make a "file writable area". A thought is that possibly I could use the XML dump option in emplode and dump this file and move it to the root and use a XSL to make it queue software that writes to the "file writable area" that of course is assuming we could possibly play song by fid? just a thought though?

silmonkey
_________________________
MKIIa 30gb

Top
#59047 - 21/01/2002 23:18 EtherFlash with Hijack [Re: silmonkey]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
I wrote a small program in vb that connects to the empeg and then flashes the hijack kernel to the one you choose through ftp. I still have a little bit of work left on it to make it more user friendly. I need to add 2 things to it. Does hijack have any ftp calls that will (1) pause the player and (2) reboot the player? I have it so that it dectects to see if the player is flashed first, but then i need it to reboot it... and more importantly, pause the player before it tried to flash it to make everything work faster.

-Greg

Top
#59048 - 22/01/2002 09:11 Re: EtherFlash with Hijack [Re: mandiola]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
>Does hijack have any ftp calls that will
>(1) pause the player and
>(2) reboot the player?

Your script should do something like this:

site popup 999 Downloading new kernel
binary
put v137.hijack...zImage /proc/empeg_kernel
site popup 2 Done
site reboot


You could also try using "site button 20df16" to pause the player, but since the "pause button" is actually a toggle "pause/play", it's kinda difficult to guarantee success that way.

-ml

Top
#59049 - 22/01/2002 14:49 Re: EtherFlash with Hijack [Re: mlord]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hmm... site doesnt work for me.. can't do site popup.

-Greg

Top
#59050 - 22/01/2002 14:57 Re: EtherFlash with Hijack [Re: mandiola]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
On which version of HiJack? Works for me on 136.
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#59051 - 22/01/2002 14:58 Re: EtherFlash with Hijack [Re: bonzi]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Just in general.. im trying to send it through a dos ftp for testing.

-Greg

Top
#59052 - 22/01/2002 15:07 Re: EtherFlash with Hijack [Re: mandiola]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Same here. It's just that features get introduced, improved, broken, fixed again, and all site commands (and others, for that matter) I tried seem to work in 136.
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#59053 - 22/01/2002 15:11 Re: EtherFlash with Hijack [Re: bonzi]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Ahh i got it... forget that windows ftp needs literal in front of it ; )

-Greg

Top
#59054 - 22/01/2002 15:51 Re: EtherFlash with Hijack [Re: bonzi]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hmm.. vb doesn't like literal nor just plain old SITE. Im using inet control and it works for PUT but nothing else. Any suggestions.

-Greg

Top
#59055 - 22/01/2002 16:11 Re: EtherFlash with Hijack [Re: mandiola]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Hm, I was using cmd-line FTP client that comes with Cygwin (port of bash shell, gcc and assorted *ix utils to Win), and it works OK. The client that comes with Win98 does not seem to support SITE command at all (HELP does not list it).
A GUI ftp front end (LeechFTP) I sometimes use lets you issua arbitrary command, so SITE works there, as well.

Try to search around for free full implementation of command-line client (or download LeechFTP - I don't remember where I found it - TwoCows perhaps?). Sorry, I have nothing more helpfull...
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#59056 - 22/01/2002 16:39 Re: EtherFlash with Hijack [Re: bonzi]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
Here is the link to LeechFTP free , and best FTP freeware avalaible in many languages :
LeechFTP
_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#59057 - 22/01/2002 16:41 Re: EtherFlash with Hijack [Re: Nosferatu]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
I think you guys are missunderstanding what im doing. Im writing a program that lets you quickly update the kernel through ethernet. All I have left is to display whats happening and make the empeg reboot, otherwise it works perfectly.
Im not having problems uploading or anything like that.
-Greg

Top
#59058 - 22/01/2002 21:49 Re: EtherFlash with Hijack [Re: mandiola]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
OK. Still havn't gotten EtherFlash to send what its doing to the empeg screen. I am going to post everthing at: http://www.empeg.tk in a few minutes. I will put up my empegweb and this EtherFlash that I've been working on + the source. So if anyone can get it to show up on the screen let me know. Its a really simple program I wrote in a few minutes.

-Greg

Top
#59059 - 22/01/2002 23:20 Re: EtherFlash with Hijack [Re: mandiola]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
I know a little vb. Instead of using the inet control, you could use the socket control and just send the raw commands. That would allow you to use SITE.

Tom

Top
Page 1 of 4 1 2 3 4 >