1 way serial feed from Linux to Solaris. Help!


 
Thread Tools Search this Thread
Operating Systems Solaris 1 way serial feed from Linux to Solaris. Help!
# 1  
Old 09-05-2009
1 way serial feed from Linux to Solaris. Help!

Hi All.. No Labor Day weekend for me.. too much to do. 1 of which is that I have been pulling my hair out trying to get a 1-way serial feed working from a Linux box running Centos to a Solaris 10 box. The serial feed consists of a blackbox fiber driver on each end connected with 1 strand of fiber from output on Linux side to input on Solaris side. port setting are 9600 8,n,1

Note: This works perfectly from Linux to Linux. When I cat out /dev/ttyS0 on a receiving Linux box, the data is uncorrupted.

I have played with ALL of the eeprom tty settings as well as the basic settings you can change using SMC. So, I've decided to look into whats available through stty.

Here are the settings from the Linux and Solaris boxes.

===============
Linux
===========
speed 9600 baud; rows 0; columns 0; line = 192;
intr = ^W; quit = M-^?; erase = M-7; kill = M-t; eof = O; eol = <undef>;
eol2 = ;; swtch = M- ; start = ^\; stop = >; susp = <undef>; rprnt = <undef>;
werase = <undef>; lnext = ; flush = <undef>; min = 0; time = 82;
-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

===========
Solaris
===========
speed 9600 baud;
rows = 0; columns = 0; ypixels = 0; xpixels = 0;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3

I have tried changing all the parameters starting at parenb on the Linux side to match the Solaris side. Ex. stty -clocal </dev/ttyS0. Still no joy.

I really need to get this problem solved, so if any experts out there have some ideas, please post.

thanks,
Mike
# 2  
Old 09-05-2009
Is this x86 to x86? What hardware is Solaris on?
# 3  
Old 09-05-2009
Quote:
Originally Posted by System Shock
Is this x86 to x86? What hardware is Solaris on?
The Solaris is running on a UltraSPARC IIIi system.
# 4  
Old 09-05-2009
Make sure that there isn't a "getty" for that serial port.

Code:
grep "getty" /etc/inittab

# 5  
Old 09-05-2009
Quote:
Originally Posted by methyl
Make sure that there isn't a "getty" for that serial port.

Code:
grep "getty" /etc/inittab

thanks. just checked. no getty. thanks for the ideas.. please keep them coming.
# 6  
Old 09-06-2009
I'd suggest that you first reset all the changes you made to defaults. I just happen to use a laptop with CentOS to connect to Sun serial ports and it works without changes, -although I use a USB to serial adaptor, since the laptop doesn't have a serial port.

Let's start with some questions first..
Is this connection serial to serial, USB to serial? Are you sure you are plugged into serial A in the Sun box? How are you connecting: tip, screen, minicom? Why are you using fiber for this? and last, what exactly is the purpose of this connection?
# 7  
Old 09-06-2009
Quote:
Originally Posted by System Shock
I'd suggest that you first reset all the changes you made to defaults. I just happen to use a laptop with CentOS to connect to Sun serial ports and it works without changes, -although I use a USB to serial adaptor, since the laptop doesn't have a serial port.

Let's start with some questions first..
Is this connection serial to serial, USB to serial? Are you sure you are plugged into serial A in the Sun box? How are you connecting: tip, screen, minicom? Why are you using fiber for this? and last, what exactly is the purpose of this connection?
SS thanks for the reply. Little after 7am now going into work in a few and will reset settings

To answer your questions:
1 serial to serial
2 yes only 1 serial port. when I cat or have the program that is reading from the serial port display the data, it is garbled in both instances
3 we have some unique networking requirements
4 the program is designed to read from the serial port

can give you more required detail when I get into work typing this now on phone keyboard and a bit of a pain

---------- Post updated at 08:56 AM ---------- Previous update was at 07:19 AM ----------

System Shock, left you a message.

---------- Post updated at 02:25 PM ---------- Previous update was at 08:56 AM ----------

System Shock. Problem solved. Went down to Best buy and picked up a couple USB to serial cables and it works.

I had intended on doing the test on another platform thinking that maybe the fact it was going fro 32bit Linux to 64bit solaris was dorking things up. I installed the usb to serial on a 64 bit Centos box only (leaving the sun box as is utilizing the onboard serial port) and it worked. I then installed the serial cable back on the original 32 Centos box and it worked as well, so the secret was going out serially over the USB port.

I'm ecstatic it finally works. But maybe someone can explain why Linux to Linux it worked serial port to serial port just fine.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 11.2 does not assign serial port to 3g usb modem?

In ubuntu etopic i create this udev rules for prolink 3g usb modem: SUBSYSTEM=="block", SUBSYSTEM=="scsi", ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="f000", ACTION=="add", RUN+="/sbin/modprobe usbserial Vendor=0X1e0e Product=0Xf000" After plugging the usb modem, ubuntu assigns the ports... (4 Replies)
Discussion started by: shamsat
4 Replies

2. Solaris

Getting serial number in Solaris Sparc servers 11

How to get the serial number in Sparc servers without using any STB tools like sneep. The below link gives details about the solaris package, but i need to get the serial number like the smbios command. How to get SUN server serial number ? - UnixArena For Non-sparc servers, the below... (2 Replies)
Discussion started by: prasankn
2 Replies

3. Solaris

Help - how to install Solaris T42 via serial port

I did some unix admin many years ago, but since then I have been programming. I now have to install solaris 10 on a T42 via a console/serial cable. Could anyone please provide some help on the following. We have one solaris server up and going, I use Cygwin to get to this (xwin -query ...)... (2 Replies)
Discussion started by: matdave
2 Replies

4. Shell Programming and Scripting

replace last form feed with line feed

Hi I have a file with lots of line feeds and form feeds (page break). Need to replace last occurrence of form feed (created by - echo "\f" ) in the file with line feed. Please advise how can i achieve this. TIA Prvn (5 Replies)
Discussion started by: prvnrk
5 Replies

5. Solaris

hyperterminal serial solaris 8

Hi All, I connected my serial connection to the installation of solaris 8 and sorry to tell you I use XP/hyperterminal, don't get mad on me... I might use ubuntu later. When I'm installing it, it's ask me below: What type of terminal are you using? 1) ANSI Standard CRT 2) DEC VT52 ... (3 Replies)
Discussion started by: itik
3 Replies

6. Solaris

Serial Port Connection to a Sunfire V880 (having Solaris 10)

Hi, I'mtrying to connect a Device via the serial port to my Solaris 10 environment (Sunfire V880). I have setup ttyb to connect to the Device. I am getting a connected status in my Port Listing (Using a separate Module that I have in the app running in the environment) but the moment I try to... (0 Replies)
Discussion started by: Alchemist
0 Replies

7. What is on Your Mind?

Post Your Favorite UNIX/Linux Related RSS Feed Links

Hello, I am planning to revise the RSS News subforum areas, here: News, Links, Events and Announcements - The UNIX Forums ... maybe with a subforum for each OS specific news, like HP-UX, Solaris, RedHat, OSX, etc. RSS subforums.... Please post your favorite OS specific RSS (RSS2) link... (0 Replies)
Discussion started by: Neo
0 Replies

8. Solaris

Server Serial Number from Solaris

This may be an off the wall question but is there anyway in Solaris to snag the serial number of a Sun box? I'm not sure if you can do this but it would save me a long drive to the data center to get the serial number to renew support... (8 Replies)
Discussion started by: kingdbag
8 Replies

9. UNIX for Dummies Questions & Answers

Disable form feed on a serial printer connected to Sco OpenServer

I connected a serial printer to my scoOpenServer which works great. I was able to disable the banner in the interface of the printer. However i am unable to find the command in the interface to disable the formfeed . Below is a copy of the interface file. Please can anyone instruct me on how to... (0 Replies)
Discussion started by: scoman2
0 Replies

10. Linux

Linux serial port connectivity help needed

Hai I am newbie to linux and I like know how can we connect linux with unix dump terminal. another thing is that whether I can get graphics in serial port connection using hyperterminal from windows. rgds sunil (2 Replies)
Discussion started by: sun
2 Replies
Login or Register to Ask a Question