Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Colokan headset 3,5 mm: Spesifikasi perangkat
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Untuk mencapai kompatibilitas dengan spesifikasi headset
steker 3,5 mm, perangkat yang menyertakan jack audio 3,5 mm 4 konduktor
harus memenuhi spesifikasi berikut. Untuk persyaratan kompatibilitas Android,
lihat bagian Port audio analog di Android CDD.
Fungsi
Fungsi |
Dukungan Perangkat |
Output Audio Stereo |
Wajib |
Input audio (Mikrofon) |
Wajib |
Darat |
Wajib |
Pemetaan software
Fungsi |
Dukungan Perangkat |
Deskripsi |
Peristiwa kontrol Fungsi A |
Wajib |
Peristiwa input: KEY_MEDIA
Kunci Android: KEYCODE_MEDIA_PLAY_PAUSE
|
Peristiwa kontrol Fungsi D |
Wajib |
Peristiwa input: KEY_VOICECOMMAND
Kunci Android: KEYCODE_VOICE_ASSIST |
Peristiwa kontrol Fungsi B |
Wajib |
Peristiwa input: KEY_VOLUMEUP
Kunci Android: VOLUME_UP |
Peristiwa kontrol Fungsi C |
Wajib |
Peristiwa input: KEY_VOLUMEDOWN
Kunci Android: VOLUME_DOWN |
Deteksi penyisipan headset |
Wajib |
Peristiwa input: SW_JACK_PHYSICAL_INSERT 7 |
Deteksi jenis headset |
Mikrofon |
Peristiwa input: SW_MICROPHONE_INSERT 4 |
Tidak ada Mikrofon |
Peristiwa input: SW_HEADPHONE_INSERT 2 |
Impedansi speaker headset |
Headphone Wajib (rendah) |
Mode kegagalan adalah untuk menunjukkan headphone sehingga pembatasan akan aktif |
Line In Wajib (tinggi) |
Peristiwa input: SW_LINEOUT_INSERT 6 |
Mekanis
Fungsi |
Dukungan Perangkat |
Deskripsi |
Jack 3,5 mm 4 konduktor |
Wajib |
|
Urutan pinout CTIA (LRGM) |
Wajib |
Kompatibel dengan Steker 3 Pin & Mono |
Urutan pinout OMTP (LRMG) |
Opsional, tetapi sangat direkomendasikan |
|
Urutan deteksi headset |
Wajib |
Notifikasi masukkan steker hanya boleh dipicu setelah semua kontak di
steker menyentuh segmen yang relevan (hal ini mencegah deteksi headset
yang tidak dapat diandalkan karena penyisipan yang lambat. |
Elektrik
Umum
Fungsi |
Dukungan Perangkat |
Catatan |
Penggerak tegangan output maksimum |
150mV |
>= 150 mV pada 32 ohm
Kondisi pengujian: EN50332-2 |
Resistansi bias mikrofon |
Wajib |
Fleksibel pada metode deteksi yang digunakan dan pemilihan
resistor bias mikrofon. Mewajibkan semua rentang nilai resistansi tombol yang ditentukan di bawah
terdeteksi dan terkait dengan fungsi masing-masing |
Tegangan bias mikrofon |
1,8 V - 2,9 V |
Untuk menjamin kompatibilitas dengan kapsul mikrofon umum. |
Deteksi impedansi dan nilai minimum fungsi
Perangkat harus mendeteksi tangga resistor berikut pada aksesori. Aksesori
akan diuji dengan diagram sirkuit standar dalam diagram
yang diilustrasikan sebelumnya (Referensi Sirkuit Pengujian Headset) dengan impedansi total
diukur dari terminal MIC ke GND saat tombol ditekan dengan bias mic
2,2 V yang diterapkan melalui resistor 2,2 kOhm. Ini adalah resistansi efektif yang sama
seperti sirkuit deteksi tombol dengan mikrofon yang sejajar dengan resistor
tombol.
Tingkat Impedansi Tombol |
Dukungan Perangkat |
Catatan |
70 ohm atau kurang |
Wajib |
[Fungsi A] |
110 - 180 ohm |
Wajib |
[Fungsi D] |
210 - 290 ohm |
Wajib |
[Fungsi B] |
360 - 680 ohm |
Wajib |
[Function C] |
Tingkat Impedansi Speaker Headset |
Dukungan Perangkat |
Catatan |
Deteksi Batas Rendah |
Wajib |
Headphone (rendah) < 1 Kohm |
Deteksi Batas Tinggi |
Wajib |
Input Line (tinggi) > 5 Kohm |
Resistansi Deteksi Steker 4 Segmen (antara segmen ke-3 dan ke-4) |
Dukungan Perangkat |
Catatan |
Nilai Minimum Sambungan 4 Segmen |
Wajib |
Resistansi >= 100 ohm |
Ambang Batas Steker 3 Segmen |
Wajib |
Hambatan < 100 ohm |
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# 3.5 mm headset jack: Device specification\n\nTo achieve compatibility with the [3.5 mm plug\nheadset specification](/docs/core/interaction/accessories/headset/plug-headset-spec), devices that include a 4 conductor 3.5 mm audio jack\nmust meet the following specifications. For Android compatibility requirements,\nrefer to the *Analog audio ports* section of the [Android CDD](/docs/compatibility/android-cdd#7_8_audio).\n\nFunctions\n---------\n\n| Function | Device Support |\n|------------------|----------------|\n| Stereo Audio Out | Required |\n| Audio in (Mic) | Required |\n| Ground | Required |\n\nSoftware mapping\n----------------\n\n| Function | Device Support | Description |\n|-----------------------------|--------------------------|---------------------------------------------------------------------|\n| Function A control event | Required | Input event: `KEY_MEDIA` Android key: `KEYCODE_MEDIA_PLAY_PAUSE` |\n| Function D control event | Required | Input event: `KEY_VOICECOMMAND` Android key: `KEYCODE_VOICE_ASSIST` |\n| Function B control event | Required | Input event: `KEY_VOLUMEUP` Android key: `VOLUME_UP` |\n| Function C control event | Required | Input event: `KEY_VOLUMEDOWN` Android key: `VOLUME_DOWN` |\n| Headset insertion detection | Required | Input event: `SW_JACK_PHYSICAL_INSERT 7` |\n| Headset type detection | Mic | Input event: `SW_MICROPHONE_INSERT 4` |\n| Headset type detection | No Mic | Input event: `SW_HEADPHONE_INSERT 2` |\n| Headset speaker impedance | Required Headphone (low) | Failure mode is to indicate headphones so limitation would be on |\n| Headset speaker impedance | Required Line In (high) | Input event: `SW_LINEOUT_INSERT 6` |\n\nMechanical\n----------\n\n| Function | Device Support | Description |\n|--------------------------|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 4 conductor 3.5 mm jack | Required | |\n| CTIA pinout order (LRGM) | Required | 3 Pin \\& Mono Plug Compatible |\n| OMTP pinout order (LRMG) | Optional but strongly recommended | |\n| Headset detect sequence | Required | Plug insert notification must be triggered only after all contacts on plug are touching their relevant segments (this prevents unreliable headset detection due to slow insertion. |\n\nElectrical\n----------\n\n### General\n\n| Function | Device Support | Notes |\n|------------------------------|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Maximum output voltage drive | 150mV | \\\u003e= 150mV on 32 ohm Test conditions: EN50332-2 |\n| Mic bias resistance | Required | Flexible on detection method used and microphone bias resistor selection. Require that all button resistance value ranges specified below be detected and related to their respective function |\n| Mic bias voltage | 1.8V - 2.9V | To guarantee compatibility to common microphone capsules. |\n\n### Function impedance and threshold detection\n\nDevices must detect the following resistor ladder on the accessories. The\naccessories will be tested to the standardized circuit diagram in the diagram\nillustrated earlier (Reference Headset Test Circuit) where the total impedance\nis measured from MIC terminal to GND when a button is pressed with 2.2V mic\nbias applied through 2.2 kOhm resistor. This is the same effective resistance\nas the button detection circuit with the microphone in parallel with the button\nresistor.\n\n| Button Impedance Level | Device Support | Notes |\n|------------------------|----------------|----------------|\n| 70 ohm or less | Required | \\[Function A\\] |\n| 110 - 180 ohm | Required | \\[Function D\\] |\n| 210 - 290 ohm | Required | \\[Function B\\] |\n| 360 - 680 ohm | Required | \\[Function C\\] |\n\n| Headset Speaker Impedance Level | Device Support | Notes |\n|---------------------------------|----------------|---------------------------|\n| Low Threshold Detection | Required | Headphone (low) \\\u003c 1 Kohm |\n| High Threshold Detection | Required | Line In (high) \\\u003e 5 Kohm |\n\n| 4-Segment Plug Detection Resistance (between 3rd and 4th segment) | Device Support | Notes |\n|-------------------------------------------------------------------|----------------|-------------------------|\n| 4-Segment Plug Threshold | Required | Resistance \\\u003e= 100 ohms |\n| 3-Segment Plug Threshold | Required | Resistance \\\u003c 100 ohms |"]]