SMS using AT commands | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through May 12, 2004 ⬆ |
◄ ► |
Author | Message | |||
hameed chishti New member Username: Hameed Post Number: 1 Registered: 05-2004 |
Hi all, I've develope an application (vc++) to send and receive sms through mobile phone which is connected to pc via infrared port. Problem is : when i try to read sms i only get message header (status,from who, date e.t.c.) without MESSAGE text :-( But when i try same commands in hyper terminal i get everything including MESSAGE TEXT. I'm using Samsung c-100. Plz tell me what is problem :-( Thanks ahead | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2468 Registered: 10-2002 |
Sorry to sound like a smart alec, but it sounds like a bug in your program. If you can send the same commands in HyperTerminal and get different results, then you need to debug your software to figure out why the software must not be doing things the same was as when you type the commands in HyperTerminal. | |||
hameed chishti New member Username: Hameed Post Number: 2 Registered: 05-2004 |
THANKS FOR YOUR RESPONSE wish i could find that BUG :-) in hyper terminal first line for each message contains HEADER and then from next line i get MESSAGE TEXT. But in my application seems i get only first line(containing headers). and seems second line i'm missing or phone is not returning me only HEADER :-( anyhow here are commands which i'm sending to phone: plz check may be i'm sending some wrong command or wrong sequence ////////////////////////////// //check if memory is OK port.Send(_T("AT+CPMS=\"SM\"\r")); //set to text mode port.Send(_T("AT+CMGF=1\r")); //Enable SMS reception port.Send(_T("AT+CNMI=1,1,0,0,0\r")); //Get all messages in selcted memory (SM) port.Send(_T("AT+CMGL=\"ALL\"\r")); ANY IDEA?????????? | |||
hameed chishti New member Username: Hameed Post Number: 3 Registered: 05-2004 |
guess i have mistake enabling SMS reception ... coz i have no idea how this AT+CNMI=???? works | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2473 Registered: 10-2002 |
If the same command is working properly for you in HyperTerminal, it sounds like a parsing problem in your application with how it reads the information that is coming back from the modem. | |||
hameed chishti New member Username: Hameed Post Number: 4 Registered: 05-2004 |
Ok , I'll check again my application. Just want to confirm: am i doing something wrong with COMMANDS? if not then problem is in my application so ui try to find it Thanks for guideness | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2516 Registered: 10-2002 |
The code sequence seems reasonable. The issue that I see is that if sending the commands returns the expected information when you do it via HyperTerminal, but does not when you send from your application ... it points to a problem in the application. Good luck. | |||
Vicky Patil New member Username: Vicky Post Number: 2 Registered: 05-2004 |
Hi Hammed, I developed same application in Visual Basic with the use of Sms Modem if u want any help regarding to the code mail me on my id. Good Luck |