[NTLUG:Discuss] communicating with ttyS0

Stephen Klein klein at kbwireless.com
Fri Jul 8 13:59:49 CDT 2005


Fred James wrote:
> All
> I have  a 'Link12' 1-Wire interface and a AAG 1-Wire interior 
> temperature sensor (TA18520).  Now I need to talk to 'ttyS0' from the 
> command line (goal is non-interactive scripts - probably 'expect'?)  Can 
> you point me to the documentation for communicating with/through 
> 'ttyS0', please?  Thank you in advance for any help you may be able to 
> offer.
> Regards
> Fred James
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 
> 

Well, there is the Serial programming HOWTO at:
http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/

I can also point you to a software project that has working driver 
daemons, libraries, and language bindings for Perl, python, and PHP to 
communicate with 1-wire devices.

http://owfs.sourceforge.net/

If you really want to make your own 1-wire protocol implementation, I 
guess you could use it for reference to see how it works.

Hope this helps,
Stephen Klein




More information about the Discuss mailing list