The smpp protocol is an open industrial standard protocol. It provides flexible data communication interfaces for Information Centers and short message system application terminals during text message data transmission. The information center has short message center smsc gsm Unstructured Supplementary Service data. server ussd and other types of short message system applications include the WAP Proxy Server email gateway and some other information ga
the send_message function after you type the 's' command. The g_slice_config_always_malloc setting in row 107 is also used to check memory leakage with valgrind.5.2 execution
Run container-monitor first, then SMSs, and then SMSC. First, type 's' in SMSC and press enter to call the sendmessage method. Then, type 's' in SMSs and press enter to send the incomingmessage signal. Then, type 'q' in
.
Therefore, this method is generally not used for processing.
2,Determine by obtaining the SMS Service Center Number
If the mobile phone supports WMA, you can obtain the SMS service center number by obtaining the value of "wireless. messaging. SMS. SMSC. For the three carriers in China, China Mobile's SMS service center number is 13800xxx500, of which XXX is the region code of the number. China Unicom's SMS service center number is messy, however, th
2 message sending// User information encoding method# Define gsm_7bit 0# Define gsm_8bit 4# Define gsm_ucs2 8// Short Message Parameter structure, shared encoding/Decoding// The string ends with 0.Typedef struct {Char SCA [16]; // Short Message Service Center number (SMSC address)Char TPA [16]; // target number or reply number (TP-DA or TP-RA)Char tp_pid; // User Information Protocol identifier (TP-PID)Char tp_dcs; // user information encoding method
length, 2-digit hexadecimal number.
G: Called number type, 2-digit hexadecimal number, value same as B.
H: Called number, length is determined by the data in F.
I: Protocol ID, 2-bit hexadecimal number.
J: Data encoding scheme, 2-bit hexadecimal number.
K: Valid, 2-digit hexadecimal number.
L: User data length, 2-bit hexadecimal number.
M: User data, whose length is determined by the data in L. J is set to use UCS2 encoding, here is the Unicode character in English and Chinese.
PDU Coding Pro
this event, follow the following syntax to use raiseevent:'Raiseevent validresult [(arg1, arg2,..., argn)]Public event validresult (byval errorcode as integer, byval errorstring as string)
Public Function genpdu (optional byval smscontent as string ,_Optional byval destno as string ,_Optional byval serviceno as string) as string
'Mvarsmsclen = 0'Mvarsmsctype = ""'Mvarsmsc = ""'Varmsghead = 11'Mvartpmr = 0'Mvardestphonenumlen = 0'Mvardestphonenumtype = ""'Mvardestphonenum = ""'Mvartppid = 0'Mvar
On the "Send and receive short message through the serial port" topic, I will communicate with netizens, discuss some of the technical issues sorted into the following text. Hopefully this article will be helpful to more friends who are interested in SMS. Because I am a hobby, time and money are limited, there is no power to many models of mobile phones and module one by one test, there may be such a mistake, I hope that the line of the expert criticism.
I wrote a message to send the program, u
information between gateways by means of querying to the Gateway (GNS).As shown in Figure 1, ISMG are a medium entity between an external information resource station entity (SP) and the SMSC WI Thin the mobile network. On one hand, ISMG are required to receive messages sent by SP to mobile users, and submit them to SMSC. On the other hand, messages of mobile users ordering SP Services would be a sent by
CMPP error code (zzzz)
Error code error description remarks
0x00000000 successful
0x00000001 other errors
0x00000002 reserved for SMSC vendor definition Error
0x00000010 message length error
0x00000011 command length error
The Message ID 0x00000012 is invalid.
0x00000013 has no permission to execute this command
0x00000014 Reserved
The System ID is invalid for 0x00000020.
0x00000021 invalid password
0x00000022 invalid systemtype
0x00000023 Reserved
set. This is also the default encoding method for mobile phones. Text mode is simple and not suitable for custom data transmission. The following describes how to send and receive short messages in PDU mode.A pdu string is an ascii code consisting of numbers and letters '0'-'9' and 'A'-'F. They are 8-bit hexadecimal numbers or BCD decimal numbers. The PDU string contains not only the displayed message, but also many other information, such as the SMS service center number, target number, reply
The Code is as follows:
Type wappushpdustructSmsclen as stringSmsctype as stringSMSC as stringProtocol as stringTpmrbase as stringRephonenumlen as stringRephonenumtype as stringRephonenum as stringTppid as stringTpdsc as stringTpvp as stringMsglen as stringWappushheadlen as stringWappushflag as stringDatalen as stringWappushcombflag as stringTotal as stringMsgid as stringWappushudh as stringWappushpud as string'Wappushbegin as string'Wsp as string'Flag as string'Dtdsiflag as string'Utf as string
America. PDU mode is supported by all mobile phones and can use any character set. This is also the default encoding method for mobile phones. Text mode is simple and not suitable for custom data transmission. The following describes how to send and receive short messages in PDU mode.A pdu string is an ascii code consisting of numbers and letters '0'-'9' and 'A'-'F. They are 8-bit hexadecimal numbers or BCD decimal numbers. The PDU string contains not only the displayed message, but also many o
: validity period, two-digit hexadecimal number. L: User Data Length, two-digit hexadecimal number. M: The length of user data is determined by the data in L. The ucs2 encoding is used in J, which is a Unicode Character in Chinese and English.
The PDU protocol is described as follows:
PDU encoding protocol Example 1: Send: the SMSC number is + 8613800250500, the peer number is 13693092030, and the message content is "Hello !". The PDU string sent from
On the topic "sending and receiving short messages via serial port", I will organize some technical questions I have discussed with netizens into the following text. I hope this article will help more friends who are interested in SMS. Because I am a hobbyist and have limited time and money, I have no power to test many models of mobile phones and modules one by one. There may be such errors, and I hope the industry experts will criticize and correct them.
QI wrote a text message sending program
short message center (SMSC) and the service provider (SP). It provides a secure and fast channel for data exchange between the two entities. The gateway and the Short Message center use the SMPP protocol (Short Message Peer to Peer) and the SP use the CMPP protocol (China Mobile Peer to Peer, China Mobile Peer protocol ), therefore, the short message gateway must complete protocol conversion, billing, routing, security, network management, and other
ASCW function returns the Unicode character code. If Unicode is not supported on the platform, same as ASC functions. Here is an example of each of the two functions:? ASCW ("short ")30701? Chrw (26482)Bytes
We can see that these two functions can convert Chinese and Unicode codes, which is very convenient for encoding and decoding. After we get the Chinese Unicode code, we can compile the PDU string.
Let's take a look at the composition of the PDU string. We can see this PDU string (used when
three parts: The first eight-bit SMSC information length ("07"), SMSC information ("917238010010f5 "), and the sms_deliver part (specified in GSM 03.40 ).
Note: Some mobile phones (for example, ericssson 888 ?) The first three parts (colored) are omitted in PDU mode.8-bit descriptionThe length of the SMSC information. (In this example, there are seven octal digi
@now.co.uk for help)
Basic configuration of nowsms================================
1. Configure the GSM ModemNowsms requires a connection to an SMSC to interface with SMS and MMS networks. a smsc connection can be a GSM Modem-a GSM Modem or phone connected to a PC serial port (or to a USB port ).(You can connect to your laptop via infrared. My configuration is Nokia 6610 + Dell flexibility 600 m)
2. Configu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.