Sponsored Content
Full Discussion: Carrier Detection in FreeBSD
Operating Systems BSD Carrier Detection in FreeBSD Post 302821877 by rstor on Saturday 15th of June 2013 11:00:58 PM
Old 06-16-2013
My question was that according to my understanding of the documentation found here:

(27.4.6.1. Checking Out the FreeBSD System)
27.4. Dial-in Service

When FreeBSD sees no carrier, getty should not have completed its open on the communications port. According to the setup described in my opening post, getty was opening the communications port regardless of carrier when the system is brought up. However; once there is a carrier signal applied, then it behaves correctly to my understanding.

I have found out where my problem was. Here is what I did:

I took two DB9 Male-Female connectors and removed all pins except receive, transmit, and ground. I connected the two connectors to each end of my null modem cable. The end result is a null modem cable that will only use these three lines.

I installed FreeBSD on an actual machine with a serial port (instead of using FreeBSD on VM Virtual Box with a usb-serial dongle). I connected my modified null modem cable to the FreeBSD machine and the other end to a PC.

Executing ps -ax on the above FreeBSD machine resulted in the following:

Code:
749 ?? S 0:00.01 /usr/libexxec/getty std.300 ttyu0

This is the correct behaviour to my understanding.

Using the modified cable on the virtual FreeBSD machine connected to a PC and executing ps -ax resulted in the following:

Code:
683 u0 Ss+ 0:00.06 /usr/libexec/getty std.300 ttyu0

Conclusion:

On the virtual FreeBSD machine which had a usb serial dongle, getty opens the communication port on system startup which it should not do to my understanding. On a real system it performs as indicated in the documentation.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

no carrier

I'm getting a error le0: No Carrier - transceiver cable problem? Tried looking around to see what is the best way to fix this error. Can anyone help me I can't find anything. (2 Replies)
Discussion started by: merlin
2 Replies

2. UNIX for Dummies Questions & Answers

virus detection

IS there virus software for unix? I worked in a Solaris environment and dont remember having anything. I also ask because the current enviroment i am working on is Microsoft and they argue that they do not use unix because of virus detection. Any input would be greatly appreciated. (1 Reply)
Discussion started by: pbonilla
1 Replies

3. IP Networking

modem detection

How to get information that where is my modem configured in /dev. I have two modems configured in my device .. one is USB and other is PCI modem.. USB is detected as /dev/USB0. but how to see about PCI modem? (0 Replies)
Discussion started by: s123.radha
0 Replies

4. Programming

Application crashes in FreeBSD 7.1 while working ok in FreeBSD 6.3

Hello there, My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64. It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386). The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies

5. Shell Programming and Scripting

NAT detection

hellou, can anybody help me with nat detection in real time ? i prefer some detection script because i try some nat detection program's for example p0f or i'm using tcpdump, but i would get contain of specific packet. Some ideas? (1 Reply)
Discussion started by: TheTechnic
1 Replies

6. Programming

Parallel Processing Detection and Program Return Value Detection

Hey, for the purpose of a research project I need to know if a specific type of parallel processing is being utilized by any user-run programs. Is there a way to detect whether a program either returns a value to another program at the end of execution, or just utilizes any form of parallel... (4 Replies)
Discussion started by: azar.zorn
4 Replies

7. UNIX for Dummies Questions & Answers

Power Line Carrier (PLC)

hi, i am going to know if i can use n.s for power line simulating? Best Regards, (2 Replies)
Discussion started by: mohsenmahoor
2 Replies

8. Solaris

Carrier Detection in Solaris 8 for Dial in and Null Modem Connections

I am having troubles with carrier detection for dialing in via a modem or direct connection via a null modem connection under Solaris 8 (i.e. login session remains active after the modem disconnects). I tried two different dumb modems (which do not respond to AT commands) on the machine that I am... (6 Replies)
Discussion started by: rstor
6 Replies
UARK(4) 						   BSD Kernel Interfaces Manual 						   UARK(4)

NAME
uark -- Arkmicro Technologies ARK3116 based USB serial adapter SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device usb device ucom device uark Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): uark_load="YES" DESCRIPTION
The uark driver supports Arkmicro Technologies ARK3116 based serial adapters. HARDWARE
The uark driver supports the following adapters: o HL USB-RS232 o HugePine USB-UART o KQ-U8A Data Cable o Skymaster USB to RS232 SEE ALSO
tty(4), ucom(4), usb(4) HISTORY
The uark device driver first appeared in OpenBSD 4.0. The first FreeBSD release to include it was FreeBSD 7.0. AUTHORS
The uark driver was written by Jonathan Gray <jsg@openbsd.org>. CAVEATS
Setting hardware flow control is not currently supported. It is not yet known how to ask the hardware to send a break. Arkmicro Technologies do not reply to requests of documentation for their products. BSD
November 20, 2011 BSD
All times are GMT -4. The time now is 05:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy