CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Need help receive sms from gsm modem!
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
farazwan



Joined: 26 Apr 2012
Posts: 13

View user's profile Send private message

PostPosted: Sun Jun 17, 2012 12:37 pm     Reply with quote

My coding are too long. 650++ lines. I use it to interface with vehicles. Smile
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Mon Jun 18, 2012 6:56 am     Reply with quote

thats what the code library is for....

however, you are not obliged to do so.
posting your code is entirely up to you and its a personal choice (or your company's confidentiallity agreement's choice)....

if you can, post it to help others... it would be cool to see your solution.
_________________
CCS PCM 5.078 & CCS PCH 5.093
rennelmallari



Joined: 02 Feb 2013
Posts: 8

View user's profile Send private message

PostPosted: Sat Feb 02, 2013 10:59 am     Reply with quote

farazwan wrote:
My coding are too long. 650++ lines. I use it to interface with vehicles. Smile


Sir Farazwan pls post your working code.. i need to know the receiving portion of the GSM.. Thank u..pls
naughty_mark



Joined: 29 Aug 2012
Posts: 97

View user's profile Send private message

PostPosted: Thu Feb 07, 2013 9:38 pm     Reply with quote

Normally, when the GSM modem gets a new message, it will automaticlly send an AT command via port such as RS232 to micro, you can check this AT command (CMTI). All the command or respond from GSM modem is end by "OK" followed by Line feed and CR. So in my code, once I got this patten, I copy the content in the buffer to a string var. Then processing this string by checking if it contains key words which it supposes to be.

Or you can use regular check routine, AT command (CMGR) with index number , it will return the message stored in the corresponding index position in the GSM modem, all details including such as read/unread, date, time, content etc. You can look up "UNREAD" pattern to judge if it is a new message and display on the screen.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group