Unoffical empeg BBS

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

Page 4 of 4 < 1 2 3 4
Topic Options
#139991 - 13/02/2003 09:01 Re: Hijack v314: open("/dev/empeg_state",O_RDONLY) [Re: jaharkes]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Why is is useful to see realtime NMEA strings?

Didn't someone ask for it for time ago? I have no idea why, I just had this idea that someone wanted it. If I'm nuts, it's probably not worth doing that way. I can do a "flashing led" easily enough.

Top
#139992 - 13/02/2003 15:33 Re: Hijack v314: open("/dev/empeg_state",O_RDONLY) [Re: Daria]
jaharkes
enthusiast

Registered: 20/08/2002
Posts: 340
Loc: Pittsburgh, PA
Didn't someone ask for it for time ago?

I think that was before we had the satellite info screen which gives us some feedback before the gps obtains a good lock and starts sending position updates.

My guess is that early debugging (i.e. did I cross those rx/tx wires) could use some additional feedback, but that should probably stay inobtrusive enough that it won't bother a user once everything is up and running. Which is why a small flashing circle in the 'blind spot' in the upper left corner could be useful.
_________________________
40GB - serial #40104051 gpsapp

Top
#139993 - 13/02/2003 15:41 Re: Hijack v314: open("/dev/empeg_state",O_RDONLY) [Re: jaharkes]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
My guess is that early debugging (i.e. did I cross those rx/tx wires) could use some additional feedback
I think "waiting for data from GPS receiver" is sufficient for that one.
_________________________
Tony Fabris

Top
#139994 - 01/04/2003 22:29 Re: Where is the number of plays stored? [Re: Daria]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Ok, so it looks like the 4 bytes decodes thus at each db setting in a band:
0db to 23736102

Q is at .55 by default when the above happens. If I change it
If I change Q
.56 gives 24165598
.54 gives 23306606

If I push Q to its extremes:
100.1 gives 4294537728
0.01 gives 429496

A quick resurrection.

It looks like Q = 100*value/ 2^32
I'm guessing that the marginal inaccuracies that we see in the above figures is due to display rounding in the player software. Certainly a 'strings' of the player binary reveals that the display is a printf formatted variable using a precision code, and not a preformatted string.
Using the above formula;
.56 gives 24165598 gives 0.5626
.54 gives 23306606 gives 0.5426
100.1 gives 4294537728 gives 99.98 <== oddity.
0.01 gives 429496 gives 0.00999
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#139995 - 02/04/2003 11:30 Re: Where is the number of plays stored? [Re: genixia]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
In reply to:

100.1 gives 4294537728 gives 99.98 <== oddity.


Perhaps the fraction is Q = 100.1*value/ 2^32 (since 100.1 is the largest value)?
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#139996 - 02/04/2003 16:51 Re: Where is the number of plays stored? [Re: tms13]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
It fits the values perfectly if you use 100.11 and do rounding to 2 d.p. Bit of a weird number to multiply by so there might be something we're missing still on this calculation.
Does anybody have any more values to check against?

- Trevor


Top
#139997 - 02/04/2003 20:58 Re: Where is the number of plays stored? [Re: tms13]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Well, I can't understand why it would use 100.11...My suspicions are that the equation is Q=100.X / 2^32, and that an error is being introduced in the display. Possibly the user input being adjusted by the player is converted to DSP coefficients, and then reverse-calculated for display purposes. Given the lack of native floating point support within the ARM, the code probably uses fixed point math, which could introduce small errors, especially with a double conversion. Purely speculation...

I think that we can live with the accuracy of Q=100.X / 2^32 for anything we might want to do.

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

Top
Page 4 of 4 < 1 2 3 4