<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ble uart client and uarte, pwm merge</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69936/ble-uart-client-and-uarte-pwm-merge</link><description>Hi , i am trying to merge ble_uart client example together with a project that I built using the app_pwm and uarte driver and I cant seem to manage is it possible to show me how and guide me please. i keep getting library issues and I&amp;#39;m getting lost</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Feb 2021 08:08:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69936/ble-uart-client-and-uarte-pwm-merge" /><item><title>RE: ble uart client and uarte, pwm merge</title><link>https://devzone.nordicsemi.com/thread/296431?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 08:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b593eb85-3230-4df5-bba9-be5898b72774</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Not sure what you mean, can you explain the &amp;quot;ble client&amp;quot; you want to change to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble uart client and uarte, pwm merge</title><link>https://devzone.nordicsemi.com/thread/296374?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 17:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8df4652a-1c1b-4dbd-be74-b8442d65b9c9</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;hi i finally had a chance to look at this and wanted to thank you for the help, just wanted to ask how can I change this to a ble client rather than a ble peripheral as when i am trying to change the uart handler it doesn&amp;#39;t seem to be wokring&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble uart client and uarte, pwm merge</title><link>https://devzone.nordicsemi.com/thread/287776?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 15:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2672f3d2-2db2-4df1-a3c2-39b11b5ac461</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;thank uu ! ill have a look at it&amp;nbsp; &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble uart client and uarte, pwm merge</title><link>https://devzone.nordicsemi.com/thread/287775?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 15:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:924fafc1-ee1f-4e83-9195-fe1844487b93</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Here is one example to use PWM library:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_pwm_5F00_library.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_pwm_5F00_library.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        ...
        NRF_LOG_HEXDUMP_DEBUG(p_evt-&amp;gt;params.rx_data.p_data, p_evt-&amp;gt;params.rx_data.length);

        uint32_t frz = (uint32_t) atoi(p_evt-&amp;gt;params.rx_data.p_data);
        NRF_LOG_DEBUG(&amp;quot;frz: %d&amp;quot;,frz);
        app_pwm_int(frz);


        for (uint32_t i = 0; i &amp;lt; p_evt-&amp;gt;params.rx_data.length; i++)
        ...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble uart client and uarte, pwm merge</title><link>https://devzone.nordicsemi.com/thread/287649?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 09:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4691a196-0088-4e7b-8ca7-f1b2a7f33f2d</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;Thank you for your response, in my application I need to change the pwm frequency depending on the value entered through uart, can this be done as previously&amp;nbsp; I was using the pwm library rather than the driver&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble uart client and uarte, pwm merge</title><link>https://devzone.nordicsemi.com/thread/286865?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 14:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c260c4-4950-435b-a6c3-9011cb0844a2</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Nikolai,&lt;/p&gt;
&lt;p&gt;I made one example for you based on example nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart_pwm. Just release&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3531.ble_5F00_app_5F00_uart_5F00_pwm.zip"&gt;devzone.nordicsemi.com/.../3531.ble_5F00_app_5F00_uart_5F00_pwm.zip&lt;/a&gt; to the same folder.&lt;/p&gt;
&lt;p&gt;Please pay attention to the following codes added to &amp;quot;nus_data_handler(ble_nus_evt_t * p_evt)&amp;quot;. When you send &amp;quot;1&amp;quot; from the central device you will turn on PWM, send &amp;quot;0&amp;quot; will turn&amp;nbsp;off PWM.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        ...
        NRF_LOG_HEXDUMP_DEBUG(p_evt-&amp;gt;params.rx_data.p_data, p_evt-&amp;gt;params.rx_data.length);
        
        switch (p_evt-&amp;gt;params.rx_data.p_data[0])
        {
            case &amp;#39;0&amp;#39;:
                NRF_LOG_INFO(&amp;quot;Turn off PWM&amp;quot;);
                pwm_stop();
                break;
            case &amp;#39;1&amp;#39;:
                NRF_LOG_INFO(&amp;quot;Turn on PWM&amp;quot;);
                pwm_play();
                break;             
          default:
                // No implementation needed.
                break;
        }

        for (uint32_t i = 0; i &amp;lt; p_evt-&amp;gt;params.rx_data.length; i++)
        ...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>