Questions tagged [lwip]

lwIP is a light-weight implementation of the TCP/IP protocol.

lwIP is a light-weight implementation of the TCP/IP protocol. It is often used in embedded systems. The project website is: http://savannah.nongnu.org/projects/lwip/

334 questions
2
votes
0 answers

Ping test for STM32F767ZI is failed after debugging mode

I've made a project to send sensor data from STM32F767ZI nucleo board (Client) to a desktop computer (Server), using ethernet and lwip with FreeRTOS on STM32CubeIDE. The nucleo board is connected with ethernet cable to a wired broadband router, to…
2
votes
0 answers

why my tcp server sends data twice, my tcp server is based on lwip raw api

here is my server: void tcp_server_init(void) { struct tcp_pcb* tpcb; tpcb = tcp_new(); tcp_bind(tpcb, IP_ADDR_ANY, 13400); tpcb = tcp_listen(tpcb); tcp_accept(tpcb, tcp_server_accept); } static err_t…
Kane
  • 21
  • 1
2
votes
1 answer

How do I initialize LwIP to use MQTT library

I've looked and followed documentation from LwIP 2.0.2. My project contains the MQTT library supplied in the LwIP 2.0.2. I also found some help at https://dzone.com/articles/mqtt-with-lwip-and-the-nxp-frdm-k64f. I'm unable to get a connection, I've…
Müller
  • 313
  • 5
  • 18
2
votes
0 answers

lwIP: memory allocation through LWIP_MEMPOOL_ALLOC returns always NULL

For a company project, I have to use the lwIP library for creating a ppp connection. I have tried to adapt the code contained in the file pppos_example.c. The program compiles without issues. However, when I run this snippet: ppp_sio =…
DerPhysiker
  • 141
  • 7
2
votes
0 answers

How to isolate trafic for two netifs in LwIP

I'm setting up an STM32H7 board with two networks interface ports (netifs). Both are using the LwIP stack. The MCU is not running FreeRTOS (NOSYS), so I'm using RAW API's (callbacks) for LwIP. The two ports have different MAC and IP addresses. Now I…
Jack
  • 151
  • 4
  • 12
2
votes
0 answers

How can I send data with LWIP periodically in a proper way?

I am trying to send some data with LWIP from a microcontroller periodically to a client. I started off with the code from an Atmel-Studio example called "lwIP Raw HTTP basic example". After sending around 100 objects, the connection breaks. I am…
Bruno
  • 21
  • 3
2
votes
0 answers

Is there an IPSec stack which I can use with lwIP

I am developing an embedded device based on OpenRTOS and lwIP (network stack). I would like to add IPSec support to the device. Any known IPSec stacks (open source or commercial) which works with lwIP?
Kimel
  • 199
  • 1
  • 7
2
votes
0 answers

Difference between tcp_write and tcp_output functions

What is the difference between tcp_write() and tcp_output() functions in lwIP v1.4.1 (raw API)? The tcp_write() function enqueues data for transmission and the tcp_ouput() function forces all enqueued data to be sent. I noticed that the tcp_write()…
rogerw
  • 75
  • 5
2
votes
1 answer

Set DHCP options using LwIP in C

Where can I change the configs of the dhcp options when sending a dhcp request with the LwIP library? I need to set option 53 (DHCP message type (discover)), 61 (client identifier), 12 (host name), 60 (vendor class identifier) and 55 (parameter…
MasterRem
  • 112
  • 10
2
votes
0 answers

lwIP HTTPD HTTPS support (with mbed TLS)

I need to develop secure web application for embedded device. I'm already using lwIP, it's internal HTTPD and mbed TLS in the device and I'm standing before question of rewriting lwIP's httpd.c for HTTPS support or using different HTTP server which…
wildfireheart
  • 373
  • 2
  • 4
  • 13
2
votes
1 answer

Using iperf3 for measuring UDP throughput on STM32 board

I have STM3220G-Eval board with STM32F207 MCU. I've loaded UDP Echo Server lwIP based sample application (from CubeMX archive). This app used port #7. I've tried to use iperf3 in client mode (Windows OS), but it failed to work with the board (though…
ilya
  • 1,103
  • 14
  • 36
2
votes
0 answers

Issues with Network Configuration to run a lwIP Echo Server on Linux

I am interested in programming with the lwIP IP Stack. In order to experiment, I've been trying to run the echo server which is included in the example applications. However, I am having difficulty setting up the internal networking configuration to…
InfectedPacket
  • 264
  • 2
  • 8
2
votes
1 answer

Handling multiple LwIP connections at the same time using netconn

I try to establish several simultaneous connections using LwIP netconn API (on stm32f4 discovery board). All of them are in their own threads and work perfectly. But for some reason only one connection can be established at the same time. My code is…
Logen Sand
  • 111
  • 3
  • 10
2
votes
1 answer

STM32 LwiP Multiple TCP Server

I tried to do a 3 or 4 tcp server on my STM32F107. I'm using freeRTOS and LwIP (and the CubeMX + ST HAL library). I create a task tcp_server, and inside the task, I create 3 netconn structure each with different tcp port. Callback: void…
Bobnono
  • 51
  • 2
  • 9
2
votes
0 answers

App engine versions

I use Google App Engine for me nodejs project. Today I tried deploy the new version, but app engine throw error. After that I tried deploy the previous version (worked in past), steel throw error. I do not understand it. It worked before, but now…
1 2
3
22 23