Changes to support Vodafone K4606
Dependencies: Socket USBHostWANDongle lwip-sys lwip
Fork of VodafoneUSBModem by
Diff: VodafoneUSBModem.cpp
- Revision:
- 91:7b311719374d
- Parent:
- 88:51dc1f37cc9a
- Child:
- 92:ed0443728c60
--- a/VodafoneUSBModem.cpp Thu Jun 27 12:16:30 2013 +0000 +++ b/VodafoneUSBModem.cpp Fri Sep 20 10:40:58 2013 +0000 @@ -507,7 +507,7 @@ int VodafoneUSBModem::init() { - DBG("Entering init method for the VodafoneUSBModem"); + //DBG("Entering init method for the VodafoneUSBModem"); if( !m_dongleConnected ) { DBG("Dongle is not connected"); @@ -576,7 +576,7 @@ return ret; } - if(m_dongle.getDongleType() == WAN_DONGLE_TYPE_VODAFONEK3770) + if(m_dongle.getDongleType() == WAN_DONGLE_TYPE_VODAFONE_K3770) { INFO("Using a Vodafone K3770 Dongle"); #if USE_ONE_PORT @@ -596,7 +596,7 @@ } #endif } - else if(m_dongle.getDongleType() == WAN_DONGLE_TYPE_VODAFONEK3772Z) + else if(m_dongle.getDongleType() == WAN_DONGLE_TYPE_VODAFONE_K3772Z) { INFO("Using a Vodafone K3772-Z Dongle"); //FIXME this returns %USBMODEM: [0] MODEM DRIVER<CR><LF><CR><LF><CR><LF>OK<CR><LF> which is not a compliant response @@ -609,7 +609,7 @@ } */ } - else if(m_dongle.getDongleType()== WAN_DONGLE_TYPE_VODAFONEK3773) + else if(m_dongle.getDongleType()== WAN_DONGLE_TYPE_VODAFONE_K3773) { INFO("Using a Vodafone K3773 M2M dongle."); INFO("Disabling sim toolkit notifications"); @@ -623,7 +623,7 @@ return NET_PROTOCOL; } } - else if(m_dongle.getDongleType()== WAN_DONGLE_TYPE_VODAFONEMU509) + else if(m_dongle.getDongleType()== WAN_DONGLE_TYPE_HUAWEI_MU509) { INFO("Using a Huawei MU509 module."); m_ppp.setHangupViaATPort(true); @@ -642,6 +642,18 @@ return NET_PROTOCOL; } } + else if(m_dongle.getDongleType() == WAN_DONGLE_TYPE_UBLOX_LISAU200) + { + INFO("Using a u-blox LISA-U"); + + /* + // change SMS storage to SIM + ret = m_at.executeSimple("at+cpms=\"mt\",\"mt\",\"sm\"",NULL); + if(ret!=0) { + return NET_PROTOCOL; + } + */ + } else { WARN("Using an Unknown Dongle");