Use the init-string given by wvdial.

BR,
Nikos
  ----- Original Message ----- 
  From: Rajeev Agarwal 
  To: Nikos Balkanas 
  Cc: [email protected] 
  Sent: Friday, December 11, 2009 11:39 AM
  Subject: Re: Sony Ericsson for Kannel


  this is how i configured the modem thingy

  group = modems
  id = moto
  name = "Motorola"
  #detect-string = "Motorola"
  #keepalive-cmd = "AT+CMGL"
  #init-string = "AT+CNMI=1,2,0,1,0"



  but i am getting the following

  009-12-11 14:52:37 [11527] [0] INFO: Kannel bearerbox II version 1.4.3 
starting
  2009-12-11 14:52:37 [11527] [0] INFO: MAIN: Start-up done, entering mainloop
  2009-12-11 14:52:37 [11527] [0] DEBUG: AT2[SMSC]: start called
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: device opened. Telnet mode 
= 0
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: device opened
  2009-12-11 14:52:37 [11527] [6] INFO: AT2[SMSC]: Logging in
  2009-12-11 14:52:37 [11527] [6] INFO: AT2[SMSC]: init device
  2009-12-11 14:52:37 [11527] [6] INFO: AT2[SMSC]: speed set to 9600
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: --> ATZ^M
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: <-- ATZ
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: <-- OK
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: --> AT^M
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: <-- OK
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: --> AT&F^M
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: <-- OK
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: --> ATE0^M
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: <-- OK
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: --> AT+IFC=2,2^M
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: <-- ERROR
  2009-12-11 14:52:37 [11527] [6] ERROR: AT2[SMSC]: Generic error: ERROR
  2009-12-11 14:52:37 [11527] [6] INFO: AT2[SMSC]: cannot enable hardware 
handshake
  2009-12-11 14:52:37 [11527] [6] DEBUG: AT2[SMSC]: --> AT+CPIN?^M
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: <-- +CPIN: READY
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: <-- OK
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: --> AT+CMGF=0^M
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: <-- OK
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: --> AT+CSMS=?^M
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: <-- +CSMS: 128
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: <-- OK
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: --> AT+CNMI=1,2,0,1,0^M
  2009-12-11 14:52:38 [11527] [6] DEBUG: AT2[SMSC]: <-- +CMS ERROR: 513
  2009-12-11 14:52:38 [11527] [6] ERROR: AT2[SMSC]: CMS ERROR: +CMS ERROR: 513
  2009-12-11 14:52:38 [11527] [6] ERROR: AT2[SMSC]: CMS ERROR: Error number 
unknown. Ask google and add it. (513)
  2009-12-11 14:52:38 [11527] [6] ERROR: AT2[SMSC]: Initialization of device 
failed.
  2009-12-11 14:52:38 [11527] [6] INFO: AT2[SMSC]: Closing device
  2009-12-11 14:52:38 [11527] [6] ERROR: AT2[SMSC]: Couldn't connect (retrying 
in 10 seconds).







  2009/12/11 Nikos Balkanas <[email protected]>

    OK. Seems your modem is working. Configure it for /dev/ttyACM0. Read how-to 
in User's Guide.

    BR,
    Nikos
      ----- Original Message ----- 
      From: Rajeev Agarwal 
      To: Nikos Balkanas 
      Cc: [email protected] 
      Sent: Friday, December 11, 2009 11:06 AM
      Subject: Re: Sony Ericsson for Kannel


      After installing wvdial i get the following


      raj...@insi:~/Desktop$ wvdial
      --> WvDial: Internet dialer version 1.60
      --> Cannot get information for serial port.
      --> Initializing modem.
      --> Sending: ATZ
      ATZ
      OK
      --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
      OK
      --> Modem initialized.
      --> Configuration does not specify a valid phone number.
      --> Configuration does not specify a valid login name.
      --> Configuration does not specify a valid password.
      raj...@insi:~/Desktop$ 



      2009/12/11 Nikos Balkanas <[email protected]>

        Hi,

        What is cdc_acm? It doesn't look like a modem. What do you have 
connected to your PC?

        Next step is to use minicom or wvdial and connect to /dev/ttyACM0. In 
minicom issue an AT command. It should reply with an AT.

        BR,
        Nikos
          ----- Original Message ----- 
          From: Rajeev Agarwal 
          To: Nikos Balkanas 
          Cc: [email protected] 
          Sent: Friday, December 11, 2009 10:41 AM
          Subject: Re: Sony Ericsson for Kannel


          hi!

          after dmesg | grep tty i got the following

          [    0.004000] console [tty0] enabled
          [    1.276807] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
          [    1.277100] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
          [10283.432323] cdc_acm 8-2:1.0: ttyACM0: USB ACM device
          [10387.225333] cdc_acm 8-1:1.0: ttyACM0: USB ACM device
          [10570.342537] cdc_acm 8-2:1.0: ttyACM0: USB ACM device


          how do i decode the above stuff???


          2009/12/11 Nikos Balkanas <[email protected]>

            Hi,

            If it is not a modem you cannot use it as an SMSc. And without an 
SMSc you cannot send/receive SMS.

            As Isaac suggested, with your modem connected to your server, after 
rebooting, do:


            If you don't get anything, your mobile is not a modem, and you 
cannot use it. To send/receive SMS you will have to either get an SMSc 
connection or get a GPRS modem.

            BR,
            Nikos
              ----- Original Message ----- 
              From: Rajeev Agarwal 
              To: Nikos Balkanas 
              Cc: [email protected] 
              Sent: Friday, December 11, 2009 10:22 AM
              Subject: Re: Sony Ericsson for Kannel


              hi
               yes the mobile does have a USB port.

              If it is not modem should i remove the modem details from the 
conf file?

              btw have a look at this

              raj...@insi:~/Desktop$ ls -lrt /dev/ttyA*
              crw-rw---- 1 root dialout 166, 0 2009-12-11 12:44 /dev/ttyACM0



              2009/12/11 Nikos Balkanas <[email protected]>

                Hi,

                If the mobile is not detected by the OS, you won't need an init 
string. Simply put the mobile is not a modem.

                Does the mobile feature a USB or serial port?

                BR,
                Nikos
                  ----- Original Message ----- 
                  From: Rajeev Agarwal 
                  To: Isaac Sanni-Thomas 
                  Cc: [email protected] 
                  Sent: Friday, December 11, 2009 9:25 AM
                  Subject: Re: Sony Ericsson for Kannel


                  that ain't working!

                  how to i get the init string?


                  2009/12/11 Isaac Sanni-Thomas <[email protected]>



                    On 12/11/2009 05:45 AM, Rajeev Agarwal wrote:

                      Hi!

                      I was wondering is it possible to use a Sony Ericsson W 
580i phone as a
                      modem for sending sms?



                    I havent used a Sony Ericsson but rather a Nokia.
                    However you can setup the modem group and smsc group as 
shown in the user guide.
                    To be sure the phone can be used, do this:
                    Connect the phone to the computer and as root do this
                    r...@your-computer#dmesg|grep -i "Sony"
                    r...@your-computer#tail -n30 /var/log/messages|grep -i 
"Sony"

                    You must see a link to the device file /dev/ttyACM0 or 
something similar which shows connection to your phone.
                    Configure kannel accordingly to use the device file that 
points to your phone. Read the user manual on configuring group=modems 
group=smsc for using phones as virtual smsc.

                      Regards

                      Rajeev.













Reply via email to