iPod總共有30pin
communication: serial port ,8N1, 19200 baud rate
針腳定義:
The male dock connector's internal pin numbering:
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
Pin#/Functions:
1 Ground (-) 1
2 Line Out - Common Ground (-) 1
3 Line Out - R (+)
4 Line Out - L (+)
5 Line In - R (+)
6 Line In - L (+)
7
8 Video Out - Composite Video (for ipod colour when slideshow activated) 6
9 S-Video Chrominance 7
10 S-Video Luminance 7
11 Serial GND
12 Serial TxD
13 Serial RxD
14
15 Ground (-) 2
16 USB GND (-) 2
17
18 3.3V Power (+) 8
19 Firewire Power 12 VDC (+) 3
20 Firewire Power 12 VDC (+) 3
21 Accessory Indicator 4
22 FireWire Data TPA (-)
23 USB Power 5 VDC (+) 9
24 FireWire Data TPA (+)
25 USB Data (-) 9
26 FireWire Data TPB (-)
27 USB Data (+) 9
28 FireWire Data TPB (+)
29 FireWire Ground (-) 5
30 FireWire Ground (-) 5
資料格式:
Field | Size | Value |
Header | 2 | 0xff 0x55 |
Length | 1 | Size of Mode + Command + Parameter |
Mode | 1 | The mode the command is referring to. |
Command | 2 | The two bite command. |
Parameter | 0..n | Optional parameter, depending on the command. |
Checksum | 1 | 0x100 - ( (sum of all length/mode/command/parameter bytes) & 0xFF) |
例如: FF 55 03 00 01 04 F8
看起來應該可以很容易連線....
參考資料:
http://nuxx.net/wiki/iPod_Dock_Connector
http://nuxx.net/wiki/Apple_Accessory_Protocol
http://stud3.tuwien.ac.at/~e0026607/ipod_remote/ipod_ap.html
沒有留言:
張貼留言