LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-21-2010, 12:44 PM   #1
forbin
Member
 
Registered: Apr 2010
Posts: 43

Rep: Reputation: 0
Serial Communication Only Works in One Direction - Why?


Running RHEL5.5 on a Dell R710 server. I installed a 2-port PCIe serial card, built the driver, and installed the kernel module. The ports show up in /etc/hwconf, lspci, kudzu, /proc/ioports, etc., and I now have two new device entries...

/dev/ttyE0
/dev/ttyE1

When I connect a null modem cable from port 0 of the card in the new computer to serial 0 of another computer, I can receive text from the other computer. When I do this...

# cat /dev/ttyE0 (on the new computer)
# echo hello > /dev/ttyS0 (on the other computer)

...then 'hello' shows up on the console of the new computer. However, when I reverse the process and do...

# cat /dev/ttyS0 (on the other computer)
# echo hello > /dev/ttyE0 (on the new computer)

...then nothing happens!

Any ideas would be appreciated.
 
Old 09-22-2010, 12:26 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I seem to recall reading that it is not advisable (system security issue) to have a port open for two-way communication. Therefore, the system is set up to use one port for outgoing only, and another for incoming only for a given device. That makes it easier to put limits on what comes in without affecting what goes out.

Since two device files were created, perhaps one is for outgoing and the other for incoming. Try sending on /dev/ttyE0 and receiving on /dev/ttyE1.

PS: I've googled but can't seem to find anything to substantiate my comments above.
 
Old 09-22-2010, 08:17 AM   #3
forbin
Member
 
Registered: Apr 2010
Posts: 43

Original Poster
Rep: Reputation: 0
Thanks for trying, but those are definitely not the issues. I have other servers that are working just fine, and even these servers work just fine if I use the built-in serial ports (/dev/ttyS0). The only problem is with the serial ports on the ad-in PCIe card.

Best,
 
  


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
Serial Communication Suraj Swami Linux - Newbie 1 06-25-2009 07:25 AM
Serial Communication help mitchell2345 Linux - Software 2 03-20-2009 08:41 PM
OpenSwan VPN only works in one direction Thakowbbery Linux - Networking 2 03-27-2008 01:15 PM
rsync works in one direction, but not the other hroit Linux - Desktop 7 08-14-2007 12:20 PM
Samba - works in one direction sdlsatcom Linux - Networking 0 01-25-2004 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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