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]