<?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>How do i &amp;quot;Read&amp;quot; the data package sent to the host side using Gazelle?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80907/how-do-i-read-the-data-package-sent-to-the-host-side-using-gazelle</link><description>Hi, 
 I got a problem with sending data via gazele protocols, i&amp;#39;m using example library gzll_ack_payload_ host and device, can somebody explain me how this code works? 
 i see code is using a bsp button to send data but i dont know how to read or show</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Oct 2021 08:59:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80907/how-do-i-read-the-data-package-sent-to-the-host-side-using-gazelle" /><item><title>RE: How do i "Read" the data package sent to the host side using Gazelle?</title><link>https://devzone.nordicsemi.com/thread/335884?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 08:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7be5b25-d27e-48da-bdb7-2586cfe0a116</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="hansparson013"]1. i already can connect gzll_ack_payload between two nrf51822.[/quote]
&lt;p&gt;That is good. This example has most of what you ask for.&lt;/p&gt;
[quote user="hansparson013"]2. but how i can send data and read data send from nrf51822 receiver. what is the function for sending like string or byte and how to read the data from receiver.[/quote]
&lt;p&gt;The example demonstrates sending and receiving data, but instead of printing data to the terminal it uses buttons and LEDs (so you control LEDs on of one&amp;nbsp;nRF by button on the other, and vise versa). Please see &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/gzll_examples_device_and_host.html"&gt;the example documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want, you can replace this data by something other than a button press, and print the data instead of setting LEDs depending on it. in that case, referring to the device in SDK 12.3 (examples\proprietary_rf\gzll\gzll_ack_payload\device\main.c) change the input parameters to&amp;nbsp;nrf_gzll_add_packet_to_tx_fifo() to contain the data you want to send, and set the length to the length of the data and not hardcoded to 1 as it is now (value of&amp;nbsp;TX_PAYLOAD_LENGTH). And on the receiving end handle the data as data and do not just set the LED based on the first byte. And do similar changes for communication the other way.&lt;/p&gt;
[quote user="hansparson013"]3. for logging data already done like i can see &amp;quot;&lt;em&gt;Gazell ACK payload example. Host mode.&lt;/em&gt;&amp;quot; from host and &amp;quot;&lt;em&gt;Gazell ACK payload example. Device mode.&lt;/em&gt;&amp;quot;, and then that&amp;#39;s it, nothing happen i can&amp;#39;t see data receive or send.[/quote]
&lt;p&gt;Perhaps it is better if you show your changes, explain how you tested and debugged, and what you expect would happen relative to what actually happened?&lt;/p&gt;
[quote user="hansparson013"]4. because i want to create keyboard with nrf51822 via gazelle comunication, but i know the first basic is gazele comunication (Send and Receive every button keyboard) and how to read the sending and receive data to convert to QMK suport data.[/quote]
&lt;p&gt;I agree it makes sense to understand the basics first. But then I think you would be best of starting with the unmodified example and test that. As you then see, it does actually exchange data. Then gradually modify it, changing the data to something other than a single byte representing a button state.&amp;nbsp;&lt;/p&gt;
[quote user="hansparson013"]if you want to help me, can i comunicate with you personally?, i stand 3 month with this problem and no solution untill today[/quote]
&lt;p&gt;I think it is most productive to continue here. The example needs small adjustments to do what you want, and if you can explain in detail what you have doen and how you have tested etc, and try to do small steps as I suggested, I expect you will make rapid progress.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do i "Read" the data package sent to the host side using Gazelle?</title><link>https://devzone.nordicsemi.com/thread/335865?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 07:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70bb9b91-e409-4706-a837-8e28c5cf53b3</guid><dc:creator>hansparson013</dc:creator><description>&lt;p&gt;hy, thanks for response. so my problem is how to see the data sending via gazelle. my case is&lt;/p&gt;
&lt;p&gt;1. i already can connect gzll_ack_payload between two nrf51822.&lt;/p&gt;
&lt;p&gt;2. but how i can send data and read data send from nrf51822 receiver. what is the function for sending like string or byte and how to read the data from receiver.&lt;/p&gt;
&lt;p&gt;3. for logging data already done like i can see &amp;quot;&lt;em&gt;Gazell ACK payload example. Host mode.&lt;/em&gt;&amp;quot; from host and &amp;quot;&lt;em&gt;Gazell ACK payload example. Device mode.&lt;/em&gt;&amp;quot;, and then that&amp;#39;s it, nothing happen i can&amp;#39;t see data receive or send.&lt;/p&gt;
&lt;p&gt;4. because i want to create keyboard with nrf51822 via gazelle comunication, but i know the first basic is gazele comunication (Send and Receive every button keyboard) and how to read the sending and receive data to convert to QMK suport data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if you want to help me, can i comunicate with you personally?, i stand 3 month with this problem and no solution untill today&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62d.svg" title="Sob"&gt;&amp;#x1f62d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do i "Read" the data package sent to the host side using Gazelle?</title><link>https://devzone.nordicsemi.com/thread/335282?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 11:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0420157a-2899-4d40-b3e4-438286333e87</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the question how you can log data over UART in addition to send it via Gazelle? If so, you can use &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_nrf_log.html"&gt;NRF_LOG&lt;/a&gt; or other UART log implementation (for instance as done in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/uart_example.html"&gt;UART example&lt;/a&gt;) and log the data&amp;nbsp;at the same time as you a Gazell API function to transmit it. If this does not answer the question, then please elaborate.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>