HCSERIALD(8) BSD System Manager's Manual HCSERIALD(8)NAME
hcseriald -- supervise serial Bluetooth devices
SYNOPSIS
hcseriald [-dh] -f device -n node_name [-s speed]
DESCRIPTION
The hcseriald utility handles serial Bluetooth devices. It does one simple thing: it opens the specified serial device, sets the device
parameters, and pushes the H4 line discipline.
The options are as follows:
-d Do not disassociate from the controlling terminal, i.e., run in foreground.
-f device
Callout device name. Example: -f /dev/cuau0.
-h Display usage message and exit.
-n node_name
Set H4 Netgraph node name. Example: -n sio0.
-s speed
Set serial device speed to speed. Example: -s 115200.
FILES
/var/run/hcserial.*.pid Process ID of the currently running hcseriald daemon. Where * is an H4 Netgraph node name.
SEE ALSO ng_h4(4), ng_hci(4), tty(4), hccontrol(8)AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BSD June 14, 2002 BSD
Check Out this Related Man Page
NG_H4(4) BSD Kernel Interfaces Manual NG_H4(4)NAME
ng_h4 -- Netgraph node type that is also an H4 line discipline
SYNOPSIS
#include <sys/types.h>
#include <netgraph/bluetooth/include/ng_h4.h>
DESCRIPTION
The h4 node type is both a persistent Netgraph node type and a H4 line discipline. It implements a Bluetooth HCI UART transport layer as per
chapter H4 of the Bluetooth Specification Book v1.1. A new node is created when the corresponding line discipline, H4DISC, is registered on
a tty device (see tty(4)).
The node has a single hook called hook. Incoming bytes received on the tty device are re-assembled into HCI frames (according to the
length). Full HCI frames are sent out on the hook. HCI frames received on hook are transmitted out on the tty device. No modification to
the data is performed in either direction. While the line discipline is installed on a tty, the normal read and write operations are
unavailable, returning EIO.
Information about the node is available via the netgraph ioctl(2) command NGIOCGINFO. This command returns a struct nodeinfo similar to the
NGM_NODEINFO netgraph(4) control message.
HOOKS
This node type supports the following hooks:
hook single HCI frame contained in single mbuf structure.
CONTROL MESSAGES
This node type supports the generic control messages, plus the following:
NGM_H4_NODE_RESET
Reset the node.
NGM_H4_NODE_GET_STATE
Returns current receiving state for the node.
NGM_H4_NODE_GET_DEBUG
Returns an integer containing the current debug level for the node.
NGM_H4_NODE_SET_DEBUG
This command takes an integer argument and sets current debug level for the node.
NGM_H4_NODE_GET_QLEN
Returns current length of outgoing queue for the node.
NGM_H4_NODE_SET_QLEN
This command takes an integer argument and sets maximum length of outgoing queue for the node.
NGM_H4_NODE_GET_STAT
Returns various statistic information for the node, such as: number of bytes (frames) sent, number of bytes (frames) received and
number of input (output) errors.
NGM_H4_NODE_RESET_STAT
Reset all statistic counters to zero.
SHUTDOWN
This node shuts down when the corresponding device is closed (or the line discipline is uninstalled on the device).
SEE ALSO ioctl(2), netgraph(4), tty(4), ngctl(8)HISTORY
The h4 node type was implemented in FreeBSD 5.0.
AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BUGS
This node still uses spltty(9) to lock tty layer. This is wrong.
BSD June 14, 2002 BSD
I am having trouble with a device connected through a serial port on my sun workstation ( I am running solaris 7).
The seriel device works on an identical workstation running the same o/s version but when I move it to the initial workstation it doesn't work. I am using an rs232 serial cable and... (1 Reply)
just wanted to know the serial number of my machine E3500 with Solaris 8 installed.Does any one who what's the command that i can use when the OS is running?( not with the Banner Command!) (3 Replies)
Hello guyz..
just want to know whether my doubt can be solve or not..maybe it
my company using yyyymmddxx for serial no format..and it cause problems..
first, my adjustments for moving n deleting domain name exceeded xxx per day, and it will cause and effect the yyyymmdd digits.
can... (6 Replies)
hey gents,
I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the enumeration and sed to clean up the results for use by snmpwalk. Once i get all the data organized I'm... (8 Replies)
Hello!
I am working on an application which reads environmental instruments which have serial ports. The application requires a serial port to be present to talk to the device (i.e. /dev/ttyS0 ). In some instances the environmental devices will be 100's of yards away from the computer, so a... (5 Replies)
I have problem with C programming. I want to send & receive data through serial communication. I send data(command) to device to get data from device but when receive data, it can't get altogether of data.
It get only some data. What should I do to get altogether of data?
If all of... (7 Replies)
I am working on a file, I need add a column with serial # in a file, the column will be the first column. and the serial # will be decide by each raw, say if I have 6 raws, I need serial # from 1 to 6 in the first column. Anyone know how to add that. I really appreciate. Thanks (2 Replies)
Hi,
I'm using CentOS 5.5. I connected serial terminal using "cu". The command I had given was "cu -l /dev/ttyUSB0 -s 115200". It connects I'm seeing the target boards boot-up messages and log in screen. But I couldn't type anything on "cu" terminal window.
Any help is highly appreciated.
... (1 Reply)
I am trying to change one of my serial printers from /dev/ttyr002 to /dev/ttyr014:
lpstat -s
device for check3: /dev/ttyr002
device for check4: /dev/ttyr002
I changed the tty setting for check3 in:
/etc/printcap
/var/spool/lp/admins/lp/printers/check3
to /dev/ttyr014
Then I get:... (4 Replies)
Hello,
I am using the termios library to write data that I get from a Bluetooth device to a modem via serial.
The data arrive from the Bluetooth device correctly every 50ms and I have to bypass them on the serial ttyUSB3 where it is connected to a modem connected to a socket with static IP.
The... (10 Replies)