<?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>Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop</link><description>Hello, 
 In my project, i want to send the data from the ble device nrf52832 dev kit to the nrf52840 dongle which is connected to a Bluetooth-less desktop. Some desktop doesn&amp;#39;t have inbuilt Bluetooth and for that, i used an nrf52840 dongle with the help</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 May 2023 07:34:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop" /><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427970?ContentTypeID=1</link><pubDate>Mon, 29 May 2023 07:34:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58159f2e-eef8-4fa4-8216-07e870436512</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;i can able to send the data continuously by doing like this,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    ret_code_t ret;
    static const app_usbd_config_t usbd_config = {
        .ev_state_proc = usbd_user_ev_handler,
    };

    //ret = NRF_LOG_INIT(NULL);
    //APP_ERROR_CHECK(ret);

    ret = nrf_drv_clock_init();
    APP_ERROR_CHECK(ret);

    //nrf_drv_clock_lfclk_request(NULL);
    //while(!nrf_drv_clock_lfclk_is_running())
    //{
    //    /* Just waiting */
    //}

    //ret = app_timer_init();
    //APP_ERROR_CHECK(ret);

    //ret = app_timer_create(&amp;amp;m_mouse_move_timer, APP_TIMER_MODE_REPEATED, mouse_move_timer_handler);
    //APP_ERROR_CHECK(ret);

    //init_bsp();

//#if NRF_CLI_ENABLED
//    init_cli();
//#endif

    ret = app_usbd_init(&amp;amp;usbd_config);
    APP_ERROR_CHECK(ret);

//    app_usbd_class_inst_t const * class_inst_mouse;
//#if CONFIG_HAS_MOUSE
//    class_inst_mouse = app_usbd_hid_mouse_class_inst_get(&amp;amp;m_app_hid_mouse);
//#else
//    class_inst_mouse = app_usbd_dummy_class_inst_get(&amp;amp;m_app_mouse_dummy);
//#endif
//    ret = app_usbd_class_append(class_inst_mouse);
//    APP_ERROR_CHECK(ret);

    app_usbd_class_inst_t const * class_inst_kbd;
#if CONFIG_HAS_KBD
    class_inst_kbd = app_usbd_hid_kbd_class_inst_get(&amp;amp;m_app_hid_kbd);
#else
    class_inst_kbd = app_usbd_dummy_class_inst_get(&amp;amp;m_app_kbd_dummy);
#endif
    ret = app_usbd_class_append(class_inst_kbd);
    APP_ERROR_CHECK(ret);

    NRF_LOG_INFO(&amp;quot;USBD HID composite example started.&amp;quot;);
    
    if (USBD_POWER_DETECTION)
    {
        ret = app_usbd_power_events_enable();
        APP_ERROR_CHECK(ret);
    }
    else
    {
        NRF_LOG_INFO(&amp;quot;No USB power detection enabled\r\nStarting USB now&amp;quot;);

        app_usbd_enable();
        app_usbd_start();
    }

    while (true)
    {
        counter+=1;

        nrf_delay_ms(50);

        app_usbd_hid_kbd_key_control(&amp;amp;m_app_hid_kbd, counter, 1);  // Press the key

        nrf_delay_ms(50);

        app_usbd_hid_kbd_key_control(&amp;amp;m_app_hid_kbd, counter, 0);  // Release the key

        nrf_delay_ms(50);

        if(counter==39)
        {
        counter=3;
        }

        while (app_usbd_event_queue_process())
        {
            /* Nothing to do */
        }
//#if NRF_CLI_ENABLED
//        nrf_cli_process(&amp;amp;m_cli_uart);
//#endif

        //UNUSED_RETURN_VALUE(NRF_LOG_PROCESS());
        /* Sleep CPU only if there was no interrupt since last loop processing */
        __WFE();
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;afte this i started to add the code for ble_app_uart_c but&amp;nbsp; after adding this the first time I got&amp;nbsp;&lt;/p&gt;
&lt;h1 id="mcetoc_1h1j6mllm0" class="name"&gt;nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]&lt;/h1&gt;
&lt;p&gt;&amp;nbsp;then I commented out nrf_drv_clock_init() because maybe in a soft device its initialized and i checked that with&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ret = nrf_drv_clock_init_check();&lt;br /&gt; NRF_LOG_INFO(&amp;quot;ret:%d\r\n&amp;quot;,ret);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;it returns 1 so it is initialized then after commenting out no errors but I couldn&amp;#39;t send the data to Notepad.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;what will be the problem.?&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427727?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 09:29:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:542d8ee3-a96c-4a3a-850c-d2c223aec8fb</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Ok.&lt;/p&gt;
&lt;p&gt;Thank you so much for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427706?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 09:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2b6be92-4cf4-4a7a-875f-a40ea66e3a62</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid that we won&amp;#39;t be able to provide more help on this as it&amp;#39;s more of application development that you need to do. Please try to check and debug why you can&amp;#39;t send more than 6 characters.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427691?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 08:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23313de7-cf28-44cb-887d-1c06c021961d</guid><dc:creator>sagarnayakm</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop/427686"]If it&amp;#39;s the case, getting a generic Bluetooth dongle (just search for &amp;quot;Bluetooth 5.0 adapter&amp;quot; ) would be a better option that what you are trying to do now. The nRF52840&amp;nbsp;doesn&amp;#39;t have the software/firmware to do the same as the generic Bluetooth adapter.&amp;nbsp;[/quote]
&lt;p&gt;I have already tried this also with a tp-link Bluetooth adapter and its works fine but I want to make it with nr dongle custom board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to add the usbd_hid_composite example to the merged one (ble_app_uart_c +usbd_ble_uart) so we can achieve this right.?&lt;/p&gt;
&lt;p&gt;And also can&amp;#39;t able to add nrf_nvic.c and nrf_soc.c files.&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427686?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 08:11:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26306cfe-a381-412e-b49a-f27a894c06a3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you already have a solution that works with devices that support Bluetooth, I think the best solution is to use a Bluetooth dongle to allow device that doesn&amp;#39;t have native Bluetooth support to have Bluetooth.&amp;nbsp;&lt;br /&gt;This is generic Bluetooth dongle (not nRF52840 dongle) and would use the computer native Bluetooth driver to communicate via BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that you have already a project that works with phone/tablet and PC that have Bluetooth ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s the case, getting a generic Bluetooth dongle (just search for &amp;quot;Bluetooth 5.0 adapter&amp;quot; ) would be a better option that what you are trying to do now. The nRF52840&amp;nbsp;doesn&amp;#39;t have the software/firmware to do the same as the generic Bluetooth adapter.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427634?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 04:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a132611e-3b1b-40c4-b8e2-7e4e7bfdba69</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s working but how can i bring this to my dongle that&amp;#39;s my question.?&lt;/p&gt;
&lt;p&gt;and I tried to modify the example code a little bit like this, but i couldn&amp;#39;t send more than six characters.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void bsp_event_callback(bsp_event_t ev)
{
    switch ((unsigned int)ev)
    {
        case CONCAT_2(BSP_EVENT_KEY_, BTN_MOUSE_X_POS):
            UNUSED_RETURN_VALUE(app_usbd_hid_mouse_x_move(&amp;amp;m_app_hid_mouse, CONFIG_MOUSE_MOVE_STEP));
            UNUSED_RETURN_VALUE(app_timer_start(m_mouse_move_timer, APP_TIMER_TICKS(CONFIG_MOUSE_MOVE_TIME_MS), NULL));
            break;
        case CONCAT_2(BSP_USER_EVENT_RELEASE_, BTN_MOUSE_X_POS):
            UNUSED_RETURN_VALUE(app_timer_stop(m_mouse_move_timer));
            break;

        case CONCAT_2(BSP_EVENT_KEY_, BTN_MOUSE_LEFT):
            UNUSED_RETURN_VALUE(app_usbd_hid_mouse_button_state(&amp;amp;m_app_hid_mouse, 0, true));
            break;
        case CONCAT_2(BSP_USER_EVENT_RELEASE_, BTN_MOUSE_LEFT):
            UNUSED_RETURN_VALUE(app_usbd_hid_mouse_button_state(&amp;amp;m_app_hid_mouse, 0, false));
            break;

        case CONCAT_2(BSP_EVENT_KEY_, BTN_KBD_SHIFT):
            UNUSED_RETURN_VALUE(app_usbd_hid_kbd_modifier_state_set(&amp;amp;m_app_hid_kbd, APP_USBD_HID_KBD_MODIFIER_LEFT_SHIFT, true));
            break;
        case CONCAT_2(BSP_USER_EVENT_RELEASE_, BTN_KBD_SHIFT):
            UNUSED_RETURN_VALUE(app_usbd_hid_kbd_modifier_state_set(&amp;amp;m_app_hid_kbd, APP_USBD_HID_KBD_MODIFIER_LEFT_SHIFT, false));
            break;

        case CONCAT_2(BSP_EVENT_KEY_, BTN_KBD_LETTER):
            //UNUSED_RETURN_VALUE(app_usbd_hid_kbd_key_control(&amp;amp;m_app_hid_kbd, CONFIG_KBD_LETTER, true));
            for(int i=10;i&amp;lt;25;i++)
            {
            UNUSED_RETURN_VALUE(app_usbd_hid_kbd_key_control(&amp;amp;m_app_hid_kbd,i, true));
            }
            break;
        case CONCAT_2(BSP_USER_EVENT_RELEASE_, BTN_KBD_LETTER):
            //UNUSED_RETURN_VALUE(app_usbd_hid_kbd_key_control(&amp;amp;m_app_hid_kbd, CONFIG_KBD_LETTER, false));
            for(int j=10;j&amp;lt;25;j++)
            {
            UNUSED_RETURN_VALUE(app_usbd_hid_kbd_key_control(&amp;amp;m_app_hid_kbd,j, false));
            }
            break;

        default:
            return; // no implementation needed
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427571?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 14:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bbb7d17-20fa-472d-a976-3ce0e8b2de05</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No you don&amp;#39;t connect a COM port. When you connect it to USB it acts as a keyboard. You need to connect to the nRF USB port . Then it will be a new keyboard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427530?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 12:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:236a5d34-a082-4d13-85db-e53d13cade35</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Yes, I tried but it is not working. if I pressed the button nothing happened. i connect the com port and i can see only the client: so if I send something gives me the command not found.&lt;/p&gt;
&lt;p&gt;Not only 4th button, i tried all its not working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427529?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 12:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d5f1bdd-89db-4247-9f40-61c85f459d66</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you looked at the example I pointed to: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fusbd_hid_composite_example.html&amp;amp;cp=9_1_4_6_50_5"&gt;usbd_hid_composite&amp;nbsp;&lt;/a&gt;, you press button 4 on the DK it will send letter g to the PC. So instead of button 4, you can make it type the letter automatically based on the data you receive.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427492?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 11:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b07557e4-57cc-4d47-a129-508cf59e2bd5</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;sorry, you meant&amp;nbsp;for this,&lt;/p&gt;
[quote userid="113739" url="~/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop/427422"]&amp;nbsp;but the thing is I have implemented this on my peer device and it writes the data to Notepad directly when I connect to PC.[/quote]
&lt;p&gt;i have used the ble_app_hids_keyboard example and used in-built Bluetooth in my PC to connect my peer device and send data from UART.&lt;/p&gt;
&lt;p&gt;so whatever the data sending from uart to the peer device it sends as a hid keyword and these going to print in Notepad on my PC.&lt;/p&gt;
&lt;p&gt;i don&amp;#39;t know that it&amp;#39;s possible with a dongle. if this is not possible sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427480?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 10:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c1cbcb-a35c-46d4-b573-17f24cc131a3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to explain to me how you &amp;quot;write the data to Notepad&amp;quot;&amp;nbsp; on PC.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427422?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 08:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d0979e7-40a5-43e9-8241-45297126dd1b</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t get what a virtual keyboard means,&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop/427279"]If you are planning to connect the HIDs device via BLE to a tablet/phone (not USB) then it&amp;#39;s a different story[/quote]
&lt;p&gt;&amp;nbsp;but the thing is I have implemented this on my peer device and it writes the data to Notepad directly when I connect to PC.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So my point is if the PC doesn&amp;#39;t have in-built Bluetooth, providing Bluetooth capability to that using a dongle. so instead of sending the data to the serial port, I want to write it the same as above.&lt;/p&gt;
&lt;p&gt;so now I hope you understand it properly and tell me how can i proceed with this.&lt;/p&gt;
&lt;p&gt;and one more thing I used Putty software to store the logging data to a .txt file also and it&amp;#39;s working but I don&amp;#39;t want to connect any com port here. Whenever I send the data from a peer device it should directly to Notepad. so is a need to build any driver on the PC side? if so, how can I proceed with that.? any support.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427405?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 08:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73198b8d-3b7b-4fdf-a1e7-33257bc832c0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;Sagarnayakm,&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You need to clarify to me are you planning to make the dongle works as a &amp;quot;virtual&amp;quot; keyboard that can type the data you receive from the peer device ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;If&amp;nbsp;you are, it&amp;#39;s possible. As I mentioned if you look at&amp;nbsp;usbd_hid_composite example, pressing button 4 on the Devkit will type letter &amp;#39;g&amp;#39; on PC . You would need to base from that and develop your application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427316?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 17:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d12f8003-a701-4f8f-a10b-7b898a552f4e</guid><dc:creator>sagarnayakm</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop/427279"]If you are planning to connect the HIDs device via BLE to a tablet/phone (not USB) then it&amp;#39;s a different story [/quote]
&lt;p&gt;I have implemented this thing already like when I connect my peripheral device to a tablet/phone/laptop whatever data I am sending is printed in Notepad on the tablet/phone/laptop.&lt;/p&gt;
&lt;p&gt;but now this thing should happen via dongle --&amp;gt;USB--&amp;gt; to a desktop/PC(Notepad). So first tell me is this possible or not.?&lt;/p&gt;
&lt;p&gt;because already I have my custom board and I don&amp;#39;t want to make it useless.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;please let me know as soon as possible and best way to do that.&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427279?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 14:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46a5c02e-278d-4d29-ba58-5ea89c1273ef</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Sagarnayakm,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m not so sure about what you plan to do. My understanding is that you want to create a &amp;quot;virtual&amp;quot; keyboard, that can type what arrives at the USB port ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But how do you connect that virtual keyboard to PC ? Is it via USB ?&amp;nbsp;&lt;br /&gt;I would suggest to take a look at the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/usbd_hid_composite_example.html?cp=9_1_4_6_50_5"&gt;\examples\peripheral\usbd_hid_composite .&lt;/a&gt;&amp;nbsp;Pressing button 4 when running the demo will send letter &amp;#39;g&amp;#39;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that to create a HID keyboard it&amp;#39;s a bit complex and you will need to do some study to be able to integrate it to your application.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you are planning to connect the HIDs device via BLE to a tablet/phone (not USB) then it&amp;#39;s a different story . And you will need to study the&amp;nbsp;\examples\ble_peripheral\ble_app_hids_keyboard example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/427074?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 05:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e08b387-3e98-4032-8f2e-91e65b24ab22</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Awesome..!!,&lt;/p&gt;
&lt;p&gt;it&amp;#39;s printing to the next line but I have one more doubt can we add the hid example to this code to print it in Notepad on PC as well??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/426981?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 13:50:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9c9d992-881d-4aea-96b1-b1e6f3d1d30d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Please use the code I showed in the last reply to add the ENDLINE string to make it go to new line.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/426857?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 11:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f27486-788e-451b-b9cf-92653e66c965</guid><dc:creator>sagarnayakm</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop/426846"]Regarding&amp;nbsp; your 2nd question, I&amp;#39;m not so sure why you want to have HIDs here. Are you planning to have the HIDs keyboard to &amp;quot;type&amp;quot; the text into the mobile/laptop ?&amp;nbsp;[/quote]
&lt;p&gt;Regarding this, yes my peripheral device contains(ble_app_uart + ble_app_hids_keyboard) and I want to connect this device to my dongle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I did with dev kits nrf52832(ble_app_uart) and nrf52840 with (ble_app_uart_c). once nrf52840 is powered up peripheral device gets connected and I can able to send the data from peri to central.&lt;/p&gt;
&lt;p&gt;now I just change the peripheral device with my custom board having (ble_app_uart + ble_app_hids_keyboard)&amp;nbsp; name &amp;quot;Nordic_keyborad&amp;quot; --&amp;gt; &amp;quot;Nordic_UART&amp;quot; to connect with y dongle but its not connecting, advertising continuously.&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/99406/is-there-any-possible-way-to-sedn-the-data-from-peripheral-device-nrf52832-dev-kit-to-nrf52840-dongle-which-is-connected-to-bluetooth-less-desktop/426846"]Regarding your question number 1, could you show how you print the data out using&amp;nbsp;app_usbd_cdc_acm_write() ?&amp;nbsp;[/quote]
&lt;p&gt;this&amp;nbsp; is how i am sending it USB dongle.&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/Screenshot-_2800_113_2900_.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/426846?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 10:45:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad4637f-c040-472a-95b3-a21087d039b2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sagarnayakm,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please confirm that now you can output to USB instead of UART in the ble_app_uart_c code ?&lt;br /&gt;Regarding your question number 1, could you show how you print the data out using&amp;nbsp;app_usbd_cdc_acm_write() ?&amp;nbsp;&lt;br /&gt;If you have a look at usbd_ble_uart example code you can find this:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        uint16_t length = p_evt-&amp;gt;params.rx_data.length;
        if (length + sizeof(ENDLINE_STRING) &amp;lt; BLE_NUS_MAX_DATA_LEN)
        {
            memcpy(m_nus_data_array + length, ENDLINE_STRING, sizeof(ENDLINE_STRING));
            length += sizeof(ENDLINE_STRING);
        }

        // Send data through CDC ACM
        ret_code_t ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm,
                                                m_nus_data_array,
                                                length);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is how we add the line break and new line in (endline).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding&amp;nbsp; your 2nd question, I&amp;#39;m not so sure why you want to have HIDs here. Are you planning to have the HIDs keyboard to &amp;quot;type&amp;quot; the text into the mobile/laptop ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/426687?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 18:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b29843d0-eb4b-4726-85de-73e77470982f</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, I have tested with the dev kit as well as the dongle and I can able to send the data from the peripheral to the central but here once I send the data from the peri-central data is received perfectly, and after this, the next data is sent and if that data less size of first one then it replaces the older data.&lt;/p&gt;
&lt;p&gt;for example first data &amp;quot;hello&amp;quot; then next data &amp;quot;hi&amp;quot; so in the serial monitor &amp;quot;it receives like this &amp;quot;hillo&amp;quot;. so it&amp;#39;s not printing in the next line.&lt;/p&gt;
&lt;p&gt;1. here I have one more doubt, I want to add NUS service to the ble_app_hids_keyboard example and I have added it successfully without any errors but the device is not advertising after this then I started debugging it throws me err_code 4 for nus_init(). so what will be the issue?&lt;/p&gt;
&lt;p&gt;2. so can we add hid example to the merged one(ble_app_uart_c &amp;amp; ble_usbd ).?? because however, i want to print the data in notepads of connected devices like mobile/laptops.&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/426611?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 13:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e2a88a9-9208-4b25-85a8-2b6370cb3a8b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Sagarnayakm,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry for late response, it was a long holiday last week in Norway.&amp;nbsp;&lt;br /&gt;Have you got any progress in&amp;nbsp;debugging ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;As I mentioned, don&amp;#39;t test on the dongle.&amp;nbsp;&lt;br /&gt;What you need to do is to make the DK - DK works first before you move to the dongle.&amp;nbsp;&lt;/span&gt;&lt;span&gt;With the DK you can step into the code.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My suggestion is that you start with&amp;nbsp;ble_app_uart_c&amp;nbsp;. Try to port the USB library in and the goal is to print out something on the USB CDC virtual UART port by using&amp;nbsp;app_usbd_cdc_acm_write(). Don&amp;#39;t do anything with BLE.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you can print out some&amp;nbsp;dummy log on the USB COM port in the&amp;nbsp;ble_app_uart_c&amp;nbsp; then you can move to the next step to integrate that with the NUS profile.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t test your code here because I need the whole project, not just main.c&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/426420?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 06:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae9af39d-4c0e-4634-b916-299ed1ea6b2f</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Waiting for your reply..??&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/426022?ContentTypeID=1</link><pubDate>Wed, 17 May 2023 04:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61c4407-ade8-404c-a897-9c819386fefe</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for the reply,&lt;/p&gt;
&lt;p&gt;in my code if I used uart_init() then only my peripheral device connected to my dongle then I am trying to send the data from the peripheral so in the peripheral device terminal log its printing and I didn&amp;#39;t receive any data at the dongle side even nothing get started.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok will try to debug it but please test my code as early as possible.&lt;/p&gt;
&lt;p&gt;Thank You.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/425874?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 13:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:578109e9-ac3f-4a22-824d-050568e206c2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Sagarnayakm,&lt;/p&gt;
&lt;p&gt;We are low on staff this week so I haven&amp;#39;t managed to test your code yet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But my suggestion is try to debug the code and see why it doesn&amp;#39;t work as it should.&lt;/p&gt;
&lt;p&gt;Do test step by step, don&amp;#39;t do BLE between two devkits, but only try to send some dummy data on USB CDC to see if it work first before you move to the next step. Just try to write something out on the USB CDC to see if it work (print out some log).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please step in the code and check if there is any assert. Try to&amp;nbsp;make your application as similar to the&amp;nbsp;&lt;span&gt;usbd_ble_uart&amp;nbsp; as possible and compare why it works on the example but not in your code.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any possible way to sedn the data from peripheral device(nrf52832 dev kit) to nrf52840 dongle which is connected to Bluetooth-less desktop</title><link>https://devzone.nordicsemi.com/thread/425746?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 04:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63b7773-dcf0-4d3f-82ce-e6e2fbbb9740</guid><dc:creator>sagarnayakm</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Waiting for your reply..??&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>