Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hello Everyone,

I am currently working on an SMS Gateway.
I want to make gateway in c sharp.

Does anyone have c sharp code for establish a connection between Modem and PC?

Thanks,

Regards,
Vishavdeep Goyal
Posted
Updated 1-Jun-11 21:44pm
v2
Comments
Dalek Dave 2-Jun-11 3:45am    
Edited for Grammar, Spelling and Readability.

 
Share this answer
 
Comments
Dalek Dave 2-Jun-11 3:45am    
Good Link
Hi,

may i Know which type of modem you are using is it cdma type or gsm?
 
Share this answer
 
Use AT commands[^] to send and receive SMS via your GSM modem/unit.

Remember that it is using a diffent encoding (GSM default alphabet (GSM 03.38)[^]) where something like sending a "@" char is encoded as 0x00.

Use AT+CSCS to set TE character set to support the correct encoding.
AT+CSCS=? to list all supported encodings. But please note, that not all GSM units/modem support all types of encoding.

To really make it the correct way. You have to switch SMS message format to PDU encoding via AT+CMGF command.
Via PDU format, you can select the correct encoding, make long SMS ( over 160 char ), sending pictures, ring tone etc..

Send and Read SMS through a GSM Modem using AT Commands[^]

Hope it can help you.
 
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