Quality RTOS & Embedded Software

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




Loading

xQueueSend appends CR LF?

Posted by Duncan McNamara on September 28, 2012
All,

I have a web client that is requesting a file from a server and sending it to the stdout (UART) and plan for other destinations. For resource management, the buffer used for response has been 8 bytes. This works fine with a direct write to the UART (bad in RTOS) but the xQueueSend in the following case appends CR and or LF. This breaks up the single stream of HTML and is not desirable.

xUARTMessage.pcMessage = vBuffer;
xQueueSend(xUARTQueue, &xUARTMessage, portMAX_DELAY );

vBuffer is NULL terminated. Could the termination be that cause? I can not find the reason in Queue.c

Regards,
Duncan

RE: xQueueSend appends CR LF?

Posted by Duncan McNamara on September 28, 2012
Dear all,

Please forgive me for this post. The handling of the strings was on my side from xQueueRecieve and how I handled the UART. Issue closed.


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS