Solved

Serial Port Configuration

Posted on 2006-07-09
5
676 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
[X]
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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 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