1. #1
    mihi64
    mihi64 is offline
    Newbie

    Posts
    2
    How-to send SMS from Linux.

    OS: Ubuntu 8.10
    Aplications: minicom, build-in driver for phone.
    Hardware: Motorola C 350, Usb cable (PC<-USB-----mini USB-> C350).

    Minicom settings: 19200 8N1 (no flow control)
    Port: /dev/ttyACM0

    OBS:
    To check the port on your PC, execute the following command before and after you connect your phone to the PC using the USB cable
    # ls /dev/tyy<press Tab key twice>
    The file which appears in the /dev folder after you connect the phone is your serial port.

    The following example uses numbers from Romania(Eastern Europe).
    Lets say we want to send the message "Test" to +40727224499.
    And the message center number is +40722004000.
    The ASCII code for character T is 0x54.
    The ASCII code for character e is 0x65.
    The ASCII code for character s is 0x73.
    The ASCII code for character t is 0x74.
    Remember this for the actual message.

    >AT+CSMS?<enter>
    +CSMS: 128,1,1,1
    OK
    >AT+CMGF=?<enter>
    +CMGF: (1)
    OK
    >AT+CSCA="+40722004000",145<enter>
    OK
    >ATE0<enter>
    OK
    >AT+MODE=0<enter>
    OK
    >AT+MDBL=0<enter>
    OK
    >AT+CGMI<enter>
    +CGMI: "Motorola CE, Copyright 2000"
    OK
    >AT+CGMM<enter>
    +CGMM: "GSM900","GSM1800","GSM1900","GSM850","MODEL=C350"
    OK
    >AT+CGMR<enter>
    +CGMR: "R312ULS_G_09.10.1AR"
    OK
    >AT+CGSN<enter>
    +CGSN: IMEI354617007989802
    OK
    >at+csq<enter>
    +CSQ: 27,99
    OK
    >at+cbc<enter>
    +CBC: 0,60
    OK
    >at+cpms="IM"<enter>
    +CPMS: 15,88
    OK
    >at+cpbs="ME"<enter>
    OK
    >at+cpbr=?<enter>
    +CPBR: 1-100,40,24
    OK
    >at+cpbs?<enter>
    +CPBS: "ME"
    OK
    >at+cpbs="sm"<enter>
    OK
    >at+cpbr=?<enter>
    +CPBR: 101-300,40,12
    OK
    >at+cpbs?<enter>
    +CPBS: "SM"
    OK
    >at+cpbs="me"<enter>
    OK
    >at+cpbs?<enter>
    +CPBS: "ME"
    OK
    >at+cgatt?<enter>
    +CGATT: 0
    OK
    >ate0<enter>
    OK
    >ats7=60<enter>
    OK
    >ats0=0<enter>
    OK
    >ate0<enter>
    OK
    >at+cpms="OM"<center>
    +CPMS: 0,88
    OK
    >at+cscs="GSM"<enter>
    OK
    >at+cscs="UCS2"<enter>
    OK
    >at+cmgw="+40727224499"<enter>
    >0054006500730074<Ctrl+Z>
    +CMGW: 507
    OK
    >at+cmss=507<enter>
    +CMSS: 222
    OK
    >ar+cmgd=507<enter>
    OK

    An now the message is sent.
    The command at+cmgw sets the destination phone number and the message.
    The text message is using 16 bits for each character. 0x00?? where ?? is the ASCII code for the character in the SMS.

    External links:
    h??p://en.wikipedia.org/wiki/Hayes_command_set
    h??p://en.wikipedia.org/wiki/Motorola_Phone_AT_Commands


    See More: Motorola C350 Send SMS using AT commands




  2. #2
    minetaky
    minetaky is offline
    Newbie

    Posts
    1

    Re: Motorola C350 Send SMS using AT commands

    Is it possible to send SMSes to a specified port of a phone by using AT commands sent from my PC to a phone connected to the PC via USB?. In Java you write sms://+461234567:14500 to send a SMS to port 14500, or Is it possible to send SMSes to a specified port using GSM modem by AT commands?, please help me

    Verónica



  3. #3
    mihi64
    mihi64 is offline
    Newbie

    Posts
    2

    Re: Motorola C350 Send SMS using AT commands

    First, you have to check that your phone supports the AT commands.
    SMS can be created in the PDU format or the TEXT format.

    More in-depth infor about sms from PC using Linux:
    google for `SMS gateway` to get an idea about SMS from PC.
    For Windows you have to use software from the manufacturer of the phone.

    Regarding the Java question: that example sends SMS from java inside the phone (Java ME - Mobile Edition). It does not send SMS from PC.



  • Similar Threads







  • Quick Reply Quick Reply

    If you are already a member, please login above.