Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Serial Port Configuration

Posted on 2006-07-09
5
671 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 62

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 88
Audit HISTFILE for all users on AIX 9 145
How to Change Interface on Cisco IOU 11 111
Where to get php 5.6 for AIX 7.1? 5 111
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.

861 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