Click here to Skip to main content
15,916,846 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making an sms desktop application using c# and GSM Modem in which user will automatically gets the reply of his message after querying the database. for this purpose i am using timer so that at every second application checks for any received message and then after querying the database application will send the required information to the user. problem i am facing here is modem gets disconnected after sending a few messages. i tried with different values of timeout but no success. Can any one help me in this??
Posted

1 solution

it`s better to make an event receiver to determine when message received .
I think to set this option on GSM modem to show message when it received is AT+CNMI ( just Google it ) . you don`t need any timer for checking , if you do what i said it`s easy to use serialport_datareceived event handler to check what your GSM modem indicate and analysis the data and do what ever you want.
if your modem is disconnected check your connection i don`t think it`s depends on your software ,
goodluck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900