LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 08-19-2011, 11:48 AM   #1
getasif
LQ Newbie
 
Registered: Sep 2009
Posts: 26

Rep: Reputation: 0
how to prove working of RS-232 full modem working PC to PC and LOOP BACK


Hello there I am a newbie trying to prove the working of RS-232 Full modem and also one RS-422( RX,TX,RTS,CTS)

These 2 ports are on a custom designed board and I need to prove the working.I am able to confirm the working at register level but I need to prove the working using softwares like Minicom or any other custom program.


How can I prove the working of these ports from one PC to a different PC using DB 9 connections and LOOP BACK too

Can someone help me with this ..Do I need to use any extra hardware to prove the working of this in Linux.

Thanks and regards

Last edited by getasif; 08-19-2011 at 12:00 PM. Reason: additional info
 
Old 08-20-2011, 06:00 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,562

Rep: Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684Reputation: 684
With a null modem serial cable you can test the RS-232 port between your board and another PC. minicom will work and you can set hardware flow control as desired.

RS-422 will require a converter on the PC side and two twisted pair wiring between the board and PC. For short runs you can use 4 individual wires and hand twist ( ~2-3 twists per inch) . You can use minicom.
 
Old 08-20-2011, 09:58 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,391
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
You cannot prove full functionality of a modem without using a telephone connection (in other words, try it. If it works, it works, if not, it doesn't work). You can exercise the RS-232 serial port incrementally. Place a loopback jumper between pins 2 & 3 of the serial port D-sub connector. This will link the Tx signal back into the Rx pin. With any terminal emulator, press keys and observe that the keystrokes are read back to the terminal. If you connect a proper cable (normally a 'straight' cable) between the serial port and modem, you should be able to verify that the modem, serial port and cable are functional by observing that modem commands can be received, echoed, and interpreted by the modem. Again, this is done by typing modem commands in a terminal emulator, and observing the modem response to the commands.
--- rod.
 
  


Reply

Tags
linux, minicom, rs232, serial port


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NIC not working at full speed rthordarson Linux - Newbie 1 01-26-2009 11:38 PM
Full Working Install - Now What? ODMahowny Slackware - Installation 6 07-02-2007 07:49 AM
How to see the full path of the computer I'm working on DNRN Linux - General 5 10-06-2006 06:05 AM
Intel sound not working, usb modem not working. siriusb Linux - Hardware 8 03-04-2006 10:16 PM
Full-screen apps in X not working properly Trygleren Linux - Software 1 06-22-2004 10:36 AM


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