-
Notifications
You must be signed in to change notification settings - Fork 44
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
Feature/initial Rx command option #8
Conversation
Pull Request Test Coverage Report for Build 47
💛 - Coveralls |
I've pushed a change that allows you to set multiple init commands as an option to StartMessageRx, which allows you to fix both your problems. The default also now calls +CSMS=1, which is no doubt better than assuming it is already set. It would be interesting to know what your modem returns to AT+CSMS?, AT+CSMS=?, AT+CNMI? and AT+CNMI=? after a reboot - it may be possible to get the driver to automatically change its defaults to suit the modem. |
My modem returns
|
This is interesting: |
+CNMI: (0-3),(0-3),(0,2,3),(0-2),(1) It's changed after ran |
I'll look into making StartMessageRx smarter so that you don't need to override the init commands, but I'm not sure when that will be, so hopefully you can get by with the overrides in the meantime. |
I think we should don't try to do everything. Because it depend on the vendor initial commands will be different (may not follow a spec). So, flexible & simple APIs is good things. |
+CNMI=1,2,0,0,0
not working with my device, it said:I must to change command to
+CNMI=1,2,0,0,1
to get it working. My device also require to initial with+CSMS=1
before send<mt>=2,3
.It can fixed, with
at.WithCmds("Z", "E0", "+CSMS=1")