Unoffical empeg BBS

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

Page 1 of 2 1 2 >
Topic Options
#76343 - 28/02/2002 16:26 Hey, Mark. What about sending commands to DSP?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
Mark, is there enough information in the Kernel sources so you could send commands to the player's DSP?

Here's some things we're discussing over in the Wish List forum:

- The player's DSP has the ability to implement ordinary bass and treble controls. But the empeg player software doesn't do anything with those registers.

- The player's DSP has the ablity to change the "ramp" of the loudness control (how much loudness is applied at a given volume level), but the empeg player software only plugs in Philip's recommended default value there.

Is it possible for Hijack to alter these values? Since you've already hijacked the knob press for popups, I'd think it might be possible for Hijack to implement its own Bass and Treble sliders. And I would just die for a configurable upper cutoff point for the loudness.
_________________________
Tony Fabris

Top
#76344 - 28/02/2002 17:06 Re: Hey, Mark. What about sending commands to DSP? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Mmm.. bass & treble could be very useful in the car.

If some kind person sends me appropriate chipset documentation, with pointers to the bass/treble controls, I'll certainly have a look at it.

Perhaps fiddle with the EQ ramping afterwards..

Top
#76345 - 28/02/2002 17:16 Re: Hey, Mark. What about sending commands to DSP? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
The only known (non-NDA) documentation on the DSP is the PDF spec sheet. The spec sheet doesn't have detailed programming instructions (that's in the NDA documentation).

But I was hoping that somehow there were already some DSP programming commands in the kernel sources that would point the way, and a few of the memory location numbers from the spec sheet could help you.

I'm having trouble locating the SAA7705H spec sheet on the web at this time, so I'm emailing you my copy right now.
_________________________
Tony Fabris

Top
#76346 - 01/03/2002 07:46 Re: Hey, Mark. What about sending commands to DSP? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Yeah, thanks. But the spec sheet sadly lacks sufficient detail to do much, as others have discovered here in the past.

Don't ya just love closed-source.

Cheers

Top
#76347 - 01/03/2002 09:53 Re: Hey, Mark. What about sending commands to DSP? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
And there's nothing in the Kernel sources to give a clue?
_________________________
Tony Fabris

Top
#76348 - 01/03/2002 10:02 Re: Hey, Mark. What about sending commands to DSP? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
>And there's nothing in the Kernel sources to give a clue?

Not the info we need, like the internal register addresses for bass/treble control.

On the plus side, while poking at this I "discovered" the cs4231a driver. This is the device that's using FIQs -- the likely source of player lockups. The fix is elsewhere, but at least now I understand where the FIQs are coming from.

This device is used to resample the audio-outputs, providing data for visuals for the Tuner and Aux audio -- and maybe for regular "mp3" visuals as well (don't know, don't care).

It is significant here though, because this is also the device we will use for recording live radio in the Empeg.. and it is a pretty standard device with published APIs etc.. so no barriers there!

I really want to be able to record Tuner output, even while listening to mp3's at the same time, and this device enables it to happen.

-ml

Top
#76349 - 01/03/2002 13:55 Re: Hey, Mark. What about sending commands to DSP? [Re: mlord]
matthew_k
pooh-bah

Registered: 12/02/2002
Posts: 2298
Loc: Berkeley, California
Time shifted radio while listening to MP3s? Be still my beating heart. Seeing as I don't have a tuner module yet, take your time and get this feature right...

If this comes true i'll need a tuner module for the empeg outside of the car too. Then I'll need another sled. Will it ever end?

Top
#76350 - 01/03/2002 16:03 Re: Hey, Mark. What about sending commands to DSP? [Re: mlord]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Actually, no it doesn't allow you to do that.

If it did, we'd have had time-shift of radio on the wishlist. The tuner only outputs MPX (left/right/rds all in one signal) and this doesn't go into the sampler. The left/right extraction happens in the DSP, and can only happen when in tuner mode - ie, you can't listen to MP3 and sample the tuner.

The one way around this is to have an external board that plugs between the tuner and the main unit, and contains a FM demultiplexer whose output you hook up to aux in - as you can sample aux in whilst playing mp3s, this would work fine.

You *can* record tuner output, but only whilst listening to it. As the output sampled is the DSPs output, resolution will be affected by the volume you're listening to the tuner at.

Yes, it's a hardware limitation, but not one we could do much about without more hardware...

Hugo

Top
#76351 - 01/03/2002 16:07 Re: Hey, Mark. What about sending commands to DSP? [Re: mlord]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Open or closed source isn't the point here; the docs were released to us under NDA. We can't tell you how to operate the DSP, even though we'd like to.

Personally, as the 7705 has now been superceded, maybe philips will release more info if someone can get hold of the right person. We spent at least 3 months trying to get the docs even when we actually had bought 100s of the chips!

Hugo

Top
#76352 - 01/03/2002 16:09 Re: Hey, Mark. What about sending commands to DSP? [Re: altman]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I think he was referring to the DSP being closed, not your player. That's the way I took it, anyway.
_________________________
Bitt Faulk

Top
#76353 - 01/03/2002 17:27 Re: Hey, Mark. What about sending commands to DSP? [Re: altman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Actually, I meant the "closed" documentation in this case. For sure your hands are tied with the NDA.

Top
#76354 - 03/03/2002 13:04 Re: Hey, Mark. What about sending commands to DSP? [Re: altman]
jane
enthusiast

Registered: 10/10/2000
Posts: 350
Loc: Copenhagen SW, Denmark
*aching* to point out that you have already decided to try to have more hardware made... But I guess it wouldn't be worth the effort to put RCA-outs on the tuner (would probably requre another chip?

About designing this board... could the MPX signal simply be Y'ed off the connection between the tuner and the empeg? And then processed separately while the other "half" goes into the player as usual? Or would this degrade radio quality? or volume?

Marius (Escort Cab + Mark II)

Top
#76355 - 03/03/2002 17:28 Re: Hey, Mark. What about sending commands to DSP? [Re: jane]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Yes, the MPX could be 'Y'-ed off. Putting it through a buffer op-amp so that the impedance of the add-on's MPX input is so high as to be negligible is a good idea though.

Hugo

Top
#76356 - 04/03/2002 07:23 Re: Hey, Mark. What about sending commands to DSP? [Re: altman]
beamer
stranger

Registered: 08/02/2002
Posts: 34
_________________________
- Regards from - Christian Byriel - Empeg MK2a

Top
#76357 - 04/03/2002 14:53 Re: Hey, Mark. What about sending commands to DSP? [Re: beamer]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Nope.. already found that.

Top
#76358 - 04/03/2002 15:21 Re: Hey, Mark. What about sending commands to DSP? [Re: mlord]
TedP
member

Registered: 11/01/2002
Posts: 171
Loc: South Bay, CA: USA
Did you guys see this in the datasheet:

Further information about the programming of the EPICS6
DSP core is available in “EPICS6 Programmer’s Guide,
version 1.3, July 3 1997, Author Ron Schiffelers, CIC
development Nijmegen”

Looks like the DSP is a drop in core with it's own documentation. Maybe we can look for the above document.

-Ted

Top
#76359 - 04/03/2002 15:28 Re: Hey, Mark. What about sending commands to DSP? [Re: TedP]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
Yes, that is correct. The document you described is, I believe, the NDA one. Not certain.
_________________________
Tony Fabris

Top
#76360 - 04/03/2002 16:33 Re: Hey, Mark. What about sending commands to DSP? [Re: TedP]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
I looked long and hard for this doco and came to the conclusion that it was the NDA stuff Hugo was talking about.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#76361 - 04/03/2002 17:06 Re: Hey, Mark. What about sending commands to DSP? [Re: Shonky]
TedP
member

Registered: 11/01/2002
Posts: 171
Loc: South Bay, CA: USA
Jeez, I wonder what the propietary aspect of it is? DSP cores are pretty much commoditized. So many vendors are begging you to use their cores. Oh well, it would be very cool thing to have. I was hoping if implementing a road-noise reduction algorithm using the microphone input and running it through a RLS noise cancellation algoritm.

-Ted

Top
#76362 - 04/03/2002 17:47 Re: Hey, Mark. What about sending commands to DSP? [Re: TedP]
AndrewT
old hand

Registered: 16/02/2002
Posts: 867
Loc: Oxford, UK
... road-noise reduction algorithm using the microphone input...

That would be an amazing hack if anyone could pull it off

Top
#76363 - 04/03/2002 18:23 Re: Hey, Mark. What about sending commands to DSP? [Re: AndrewT]
TedP
member

Registered: 11/01/2002
Posts: 171
Loc: South Bay, CA: USA
Theoretically, it could be done using one of the adaptive filter techniques (RLS, LMS, etc) to generate an error signal (i.e the output from the RIO minus the input from the microphone). You then generate the correction signal to drive the error to 0 and add that to the output. It's actually pretty common: used on all phone lines for echo cancellation. Also, maybe someone used the BOSE headphones with active noise cancellation... same deal. Not sure how well it would work in the car given a much less controlled environment than headphones, but it's worth a try (if we can get to the DSP).

-T

Top
#76364 - 04/03/2002 18:53 Re: Hey, Mark. What about sending commands to DSP? [Re: TedP]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
This has been brought up before... most people say that the mic input can't sample that great of a freq range so it won't work... but I assume that most road noise comes from a limited frequecy range anyway....

Maybe someone could contact Phillips? Since Mark is just writiong programs that make their product more valuable (and not designing hardware to compete) I don't see why HE can't sign a NDA...

Maybe if the empeg guys can find a loophole to get Mark paid for alpha testing or something.... then he'd be on payroll and THEN he'd be allowed to view the code.

Pay him $.02 to make it legal. hehee
_________________________
Brad B.

Top
#76365 - 04/03/2002 19:07 Re: Hey, Mark. What about sending commands to DSP? [Re: SE_Sport_Driver]
TedP
member

Registered: 11/01/2002
Posts: 171
Loc: South Bay, CA: USA
yep, i bet you can do reasonably well just with a 3 or 4 KHz bandwidth. i guess that's what experimenting with it is all about.

Top
#76366 - 06/03/2002 05:10 Re: Hey, Mark. What about sending commands to DSP? [Re: TedP]
beamer
stranger

Registered: 08/02/2002
Posts: 34
My friend who develop's electronics tells me that it should'nt be a problem to get a copy of the doc's for the DSP, if you just ask for it and tell you are developing for a product which uses the Philips DSP
_________________________
- Regards from - Christian Byriel - Empeg MK2a

Top
#76367 - 06/03/2002 05:44 Re: Hey, Mark. What about sending commands to DSP? [Re: beamer]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
Gosh why didn't we think of that..

Rob

Top
#76368 - 09/03/2002 03:49 Re: Hey, Mark. What about sending commands to DSP? [Re: mlord]
schofiel
carpal tunnel

Registered: 25/06/1999
Posts: 2993
Loc: Wareham, Dorset, UK
Well then, why don't you just ring up your local Philips division, ask for a phone number in the national publications department, give them a ring and ask for a copy of Application Note NBA/AN9704, like I did?
_________________________
One of the few remaining Mk1 owners... #00015

Top
#76369 - 09/03/2002 12:30 Re: Hey, Mark. What about sending commands to DSP? [Re: schofiel]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Looks like I won't need to now. You're going to implement it for us!

Top
#76370 - 09/03/2002 14:05 Re: Hey, Mark. What about sending commands to DSP? [Re: schofiel]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
Did you sign an NDA???

If not, be a champ and post some useful information - I'd really like to know the equaliser register format. There is 20 sections of 4 bytes, and finding out how those 4 bytes affect the eq section is a rather difficult bit of reverse engineering.

If you're under an NDA, please don't post this info...
_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#76371 - 09/03/2002 20:12 Re: Hey, Mark. What about sending commands to DSP? [Re: genixia]
Terminator
old hand

Registered: 12/01/2000
Posts: 1079
Loc: Dallas, TX
I think he used to work for phillips, so he has connections :-)

Top
#76372 - 03/07/2002 08:19 Re: Hey, Mark. What about sending commands to DSP? [Re: tfabris]
caederus
journeyman

Registered: 18/02/2000
Posts: 51
Loc: UK
I just asked Philips about this.

The document they don't distribute is the EPICS6 Programmers Guide,
but that is only required if you want to write your own DSP ROM code.
If you use the standard part, which I presume the empeg does, it comes
with DSP code which is documented in the user manual (NBA/AN9801).

Philips supply this manual free of charge. They sent it to me as a
pdf, marked UNCLASSIFIED and with no copyright markings or distribution
restrictions, so I feel confident I can put it here:
http://empeg.org.uk/info/saa7705h-man.pdf

Now, what can we do with it?
_________________________
http://ro.nu/ Robin O'Leary

Top
Page 1 of 2 1 2 >