From owner-freebsd-firewire@FreeBSD.ORG Wed Jun 30 13:49:07 2004 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F24FB16A4CE for ; Wed, 30 Jun 2004 13:49:07 +0000 (GMT) Received: from tora.nunu.org (YahooBB219003182029.bbtec.net [219.3.182.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9769543D1F for ; Wed, 30 Jun 2004 13:49:06 +0000 (GMT) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from tora.nunu.org (unknown [192.168.1.2]) by tora.nunu.org (Postfix) with ESMTP id 6A5EF4E219; Wed, 30 Jun 2004 22:48:46 +0900 (JST) Date: Wed, 30 Jun 2004 22:48:46 +0900 Message-ID: <87wu1p17i9.wl@tora.nunu.org> From: Hidetoshi Shimokawa To: Buzz Slye In-Reply-To: References: User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 14) (Reasonable Discussion) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII cc: freebsd-firewire@freebsd.org Subject: Re: userland fix X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 13:49:08 -0000 Sorry for my late response. At Thu, 24 Jun 2004 10:09:09 -0700 (PDT), Buzz Slye wrote: > > The following code may be substituted for the broken code in fwdev.c, line 325 > (in the routine fw_read) to allow downloading of digital camera images. Do you mean not Digital Video but Digital Camera protocol? > #if 1 /* XXX fixed ? */ > /* per packet mode or FWACT_CH bind?*/ > s = splfw(); > ir->queued --; > STAILQ_REMOVE_HEAD(&ir->q, link); > splx(s); > fp = &xfer->recv.hdr; > if (sc->fc->irx_post != NULL) > sc->fc->irx_post(sc->fc, fp->mode.ld); > err = uiomove((caddr_t)fp, sizeof(struct fw_isohdr), uio); > err = uiomove((caddr_t)xfer->recv.payload, xfer->recv.pay_len, uio); > #endif I cannot remember in which case these code are executed. What kind of userland program do you use? I think that bulkxfer is used for DV receive. Are you going to implement Digital Camera specification? > Changing the receive channel, however, results in the message: > > fwohci0: IR DMA no free chunk This indicates that there is no receive buffer available. > Is changing channels not supported? After the above message, the code > returns 0. So maybe this message is not really an error. I think it's not supported and you may need to close/reopen the device. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html From owner-freebsd-firewire@FreeBSD.ORG Thu Jul 1 18:28:24 2004 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65EFC16A4CE for ; Thu, 1 Jul 2004 18:28:24 +0000 (GMT) Received: from gaia.arc.nasa.gov (gaia.arc.nasa.gov [143.232.155.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56BE243D2F for ; Thu, 1 Jul 2004 18:28:24 +0000 (GMT) (envelope-from buzz@gaia.arc.nasa.gov) Received: from tioga.arc.nasa.gov (tioga.arc.nasa.gov [143.232.155.66]) by gaia.arc.nasa.gov (8.11.7/8.11.6) with ESMTP id i61IRZZ14296; Thu, 1 Jul 2004 11:27:35 -0700 (PDT) Date: Thu, 1 Jul 2004 11:26:41 -0700 (PDT) From: Buzz Slye X-X-Sender: buzz@tioga.arc.nasa.gov To: simokawa@sat.t.u-tokyo.ac.jp Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-firewire@freebsd.org Subject: Digital Cameras X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2004 18:28:24 -0000 We've been using firewire digital cameras for some time now for remote sensing and flying them on UAV's (with a pc104 data system). We are using a Basler color camera (model A101fc), a Basler single band camera for hyperspectral imaging, and also an Omega thermal camera. These cameras conform to spec 1.20 (spec id 0xa02d). Check www.uav-applications.org (Aircraft and Payload) for some background info. The digital camera library and the 1394 raw library were converted from the available Linux libraries to FreeBSD. We are still using the firewire version of last April/May (2003). When the July version came along, it didn't work any more, so we've been stuck with the old ver- sion. I have been trying to upgrade to the latest version (March 28). Async read and write commands are used to read and set the camera registers for exposure, gain, shutter, and frame size etc. Camera images are downloaded with iso stream transfer. I don't need to support iso xmit, but only to iso receive from the camera. Normal operation is to acquire single frames every few seconds for over- lapping images of the ground. The latest current of fwdev.c (2004/05/23) works for me now for async read and write. Also, my fix with uiomove for fw_read, per my mail of 6/24 appears to work OK. A remaining problem is because I only acquire single frames, but not continuously, I would like a way to stop listening (or divert the output) while I go back to the camera to tell it to stop xmitting. Buzz Slye NASA / Ames From owner-freebsd-firewire@FreeBSD.ORG Fri Jul 2 02:24:01 2004 Return-Path: Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (unknown [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4308416A4CE for ; Fri, 2 Jul 2004 02:24:01 +0000 (GMT) Received: from smtp3.jp.viruscheck.net (smtp3.jp.viruscheck.net [154.33.69.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CF0643D1F for ; Fri, 2 Jul 2004 02:24:00 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from scan3.jp.viruscheck.net ([154.33.69.38] helo=mail1.jp.viruscheck.net) by smtp3.jp.viruscheck.net with esmtp (Exim 3.36 #1) id 1BgDhp-0004nh-00 for freebsd-firewire@freebsd.org; Fri, 02 Jul 2004 11:23:13 +0900 Received: from [220.221.3.201] (helo=noc.orchid) by mail1.jp.viruscheck.net with esmtp (Exim 3.36 #3) id 1BgDhp-0001Q2-00 for freebsd-firewire@FreeBSD.org; Fri, 02 Jul 2004 11:23:13 +0900 Received: from [89.60.10.11] (horse.orchid [89.60.10.11]) by noc.orchid (8.12.11/8.12.11) with ESMTP id i622NCSf076668 for ; Fri, 2 Jul 2004 11:23:12 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <40E4C710.1040702@FreeBSD.org> Date: Fri, 02 Jul 2004 11:23:12 +0900 From: Alexander Nedotsukov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-firewire@FreeBSD.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Block noise? when trying to send dv stream to video camera X-BeenThere: freebsd-firewire@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Firewire support in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 02:24:01 -0000 Hi, I have Sony DCR-HC40 video camera and trying to use firewire link to download->edit->upload movie form it. I used fwcontrol -R test.dv command to download data. Whole process went just fine. I can play raw dv data and content looks correct. But if I try to send dv video (either unmodified) back to the camera with fwcontrol -S test.dv command picture get corrupted quickly. Corruption looks like whole image splitted into square blocks and some parts of those blocks stay gray while another contains correct image. Blocks are moving. The size of blocks may vary. Time before video get corrupted as well from 0 to 50 sec. Do you have any idea what it can be and what is much better how to fix the situation? I running one week old -CURRENT world+kernel. Thanks, Alexander.