Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long sms concat info for received sms #93

Open
wants to merge 181 commits into
base: master
Choose a base branch
from

Conversation

yurenchen000
Copy link

Add concat property for ReceivedSms:

  • Get Concantion from pdu smsDict['udh']
  • Update examples/sms_handler_demo.py

test output of sms_handler_demo.py

== SMS message received ==
From: +8613400000000
Time: 2018-04-13 20:00:02+08:00
concat: {}
Message:
hello, no concat

== SMS message received ==
From: +8613400000000
Time: 2018-04-13 20:00:08+08:00
concat: {'reference': 21, 'number': 2, 'parts': 2, 'dataLength': 3, 'data': [21, 2, 2], 'id': 0}
Message:
test mesage, part 2 of 2

faucamp and others added 30 commits July 23, 2013 12:03
This allows the manipulation of PDP contexts (setting APNs, etc) and can
initiate the first portion of a data session (the actual dialing). Not
much use as-is, but can be extended later for MMS sending functionality,
and with the use of pppd and a bit of hacking this can be used to
set up and control "normal" data network connections via the GSM modem.
+CREG: 2,1,"1727","0000C7EE" is now parsed correctly
Taken from faucamp#39
Unit test won't work, a huge work is needed to completely port to python 3.
But at least we have something working.
Thus we can handle continuations e.g.
change typo on checkFowarding
param fwdNumber
Should have no parameters.
Included self parameter
Just initialize the GsmModem object with requestDelivery=False
(default is True)
…), added AT_CNMI property to GsmModem.

The waittingForModemToStartInSeconds arg allows to wait after the
serial connection has started, and before sending the AT commands.

The AT_CNMI proprety of the GsmModem class allow to specify the CNMI
parameter of the gsm modem, this helps to set up the incoming sms
notifications.
babca and others added 15 commits July 11, 2017 22:39
Empty self.write() with no args removed, closes faucamp#43
HUAWEI CEND notification format fix
_placeHolderCallback removed. If there is no callback set, callback
variable is None. That means it is now simple to test if the callback
is set or not. Some parts of the code were using this method (if
someCallbackFunc is None) for a longer period of time anyway.
This is not a fix and does not add any functionality. I made changes to
a way of calling callback so it reflects recent changes in modem.py.
Fix for issue faucamp#51, which was also affecting my environment.  This modifies the ReceivedSms class so that there's access to the message index, which makes it possible to call things like deleteStoredSms without having to guess at the index.
add `concat` property for received sms
//get Concantion from pdu `smsDict['udh']`
Add `concat` property for `ReceivedSms`:
  - Get Concantion from pdu `smsDict['udh']`
  - Update examples/sms_handler_demo.py
@yurenchen000
Copy link
Author

yurenchen000 commented Apr 13, 2018

All checks have failed, Cause travis-ci

pip 9.0.1 no such option: --use-mirrors

@tomchy
Copy link

tomchy commented Apr 17, 2018

This repository was abandoned a while ago. Could you create the PR to this updated fork?

@babca
Copy link

babca commented Mar 11, 2019

@yurenchen000 please post PRs to the maintained fork of python-gsmmodem. Great addition by the way!

@yurenchen000
Copy link
Author

yurenchen000 commented Mar 12, 2019

@tomchy @babca
sorry, response so late.

I create the PR to babca/python-gsmmodem right now.
babca#73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.