Discuss Minicom settings on v3.0? at the iPhone OS 3.x - Hackint0sh.org; I'm working on a program that sends AT commands to the modem (/dev/tty.debug), and I've ...
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 FieldTest.app 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?
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:
sendmodem.zip - 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/com.apple.CommCenter.plist
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/com.apple.CommCenter.plist
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:
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.
By felip3 in forum iPhone OS 3.x
Last Post: 05-06-2010, 01:16 PM
By iAlex in forum iPhone "2G" (Rev. 1)
Last Post: 10-24-2007, 09:21 AM
By Ferdsje in forum General
Last Post: 09-13-2007, 07:47 PM
By benpottier in forum General
Last Post: 09-12-2007, 06:07 AM
Last Post: 08-24-2007, 09:48 PM