Re: [lwip-users] Doubt

2016-05-05 Thread Martin Velek
Hello, ad 1) search examples on the Internet or look into demo files inside the lwip package. ad 2) use any which supports structure packing and can compile C code and generate code for the cpu (gcc e.g.) on the renesas board. Because there is no main function, you cannot build it as a standalone

Re: [lwip-users] Port to raspberry pi 3

2016-05-05 Thread Martin Velek
Hello, few years ago I have tried to test lwip on my Linux machine. There are some demos in LWIP directory but for me I have used the tap device binded with the eth interface. All packets read from tap were forwared to the LWIP and vice versa. See the attached file as a reference (the unknown lang

[lwip-users] Detect DHCP enabled for netif

2016-02-25 Thread Martin Velek
Hello, can I detect that the DHCP was enabled for a particular netif interface without checking netif internals? I would like to know it only from netif, not from some global flag or state variable associated with netif. In case the system cannot change way of getting ip (static/dynamic) during r

Re: [lwip-users] the sequentiality of the lwip stack

2014-03-24 Thread Martin Velek
Hi, >Can someone provide a common situation which requires one socket used on >multiple threads? I have wrote a simple serial/ethernet converter using RTOS. There was one thread A receiving data from socket So and the second B receiving data from serial port SP. A reads data (passive waiting) fr

Re: [lwip-users] LWIP_ASSERT conn->current_msg != NULL

2014-03-06 Thread Martin Velek
Hi, could you provide some test case? I mean the code you are using (if it is possible) to be able to re-create the assertion failure. Best Martin On Thu, Mar 6, 2014 at 10:35 AM, Dmitriy Zabotlin wrote: > Hi, > > > I have a problem with lwip in my embedded application, I'm using FreeRTOS > 7.6

Re: [lwip-users] LWIP_ASSERT

2014-02-12 Thread Martin Velek
Hi, from wiki http://en.wikipedia.org/wiki/Assertion_%28software_development%29: In computer programming , an *assertion* is a predicate(a true-false statement) placed in a program to indicate that

Re: [lwip-users] why the board sends Gratuitous ARP always?

2014-01-28 Thread Martin Velek
Ok, I got it. I have set also 169.254.1.60, mask 255.255.255.0, gw 169.254.1.1 and nothing has happened (a lot of grat. arps). In my opt is the LWIP_AUTOIP disabled. Please, check if you are not calling the function [netifapi_]netif_set_up in a loop. Do you know that you can enable a debug log f

Re: [lwip-users] why the board sends Gratuitous ARP always?

2014-01-26 Thread Martin Velek
Hi, nothing is wrong. See Request for Comments: 5227 http://tools.ietf.org/search/rfc5227 2.1. Probing an Address Best Martin On Sun, Jan 26, 2014 at 3:55 AM, fangcheng_gmail wrote: > > I'm try to implement LWIP on a board based on the MCU MPC5604E from > Freescale. > > I set the IPv4 addres

Re: [lwip-users] How to stop Dns server?

2014-01-17 Thread Martin Velek
I would suggest to inspect the source code. Afte a while you will find that the DNS LWIP implementation is only client and not server. The DNS part can be completely "removed" by the option (I can't recall it's title by now) in the lwip option file. Best Martin On Fri, Jan 17, 2014 at 6:48 PM, Is

Re: [lwip-users] missing TX packets

2014-01-10 Thread Martin Velek
Hi, maybe it is too late but you should also check this site http://www.lpcware.com/content/nxpfile/lcd-bus-bandwidth-calculator-lpc177x8x to compute the bandwidth for your LCD controller. Martin On Thu, Jan 9, 2014 at 2:50 AM, Lehel Benedek wrote: > Hi Marty, > > I know that the max recommende

Re: [lwip-users] Advice on wifi module

2013-12-13 Thread Martin Velek
Hello, I personally prefer connectone modules because some of them have the RMII interface. I would avoid modules not allowing passing raw ethernet frames because they have only tcp/ip v4 inside (most of them). In the future with the IP v6 it could be a problem and also if you want to implement yo

Re: [lwip-users] lwip and 64bit architecture

2013-11-24 Thread Martin Velek
Ok, not my fault: http://savannah.nongnu.org/bugs/?39683 M. On Mon, Nov 18, 2013 at 8:50 AM, Martin Velek wrote: > Hello, > > has anyone tried the LWIP 1.4.1 on a 64 bit architecture? Currently I > am using it under Ubutnu 12.04.3 - 64 bit (tap device) and it crashes > with a do

[lwip-users] lwip and 64bit architecture

2013-11-18 Thread Martin Velek
Hello, has anyone tried the LWIP 1.4.1 on a 64 bit architecture? Currently I am using it under Ubutnu 12.04.3 - 64 bit (tap device) and it crashes with a double free error somewhere inside the TCP/IP thread during closing a TCP socket. Best Martin P.S. I suspect myself but anyone with a similar

Re: [lwip-users] Lwip reciever not accepting multicast data.

2013-09-28 Thread Martin Velek
Hello, your board has disabled receiving of the ehternet multicast packets. Best Martin On Sat, Sep 28, 2013 at 10:38 AM, Rohan wrote: > I am trying to transmit data through multicast UDP to my board. > In my network i have created two receivers and one transmitter. > The transmitter is my PC a

Re: [lwip-users] Socket Api send copy

2013-05-27 Thread Martin Velek
Maybe there is a problem with your mbox mechanism, because usually the socket functions are waiting for confirmation from tcp/ip thread via semaphore or message queue. I do not know how is handled the non-blocking socket exactly. So in case your socket is non-blocking I would expect a problem with

Re: [lwip-users] Socket Api send copy

2013-05-26 Thread Martin Velek
Hello, > When i use lwip_send(), the copy of the buffer parameter is copied during > the lwip processing of the message. This leads to make the following code > being random : Did you mean "is not copied"? Becasue if it is, it should not happen your previous scenario. Is your connection TCP? I di

Re: [lwip-users] NETCONN_NOCOPY not sending

2013-05-16 Thread Martin Velek
Hi, my crystal ball is telling me that you are using NOCOPY to pass data e.g. from ROM, STACK, SRAM but the EMAC driver does not provide send buffer (zero copy) and thus cannot access the ROM, STACK, SRAM area. This is e.g. case of LPC1788. With NETCONN_COPY, the lwip creates buffers in the right

Re: [lwip-users] lwip netconn_recv issue

2013-05-03 Thread Martin Velek
Hello, you are using at least 4096 of stack (actually much more because netconn_* needs also some). Probably the death is caused by the stack overflow, check how many bytes did you allocated for the task. I do not know how to detect it in the µC/OS. Best Martin On Thu, May 2, 2013 at 4:38 AM, ho

Re: [lwip-users] Firewall

2013-04-22 Thread Martin Velek
Hi, the lwip 1.4.1 allows: > 1. Ability to turn off PING so its not so easy to find. /* don't build if not configured for use in lwipopts.h */ #undef LWIP_ICMP > 2. Limit incoming IP addresses to a range or even single address so that we > only communicate with a known machine. #define LWIP_H

Re: [lwip-users] Fast ARP reply causes queueing problem in etharp_query function

2013-02-25 Thread Martin Velek
Hello, what about to set priority of the receive packet task lower than the tcp/ip task? After returning from an ISR, the tcp/ip task will queue the ARP and then, when tcp/ip task is blocked while waitining for a message, the received packet is processed. Martin P.S. I am not strong at future af

Re: [lwip-users] Long Latency Time

2012-12-13 Thread Martin Velek
Hello, I cannot help you but I can give you an advice. What about to attach a tcpdump/wireshark log (not a screenshot)? And setup debug in LWIP? Best Martin On Wed, Dec 12, 2012 at 3:12 PM, pv33 wrote: > Hi, > > On lwip 1.4, FreeRTOS 7.1.1, we have written a web server. The main part is > > sta

Re: [lwip-users] lwIP crash?!

2012-11-26 Thread Martin Velek
Check these two: http://www.freertos.org/a00110.html#kernel_priority http://www.freertos.org/RTOS-Cortex-M3-M4.html M. On Mon, Nov 26, 2012 at 3:35 PM, ThomasJ wrote: > I tried simplify it for myself by making a drawing.. Maybee other can use it? > >

Re: [lwip-users] lwIP upload speed bottleneck

2012-09-05 Thread Martin Velek
Hello, what about ping with the packet of size 512, 1024 - ... B? Is the response also after 100 ms? Martin On Mon, Sep 3, 2012 at 3:17 PM, tamirmichael wrote: > Hello, I am uploading a very large file to a server using a single POST > command. I have taken notice of different performance tunin

Re: [lwip-users] LWIP crash

2012-09-03 Thread Martin Velek
Hello, I cannot help with your problem, instead of this I can help you, how you could receive some answers. - Enable debug in LWIP by #define LWIP_DEBUG 1 and define some debug output message. This log send in a file as the enclosure. - Write your version of LWIP (e.g. 1.4.0, ...) - Send a captu

Re: [lwip-users] lwip and MPU (FreeRTOS-MPU)

2012-08-30 Thread Martin Velek
Hi, do you mean this situation? Thread A = tcpip thread - stack protected by MPU, only A and privileged mode can access it Thread B = user thread - stack protected by MPU, only B and privileged mode can access it Thread A{ message = wait_for_message_from_A(); ... (dereference)message.pointer_

Re: [lwip-users] libmicrohttpd and FreeRTOS

2012-08-28 Thread Martin Velek
> We should get this (or at least a link to it) onto the lwIP wiki. Not yet. It relies on a socket(netconn) feature to write as much data as possible introduced in 1.4.1. Martin On Fri, Aug 24, 2012 at 8:25 PM, Kieran Mansley wrote: > > On 20 Aug 2012, at 17:12, Martin Velek wrote:

Re: [lwip-users] Problems getting a basic example running

2012-08-28 Thread Martin Velek
Hello, this is not the correct way. You should not call lwip_init by yourselves when NO_SYS = 0. You have to call tcpip_init() which will call lwip_init(). To setup interface you should call netifapi_netif_* functions. Check this site http://lwip.wikia.com/wiki/Initialization_using_tcpip.c Martin

[lwip-users] libmicrohttpd and FreeRTOS

2012-08-10 Thread Martin Velek
Hello, has anyone tried to port libmicrohttpd to LWIP and FreeRTOS? My first look stated that it is tightly coupled with pthread but with a little modifications it could be easy to rewrite it for FreeRTOS. I am afraid of using special functions like poll, or socket properties, which are not compat

Re: [lwip-users] lwip_send() fails if sending to much data.

2012-03-09 Thread Martin Velek
Hi, > Please file a bug report to ensure this doesn't get forgotten. Already reported. http://savannah.nongnu.org/bugs/?func=detailitem&item_id=31084 Martin On Mon, Feb 27, 2012 at 5:39 PM, Simon Goldschmidt wrote: > "Joel Pålsson" wrote: >> Normally socket send() calls returns the number of

Re: [lwip-users] measure transmission errors with lwIP

2012-01-24 Thread Martin Velek
Hi, if you did not try it, look at the lwip stats. Probably you need to enable it in the lwip configuration file and periodically check values. You should also add some stats into Your ethernetif driver. Regards, Martin On Mon, Jan 23, 2012 at 11:36 AM, Thomas Richter (TCD - DE/Dresden) wrote:

[lwip-users] lwipopts question

2011-12-20 Thread Martin Velek
memory to hold anything about pool structure? Thank you for your answers Regards Martin Velek ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] lwip 1.4.0. sanity check

2011-12-20 Thread Martin Velek
Hi, I am using malloc for pbufs (I do not use lwip's memory allocator), there are #define MEM_LIBC_MALLOC 1 #define MEMP_MEM_MALLOC 1 #define MEM_USE_POOLS 0 #define PBUF_POOL_SIZE 0 #define PBUF_POOL_BUFSIZE 16 options in my config. H

Re: [lwip-users] sys.c - sys_msleep

2011-11-23 Thread Martin Velek
in FreeRTOS, the second in lwip. Once again, it has nothing to do with FreeRTOS, it is an app. error. Sorry for any inconvience. Regards Martin On 23 November 2011 09:14, FreeRTOS Info wrote: > > On 23/11/2011 06:58, Martin Velek wrote: >> Hi, >> >> I have defined sys_ms

Re: [lwip-users] inet_chksum.c misbehaving with compiler optimisation?

2011-11-23 Thread Martin Velek
Hi, a simple code, tested on PC. The functions lwip_standard_chksumOpt and lwip_standard_chksum are defined in separate files, a body is taken from lwip . The lwip_standard_chksumOpt has -0s flag. I have added the gcc -v also. It ends with OK everytime but it does not guarantee that everything i

[lwip-users] sys.c - sys_msleep

2011-11-22 Thread Martin Velek
Hi, I have defined sys_msleep() to vTaskDelay() - (1 tick == 1 ms) in sys_arch.h, because the default implementation is quite tricky. However the compiler complains about vTaskDelay() redefinition thus I had to modify sys.c, see below. Is this modification correct? As I know, sys_msleep is called

[lwip-users] tcp/ip task - stack size

2011-11-12 Thread Martin Velek
Hi, I am using lwip 1.4.0 on the ARM7(32bit) platform with FreeRTOS and NO_SYS = 0. There is a parameter to setup stack size of the core lwip task inside lwip header. Has anyone experienced with the smallest possible size (in bytes) to save memory? I mean the worst case scenario when all relevant

Re: [lwip-users] Free LwIP resources

2011-09-08 Thread Martin Velek
Just FYI Do not use netif_* functions with RTOS. Use the netifapi_* variant. Explanation is placed on the wiki or in this conference. Long story short, do not modify lwip variables while the lwip tcpip task is running. Martin On 8 September 2011 11:25, AMSN wrote: > > Hi Richard, thanks a lo

Re: [lwip-users] wiki page Porting for an OS for 1.4.0

2011-07-03 Thread Martin Velek
Hi, thank you for the porting guide. Could I point a misunderstanding? In a sentence in the section "Final declarations for sys_arch.h" there is stated "sys_sem_t, sys_mbox_t, sys_thread_t all refer to pointers to the appropriate types, whether native OS versions or wrappers used to make them conf

[lwip-users] upgrading to 1.4.0

2011-06-23 Thread Martin Velek
Hi, I am doing an upgrade of LWIP from 1.3.2 to 1.4.0(#define NO_SYS 0, the OS supports mutexes) . Please, could you help me to confirm the following steps? 1) Remove all stuff around timers, these are now completely handled inside LWIP. 2) Change function prototypes and implementation around sem

Re: [lwip-users] lwip flow charts

2011-05-27 Thread Martin Velek
Hi, receive http://images2.wikia.nocookie.net/lwip/images/a/a9/Rx_flow.pdf the link is from http://lwip.wikia.com/wiki/LwIP_Wiki Martin On 27 May 2011 07:52, Neelu Rathnam wrote: > Hi, >  Can somebody send me the receive & transmit path flow charts for lwip? > > Thanks, > Neelima > > _

Re: [lwip-users] a beginners questions about lwip, sockets and threads

2011-05-26 Thread Martin Velek
Check this site. http://lwip.wikia.com/wiki/LwIP_and_multithreading Martin On 25 May 2011 09:15, wrote: > Right, so I guess the best idea is to keep the sockets local and per > thread. In my final application I will have a single thread communicating > with the outside world over tcp/ip so thi

Re: [lwip-users] Usual lwIP performance on MCU

2011-04-26 Thread Martin Velek
A little bit out of topic. Here is a nice article from the lwIP Wiki. http://lwip.wikia.com/wiki/Maximizing_throughput Martin On 25 April 2011 19:42, Bill Auerbach wrote: > Unless we (someone in this group) comes up with a standard lwipopts.h file > and a standard UDP and/or TCP performance test

Re: [lwip-users] lwIP example for Luminary Micro LM39B90 MCU - debug help

2011-04-25 Thread Martin Velek
Hi, >> What kind of FreeRTOS - Luminary(TI) porting example are you using? > > enet_lwip - TI's library is designed for SafeRTOS. I ported it to > FreeRTOS, which have a little different API. TI does not provide adaptation layer for lwip option - #define NO_SYS 0 (I do not think sys_arch.c. It me

Re: [lwip-users] lwIP example for Luminary Micro LM39B90 MCU - debug help

2011-04-25 Thread Martin Velek
Hi, > FreeRTOS (very popular platform) for newbies to easily start developing > using netconn api. What kind of FreeRTOS - Luminary(TI) porting example are you using? > spaces, etc), MCU crashes in tcpip_thread. I tried to double, triple, Could you more explain "crashes in tcpip_thread."? Does yo

Re: [lwip-users] LWIP stops responding on ping and HTTP calls from a webbrowser

2011-04-24 Thread Martin Velek
Hi, > > If I understand right, MAC code is not part of lwIP. > > Yes, you understand right. Martin ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] TCP_LISTEN_BACKLOG setting problem

2011-02-22 Thread Martin Velek
Probably you want to set the backlog to a value "0", zero. It will have no effect because of this check. tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog) { /*...some code...*/ #if TCP_LISTEN_BACKLOG lpcb->accepts_pending = 0; lpcb->backlog = (backlog ? backlog : 1); #endif /* TCP_LI

Re: [lwip-users] lwip with libcurl and memory corruption !

2011-02-07 Thread Martin Velek
I would suppose he is using the lwip socket API via a libcurl calls. Maybe the libcurl expects the socket API is at 100% compatible with BSD sockets. If the libcurl handles non-blocking sockets with a standard way ( send - read how many sent - select loop), it may fail due to lwip does not support

Re: [lwip-users] Netconn API with SSI and CGI

2011-01-12 Thread Martin Velek
Hi, > Question: Is it possible to use SSI and CGI with netconn API? Reply: of course. Find an implementation (at 100% exists) of SSI and CGI for a raw mode and rewrite it. In general, SSI and CGI are out of scope the lwip because these are web technologies. http://en.wikipedia.org/wiki/Server_Sid

Re: [lwip-users] Using RTOS dynamic memory allocator

2010-12-25 Thread Martin Velek
Hello, I don't think that's a good idea. If you look closer to a memory allocator documentation http://www.freertos.org/a00111.html, there is stated: >Should not be used if the memory being allocated and freed is of a random size >- this would only >be the case if tasks being deleted each had a

Re: RE: [lwip-users] Length of the packet from low_level_input()

2010-12-10 Thread Martin Velek
Hi, > How about instead of preprocessor magic in the header files swapping > function names, we just don't export the netif_*() functions to the > users of lwIP is running in OS mode? create a feature request. This place is the best - http://savannah.nongnu.org/task/?group=lwip Martin __

Re: [lwip-users] Length of the packet from low_level_input()

2010-12-08 Thread Martin Velek
Hi, > Assuming your call to netif_add() uses tcpip_input as its > last parameter, there is no need for additional locking (the frames are > simply posted into an mbox which is inherently protected) I would like to point out, the netif_* functions should not be used at all when tcp_ip thread is r

Re: [lwip-users] Length of the packet from low_level_input()

2010-12-08 Thread Martin Velek
> Can two threads enter into the low_level() functions? (I am > running lwip with an OS, with a socket based model, and I am using an > Ethernet RX worker task that will run after an RX interrupt) (taken from ethernetif.c example) If you think functions like low_level_output(struct netif *netif, s

[lwip-users] backup sites for lwip

2010-12-01 Thread Martin Velek
Hi, is there a backup site for lwip? The http://savannah.nongnu.org/ is down due to hack. Martin ___ lwip-users mailing list lwip-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Add Wiki link at the main Page

2010-10-11 Thread Martin Velek
> I've been using lwIP for a year and I still get confused about where the > documentation and wiki is if I am not on a machine where I bookmarked it... Try this address http://www.lwip.org it should redirect you to the lwip page. Martin On 11 October 2010 18:23, mat henshall wrote: > I've been

Re: [lwip-users] Single user for administration

2010-10-11 Thread Martin Velek
Hi, do you use some RTOS? If yes, just do not call netconn_accept() after a client connection. The clients will have to wait for the next accept. Or use netconn_listen_with_backlog(struct netconn *conn, u8_t backlog) with backlog = 1 --->!!! I do not known this exactly, maybe some lwip developer

[lwip-users] Re: an idea how to implement sending non-blocking sockets(LWIP1.4.x)

2010-09-30 Thread Martin Velek
07a37c Decimal:134718332 Hex:0x807a37c Binary:101000110100 Octal:01001721574 On 30 September 2010 12:54, Martin Velek wrote: > Hello, > > I have posted a feature request (or bug) > http://savannah.nongnu.org/bugs/?31084 and I would like to discu

[lwip-users] an idea how to implement sending non-blocking sockets(LWIP1.4.x)

2010-09-30 Thread Martin Velek
Hello, I have posted a feature request (or bug) http://savannah.nongnu.org/bugs/?31084 and I would like to discuss a suggestions how to how to implement non-blocking sockets in some reasonable way. I think the lwip could behave as described in the feature request (if a socket is in the non-blockin

Re: [lwip-users] Last call for 1.4.0rc1 issues

2010-09-20 Thread Martin Velek
Hello, I would like to open discussion about sending data over LWIP socket API(1.4.x) in the non-blocking or MSG_DONTWAIT mode. The current implementation returns always EMSGSIZE if data size is more than ((size > TCP_SND_BUF) || ((size / TCP_MSS) > TCP_SND_QUEUELEN)). I cannot find exact descript

lwip-users@nongnu.org

2010-09-15 Thread Martin Velek
Hi, > The fail or success of accessing same socket on 2 thread is depend on OS, > which lwip ported on. If that OS support multi task/process/thread, i think > it is ok. Am i right? A goog explanation is here http://lwip.wikia.com/wiki/LwIP_and_multithreading Martin

Re: [lwip-users] How to securely switch between DHCP and static IP assignment?

2010-07-22 Thread Martin Velek
Hi, if you are running RTOS, I think that your functions are not called from tcp_ip thread, you should switch your netif* functions to these as stated Simon: #define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL) #define netifapi_netif_set_up(n) netifapi_netif_com

Re: [lwip-users] debug help

2010-05-17 Thread Martin Velek
Hi, I think you have to write also your own debug printf functions like extern void LWIPDebug(const char *pcString, ...); extern void LWIPAssert(const char *pcString, ...); #define LWIP_PLATFORM_DIAG(x) {LWIPDebug x;} #define LWIP_PLATFORM_ASSERT(expr) {LWIPAssert (expr);} or similar, setup mini

Re: [lwip-users] Hardware - level for netif_remove()

2010-05-06 Thread Martin Velek
Hi, it should be. Check this link - http://www.nongnu.org/lwip/netif_8c.html#9c6e541f0c184e1ea61a5cd8afe3e979 Martin On 6 May 2010 09:21, Christian Steffen wrote: > Hi, > > for my application it's necessary to close the Ethernet hardware. > The initialisation routine is called by netif_add. Is

Re: [lwip-users] Help in getting maximum throughput with LWIP.

2010-03-31 Thread Martin Velek
> I found in the AVR32 datasheet this line: > • Automatic Pad and CRC Generation on Transmitted Frames Probably this function has not impact on the LWIP checksum but only for Ethernet frame checksum (FCS or CRC32). http://en.wikipedia.org/wiki/Ethernet_frame#Physical_layer Martin _

Re: [lwip-users] bug report

2010-03-07 Thread Martin Velek
: > Martin Velek wrote: >> >> The problem is not a standard(C89) compiler, the problem is the >> standard sprintf function. As you know the embedded system is limited >> in source and full sprintf uses a lot of stack and ROM code. For this >> reasons, there are many

Re: [lwip-users] bug report

2010-03-05 Thread Martin Velek
The problem is not a standard(C89) compiler, the problem is the standard sprintf function. As you know the embedded system is limited in source and full sprintf uses a lot of stack and ROM code. For this reasons, there are many simple replacement of sprintf but of course with a limited functionalit

[lwip-users] bug report

2010-03-05 Thread Martin Velek
Please could someone post this bug? I do not know how to find out my lost username to log-in. Category: LWIP_DEBUGF Severity: 3 - Normal Item Group: Faulty BehaviourStatus: Open lwIP version: 1.3.2 In the file etharp.c, line 1155 in debug mode, the mac addres

Re: [lwip-users] lwip and OS - memory management

2010-03-01 Thread Martin Velek
Thanks. I will post a bug report. These checks are in the file init.c without #if !MEMP_MEM_MALLOC sanity check... #endif Regards, Martin On 1 March 2010 20:15, goldsi...@gmx.de wrote: > I guess these checks should be omitted when using the heap instead of pools. > > Simon > >

Re: [lwip-users] lwip and OS - memory management

2010-03-01 Thread Martin Velek
LWIP_DNS + PPP_SUPPORT))) #error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts" #endif etc. I will try to find if these values have effect. Martin On 1 March 2010 10:45, Kieran Mansley wrote: > On Sun, 2010-02-28 at 13:16 +0100, Martin Velek wrote:

[lwip-users] lwip and OS - memory management

2010-02-28 Thread Martin Velek
Hello, I am running a lwip 1.3.2 with FreeRTOS. I am using own malloc/free/calloc/realloc memory management. What should I setup in the lwipopts.h if I would like use only malloc/free... functions for pbuf's, internal sturctures (arp tables?) and OS support? Currently I have: #define SYS_LIGHTWE

Re: [lwip-users] Using netbufs

2010-02-18 Thread Martin Velek
Hello, I had a similar problem. The workaround is to make an artifical reference to the data. However as Simon said, be careful if you are using a DMA driver. My case was simple - Server/Client approach with waiting for response else retransmitt. In the enclosure is a simple example. It is not a

Re: [lwip-users] lwip.org domain

2009-12-04 Thread Martin Velek
:53 +0100, Martin Velek wrote: >> Hello, >> >> could someone help me with CNAME for *.lwip.org? I have registered >> this domain to not search lwip pages with google or bookmarks, etc. > > I would have thought that the lwIP wiki would be the best place f

Re: [lwip-users] lwip.org domain

2009-12-04 Thread Martin Velek
41 229120 > > > -Ursprungligt meddelande- > Från: lwip-users-bounces+emil.ljungdahl=a2b...@nongnu.org > [mailto:lwip-users-bounces+emil.ljungdahl=a2b...@nongnu.org] För Martin > Velek > Skickat: den 4 december 2009 08:54 > Till: Mailing list for lwIP users > Ämn

[lwip-users] lwip.org domain

2009-12-03 Thread Martin Velek
Hello, could someone help me with CNAME for *.lwip.org? I have registered this domain to not search lwip pages with google or bookmarks, etc. I do not want any profit from it (honestly I am paying for it) ! I have only a domain name, not space, I can edit only dns records. If you have someone

Re: [lwip-users] checksum routine in assembler

2009-11-17 Thread Martin Velek
Which ARM architecture exactly? E.g. on Cortex M3 you can use REV16 or REV instruction (htonx). See CMSIS http://www.arm.com/products/CPUs/CMSIS.html. There is an interface to the special instructions for CortexM3 in many compiler (IAR, Keil, gcc,..). Martin 2009/11/17 Jan Wester : > Hi all > >

[lwip-users] sendind tcp data and created pbuf's

2009-10-14 Thread Martin Velek
alen = 111, ...) netconn_write (..., datalen = 111, ...) will generate a packet in pbuf chain pbuf (0) - len = eth + ip + tcp headers pbuf (1) - len = 111 pbuf (2) - len = 111 ... Thank you Martin Velek #define TCP_WND 2048 #define TCP_MSS 128 #define T

[lwip-users] sending a packet with unreachable IP

2009-10-09 Thread Martin Velek
Hello, I have disabled ARP_QUEUEING to be sure if a packet was sent on the wire. If link is up but on a ARP request is not response, the lwip just printf LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: Ethernet destination address unknown, queueing disabled, packet %p dropped\n", (void

[lwip-users] Re: sntp netconn

2009-10-09 Thread Martin Velek
ninitialized with random value. The same case was also for "netbuf_delete(sendUDPNetBuf), netconn_delete(sendUDPNetConn)" I am sorry. Regards, Martin 2009/10/8 Martin Velek : > Hi, > > if you are insterested in, here is a rewritten contrib socket sntp > client example to us

[lwip-users] sntp netconn

2009-10-08 Thread Martin Velek
Hi, if you are insterested in, here is a rewritten contrib socket sntp client example to use netconn api. I have test it against WinXP with lwip 1.3.1 on LM3S9b92. You have to define SNTP_SERVER_ADDRESS variable and LWIP_SO_RCVTIMEO to enable UDP timeout. A piece of customization(e.g. remove ca

Re: [lwip-users] link down and netconn problem

2009-10-06 Thread Martin Velek
: > On Tue, 2009-10-06 at 14:17 +0200, Martin Velek wrote: >> Hello, >> >> my EMAC driver is capable to detect link down(unplugging eth. cable). >> This situation is returned in low_level_output by ERR_IF and >> netif->flags &= ~NETIF_FLAG_LINK_UP. This is a no

[lwip-users] link down and netconn problem

2009-10-06 Thread Martin Velek
Hello, my EMAC driver is capable to detect link down(unplugging eth. cable). This situation is returned in low_level_output by ERR_IF and netif->flags &= ~NETIF_FLAG_LINK_UP. This is a normal behavior, netconn_sendto returns ERR_IF. However after plugging cable and sending next packet, this opera

[lwip-users] shared struct netconn

2009-10-06 Thread Martin Velek
Hello, has anyone experience with using one netconn structure for: - waiting for data in one task and - sending data in the second? It sometimes works but sometimes the program ends in a critical handler(Cortex-M3 chip). This error is very hard to trace a I cannot find out why. lwip 1.3.1, rtos

[lwip-users] twice UDP netconn_bind

2009-09-21 Thread Martin Velek
tConn; sendUDPNetConn = netconn_new( NETCONN_UDP ); errLWIP = netconn_bind(sendUDPNetConn, IP_ADDR_ANY, 0x4321); testUDPNetConn = netconn_new( NETCONN_UDP ); netconn_bind(testUDPNetConn, IP_ADDR_ANY, 0x4321); Will this configuration run without problems? Thank you for your reply Regards, Martin

Re: [lwip-users] pbuf_realloc in ip.c problem

2009-09-01 Thread Martin Velek
g/releases-noredirect/lwip/lwip-1.3.1.zip >> >> md5 >> af8c4bf938e3ca48af3d54e29d57ab54 *ip.c >> 1a1ec514a862fb1d931f4eb4c236cb21 *pbuf.c >> >> Martin >> >> 2009/9/1 Simon Goldschmidt : >> > Which version of lwIP are you using? This was a bug i

Re: [lwip-users] pbuf_realloc in ip.c problem

2009-09-01 Thread Martin Velek
fixed in 1.3.1, if I remember correctly. Try upgrading to the latest version > to fix this. > > Simon > > > Original-Nachricht >> Datum: Tue, 1 Sep 2009 09:44:09 +0200 >> Von: Martin Velek >> An: lwip-users@nongnu.org >> Betreff: [lwi

[lwip-users] pbuf_realloc in ip.c problem

2009-09-01 Thread Martin Velek
an be cast to the desired type of data pointer in order to be dereferenceable. If the function failed to allocate the requested block of memory, a NULL pointer is returned." Have anyone next similar problem? Thank you for your reply. Regards, Martin Velek _