I need the the cell-id information to display in my iphone app, the app sends AT commands to the modem but...I do not know how to read the modem messages. Please help me.
Asked
Active
Viewed 1,852 times
0
-
Added the iphone tag, unsure about the cellid tag as there is only one other question tagged with it. – hallski Nov 27 '09 at 22:36
-
What I am try to do is the following: int speed = 115200; unsigned int null = 0; unsigned int handshake = TIOCM_DTR | TIOCM_RTS | TIOCM_CTS| TIOCM_DSR; struct termios term; int fd = open("/dev/tty.debug", O_RDWR | 0x20000 | O_NOCTTY); write(fd,"AT+COPS?\r\n",strlen("AT+COPS?\r\n")); //Read the response from the modem. I need the LAC,MCC,MNC to calculate the position. thanks for the replies. – Miky Nov 28 '09 at 13:45
2 Answers
1
I don't know what kind of functionality you need, but this website took me quiet far in sending text messages with the AT command set.
Furthermore you can use the windows hyperterminal (Accessories>Communication) to connect to the specific USB port (mapped on a COM port). With this connection you can send AT commands yourself to the cell phone and see what it returns.
Hope this helps...

Tim Van Laer
- 2,434
- 26
- 30
1
if you are asking in context of the iPhone, then I don't think you are allowed to do that with the official SDK.
You should look at the source code of the unlock tools by the team because they send AT commands to read data from the iphone modem.

umerh
- 160
- 2
- 7
-
This is most definitely not permitted in the official SDK. If you try to submit this to the App Store, it will get rejected, certainly. – Jasarien Nov 28 '09 at 03:08
-