<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438064#M2702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;I'm assuming you are running the UART in a polled mode.....correct?&lt;/P&gt;&lt;P&gt;If yes, when a specific task is doing a printf() call, that printf() is part of the running task.&amp;nbsp; If a higher priority task becomes READY, then the low priority task will prempt causing the mixing of characters on the output.&amp;nbsp; If you don't want mixing of characters then you need to synchronize the task with a mutex.&lt;/P&gt;&lt;P&gt;Conversely you might create a task that receives messages (the printf() contents) to handle printf() capabilities and it prints messages in order received.&lt;/P&gt;&lt;P&gt;When transmitting in polled mode I'm not sure why a character might be missing.&amp;nbsp; I would think the driver would wait to place another character in the transmit buffer until the buffer is freed/ready.&lt;/P&gt;&lt;P&gt;Can you try the mutex or printf_task approach?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 16:05:48 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2015-05-18T16:05:48Z</dc:date>
    <item>
      <title>Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438062#M2700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm moving/rebuilding a project to the new KSD 3 and KSDK 1.2. However, I'm running into some weird behaviour and instability with my program crashing regularly. I'm also having trouble debugging as the Task Aware Debugging is no longer smart enough to parse out the task stacks for each running task. I can only look at the current status of the current executing task. Basically I'm having three tasks trip over each other, outputting their printf characters all at once. I get:&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is coming from three tasks (the main task, the sonar task, and the sender task).&lt;/P&gt;&lt;PRE class="plain" name="code"&gt;Icarting Sonar task...Sonar task started su i cneSsisoftunlilayl.r &amp;nbsp; ztasik rnunnging isnittialaizicng kmes sagoe qfueu es.s.. suczn ReX t ask1 st2art0ed &amp;nbsp;&amp;nbsp; ces*sfu~lly*. ~*~*~*~*~*~*~*~*~*~*~&amp;nbsp; &lt;/PRE&gt;&lt;P&gt;I can parse it out to this:&lt;/P&gt;&lt;PRE class="plain" name="code"&gt;Unknown: Ic&amp;nbsp; i&amp;nbsp;&amp;nbsp;&amp;nbsp; sucn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main_task: Starting Sender task...Sender task started successfully. arting Sonar task...Sonar task started su cessfully.&amp;nbsp;&amp;nbsp; Sonar_task: Sonar task running&amp;nbsp; nitializing message queues... &amp;nbsp;&amp;nbsp;&amp;nbsp; RX task started&amp;nbsp;&amp;nbsp; cessfully.&amp;nbsp;&amp;nbsp; Sender_task: initil zing stack of s ze 120 *~*~*~*~*~*~*~*~*~*~*~*~ Time to wake Socket Man&lt;/PRE&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that's even still not quite right, as some of the characters are missing or incorrect.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338681" rel="nofollow noopener noreferrer" target="_blank"&gt;EMLU_KDS3_K64.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 17:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438062#M2700</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-05-15T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438063#M2701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm the same behaviour does not happen in the KSDK 1.1 and KDS 2. The print statements all execute appropriately. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 23:59:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438063#M2701</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-05-16T23:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438064#M2702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;I'm assuming you are running the UART in a polled mode.....correct?&lt;/P&gt;&lt;P&gt;If yes, when a specific task is doing a printf() call, that printf() is part of the running task.&amp;nbsp; If a higher priority task becomes READY, then the low priority task will prempt causing the mixing of characters on the output.&amp;nbsp; If you don't want mixing of characters then you need to synchronize the task with a mutex.&lt;/P&gt;&lt;P&gt;Conversely you might create a task that receives messages (the printf() contents) to handle printf() capabilities and it prints messages in order received.&lt;/P&gt;&lt;P&gt;When transmitting in polled mode I'm not sure why a character might be missing.&amp;nbsp; I would think the driver would wait to place another character in the transmit buffer until the buffer is freed/ready.&lt;/P&gt;&lt;P&gt;Can you try the mutex or printf_task approach?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 16:05:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438064#M2702</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-18T16:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438065#M2703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David, &lt;/P&gt;&lt;P&gt;I can't say if I'm running in a polled mode or not, I'm running with whatever the standard defaults are for MQX in the new project creation guide. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I find more perplexing is that throughout MQX 4.0.0, 4.0.1, 4.1.0, 4.1.0, 4.1.1, and KSDK 1.1.0 the same code running the same tasks did not cause this behaviour. Printf statements nearly always executed completely and discretely, except for some rare cases where one printf statement would be preempted part way through for another task to execute and print something, before returning and finishing (likely as you describe above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, my main task is the highest priority with 10, and should be able to finish outputting before another task is given the ability to execute. then sonar has a priority of 11 and should be outputting it's relevant information and blocking before the sender task is allowed to run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really do not believe each task rapidly pre-empting each other, printing a single character, then blocking to allow another task to print a single character again could be correct behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well, during debugging I see (only with KSDK 1.2) that printf statements do not even finish before the debugger believes it's halting at later statements of code. I need to step through several later lines of code before the characters will finish outputting to the terminal. This was also not the behaviour in any previous versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this is directly tied to another issue I've been having that I'm likely going to make a post about later today: That the debuggers in the KDS 3.0 seems to be quite buggy, and even more unstable than in KDS 2.0. I'm often running into packet errors, breakpoints that can't be properly set, stepping through code that fails to work properly, etc. With both the Segger and PEMicro debuggers/board firmware. I have not tried the OpenOCD as I was under the impression for debugging it would be the least refined and least recommended. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 17:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438065#M2703</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-05-18T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438066#M2704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;Can you clean the project, re-ZIP and re-post.&amp;nbsp; Our scanner detected a virus.....probably our KDS project ;-)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 19:05:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438066#M2704</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-18T19:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438067#M2705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, I thought it was strange that it was so large. I've cleaned and re-zipped, and edited the top post to have the proper attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 19:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438067#M2705</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-05-18T19:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438068#M2706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;When I run your project on the FRDM-K64F using KDS_3.0/KSDK_1.2.0 the terminal output is:&lt;/P&gt;&lt;P&gt;Main task has started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Config loaded, configID is 10 and the errors were 0.&lt;/P&gt;&lt;P&gt;Config from Defaults loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting Error Log task...&lt;/P&gt;&lt;P&gt;Config loaded, configID is 10 and the errors were 0.&lt;/P&gt;&lt;P&gt;Error loading SDCARD config.&lt;/P&gt;&lt;P&gt;MAC: 0:0:5e:a0:0:e1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempting to bind an IP via DHCP...(60s timeout)&lt;/P&gt;&lt;P&gt;DHCP bind successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Current IP info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IP Address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 10.0.1.183&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subnet Address&amp;nbsp; : 255.255.255.0&lt;/P&gt;&lt;P&gt;Initializing message queues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting Sender task...Sender task started successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting Sonar task...Sonar task started suIc&lt;/P&gt;&lt;P&gt;cneSsisoftunlilayl.ri&lt;/P&gt;&lt;P&gt; ztasik rnunnging &lt;/P&gt;&lt;P&gt;Isnittialaizicng kmes sagoe qfueu es.s..i&lt;/P&gt;&lt;P&gt;CAzn ReX t ask1 st2art0ed suc&lt;/P&gt;&lt;P&gt;ces*sfu~lly*.&lt;/P&gt;&lt;P&gt;~*~*~*~*~*~*~*~*~*~*~&lt;/P&gt;&lt;P&gt;Time to wake Socket ManSocket man powering up.&lt;/P&gt;&lt;P&gt;socket man a go&lt;/P&gt;&lt;P&gt;Socketman should be awake now.&lt;/P&gt;&lt;P&gt;*~~*~*~*~*~*~*~*~*~~*~*~*&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2230 and time 1432055952&lt;/P&gt;&lt;P&gt;Got a value from the message queue, value: 2230, seconds: 1432055952, temperature: 69900&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432055952 and reading 2230&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T17:19:12Z-3:00&amp;amp;field1=2.230&amp;amp;field2=69.900&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 963 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:19:12 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "339ccb1bfecf54ac523f10de978f1128"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: 891c5d33-b701-4968-9714-d605db2a27f7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;234032&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:19:12 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 234032&lt;/P&gt;&lt;P&gt;No RTCS error, should have worked?!?! waiting 15 seconds... .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2225 and time 1432055982&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2219 and time 1432056012&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2214 and time 1432056042&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2209 and time 1432056072&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2204 and time 1432056102&lt;/P&gt;&lt;P&gt;Got a value from the message queue, value: 2204, seconds: 1432056102, temperature: 69800&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432056102 and reading 2204&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T17:21:42Z-3:00&amp;amp;field1=2.204&amp;amp;field2=69.800&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 963 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:21:42 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "95bd0b7b0651529e583113d2bdcfa7b5"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: b952e664-3cdb-4424-9d41-8e01fe9bcf09&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;234033&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:21:42 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 234033&lt;/P&gt;&lt;P&gt;No RTCS error, should have worked?!?! waiting 15 seconds... .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2201 and time 1432056132&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2199 and time 1432056162&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2196 and time 1432056192&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2194 and time 1432056222&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2191 and time 1432056252&lt;/P&gt;&lt;P&gt;Got a value from the message queue, value: 2191, seconds: 1432056252, temperature: 69800&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432056252 and reading 2191&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T17:24:12Z-3:00&amp;amp;field1=2.191&amp;amp;field2=69.800&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 963 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:24:12 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "da7c103946de4a9694fdf20b89c6eecf"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: 46f67f05-f13f-4aea-94a5-5ba81c87a692&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;234034&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:24:12 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 234034&lt;/P&gt;&lt;P&gt;No RTCS error, should have worked?!?! waiting 15 seconds... .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2191 and time 1432056282&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2191 and time 1432056312&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2191 and time 1432056342&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2191 and time 1432056372&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2192 and time 1432056402&lt;/P&gt;&lt;P&gt;Got a value from the message queue, value: 2192, seconds: 1432056402, temperature: 69800&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432056402 and reading 2192&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T17:26:42Z-3:00&amp;amp;field1=2.192&amp;amp;field2=69.800&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 963 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:26:43 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "0ed9ac76c47607d5e3f12044c24ba658"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: 8a129369-2dbc-4e53-a04e-b6e5b22eb96b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;234035&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:26:43 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 234035&lt;/P&gt;&lt;P&gt;No RTCS error, should have worked?!?! waiting 15 seconds... .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2194 and time 1432056432&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2196 and time 1432056462&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2199 and time 1432056492&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2202 and time 1432056522&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2205 and time 1432056552&lt;/P&gt;&lt;P&gt;Got a value from the message queue, value: 2205, seconds: 1432056552, temperature: 69800&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432056552 and reading 2205&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T17:29:12Z-3:00&amp;amp;field1=2.205&amp;amp;field2=69.800&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 963 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:29:13 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "1e836bde528ee9261659a977686b7134"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: 3311c533-1a13-4e1d-add5-fa255dc27fc1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;234036&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:29:13 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 234036&lt;/P&gt;&lt;P&gt;No RTCS error, should have worked?!?! waiting 15 seconds... .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2210 and time 1432056582&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2215 and time 1432056612&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2220 and time 1432056642&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2225 and time 1432056672&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2230 and time 1432056702&lt;/P&gt;&lt;P&gt;Got a value from the message queue, value: 2230, seconds: 1432056702, temperature: 69800&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432056702 and reading 2230&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T17:31:42Z-3:00&amp;amp;field1=2.230&amp;amp;field2=69.800&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 963 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:31:43 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "7538b7d1f86c053867820b6834d0d1c1"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: 7d0ba06f-2383-4570-8fbb-323d50a9fd22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;234037&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 17:31:43 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 234037&lt;/P&gt;&lt;P&gt;No RTCS error, should have worked?!?! waiting 15 seconds... .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 2238 and time 1432056732&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did have to modify your project C/C++ Build-&amp;gt;Build Variables-&amp;gt;PROJECT_KSDK_PATH from the older KSDK_1.1.0 to KSDK_1.2.0 and fix path to linker file.&amp;nbsp; Is your application pointing to the correct KSDK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 18:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438068#M2706</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-19T18:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438069#M2707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change in behaviour might be down to KDS2 versus KDS3 differences - they use different versions of the GNU tools and Newlib/Newlib Nano libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Newlib Nano in KDS3 uses less RAM (statically at least, it does some dynamic allocation). Part of the saving is achieved by having no IO buffers. In KDS2 the Nano configuration still had some buffering - this might explain the strange interleaving effects you reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your project configured to use Newlib Nano or full Newlib?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both libraries also allow you to make them thread-safe. This is RTOS-specific so you would need to use a recursive mutex (or MQX equivalent) in conjunction with the Newlib/Nano thread safe hooks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 18:18:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438069#M2707</guid>
      <dc:creator>daveedwards</dc:creator>
      <dc:date>2015-05-19T18:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438070#M2708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David, I see the same garbled, weird behaviour there:&lt;BR /&gt;"Starting Sonar task...Sonar task started suIc&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;cneSsisoftunlilayl.ri&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;ztasik rnunnging&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Isnittialaizicng kmes sagoe qfueu es.s..i&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;CAzn ReX t ask1 st2art0ed suc&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;ces*sfu~lly*.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;~*~*~*~*~*~*~*~*~*~*~"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am using the correct KSDK_PATH. The reason you had to change it is my project is defined relative to the KSDK_PATH Environment variable, which KSDK 1.2.0 doesn't set by default. I manually changed the variable to point to the correct KSDK location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 18:27:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438070#M2708</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-05-19T18:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438071#M2709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;Ok...good to know you are pointing to correct KSDK.&lt;/P&gt;&lt;P&gt;Please make following change to your small_ram_config.h header:&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;** NIO serial settings&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef NIO_SERIAL_BUFF_SIZE&lt;/P&gt;&lt;P&gt;#define NIO_SERIAL_BUFF_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256 //DES was 64&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#endif /* __small_ram_config_h__ */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After re-compiling your application and running it I get the following:&lt;/P&gt;&lt;P&gt;Serial port COM5 opened&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. Main task has started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Config loaded, configID is 10 and the errors were 0.&lt;/P&gt;&lt;P&gt;Config from Defaults loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting Error Log task...&lt;/P&gt;&lt;P&gt;Config loaded, configID is 10 and the errors were 0.&lt;/P&gt;&lt;P&gt;Error loading SDCARD config.&lt;/P&gt;&lt;P&gt;MAC: 0:0:5e:a0:0:e1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempting to bind an IP via DHCP...(60s timeout)&lt;/P&gt;&lt;P&gt;DHCP bind successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Current IP info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IP Address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 10.0.1.183&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subnet Address&amp;nbsp; : 255.255.255.0&lt;/P&gt;&lt;P&gt;Initializing message queues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting Sender task...Sender task started successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting Sonar task...Sonar task started successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sonar task running&lt;/P&gt;&lt;P&gt;Initializing message queues...&lt;/P&gt;&lt;P&gt;CAn RX task started successfully.&lt;/P&gt;&lt;P&gt;Initilizing stack of size 120&lt;/P&gt;&lt;P&gt;*~*~*~*~*~*~*~*~*~*~*~*~&lt;/P&gt;&lt;P&gt;Time to wake Socket ManSocket man powering up.&lt;/P&gt;&lt;P&gt;socket man a go&lt;/P&gt;&lt;P&gt;Socketman should be awake now.&lt;/P&gt;&lt;P&gt;*~~*~*~*~*~*~*~*~*~~*~*~*&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 3151 and time 1432062166&lt;/P&gt;&lt;P&gt;Got a value from the message queue, value: 3151, seconds: 1432062166, temperature: 69900&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432062166 and reading 3151&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T19:2:46Z-3:00&amp;amp;field1=3.151&amp;amp;field2=69.900&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 958 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 19:02:46 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "cfcd208495d565ef66e7dff9f98764da"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: 17a78006-02b6-4399-9b8f-26584123e842&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 19:02:46 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 0&lt;/P&gt;&lt;P&gt;thingspeak returned status 0, did not save, returning error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error, processResponse() failed with error code 1704&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error, receiveFromThingSpeak() failed with error code 1704&lt;/P&gt;&lt;P&gt;RTCS error, putting back on stack&lt;/P&gt;&lt;P&gt;.. Attempting to send to thingspeak at time 1432062166 and reading 3151&lt;/P&gt;&lt;P&gt;Creating Body with 2 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ***Here is the message body *** &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created_at=2015-5-19T19:2:46Z-3:00&amp;amp;field1=3.151&amp;amp;field2=69.900&amp;amp;status=Sending+by+sender+task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connected to b86a9995, port 80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Write successful, we hope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Received 963 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the received message: &lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 19:02:48 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html; charset=utf-8&lt;/P&gt;&lt;P&gt;Transfer-Encoding: chunked&lt;/P&gt;&lt;P&gt;Connection: keep-alive&lt;/P&gt;&lt;P&gt;Vary: Accept-Encoding&lt;/P&gt;&lt;P&gt;Status: 200 OK&lt;/P&gt;&lt;P&gt;X-Frame-Options: ALLOWALL&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Headers: origin, content-type, X-Requested-With&lt;/P&gt;&lt;P&gt;Access-Control-Max-Age: 1800&lt;/P&gt;&lt;P&gt;ETag: "5103750b5ef0ce6f80c2892669f44f34"&lt;/P&gt;&lt;P&gt;Cache-Control: max-age=0, private, must-revalidate&lt;/P&gt;&lt;P&gt;Set-Cookie: request_method=POST; path=/&lt;/P&gt;&lt;P&gt;X-Request-Id: a5c2301c-81c8-40b5-a662-fe87b44f1620&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;234052&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;&lt;P&gt;Server: nginx/1.7.5&lt;/P&gt;&lt;P&gt;Date: Tue, 19 May 2015 19:02:48 GMT&lt;/P&gt;&lt;P&gt;Content-Type: text/html&lt;/P&gt;&lt;P&gt;Content-Length: 172&lt;/P&gt;&lt;P&gt;Connection: close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.7.5&amp;lt;/center&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Result: 234052&lt;/P&gt;&lt;P&gt;No RTCS error, should have worked?!?! waiting 15 seconds... .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Emulated sensor with reading 3164 and time 1432062196&lt;/P&gt;&lt;P&gt;.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 19:07:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438071#M2709</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-19T19:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438072#M2710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not positive, but I believe it was using full Newlib, I switched the linker settings to check the "Use newlib-nano" option and the output does not appear to differ. However, my code seems to be running a bit more stable as it's not ceasing without reason like it has been before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change in newlib and removal of the output buffers could explain this behaviour, if the output is now getting buffered or processed at some later stage instead of being placed in the buffer before the code moves onto the next statement of execution. This is a bit stranger as far as execution and debugging goes, but output printf output is only for debugging purposes so it may be fine now that I can feel safe it's not indicative of worse underlying problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 19:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438072#M2710</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-05-19T19:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438073#M2711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, that does fix the output jumbling right up. It still doesn't explain why the output lags behind the debugger (it used to be if I stepped past a printf() line it would completely print before the debugger paused at the next breakpoint) but the output is no longer interleaved in the same way. It also doesn't seem to affect some unhandled interrupt errors I'm getting, so I'll keep testing and reading about some of those other issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 19:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438073#M2711</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-05-19T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438074#M2712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;The UART is being used in interrupt mode and therefore once the UART transmit buffer is full, the remainder of the printf() string is placed into the UART driver software buffer/fifo.&amp;nbsp; The UART interrupt driver handles pushing the rest out while your code continues to run (i.e. the printf is non-blocking).&lt;/P&gt;&lt;P&gt;In debugger step mode the interrupt process is paused.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 20:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438074#M2712</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-19T20:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Garbled printf(), multiple tasks printing at once. Why is this output overlapping? KSDK 1.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438075#M2713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So I'm confused about the fix. If printf isn't thread safe, how can increasing the buffer size fix the garble?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 01:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Garbled-printf-multiple-tasks-printing-at-once-Why-is-this/m-p/438075#M2713</guid>
      <dc:creator>rajbatra</dc:creator>
      <dc:date>2016-01-21T01:48:36Z</dc:date>
    </item>
  </channel>
</rss>

