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 07-11-2011, 08:17 AM   #1
zelycorn
Member
 
Registered: May 2011
Posts: 48

Rep: Reputation: 0
blind serial port


Hello,

I can't communicate with and UPS (Eaton) via a serial port. The serial port is UP and have been tested under a Windows OS.

I have set up the communication parameters and tried to establish a dialog with the UPS. Minicom is installed. Nothing appears ont the screen and the VT102 has an offline status. The OS is Red Hat Enterprise Linux 5 64bits.

dmesg | grep -i tty
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

setserial /dev/ttyS0 baud_base 9600


setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 9600, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test


stty -a < /dev/ttyS0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

yum install minicom

Is somebody have examples to debug the serial port ?
 
Old 07-11-2011, 09:56 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What is the model number?
You can use a loopback plug or another computer via a NULL modem cable. Configure both computers using the same settings and you should see what you type on the other computer.

Just briefly looked at the manual. Are you trying to use terminal mode?
 
Old 07-13-2011, 03:10 AM   #3
zelycorn
Member
 
Registered: May 2011
Posts: 48

Original Poster
Rep: Reputation: 0
Its a HP ML310G4 server. The serial port is onboard. I will look for about a new driver.
 
Old 07-13-2011, 06:34 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I meant the model number of the UPS not the server.
How did you test the UPS using windows?
 
Old 07-15-2011, 02:52 AM   #5
zelycorn
Member
 
Registered: May 2011
Posts: 48

Original Poster
Rep: Reputation: 0
it is an Eaton Extreme 3000 (formerly MGE). With windows, i installed the server with Windows 2003 Server and the UPS software (Eaton Network Management Protection). I plugged the rs232 serial cable in the server. At the first launch of the software, the UPS is monitored.

In Red Hat, it's not also so easy to drive..

Last edited by zelycorn; 07-15-2011 at 03:03 AM.
 
Old 07-15-2011, 05:00 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Your UPS is supported by NUT.
http://www.networkupstools.org/index.html
 
Old 07-15-2011, 03:44 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Not all ups's are even close on how they communicate. signal and wire pairs change or reverse. Dumb things. Might have to put a scope on the windows to be sure or see if docs tell how to set serial port settings.
 
Old 07-18-2011, 02:04 AM   #8
zelycorn
Member
 
Registered: May 2011
Posts: 48

Original Poster
Rep: Reputation: 0
Settings are 9600 8N1. Standard.

NUT, yes, i've tried with this when usb and serial doesn't work. Usb is working with an other ups. The current ups has only a serial port. I will retry with NUT.
 
  


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
Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C? spudgunner Programming 1 11-12-2010 01:19 PM
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 01:15 AM
timedia 4 port serial port i/o card configuration binu_edl Linux - Hardware 0 03-09-2006 09:39 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM

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

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