-
Notifications
You must be signed in to change notification settings - Fork 313
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
Arduino, sim900 fixes #67
base: master
Are you sure you want to change the base?
Conversation
…), 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.
@alejandroMA merged here please check it out and do a pull request there if you found any bugs. |
hey @babca, so sorry to be so late to respond, i just though this repo was really death. o also i think i would be great if your fork could be up in pip as another package (python-gsmmodem-new maybe, or gsmmodem-new). |
Thanks for suggestions, I tried to add it: babca#5 |
@alejandroMA Are you able to help me fix broken unit tests? babca#6 :-) |
unfortunately this week i'm a little busy, and i have one modem available right now and it on production-ish, so i cant tinker with it or change to the python-gmsmodem-new right now. but i would love to help, if you have something in mind for next week i can help :). |
I'm putting all my ideas into my Issues tab https://github.com/babca/python-gsmmodem/issues
|
So i´m using a sim900 modem with Arduino as a serial interface.
While trying to connect to it, i would always get a timeOutException,
turns out that Arduino reboots it-self every time a new serial connection
starts so, when the first AT command get send, Arduino isn’t on yet, so it
never reaches the sim900 modem, modem doesn’t respond, timeOutException.
waiting for 2-3 sec does the trick.
Also i needed a way to set a custom CNMI, since the default one doesn’t work
with the sim900 modem.
added "waittingForModemToStartInSeconds" argument to GsmModem.conect(), 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.