Unoffical empeg BBS

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

Topic Options
#146503 - 02/03/2003 23:01 Time sink?
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
Has anyone been able to run a time sync script on their empeg? (as in the following thread)
http://empeg.comms.net/php/showflat.php?Cat=&Board=wishlist&Number=96753&fpart=1&PHPSESSID=

Thanks,


Edited by jamville (02/03/2003 23:02)
_________________________
Joe Mumme

Top
#146504 - 03/03/2003 00:14 Re: Time sink? [Re: jamville]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Eh, writing one would be too much of a time sink to consider

Top
#146505 - 03/03/2003 03:27 Re: Time sink? [Re: jamville]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
If you read the thread properly, you'll find that the answer is 'yes'. I'm running ntpdate when the player exits.

_________________________
-- roger

Top
#146506 - 03/03/2003 09:25 Re: Time sink? [Re: jamville]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
I'm running ntpdate from preinit before the player starts
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#146507 - 03/03/2003 09:41 Re: Time sink? [Re: Roger]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Is this something that could be phased into post 2.0?
_________________________
Brad B.

Top
#146508 - 03/03/2003 09:51 Re: Time sink? [Re: SE_Sport_Driver]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
We'll almost certainly support setting the clock via the PC->empeg protocol in post-2.0, so if your PC is correct, your empeg will be correct.
_________________________
-- roger

Top
#146509 - 03/03/2003 09:54 Re: Time sink? [Re: genixia]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
genixia,

Would you mind sharing the line that you added?
_________________________
Joe Mumme

Top
#146510 - 03/03/2003 13:54 Re: Time sink? [Re: jamville]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
I have it running from a preinit script /programs0/preinit.d/M05ntpdate
Note that /programs0/incar simply returns true if the empeg is on DC power, and is used to quit the script (without running ntpdate) when in the car. incar is distributed in the gpsapp tarball.


#!/bin/bash

([ -x /programs0/incar ] && /programs0/incar && exit
[ -x /usr/sbin/ntpdate ] && /usr/sbin/ntpdate ntp_server)

_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#146511 - 03/03/2003 14:09 Re: Time sink? [Re: Daria]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
Eh, writing one would be too much of a time sink to consider

Eh, just the man I want to talks to....

Somewhat apropos of this thread and the recent IrDa thread...is it possible to run gpsd on the box and have not only gpsapp but xntp use it? Standard xntp NMEA driver is expecting /dev/gps mapped to a tty, but gpsd output is a port.

It's probably a function of my own denseness, but I have this feeling that it should be possibly to map something like a pseudotty to the gpsd output (so that ntpd can then see it as expected) but my unix/linux device knowledge is failing me!
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#146512 - 03/03/2003 23:38 Re: Time sink? [Re: jimhogan]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
ntpd could probably be rewritten to use it, which probably makes more sense than doing pty redirection. Well, secretly I guess "rewritten" is actually "a gpsd input module".

Isn't ntp 4 just "ntp" again and not "xntp"? Or are you really still using ntp 3?

Top
#146513 - 04/03/2003 09:49 Re: Time sink? [Re: Daria]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
ntpd could probably be rewritten to use it, which probably makes more sense than doing pty redirection. Well, secretly I guess "rewritten" is actually "a gpsd input module".

That's true. That would make more sense...add a specific NMEA-gpsd module/driver. I'll have to find the source of the existing NMEA to see if I can make any sense of it...possibly an interesting learning experience in between those scarce job interviews!

Isn't ntp 4 just "ntp" again and not "xntp"? Or are you really still using ntp 3?

You're correct. It was just Jim's very fuzzy logic at work again. And what *was* that "X" about anyway?!?
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#146514 - 04/03/2003 18:52 Re: Time sink? [Re: jimhogan]
number6
old hand

Registered: 30/04/2001
Posts: 745
Loc: In The Village or sometimes: A...
In reply to:


...possibly an interesting learning experience in between those scarce job interviews!




Hi Jim, I take it from this comment that your current employment situation is non-existent? [or soon will be?].

If so, are you coming to the Rally of NZ in April or is that a no-no now you're out of work?



Top
#146515 - 04/03/2003 20:38 Re: Time sink? [Re: number6]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
Hi, Jim, I take it from your comment that your current employment situation is non-existent [or soon will be?].[

Soon will be. The axe will fall on the 3rd or 4th Thursday, so that's either the 20th or 27th. I have scheduled extensive dentist visits on both days. I figure I can:

1) Drain all remaining dental benefits for 2003 before I'm off the payroll, and....

2) Take my cell phone along and have a little fun with my current manager, as in .....

Mgr: "Jim, I hate to break it to you, but..."

Jim: "WAAAAAAAH!!" Whirrrrrr...zzzzzzzzz....crunch "Arrrrchh! Blech!! Rrrrrrr!"

Mgr: "Jim, I want you to know how difficult it is for me..."

Jim: "Bluuuurch!"

You get the idea.

If so, are you coming to the Rally of NZ in April or is that a no-no now you're out of work?

Oddly, if a miracle occurred and I found a new job before April, I would probably not be able to come. OTOH, if nothing presents itself, I just might be tempted to put a few pepperoni sticks in my backpack and jump on the plane. I already have the ticket, a tent and my trusty Thermarest, and can occasionally enjoy sleeping rough!
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#146516 - 04/03/2003 20:56 Re: Time sink? [Re: jimhogan]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Jim, as much as I wish you the best in your search for employment, I can't seem to shake the notion that having you bored out of your mind at home could yield even more funny BBS posts like this.
_________________________
- Tony C
my empeg stuff

Top
#146517 - 04/03/2003 23:20 Re: Time sink? [Re: genixia]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
genixia,

Thanks for all the info.

Where do I find incar?

Thanks,
_________________________
Joe Mumme

Top
#146518 - 04/03/2003 23:35 Re: Time sink? [Re: jamville]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
It's in the GPSapp tarball - not difficult to find.

But it's probably just as easy for me to attach it here.

(Raw binary attached - 'Save Target As' incar and ftp to the player.)


Attachments
144950-incar (141 downloads)



Edited by genixia (04/03/2003 23:37)
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#146519 - 04/03/2003 23:57 Re: Time sink? [Re: jimhogan]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
And what *was* that "X" about anyway?!?

Xperimental

Top
#146520 - 05/03/2003 00:11 Re: Time sink? [Re: jimhogan]
number6
old hand

Registered: 30/04/2001
Posts: 745
Loc: In The Village or sometimes: A...
In reply to:


OTOH, if nothing presents itself, I just might be tempted to put a few pepperoni sticks in my backpack and jump on the plane. I already have the ticket, a tent and my trusty Thermarest, and can occasionally enjoy sleeping rough!




Whatever you do, don't bring any meat or meat releated products in to the country with you! [that probably includes pepperoni sticks].

The Border control people have really strict rules here, are really tough on that sort of thing and they "Xray" all baggage on incoming passengers looking for exactly these sorts of food products - if you have any on you will be fined up to $5,000USD or more.

So you'd be better leaving them at home and buying them here if thats what you want to live on.

Also make sure your tent and any camping equipment/sahoes etc are well cleaned of all soil and dirt etc before you leave home - if any of your camping stuff or clothes looks too dirty they will either force it to be cleaned at your cost, and/or confiscate it and let you have it back on the way back out = at least no tent or other stuff during your stay.

I don't think you want to sleep rough if you can help it [not that theres anything wrong with that...]

Besides the rally moves around too much for you to do that, better off getting a car and then be driven/driving yourself to where you need to go - most of it is within 2-3 hours drive max. of Auckland.

In any case, if you are short of funds, I think we can find some accomodation for you for your stay.

JABZ has some spare room in his room, and my back lawn has room for a tent :-))

No seriously, our guest room should be free [of visitors and costs] if you want to avail yourself of it - you have to like cats though - they come with the territory.

Drop me a PM once you know you're coming.






Top
#146521 - 05/03/2003 11:43 Re: Time sink? [Re: number6]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
Whatever you do, don't bring any meat or meat releated products in to the country with you! [that probably includes pepperoni sticks].

Interesting, I didn't think pepperoni were a risk factor for BSE (Bush Spongiform Encephalopathy or "Mad President Disease"), but I will follow your advice!

Seriously, I am pretty tuned in to that kind of stuff and am lucky to have a pack and stuff that are nearly new. Funny, though, I tend to take a canvas LL Bean "boat bag" on trips for shopping and such. After my friend and I returned from the Monte Carlo Rally, an Agriculture Department beagle went absolutely berserk over the bag because of all the ham sandwiches that had dripped their way into the canvas over the prior week during our car camping. We almost missed our connection.

I really appreciate the prospect of your hospitality! Employment-wise, I probably won't make the call until 3-4 days before the trip (if it happens) and will be in touch either way. I'll start looking at car rentals and such (we slept on the stages a few times in the car at Monte and that worked great WRT getting a good spot).

Thanks!
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#146522 - 05/03/2003 13:15 Re: Time sink? [Re: tonyc]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
Jim, as much as I wish you the best in your search for employment,....

Thanks, I'm glad you approve of my dental plan! That really is my plan for the 20th/27th....operating on the very dental principle of distraction (y'know like when the dentist grabs and wiggles your lip before sticking the needle in??) I mean, how much can getting laid off hurt if it happens *just* as your dentist hits a big nerve??

In the two-sides-to-every-coin department, though, I have to warn you that any serious period of unemployment could cause me to do things like resurrect that Iraq War thread and add a mind-numbing, 34-page non-sequitur!

Blowhard...With A Vengeance!
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#146523 - 05/03/2003 22:56 Re: Time sink? [Re: genixia]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
genixia,

Thanks for all ' your help.
_________________________
Joe Mumme

Top