Re: [lwip-users] PolarSSL and mbedTLS

2017-03-15 Thread Jan Menzel
Hi Noam! Did you follow the error code through mbedtls's net.c? In my code its translated into "MBEDTLS_ERR_SSL_WANT_READ" as follows: int mbedtls_net_recv( void *ctx, unsigned char *buf, size_t len ) [...] ret = (int) read( fd, buf, len ); if( ret < 0 ) { if(

Re: [lwip-users] PolarSSL and mbedTLS

2017-03-15 Thread goldsi...@gmx.de
Noam Weissman wrote: Any ideas ? No, sorry. I'm sure I could find this when debugging myself, but I keep getting lost in your descriptions and I haven't yet seen one thing that springs to mind to say "this is it"... Simon ___ lwip-users mailing

Re: [lwip-users] PolarSSL and mbedTLS

2017-03-15 Thread Noam Weissman
Hi Simon, I have triad debugging my code and added : #define LWIP_DEBUG LWIP_DBG_ON #define SOCKETS_DEBUG LWIP_DBG_ON Strange that with this switches on I am able to get a file of about 38K but it fails at the last part, always?. Without the debug prints it

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

2017-03-15 Thread Axel Lin
2017-03-14 23:08 GMT+08:00 Sylvain Rochet : > Hi Axel, > > On Tue, Mar 14, 2017 at 10:22:58PM +0800, Axel Lin wrote: >> Hi, >> Now I tried some different SIM cards on my device. >> One of the SIM card always fails and I got PPPERR_CONNECT. >> I double checked my code and

Re: [lwip-users] lwip 1.4.1 -> 2.0.1: problem with dhcp

2017-03-15 Thread Dirk Ziegelmeier
no, you just need to enable the interface during system startup by calling netif_set_up(). NO_SYS example: http://www.nongnu.org/lwip/2_0_x/group__lwip__nosys.html Ciao Dirk -- Dirk Ziegelmeier * d...@ziegelmeier.net * http://www.ziegelmeier.net On Wed, Mar 15, 2017 at 8:35 AM,

Re: [lwip-users] lwip 1.4.1 -> 2.0.1: problem with dhcp

2017-03-15 Thread markus . lwip
Hi Dirk   Thank you for your answer.   > http://www.nongnu.org/lwip/2_0_x/upgrading.html   I don't really understand that point. Do I have to change my InitEthernetAdapter function like that?   // Start with dhcp if (_useDhcp) {   if (dhcp_start(&_netif) == ERR_OK)   {