Difference between revisions of "Baseband Commands"

From The iPhone Wiki
Jump to: navigation, search
m (Baseband Commands)
m (Running Minicom 2.2 from MobileTerminal: Fix MobileTerminal page link.)
 
(14 intermediate revisions by 11 users not shown)
Line 3: Line 3:
   
 
==Setting up Minicom 2.2==
 
==Setting up Minicom 2.2==
# After installing Minicom from Cydia, make sure the folder /usr/etc exists. SSH into your iPhone and then, type: ''minicom -s''.
+
# After installing Minicom from Cydia, make sure the folder [[:/usr/etc]] exists. SSH into your iPhone and then, type: ''minicom -s''.
# Now, select ''Serial Port Setup'' in the Menu and press Enter. Then, press "a" and set Serial Device to ''/dev/tty.debug''.
+
# Now, select ''Serial Port Setup'' in the Menu and press Enter. Then, press "a" and set Serial Device to ''[[:/dev/tty.debug]]'' (however, ''[[:/dev/dlci.spi-baseband.extra_13]]'' or ''[[:/dev/dlci.spi-baseband.extra_0]]'' also works and appears to be more reliable than the other device).
 
# Press Esc, and in the Main Menu, select ''Save setup as dfl''. Now, select "exit".
 
# Press Esc, and in the Main Menu, select ''Save setup as dfl''. Now, select "exit".
  +
# To run minicom using ssh, just run ''minicom -w''
#* '''Note''': minicom does work on MobileTerminal only on root (use su) and only after it has been configured.
 
# Run the command su, enter your root password (default alpine) and then run minicom -w.
 
# To exit minicom, slide your finger on the screen ("gesture") to the bottom right (if you haven't changed this setting in MobileTerminal settings), then press A, X and enter.
 
   
==Running Minicom==
+
==Running Minicom 2.2 from MobileTerminal==
  +
'''Note''': minicom does work on MobileTerminal only on root (use su) and only after it has been configured (through the steps above).
To run minicom, is pretty simple: just type "minicom -w".
 
  +
# Open [[MobileTerminal|MobileTerminal.app]].
  +
# Run the command su, enter your root password (default alpine) and then run ''minicom -w''.
  +
# To exit minicom, slide your finger on the screen ("gesture") to the bottom right (if you haven't changed this setting in MobileTerminal settings), then press A, X and enter.
   
 
==How to run Baseband Commands==
 
==How to run Baseband Commands==
 
Here is the list that me (pH) and EvilPenguin are doing of Baseband Commands.
 
 
 
First, run Minicom. Then, type "at" and press Enter. Then, you can type the command that you want, have fun.
 
First, run Minicom. Then, type "at" and press Enter. Then, you can type the command that you want, have fun.
   
 
==Baseband Commands==
 
==Baseband Commands==
  +
{{main|List of baseband commands}}.
  +
 
===Getting Information===
 
===Getting Information===
 
* '''at+xgendata''': Display some baseband informations
 
* '''at+xgendata''': Display some baseband informations
Line 25: Line 25:
 
* '''at+clac''': Show some baseband commands
 
* '''at+clac''': Show some baseband commands
 
* '''at&h''': Show more Baseband Commands
 
* '''at&h''': Show more Baseband Commands
  +
* '''at+cgsn''': Show serial number from BBUpdaterExtreme
  +
* '''at+xdrv=9,3''': Command from BBUpdaterExtreme
  +
* '''at+cpwroff''': Powercycle baseband modem from BBUpdaterExtreme
  +
* '''at+csq''': Get signal strength from BBUpdaterExtreme
   
 
===Unlock===
 
===Unlock===
Line 30: Line 34:
 
* '''at+xlock''': Wildcard unlock
 
* '''at+xlock''': Wildcard unlock
 
* '''at+xsimstate''': Print lock state (write at+xsimstate=1 to turn on, at+xsimstate=0 to turn off)
 
* '''at+xsimstate''': Print lock state (write at+xsimstate=1 to turn on, at+xsimstate=0 to turn off)
  +
  +
===SMS===
  +
* '''at+cmgf''': SMS operating mode (at+cmgf=0 - PDU, at+cmgf=1 - text)
  +
* '''at+cmgs''': Send SMS (write at+cmgs="[PHONE NUMBER]"[ENTER][MESSAGE][CTRL-Z] while [ENTER] is an enter (\r\n) and [CTRL-Z] is ASCII 26)
  +
  +
===General===
  +
* '''atz''': Reset modem
  +
* '''ath''': Hangup modem
  +
  +
[[Category:Baseband]]

Latest revision as of 14:12, 7 July 2014

About

In this page, you'll find some Baseband Commands. You can use them with Minicom 2.2, that can be found on Cydia.

Setting up Minicom 2.2

  1. After installing Minicom from Cydia, make sure the folder /usr/etc exists. SSH into your iPhone and then, type: minicom -s.
  2. Now, select Serial Port Setup in the Menu and press Enter. Then, press "a" and set Serial Device to /dev/tty.debug (however, /dev/dlci.spi-baseband.extra_13 or /dev/dlci.spi-baseband.extra_0 also works and appears to be more reliable than the other device).
  3. Press Esc, and in the Main Menu, select Save setup as dfl. Now, select "exit".
  4. To run minicom using ssh, just run minicom -w

Running Minicom 2.2 from MobileTerminal

Note: minicom does work on MobileTerminal only on root (use su) and only after it has been configured (through the steps above).

  1. Open MobileTerminal.app.
  2. Run the command su, enter your root password (default alpine) and then run minicom -w.
  3. To exit minicom, slide your finger on the screen ("gesture") to the bottom right (if you haven't changed this setting in MobileTerminal settings), then press A, X and enter.

How to run Baseband Commands

First, run Minicom. Then, type "at" and press Enter. Then, you can type the command that you want, have fun.

Baseband Commands

Main article: List of baseband commands

.

Getting Information

  • at+xgendata: Display some baseband informations
  • at&v: Display the profiles in the Baseband (Active Profile, Stored Profile 0 and Stored Profile 1)
  • at+clac: Show some baseband commands
  • at&h: Show more Baseband Commands
  • at+cgsn: Show serial number from BBUpdaterExtreme
  • at+xdrv=9,3: Command from BBUpdaterExtreme
  • at+cpwroff: Powercycle baseband modem from BBUpdaterExtreme
  • at+csq: Get signal strength from BBUpdaterExtreme

Unlock

  • at+clck: Traditional unlock command
  • at+xlock: Wildcard unlock
  • at+xsimstate: Print lock state (write at+xsimstate=1 to turn on, at+xsimstate=0 to turn off)

SMS

  • at+cmgf: SMS operating mode (at+cmgf=0 - PDU, at+cmgf=1 - text)
  • at+cmgs: Send SMS (write at+cmgs="[PHONE NUMBER]"[ENTER][MESSAGE][CTRL-Z] while [ENTER] is an enter (\r\n) and [CTRL-Z] is ASCII 26)

General

  • atz: Reset modem
  • ath: Hangup modem