LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-30-2003, 02:54 PM   #1
franklin97355
LQ Newbie
 
Registered: Dec 2003
Location: Lebanon, Oregon
Distribution: Alma9,Arcolinux,Gentoo,kubuntu
Posts: 10

Rep: Reputation: 0
Question parse info from ttyS1


OK, here's what I want to do. Open ttyS1 for input get a full line of text terminated with a newline. Parse the line and write the info to an .html document then post that page.

I need to be able to open /dev/ttyS1 (it requires root access at this time)
get a FRESH line of text and parse it ( I think I have the parsing down ) copying the parsed data to a file should not be a problem, just getting it in the first place.

Any help is appreciated, Thanks,
 
Old 12-31-2003, 01:57 AM   #2
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Rep: Reputation: 32
well i'm not sure how a line of data can be fresh, but if you want to learn about serial programming in UNIX check out:

http://en.tldp.org/HOWTO/Serial-Programming-HOWTO/

and

http://www.easysw.com/~mike/serial/

that should help you to get the data.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with ttyS1 as a Terminal Laoch Linux - General 1 08-24-2005 08:16 AM
modem on ttyS1 ?? skguha Linux - Newbie 6 08-18-2005 07:08 PM
Default ttyS1 permission setting gilester Mandriva 8 03-07-2005 01:43 PM
ttyS1 problem or whot? Xon Linux - Hardware 2 12-01-2004 05:52 AM
No such device /dev/ttyS1 gsancho Debian 3 09-23-2004 05:40 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration