<?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>where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3344/where-to-see-the-output-of-recieved-data-packets-using-gazell-protocol</link><description>hey,
I am new to eval kit and i am asking a very basic question, i want to send the RSSI from PCA10001 board to usb dongle PCA10000.i am looking the examples in sdk for this purpose. now my question is that where we see the packets or bytes recieved</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Aug 2014 05:27:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3344/where-to-see-the-output-of-recieved-data-packets-using-gazell-protocol" /><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12181?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2014 05:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56a0f26c-2011-402b-b5a7-72c44f2abe34</guid><dc:creator>ali zaidi</dc:creator><description>&lt;p&gt;HI Hakon..no its not working... im pasting my code in the answer block below please check if some thing i am missing....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12184?ContentTypeID=1</link><pubDate>Mon, 11 Aug 2014 18:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a86a988-97b1-4884-84fa-90450dbb11d7</guid><dc:creator>ali zaidi</dc:creator><description>&lt;p&gt;please tell me if I am wrong........ as soon as possible&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12183?ContentTypeID=1</link><pubDate>Mon, 11 Aug 2014 18:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:191e600b-f23d-4852-8f92-46f88e71ff11</guid><dc:creator>ali zaidi</dc:creator><description>&lt;p&gt;HI Hakon..no its not working... im pasting my code check if some thing i am missing....
#define PIPE_NUMBER 0 ///&amp;lt; We use pipe 0 in this example&lt;/p&gt;
&lt;p&gt;// GPIO
#define BUTTONS BUTTON_0
#define LEDS    LED_0
#define TX_PAYLOAD_LENGTH 1
static uint8_t data_payload [TX_PAYLOAD_LENGTH];&lt;br /&gt;
static uint8_t ack_payload [NRF_GZLL_CONST_MAX_PAYLOAD_LENGTH];
static volatile bool init_ok, enable_ok, push_ok, pop_ok, tx_success;&lt;br /&gt;
static nrf_gzll_device_tx_info_t tx_info;&lt;/p&gt;
&lt;p&gt;int main()
{
uint8_t rss_check;
uint8_t chk;
uint8_t pipe;
nrf_gpio_cfg_output(LED_1);
nrf_gpio_cfg_sense_input(BUTTON_0,BUTTON_PULL, NRF_GPIO_PIN_SENSE_LOW);
uint8_t debug_led_output;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Setup port directions
nrf_gpio_pin_dir_set(BUTTONS,NRF_GPIO_PIN_DIR_INPUT);
nrf_gpio_pin_dir_set(LEDS,NRF_GPIO_PIN_DIR_OUTPUT);

// Initialize Gazell
init_ok = nrf_gzll_init(NRF_GZLL_MODE_HOST);  

// Load data into TX queue
ack_payload[0] = nrf_gpio_pin_read(BUTTONS);  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;push_ok1 = nrf_gzll_add_packet_to_tx_fifo(PIPE_NUMBER , data_payload1, TX_PAYLOAD_LENGTH);
enable_ok = nrf_gzll_enable();
while(1)
{
nrf_gzll_host_rx_data_ready(PIPE_NUMBER ,rx_info1);
// Error handling// it also needs the full four device support error handling
debug_led_output = ((uint8_t)packet_received &amp;lt;&amp;lt; 4) + ((uint8_t)pop_ok1 &amp;lt;&amp;lt; 3) + ((uint8_t)push_ok1 &amp;lt;&amp;lt; 2) + ((uint8_t)enable_ok &amp;lt;&amp;lt; 1) + (uint8_t)init_ok;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    // If an error has occured
    if(debug_led_output != 0x1F)
    {
				nrf_gpio_pin_toggle(LED_1);
        nrf_gpio_pin_write(LEDS,0xFF);      
        nrf_delay_us(1000000); // 1 second delay 
        nrf_gpio_pin_write(LEDS, debug_led_output);
        nrf_delay_us(1000000); // 1 second delay 
        nrf_gpio_pin_write(LEDS,0xF0 + (uint32_t)nrf_gzll_get_error_code()); 
        nrf_delay_us(1000000); // 1 second delay 
    }

    // Optionally send the CPU to sleep while waiting for a callback.
    // __WFI();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;void nrf_gzll_host_rx_data_ready(uint32_t pipe, nrf_gzll_host_rx_info_t rx_info)
{&lt;br /&gt;
//uint8_t rss;
volatile int16_t rss2;
uint32_t data_payload_length = NRF_GZLL_CONST_MAX_PAYLOAD_LENGTH;
packet_received = true;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Pop packet and write first byte of the payload to the GPIO port.
pop_ok1 = nrf_gzll_fetch_packet_from_rx_fifo(PIPE_NUMBER, data_payload1, &amp;amp;data_payload_length);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;rx_info.rssi=rx_info.rssi;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (data_payload_length &amp;gt; 0)
{
		nrf_gpio_pin_set(LED_1);
    nrf_gpio_pin_write(LEDS,~data_payload1[0]);
}

// Read buttons and load ACK payload into TX queue
ack_payload[0] = nrf_gpio_pin_read(BUTTONS);  // Button logic is inverted.
push_ok1 = nrf_gzll_add_packet_to_tx_fifo(PIPE_NUMBER, ack_payload, TX_PAYLOAD_LENGTH);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12180?ContentTypeID=1</link><pubDate>Mon, 11 Aug 2014 07:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e83bad-83f6-4c78-b48c-ad6fbacf29ff</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Most likely, this is because the compiler sees this as an unused variable. Try using the variable, for instance by setting &amp;quot;rx_info.rssi = rx_info.rssi;&amp;quot; in the callback and see if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12179?ContentTypeID=1</link><pubDate>Sun, 10 Aug 2014 06:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a87754eb-ef26-4c52-9e76-931e71b802b9</guid><dc:creator>ali zaidi</dc:creator><description>&lt;p&gt;Hi HAkon......  when i read out the RSSI from the callback on host side
void nrf_gzll_host_rx_data_ready(uint32_t pipe, nrf_gzll_host_rx_info_t rx_info); the value of RSSI is static or constant value(e.g rx_info.rssi=0xFFD5) and it will not change even if the distance between the two boards got changed.. also I am calling this callback in a infinite while loop so that it can recieve continously the ack packets... same on device side the callback is called in an infinite loop so that it can send the datapayload continousy....... please help me in  resolving this......&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12178?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2014 15:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbda4042-9141-4fb3-9443-5cc2f576d8e7</guid><dc:creator>ali zaidi</dc:creator><description>&lt;p&gt;lots of thanks for the  reply.. please tell me that how i connect more than one host(which is PCA10001 board) with a central device (which is PCA10000) using gazell dynamic pairing example. where i get the individual addresses of all the host devices so that i can access their indvidual RSSI parameters and then send it to the PCA10000 dongle.please help me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12182?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2014 11:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca9883a8-443e-411f-8c33-fbcfa89afea0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You&amp;#39;ll need to change the project define &amp;quot;BOARD_NRF6310&amp;quot; to &amp;quot;BOARD_PCA10000&amp;quot; and &amp;quot;BOARD_PCA10001&amp;quot; (go to &amp;quot;Options for Target&amp;quot; -&amp;gt; &amp;quot;C/C++&amp;quot; tab in Keil), and then do some small alterations to the GPIO configuration in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12177?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2014 13:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e6120e-3765-4322-b9fb-4e35fcd05e61</guid><dc:creator>ali zaidi</dc:creator><description>&lt;p&gt;thanks Hakon......... can u please tell me that gzll examples code are for nrf6310 board and i am having PCA10001 and PCA10000 board how i use them for these boards .. please help me..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: where to see the output of recieved data packets using Gazell protocol</title><link>https://devzone.nordicsemi.com/thread/12176?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2014 12:48:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae0251d1-f2f8-49f5-a62c-450a161d1de8</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For each packet you receive (or ACK your receive), you can read out the rssi in the gazell callback(s):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void nrf_gzll_host_rx_data_ready(uint32_t pipe, nrf_gzll_host_rx_info_t rx_info);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;where nrf_gzll_host_rx_info_t has the rssi:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef struct
{
  bool packet_removed_from_tx_fifo;
  ///&amp;lt;  A payload was received in the ACK.
  int16_t rssi;
  ///&amp;lt; Received signal strength indicator in dBm. @sa nrf_gzll_enable_rssi().
} nrf_gzll_host_rx_info_t;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;On the gazell device side, you will see this callback:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void nrf_gzll_device_tx_success(uint32_t pipe, nrf_gzll_device_tx_info_t tx_info);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Where nrf_gzll_device_tx_info_t holds the rssi:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef struct
{
  bool payload_received_in_ack;   
  ///&amp;lt;  A payload was received in the ACK.
  uint16_t num_tx_attempts;
  ///&amp;lt; Number of attempts used on previous Device packet transmission.
  uint16_t num_channel_switches;
  ///&amp;lt; Number of channel switches needed during previous packet transmission.
  int16_t rssi;
  ///&amp;lt; Received signal strength indicator in dBm. @sa nrf_gzll_enable_rssi().
} nrf_gzll_device_tx_info_t;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can use the simple-uart library to print these to your PC, and read them out using your choice of serial port terminal.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>