Re: [lwip-users] lwip_select never returns value > 0

2017-03-14 Thread contact
How much timeout have you set in your socket option? If receive timeout works then select should work too (I have not tested it myself though). One last thing to check is, try to increase timeout value and see if you get some data or not. Regards, Ajay Bhargav From: pekez Sent: Tuesday, March

Re: [lwip-users] ppp: What is the meaning of getting PPPERR_CONNECT inlink_status_cb

2017-03-14 Thread contact
Header files are well documented. Just try to open it once: #define PPPERR_CONNECT 6 /* Connection lost. */ I think you need to check if your APN settings are correct and if you have select right Authentication method selected. For me PPPAUTHTYPE_ANY works. Regards, Ajay Bhargav From: A

Re: [lwip-users] lwip_select never returns value > 0

2017-03-14 Thread contact
If you do not use select call, Are you able to receive anything? It may be possible that since there is no data available select will eventually timeout. Regards, Ajay bhargav From: pekez Sent: Tuesday, March 14, 2017 6:17 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] lwip_select

Re: [lwip-users] lwip_select never returns value > 0

2017-03-14 Thread contact
Hi Nenad, Did you check errno? Regards, Ajay Bhargav From: pekez Sent: Tuesday, March 14, 2017 5:51 PM To: Mailing list for lwIP users Subject: [lwip-users] lwip_select never returns value > 0 Hi people, I am trying to use lwip_select in combination with lwip_recv. I have done it like this s

Re: [lwip-users] ESP8266 as WiFi to PPP Bridge

2017-01-27 Thread contact
I agree ESP8266 LwIP stack is heavily modified and source provided with FreeRTOS sdk it never compiles. I even post on forum but no response from dev team. Most of the errors were of implicit function declaration, stack is calling functions in library with no header file defining its prototype.

Re: [lwip-users] ESP8266 as WiFi to PPP Bridge

2017-01-26 Thread contact
Jeff, I have tested Ethernet ←→ PPP using NAT. I am sure it can work for ESP8266 too for wifi, Though I have not tested myself. ESP SDK uses older version of lwIP. I am managing a NAT port from RT-Thread on GitHub. You can try those patches on ESP. Ref: https://github.com/ajaybhargav/lwip_nat

Re: [lwip-users] TFTP init

2017-01-18 Thread contact
I guess you need to check memory configuration. How much RAM do you have? Are you using memory pool or malloc? One thing to note here, I have written modified vfs layer for both my systems as none of them use FatFS. I don’t know if that will have any impact as such. You better check your lwIP op

Re: [lwip-users] TFTP init

2017-01-17 Thread contact
I am using this FTP server on two of my devices (ARM board and ESP8266) and it works perfectly fine. Can you enable FTP debug prints and see where exactly it is failing? Regards, Ajay Bhargav Sent from Mail for Windows 10 From: nrichard Sent: Tuesday, January 17, 2017 11:35 PM To: lwip-users@n

Re: [lwip-users] TFTP init

2016-12-21 Thread contact
I personally like this implementation for FTP. It has file system backend with abstraction layer. https://github.com/toelke/lwip-ftpd Regards, Ajay Bhargav www.8051projects.net From: Sergio R. Caprile Sent: Wednesday, December 21, 2016 6:04 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users]

Re: [lwip-users] SO_BINDTODEVICE Support

2016-12-20 Thread contact
If you have already implemented it or planning to do it then why don’t you contribute and submit the patch? Let devs review it. - Ajay Bhargav From: Aditya Prakash Sent: Tuesday, December 20, 2016 9:56 AM To: lwip-users@nongnu.org Subject: [lwip-users] SO_BINDTODEVICE Support Hi,  I ran into

Re: [lwip-users] LWIP : Get rid of warnings when LWIP_NOASSERT is on

2016-12-19 Thread contact
You can add a simpler statement in such case: #ifndef LWIP_NOASSERT (void)err; #endif Regards, Ajay Bhargav www.8051projects.net From: Nirav Desai Sent: Monday, December 19, 2016 2:29 PM To: lwip-de...@nongnu.org Cc: lwip-users@nongnu.org Subject: [lwip-users] LWIP : Get rid of warnings when LWI

Re: [lwip-users] Useful web server for Netconn API

2016-12-01 Thread contact
Hi Brian, You can try uhttpd from ethernut project. http://www.ethernut.de/ I feel it can be easily ported to any system. Download complete source and look into nut/pro/uhttp directory. Hope it helps. Regards, Ajay Bhargav Sent from Mail for Windows 10 From: Brian Stull Sent: Thursday, Decemb

[lwip-users] lwIP NAT implementation

2016-11-19 Thread contact
Hi All, This has been shared on the forum already, I ported NAT source from RT-Thread to latest git version and anyone who wants to test it. I have tested it with PPP and Ethernet setup and it works wonderfully. Repo is located at: https://github.com/ajaybhargav/lwip_nat Hope it will help othe

[lwip-users] Question regarding LwIP Timers

2016-11-16 Thread contact
Hi All, I have finished migration from 1.4.x to 2.0.0. I want to understand the implementation difference in lwIP timers of both versions. I am not getting any debug messages from tcpip thread or timers. So maybe some light on implementation might help. Thanks, Ajay Bhargav Sent from Mail fo

Re: [lwip-users] lwIP 2.0.0 released

2016-11-11 Thread contact
I already did.. just need to test it now 😊 From: Sergio R. Caprile Sent: Friday, November 11, 2016 6:05 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] lwIP 2.0.0 released > Great work. Need to find the time to move from 1.41 to 2.0 J Same here. Congrats to all the team, you guys rule!

Re: [lwip-users] routing over PPP using lwip

2016-01-18 Thread contact
Hi Sylvain, > Hi Ajay, > > What you are looking for is a NAT[1] implementation, not basic IP routing[2], > lwIP does not provide NAT at all. There used to be a basic NAT feature merged > in, but it was removed because the one who proposed the patch wasn't allowed > to do so. > > NAT, other th

Re: [lwip-users] routing over PPP using lwip

2016-01-18 Thread contact
> Hi Ajay, > > This is a bit hard to answer an open question like yours. > > Anyway, last time I tried, IP forwarding between a PPP session (whatever the > low level protocol used) and an Ethernet interface works smoothly. > However, you have to use the Git head, at least IP forwarding between PP