Changes between Version 1 and Version 2 of UsingGSMModem


Ignore:
Timestamp:
04/05/09 13:43:09 (10 years ago)
Author:
emfox
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingGSMModem

    v1 v2  
    33By default, treo680-pm module was enabled, so I just start (or enable?) the GSM module by this script:
    44
    5 lenny:~# cat gsmreset.sh
    6 echo 0 > /sys/devices/platform/treo680-pm/gsm_power_on
    7 echo 1 > /sys/devices/platform/treo680-pm/gsm_power_on
    8 echo 1 > /sys/devices/platform/treo680-pm/gsm_wake
     5  lenny:~# cat gsmreset.sh
     6  echo 0 > /sys/devices/platform/treo680-pm/gsm_power_on
     7  echo 1 > /sys/devices/platform/treo680-pm/gsm_power_on
     8  echo 1 > /sys/devices/platform/treo680-pm/gsm_wake
    99
    1010We need minicom to do the work, if you have set the network, please:
    1111
    12 apt-get install minicom
     12  apt-get install minicom
    1313
    1414Open the minicom terminal:
    1515
    16 minicom -s
     16  minicom -s
    1717
    1818Setting baudrate to 460800, the device to /dev/ttyS0 (or other, depend on 'dmesg|grep FFUART'), then open minicom without parament again, and use our needed AT commands:
    1919
    20 AT+CFUN=1
     20  AT+CFUN=1
    2121
    2222You may want to enable the command echo by:
    23 ATE
     23
     24  ATE
    2425
    2526On my Treo with a Chinaunicom SIM card, some '+CREG' and '+CGREG' displayed in a minute, then free to
    2627
    27 Dial a number: ATD10010;  // no +8610010, and don't forget the ';'
    28 Answer a Call: ATA
    29 Hangup a Call: ATH
     28Dial a number:
     29  ATD10010;  // no +8610010, and don't forget the ';'
     30Answer a Call:
     31  ATA
     32Hangup a Call:
     33  ATH
    3034
    3135On my phone, it often hangs after typing wrong AT commands, or even after idling some minutes. That is, no output,even 'ERROR's, and of course command echo has been enabled. Maybe there's something more should be take cared.