LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-07-2011, 01:47 AM   #1
alireza976
LQ Newbie
 
Registered: May 2011
Posts: 13

Rep: Reputation: Disabled
how to switch between serial protocols?


hello

How to switch between serial protocols in c language?
for example i need to switch between rs232 and rs422,
(according to rs422 pinout)

tnx
 
Old 06-07-2011, 04:18 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
It depends on the hardware.
In a nutshell the difference between RS-232 and RS-422 is electrical so it might be just a matter wiring the connector to the correct pins and maybe setting a register value.

Last edited by michaelk; 06-07-2011 at 04:25 AM.
 
Old 06-09-2011, 01:11 AM   #3
alireza976
LQ Newbie
 
Registered: May 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
ok
Thank you
 
  


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
Multiple protocols on serial port nikolai. Programming 2 03-25-2011 07:39 AM
[SOLVED] How to check the status of a switch though serial port angel115 Linux - Hardware 3 10-21-2010 01:11 AM
Why is multicast protocols designed in Layer 3 when routing protocols in L5 vineeth_thampi Linux - Networking 2 07-04-2006 05:23 PM
setting up com port for serial connection to monitor network switch help murf562 Linux - Hardware 1 10-30-2004 09:46 AM
Connecting to a device (say, a switch) using serial port spuud Linux - Networking 1 09-20-2003 04:36 PM

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

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