
Application Usage Example
The following table is an example of telegram traffic between the
iPort and the controller:
Sent from Controller
Sent from iPort
RequestiPodName
ReturniPodName (“My iPod”)
ResetDBSelection
Acknowledge
SelectDBRecord
(Category = Artist,
Index = 1)
Acknowledge
GetNumber
CategorizedDBRecords
(Category = Songs)
ReturnNumber
CategorizedDBRecords
(Matching Record Count = 2)
Retrieve
CategorizedDBRecords
(Category = Songs,
Index = 1,
Read Count = 2)
ReturnCategorizedDBRecord
“Zooropa”
ReturnCategorizedDBRecord
“Babyface”
[User selects “Zooropa”]
SelectDBRecords
(Category = Songs,
Index = 0)
Acknowledge
PlayCurrentSelection
(Index = 0)
Acknowledge
Command Code Description
The following section describes the individual iPort commands
and includes the packet structure for each command.
PACKET COMMAND TYPE: 0x38
1. SelectSortDBRecord
0x3C
0x04
SelectSortDBRecord
Direction: Controller —> iPort
Description: Selects one or more records in the iPod database
based on a category type, index, and sort order.
Category Type Code:
Code
Category Type
0x01
Playlist
0x02
Artist
0x03
Album
0x04
Genre
0x05
Song
0x06
Composer
Sort Order Code:
Code
Sort Order
0x00
Genre
0x01
Artist
0x02
Composer
0x03
Album
0x04
Song
0x05
Playlist
0xFF
Default
Packet structure:
Byte Number Value
Meaning
0x00
0x2A
Start character
0x01
0x49
Device type (iPort)
0x02
0x00
Packet Length High Byte
0x03
0x09
Packet Length Low Byte
0x04
0x38
Packet Command Type
0x05
0x3C
Packet Command High Byte
0x06
0x04
Packet Command Low Byte
0x07
0xNN
Category Type Code
0x08
0xNN
Record Index (byte 4)
0x09
0xNN
Record Index (byte 3)
0x0A
0xNN
Record Index (byte 2)
0x0B
0xNN
Record Index (byte 1)
0x0C
0xNN
Sort Order Code
0x0D
0xNN
Checksum
2. GetNumPlayingSongs
0x3C
0x09
GetNumPlayingSongs
Direction: Controller —> iPort
Description: Requests the number of tracks in the actual list of
songs queued. In response the iPort will send a
ReturnNumPlayingSongs packet with the count of
the songs queued to play.
3
Instruction Manual
iPort RS-232 Programming
iPort
Command
High Byte
iPort
Command
Low Byte
Command
iPort
Command
High Byte
iPort
Command
Low Byte
Command