Unexpected input from an external device - iOS

I have an iPod Touch (4G, jailbroken, iOS 5.0) connected to a dock (Made for iPod) that sends commands through the dock connector (most likely using the Apple Accessory Protocol) to the iPod, for example. to start and stop playback. When the iPod is hacked, I see the commands that appear when I'm on the iPod as follows (here, press the play / pause button on the dock several times, each line will be pressed by one button):

iPod Touch:~ mobile$ od /dev/tty.iap
0000000 102000 177020 004017 000360 004017 000360 144204 004317
0000020 000340 002020 000376 004017 177430 002010 000376 000440
0000040 147730 160010 004377 147740 160010 020000 154001 102000
0000060 177020 020400 177000 102000 177710 160010 007400 014010
0000100 000377 004417 177430 007400 014011 000377 002020 020400
0000120 177000 004000 000300 140010 004377 000340 000440 000344

I donโ€™t understand why the entry here is always different. When I press the same button, I expect each line of input to be the same (obviously ignoring the offset marker at the beginning). The play / pause button works fine (if this command oddoes not work).

So my question is: is there a better way to call odor another utility that I can use so that I can see the request correctly? Or do I need to change the baud rate or something like that?

EDIT: From time to time, two input lines are displayed for pressing one button, and not just one. Could there be a alignment / buffering problem?

+3
source share
1 answer

, , ( ) 9600 /dev/tty.iap. C ( , od hexdump ), 19200 cfsetspeed, .

0

All Articles