×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    2

    Red face Read SMS/ SMS Alert.

    I have created a SMS application in VB 6.0 to send bulk SMS from my PC using Bluetooth to connect my Nokia 6230i handphone.

    I can send SMS correctly using AT commands.

    But I cannot read incomming SMS properly. Everytime when I read SMS from my phone, it doesnt read all the SMS properly. Sometimes, it read 10 SMS else it read 15, else it reads all of them. It depends on the time. I think there should be a timer, and i put a waiting code by using a timer, so that the program will get enough time to poll all the SMS from phone. But only rarely it reads all the SMS. Why is it so??. anyone can help me. Below is my code:

    MSComm1.Output = "AT+CNMI = 1, 1, 0, 1, 1"
    MSComm1.Output = "AT+CMGF = 1"
    MSComm1.Output = "+CMTI: SM, 1"
    Call Wait ' function for delay
    DoEvents
    Buffer = ""
    MSComm1.Output = "AT+CMGL=" + Chr(34) + "ALL" + Chr(34) + vbCrLf
    DoEvents
    Do
    DoEvents
    Buffer = Buffer + MSComm1.Input
    Loop Until InStr(Buffer, "OK" + vbCrLf)
    ReadMessage 'function for reading/parsing the recieved message.


    Does anybody there have a sample code for reading SMS from handphone?. Please lend me your code if you dont mind.

    And is there any way to get a notification, instantly when the phone recieves a new SMS from someone. Then that SMS must be loaded to the inbox in the PC. Should I use a timer to check for any new SMS??

    Please help me.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Feb 2006
    Posts
    3

    Smile Re: Read SMS/ SMS Alert.

    Hi,
    I am also looking for the same. I am not able to read also. Can you send the code for reading the SMS which you have written. Sending of the SMS is happening. I will be thankfull to you.
    Shery Varghese

  3. #3
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    210

    Re: Read SMS/ SMS Alert.

    Check my project source code. i have done it using polling method, but its a bad choice
    http://cmansstudios.8m.com [goto OpenSource link]

    the project title in Personal Mobile Computer

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    4

    Smile Re: Read SMS/ SMS Alert.

    Hello, just FYI, maybe this link could be useful http://handphonehack.blogspot.comthanks

    luke

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-10, 13:19
  2. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44
  3. Read class Zero SMS (via RS232)
    By Vir@s in forum General Messaging
    Replies: 1
    Last Post: 2005-02-02, 08:15
  4. Replies: 9
    Last Post: 2004-03-24, 07:53
  5. SMS read problems / crashes 6210 IrDA
    By visuar in forum General Messaging
    Replies: 1
    Last Post: 2002-10-10, 10:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×