LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2005, 03:53 AM   #1
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
RS232 + Networking Programming


Hi,
Where should I start if from the beginning when I want to program the RS232 serial port, Ethernet card or Single Board Computer? Any comments are welcome!
Thanks
Jack
 
Old 11-29-2005, 03:54 AM   #2
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
What headers?
 
Old 11-29-2005, 08:03 AM   #3
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Sorry, I should have said this in a totally different way.
My current task is to use com1(RS-232) serial port to interface and communicate with
a SBC. SBCs are embedded computers.I wonder Linux contain any header files; like(#include <linux/io.h> and so forth that support users to develop Embedded system applications. maybe some of the headers under some directories I don't know about. Hope this be clearer. I don't know how to start....
Thanks
Jack
 
Old 11-29-2005, 10:07 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I would start off searching for serial port programming howtos like:
http://www.tldp.org/HOWTO/Serial-Pro...WTO/index.html

Just google for additional information.

Are you asking how to write an application on the SBC or how to talk to it via linux?
Are you looking for specialized communications or just something similar to Hyperterminal in windows? If so you can use minicom which is a console application.
 
Old 11-29-2005, 07:04 PM   #5
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Hi Mike,
I am just looking for headers and examples to make an app. for the SBC. It was like a loop. First, I started off with the PC. I used Linux to create an app., then cross compiled to be run on the SBC, then downloaded to it thru RS232.
, next I used hyperterminal to get the result thru a router. What I am looking for is just headers to get me started. Thanks a lot
Jack
 
Old 11-29-2005, 07:16 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Checkout the examples. I think termios.h might be what you are looking for.
 
  


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
RS232 programming (sigaction problem) lucky6969b Linux - Networking 2 04-05-2008 02:06 PM
help!! Networking Programming in C (Windows/Linux) vibhory2j Programming 11 02-24-2007 05:46 AM
USB>RS232 versus PCMCIA>RS232 jayhel Linux - Laptop and Netbook 2 08-04-2005 06:09 PM
networking / internet / programming zeadriche Programming 3 02-04-2005 03:45 PM
linux networking programming help req shahg_shahg Programming 4 08-17-2004 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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