LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-10-2003, 09:15 PM   #1
AndyCanfield
LQ Newbie
 
Registered: Aug 2003
Location: Thailand
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
serial port configuration


OS: Linux TLE 5.0 based on Red Hat 8.
Legacy barcode printing equipment demands serial communications, 9600 baud, even parity, 7 data bits, 1 stop bit. I have found /dev/ttyS0, but how to configure the baud/E/7/1? Setserial will let me set the baud rate; change base or divisor? My C program must write to /dev/ttyS0 to run this device. No driver exists except for the standard Linux kernel serial driver. I've been using MODE.COM under MS-DOS and Windows 98; now porting to Linux. [Thank you for everything]. How do I configure the serial port?
 
Old 08-15-2003, 04:23 AM   #2
AndyCanfield
LQ Newbie
 
Registered: Aug 2003
Location: Thailand
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
[Repling tto my own post] A few days later I downloaded the source RPM for minicom and searched their code. The functionality I need is shown in "man termio". I could not find it because we call these things "serial ports", and Linux calls them "terminal ports". When was the last time you saw a terminal, eh? OK, so I have my answer, and I post this in case anyone else encounters this question he'll find the answer here also. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial port configuration Xreagan Linux - Distributions 5 11-16-2010 01:51 AM
serial port configuration zak_zeem Linux - Networking 4 09-09-2005 07:06 AM
serial port configuration for labview 7.0 under linux morvym Linux - Newbie 1 05-21-2004 04:22 PM
serial port configuration vidyaraj Linux - Hardware 1 02-26-2004 05:01 AM
Older Logitech 3 button serial port mouse configuration. Tarts Slackware 0 10-21-2003 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:01 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