[lwip-users] Two ethernet port with one mac address

2019-02-26 Thread vrnud
Hi, I am new to lwip. basic: 1) I have two ethernt port.(external word interface) 2) Only one ip address is assigned to both the port. 3) RMII interface is used.(3rd port which is going to controller). Set up: 1) Both ports are connected to external ethernet switch. 2) PC is connected to ethernet

Re: [lwip-users] Two ethernet port with one mac address

2019-03-01 Thread vrnud
Hi, I am using STM32 controller interface with ksz8863. ksz8863 has two external port which can be connected to ethernet switch. when any one port of ksz8863 is connected to ethernet switch ping is working fine. but when both the ports of ksz8863 is connected to ethernet switch ping is not worki

Re: [lwip-users] Two ethernet port with one mac address

2019-03-01 Thread vrnud
Hi, I am using STM32 controller interface with ksz8863. ksz8863 has two external port which can be connected to ethernet switch. when any one port of ksz8863 is connected to ethernet switch ping is working fine. but when both the ports of ksz8863 is connected to ethernet switch ping is not w

Re: [lwip-users] Two ethernet port with one mac address

2019-03-03 Thread vrnud
thank you Regards, vrund -- 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

[lwip-users] lwip: Scan through the heap searching for a free block that is big enough, beginning with the lowest free block.

2019-03-25 Thread vrnud
Hi, I am trying to impelement modbus over TCPIP. I am using FreeRTOS + lwip +STM32f4 (cube Mx generated code). Lwip version is 2.0.0. Freertos version 9.0.0. heap 4 is used. is it ok? TCPIP echo server application is used. while trying to connect from Modscan utility program stucks in mem.c file

Re: [lwip-users] Scan through the heap searching for a free block that is big enough, beginning with the lowest free block.

2019-03-26 Thread vrnud
Hi, Thank you for your quick response. Yes. I am developeing TCP server. >>"When you say "heap 4", I don't understand. Is it a FreeRTOS parameter or >>some vendor setting or ?" --heap_4.c is a file in freeRTOS. sorry for mentioning it. i should not have mentioned it in first place. >>"What

Re: [lwip-users] lwip: Scan through the heap searching for a free block that is big enough, beginning with the lowest free block.

2019-03-28 Thread vrnud
HI, I am very new to the tcpip world. netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input); is called from MX_LWIP_Init() function. "But "raw" APIs functions must ONLY be called from TCPIP thread." I dont know how to do that. can you please provide some example for the

Re: [lwip-users] lwip: Scan through the heap searching for a free block that is big enough, beginning with the lowest free block.

2019-03-28 Thread vrnud
Hi, Kindly help me. i want to add hsr tag. (6 bytes) HSR ethertype = 0x892f what part of the code should i add? Regard, Vrund -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

Re: [lwip-users] Add new header & tail

2019-03-28 Thread vrnud
HI, can you tell me what did you do to get it work properly. I am also facing similar problem. my header is of not ESP it is different. Regards, Vrund -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-u

[lwip-users] how to add header in lwip

2019-04-16 Thread vrnud
HI, Where in lwip stack i can add header in Ethernet frame? Kindly see the attached image. Regards, Vrund -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-u

[lwip-users] Pbuf_cat problem

2019-04-22 Thread vrnud
Hi, If sntp is disabled, lwip ver 2.0.0 is working fine. enableing sntp and keeping SNTP_UPDATE_DELAY to 15 mnts. creates problem. Code stucks in for loop in Pbuf_cat function. Regards, Vrund -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

Re: [lwip-users] Pbuf_cat problem

2019-04-23 Thread vrnud
Hi, If sntp is disabled, lwip ver 2.0.0 is working fine. enableing sntp and keeping SNTP_UPDATE_DELAY to 15 mnts. creates problem. Code stucks in for loop in Pbuf_cat function. *Just to add one more point.* if SNTP_UPDATE_DELAY is kept at 16 sec. it is not possible to have free memory p

[lwip-users] pbuf_init

2019-05-09 Thread vrnud
Hello, below is the code for pbuf_init. is it ok? static u8_t pbuf_pool_memory[(PBUF_POOL_SIZE * LWIP_MEM_ALIGN_SIZE(PBUF_POOL_BUFSIZE + sizeof(struct pbuf)))]; #if !SYS_LIGHTWEIGHT_PROT static volatile u8_t pbuf_pool_free_lock, pbuf_pool_alloc_lock; static sys_sem_t pbuf_pool_free_sem; #endi

[lwip-users] tftp max block size

2019-05-20 Thread vrnud
Hello, What should be the maximum number of bytes that i can send in one block for tftp server example. Regards, Vrund -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org https://lists.

[lwip-users] timeout

2019-06-02 Thread vrnud
Hello, If TCP-modbus master(client) opens up a connection and after that it does not query to server not it closes the connection. in such case is there receive timeout ? Regards, Vrund -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

[lwip-users] number of connection open

2019-06-03 Thread vrnud
Hello, how would i know how many tcp connections are established in lwip? Regards, Vrund -- 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/lwi

[lwip-users] Identifying specific connection

2019-06-10 Thread vrnud
Hello, I am developing Modbus TCP server. I am using Raw api. There can be 5 simultaneous connection. Is there any way to identify which connection get timeout out of 5 connection? Regards, VR -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html __

[lwip-users] tcp_poll

2019-09-06 Thread vrnud
Hello, How to call tcp_poll()? Regards, Vrund -- 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] tcp_poll

2019-09-06 Thread vrnud
Hi, 1) I am facing problem in sntp communication. LWIP_TCPIP_TIMEOUT 1 tcpip_timeout(5000,tcp_timeout_handler,NULL); is called from tcp_echoserver_init. so my tcp_echoserver_poll is get called and i take the decision in function for closing of the tcp connection.(close the connection in case of

[lwip-users] call back

2019-09-13 Thread vrnud
HI, i have called the tcp_poll(newpcb, tcp_echoserver_poll, 1); in the init. but tcp_echoserver_poll is never getting called. Regards, -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org

Re: [lwip-users] Two ethernet port with one mac address

2019-09-18 Thread vrnud
Hi, I have used RMII interfacce and it is working fine. For hardware connection refer ksz8863 eval board schematic, datasheet and Microchip forum help. For software part use stm's STM32CubeMX for generating code. it has incoporated lwip and basic setting. Regards, Vrund -- Sent from: http://

[lwip-users] connection drops

2020-03-06 Thread vrnud
Hi, I am using lwip for Modbus and Http application. I have used raw api for both the application. I am facing disconnect problem with modbus application while http application is running. Web page is auto refeshing at 3 seconds. kindly let me know what are the reasons and where should i look i

Re: [lwip-users] connection drops

2020-03-06 Thread vrnud
Hi, Thanks for your reply. if only modbus application is running, unit is working completely fine. Problem starts after web browser application is started. i am guessing it might be synchronisation issue. but its too early to say anything about problem without proper debugging. i know the lwip d