Thanks for that - it's good to have that in the trivia file. Since
I've written code to interface to FTIRs I'm interested in that kinda
stuff.
Onto your need for a solution....
1) You have a lot you can use now. Since one of the other postings
gave you an impressive list of options for looking into serial port
programming and testing (on the nearly 1 year anniversary of it being
on this list)
2) You've named your board as a TS-7800 which I don't have, I'll leave
you to the capable discretion of others on this list. Someone may
follow up on your AM# question.
Glad to help. Sounds like you've gained some understanding from the
direction I was looking to take you in all this.
Best wishes,
----
Andy
--- In "e.pifferi" <> wrote:
>
> I use an Applied Physics Systems 539 Magnetometer it's baud rate is
9600
> http://www.appliedphysics.com/manuals/539man.pdf
>
> my board is a ts 7800
> ill trying to set ttyS0 at 9600 and comunicate with this magnetometer
> that send automatically and continuosly data on serial port
> if i try to read them from term90 or hyperterm i see them . tnks for
> your helps ;)
> if i don't resolve with bash script ill implements a c program :)
>
> --- In "Andy Mercier" <andynmercier@> wrote:
> >
> > Try:
> > stty -F /dev/ttyS0 9600 raw -echo
> >
> > When you're running the code with the magnetometer.
> >
> > Please provide some reference to the magnetometer or post the
> > information about it's data steam as it is documented (if it is
> > documented). You'll need some line ending or file ending to occur for
> > the code using cat to work, long-term.
> >
> > Now that you've seen it work, you may have to consider writing code
> > that opens the serial port and works with it directly so that you can
> > implement timeouts if characters don't arrive, for example (the cable
> > disconnects). For that kind of coding it's best you read the HOWTO for
> > serial communications programming, search of Google today shows:
> > http://tldp.org/HOWTO/Serial-Programming-HOWTO/index.html
> > http://www.faqs.org/docs/Linux-HOWTO/Serial-Programming-HOWTO.html
> >
> > We can give you a more complete answer but you're "spoon feeding" some
> > information so we'll try again.
> >
> > Just so I don't miss anything in trying to help... Which TS board are
> > you running? If, for no other reason, naming you product will help
> > when someone searches the group for specific problems on specific
> > products.
> >
> > ----
> > Andy
> >
> > --- In "e.pifferi" <e.pifferi@> wrote:
> > >
> > > if i try to send data to 115200 baud rate from hyperterm your code
> > > work
> > > but if i connect directly on com1 a magnetometer with stream data
> > > continuosly at 9600 baud don't save nothing .
> > > why ?
> > > ive set so the ttyS0:
> > > stty -F /dev/ttyS0 9600
> > > but don't work can u help me ?
> > >
> > > another question AM0 -- AM1 -- AM2 are always serial port ?
> > > --- In "Andy Mercier" <andynmercier@>
wrote:
> > > >
> > > > If you don't need to use "variable" maybe consider skipping
the data
> > > > going through bash and allowing *nix power to do the work for you:
> > > >
> > > > cat /dev/ttyS0 >>file.txt
> > > >
> > > > It meets your criteria of working from within the bash shell.
> > > >
> > > > If this doesn't work for you and you still need help please
post the
> > > > details of how you're configuring the serial port (with stty),
which
> > > > TS product you're using, etc.
> > > >
> > > > ----
> > > > Andy
> > > >
> > > > --- In "e.pifferi" <e.pifferi@> wrote:
> > > > >
> > > > > hy i need to acquire data from an item on ttyS0 and save this
> > data on
> > > > > a file.txt it's possible to do from bash shell ?
> > > > >
> > > > > ive tryed so :
> > > > >
> > > > > read variable < /dev/ttyS0 echo $variable >> file.txt
> > > > >
> > > > > or so
> > > > >
> > > > > export variable=`cat /dev/ttyS0 echo $variable >> file.txt
> > > > >
> > > > > but don't work can anyone help me
> > > > >
> > > >
> > >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|