Use python to implement sms pdu encoding and python SMS pdu Encoding
A few days ago, I started a 3G module, and then I went backwards. You need to send text messages in both Chinese and English, so the PDU mode is used (not familiar with google pai_^ ).
The biggest problem is of course splicing PDU encoding (python is
same layer through the Protocol to achieve peer-to-peer inter-layer communication OSI/RM layered structure the essence of peer-layer communication during inter-layer communication: virtual Communication between peer-layer entities; the lower layer provides services to the upper layer; the actual communication is completed at the bottom layer, and the sender data is gradually transferred to the lower layer, and the receiver data is gradually transferr
I searched a lot of articles on PDU parsing on the Internet, but I had no clue. Finally, I made some progress after referring to the Google Code.
Sodino has not obtained the formal MMS specification, and everything comes from Google search. I hope that the majority of users will pick up and correct the mistakes. I am very grateful.
After the mobile phone receives the text message, Android (Android 2.2.1 from cyanogenmod for G6) will output the follow
PDU
(Protocol data Unit)The Edit Protocol Data unit PDU (Protocol Data Unit) refers to the data units passed between peer levels. The PDU on the physical layer of the Protocol Data Unit (Protocol Data unit) is the data bit (bit), the PDU on the data link layer is the data frame (frame), the
The linux OSI Layer-7 model, TCP/IP protocol stack, and the structure of each layer reveal big secrets. The osi protocol stack
When I learn Linux, I know the OSI model even if I am a little cute. What ?! You don't know !!! Okay, this secret is taken away. Thank you ~~~
I,Two protocols
(1OSI protocol model (layer-7) International ProtocolPDU: The data unit transm
services to the upper layer.
Communication between peer and peer layers through protocols between different nodes
OSI/RM layered structure
Information Flow During Inter-peer layer object Communication
Essence of peer-to-peer communication:
Virtual Communication between peer-layer entities; the lower layer provides services to the upper layer; the actual communication is completed at the bottom layer, and the sender data is gradually transferred to th
1. Definition: OSI (Open System Interconnection), an Open System Interconnection Reference Model, which logically divides the network protocol into seven layers. Each layer has related and corresponding physical devices. For example, a conventional router is a layer-3 switching device and a conventional switch is a layer-2 switching device. The OSI Layer-7 model is a framework design method. The main purpos
In a layered network structure, for example, in an Open Systems Interconnection (OSI) model, a Protocol Data Unit (PDU) is established at each layer of the transmission system ). PDU contains information from the upper layer and the object attaching information of the current layer. The PDU is then transmitted to the l
PDU codec details
Brief Introduction
SMS is a specification developed by ETSI (GSM 03.40 and GSM 03.38 ). It can send up to 160 characters, when using 7-bits encoding. 8-bit encoding (up to 140 characters) is usually not displayed directly through the mobile phone; it is usually used as a data message, such as pictures and ringtones in smart messaging) and ota wap settings. 16-bit information (up to 70 characters) is used to display Unicode (ucs2) tex
Assuming that there are L variables in the getbulkrequest PDU variable binding table, the "non-duplicate" field has the value N, and the "maximum successor" value is M, then the R=L-N variable should return up to M-dictionary successors. Getbulkrequest
A major improvement in SNMPv2 is the Getbulkrequest PDU. The purpose of this PDU is to minimize the number of pr
7-bit encoding: Send common ASCII characters; 8-bit encoding: usually used to send data messages; ucs2 encoding: used to send Unicode characters.
Generally, the PDU code consists of 13 items, namely, a B c d e f g h I j k l m. The meaning of these 13 items are as follows:
A: The length of the SMS center address, two hexadecimal digits (1 byte ). B: The number type of the SMS center, which is a two-digit hexadecimal number. C: the number of the short m
Tian haili @ csdn
2012-06-29
Wap push is encapsulated in sms pdu. To resolve wap push, you must first read the sms pdu code, which is the basis of services such as SMS, MMS, and wap push. Wap push is sent to the terminal. Therefore, this article mainly describes the delivery PDU encoding. In addition, if the content to be encapsulated by the
The encoder of the PDU works as a reverse process of the decoder. It is relatively straightforward to work with the PDU code sent only by the encoder as required . This article explains the coding idea, the specific code please refer to the Blog pduencoder partI took The PDU code is divided into two parts,SMS and EMS. the EMS section I only provided the Concatena
Five SNMP protocol data units
SNMP specifies five protocol data units PDU (that is, SNMP Packets) for exchange between management processes and proxies.
Ø
Get-Request: extract one or more parameter values from the Agent process (sent by the Network Management System)
Ø
Get-next-Request: extract the next parameter value that follows the current parameter value from the Agent process (sent by the Network Management System)
Ø
Set-Request: sets o
One of the things that I used to do, to sort out the data. Today I studied the SMS PDU format for a morning and found a way to set up SMS receipts in the PDU string. It's in Pdu-type. This 8-bit group is generally set to 11: Contains TP-MTI (2bit), Tp-rd (1bit), TP-VPF (2bit), TP-RP (1bit), Tp-udhi (1bit), TP-SRR (1bit)
Binary representation: 0 0 0 10 0 01
Tp-mti
OSI Reference ModelOSI RM: Open Systems Interconnect Reference Model (open Systeminterconnection Reference Model)The OSI Reference model has the following advantages:
Simplifies the related network operation;
Provide compatibility and standard interface between devices;
promote standardization work;
The structure can be separated;
Easy to implement and maintain.
MMS in Android to MMS (multimedia messaging Service) The operation of the MMS protocol is done through the APIs provided in frameworks: Com.google.android.mms This package is not open in the SDK and can only be used by internal programs, encapsulating all the APIs required by MMS.
This package is the implementation of the MMS protocol in Android, including some data structures: genericpdu,multimediamessagepdu,sendreq,sendconf,notificationind,retrieveconf, Pduheaders,pdubody,pdupart and so on. It
The MMS operation on the MMS (Multimedia Messaging Service) in Android is related to the MMS protocol, which is completed through the API provided in frameworks: COM. google. android. the MMS package is not open in the SDK and can only be used by internal programs. It encapsulates all the APIS required by MMS.This package is the implementation of the MMS protocol in Android, including some data structures: genericpdu, multimediamessagepdu, sendreq, sendconf, icationicationind, retrieveconf, pduh
PDU Coding Rules
Currently, text and PDU (Protocol Data Unit) are commonly used for sending short messages. Use text mode to send and receive short message code simple, easy to achieve, but the biggest drawback is not to send and receive Chinese text messages, and PDU mode not only support Chinese text messages, but also send English text messages.
Reprint: http://www.codeceo.com/article/tcp-ip-osi-model.html#0-youdao-1-61759-32553cecb956bf88a1550052113e506aOSI Reference ModelOSI RM: Open Systems Interconnect Reference Model (open Systeminterconnection Reference Model)The OSI Reference model has the following advantages:
Simplifies the related network operation;
Provide compatibility and standard interface between devices;
promote sta
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.