<?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>can any one please tell me how to identify the nRF24L01 uniquely</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4740/can-any-one-please-tell-me-how-to-identify-the-nrf24l01-uniquely</link><description>i m trying to do a tree topology using this module. please help me find the unique i.d of the device.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Dec 2014 22:26:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4740/can-any-one-please-tell-me-how-to-identify-the-nrf24l01-uniquely" /><item><title>RE: can any one please tell me how to identify the nRF24L01 uniquely</title><link>https://devzone.nordicsemi.com/thread/16776?ContentTypeID=1</link><pubDate>Mon, 08 Dec 2014 22:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:819aa4d5-d019-4545-ac78-9b318b77a58b</guid><dc:creator>Derek Goslin</dc:creator><description>&lt;p&gt;Hi NISHIL&lt;/p&gt;
&lt;p&gt;The nRF24L01 devices do not have a unique id, I am currently working in a similar project. You will have to come up with another scheme to uniquely identify a node/device using an nrf24l01 module.&lt;/p&gt;
&lt;p&gt;A few options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A unique ID chip such as &lt;a href="http://ww1.microchip.com/downloads/en/DeviceDoc/20005202A.pdf"&gt;this&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Program an ID per device&lt;/li&gt;
&lt;li&gt;Generate a unique ID using some seed data and then store in device eeprom&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I use the generation mechanism, basically I sample the ADC as the source of the seed values.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint16_t rng16(uint16_t seed)
{
	// Call four times with non-zero args to seed.
	// Period is greater than one quintillion.
	static uint32_t k=1148543851;
	static uint32_t i=1234567891;
	if(seed)
	{
		i=(i&amp;lt;&amp;lt;16)+((k&amp;lt;&amp;lt;16)&amp;gt;&amp;gt;16);
		k=(k&amp;lt;&amp;lt;16)+seed;
		return(0);
	}
	
	k=30903*(k&amp;amp;65535)+(k&amp;gt;&amp;gt;16);
	i=31083*(i&amp;amp;65535)+(i&amp;gt;&amp;gt;16);
	return(k+i);
}

uint16_t system_generate_id()
{
	uint16_t voltage = 0;
	
	for (uint8_t i = 0; i &amp;lt; 4; i++)
	{
		system_read_battery_voltage(&amp;amp;voltage);
		rng16(voltage);
	}
	
	return rng16(0);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The above rng16 function is based on work by George Marsaglia. The method of seeding would not be useful for cryptographic uses but it was random enough for what I needed, which was a unique device ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>