#270688 - 26/11/2005 04:44
Hijack v441
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
Hijack v441 is now available. PLEASE READ before downloading:
This version (finally) implements full separation of the player software from the physical serial port, so that apps like Empire et al. can have exclusive use of the port without interference to/from the player software, for both transmit and receive directions.
Kernel messages still go to the serial port, though.
I can change that, if desired. Opinions?
The (new!) default now is to isolate the player from the serial port. This means you will not see player messages on the serial console, and hitting "q", or "Control^C", or anything else will have ZERO effect -- since the player is no longer receiving those characters.
Sending "serial" commands via /proc/empeg_notify, or khttpd, or kftpd, all still works fine, of course.
The Hijack menu has a Serial Port Assignment entry, which is now maintained separately for AC vs. DC power modes (car vs. home). The default is now Apps Use Serial Port, which gives the default behaviour described above.
Selecting Player Uses Serial Port connects the player to the serial port (on the next restart/reboot), totally unfiltered -- even the serial "notify" messages then appear (and are NO LONGER captured by Hijack in this mode).
I recommend people stick with Apps Use Serial Port, as this is the only mode where /proc/empeg_notify works (lots of apps require this).
Questions?
Go for it.
Edited by mlord (26/11/2005 04:51)
|
Top
|
|
|
|
#270689 - 26/11/2005 05:22
Re: Hijack v441
[Re: mlord]
|
pooh-bah
Registered: 15/01/2002
Posts: 1866
Loc: Austin
|
Quote: Kernel messages still go to the serial port, though.
Meaning that an upgrade/downgrade through serial will still work, I'm assuming?
|
Top
|
|
|
|
#270690 - 26/11/2005 05:31
Re: Hijack v441
[Re: mlord]
|
pooh-bah
Registered: 12/02/2002
Posts: 2298
Loc: Berkeley, California
|
If I want to drop to a shell, (not that my everyday computer even has a serial port at this point), I have to change to player uses serial port, reboot, and then press Q? Or install a telnet deamon.
I'm not complaining, just wondering.
Plantir with bluetooth is sounding tempting. Though my girlfriend already complains about the amount of things I keep in my pockets, I suspect a Treo might push her over the edge.
Matthew
|
Top
|
|
|
|
#270691 - 26/11/2005 06:24
Re: Hijack v441
[Re: RobotCaleb]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
Quote: Meaning that an upgrade/downgrade through serial will still work, I'm assuming?
Serial upgrades are handled by the boot block in the EEPROM. At this point, the kernel's not running yet, so it's a moot point.
_________________________
-- roger
|
Top
|
|
|
|
#270692 - 26/11/2005 06:38
Re: Hijack v441
[Re: Roger]
|
pooh-bah
Registered: 15/01/2002
Posts: 1866
Loc: Austin
|
|
Top
|
|
|
|
#270693 - 26/11/2005 10:34
Re: Hijack v441
[Re: mlord]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Damn, Mark, you are fast. Thanks a TON!
|
Top
|
|
|
|
#270694 - 26/11/2005 13:20
Re: Hijack v441
[Re: matthew_k]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
Quote: If I want to drop to a shell, (not that my everyday computer even has a serial port at this point), I have to change to player uses serial port, reboot, and then press Q? Or install a telnet deamon.
Pretty much, yes.
But there does seem to be an issue in testing this morning -- I'm not sure that "serial" commands are actually getting to the player software (from places like the web interface).. Hopefully I'll find/fix that sometime today.
Cheers
|
Top
|
|
|
|
#270695 - 26/11/2005 14:27
Hijack v442
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
Hijack v442 is now released.
This version fixes a simple bug from v441, so that "serial commands" from the web interface et al. now work again.
Cheers
|
Top
|
|
|
|
#270696 - 26/11/2005 15:11
Re: Hijack v44[12] -- techie details
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
Here's how this new scheme works:
Hijack creates a new tty device: /proc/ttyH (under /proc/, since we cannot easily write to /dev/). The H is for Hijack.
Whenever the program /empeg/bin/player is launched, the stdin stdout and stderr streams are closed (disconnecting them from the console), and then reopened as /proc/ttyH. Any subsequent open of /dev/ttyS1 by the player program is also redirected to /proc/ttyH.
The new /proc/ttyH device has it's own tty driver code, in drivers/char/tty_io.c. This code simply passes outgoing strings to Hijack for "notify" parsing, and receives characters injected by Hijack from the web interface and pals.
Cheers
|
Top
|
|
|
|
#270697 - 26/11/2005 21:18
Re: Hijack v441
[Re: mlord]
|
pooh-bah
Registered: 19/09/2002
Posts: 2494
Loc: East Coast, USA
|
How should we get to the command prompt via Telnet if our Hijack 442 player gets sick? It won't boot enough to let us reenable player-to-serial communication, so we're stranded, right? If it's this sick, could it receive serial commands from the other interfaces you're describing?
Clearly, I know little about all this. Maybe this could clarify for others with similar low level of empeg software knowledge.
_________________________
- FireFox31 110gig MKIIa (30+80), Eutronix lights, 32 meg stacked RAM, Filener orange gel lens, Greenlights Lit Buttons green set
|
Top
|
|
|
|
#270698 - 26/11/2005 23:29
Re: Hijack v441
[Re: FireFox31]
|
pooh-bah
Registered: 13/09/1999
Posts: 2401
Loc: Croatia
|
As far as I understand, in extreme circumstances one can always downgrade to stock kernel, bacause, as Roger pointed out, firmware uploads are handled before the kernel gets booted.
_________________________
Dragi "Bonzi" Raos
Q#5196
MkII #080000376, 18GB green
MkIIa #040103247, 60GB blue
|
Top
|
|
|
|
#270699 - 27/11/2005 01:25
Re: Hijack v441
[Re: FireFox31]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
Quote:
How should we get to the command prompt via Telnet if our Hijack 442 player gets sick?
Same way as normal: push and hold the knob or the menu button on the remote. From the Hijack menu, then change the serial setting.
Hijack runs from boot time onward (since it is the kernel), long before the player s/w is alive.
If you're worried about your telnetd not working, then.. no change from earlier Hijack versions: plug in the serial cable when telnetd isn't working.
-ml
Edited by mlord (27/11/2005 01:26)
|
Top
|
|
|
|
#270700 - 27/11/2005 05:53
Re: Hijack v441
[Re: mlord]
|
member
Registered: 12/01/2002
Posts: 192
Loc: Phoenix, AZ
|
Quote:
Kernel messages still go to the serial port, though. I can change that, if desired. Opinions?
I'd prefer if kernel/boot messages were silenced too, so that remote VFDs connected by serial don't get all the boot log displayed (or worse, garbage when the VFD isn't 115.2kbps) on startup.
|
Top
|
|
|
|
#270701 - 27/11/2005 09:31
Re: Hijack v441
[Re: RobotCaleb]
|
carpal tunnel
Registered: 25/06/1999
Posts: 2993
Loc: Wareham, Dorset, UK
|
Over.
_________________________
One of the few remaining Mk1 owners... #00015
|
Top
|
|
|
|
#270702 - 27/11/2005 12:53
Re: Hijack v441
[Re: mlord]
|
pooh-bah
Registered: 19/09/2002
Posts: 2494
Loc: East Coast, USA
|
Awesome, thanks.
_________________________
- FireFox31 110gig MKIIa (30+80), Eutronix lights, 32 meg stacked RAM, Filener orange gel lens, Greenlights Lit Buttons green set
|
Top
|
|
|
|
#270703 - 27/11/2005 19:10
Re: Hijack v441
[Re: schofiel]
|
carpal tunnel
Registered: 18/01/2000
Posts: 5683
Loc: London, UK
|
Quote: Over.
I once sent a text to Hugo saying "Wilco" -- I think we were working out which pub to meet in that evening. Given that his phone at the time displayed the sender's name above the text, it was mildly amusing.
_________________________
-- roger
|
Top
|
|
|
|
|
|