Unoffical empeg BBS

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

Page 2 of 3 < 1 2 3 >
Topic Options
#202909 - 08/02/2004 21:18 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Mmm.. I could use pgrp==0 if that works here.. ?

Top
#202910 - 08/02/2004 21:44 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
I don't know if 0 will work, it might need to match player's pgrp if player has ttyS1 for std*

i'll try when I get home

Top
#202911 - 08/02/2004 21:46 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okeydoeky. Also, I just noticed that stdin == /dev/null already for EXECs.

Cheers

Top
#202912 - 08/02/2004 21:46 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Hate to interrupt a good hacking discussion, but I hadn't received a "yay" or "nay" as to whether this patch is okay for inclusion in Hijack. It allows user apps to (a) get a copy of the player's screenbuf and (b) get the UI flags status. I will be making extensive use of these for my next release, and I think they're good things to have available. Any thoughts?
_________________________
- Tony C
my empeg stuff

Top
#202913 - 08/02/2004 23:46 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
In fact, pgrp = 0, still "failed to set up serial port".

Top
#202914 - 09/02/2004 00:10 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: Daria]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Fine, you win. Here's a patch to disable the pgrp check. Tested: it works.



Attachments
201954-diff-hijack (204 downloads)


Top
#202915 - 09/02/2004 09:31 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Rather than breaking telnetd and friends, how about the attached patch?


Attachments
202030-ttyS1.patch (185 downloads)


Top
#202916 - 09/02/2004 10:19 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: mlord]
RobotCaleb
pooh-bah

Registered: 15/01/2002
Posts: 1866
Loc: Austin
patch war?

Top
#202917 - 09/02/2004 10:24 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Sure. It looks like a different ugly patch

Let me ask this: why does the player get ttyS1 as std(in,out,err) when I've selected "apps" and not "player" for the serial port? Because fundamentally I think fixing that is the answer, but I'm fuzzy on *why* it's happening, because I think I haven't found the right place to look yet.

Top
#202918 - 09/02/2004 11:28 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: RobotCaleb]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Man, I go away from the BBS for a day and come back, and my tiny little bug report has sparked this whole complicated thing.

Cool.
_________________________
Tony Fabris

Top
#202919 - 09/02/2004 11:28 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
The player, when started up (by init, presumably), is given /dev/console for stdin/stdout/stderr. It later then opens /dev/ttyS1 for serial port control notify and control features.

When "apps use serial port" is selected, Hijack intercepts the startup of the player, and appends an option flag that tells the player to not open /dev/ttyS1 for serial port control and notify. Regardless, it still already has /dev/console.

On the Empeg, /dev/console is mapped to the serial port. Which confused the heck out of me the first time I looked there when writing the original Hijack code that intercepts the notify info and makes it available under /proc/empeg_notify --> the serial output from the player arrives in two distinct streams, from two logical devices, all heading to the same serial port.

Cheers

Top
#202920 - 09/02/2004 12:21 Re: Fix for Hijack v362 breaks GPSapp. :) [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
I feel silly now. /dev/console mapping to ttyS1 was something I thought of, and then forgot. Doh.

Top
#202921 - 09/02/2004 13:36 Hijack v364 [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Hijack v364 has this fix in it (untested by me).

Cheers

Top
#202922 - 09/02/2004 15:31 Re: Hijack v364 [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
I tried Hijack 365 and still get "Failed to set up serial port".

Did we also need a new GPSapp, or just the change in Hijack?

If we need a new GPSapp, would this one suffice, or do we need those changes as well as additional ones?
_________________________
Tony Fabris

Top
#202923 - 09/02/2004 15:41 Re: Hijack v364 [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
I didn't test it yet either. I see Tony says not. I'll see later what the deal is.

Top
#202924 - 09/02/2004 15:44 Re: Hijack v364 [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Naw, my bug.

I'll fix it shortly.

Cheers

Top
#202925 - 09/02/2004 15:50 Re: Hijack v364 [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
You already know what's wrong then?

I'm in an interview now so I can't look.

Top
#202926 - 09/02/2004 15:59 Hijack v366 [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay, try this one.

Cheers

Top
#202927 - 09/02/2004 16:16 Re: Hijack v366 [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Okay, try this one.
Since there was no attachment, I assume you mean v366 at the web site. Grabbed it, tried it.

Good= I don't get the "failed to set up serial port" error.

Bad= GPS doesn't work.

If it's in the home sled (no GPS attached) and I use force-DC mode to make GPSapp available, the GPSapp program locks up with a black screen when I invoke it.

If it's in the car sled (GPS actually attached), it sits there at "Waiting for data from GPS receiver" but never gets past it.

I will concede that it's possible my GPS unit failed sometime between yesterday (last time I used GPSapp) and today, but I'm betting it's not a likely enough possibility that warrants me putting an older hijack back into place and doing another run out to the car again.
_________________________
Tony Fabris

Top
#202928 - 09/02/2004 18:00 Re: Hijack v366 [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
This would be a different gpsapp issue, then. Also, don't use v3alpha for this -- something about serial has changed in v3 as well.

-ml

Top
#202929 - 09/02/2004 18:08 Re: Hijack v366 [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
I've been using 2.0 final for this, but thanks for checking.

/me goes back to Hijack v354 so he can continue to use GPSapp...
_________________________
Tony Fabris

Top
#202930 - 09/02/2004 19:53 Re: Hijack v366 [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
I was using v3 alpha6, and a real gps receiver, and that gpsapp binary that I posted, and the first patch (the one that doesn't change pgrp) and telnetd worked, and gpsapp saw satellites, and I got music.

What problem should I have had?

Top
#202931 - 09/02/2004 20:27 Re: Hijack v366 [Re: Daria]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Geez, that reads really snide, and I didn't mean it that way.

But seriously, is there some problem I should be looking for/at?

Top
#202932 - 09/02/2004 21:37 Re: Hijack v366 [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
I dunno. Tony??


Top
#202933 - 09/02/2004 21:38 Re: Hijack v366 [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
The patch in Hijack is somewhat different than that I posted here, but should be even less restrictive. Tony said no issues with serial port messages, at least, but beyond that.. dunno.

Top
#202934 - 09/02/2004 21:59 Re: Hijack v366 [Re: Daria]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
But seriously, is there some problem I should be looking for/at?
My problem is that when I run any version of Hijack later than the one I posted above (what was it, 360?), I can't use GPSapp because gpsapp either says "failed to set up serial port" or it locks up completely.
_________________________
Tony Fabris

Top
#202935 - 09/02/2004 22:03 Re: Hijack v366 [Re: tfabris]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Yeah, but I said "with the patch I posted", and that was alpha 6, post 360, modern gpsapp. I was asking Mark what problem he saw.

Top
#202936 - 09/02/2004 22:04 Re: Hijack v366 [Re: mlord]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
I'll look at diffs, I guess.

Top
#202937 - 09/02/2004 22:05 Re: Hijack v366 [Re: Daria]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
I don't see any problem. The patch I actually applied should achieve the same behaviour, but without impacting the behaviour of background processes that are not using /dev/ttyS1.

Cheers

Top
#202938 - 09/02/2004 22:19 Re: Hijack v366 [Re: Daria]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Yeah, but I said "with the patch I posted",
Oh, sorry.
_________________________
Tony Fabris

Top
Page 2 of 3 < 1 2 3 >