DSPRelated.com
Forums

binary data recovery on DSK6713

Started by minal_fairy April 3, 2006
hi,
i m working on projrct of ofdm modem with PC as transmitter and
receiving part will be on dsk6713.Now i m facing a problem of binary
data recovery at DSK side.wat i have done so far is that i connected
soundcard to dsk's line in and running ping pong buffering program.At
Pc i used matlab to read wav file of 3 sec with sample rate of
22.5khz.Using these samples i obtained binary data stream through
adaptive delta modulation technique.....and using 'sound' command i
sent this data to soundcard.....Now i want to recover that binary data
stream at DSK....i havent found a way out yet.....CAN ANYBODY GUIDE ME
IN SOLVING THIS PROBLEM....???????
Minal Bhatt.
Hello Minal,

--- minal_fairy wrote:

> hi,
> i m working on projrct of ofdm modem with PC as
> transmitter and
> receiving part will be on dsk6713.Now i m facing a
> problem of binary
> data recovery at DSK side.wat i have done so far is
> that i connected
> soundcard to dsk's line in and running ping pong
> buffering program.At
> Pc i used matlab to read wav file of 3 sec with
> sample rate of
> 22.5khz.Using these samples i obtained binary data
> stream through
> adaptive delta modulation technique.....and using
> 'sound' command i
> sent this data to soundcard.....Now i want to
> recover that binary data
> stream at DSK....i havent found a way out
> yet.....CAN ANYBODY GUIDE ME
> IN SOLVING THIS PROBLEM....???????
You may be in luck. Since your sample time is short
and your rate is slow, you should be able to do it.
1. Determine the data storage that you need for 3 secs
of data.
2. run your code only long enough to collect 3 secs of
data [count the samples] - storing it in memory.
3. use 'fprintf' to print the raw data to a file on
the PC. note - this will be very slow.
4. do what you need to do with the raw data.

mikedunn
>
> Minal Bhatt.
> c...
>
>
>
Hello Minal,

--- minal_fairy wrote:

> --- In c..., Mike Dunn
> wrote:
> >
> > Hello Minal,
> >
> > --- minal_fairy wrote:
> >
> > > hi,
> > > i m working on projrct of ofdm modem with PC
> as
> > > transmitter and
> > > receiving part will be on dsk6713.Now i m facing
> a
> > > problem of binary
> > > data recovery at DSK side.wat i have done so far
> is
> > > that i connected
> > > soundcard to dsk's line in and running ping pong
> > > buffering program.At
> > > Pc i used matlab to read wav file of 3 sec with
> > > sample rate of
> > > 22.5khz.Using these samples i obtained binary
> data
> > > stream through
> > > adaptive delta modulation technique.....and
> using
> > > 'sound' command i
> > > sent this data to soundcard.....Now i want to
> > > recover that binary data
> > > stream at DSK....i havent found a way out
> > > yet.....CAN ANYBODY GUIDE ME
> > > IN SOLVING THIS PROBLEM....???????
> > You may be in luck. Since your sample time is
> short
> > and your rate is slow, you should be able to do
> it.
> > 1. Determine the data storage that you need for 3
> secs
> > of data.
> > 2. run your code only long enough to collect 3
> secs of
> > data [count the samples] - storing it in memory.
> > 3. use 'fprintf' to print the raw data to a file
> on
> > the PC. note - this will be very slow.
> > 4. do what you need to do with the raw data.
> >
> > mikedunn
> > >
> > >
> hi
> The problem that i am facing is that when i
> transmit Binary
> data via sound card to the line in of the Board ,
> the board stores
> the data in some other format. So the binary data
> that i transmit,
> when received at the board is not binary.
Actually it is in some 'binary format'. Keep in mind
that 'raw data' [binary] can be formatted [converted]
in a variety of ways [like '.wav', '.jpg', etc].
> I want to
> convert this
> data back into binary so i can process it. Is there
> any way to do
> this.
Just to be sure that I am not confused, I will
describe what i think that you are trying to do.
1. Start with a 'known data pattern' - wav file
2. Modulate the data on the PC.
3. Transmit the modulated data via PC sound card/line
out.
4. Receive the modulated data via DSK line in.
5. Demodulate the received data into 'received data
pattern'.
6. Compare 'received data pattern' with 'known data
pattern'.

Do the 6 steps reflect what you are trying to do??

If the above steps are what you are trying to do, you
need to add a step between #5 and #6. If your
original pattern is a '.wav' file, it is formatted
data, not raw data. You will need to either convert
your 'known data pattern'to a raw format or convert
your 'received data pattern' to a wav format to
perform a valid compare.

BTW, I assume that someone has done this before. If
not, the analog filters on the sound card and DSK
could have enough bandwidth/bandpass differences to
adversely affect your experiment.

mikedunn

>