All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: paul@neyrinck.com
Cc: alsa-devel@alsa-project.org
Subject: Re: 003 Firewire Isoch Rate Matching
Date: Sat, 27 Mar 2021 17:40:24 +0900	[thread overview]
Message-ID: <20210327084024.GA16753@workstation> (raw)
In-Reply-To: <20210323031630.GA4901@workstation>

Hi,

On Tue, Mar 23, 2021 at 12:16:30PM +0900, Takashi Sakamoto wrote:
> I use DAP Technology FireSpy 810[5] for packet analyzing (fortunately I
> found it at bargain price in used market). The libhinoko[6] can make
> your Linux box as packet analyzer and might be useful. Enough later, I'll
> send you log of packet sequence for long duration (1 min or so) for 003
> console and rack.

Now they are available under below URLs:

 * http://sakamocchi.jp/media/digi003-console.zip
 * http://sakamocchi.jp/media/digi003-rack.zip
 * http://sakamocchi.jp/media/digi002-console.zip
 * http://sakamocchi.jp/media/digi002-rack.zip

The checksums by sha256sum are:
 * 9aa7298d71941c122228af8ff46f8bded8ac1d28759ff06bffc11f0ef1d4dcf8  002/digi002-console.zip
 * 0f0be9e514479652fbae3e5a52db23922e24b508737ee875e83f166b9b7503bc  002/digi002-rack.zip
 * 6a6ec0e90c5a4e76fd35d869f55f4a62571cff9d9f16d008145dc3dadb020f41  003/digi003-console.zip
 * 31a95be9a18efb18b1eb8d2b3277a46692a0fe65edb1a2711368e19af688b199  003/digi003-rack.zip

I use Windows 7 (64bit) for the logs. Below version of drivers are used:

 * 9.0.8 for rack models
 * 9.0.6 for console models

The target device is configured to use internal source for sampling
clock. The archive includes logs for each supported sampling rate.

In the logs, three entries consists of one isochronous cycle:
 * Cycle start packet
 * isochronous packet from driver to device
   * all of audio frames are zero
 * isochronous packet from device to driver
   * some of audio frames have value

For example:

```
121.155,CycleStart,0xFFC2,0xFFFF,0xFFFFF0000200,0,retry_1,,15,,0x3DAB6034,,,,100,,
2.614,Streaming,,,,,,,,616,,1,0,0,400,,0x02130070,0x90018BBA,...
13.611,Streaming,,,,,,,,464,,1,1,0,400,,0x0113004C,0x90010000,...
```

At 30 sec 6838 cycle 52 ticks (0x3DAB6034), the driver transfers
isochronous packet at channel 0 in 400 Mbps speed. CIP header is
0x02130070 0x90018BBA. The device transfers isochronous packet at
channel 1 in 400 Mbps speed. CIP header is 0x0113004C 0x90010000.

I use csv module in Python 3 runtime implementation to parse it.
https://docs.python.org/3/library/csv.html


Cheers

Takashi Sakamoto

      reply	other threads:[~2021-03-27  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210320081623.GA319337@workstation>
     [not found] ` <1C889443-2977-4ABA-ABA5-A45D1024A50D@neyrinck.com>
     [not found]   ` <20210321020454.GA330036@workstation>
     [not found]     ` <1616397057.672725255@apps.rackspace.com>
2021-03-23  3:16       ` 003 Firewire Isoch Rate Matching Takashi Sakamoto
2021-03-27  8:40         ` Takashi Sakamoto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210327084024.GA16753@workstation \
    --to=o-takashi@sakamocchi.jp \
    --cc=alsa-devel@alsa-project.org \
    --cc=paul@neyrinck.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.