华为UAC麦克风的工作过程数据分析

欢迎加入字节流官方QQ群:952873936或联系站长进行技术交流。

看完了耳机的数据分析,再来分析麦克风,就相对来说很简单了,这是因为:

  • 第一:麦克风没有音频控制特效单元描述符,所以少了很多特定类请求。
  • 第二:麦克风只有一个音频流转换接口,且只支持采样率为48000HZ 16位。

具体的过程见下:

Length    Phase  Data
--------  -----  ------------------------------  ------------------
          CTL    01 0b 01 00  01 00 00 00        SET INTERFACE
          CTL    22 01 00 01  83 00 03 00        SET CUR
       3  OUT    80 bb 00

可以看到,先选择接口1,然后设置采样率48000,这样固件就开始上报数据。

而对于关闭和耳机一样, 只需要选择该接口对应的转换接口为0的接接口即可。

 CTL    01 0b 00 00  01 00 00 00                SET INTERFACE

附等时传输每1ms192字节打包为10ms的URB数据包:

1920  ISOC   
a8 00 a8 00  83 00 83 00  5a 00 5a 00  67 00 67 00  8a 00 8a 00  85 00 85 00  90 00 90 00  8f 00 8f 00
47 00 47 00  52 00 52 00  9d 00 9d 00  b6 00 b6 00  7b 00 7b 00  6e 00 6e 00  71 00 71 00  87 00 87 00
92 00 92 00  a5 00 a5 00  98 00 98 00  57 00 57 00  76 00 76 00  89 00 89 00  9d 00 9d 00  71 00 71 00
7d 00 7d 00  8a 00 8a 00  7f 00 7f 00  8c 00 8c 00  8c 00 8c 00  93 00 93 00  79 00 79 00  92 00 92 00
8a 00 8a 00  89 00 89 00  84 00 84 00  82 00 82 00  9d 00 9d 00  8f 00 8f 00  a0 00 a0 00  86 00 86 00
7b 00 7b 00  82 00 82 00  84 00 84 00  8d 00 8d 00  76 00 76 00  99 00 99 00  6b 00 6b 00  84 00 84 00
77 00 77 00  8d 00 8d 00  74 00 74 00  89 00 89 00  80 00 80 00  83 00 83 00  94 00 94 00  91 00 91 00
99 00 99 00  71 00 71 00  8c 00 8c 00  95 00 95 00  8c 00 8c 00  79 00 79 00  71 00 71 00  8a 00 8a 00
8f 00 8f 00  9a 00 9a 00  9f 00 9f 00  83 00 83 00  86 00 86 00  81 00 81 00  96 00 96 00  8a 00 8a 00
7b 00 7b 00  8f 00 8f 00  96 00 96 00  8c 00 8c 00  91 00 91 00  91 00 91 00  86 00 86 00  75 00 75 00
96 00 96 00  a0 00 a0 00  93 00 93 00  86 00 86 00  86 00 86 00  83 00 83 00  8a 00 8a 00  8d 00 8d 00
a3 00 a3 00  7c 00 7c 00  80 00 80 00  81 00 81 00  83 00 83 00  8c 00 8c 00  83 00 83 00  91 00 91 00
6e 00 6e 00  73 00 73 00  85 00 85 00  89 00 89 00  81 00 81 00  74 00 74 00  73 00 73 00  7e 00 7e 00
6a 00 6a 00  8a 00 8a 00  6c 00 6c 00  76 00 76 00  78 00 78 00  7f 00 7f 00  8a 00 8a 00  7a 00 7a 00
85 00 85 00  73 00 73 00  7a 00 7a 00  80 00 80 00  83 00 83 00  80 00 80 00  6e 00 6e 00  82 00 82 00
7a 00 7a 00  89 00 89 00  89 00 89 00  83 00 83 00  76 00 76 00  6d 00 6d 00  7a 00 7a 00  7a 00 7a 00
82 00 82 00  7d 00 7d 00  7d 00 7d 00  73 00 73 00  79 00 79 00  7d 00 7d 00  86 00 86 00  7a 00 7a 00
86 00 86 00  87 00 87 00  8a 00 8a 00  87 00 87 00  84 00 84 00  89 00 89 00  7d 00 7d 00  90 00 90 00
85 00 85 00  89 00 89 00  7b 00 7b 00  7f 00 7f 00  81 00 81 00  7c 00 7c 00  84 00 84 00  74 00 74 00
71 00 71 00  64 00 64 00  7d 00 7d 00  73 00 73 00  80 00 80 00  71 00 71 00  71 00 71 00  73 00 73 00
74 00 74 00  8a 00 8a 00  70 00 70 00  82 00 82 00  6e 00 6e 00  7a 00 7a 00  79 00 79 00  73 00 73 00
7c 00 7c 00  67 00 67 00  76 00 76 00  73 00 73 00  74 00 74 00  70 00 70 00  67 00 67 00  75 00 75 00
6e 00 6e 00  77 00 77 00  79 00 79 00  7d 00 7d 00  71 00 71 00  76 00 76 00  79 00 79 00  84 00 84 00
7e 00 7e 00  8f 00 8f 00  80 00 80 00  83 00 83 00  84 00 84 00  7e 00 7e 00  82 00 82 00  7d 00 7d 00
82 00 82 00  87 00 87 00  82 00 82 00  80 00 80 00  79 00 79 00  7a 00 7a 00  7d 00 7d 00  80 00 80 00
87 00 87 00  7b 00 7b 00  7c 00 7c 00  76 00 76 00  77 00 77 00  7d 00 7d 00  84 00 84 00  7a 00 7a 00
84 00 84 00  78 00 78 00  83 00 83 00  7d 00 7d 00  84 00 84 00  7c 00 7c 00  80 00 80 00  81 00 81 00
7e 00 7e 00  7d 00 7d 00  7d 00 7d 00  80 00 80 00  83 00 83 00  7d 00 7d 00  87 00 87 00  7f 00 7f 00
87 00 87 00  84 00 84 00  89 00 89 00  8a 00 8a 00  86 00 86 00  86 00 86 00  86 00 86 00  85 00 85 00
8a 00 8a 00  8a 00 8a 00  87 00 87 00  8a 00 8a 00  87 00 87 00  8c 00 8c 00  82 00 82 00  84 00 84 00
83 00 83 00  84 00 84 00  8f 00 8f 00  81 00 81 00  7e 00 7e 00  79 00 79 00  7b 00 7b 00  7e 00 7e 00
80 00 80 00  81 00 81 00  7e 00 7e 00  81 00 81 00  7a 00 7a 00  81 00 81 00  83 00 83 00  83 00 83 00
微信公众号
字节流公众号  字节流QQ群:952873936
取消
感谢您的支持,我会继续努力的!
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

Powered by bytekits.com,汇天下文字,成非凡梦想!!!