Open chris-kuhr opened 5 years ago
Hi Chris, I think IEC61883_AM824_MBLA_96KHZ_2CH = 0x00A0040240000200 I don't think this matches your wireshark capture?
Ok, I found the problem. avdecccmdline analyzes the dbs value as channel count and seems to ignore the mbla channel count. I set a 2 as dbs value and now it is correct. I am not sure, but I don't think this is correct behavior. dbs only gives information about the structure of the mbla channel count. at least that is how I understand it. having two channel count fields does not make sense in another way...
1722-2016 has
5.4.3.4 DBS (data block size) field
The 1-octet DBS field has the same definition as IEC 61883-1, which is the size of data blocks in quadlets,
as follows:
0: 256 quadlets
1 to 255: 1 to 255 quadlets
For AVTP, the DBS field shall not be set to a value that would cause the AVTPDU length to exceed the
MTU of the network. All AVTPDUs of this format shall contain an integral number of data blocks as
defined in IEC 61883-1.
Yeah, so I think using the DBS field as channel count is indeed wrong. It is a value that is used to correctly receive AVTP packets, but it should be ignored in connection establishment process. Or am I wrong?
I interpret iec61883-1 Data Block Size to mean the count of the number of quadlets in a data block. And if a data block consists of data from a single sample period, then DBS will change with the number of channels in a packet. I don't know that you are wrong - the specs are not very clear....
@chris-kuhr - are you on the IEEE1772.1 reflector? I guess we could ask for clarification there.
Here is what XMOS do https://github.com/xcore/sc_avb/blob/master/module_avb_1722_1/src/avb_1722_1_aecp_controls.xc#L96
I think the channel count is actually in two places.
Ok. I will make a pr to avtp pipeline. fixing at least those problems.
Hi *,
I am on master branch commit b77cddc8127c9d609c1d5cc4bccc34290aabc917.
I have an Openavb talker configured for 96kHz with 2 channels. But avdecccmdline doesn't show the correct values, which prevents any connection.
It ought to be 96kHz and 2 channels.
Wireshark shows the correct values sent from the endpoint (FDF SFC: 0x4, Label Multi-Bit Linear Audio Count: 2):
Any advice?
Best, Ck