<?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>Data from Host to device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39057/data-from-host-to-device</link><description>Hi, 
 How do I receive data from host (computer) on my BLE device(Nordic board)? I want to use a simple open source HID API to send data to Nordic board and glow an led or store the data in a buffer &amp;amp; display it using nrf log. How do I do that?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Oct 2018 14:58:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39057/data-from-host-to-device" /><item><title>RE: Data from Host to device</title><link>https://devzone.nordicsemi.com/thread/151706?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 14:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24667855-454e-40c1-842e-58748c4c778a</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;I agree to your points. But the OUTPUT_REPORT_BIT_MASK_CAPS_LOCK uses the default value in HID table. What if it was an arbitrary value? So instead of caps lock should I keep polling for a value from host (HID API) and then may be light an led?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data from Host to device</title><link>https://devzone.nordicsemi.com/thread/151577?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 07:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:141a8502-e307-4a73-bd6f-ace84724e40e</guid><dc:creator>awneil</dc:creator><description>[quote userid="73596" url="~/f/nordic-q-a/39057/data-from-host-to-device/151552"]hid keyboard &amp;amp; mouse example codes do not send any data to HID API[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s not what the description of the&amp;nbsp;&lt;span&gt;&lt;strong&gt;HID Keyboard Application&lt;/strong&gt; says:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Turn Caps Lock on on the computer. Observe that:&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;a class="el" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/examples_bsp.html#BSP_INDICATE_ALERT_3"&gt;BSP_INDICATE_ALERT_3&lt;/a&gt;&amp;nbsp;is indicated.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;The text &amp;#39;CAPSON&amp;#39; will be seen on the text editor window on the computer. This verifies that output report characteristic has been written successfully on the HID device.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Turn Caps Lock off on the computer. This should result in two events:&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;a class="el" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/examples_bsp.html#BSP_INDICATE_ALERT_OFF"&gt;BSP_INDICATE_ALERT_OFF&lt;/a&gt;&amp;nbsp;is indicated.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;The text &amp;#39;capsof&amp;#39; will be seen on the editor window.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;(actually points 6 &amp;amp; 7 - under &amp;#39;Testing&amp;#39;)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_hids_keyboard.html?cp=4_0_0_4_1_2_15"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_hids_keyboard.html?cp=4_0_0_4_1_2_15&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And that GitHub repository has this note:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;If comment out the macro OUTPUT_REPORT_ENABLE and macro FEATURE_REPORT_ENABLE,the project will only used input report and it will run successfully.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So have you looked at what code is controlled by those macros?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;That would be the code that you need ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data from Host to device</title><link>https://devzone.nordicsemi.com/thread/151552?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 23:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba8b474f-d51a-4959-88aa-4b111cc4efd5</guid><dc:creator>bscdb</dc:creator><description>&lt;p&gt;&lt;span&gt;Let me tell you hid keyboard &amp;amp; mouse example codes do not send any data to HID API. The keys are recognized and alphabet gets printed. I tried this example&amp;nbsp;&lt;a href="https://github.com/jayyf/ble_hid_radial_controller"&gt;https://github.com/jayyf/ble_hid_radial_controller&lt;/a&gt;, but I&amp;#39;m getting driver error. So how do I fetch data from the host?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data from Host to device</title><link>https://devzone.nordicsemi.com/thread/150893?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 08:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741cf023-e749-4410-9bd0-f48a48a6b900</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you looked at the HID examples in the SDK?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/examples_ble_peripheral.html?cp=4_0_0_4_1_2"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/examples_ble_peripheral.html?cp=4_0_0_4_1_2&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>