Can't get GPRS modem working properly

10 Jun 2011

Hi, I used NetservicesMod lib code (http://mbed.org/users/andrewbonney/libraries/NetServicesMod/lpcb7f) as a starting point and connect a Wavecom modem through to a UART port. Initially, I couldn't make the PPP connection connect properly. Then I found that after I put a 10ms delay in PPPNetIf::poll() in PPPNetIf.cpp. It connects OK. Does anyone know why we need to put a delay?

here is the PPPNetIf::poll() I modified:

void PPPNetIf::poll() { if(!m_connected) return; LwipNetIf::poll(); static u8_t buf[128];

//////////// I put a delay here wait_ms(10); wait 10 ms ////////////

int len; do { len = sio_tryread((sio_fd_t) m_pIf, m_buf, BUF_SIZE); if(len > 0) pppos_input(m_fd, m_buf, len); } while(len>0); }

25 Jun 2011

Hello, I use NetService and I tried NetSercicesMod.lb. But I get always an error "Object of abstract class type "GPRSModuleNetIf" is not allowed: (E322) in file "/main.cpp"" by "GPRSModuleNetIf modem(p9, p10,115200);" How do you connect the GPRS modem to an PPPNetIf? Best Regards Robert

25 Jun 2011

You need to use a class derived from this class since it doesn't have implementations for the setOn and setOff methods and expects the derived classes to implement them. An example is TelitModuleNetIf.

13 Sep 2011

Hi

Can you give us more hint or more detail example how we can implement GPRSModule on Wavecom?

Thanks in advance for your help

13 Jan 2012

How does it work? I can't compile TelitModule and I don't know how I can create a new Module description? I have a Cinterion Module but Module is the same as Siemens MC35i

Can anybody help me?

tia Klaus