The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "Lightning Connector"
(→Adapters) |
m |
||
(17 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
[[File:Lighnting_USB.jpg|thumb|Lightning connector compared to USB]] |
[[File:Lighnting_USB.jpg|thumb|Lightning connector compared to USB]] |
||
− | [[File:Lighnting_Mechnical_front.jpg|thumb|Lightning connector mechanical drawing (front)]] |
||
[[File:Lighnting_sides.jpg|thumb|Lightning connector from aerial, front, top, and socket angles]] |
[[File:Lighnting_sides.jpg|thumb|Lightning connector from aerial, front, top, and socket angles]] |
||
− | '''Lightning''' is the "new" connector |
+ | '''Lightning''' is the "new" connector supported by [[iPhone 5]] and newer, [[iPad mini]] and newer, [[iPad (4th generation)]] and newer, up to but not including the 2018 iPad Pro line, ([[iPad Pro (11-inch)]] and [[iPad Pro (12.9-inch) (3rd generation)]]), and [[iPod touch (5th generation)]] and newer. [[Siri Remote]] and [[B222AP|Apple Pencil]] also use Lightning. (For the old connector, see [[30-pin Connector]].) It was presented by Tim Cook at an [[Keynote|Apple Special Event]] on {{date|2012|09|12}}. According to Apple, it as an all-digital connector and "features an adaptive interface that uses only the signals that each accessory requires and also is 80% smaller as well as orientation independent." |
* Lightning is adaptive. |
* Lightning is adaptive. |
||
* All 8 pins are used for signals, and all or most can be switched to be used for power. |
* All 8 pins are used for signals, and all or most can be switched to be used for power. |
||
Line 15: | Line 14: | ||
* Once everything is properly set up, the controller/driver chip gets digital signals from the SoC and converts them – via serial/parallel, ADC/DAC, differential drivers or whatever – to whatever is needed by the interface on the other end of the adapter or cable. It could even re-encode these signals to some other format to use fewer wires, gain noise-immunity or whatever, and re-decode them on the other end; it’s all flexible. It could even convert to optical. |
* Once everything is properly set up, the controller/driver chip gets digital signals from the SoC and converts them – via serial/parallel, ADC/DAC, differential drivers or whatever – to whatever is needed by the interface on the other end of the adapter or cable. It could even re-encode these signals to some other format to use fewer wires, gain noise-immunity or whatever, and re-decode them on the other end; it’s all flexible. It could even convert to optical. |
||
+ | == Female Receptacle Pinout == |
||
− | == Pinnout == |
||
+ | [[File:Lightning pins.png|thumb|The Lightning connector receptacle]] |
||
− | === Top (DHC marked) === |
||
+ | [[File:Lighnting_Mechnical_front.jpg|thumb|Lightning connector mechanical drawing (front)]] |
||
+ | {| class="wikitable" |
||
+ | |- |
||
+ | ! Pin |
||
+ | ! colspan="2" | Function |
||
+ | |- |
||
+ | | 1 |
||
+ | | <code>GND</code> |
||
+ | | Ground |
||
+ | |- |
||
+ | | 2 |
||
+ | | <code>L0+</code> |
||
+ | | Lane 0 positive |
||
+ | |- |
||
+ | | 3 |
||
+ | | <code>L0-</code> |
||
+ | | Lane 0 negative |
||
+ | |- |
||
+ | | 4 |
||
+ | | <code>ID0</code> |
||
+ | | Lane 0 ID/control |
||
+ | |- |
||
+ | | 5 |
||
+ | | <code>Vcc</code> |
||
+ | | 5V power |
||
+ | |- |
||
+ | | 6 |
||
+ | | <code>L1-</code> |
||
+ | | Lane 1 negative |
||
+ | |- |
||
+ | | 7 |
||
+ | | <code>L1+</code> |
||
+ | | Lane 1 positive |
||
+ | |- |
||
+ | | 8 |
||
+ | | <code>ID1</code> |
||
+ | | Lane 1 ID/control |
||
+ | |} |
||
+ | <!--=== Top (DHC marked) === |
||
{| class="wikitable" style="text-align:center;" |
{| class="wikitable" style="text-align:center;" |
||
|- |
|- |
||
Line 116: | Line 154: | ||
| V- |
| V- |
||
| |
| |
||
− | |} |
+ | |}--> |
== Adapters == |
== Adapters == |
||
Line 122: | Line 160: | ||
When a Lightning adapter is plugged in to the device it will connect to |
When a Lightning adapter is plugged in to the device it will connect to |
||
− | + | http://mesu.apple.com/assets/com_apple_MobileAsset_MobileAccessoryUpdate_haywire/com_apple_MobileAsset_MobileAccessoryUpdate_haywire.xml |
|
where, similar to an OTA iOS update, it looks for any new update bundles. This would only be for any in-between updates, though, since both iOS 6.0 and 6.1 come with predownloaded adapter firmware bundles located at /System/Library/PreinstalledAssets. (Each firmware bundle is about 11MB uncompressed.) |
where, similar to an OTA iOS update, it looks for any new update bundles. This would only be for any in-between updates, though, since both iOS 6.0 and 6.1 come with predownloaded adapter firmware bundles located at /System/Library/PreinstalledAssets. (Each firmware bundle is about 11MB uncompressed.) |
||
Line 130: | Line 168: | ||
=== Lightning to 30-pin Adapter === |
=== Lightning to 30-pin Adapter === |
||
[[File:Lightning_30-pin_Adapter.jpg|thumb|Lightning to 30-pin Adapter]] |
[[File:Lightning_30-pin_Adapter.jpg|thumb|Lightning to 30-pin Adapter]] |
||
+ | |||
− | [[File:Lightning_30-pin_Adapter_open_top.jpg|thumb|Lightning to 30-pin Adapter opened (top)]] |
||
− | [[File:Lightning_30-pin_Adapter_open_front.jpg|thumb|Lightning to 30-pin Adapter opened (front)]] |
||
This adapter lets you connect devices with a Lightning connector to many 30-pin accessories but some 30-pin accessories are not supported. The adapter supports analog audio output, USB audio, as well as syncing and charging. Video output not supported. |
This adapter lets you connect devices with a Lightning connector to many 30-pin accessories but some 30-pin accessories are not supported. The adapter supports analog audio output, USB audio, as well as syncing and charging. Video output not supported. |
||
The chips inside look unfamiliar and some have lasered text. They all appear to be custom and probably some are integrated audio circuitry in a larger processing chip. One of the chips reads Apple on it with a very long serial number. Another reads 8533 23AP CAB. |
The chips inside look unfamiliar and some have lasered text. They all appear to be custom and probably some are integrated audio circuitry in a larger processing chip. One of the chips reads Apple on it with a very long serial number. Another reads 8533 23AP CAB. |
||
+ | <gallery> |
||
+ | File:Lightning_30-pin_Adapter_open_top.jpg|Lightning to 30-pin Adapter opened (top) |
||
+ | File:Lightning_30-pin_Adapter_open_front.jpg|Lightning to 30-pin Adapter opened (front) |
||
+ | </gallery> |
||
=== Lightning Digital AV Adapter === |
=== Lightning Digital AV Adapter === |
||
[[File:Lightning_Digital_AV_Adapter.jpg|thumb|Lightning Digital AV Adapter]] |
[[File:Lightning_Digital_AV_Adapter.jpg|thumb|Lightning Digital AV Adapter]] |
||
− | [[File:Lightning_Digital_AV_Adapter_open_top.jpg|thumb|Lightning Digital AV Adapter opened (top)]] |
||
− | [[File:Lightning_Digital_AV_Adapter_open_bottom.jpg|thumb|Lightning Digital AV Adapter opened (bottom)]] |
||
− | It appears the Lightning Digital AV adapter is based off the Samsung S5L8700 series of chips. This series of processors is mainly used in the iPod nano, and the [[ |
+ | It appears the Lightning Digital AV adapter is based off the Samsung S5L8700 series of chips. This series of processors is mainly used in the iPod nano, and the [[N72AP|iPod touch (2nd generation)]]. Based on the ChipID found in /System/Library/PreinstalledAssets/com_apple_MobileAsset_MobileAccessoryUpdate_haywire.xml it seems the ARM SoC used is the Samsung S5L8747. Its part number is H9TKNNN2GD with 256MB RAM. The SoC peripherals look very much akin to other Samsung chips. |
There is some discussion regarding the outputs image quality of this adapter as it seemingly the video-out is upscaled from max 1600×900 resoultion to 1080p with visible (MPEG) compression artifacts. Apparently an Apple Engineer explained details of the adapter at [https://www.panic.com/blog/2013/03/the-lightning-digital-av-adapter-surprise/#comment-16841 www.panic.com]: |
There is some discussion regarding the outputs image quality of this adapter as it seemingly the video-out is upscaled from max 1600×900 resoultion to 1080p with visible (MPEG) compression artifacts. Apparently an Apple Engineer explained details of the adapter at [https://www.panic.com/blog/2013/03/the-lightning-digital-av-adapter-surprise/#comment-16841 www.panic.com]: |
||
Line 157: | Line 196: | ||
Certain people are aware that the quality could be better and others are working on it. For the time being, the quality was deemed to be suitably acceptable. Given the dynamic nature of the system (and the fact that the firmware is stored in RAM rather then ROM), updates **will** be made available as a part of future iOS updates. When this will happen I can’t say for anonymous reasons, but these concerns haven’t gone unnoticed. |
Certain people are aware that the quality could be better and others are working on it. For the time being, the quality was deemed to be suitably acceptable. Given the dynamic nature of the system (and the fact that the firmware is stored in RAM rather then ROM), updates **will** be made available as a part of future iOS updates. When this will happen I can’t say for anonymous reasons, but these concerns haven’t gone unnoticed. |
||
</blockquote> |
</blockquote> |
||
+ | <gallery> |
||
+ | File:Lightning_Digital_AV_Adapter_open_top.jpg|Lightning Digital AV Adapter opened (top) |
||
+ | File:Lightning_Digital_AV_Adapter_open_bottom.jpg|Lightning Digital AV Adapter opened (bottom) |
||
+ | </gallery> |
||
== External Resources == |
== External Resources == |
||
Line 164: | Line 207: | ||
* [http://www.chipworks.com/blog/recentteardowns/2012/10/15/inside-the-apple-lightning-cable/ Chipworks teardown of cable] |
* [http://www.chipworks.com/blog/recentteardowns/2012/10/15/inside-the-apple-lightning-cable/ Chipworks teardown of cable] |
||
* [http://www.chipworks.com/blog/recentteardowns/2012/10/18/inside-the-apple-lightning-to-30-pin-adapter/ Chipworks teardown of 30-pin adapter] |
* [http://www.chipworks.com/blog/recentteardowns/2012/10/18/inside-the-apple-lightning-to-30-pin-adapter/ Chipworks teardown of 30-pin adapter] |
||
+ | * [https://developer.apple.com/resources/cases/Case-Design-Guidelines.pdf Case Design Guidelines for Apple Devices i.e. page 17] |
||
+ | * [http://pdfaiw.uspto.gov/.aiw?PageNum=0&docid=20130115821&IDKey=BA3CD4916330&HomeUrl=http%3A%2F%2Fappft.uspto.gov%2Fnetacgi%2Fnph-Parser%3FSect1%3DPTO2%2526Sect2%3DHITOFF%2526u%3D%25252Fnetahtml%25252FPTO%25252Fsearch-adv.html%2526r%3D13%2526p%3D1%2526f%3DG%2526l%3D50%2526d%3DPG01%2526S1%3D%28apple.AS.%252BAND%252B20130509.PD.%29%2526OS%3Dan%2Fapple%252Band%252Bpd%2F5%2F9%2F2013%2526RS%3D%28AN%2Fapple%252BAND%252BPD%2F20130509%29 Patent #: US2013011582] |
||
+ | *[http://pdfaiw.uspto.gov/.aiw?PageNum=0&docid=20130115817&IDKey=5FAB67C7E90E&HomeUrl=http%3A%2F%2Fappft.uspto.gov%2Fnetacgi%2Fnph-Parser%3FSect1%3DPTO2%2526Sect2%3DHITOFF%2526u%3D%25252Fnetahtml%25252FPTO%25252Fsearch-adv.html%2526r%3D14%2526p%3D1%2526f%3DG%2526l%3D50%2526d%3DPG01%2526S1%3D%28apple.AS.%252BAND%252B20130509.PD.%29%2526OS%3Dan%2Fapple%252Band%252Bpd%2F5%2F9%2F2013%2526RS%3D%28AN%2Fapple%252BAND%252BPD%2F20130509%29 Patent #: US20130115817] |
||
+ | * [http://pdfaiw.uspto.gov/.aiw?PageNum=0&docid=20130117470&IDKey=933981A2273C&HomeUrl=http%3A%2F%2Fappft.uspto.gov%2Fnetacgi%2Fnph-Parser%3FSect1%3DPTO2%2526Sect2%3DHITOFF%2526u%3D%25252Fnetahtml%25252FPTO%25252Fsearch-adv.html%2526r%3D2%2526p%3D1%2526f%3DG%2526l%3D50%2526d%3DPG01%2526S1%3D%28apple.AS.%252BAND%252B20130509.PD.%29%2526OS%3Dan%2Fapple%252Band%252Bpd%2F5%2F9%2F2013%2526RS%3D%28AN%2Fapple%252BAND%252BPD%2F20130509%29 Patent #: US20130117470] |
||
{{stub|hardware}} |
{{stub|hardware}} |
Latest revision as of 13:52, 17 September 2021
Lightning is the "new" connector supported by iPhone 5 and newer, iPad mini and newer, iPad (4th generation) and newer, up to but not including the 2018 iPad Pro line, (iPad Pro (11-inch) and iPad Pro (12.9-inch) (3rd generation)), and iPod touch (5th generation) and newer. Siri Remote and Apple Pencil also use Lightning. (For the old connector, see 30-pin Connector.) It was presented by Tim Cook at an Apple Special Event on 12 September 2012. According to Apple, it as an all-digital connector and "features an adaptive interface that uses only the signals that each accessory requires and also is 80% smaller as well as orientation independent."
- Lightning is adaptive.
- All 8 pins are used for signals, and all or most can be switched to be used for power.
- The outer plug shell is used as ground reference and connected to the device shell.
- At least one (probably at most two) of the pins is used for detecting what sort of plug is plugged in.
- All plugs have to contain a controller/driver chip to implement the “adaptive” thing.
- The device watches for a momentary short on all pins (by the leading edge of the plug) to detect plug insertion/removal.
- The pins on the plug are deactivated until after the plug is fully inserted, when a wake-up signal on one of the pins cues the chip inside the plug. This avoids any shorting hazard while the plug isn’t inside the connector.
- The controller/driver chip tells the device what type it is, and for cases like the Lightning-to-USB cable whether a charger (that sends power) or a device (that needs power) is on the other end.
- The device can then switch the other pins between the SoC’s data lines or the power circuitry, as needed in each case.
- Once everything is properly set up, the controller/driver chip gets digital signals from the SoC and converts them – via serial/parallel, ADC/DAC, differential drivers or whatever – to whatever is needed by the interface on the other end of the adapter or cable. It could even re-encode these signals to some other format to use fewer wires, gain noise-immunity or whatever, and re-decode them on the other end; it’s all flexible. It could even convert to optical.
Contents
Female Receptacle Pinout
Pin | Function | |
---|---|---|
1 | GND
|
Ground |
2 | L0+
|
Lane 0 positive |
3 | L0-
|
Lane 0 negative |
4 | ID0
|
Lane 0 ID/control |
5 | Vcc
|
5V power |
6 | L1-
|
Lane 1 negative |
7 | L1+
|
Lane 1 positive |
8 | ID1
|
Lane 1 ID/control |
Adapters
When a Lightning adapter is plugged in to the device it will connect to
where, similar to an OTA iOS update, it looks for any new update bundles. This would only be for any in-between updates, though, since both iOS 6.0 and 6.1 come with predownloaded adapter firmware bundles located at /System/Library/PreinstalledAssets. (Each firmware bundle is about 11MB uncompressed.)
For fun, you can also monitor the device Console using Xcode or iPCU while connecting the adapter; you’ll see logs very similar to what happens during an iOS DFU restore, as the device loads firmware onto the Lightning adapter, as the boot chain starts off very much like a normal iOS device, but img3 files for iBSS are uploaded, along with an APTicket. This APTicket remains static for every digital AV adapter. The kernel is then uploaded and then booted.
Lightning to 30-pin Adapter
This adapter lets you connect devices with a Lightning connector to many 30-pin accessories but some 30-pin accessories are not supported. The adapter supports analog audio output, USB audio, as well as syncing and charging. Video output not supported. The chips inside look unfamiliar and some have lasered text. They all appear to be custom and probably some are integrated audio circuitry in a larger processing chip. One of the chips reads Apple on it with a very long serial number. Another reads 8533 23AP CAB.
Lightning Digital AV Adapter
It appears the Lightning Digital AV adapter is based off the Samsung S5L8700 series of chips. This series of processors is mainly used in the iPod nano, and the iPod touch (2nd generation). Based on the ChipID found in /System/Library/PreinstalledAssets/com_apple_MobileAsset_MobileAccessoryUpdate_haywire.xml it seems the ARM SoC used is the Samsung S5L8747. Its part number is H9TKNNN2GD with 256MB RAM. The SoC peripherals look very much akin to other Samsung chips.
There is some discussion regarding the outputs image quality of this adapter as it seemingly the video-out is upscaled from max 1600×900 resoultion to 1080p with visible (MPEG) compression artifacts. Apparently an Apple Engineer explained details of the adapter at www.panic.com:
Airplay is not involved in the operation of this adapter.
It is true that the kernel the adapter SoC boots is based off of XNU, but that’s where the similarities between iOS and the adapter firmware end. The firmware environment doesn’t even run launchd. There’s no shell in the image, there’s no utilities (analogous to what we used to call the “BSD Subsystem” in Mac OS X). It boots straight into a daemon designed to accept incoming data from the host device, decode that data stream, and output it through the A/V connectors. There’s a set of kernel modules that handle the low level data transfer and HDMI output, but that’s about it. I wish I could offer more details then this but I’m posting as AC for a damned good reason.
The reason why this adapter exists is because Lightning is simply not capable of streaming a “raw” HDMI signal across the cable. Lightning is a serial bus. There is no clever wire multiplexing involved. Contrary to the opinions presented in this thread, we didn’t do this to screw the customer. We did this to specifically shift the complexity of the “adapter” bit into the adapter itself, leaving the host hardware free of any concerns in regards to what was hanging off the other end of the Lightning cable. If you wanted to produce a Lightning adapter that offered something like a GPIB port (don’t laugh, I know some guys doing exactly this) on the other end, then the only support you need to implement on the iDevice is in software- not hardware. The GPIB adapter contains all the relevant Lightning -> GPIB circuitry.
It’s vastly the same thing with the HDMI adapter. Lightning doesn’t have anything to do with HDMI at all. Again, it’s just a high speed serial interface. Airplay uses a bunch of hardware h264 encoding technology that we’ve already got access to, so what happens here is that we use the same hardware to encode an output stream on the fly and fire it down the Lightning cable straight into the ARM SoC the guys at Panic discovered. Airplay itself (the network protocol) is NOT involved in this process. The encoded data is transferred as packetized data across the Lightning bus, where it is decoded by the ARM SoC and pushed out over HDMI.
This system essentially allows us to output to any device on the planet, irregardless of the endpoint bus (HDMI, DisplayPort, and any future inventions) by simply producing the relevant adapter that plugs into the Lightning port. Since the iOS device doesn’t care about the hardware hanging off the other end, you don’t need a new iPad or iPhone when a new A/V connector hits the market.
Certain people are aware that the quality could be better and others are working on it. For the time being, the quality was deemed to be suitably acceptable. Given the dynamic nature of the system (and the fact that the firmware is stored in RAM rather then ROM), updates **will** be made available as a part of future iOS updates. When this will happen I can’t say for anonymous reasons, but these concerns haven’t gone unnoticed.
External Resources
- Rainer Brockerhoff’s blog
- Dynamic pin assignment
- Pinout
- Chipworks teardown of cable
- Chipworks teardown of 30-pin adapter
- Case Design Guidelines for Apple Devices i.e. page 17
- Patent #: US2013011582
- Patent #: US20130115817
- Patent #: US20130117470
This hardware article is a "stub", an incomplete page. Please add more content to this article and remove this tag. |