1 .\" Title: remote-device-add
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
5 .\" Manual: Re-Mote Testbed Framework
6 .\" Source: remote-mci 2.0.git
8 .TH "REMOTE\-DEVICE\-ADD" "7" "05/18/2008" "remote\-mci 2\.0\.git" "Re\-Mote Testbed Framework"
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 remote-device-add - script for adding motes to the Re-Mote device hierarchy
16 /lib/udev/remote\-device\-add PLATFORM MOTEMAC MOTEPATH PROGRAMMER CONTROLLER
19 This script is designed to be called via a UDEV rule\'s RUN key\. It sets up extra information for added motes and notifies the motehost about new events\. It assumes that when a device is added the associated TTY has already been created\.
25 The first argument is the name of the mote platform\.
30 The second argument is the mote MAC, part of which can often be with a well\-known vendor and product ID\.
35 The third is the desired device path, which should be a unique enough to fully describe the bus, where the mote is attached, but should be reproducable in such a way that the same device path should be used when reinserting the same mote into the same port\.
40 The path to the mote flash programmer\.
45 The path to the external script for controlling the mote\.
47 .SH "ENVIRONMENT VARIABLES"
51 This environment variable is set by UDEV\. Unless the value is "add" the script will exit\.
55 /dev/remote/MOTEMAC/path
57 The physical UDEV device path (or similar) for the mote device with the given MAC address\. This file is created by this script using the MOTEPATH command line argument\.
60 /dev/remote/MOTEMAC/platform
62 This file contains the name of the mote platform and is created by this script using the MOTEPLATFORM command line argument\.
65 /dev/remote/MOTEMAC/programmer
67 Symlink to the mote flash programmer as specified via the PROGRAMMER option\. The symlink is created by this script\.
70 /dev/remote/MOTEMAC/controller
72 Symlink to the mote controller as specified via the CONTROLLER option\. The symlink is created by this script\. This option is relevant only for motes which need external script for their control\.
75 /dev/remote/MOTEMAC/tty/control, /dev/remote/MOTEMAC/tty/data
77 Symlink to the data and control tty devices that can be used for reading console output and controlling the mote with the given MAC address\. This should be set up using a UDEV rule containing the SYMLINK key\. This script assumes that the tty symlink exists when it is called\. If this is not the case it will error out\.
80 As an example, the dig528\-2 and MicaZ UDEV rules use the following arguments:
85 /lib/udev/remote\-device\-add dig528\-2 0050C237%s{serial} %E{PHYSDEVPATH} /sbin/hc08sprg
86 /lib/udev/remote\-device\-add MicaZ 04036010%s{serial} %E{PHYSDEVPATH} /sbin/program\-mote\.sh /sbin/control\-mote\.sh
93 Copyright (c) 2007 Jonas Fonseca <fonseca@diku\.dk>
94 Copyright (c) 2008 Rostislav Spinar <rostislav\.spinar@cit\.ie>
97 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\.
100 \fBremote\-device\-remove(7)\fR, \fBremote\-device\-name(7)\fR