<?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>best strategy to send data from master to slave using secured gazell library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57813/best-strategy-to-send-data-from-master-to-slave-using-secured-gazell-library</link><description>To the kind attention of Nordic support team, 
 I&amp;#39;m evaluating your standard gzp example (proprietary_rf/gzll/gzp_dynamic_pairing, sdk15.3). From what I see, the device to host communication it is very well 
 implemented and device has got callbacks to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Feb 2020 15:22:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57813/best-strategy-to-send-data-from-master-to-slave-using-secured-gazell-library" /><item><title>RE: best strategy to send data from master to slave using secured gazell library</title><link>https://devzone.nordicsemi.com/thread/234708?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 15:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f69ece82-af22-416c-b4d5-ed2b4f6d4ffb</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to send data (ack packet) from host to device, then the device typically needs to send two packets.&amp;nbsp;First packet from device to host typically is used for the host to write the data (ack packet), then second packet from device is to fetch the data (ack packet) from the host.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: best strategy to send data from master to slave using secured gazell library</title><link>https://devzone.nordicsemi.com/thread/234355?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 10:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:306c1d6f-c1d3-476b-a988-7054557f29f9</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;I experimented a little bit. in the host, every time a receive an encrypted packet, I prepare the ack for the non encrypted packet calling:&lt;/p&gt;
&lt;p&gt;unsigned char provaMasterToSlave[9] = {&amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;, &amp;#39;x&amp;#39;};&lt;br /&gt; if(nrf_gzll_ok_to_add_packet_to_tx_fifo(UNENCRYPTED_DATA_PIPE))&lt;br /&gt; {&lt;br /&gt;nrf_gzll_add_packet_to_tx_fifo(UNENCRYPTED_DATA_PIPE,&lt;br /&gt; provaMasterToSlave,&lt;br /&gt; 9);&lt;br /&gt; }.&lt;/p&gt;
&lt;p&gt;For the slave I use what I have been writing before:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;if (nrf_gzll_get_rx_fifo_packet_count(UNENCRYPTED_DATA_PIPE))&lt;/span&gt;&lt;br /&gt;&lt;span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span&gt;unsigned char length;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;if ((nrf_gzll_fetch_packet_from_rx_fifo(UNENCRYPTED_DATA_PIPE, payload, &amp;amp;length)) == true)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;length = 0;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;myCount++;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Preparing the non encrypted ack packet in the host every time the host receives an encrypted packet seems working to have bi-directional communication slightly modifying the standard gzp secured library example. Is it the right way to use library routines? Do you recommend anything else that should be very important to consider to obtain bi directional communication?&amp;nbsp; Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>