Solved

Serial Port Configuration

Posted on 2006-07-09
5
666 Views
Last Modified: 2013-11-22
Hello all,

I've been working with FreeBSD for a while and I cannot get past a serial port problem.

This is FreeBSD 6.0 Release 2.  I have two serial ports on a Dell PowerEdge 6300. They appear to detected correctly.

I have:

/dev/cuad0
/dev/cuad1
/dev/ttyd0
/dev/ttyd1

and their associated lock and init files.

I wish to communicate with a device with the settings 9600,8N1.  I thought I had read where this is the default settings for FreeBSD ports.  I currently have a null modem cable between 0 and 1.  The first step would be sending data out port 0.  I have tried both ttyd0 and cuad0 and have had mixed results.

If I issue "more /dev/ttyd0" (or cuad0) and send data via an echo command, the data is received and everything is fine.  If I reverse the order, the echo command freezes and nothing happens.  If I connect the device that I wish to communicate with, it exhibits the same problem.

I figure my configuration needs to be changed but I'm not sure what to change.

Thanks in advance!

0
Comment
Question by:brianw13a
  • 2
  • 2
5 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 17151970
Is other end FreeBSD???
What happens if you reverse serial cable???
0
 
LVL 1

Expert Comment

by:vbotka
ID: 17399968
Configure your ports in /etc/remote. For testing you can use predefined records.
sio0|com1:dv=/dev/cuad0:br#9600:pa=none:
sio1|com2:dv=/dev/cuad1:br#9600:pa=none:

Then try to connect using /usr/bin/tip .
in 1st window# tip com1
in 2nd window# tip com2

Please note that the "tip" will quit on ~. sequence.
0
 

Author Comment

by:brianw13a
ID: 17403519
Actually I forgot this was still hanging out there.  I did manage to solve the problem some time ago but have forgotten what I did (and didn't fully understand it in the first place).

There is a command that lists the port settings and allows them to be modified.  Does anyone remember any commands that resemble this?
0
 
LVL 1

Accepted Solution

by:
vbotka earned 125 total points
ID: 17417508
Just the stty on FreeBSD. No GUI.
0
 

Author Comment

by:brianw13a
ID: 17420015
Yeah that was it.  If forget the actual changes but this is the utility I used
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
removing nim resources 5 48
SSH commands for Nas4free 21 377
Compare if date string is within text file 3 60
How to find files recursively in ftp server quickly? 7 99
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now