aboutsummaryrefslogtreecommitdiff
path: root/en/compatibility/cts/near-ultrasound.html
blob: 84048fb8fdc71e783837fa3c25ec99df74eda9e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<html devsite>
  <head>
    <title>Near Ultrasound tests</title>
    <meta name="project_path" value="/_project.yaml" />
    <meta name="book_path" value="/_book.yaml" />
  </head>
  <body>
  <!--
      Copyright 2017 The Android Open Source Project

      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
  -->



<p>This document contains steps for conducting near ultrasound (formerly known
as hifi ultrasound) microphone and speaker tests. See the <a
href="/devices/audio/index.html">Audio</a> section for general audio
implementation instuctions.</p>

<h2 id=ultrasound_microphone_tests>Near Ultrasound Microphone Tests</h2>

<p>Prerequisites: Prepare two devices, one as the test device, one as the reference
device. The reference can be Nexus 6, Nexus 5, or any device that is known to
be able to produce near ultrasound sound.</p>
<table>
 <tr>
    <td width="50%">Step 1: Open Near Ultrasound Microphone Tests on both devices</td>
    <td width="50%"></td>
 </tr>
 <tr>
    <td><img src="images/Near1.png" alt="Mic step 1, test device" width="300"
                                                                  id="mic_step1_test_device" /><br>Test device</td>
    <td><img src="images/Near2.png" alt="Mic step 1, reference device" width="300"
                                                                       id="mic_step1_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 2: After opening the test, press RECORD on the test device, then quickly
press PLAY on the reference device.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near3.png" alt="Mic step 2, test device" width="300"
                                                                  id="mic_step2_test_device" /><br>Test device</td>
    <td><img src="images/Near4.png" alt="Mic step 2, reference device" width="300"
                                                                       id="mic_step2_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 3: Wait for the test to finish. While waiting, the devices should look
like the following screenshots. Do nothing until you see the screens shown in
Step 4.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near5.png" alt="Mic step 3, test device" width="300"
                                                                  id="mic_step3_test_device" /><br>Test device</td>
    <td><img src="images/Near6.png" alt="Mic step 3, reference device" width="300"
                                                                       id="mic_step3_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 4a: On the test device, if text PASS is shown, report passed by pressing
the green button.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near7.png" alt="Mic step 4a, test device" width="300"
                                                                   id="mic_step4a_test_device" /><br>Test device</td>
    <td><img src="images/Near8.png" alt="Mic step 4a, reference device" width="300"
                                                                        id="mic_step4a_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 4b: On the test device, if text FAIL is shown, report failed by pressing
the red button.Afterward you can repeat from step 1 to repeat the test if desired.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near9.png" alt="Mic step 4b, test device" width="300"
                                                                   id="mic_step4b_test_device" /><br>Test device</td>
    <td><img src="images/Near10.png" alt="Mic step 4b, reference device" width="300"
                                                                         id="mic_step4b_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Extra step: This step is not required.You can plot the calculated
response using the PLOT button on the test device.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near11.png" alt="Mic extra step 1, test device" width="300"
        id="mic_extrastep1_test_device" /><img src="images/Near12.png" alt="Mic extra
        step 2, test device" width="300" id="mic_extrastep2_test_device" /><br>Test
        device</td>
    <td><br>Reference device N/A</td>
 </tr>
</table>


<h2 id=ultrasound_speaker_tests>Near Ultrasound Speaker Tests</h2>


<p>Step 0: Prepare two devices, one as the test device, one as the reference
device. The reference can be Nexus 6, Nexus 5, or any device that is known to
be able to record near ultrasound sound.</p>
<table>
 <tr>
    <td width="50%">Step 1: Open Near Ultrasound Speaker Tests on both devices</td>
    <td width="50%"></td>
 </tr>
 <tr>
    <td><img src="images/Near13.png" alt="Speaker step 1, test device" width="300"
                                                                       id="speaker_step1_test_device" /><br>Test device</td>
    <td><img src="images/Near14.png" alt="Speaker step 1, reference device" width="300"
                                                                            id="speaker_step1_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 2: After opening the test, press RECORD on the reference device, then
quickly press PLAY on the test device.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near15.png" alt="Speaker step 2, test device" width="300"
                                                                       id="speaker_step2_test_device" /><br>Test device</td>
    <td><img src="images/Near16.png" alt="Speaker step 2, reference device" width="300"
                                                                            id="speaker_step2_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 3: Wait for the test to finish. While waiting, the devices should look
like the following screenshots. Do nothing until you see the screens shown in
Step 4.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near17.png" alt="Speaker step 3, test device" width="300"
                                                                       id="speaker_step3_test_device" /><br>Test device</td>
    <td><img src="images/Near18.png" alt="Speaker step 3, reference device" width="300"
                                                                            id="speaker_step3_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 4: When you see the popup on the reference device, press OK on the test
device.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near19.png" alt="Speaker step 4, test device" width="300"
                                                                       id="speaker_step4_test_device" /><br>Test device</td>
    <td><img src="images/Near20.png" alt="Speaker step 4, reference device" width="300"
                                                                            id="speaker_step4_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 5a: On the reference device, if text PASS is shown, report passed by
pressing the green button on the test device.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near21.png" alt="Speaker step 5a, test device" width="300"
                                                                        id="speaker_step5a_test_device" /><br>Test device</td>
    <td><img src="images/Near22.png" alt="Speaker step 5a, reference device" width="300"
                                                                             id="speaker_step5a_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Step 5b: On the reference device, if text FAIL is shown, report failed by
pressing the red button on the test device.Afterward you can repeat from step 1 to repeat the test if desired.</td>
    <td></td>
 </tr>
 <tr>
    <td><img src="images/Near23.png" alt="Speaker step 5b, test device" width="300"
                                                                        id="speaker_step5b_test_device" /><br>Test device</td>
    <td><img src="images/Near24.png" alt="Speaker step 5b, reference device" width="300"
                                                                             id="speaker_step5b_ref_device" /><br>Reference device</td>
 </tr>
 <tr>
    <td>Extra step: This step is not required. You can plot the calculated response using the PLOT button on the reference
device. See the instructions on the Near Ultrasound Microphone Test.</td>
    <td></td>
 </tr>
</table>

  </body>
</html>