| 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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-15-2012, 12:16 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2012
Posts: 8
Rep: 
|
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
|
|
|
|
03-15-2012, 02:28 PM
|
#2
|
|
Moderator
Registered: Aug 2002
Posts: 10,696
|
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?
|
|
|
|
03-15-2012, 11:56 PM
|
#3
|
|
LQ Newbie
Registered: Feb 2012
Posts: 8
Original Poster
Rep: 
|
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,
|
|
|
|
03-16-2012, 03:09 AM
|
#4
|
|
Moderator
Registered: Aug 2002
Posts: 10,696
|
Yes, but there are only two physical ports so it would be ttyS0 or ttyS1.
|
|
|
|
03-16-2012, 04:14 PM
|
#5
|
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,259
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|