[lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-11 Thread tirmalabenikasibeni
Hi all, I am developing a MODBUS Server which can serve multiple clients simultaneously, using LwIP 2.0.3 & netconn and FreeRTOS 9.0.0 and STM32H743BI. A client (my pc in this case) can connect the server with no problem. When disconnected and connected again there is no problem also, but if it

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-11 Thread tirmalabenikasibeni
Hello Terry, Terry Barnaby wrote > but in your modbus_handler() thread function do > you actually break out of the while(TRUE) loop and call netconn_close() > and netconn_delete() when the remote client disconnects ? I can show you more. I think I am handling what you say. But I'm not sure.

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-11 Thread tirmalabenikasibeni
Kanka ben uzman değilim LwIP konusunda. STM32H743 için CubeH7 örneklerinden yola çıkarak iskeleti oluşturmaya çalışıyorum. Söylediklerinin üzerine kodu şu şekilde değiştirdim: Bu şekilde hiç başarılı bağlantı kuramadım. Teşekkürler. -- Sent from:

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-11 Thread tirmalabenikasibeni
Terry Barnaby wrote > I don't think you want: > > newconn = NULL; > } > else netconn_delete(newconn); > > in the listen thread. Hi again, It doesn't make any difference whether these lines are written or not. Still same error: "ERR_ABRT" -- Sent from:

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-11 Thread tirmalabenikasibeni
sarp wrote > Kanka Netconn zaten multi client bağlanmasına izin veren bir soket. > Bağlantı başına yeni thread yaratmana gerek yok. Yani diyosunki sadece listen thread olsun, her accepted bağlantı için bir kez callback çağır yeterli. Doğru mu? sarp wrote > Hangi şirkette çalışıyorsun?

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-18 Thread tirmalabenikasibeni
goldsi...@gmx.de wrote > Which code? In the initial code , or revised one: -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list

Re: [lwip-users] Netconn API Server Mode Connection Drope Detection

2019-05-17 Thread tirmalabenikasibeni
Can I see some code, please? -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Netconn API Server Mode Connection Drope Detection

2019-05-16 Thread tirmalabenikasibeni
netconn_receive must return ERR_CLSD when connection closed. Check your error code in every loop. -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org

[lwip-users] TCP Client handshakes but no data transmission

2019-04-30 Thread tirmalabenikasibeni
Hello everyone, I am new in developing with LwIP and working on a TCP Client using RAW API, FreeRTOS 9.0.0, LwIP 2.0.3, STM32H743BI. I can succesfully establish connection but cannot send or receive data. PCAP file is attached. I wrote the code refer to tcpecho_client example with minimal

[lwip-users] TCP Client handshakes but no data transmission

2019-04-30 Thread tirmalabenikasibeni
Hello everyone, I am new in developing with LwIP and working on a TCP Client using RAW API, FreeRTOS 9.0.0, LwIP 2.0.3, STM32H743BI. I can succesfully establish connection but cannot send or receive data. PCAP file is attached. I wrote the code refer to tcpecho_client example with minimal changes

Re: [lwip-users] TCP Client handshakes but no data transmission

2019-04-30 Thread tirmalabenikasibeni
Hi Ricardo, ricardoschoof wrote > Please read for more information about the API's: > https://www.nongnu.org/lwip/2_0_x/raw_api.html I have read that doc. Point is I have a TCP server also written using RAW API, and it works fine. I have tried to write this server with netconn but failed. But

Re: [lwip-users] TCP Client handshakes but no data transmission

2019-04-30 Thread tirmalabenikasibeni
I've changed my code like this: void client_netconn_thread(void){ ip_addr_t DEST_IP, LOC_IP; err_t err0, err2; struct netconn *conn; struct netbuf *incoming; char* buf; Ui16 buflen, i; IP4_ADDR(_IP, IP_ADDR0, IP_ADDR1, IP_ADDR2, IP_ADDR3 ); IP4_ADDR(_IP, DEST_IP_ADDR0,

Re: [lwip-users] TCP Client handshakes but no data transmission

2019-04-30 Thread tirmalabenikasibeni
I've changed my code like this: void client_netconn_thread(void){ ip_addr_t DEST_IP, LOC_IP; err_t err0, err2; struct netconn *conn; struct netbuf *incoming; char* buf; Ui16 buflen, i; IP4_ADDR(_IP, IP_ADDR0, IP_ADDR1, IP_ADDR2, IP_ADDR3 ); IP4_ADDR(_IP, DEST_IP_ADDR0,

Re: [lwip-users] TCP Client handshakes but no data transmission

2019-04-30 Thread tirmalabenikasibeni
Hi, ricardoschoof wrote > First thing I noticed was the large amount of data you're sending > [netconn_write(conn, (const unsigned char*)(TXData), (size_t)(1500)), > NETCONN_NOCOPY);] is this causing some overflow? I just tried with 150 and 15, it doesnt have an effect. Besides my

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-22 Thread tirmalabenikasibeni
Original code is: And a part of lwipopts.h: But sarp corrected me and it turns to: But when the second code is active, there is 1 OK and after 1 ERROR message from modbus client program in PC. After some communications (generally after 3 OK messages) no more tx or rx. Thanks. -- Sent

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns

2019-04-22 Thread tirmalabenikasibeni
I just tryed writing the posts again, but anything in raw text can't be seen. Anyway... The first code I wrote is: void modbus_server_netconn_thread(void *arg) { struct netconn *conn = NULL, *newconn = NULL; err_t err, accept_err; osThreadDef(MBParticular, modbus_handler,