|
From: | Steven Clark |
Subject: | Re: [Discuss-gnuradio] USRP digital output hack |
Date: | Wed, 9 May 2007 13:51:10 -0400 |
A serial port "looks" like a file to Python or any other program.
If you can print to the console you can write to a serial port.
I assume you are running on some UNIX-like OS. Open /dev/ttyS0 and
write bytes to it. You need to set permissions so the open will work
Echo "Hello World" > /dev/ttyS0
should send a byte stream out to the first serial port on the machine.
You can use "stty" to set the port speed and other parameters. Se "man
stty" or just "stty --help"
--- Steven Clark <address@hidden> wrote:
> Do you know of any simple way to send a gnuradio stream to a serial
> port? AFAIK, no such "serial port sink" block exists. Serial port
> support isn't even built in to python, you have to go to modules like
> pyserial. Streaming the bits out real time while the demodulator is
> running is key for me.
>
> -Steven
>
> On 5/8/07, Chris Albertson <address@hidden> wrote:
> >
> > Why not simply send the data to a serial port on the PC?
> >
> > --- Steven Clark <address@hidden> wrote:
> >
> > > Hi all-
> > >
> > > I've been desparate lately for a way to stream data from GNURadio
> > > back out
> > > to the hardware world without turning the data into an analog
> signal
> > > via the
> > > USRP's DAC. For example, if I have a software demodulator
> outputting
> > > bits (1
> > > bit per byte,
> > <SNIP>
> >
> > Chris Albertson
> > Home: 310-376-1029 address@hidden
> > Office: 310-336-5189 address@hidden
> >
> >
> >
> >
>
____________________________________________________________________________________
> > The fish are biting.
> > Get more visitors on your site using Yahoo! Search Marketing.
> > http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> >
>
Chris Albertson
Home: 310-376-1029 address@hidden
Office: 310-336-5189 address@hidden
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
[Prev in Thread] | Current Thread | [Next in Thread] |