1 .\" Copyright (c) 2002 Hidetoshi Shimokawa
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 .\" POSSIBILITY OF SUCH DAMAGE.
25 .\" $FreeBSD: src/usr.sbin/fwcontrol/fwcontrol.8,v 1.1.2.6 2003/05/01 06:35:00 simokawa Exp $
32 .Nd FireWire control utility
48 utility is designed to provide a way for users to access and control the
52 will output a list of devices those are/were connected to the bus.
53 .Bl -tag -width indent
57 Show the topology map.
59 Show the configuration ROM on the node.
61 Hex dump of the configuration ROM.
63 Send a link-on phy packet to the node.
65 Write to RESET_START register on the node.
67 Load hex dump file of the configuration ROM and parse it.
69 Broadcast gap_count by phy_config packet.
71 Set PRIORITY_BUDGET register on all supported nodes.
73 Receive DV stream and dump it to a file. Use Ctl-C to stop the receiving.
74 Some DV cameras seem not to send the stream if a bus manager exits.
75 If you cannot get the stream, try the following commands.
76 .Bd -literal -offset indent
77 sysctl hw.firewire.try_bmr=0; fwcontrol -r
80 The resulting file contains raw DV data excluding isochronous header
81 and CIP header. It can be handled by
87 Send a DV file as isochronous stream.
90 .Bl -tag -width indent
94 Each DV frame has fixed size and it is easy to edit those frame order.
95 .Bd -literal -offset indent
96 fwcontrol -R original.dv
100 .Bd -literal -offset indent
101 dd if=original.dv of=first.dv bs=120000 count=30
104 Get first 30 frames(NTSC).
105 .Bd -literal -offset indent
106 dd if=original.dv of=second.dv bs=120000 skip=30 count=30
109 Get second 30 frames(NTSC).
110 .Bd -literal -offset indent
111 cat second.dv first.dv | fwcontrol -S /dev/stdin
114 Swap first and second 30 frames and send them to DV recorder.
116 For PAL, replace 'bs=120000' with 'bs=144000'.
125 utility first appeared in
128 .An Hidetoshi Shimokawa Aq Mt simokawa@FreeBSD.org
130 This utility is still under development and provided for debug purpose.