Re: [linux-minidisc] netmd command to retrieve the date and time of a recording
- From: "Jan Olav Stangeland" <minidisc@ramson.org>
- To: linux-minidisc@lists.fu-berlin.de
- Date: Wed, 28 Apr 2010 17:50:20 +0200 (CEST)
- Domainkey-signature: a=rsa-sha1; s=dkproduction; d=ramson.org; c=simple; q=dns; b=WsKAJlbmypEb/LDxPdXpnEfmlJPWx5UhZ6qU/cWqfekpfsjUqjfxEyk3SKiORHKLJ nZRd5BRoKBvwr/oZLFm1q6SzIQhyLgB/bBB84fyE9qW79p2RLTq5JTA+wS5eZg9zpPf WEVwcWdZvi2CHt+Se8JStRr3LgsKKOmG9NvO9yY=
- Reply-to: minidisc@ramson.org
- Subject: Re: [linux-minidisc] netmd command to retrieve the date and time of a recording
On Wed, April 28, 2010 16:58, Michael Karcher wrote:
> Am Mittwoch, den 28.04.2010, 16:44 +0200 schrieb Jan Olav Stangeland:
>
>> Hello,
>>
>>
>> is the netmd command to retrieve the date and time of a recording
>> (track)
>> known? If so, what is the command? Is date and time of a recording
>> supported by all devices?
> NetMD stuff is quite well documented in the 1934 AVC documentation. The
> USB devices use AVC over USB instead of AVC over FireWire. Alas, that
> documentation is non-free. The copy of the MD Audio document I happen to
> have specifies the recording time as an optional info block. The info
> block ID and stuff like that are in the general AVC Disc document and the
> way of querying info block items in the AVC Descriptor model document. I
> can look up the specific command tonight when I have some time for it.
>
> We don't know about device support, though. Neither for implementation
> of the specific AVC info block field in the NetMD interfaces, nor about
> which MD records write a timestamp to disc.
>
> Regards,
> Michael Karcher
>
>
>
Thank you,
as reference I was speculating that perhaps proper values for p1, p2 would
do the trick:
def _getTrackInfo(self, track, p1, p2):
query = self.formatQuery('1806 02201001 %w %w %w ff00 00000000', track,
p1, p2)
reply = self.send_query(query)
return self.scanQuery(reply, '1806 02201001 %?%? %?%? %?%? 1000 ' \
'00%?0000 %x')[0]