Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-27 Thread Freddie Chopin
Hello again! Last week I finally found a proper way to talk to this modem and today I've tried to systematically investigate it deeper. First of all - the modem works, I can connect with LTE 4G network, I can connect to the internet with lwip's PPP, I can connect to MQTT test broker (with full en

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sergey A. Borshch
On 21.03.2019 00:27, Sylvain Rochet wrote: Hi Freddie, On Wed, Mar 20, 2019 at 10:16:46PM +0100, Freddie Chopin wrote: Alternative approach to the problem - could someone recommend a GSM modem, commercially available in reasonable numbers, M.2 interface, that works with lwIP? Maybe its the Huaw

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sylvain Rochet
Hi Freddie, On Wed, Mar 20, 2019 at 10:16:46PM +0100, Freddie Chopin wrote: > Alternative approach to the problem - could someone recommend a GSM > modem, commercially available in reasonable numbers, M.2 interface, > that works with lwIP? Maybe its the Huawei me906e that is the problem > here, wh

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sylvain Rochet
Hi Freddie, On Wed, Mar 20, 2019 at 07:29:31PM +0100, Freddie Chopin wrote: > On Wed, 2019-03-20 at 18:22 +0100, Sylvain Rochet wrote: > > The DiscReq LCP packet does not seem to be related at all to the PPP > > exchange, but rather just timed after the PPP session is started no > > matter what,

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sylvain Rochet
Hi Patrick, On Wed, Mar 20, 2019 at 02:19:48PM -0400, Patrick Klos wrote: > > OK, but that just begs the question "why is the modem asking for CHAP > authentication"?  Maybe that's how GSM modems work?  Anyway, let's explore > the CHAP process further. This is to support PPP clients that require

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Freddie Chopin
Alternative approach to the problem - could someone recommend a GSM modem, commercially available in reasonable numbers, M.2 interface, that works with lwIP? Maybe its the Huawei me906e that is the problem here, who knows... Regards, FCh ___ lwip-users

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Freddie Chopin
On Wed, 2019-03-20 at 20:28 +0100, Sylvain Rochet wrote: > Hi Freddie, > > On Wed, Mar 20, 2019 at 07:37:27PM +0100, Freddie Chopin wrote: > > On Wed, 2019-03-20 at 13:20 -0400, Patrick Klos wrote: > > > For whatever reason, you're not responding to the CHAP > > > challenges. > > > > I assume thi

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sylvain Rochet
Hi Freddie, On Wed, Mar 20, 2019 at 07:37:27PM +0100, Freddie Chopin wrote: > On Wed, 2019-03-20 at 13:20 -0400, Patrick Klos wrote: > > For whatever reason, you're not responding to the CHAP challenges. > > I assume this is because my user and password are just `""` (empty > strings), but this i

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Freddie Chopin
Hello again Sylvain! On Wed, 2019-03-20 at 18:22 +0100, Sylvain Rochet wrote: > The DiscReq LCP packet does not seem to be related at all to the PPP > exchange, but rather just timed after the PPP session is started no > matter what, right ? Could you try aggressively slowing down the > serial

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Freddie Chopin
Hi Patrick! On Wed, 2019-03-20 at 13:20 -0400, Patrick Klos wrote: > For whatever reason, you're not responding to the CHAP challenges. I assume this is because my user and password are just `""` (empty strings), but this is just my very wild guess. > Are you dialing into an ISP (which would req

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Patrick Klos
On 3/20/2019 1:48 PM, Sylvain Rochet wrote: Hi Patrick, Hi Sylvain, On Wed, Mar 20, 2019 at 01:20:02PM -0400, Patrick Klos wrote: For whatever reason, you're not responding to the CHAP challenges. Are you dialing into an ISP (which would require authentication) or into another system config

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sylvain Rochet
Hi Patrick, On Wed, Mar 20, 2019 at 01:20:02PM -0400, Patrick Klos wrote: > > For whatever reason, you're not responding to the CHAP challenges. > > Are you dialing into an ISP (which would require authentication) or into > another system configured to be a "server"?  Either way, the peer is > e

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Patrick Klos
On 3/20/2019 12:06 PM, Freddie Chopin wrote: : : : -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- This last "pppos_input[1]: got 14 bytes" is just the "NO CARRIER" from the modem after it disconnects. This all happens almost instantly - after switching to data

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sylvain Rochet
Hello Freddie, On Wed, Mar 20, 2019 at 05:56:10PM +0100, Freddie Chopin wrote: > Hello Sylvain! > > On Wed, 2019-03-20 at 17:18 +0100, Sylvain Rochet wrote: > > Could you try with VJ_SUPPORT disabled ? > > I've also thought about that and already tried that, but the result is > almost identical:

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Freddie Chopin
Hello Sylvain! On Wed, 2019-03-20 at 17:18 +0100, Sylvain Rochet wrote: > Could you try with VJ_SUPPORT disabled ? I've also thought about that and already tried that, but the result is almost identical: -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- Wrote: AT Read: OK Wrote: A

Re: [lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Sylvain Rochet
Hi Freddie, On Wed, Mar 20, 2019 at 05:06:29PM +0100, Freddie Chopin wrote: > > sent [IPCP ConfReq id=0x10.0.0.0> ] > pppos_write[1]: len=32 > pppos_input[1]: got 21 bytes > rcvd [LCP DiscReq id=0x2 magic=0x4fe5c633] > pppos_input[1]: got 14 bytes Could you try with VJ_SUPPORT disabled ? Sy

[lwip-users] Help with PPP connection - modem disconnects for no obvious reason...

2019-03-20 Thread Freddie Chopin
Hello! I'm hoping some good soul with more experience in PPP and GSM modems will be able to help me out here. As a disclaimer, I have almost zero experience with GSM modems, so please excuse any obviously stupid things (; I have Huawei me906e modem with a working SIM card (I've just checked it ag