Thread: Sending AT commands to iPhone 4.
-
01-15-2011, 11:06 AM #1
Sending AT commands to iPhone 4.
Does someone know how to execute AT commands to the iPhone 4?
I have tried:
-Installing minicom and setting the serial to tty.debug and tried to run it through puTTY but once it says initializing modem then goes to a screen saying "Press CTRL-A Z for help on special keys"
And also tried it with unloading CommCenter.
But I cant type anything there, anyone know how to send commands?
BTW: I've also tried send modem. It just give's me continues "-"'s on every command for 30+ minutes.
Device: iPhone 4, OS 4.1 with BaseBand 1.59.00
All this is being done on a Windows 7 machine.
-
01-23-2011, 03:29 PM #2
Same here. Can't input commands. Why?
-
01-23-2011, 04:27 PM #3
clik Ctrl+A then E to set echo ON
-
01-23-2011, 04:28 PM #4
Maybe this helps
Baseband Commands - The iPhone Wiki
Alternatively hop on IRC and talk to people more knowledgeable in this area
-
01-24-2011, 01:42 AM #5
@SelimBez
Thanks! Do you also know how i cand send the cmd key on the new iphone mobile terminal?
-
01-24-2011, 06:30 AM #6
-
01-24-2011, 06:40 PM #7
@SelimBez
Thanks I can now type in puTTY but nothing happens when I send in an AT command, do you know why?
And at the bottom right corner when I click CTRL-A it says "Offline"
Do I need to unload CommCenter?
-Thanks
-
01-24-2011, 08:00 PM #8
-
01-25-2011, 09:34 PM #9
Actually mobile terminal does work with 4.1... Not 100% working but it does work. Depends on what repo you got it from and if dtunes is on your device.
-
01-26-2011, 04:55 AM #10
-
03-07-2011, 08:12 PM #11
-
03-08-2011, 04:32 PM #12
I finally figured it out.
1. Download minicom form Cydia.(If you cant find it change your cydia to settings-Manage>Settings>Developer.
After installing make sure the folder /usr/etc exist. You can check through iFile or SSH
2. Now SSH to your iPhone 4 via PuTTY(For windows) or Terminal or Cyberduck(For Mac)
3. Now in the command line execute- minicom -s
A small box will now appear.
Now select Serial Port Setup in the Menu and press Enter
Then, press "a" and set Serial Device to /dev/dlci.spi-baseband.extra_13 now click enter, enter
Now you should be on the on the configuration screen again. Scroll down to "Save set up as dfl" click enter
Finally now scroll down to "Exit" and click enter.
4. There now you should be able to send AT commands.
-
03-13-2011, 07:17 PM #13
-
03-13-2011, 08:50 PM #14
/dev/dlci.spi-baseband.extra_13
Any possibility there is a typo in this string:
/dev/dlci.spi-baseband.extra_13
I tried, minicom would not open with this as the port.
thanks
wms
-
03-14-2011, 02:41 AM #15
Retry using PuTTY (SSH)
Download PuTTY - a free SSH and telnet client for Windows
not directly from the phone
-
03-14-2011, 03:13 AM #16
-
03-14-2011, 06:06 AM #17
dlci.spi-baseband.extra_13
MY iPhone does not have that port listed. See here:
:~ root# ls /dev
aes_0 io8logmt tty.highland-park
bpf0 klog tty.iap
bpf1 mux.spi-baseband tty.umts
bpf2 null ttyp0
bpf3 pf ttyp1
btreset ptmx ttyp2
btwake ptyp0 ttyp3
console ptyp1 ttyp4
cu.bluetooth ptyp2 ttyp5
cu.builtin-serial4 ptyp3 ttyp6
cu.debug ptyp4 ttyp7
cu.gas-gauge ptyp5 ttyp8
cu.highland-park ptyp6 ttyp9
cu.iap ptyp7 ttypa
cu.umts ptyp8 ttypb
disk0 ptyp9 ttypc
disk0s1 ptypa ttypd
disk0s2 ptypb ttype
disk0s2s1 ptypc ttypf
dlci.spi-baseband.ciq_c ptypd ttys000
dlci.spi-baseband.ciq_d ptype ttys001
dlci.spi-baseband.extra_c ptypf uart.bluetooth
dlci.spi-baseband.extra_d random uart.builtin-serial4
dlci.spi-baseband.loc_c rdisk0 uart.debug
dlci.spi-baseband.loc_d rdisk0s1 uart.gas-gauge
dlci.spi-baseband.logchannel_c rdisk0s2 uart.highland-park
dlci.spi-baseband.logchannel_d rdisk0s2s1 uart.iap
dlci.spi-baseband.qmux1_c rvn0 uart.umts
dlci.spi-baseband.qmux1_d sha1_0 urandom
dlci.spi-baseband.qmux2_c tty vn0
dlci.spi-baseband.qmux2_d tty.bluetooth vn1
dlci.spi-baseband.test_c tty.builtin-serial4 zero
dlci.spi-baseband.test_d tty.debug
io8log tty.gas-gauge
-
03-20-2011, 07:17 AM #18
because i really want to contribute to our scene, and because i dont have fonds to buy myself an iphone 4 with baseband fw 02.10.04( my iphone has 01.59.00) i`ll tell you all how to acces the iphone 4 baseband through tty.debug, wich is the REAL port to the baseband. baseband_extra_13 is an port which cydia injected into the phone.
i spent days with fixing this problem because i wasn't able to sent any at command to tty.debug.
and then somewhere on the internet i read that planetbeings signal app ( available in cydia store) will let you send commands to the baseband, but only when the app is RUNNING.
so get yourself signal from cydia. open it. ssh into your phone. set the serial port to dev/tty.debug. then you will see that you can send at commands even with commcenter turned on.
so now i hope the guys that have a baseband that isnt unlocked yet will try to find crashes wich will result in overflows. if you find something like that send it to a member of the dev-team.
as i said above i`d try to find baseband-crashes by myself, but i cant afford another iphone 4
-
03-20-2011, 11:52 AM #19
AT commands to CDMA iphone4
andicf,
Thanks for posting. I looked at signal app, and it seems as if it is only for the sim card version of the iphone4, not the CDMA (Verizon) and the phone has to be unlocked first.
wms
-
03-20-2011, 01:02 PM #20
oh i forgot a thing....it's good to acces the baseband with minicom.
and you cant see what you are typing only if you turn echo on... but try to type AT in the command line(even if you can't see it) and you'll se that the modem will responde with an OK....
@ wms where did you read that, that the iphone first has to be unlocked.... and yes it's probably true that the cdma version won't work like that.
i'd really love to know, if it's true what you say that you can send commands to the baseband only if it's unlocked, how @musclenerd, sherif_hashim, and all the other guys fixed that problem that the baseband will responde
andicf



LinkBack URL
About LinkBacks
Reply With Quote
