Packet
Structure:
Byte Number Value Meaning
0x00 0x2A Start character
0x01 0x49 Device type (iPort)
0x02 0x00 Packet Length High Byte
0x03 0x03 Packet Length Low Byte
0x04 0x38 Packet Command Type
0x05 0x3C Packet Command High Byte
0x06 0x20 Packet Command Low Byte
0x07 0x20 Checksum
22. ReturnPlayStatus
0x3C 0x21 ReturnPlayStatus
Direction: iPort —>Controller
Description: In response to the
GetPlayStatus
command, returns
the current iPod playback status.
NOTE: The song length/song position fields are only
valid if the iPod is playing or paused.
Play
State
Code:
Code Sort Order
0x00 Stopped
0x01 Playing
0x02 Paused
0xFF Error
Packet
Structure:
Byte Number Value Meaning
0x00 0x2A Start character
0x01 0x49 Device type (iPort)
0x02 0x00 Packet Length High Byte
0x03 0x0C Packet Length Low Byte
0x04 0x38 Packet Command Type
0x05 0x3C Packet Command High Byte
0x06 0x21 Packet Command Low Byte
0x07 0xNN Song Length in milliseconds (byte 4)
0x08 0xNN Song Length in milliseconds (byte 3)
0x09 0xNN Song Length in milliseconds (byte 2)
0x0A 0xNN Song Length in milliseconds (byte 1)
0x0B 0xNN Song Position in milliseconds (byte 4)
0x0C 0xNN Song Position in milliseconds (byte 3)
0x0D 0xNN Song Position in milliseconds (byte 2)
0x0E 0xNN Song Position in milliseconds (byte 1)
0x0F 0xNN Player State Code
0x10 0xNN Checksum
23. GetCurrentPlayingSongIndex
0x3C 0x22 GetCurrentPlayingSongIndex
Direction: Controller —>iPort
Description: Requests the database index of the currently
playing song.
NOTE: The song index returned is only valid if the iPod
is currently playing or paused a song.
Packet
Structure:
Byte Number Value Meaning
0x00 0x2A Start character
0x01 0x49 Device type (iPort)
0x02 0x00 Packet Length High Byte
0x03 0x03 Packet Length Low Byte
0x04 0x38 Packet Command Type
0x05 0x3C Packet Command High Byte
0x06 0x22 Packet Command Low Byte
0x07 0x1E Checksum
24. ReturnCurrentPlayingSongIndex
0x3C 0x23 ReturnCurrentPlayingSongIndex
Direction: iPort —>Controller
Description: In response to the
GetCurrentPlayingSongIndex
command, returns the database index of the current
playing song. If there is no song playing/paused, an
index of -1 will be returned.
Packet Structure:
Byte Number Value Meaning
0x00 0x2A Start character
0x01 0x49 Device type (iPort)
0x02 0x00 Packet Length High Byte
0x03 0x07 Packet Length Low Byte
0x04 0x38 Packet Command Type
0x05 0x3C Packet Command High Byte
0x06 0x23 Packet Command Low Byte
0x07 0xNN Database Song Record Index (byte 4)
0x08 0xNN Database Song Record Index (byte 3)
0x09 0xNN Database Song Record Index (byte 2)
0x0A 0xNN Database Song Record Index (byte 1)
0x0B 0xNN Checksum
10
Instruction Manual iPort RS-232 Programming
iPort
Command
High Byte
iPort
Command
Low Byte Command
iPort
Command
High Byte
iPort
Command
Low Byte Command
iPort
Command
High Byte
iPort
Command
Low Byte Command