Ipod 通讯协议.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Ipod 通讯协议.doc

Ipod 通讯协议 1.通讯格式说明: 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 byte command Parameter 0..n optional parameter, depending on the command Checksum 1 0x100 - ( (sum of all length/mode/command/parameter bytes) 0xFF) 2.具体通讯命令说明: 命令 说明 0xff 0x55 0x03 0x00 0x01 0x04 0xf8 打开ipod串口连接,并进入高级控制模式 通讯命令 说明 ? 0xFF 0x55+length+0x04 0x00 0x00+Result(1) +Command(2)+ 校验位(1) think that the result 0x04 means that the command wasn′t understood 返回: 0xFF 0x55+length+0x04 0x00 0x01+Result(1) +Command(2)+ 校验位(1) 返回信息result: 0.表示成功 2.表示失败 4表示超出范围 Command:表示之前发送的指令的command 0xFF 0x55 0x03 0x04 0x00 0x02 0xf7 发送简单的ping指令,返回:FF 55 0B 04 00 03 FF FF FF FF 00 00 00 00 F2,表示连接成功 返回: 0xFF 0x55 0x0B 0x04 0x00 0x03 0xFF 0xFF 0xFF 0xFF 0x00 0x00 0x00 0x00 0xF2, 表示成功连接 ? 0xff 0x55 0x03 0x04 0x00 0x09 0xf0 ? returns flag set with 0x00 0x0b, don′t know, what this means (perhaps an indicator for track-change - if you set this flag to 0x01 it turns to 0x00 again after changing the track) ? 返回: 0xFF 0x55 0x04 0x04 0x00 0x0A +byte(1) + 校验位(1) Byte=0x00 or 0x01 ? 0xFF 0x55 0x04 0x04 0x00 0x0B +byte(1) + 校验位(1) parameter 0x00 0x01 result in a success-answere (copare 0x00 0x01), don′t know what happens - seems to be a flag which can be read with 0x00 0x09 ? 0xFF 0x55 0x04 0x04 0x00 0x0C +byte(7) + 校验位(1) ??? results in a answer 0x0d ? 0xFF 0x55 0x04 0x04 0x00 0x0D + byte(7)or byte(1)+ 校验位(1) tried some parameters - result seems to dependent on current playlist parameters 0x00 0x00 0x00 0x00 0x00 0x00 0x00 give (on my Ipod) 11 bytes(0x00 0x00 0x00 0x00 0x00 0x00 0x02 0xf0 0xdb 0x00 0x00 in main-Playlist - *not* the playlist-number and *not* the count of tracks in this playlist) This command can also inform the accessory when there is a track change (one song ends and another begins). So it is a subscription - some previous

文档评论(0)

gsgtshb + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档