Re: [lwip-users] TCIP Support Flow for PPPos

2014-11-14 Thread chrysn
On Mon, Oct 27, 2014 at 10:53:25AM -0700, mjackson wrote: 1. After PPP has completed negotiations (LCP, AUTH and IPCP), which api should I call to connect to a remote server? your application can use the regular lwip mechanisms once the link is up, without special consideration for ppp

[lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread chrysn
hello lwip users, i'd like to keep track of my gsm device's position while a ppp data connection is active. unfortunately, that means that the non-ppp messages (/\r\n+CENG:[0-9,a-f]+\r\n/ in my case) arrive in the same stream as ppp messages. (at least, it appears, they are not fully

Re: [lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread Sylvain Rochet
Hi chrysn, On Fri, Nov 14, 2014 at 10:09:18AM +0100, chrysn wrote: hello lwip users, i'd like to keep track of my gsm device's position while a ppp data connection is active. unfortunately, that means that the non-ppp messages (/\r\n+CENG:[0-9,a-f]+\r\n/ in my case) arrive in the same

Re: [lwip-users] Assertion pbuf_free: p-ref 0 failed at line 651 in ../src/lwip/core/pbuf.c

2014-11-14 Thread Sergio R. Caprile
If I was you, I would: - make sure the port I'm using works, by first running known good examples. - study those examples to learn how to work with lwip. - read the wiki, it is great for bed reading. - trace assertions to my code, execute step by step and see what I'm doing wrong. - try to figure

Re: [lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread Sergio R. Caprile
My view: Since PPP expects a serial transparent interface, and you are not providing that, I would write a tap which provides that to PPP and taps all other data out. GSM modem real serial -- my module - PPP virtual serial --- tracking virtual

Re: [lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread Sergio R. Caprile
BTW, \r\nUNDER-VOLTAGE WARNING\r\n is a clear indication that your power supply is not well designed and/or your module is not well decoupled. It needs 2A current to transmit for a very short time, you need a 100uF low impedance in parallel with 2uF MLCC close to the module; or better, what

[lwip-users] Assertion pbuf_free: p-ref 0 failed at line 651 in ../src/lwip/core/pbuf.c

2014-11-14 Thread aaisha
Hi, I'm trying to send ping and udp packets. But for both packets I'm getting assertion failed like this Assertion pbuf_free: p-ref 0 failed at line 651 in ../src/lwip/core/pbuf.c Can anyone please help me.. Regards, Aaisha Ahmed. ___ lwip-users

Re: [lwip-users] Sending to a non-local network without default netif set

2014-11-14 Thread HaaCee2
In response to the remark: Simon is right: routing doesn't have anything to do with the source address and it shouldn't have to I think Simon is not right (no pun intended). I am not entirely familiar with the ideas behind LwIP. But sourcebased routing is very much in line with rfc1122 (ip for

Re: [lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread chrysn
hello sergio, thank you for your responses. On Fri, Nov 14, 2014 at 10:06:00AM -0300, Sergio R. Caprile wrote: Since PPP expects a serial transparent interface, and you are not providing that, I would write a tap which provides that to PPP and taps all other data out. GSM modem real

Re: [lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread Sergio R. Caprile
Chrysn, yes, Simcom tech department sucks... they've had some internal issues on the move from SIM340 to SIM900. They are chinese and english docs are poor and mostly non-existent. We've had a tech contact long ago but hopefully I haven't contacted them for years. Regarding the hw, you are too

Re: [lwip-users] Sending to a non-local network without default netif set

2014-11-14 Thread goldsi...@gmx.de
HaaCee2 wrote: I am not entirely familiar with the ideas behind LwIP. But sourcebased routing is very much in line with rfc1122 (ip for hosts). I quote: Under the Strong ES model, the route computation for an outgoing datagram is the mapping: route(src IP addr, dest

Re: [lwip-users] Sending to a non-local network without default netif set

2014-11-14 Thread HaaCee2
On 14-11-14 20:27, Simon Goldschmidt [via lwIP] wrote: HaaCee2 wrote: I am not entirely familiar with the ideas behind LwIP. But sourcebased routing is very much in line with rfc1122 (ip for hosts). I quote: Under the Strong ES model, the route computation for an outgoing datagram

Re: [lwip-users] Sending to a non-local network without default netif set

2014-11-14 Thread goldsi...@gmx.de
HaaCee2 wrote: I beg to differ I've added a task for this to the tracker: https://savannah.nongnu.org/task/index.php?13397 Simon ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread Sylvain Rochet
Hi chrysn, On Fri, Nov 14, 2014 at 05:43:47PM +0100, chrysn wrote: i was afraid so when i first saw them, but i never ran into an UNDER-VOLTAGE POWER DOWN condition so far; thing is, i'm running my entire board off 3.3V, which is the threshold for the warning. the module can do down to

Re: [lwip-users] hayes commands popping up in ppp stream

2014-11-14 Thread nkarakotas
Hi, The product is fine,I have been using the SIM900D without any problems in many different countries as well. It may run for a days without dropping the connection. Obviously you have a hardware issue as your not supplying enough voltage or power supply voltage drops when the gsm signal is