Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7878713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:44:12+00:00 2026-06-03T03:44:12+00:00

I have my iPod Touch (4G, jailbroken, iOS 5.0) connected to a docking station

  • 0

I have my iPod Touch (4G, jailbroken, iOS 5.0) connected to a docking station (Made for iPod) that sends commands via the dock connector (most likely using the Apple Accessory Protocol) to the iPod, e.g. to start and stop playback. As the iPod is jailbroken, I can see the commands coming in when I’m ssh’d to the iPod, as follows (here pressing the play/pause button on the docking station repeatedly, each line equals one button press):

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

What I don’t understand is why the input here is always different. As I’m pressing the same button, I would expect each line of input to be the same (obviously ignoring the offset marker at the beginning). The play/pause button otherwise works as expected (when this od command isn’t running).

So my question is: Is there a better way of calling od or another utility I can use so that I will be able to see the request correctly? Or do I need to change the baud rate or something like that?

EDIT: Every once in a while two lines of input for one button press are displayed instead of just one. Could that be an alignment/buffering problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:44:13+00:00Added an answer on June 3, 2026 at 3:44 am

    Apparently the problem was with the baud rate, which was (by default) at 9600 for /dev/tty.iap. With a small C program (don’t know how to set the baud rate for od or hexdump or change it for the serial port directly) that changed the baud rate to 19200 using cfsetspeed, the input for commands from the external accessory were consistently identical.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ipod touch program that should receive messages from a server program
I have iOS 4.0 on an iPod Touch 2nd Gen. There's absolutely no multitasking
I have a character in an iPod Touch game I am making that moves
I have iOS SDK 4.3. My iPod touch iOS version is 5.0.1. I deployed
I have an iPod touch running iOS 4.2.1, and a simulator running iOS 4.2.
Which apple mobile devices have a magnetometer? I thought that the iPod touch had
I have a jailbroken iPod Touch 1.1.4, and want to experiment with creating minimalistic
i have been testing my application on 4 IOS devices. 1 ipod touch 2g,
I have two physical iPod touch devices. If I try running a program that
Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I have tried to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.