Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

twinstar(8) [debian man page]

TWINSTAR(8)						User Contributed Perl Documentation					       TWINSTAR(8)

NAME
twinstar - Control the Twinstar feature of a Xorcom Astribank SYNOPSIS
twinstar {status|jump|enable-wd|disable-wd|ports} DESCRIPTION
twinstar is a tool to control the Twinstar (dual USB port) of a Xorcom Astribank. There is a single and mandatory argument which is the command to run. That command operates on all the Astribanks connected to the system. Technically all the commands are implemented using Dahdi::Xpp::Mpp which in turn uses astribank_tool. Thus using thus tool will require root permissions or otherwise read/write permissions to the USB device. The twinstar may be in watchdog mode, which means that it will jump to the remote host if it loses contact with the local host. This can happen if the machine is powered down or hangs or even if the xpp drivers are unloaded. Which is why the standard twinstar scripts put the Astribanks in twinstar mode on startup and remove it on normal shutdown. An Astribank will only jump to the other host (either if asked explicitly or by the watchdog) only if there is a different Astribank connected to the other port and running. Which is why all of this has no effect on systems that don't need this functionality. The command are: status Shows the current status of all Astribanks. Note that it only shows Astribanks whose current active USB port is the one connected to this computer. Example output: DEVICE PORT WATCHDOG POWER0 POWER1 usb:001/010 0 on yes yes usb:001/011 0 on yes yes For each Astribank on the system that has Twinstar support we get: Device The address of the device. This is the bus address, e.g. the address you see in lsusb / dahdi_hardware. Port The active USB port on the Astribank. This should be always '0' on the master and always 1 on the slave. Watchdog on if the watchdog is triggered in the Atribank or off otherwise. Power0, Power1 Shows which ports of this Astribank are connected to a USB port of a running computer. This only shows whether or not the USB host provides power. ports Shows the same 'Port' column of the status command. jump Command all the Astribanks to jump to the other port. This works regardless the watchdog mode is enabled or not. But requires that there is power on the other port. enable-wd Enables watchdog mode. disable-wd Disables watchdog mode. FILES
twinstar mostly uses astribank_tool which in turn mostly uses USB files under /dev/bus/usb . perl v5.14.2 2010-07-28 TWINSTAR(8)

Check Out this Related Man Page

ASTRIBANK_TOOL(8)														 ASTRIBANK_TOOL(8)

NAME
astribank_tool - Xorcom Astribank (xpp) control tool SYNOPSIS
astribank_tool [ options ] [ operation... ] -D device-path astribank_tool [-h] DESCRIPTION
astribank_tool is a tool to control the USB-level functionality of an Astribank. The tool operates on a single Astribank at a time (given as parameter to the -D command line option). OPTIONS
-D device-path Required. The device to read from/write to. This is bus_num/device_num, where bus_num and device_num are the first two numbers in the output of lsusb(8) or dahdi_hardware(8). On older versions of this toolyou needed a complete path to the device, which would be /dev/bus/usb/bus_num/device_num, or /proc/bus/usb/bus_num/device_num. -p num Set the TwinStar port number. Either 0 or 1. (TODO: explain). -r type Reset the Astribank and renumerate its USB connection to power on product ID. Tyep can be: half or full. (TODO: explain those). -w 0|1 Enable (1) or disable (0) the TwinStar watchdog. When enabled, the Astribank will jump to the second port if this system is "not working" and the system on the second port is available. -Q Query astribank properties via MPP protocol. -n Renumerate the Astribank product number (e.g: from 1161 to 1162). -v Increase verbosity. May be used multiple times. -d mask Set debug mask to mask. Default is 0, 0xFF is "everything". -h Displays usage message. SEE ALSO
fxload(8), lsusb(8), astribank_hexload(8) AUTHOR
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> . Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. 29 March 2009 ASTRIBANK_TOOL(8)
Man Page