Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FreeRTOS webserver windows issue

Posted by paw3l on March 17, 2016

Hi All,,

I have the FreeRTOS running on cortex, with webserver from freertos example. Everything works fine, Im able to display pages. But this is only when I run client browser on Linux machine. When I try to connect from Windows there is always a timeout. On windows I disabled the firewall, antivirus etc. but no luck. Also I have linux running on virtual machine, and this works as well. I've tried wget from windows (GNU build) and I am also able to pull a html file. Finally Wireshark claims that GET is sent... but on FreeRTOS webserver the rxStream is NULL and lBytes is 0 (for that request). Any ideas?

Thanks, Pawel


FreeRTOS webserver windows issue

Posted by rtel on March 17, 2016

Interesting - we have tried from Windows too. Which browser are you using?

It would be helpful if you could post your wireshark log as an attachment - filtered to show just the HTTP traffic to your target.


FreeRTOS webserver windows issue

Posted by heinbali01 on March 17, 2016

A wget from your windows does work, while a Windows browser can not open the same embedded page? That sounds strange.

What value did you use for backlog in :

~~~~ static const struct xSERVERCONFIG xServerConfiguration[] = { #if( mainCREATEHTTPSERVER == 1 ) /* Allow for 12 simultaneous connections: / / Server type, port number, backlog, root dir. */ { eSERVERHTTP, 80, 12, configHTTP_ROOT }, #endif ~~~~ ?

When I try to connect from Windows there is always a timeout.

Do you mean that you never get to see that page?

Yes please, attach a PCAP file showing the HTTP-session that gets a time-out.

You may want to filter on e.g

ip.addr==192.168.x.x && tcp.port==80

Regards.


FreeRTOS webserver windows issue

Posted by paw3l on March 18, 2016

Seems like I've found the problem. Since we are low on ram I've minimized the MTU and WIN_SEG sizes, and this affected working with windows. The GET from windows has more info from browser, and from linux its smaller. Therefor the linux version was just fine. I will bring back the default server sizes (cleaning up other parts of code), and let you know if all is good.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists