[lwip-users] A better way to switch between static IP and DHCP?

2017-10-04 Thread Xun Chen
Somehow my lwip user forum subscription/setting/options was not functioning properly, and I may have sent out this request multiple times since I tried to figure out what was wrong. My apologies if it was the case... Hi there, The following test was based on lwip 1.41 port on TI's TiVaware

Re: [lwip-users] How to find out if I can send out more UDP packets?

2017-05-30 Thread Xun Chen
Sergio, Thanks for your reply. I was out of the country until today, sorry for the late reply The problem is similar to the following pseudo codes: while (1) { p=pbuf_alloc() memcopy (p->payload,...) err= udp_sendto (...) pbuf_free(p) /*if I delay a little here, err

[lwip-users] How to find out if I can send out more UDP packets?

2017-05-11 Thread Xun Chen
Hi there, I use udp_sendto to output packets, if I space them in time to make sure the packets are sent, everything is fine, but if I call udp_sendto too frequently, I will run into error code -1, out of memory. Which lwip raw API can I call to find out if I have the resource before I

Re: [lwip-users] TCP packet out-of-order

2016-11-02 Thread Xun Chen
After waiting for two days, instead of the same out-of-order incident, I got one that was re-transmitted very quick (see packet 20 and 21) https://www.dataq.com/exchange/retransmit_immediately.pcapng On 11/1/2016 12:00 PM, lwip-users-requ...@nongnu.org wrote: Date: Mon, 31 Oct 2016 10:14:25

Re: [lwip-users] TCP packet out-of-order

2016-10-31 Thread Xun Chen
I also try to identify if it was a resend, so I added a counter to the payload, but I haven't caught one fail since the modification last Friday, because WireShark quit when this happened over the weekend. Hopefully I can catch it soon I am not using DMA and this one running on TI's TiVa The

[lwip-users] TCP packet out-of-order

2016-10-27 Thread Xun Chen
Hi there, I am use lwIP 1.4.1 and the test ran for long time before I ran into a problem with TCP packet out-of-order. The PC (windows 10) is acting properly but lwip sent out a packet with out-of-order sequence segment: This was captured on Wireshark and I saved the data around this event

[lwip-users] What is the recommended steps to upgrade to 2.0.0?

2016-05-25 Thread Xun Chen
Hi there, I am using 1.4.1 and would like to give 2.0.0(beta) a try, I thought I could just keep the port and application files and simply replace the whole folder of 1.4.1 with 2.0.0, but then I realized there are files added/renamed, for example, in src\core\ipv4 subfolder 1.4.1 package

[lwip-users] What should I do when tcp_err callback

2015-08-11 Thread Xun Chen
Hi all, I run into a problem and don't know how to handle it properly. I am using lwip 1.4.1 to pump data out at 400kB/sec rate. After many many GB data (even Wireshark 12 crashed a few times during the process due to memory leak), I will get tcp_err callback from

Re: [lwip-users] lwip-users Digest, Vol 143, Issue 18

2015-07-24 Thread Xun Chen
Hi Sergio, Thanks for your pointer and patience! After some debugging and tracking, I found the problem. I am writing to confirm the problem is neither in lwip nor the port, but the communication between the remote side and my codes, since this is my first try with callback, I didn't handle

Re: [lwip-users] lwip-users Digest, Vol 143, Issue 10

2015-07-22 Thread Xun Chen
Hi Sergio, I took your suggestion of only sending out more data in tcp_sent callbak and rewrite the codes And I run into another problem: The data stream is very jerky (I am streaming 200kb/s) So I used a scope to see how often the tcp_sent callback is invoked, it turns out: I will get

Re: [lwip-users] Retransmit too quick?

2015-07-13 Thread Xun Chen
Thanks for the clarification, I will take your suggestion and modify my codes accordingly On 7/11/2015 12:00 PM, lwip-users-requ...@nongnu.org wrote: -- Message: 1 Date: Fri, 10 Jul 2015 13:31:37 -0300 From: Sergio R.

Re: [lwip-users] Retransmit too quick?

2015-07-10 Thread Xun Chen
Hi Sergio, Thanks again for your kind reply. I am not an expert in lwip, but I did several projects on other TCP stack The receiver's ACK is taken care inside lwip, not by the callback of tcp_sent and tcp_sndbuff tells the size of available tx buffer I agree with you about the timer may

Re: [lwip-users] Retransmit too quick?

2015-07-08 Thread Xun Chen
Hi Sergio, Per your suggestion, I took a closer look at the port and my codes I am on TiVa/lwip platform. 1) The timer seems to work fine, sys_now() returns correct ms counts (I can't rule out the hardware induced glitch due to TI design flaw). So I don't understand why calling

Re: [lwip-users] Retransmit too quick?

2015-07-07 Thread Xun Chen
Thanks for your pointers! I will check my codes according to your suggestion On 7/7/2015 12:00 PM, lwip-users-requ...@nongnu.org wrote: s -- Message: 5 Date: Mon, 06 Jul 2015 17:13:34 -0300 From: Sergio R. Caprile scapr...@gmail.com To: lwip-users@nongnu.org

Re: [lwip-users] Retransmit too quick?

2015-07-06 Thread Xun Chen
Hi, Sergio, Thank you for your time! I am not calling any raw api from interrupts and I don't use RTOS. I include the pseudo codes below. (Note: In my codes, only one TCP connection is allowed) A) The following codes works, but I still get the (too quick) retransmit problem after long run,

[lwip-users] Retransmit too quick?

2015-07-02 Thread Xun Chen
Hi all, I ran into a problem with lwip 1.4.1. For some reason, lwip decides to retransmit package immediately, without waiting for the ACK for the receiver The Wireshark captures for the moment (16KB only) can be downloaded from

[lwip-users] Two UDP kills DHCP?

2015-06-16 Thread Xun Chen
Hi all, I am picking up an old lwip project to add an extra function via a new UDP socket. The original project runs on lwip 1.4.1 without RTOS. It has one UDP and one TCP sockets, simple HTTP support, and it acquires its IP via DHCP. The orders are like http_init; udp_new udp_bind

Re: [lwip-users] Two UDP kills DHCP?

2015-06-16 Thread Xun Chen
Hi Jens, Thanks for your reply! The current setting of MEMP_NUM_UDP_PCB is 4 attached is the lwipopts.h Thanks! On 6/16/2015 12:00 PM, lwip-users-requ...@nongnu.org wrote: Message: 4 Date: Tue, 16 Jun 2015 17:46:39 +0200 (CEST) From: Jens Nielsend...@telia.com To: Mailing list for lwIP

Re: [lwip-users] tcp_output.c fault?

2015-06-12 Thread Xun Chen
More on the configuration: 1) No RTOS 2) 8KB heap A few more faults generated, always the same place inside tcp_output It seems the image were dropped. So I am going to add some text to it. Hi there, I am using TI's TiVa (TM4C1294) for a TCP-based project The code is developed on CCS,

Re: [lwip-users] tcp_output.c fault?

2015-06-12 Thread Xun Chen
It seems the image were dropped. So I am going to add some text to it. Hi there, I am using TI's TiVa (TM4C1294) for a TCP-based project The code is developed on CCS, and the TiVaware contains lwip 1.4.1. I got my codes working (sort of), pumping out data acquired from SSI port (via ISR) to

Re: [lwip-users] lwip-users Digest, Vol 131, Issue 25

2014-07-30 Thread Xun Chen
I would like to use it on TI's TiVa to sync our data loggers I have a working 1588 implementation on LWIP -- based on the white rabbit code plus some changes. What are you trying to do with it? Philip On 7/29/14, 11:46 AM, Xun Chen wrote: Hi there, I googled 1588 and lwip and found some

Re: [lwip-users] IEEE-1588 with lwip?

2014-07-30 Thread Xun Chen
Sorry, my bad, missing the subject line I contacted TI regarding that, but haven't got anything useful for the TiVa series, and the Stellarisware example they gave me was a broken project, missing files, and build at all. It seems that TI's team was totally lost in their 1588 support. That's

[lwip-users] IEEE-1588 with lwip?

2014-07-29 Thread Xun Chen
Hi there, I googled 1588 and lwip and found some implements, but the discussions are not from this official lwip support forum. Any suggestion or pointer regarding 1588 support from this lwip official forum? Thanks for any info! Chen ___