Close client sockets in case of exceptions
[remote/remote-mci.git] / doc / remote-device-name.7
blob24cd6106cb4c344e6a8d784fcf41c91a885da373
1 .\"     Title: remote-device-name
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 05/18/2008
5 .\"    Manual: Re-Mote Testbed Framework
6 .\"    Source: remote-mci 2.0.git
7 .\"
8 .TH "REMOTE\-DEVICE\-NAME" "7" "05/18/2008" "remote\-mci 2\.0\.git" "Re\-Mote Testbed Framework"
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 remote-device-name - script for naming TTY device files
15 .SH "SYNOPSIS"
16 /lib/udev/remote\-device\-name MOTEMAC
17 .sp
18 .SH "DESCRIPTION"
19 This script is designed to be called via a UDEV rule\'s PROGRAM key\. The output from the script is used by SYMLINK rule to create both control and data links to tty devices\.
20 .sp
21 The first tty device on the MIB520 programming board is always for programming and controlling of MicaZ and second one is for retrieving data from MicaZ\.
22 .sp
23 When called the script expects one command line arguments described below\.
24 .sp
25 .SH "OPTIONS"
26 .PP
27 MOTEMAC
28 .RS 4
29 The first argument is the mote MAC, part of which can often be with a well\-known vendor and product ID\.
30 .RE
31 .SH "FILES"
32 .PP
33 /dev/remote/MOTEMAC/tty/control, /dev/remote/MOTEMAC/tty/data
34 .RS 4
35 Symlinks to the tty device that can be used for controlling the mote with the given MAC address\. This should be set up using a UDEV rule containing the SYMLINK key\.
36 .RE
37 .SH "EXAMPLE"
38 As an example here is the arguments given from the MicaZ UDEV rule:
39 .sp
40 .sp
41 .RS 4
42 .nf
43 /lib/udev/remote\-device\-name 04036010%s{serial}
44 .fi
45 .RE
46 .SH "COPYRIGHT"
47 .sp
48 .RS 4
49 .nf
50 Copyright (c) 2007 Jonas Fonseca <fonseca@diku\.dk>
51 Copyright (c) 2008 Rosta Spinar <rostislav\.spinar@cit\.ie>
52 .fi
53 .RE
54 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version\.
55 .sp
56 .SH "SEE ALSO"
57 \fBremote\-device\-add(7)\fR
58 .sp