Results 1 to 2 of 2
Discuss Minicom settings on v3.0? at the iOS 3.x (iPhone OS 3.x) -; I'm working on a program that sends AT commands to the modem (/dev/tty.debug), and I've ...
  1. #1
    Newbie Array

    Join Date
    Jul 2009
    Post Thanks / Like
    Rep Power

    Default Minicom settings on v3.0?

    I'm working on a program that sends AT commands to the modem (/dev/tty.debug), and I've recently upgraded my iPhone 3G from os 2.2.1 -> 3.0. However, Minicom just sits there when I open it up from SSH (using the same settings that I used on v2.2.1).

    Accessing this device programmatically isn't working either. After moving my program out of the sandbox area, I'm able to open the debug tty device, but any subsequent calls that use the opened device block the process and don't return.

    So, I have the following questions:
    1). it seems obvious that the serial port settings changed from 2.2.1 to 3.0? (anyone know the new settings)
    2). Is there an alternate method of sending AT commands other than opening up /dev/tty.debug, emulating a VT100 connection, and issuing read()/write() calls?

    I'm really just trying to show the info that the shows (LAC, Cell ID, RSSI) to get an idea of cell size/signal strength... There's obviously a mechanism for that app to access the info from the baseband.. presumably either an undocumented set of AT commands (LAC, Cell ID, RSSI are all from the 3GPP spec, however), or an API that directly gets network info from the baseband. Anyone know how the field test app gets its info?

  2. #2
    Newbie Array

    Join Date
    Oct 2009
    Post Thanks / Like
    Rep Power

    Default I had the same problem

    I had been trying to programatically send SMS messages via /dev/tty.debug per the program snippets here:

    [Tutorial] Send SMS with iPhone modem - iPod touch Fans forum

    My writes to the device seemed to succeed, but reads would just hang forever. I then downloaded the sendmodem program from: - iphone-elite - A tool to access the modem/baseband directly through /dev/tty.debug from the command line - Project Hosting on Google Code

    While following the instructions at:

    sendmodem - iphone-elite - A tool to access the modem/baseband directly. - Project Hosting on Google Code

    I executed the following instruction:

    launchctl unload -w /System/Library/LaunchDaemons/

    and that caused all my reads to start working! The only problem is, that until that service is reloaded, you can't use the phone/SMS capabilities of the phone.

    To get my phone working properly again, I restarted the service with:

    launchctl load -w /System/Library/LaunchDaemons/

    It turns out that reads don't block indefinitely, just for up to a VERY long time (like minutes), but then they do complete successfully, with the desired output.

    To replicate this, I installed sendmodem, and just do:

    sendmodem AT

    This may block for up to 2 minutes (printing dots), but then eventually I get an OK back from the modem.

    I would appreciate any additional information anyone might have on this.




Similar Threads

  1. 5.12 BB and minicom
    By felip3 in forum iOS 3.x (iPhone OS 3.x)
    Replies: 1
    Last Post: 05-06-2010, 01:16 PM
  2. Minicom
    By iAlex in forum iPhone "2G" (Rev. 1)
    Replies: 0
    Last Post: 10-24-2007, 09:21 AM
  3. Exit minicom
    By Ferdsje in forum General
    Replies: 2
    Last Post: 09-13-2007, 07:47 PM
  4. minicom
    By benpottier in forum General
    Replies: 8
    Last Post: 09-12-2007, 06:07 AM
  5. minicom
    By rmyc in forum General
    Replies: 3
    Last Post: 08-24-2007, 09:48 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012
All times are GMT +2. The time now is 02:33 PM.
twitter, follow us!