LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 03-15-2012, 12:16 PM   #1
sharan013
LQ Newbie
 
Registered: Feb 2012
Posts: 8

Rep: Reputation: Disabled
Using serial device file to connect a lcd display


Hi,
Linux has character device file representing serial port /dev/ttys*.I can simply open , read , write , close a serial port using system calls in my c programme.I am working on a board which has an intel atom processor.The board runs on fedora , it has 2 rs232 interface.
What I dont get is ,how to associate this serial port with the rs232 interface , I want to connect a lcd display to the rs232 and be able to write data to the display, using usb is last choice since I am building a portable medical kit ,I dont want it to be power hungry.
Any sample code, links of howto code such interface is welcome.

Thank you,
Sharan
 
Old 03-15-2012, 02:28 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,858

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The simple terms serial port and RS-232 interface reference the same thing. RS-232 is the standard that describes the electrical and physical hardware characteristics of the serial port.

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

Can you post a link to the board?
 
Old 03-15-2012, 11:56 PM   #3
sharan013
LQ Newbie
 
Registered: Feb 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
So, in my /dev there are 4 character device files ttys0 ,1,2,3 .
You are telling me I can connect a lcd or some external device to rs232 and communicate with it using one of these file as an interface.
Am I correct or missing something?
This is the board link, has board spec and documentation.

http://www.indiaeduservices.com/cms/...=82&Itemid=166

Thank you,
 
Old 03-16-2012, 03:09 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,858

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Yes, but there are only two physical ports so it would be ttyS0 or ttyS1.
 
Old 03-16-2012, 04:14 PM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
If you want to write C code to communicate serially with your LCD, you should consult the following very good references, which will provide you with some working code to get you started, and a lot of detail that you probably wouldn't have discovered on your own.

Serial-Howto
Serial Programming Howto
Serial Programming Guide for POSIX OS's

--- rod.
 
  


Reply

Tags
intel


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to access an IrDA device as a serial device such as /dev/ttyUSB0? cricketlong Linux - Hardware 1 05-24-2011 03:11 PM
Serial input device using usb-serial connector slackiz Linux - Hardware 4 01-12-2009 05:04 AM
Connect from FC6 box to other device via serial/usb Hewson Linux - Hardware 5 03-13-2007 03:43 PM
Could not connect to Bluetooth device through the serial port dubrick_vit Linux - Hardware 0 01-16-2006 07:57 AM
LCD Display brianknu Linux - Hardware 3 06-18-2005 06:10 AM


All times are GMT -5. The time now is 09:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration