Lines Matching refs:pdu
54 def sms_insert(self, index, pdu): argument
56 smsc_len = int(pdu[0:1], 16)
57 mlen = len(pdu)/2 - smsc_len - 1
63 '+CMGR: 1,,%d\r\n%s' % (mlen, pdu), '')
67 self.smsdict[index] = pdu
70 def sms_receive(self, index, pdu): argument
73 self.sms_insert(index, pdu)
88 pdu = self.smsdict[i]
89 smsc_len = int(pdu[0:1],16)
90 mlen = len(pdu)/2 - smsc_len - 1
91 response = response + '+CMGL: %d,1,,%d\r\n%s\r\n' % (i, mlen, pdu)