Vodafone K3770/K3772-Z modems driver & networking library
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Dependents: VodafoneUSBModemHTTPClientTest VodafoneUSBModemNTPClientTest VodafoneUSBModemSMSTest VodafoneUSBModemUSSDTest ... more
Fork of VodafoneUSBModem_bleedingedge by
This is the driver for the Vodafone K3700 & K3772-Z Dongles:
More details and instructions can be found here.
Revision 80:c0e63c16306e, committed 2013-01-15
- Comitter:
- ashleymills
- Date:
- Tue Jan 15 17:24:37 2013 +0000
- Parent:
- 79:a6ac8206a58d
- Child:
- 81:da03da068398
- Commit message:
- Turn of read receipts in MU509;
Changed in this revision
VodafoneUSBModem.cpp | Show annotated file Show diff for this revision Revisions of this file |
sms/SMSInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/VodafoneUSBModem.cpp Wed Jan 09 16:13:50 2013 +0000 +++ b/VodafoneUSBModem.cpp Tue Jan 15 17:24:37 2013 +0000 @@ -580,6 +580,13 @@ { INFO("Using a Huawei MU509 module."); m_ppp.setHangupViaATPort(true); + + // this modem defaults to sending a delivery receipt to the SM storage area + // need to disable this for the current library to work in a sensible manner + ret = m_at.executeSimple("at+csmp=1,,0,0",NULL); + if(ret!=0) { + return NET_PROTOCOL; + } } else {
--- a/sms/SMSInterface.cpp Wed Jan 09 16:13:50 2013 +0000 +++ b/sms/SMSInterface.cpp Tue Jan 15 17:24:37 2013 +0000 @@ -17,7 +17,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#define __DEBUG__ 4 +#define __DEBUG__ 0 #ifndef __MODULE__ #define __MODULE__ "SMSInterface.cpp" #endif @@ -117,6 +117,7 @@ int ret; DBG("Get next message"); + m_inboxMtx.lock(); if( ((m_msgRefListCount == 0) && m_needsUpdate) || ((m_msgRefListCount > 0) && (m_msgRefList[0] == -1)) ) { @@ -318,6 +319,7 @@ /*virtual*/ bool SMSInterface::isATCodeHandled(const char* atCode) //Is this AT code handled { + DBG("AT code is %s", atCode); if( strcmp("+CMTI", atCode) == 0 ) { @@ -354,6 +356,7 @@ { return; //Not supported } + DBG("Unsollicited result code: %s - %s", atCode, evt);