Author Topic: SMS Sending  (Read 7483 times)

Offline novice

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
SMS Sending
« on: February 07, 2008, 09:07:37 AM »
Good Day

I am having a problem with sending SMS , it always gives me an ERROR - "Error executing AT command. ERROR"
Even when i use the Demo Program.
I am using N 6680.

So I try to send sms using ExecuteATCommand.
when i send command for sending AT+CMGS="number" it gives the response ">" , and i will send message
and it gaves me error "Error executing AT command. +CMS ERROR: 301"

note: at the end of my message i add (char)26 for ctrlZ for sending msg for AT Commands
Im using visual studio 2005 C#
i try to diconnect then close my CP remove the battery and sim , then open it again but it still gave me the same result


Pls. Help

Thanks


Offline novice

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
Re: SMS Sending
« Reply #1 on: February 07, 2008, 09:25:47 AM »
Good Day

Another question
1. is it applicable in your Bluetooth Framework to send sms using AT Command at ExecuteATCommand?
2. Does Bluetooth framework accept "Ctrl-Z" or (char)26?
3. Is there anything that i need to setup or steps that i need to do before sending msg?


Thanks for the help,


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: SMS Sending
« Reply #2 on: February 07, 2008, 12:32:27 PM »
Good day!

CMS ERROR 301 means that phonebook record does not exists. I.e. when you entering AT+CMGS="number" you say to the phone to find the record in the phonebook with "number".

I'll check why it may crushes with BTF.

1. Yes. It is.
2. Yes.
3. No. But your phone must support AT commands for SMS sending/receiving. Most Nokia does not.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline novice

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
Re: SMS Sending
« Reply #3 on: February 08, 2008, 04:48:37 AM »
Good Day

Thanks for the reply

when i try to send it again but this time i remove double quote(") sign in mobile number : AT+CMGS=number it gaves me new error
i dont know if this is realy an error "System Error.  Code: 10053.
An established connection was aborted by the software in your host machine
   at BluetoothFrameworkX.BFGSMModemClientXClass.ExecuteATCommand(String Command, String& Response, Boolean NeedLF)"

1. What does it mean?
2. Why does it aborted my connection?
3. Does AT+CMGS = number is wrong?
4. Do i realy have to save the number to phonebook before sending a message?
5. How can i send msg if the number is not in the phonebook
6. if my phone doesnot support Phonebook reading does it mean i cannot send msg?

I try to save the number to the phonebook but still it gave me "Error executing AT command. +CMS ERROR: 301"


Thanks

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: SMS Sending
« Reply #4 on: February 08, 2008, 05:17:29 AM »
Good day!

It seems your phone doesn't support SMS over AT commands. Unfortunatelly I have no such model for test here now. But you may test it using HyperTerminal.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline novice

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
Re: SMS Sending
« Reply #5 on: February 08, 2008, 07:36:36 AM »
Good Day

Thank for the reply

If my phone doesnt support AT Commands for SMS why is it when i Asend AT+CMGS? it response OK?
Is there any way in which i can send msg using this phone.

Thanks

Offline novice

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
Re: SMS Sending
« Reply #6 on: February 08, 2008, 08:01:08 AM »
Good Day

If my phone doesn't support ATCommands for Sending SMS
Is it posible if i use your SendSMS
I try to use your SensSMS but it gave me error even in your Demo.
Is there any way in which i can send sms using my phone?

Thank for the help

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: SMS Sending
« Reply #7 on: February 08, 2008, 10:05:06 AM »
Good day!

I can't say something usefull util I check this phone :) I'll do the research regarding your phone model and try to find what the error is and why it happens.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline novice

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
Re: SMS Sending
« Reply #8 on: February 11, 2008, 02:34:46 AM »
Good Day

Thanks for the help  :)

Offline novice

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
Re: SMS Sending
« Reply #9 on: February 11, 2008, 03:40:46 AM »
Good Day

Hi,

Im trying to send SMS using different phone now and i can only send sms in  PDU mode
Im checking your demo,
1.can i ask what are diff of se7bit, se8Bit,seUnicode in BFSMSEncodingX does se7bit is also pdu mode for sending sms or not?
1. what is the correspoding pdu mode in your BFSMSEncodingX?
3. if i want to send message in pdu mode how can i send it using you SMSSend , do i need to convert the msg to pdu first or your library can convert it to pdu already?

Hope i got my questions clear...

Thanks




Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: SMS Sending
« Reply #10 on: February 11, 2008, 11:02:06 AM »
Good day!

BTF send message only in PDU mode. Not in text mode.

se7Bit, se8bit and seUnicode is a SMS encoding.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Ann

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: SMS Sending
« Reply #11 on: February 11, 2008, 03:04:57 PM »
ошибка 
Error executing AT command.
+CMS ERROR: 96

В демо версии при отправке sms возникает такая ошибка. В чем ошибка....при эта ошибка стала возникать только сейчас - раньше ее не было

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: SMS Sending
« Reply #12 on: February 11, 2008, 03:17:53 PM »
It seems network problem (no GSM network/no money for send SMS)
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Ann

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: SMS Sending
« Reply #13 on: February 11, 2008, 03:21:05 PM »
Balance is normal! GSM also good! ??

Offline Ann

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: SMS Sending
« Reply #14 on: February 11, 2008, 03:23:33 PM »
may error appear after update FRAMEWORK?