<?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>Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112819/why-data-sent-from-nrf52833dk-can-be-received-by-client-mobile-phone</link><description>Hi, 
 I use Nrf52833dk running ncs v2.6.0. 
 I transport peripherial_uart to peripheral_hids_keyboard ,obviously I wanna make MOBILE OR PC can connect to DK and regard dk as a hid,and then receive data from dk sent by uart. 
 I found that peripheral_hids_keyboard</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2024 12:32:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112819/why-data-sent-from-nrf52833dk-can-be-received-by-client-mobile-phone" /><item><title>RE: Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/thread/492699?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 12:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08520513-1902-4261-ba64-f41a9f93fce6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;To send keypresses, you can call&amp;nbsp;hid_kbd_state_key_set() followed by&amp;nbsp;key_report_send() as done in the sample code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/thread/492653?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 09:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f50a0c10-8f6f-4152-ac4b-d9a82048d183</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Yeah,you are right,but now I add Uart to this demo,and i can get what uart send by&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;em&gt;k_fifo_get&lt;/em&gt;,then i want to send them to phone by ble just like &amp;#39;H&amp;#39; &amp;#39;E&amp;#39; &amp;#39;L&amp;#39; &amp;#39;L&amp;#39; &amp;#39;O&amp;#39;,but now I cant do it successfully.&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;err = bt_hids_inp_rep_send(&amp;amp;hids_obj, conn_mode[i].conn,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; INPUT_REP_KEYS_IDX,(uint8_t const *)buf-&amp;gt;data,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; buf_size, NULL);&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;I use this API to send buf-&amp;gt;data, which is get by follows.&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;struct uart_data_cmd_t *buf = k_fifo_get(&amp;amp;fifo_uart_rx_data,
						     K_FOREVER);	&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/thread/492651?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 09:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a33aeaa3-465b-498b-953e-5ff3f8922b6f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Maybe I misunderstood the question. The device functions as an HID keyboard, and it is possible to programmatically implement a mechanism to send&amp;nbsp;a string of characters such as &amp;#39;H&amp;#39;, &amp;#39;e&amp;#39;, &amp;#39;l&amp;#39;, &amp;#39;l&amp;#39;, &amp;#39;o&amp;#39; over HID. Where this input ends up depends&amp;nbsp;on what you are doing on the phone when this is sent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/thread/492644?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 09:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d96d6b-030e-4c88-b155-0d6476bfcfb2</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;But you can flash peripheral_hids_keyboard in your DK,and you can connect bluetooth signal,open a .word file or your messager app,by pressing button 1 in dk ,your mobile will appear &amp;quot;HELLO&amp;quot;.So i think this is supported.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/thread/492638?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 08:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6640025-a57c-497a-b9cb-9d58d3e2c5ec</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="134573" url="~/f/nordic-q-a/112819/why-data-sent-from-nrf52833dk-can-be-received-by-client-mobile-phone/492634"]the first one is tha my app cant conncet to server,and pic is as follows(but mobile without opening app can connect).[/quote]
&lt;p&gt;Please make sure to not include the event handling for the BLE_GATTS_EVT_SYS_ATTR_MISSING and the&amp;nbsp;BLE_GAP_EVT_SEC_PARAMS_REQUEST event from the ble_app_uart example in your HID application. The HID applications use the Peer manager module to handle these events.&amp;nbsp;&lt;/p&gt;
[quote userid="134573" url="~/f/nordic-q-a/112819/why-data-sent-from-nrf52833dk-can-be-received-by-client-mobile-phone/492634"]And what i wanna is that mobile can receive data without any app,just like using keyboard entry word into .word files.[/quote]
&lt;p&gt;This is not supported by the HID specification, as far as I know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/thread/492634?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 08:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c88ad804-170c-4116-b592-e88d0c4f6d72</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Hi Vidar Berg,&lt;/p&gt;
&lt;p&gt;THANKS for reply,&lt;/p&gt;
&lt;p&gt;but there are two questions,&lt;/p&gt;
&lt;p&gt;the first one is tha my app cant conncet to server,and pic is as follows(but mobile without opening app can connect).And what i wanna is that mobile can receive data without any app,just like using keyboard entry word into .word files.&lt;/p&gt;
&lt;p&gt;the other one is that PC cant connect to server as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1720428669890v1.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why data sent from nrf52833DK can be received by client(mobile phone)</title><link>https://devzone.nordicsemi.com/thread/492632?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 08:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68f19df7-cfd0-4310-9241-1efc32cba814</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;You need your own app to receive data from custom services, such as the Nordic UART service. HID over GATT is supported natively by the OS, therefore it does not require any additional apps. You can use our nRF connect app for testing the data communication with your services.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>