[lwip-users] PPP LCP echo interval u8

2022-10-09 Thread Nikolas Karakotas
Hi, Is there a reason why the LCP echo data type size is u8? u8_t fsm_timeout_time;/* Timeout time in seconds */ u8_t fsm_max_conf_req_transmits; /* Maximum Configure-Request transmissions */ u8_t fsm_max_term_transmits; /* Maximum Terminate-Request transmissions */

[lwip-users] PPP silence ppp_dbglog

2022-07-03 Thread Nikolas Karakotas
Hi, I have turned off PPP_DEBUG and LWIP_DEBUG 0. I can see in netif/ppp/lcp.c and netif/ppp/ppp_input that ppp_dbglog is used instead of LCPDEBUG. It looks like they need to be changed to LCPDEBUG to silence the debug and not call ppp_logit. void ppp_dbglog(const char *fmt, ...);/* log a

Re: [lwip-users] TCP retransmission

2017-11-22 Thread Nikolas Karakotas
en once a day but signals and alarm to the SCADA system and isn't acceptable. Attached a snapshot. Nikolas On Tue, Nov 21, 2017 at 7:39 PM, goldsi...@gmx.de wrote: > Nikolas Karakotas wrote: >> >> I'm facing an issue on-site where there is quite a lot of traffic. >>

[lwip-users] checksum

2015-01-09 Thread Nikolas Karakotas
Hi Simon, When (LWIP_CHKSUM_ALGORITHM == 1) the function isn't the same as the function definition and uses a u16_t. Below is the error: ../src/lwip/core/inet_chksum.c:82:1: error: conflicting types for 'lwip_standard_chksum' lwip_standard_chksum(void *dataptr, u16_t len) Nick --- This emai

Re: [lwip-users] webserver problem

2013-07-09 Thread Nikolas Karakotas
It’s a hole different story if it’s a single file aka connection or serving many. I have seen this issue with my implementation. Not having enough heap and thus a file wasn’t sent. I use a 4K heap and serving the jquery 91k with multiple connections but have optimised the drivers a lot. -O

Re: [lwip-users] webserver problem

2013-07-09 Thread Nikolas Karakotas
Hi, Try and increase your MEM_SIZE. Nick -Original Message- From: pcu Sent: Monday, July 08, 2013 6:11 PM To: lwip-users@nongnu.org Subject: [lwip-users] webserver problem Hello, I work with STM32F217 + LWIP 1.3.2 + FreeRTOS 6.1.0 I have several services in parallel: One webserver (

Re: [lwip-users] ppp_new gprs

2013-06-12 Thread Nikolas Karakotas
Hi, I thought so, by the way where is the best place to call pppapi_sighup? Nick -Original Message- From: Sylvain Rochet Sent: Thursday, June 13, 2013 12:34 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] ppp_new gprs ___ l

Re: [lwip-users] ppp_new gprs

2013-06-12 Thread Nikolas Karakotas
Hi Sylvain, At what case does your sio_read returns len < 0 ? while(1) { u8_t buffer[128]; int len; len = sio_read(fd, buffer, 128); if(len < 0) { pppapi_sighup(ppps); } else { pppos_input(ppps, buffer, len); } } Nick -Original Message- From: Sylvain Rochet Sent: Tuesday

[lwip-users] Git Source

2013-06-05 Thread Nikolas Karakotas
Hello Simon, I have noticed in the latest git version when LWIP_CHSUM_ALGORITHM == 1 it produces a conflicting type error for the function: u16_t lwip_standard_chksum(void *dataptr, int len); the function is: lwip_standard_chksum(void *dataptr, u16_t len) Nick___

Re: [lwip-users] lwip ppp using gprs modem

2013-05-23 Thread Nikolas Karakotas
It is the new PPP stack sylvain has updated. You need to grab the latest source code from git. It's not in 1.4.1 -Original Message- From: afayek Sent: Thursday, May 23, 2013 11:51 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] lwip ppp using gprs modem what is these functions

Re: [lwip-users] NETCONN_NOCOPY not sending

2013-05-17 Thread Nikolas Karakotas
ssue. Thanks, Bill -Original Message- From: lwip-users-bounces+bauerbach=arrayonline@nongnu.org [mailto:lwip-users-bounces+bauerbach=arrayonline....@nongnu.org] On Behalf Of Nikolas Karakotas Sent: Thursday, May 16, 2013 11:34 PM To: Mailing list for lwIP users Subject: Re: [lwip-users]

Re: [lwip-users] NETCONN_NOCOPY not sending

2013-05-16 Thread Nikolas Karakotas
iguration, like lwip version, type of drivers, system, etc? Best Martin On Sun, May 5, 2013 at 10:41 AM, Nikolas Karakotas wrote: Hi, Im trying to send data with NETCONN_NOCOPY but I cant get it to work only with NETCONN_COPY. What could be causing this problem?

Re: [lwip-users] NETCONN_NOCOPY not sending

2013-05-16 Thread Nikolas Karakotas
. With NETCONN_COPY, the lwip creates buffers in the right memory regions. Could you provide a detailed description of your configuration, like lwip version, type of drivers, system, etc? Best Martin On Sun, May 5, 2013 at 10:41 AM, Nikolas Karakotas wrote: Hi, Im trying to send data with NETCON

Re: [lwip-users] NETCONN_NOCOPY not sending

2013-05-15 Thread Nikolas Karakotas
lwip stats after an attempt to send. Bill From: lwip-users-bounces+bauerbach=arrayonline@nongnu.org [mailto:lwip-users-bounces+bauerbach=arrayonline@nongnu.org] On Behalf Of Nikolas Karakotas Sent: Sunday, May 12, 2013 1:45 AM To: Mailing list for lwIP users Subject:

Re: [lwip-users] NETCONN_NOCOPY not sending

2013-05-11 Thread Nikolas Karakotas
Hello, I would like some help with this issue I'm facing. I want to use static pages to serve over the httpd server but when I use NETCONN_NOCPY it doesn’t seem to work. Nothing is sent. I cant seem to track this issue Can someone direct me where to look? Nick From: Nikolas Karakotas

Re: [lwip-users] lwip ppp using gprs modem

2013-05-06 Thread Nikolas Karakotas
Hi, I use the SIM900D and it works very well. You don’t need to use any AT commands only for settings up the modem and then dialing such as *99#. Grab the latest code git as it has the new PPP code where Sylvain has done a great job. Here is an example: Dial *99# ppp_init(); ppp =

[lwip-users] NETCONN_NOCOPY not sending

2013-05-05 Thread Nikolas Karakotas
Hi, Im trying to send data with NETCONN_NOCOPY but I cant get it to work only with NETCONN_COPY. What could be causing this problem? Regards, Nick___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Behavior of netif_set_link_down

2013-05-01 Thread Nikolas Karakotas
; //request a low level alarm for ethernet not connected we should be able to run without it } } Courtesy of the internet somewhere Regards Marshall -Original Message- From: lwip-users-bounces+marshall=coolbananas.co...@nongnu.org [mailto:lwip-users-bounces+marshall=cool

Re: [lwip-users] Behavior of netif_set_link_down

2013-05-01 Thread Nikolas Karakotas
I believe it has to do with your ethernet driver and how it is implemented. Even if you send data to your hardware you should control this with a incrementer for example just like a round robin. Regards, Nick -Original Message- From: Richner Simon Sent: Wednesday, May 01, 2013 6:18 P

Re: [lwip-users] DNS query

2013-04-07 Thread Nikolas Karakotas
re part of Zeroconf suit, you may be interested to have a look... regards, Bastien Le 7 avr. 2013 à 13:08, "Nikolas Karakotas" a écrit : Hi, This is the situation: User connects PC to embedded system. And to access it instead of typing in an IP the user types in a domains nam

[lwip-users] DNS query

2013-04-07 Thread Nikolas Karakotas
Hi, This is the situation: User connects PC to embedded system. And to access it instead of typing in an IP the user types in a domains name. I have setup my embedded device to use DHCP. I would like to when a user types in a domain name of : www.mydevice.com the dns query should return the devi

Re: [lwip-users] Strange problem with Ethernet

2013-03-16 Thread Nikolas Karakotas
After all it was something with the memory sections. From: Nikolas Karakotas Sent: Saturday, March 16, 2013 4:45 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] Strange problem with Ethernet Hi, Apparently when I power up I receive packets with errors and they are disregarded by

Re: [lwip-users] Strange problem with Ethernet

2013-03-15 Thread Nikolas Karakotas
Hi, Apparently when I power up I receive packets with errors and they are disregarded by the driver. Now I'm even more confused! From: Nikolas Karakotas Sent: Saturday, March 16, 2013 4:04 PM To: Mailing list for lwIP users Subject: [lwip-users] Strange problem with Ethernet Hi Guys

[lwip-users] Strange problem with Ethernet

2013-03-15 Thread Nikolas Karakotas
Hi Guys, Im facing a strange problem that I recently noticed. Here is what happens: When I program my LPC1769 chip with the program and board resets while connected to power everything works OK. Now when I remove power and try to ping the board is not responsive! Im very confused to what is caus

Re: [lwip-users] PPP new Stack

2013-02-20 Thread Nikolas Karakotas
Hi Sylvain, Ok I followed your suggestions and it works nicely. I just call ppp_close and don’t delete the thread. When I want to reconnect I call ppp_reopen and it simply changes the netif interface to match the new ip. I also removed the sys_msleep(1) and added a semaphore to the uart rx int

Re: [lwip-users] PPP new Stack

2013-02-19 Thread Nikolas Karakotas
Hi Sylvain, Thank you for the pointers. If I don’t delete the pcb and just call ppp_close and when Im ready to send data re-start the process what should I do? I could use the ppp first created. I need to stop the GSM modem as the device will go in a sleep environment and send for example ever

Re: [lwip-users] PPP new Stack

2013-02-18 Thread Nikolas Karakotas
Hi Sylvain, Ok I think I found the problem. I use PPP_INPROC_OWNTHREAD and once I added ppp_delete() to the end it seems to fix the problem. I also removed the ppp_delete from the linkStatusCB. Somehow a clean up wasn’t completed and a pbuf was always allocated but not freed as you can here:

Re: [lwip-users] PPP new Stack

2013-02-18 Thread Nikolas Karakotas
Hi Sylvain, I added ppp_free_current_input_packet() inside ppp_delete but the problem still remains. Nick -Original Message- From: Sylvain Rochet Sent: Tuesday, February 19, 2013 9:23 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] PPP new Stack ___

[lwip-users] PPP new Stack

2013-02-18 Thread Nikolas Karakotas
Hello Sylvain, I have been using latest ppp-new commit from git and also lwip but im experiencing a problem ONLY when I close the ppp connection. When the ppp thread is left open (running always) everything is OK. Let me explain to you what happens: I initiate a connection and once the link is

Re: [lwip-users] Stuck in netconn_write()

2013-01-15 Thread Nikolas Karakotas
Hi, Have you set this flag: configUSE_PREEMPTION 1 Also in your Idle tasks do you call vTaskDelay? Regards, Nick From: Thomas Johansen Sent: Tuesday, January 15, 2013 10:55 PM To: lwip-users@nongnu.org Subject: [lwip-users] Stuck in netconn_write() Hi all I have a LPC1788 running FreeRTOS

Re: [lwip-users] Problems Connecting to a GSM Router

2012-11-12 Thread Nikolas Karakotas
No TitleHi, I use a GSM/GPRS module directly using PPP so you are right its not the tcp/ip stack. GSM modules might loose/drop a connection if the signal is weak or if your power supply isnt good enough 2-3Amps if not met then this will introduce a voltage drop and might lock the GSM. Does the

Re: [lwip-users] Porting a project from uip to lwip, advice needed

2012-10-10 Thread Nikolas Karakotas
Hi, In contrib there is an example of httpserver based on netconn (very limited). To get the features you require, get parts from the httpserver_raw (all the parsing and fs) and add it to the netconn example. If you need to serve .js file then add it in the httpd_structs.h.Tto get started and u

Re: [lwip-users] Sockets

2012-09-06 Thread Nikolas Karakotas
06, 2012 11:52 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] Sockets Nikolas Karakotas wrote: [..] I then get stuck as well maybe in the lwip_write or lwip_send. How can I combat this issue? Does send/write wait for ever? I think this is a standard socket problem, not an lwIP one

[lwip-users] Sockets

2012-09-05 Thread Nikolas Karakotas
Hello, Im using the socket api to connect to a number of other embedded devices. The protocol used is modbus but doesn’t really matter in this case. Apparently the other embedded systems have some issues and cause problems to the sockets. When I connect successfully to the devices and then colle