Sending out an SMS in text mode
THIS POST WAS WRITTEN BY JEROEN ON JANUARY 8, 2009
POSTED UNDER: SMS
POSTED UNDER: SMS
- Sending out an SMS in text mode
- Sending out an SMS in PDU mode
- More on the SMS PDU
- Sending a flash SMS message
- What are EMS messages?
- Combining SMS messages
- WAP Push over SMS
- WAP Push SMS encoding
- EMS and WAP Push support
- Another WAP Push over SMS encoding
- SMS based applications
- Text formatting with EMS
- GSM-7 Encoding with the GNU iconv library
- How to pack GSM-7 characters into septets
- References
- Setting Voicemail Waiting Indication via SMS
- SMS via Email
이전 글에서 GSM 모뎀이 PC로부터 SMS message를 전송하게 해줄 수 있다고 설명한 것처럼 이것을 수행하는데 두가지 방식이 있다: text mode와 PDU mode.
As explained in a prevous post in this series, a GSM modem can let you send SMS messages from a PC. There are two basic ways to do this: text mode and PDU mode.
As explained in a prevous post in this series, a GSM modem can let you send SMS messages from a PC. There are two basic ways to do this: text mode and PDU mode.
당신은 하이퍼터미널(윈도우 XP에는 딸려오지만 윈도우 비스타에는 없다)과 같은 터미널 프로그램을 가지고 GSM 모뎀을 즐길수 있다. 모뎀과 연결되었을 때 터미널 윈도우에서 내가 언급했던 명령들이 입력될 수 있다. 다음의 기본적인 명령들을 테스트해보고 어떤 모뎀이든지 이것들은 지원해야 한다:
You can play around with your GSM modem using a terminal program like HyperTerminal (which came with Windows XP, but is no longer there in Windows Vista). The commands I mention can just be entered in the terminal window when connected to the modem. You can try the following basic commands, any modem should support these:
You can play around with your GSM modem using a terminal program like HyperTerminal (which came with Windows XP, but is no longer there in Windows Vista). The commands I mention can just be entered in the terminal window when connected to the modem. You can try the following basic commands, any modem should support these:
ATI | Returns general modem identification |
ATD<phone number> | Dials the phone number you supplied (don’t enter the <> brackets) |
ATH | Hang-up the phone (useful after the previous command). |
다음의 명령들은 GSM 모뎀들에만 한정된 것이다. 만약 에러 응답을 받는다면(예를 들어. '+ERR'), 당신의 모뎀은 아마도 GSM 모뎀이 아니거나 GSM 모뎀을 위한 확장을 지원하지 않는 것이다.
The following commands are specific for GSM modems. If you get an error response (e.g. ‘+ERR’), your modem probably isn’t a GSM modem or it doesn’t support the extensions specific for GSM modems.
The following commands are specific for GSM modems. If you get an error response (e.g. ‘+ERR’), your modem probably isn’t a GSM modem or it doesn’t support the extensions specific for GSM modems.
AT+CGMI | Returns the modem’s manufacturer |
AT+CGMM | Returns the modem’s model |
당신의 GSM 모뎀에 의해 지원되는 모드가 어떤 것인지 알아내는 명령은 'AT+CMGF=?'이다. 이 스트링을 모뎀으로 보내면(뒤에 줄바굼을 입력하고) 폰은 PDU 모드를 위한 '0'과 TEXT 모드를 위한 '1' 또는 두 모드를 다 지원하면 '0,1'로 응답할 것이다.
The command to find out which of the modes are supported by your GSM modem is ‘AT+CMGF=?’. Send this string to your modem (followed by a newline) and the phone will answer ‘0’ for PDU mode and ‘1’ for text mode or ‘0,1’ if it supports both modes.
만약 당신이 SMS 메시지를 text 모드에서 전송하고자 한다면 모뎀이 그 모드를 지원하는 것이 필요하고 당신은 모뎀이 먼저 text 모드에 있는지 확인할 필요가 있다. 명령 'AT+CMGF?'는 어떤 모드가 현재 활성화되어 있는지 알려줄 것이다. 명령 'AT+CMGF=1'은 text 모드로(만약 지원한다면) 모드를 셋팅할 것이다.
If you want to send an SMS message in text mode your modem needs to support it and you need to make sure the modem is in text mode first. The command ‘AT+CMGF?’ will tell you which mode is currently active. The command ‘AT+CMGF=1’’ will set the mode in text mode (if supported).
If you want to send an SMS message in text mode your modem needs to support it and you need to make sure the modem is in text mode first. The command ‘AT+CMGF?’ will tell you which mode is currently active. The command ‘AT+CMGF=1’’ will set the mode in text mode (if supported).
text 모드에서 text 메시지를 보내는 것은 쉽다. 명령은:
In text mode sending a text message is easy. The command is:
In text mode sending a text message is easy. The command is:
AT+CMGS=<phone-number><CR> Text to be sent<Crtl-Z>
<CR> 과 <Ctrl-Z>은 각각 엔터 키와 Ctntrol-Z 키와 연결된다. 캐릭터셋과 관련된 몇몇 세부사항들이 있지만 alpha-numeric text(accents나 특수 문자 없이)로 한정한다면 기대하는 바데로 동작해야 한다.
The <CR> and <Ctrl-Z> refer to the enter key and the Control-Z key combination respectively. There are some details regarding character sets, but if you stick to normal alpha-numeric texts (without accents or special characters), it should work as expected.
The <CR> and <Ctrl-Z> refer to the enter key and the Control-Z key combination respectively. There are some details regarding character sets, but if you stick to normal alpha-numeric texts (without accents or special characters), it should work as expected.
A followup post will elaborate a little more on text mode.
Reader Comments
Hope this helps!
phone
The command to find out which of the modes are supported by your GSM modem is ‘AT+CMGF=?’.
Not ‘AT+GSMF=?’.
Standards are not followed by all!!!.
Regards
Franco
P.S. Most phones does not let you save the message!!!.