<?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>52832 NFC change the serial number</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21030/52832-nfc-change-the-serial-number</link><description>i download the sample code (\examples\nfc\record_text) to pca10040,it can be detected by NFC reader,the serial number is 5f:46:ac:eb:75:a7:ea,if i want to change this number ,what can i do?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Apr 2017 16:17:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21030/52832-nfc-change-the-serial-number" /><item><title>RE: 52832 NFC change the serial number</title><link>https://devzone.nordicsemi.com/thread/82162?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 16:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe1f62aa-8891-46d5-8e16-9f5aa9f97b95</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;And BTW we may consider providing a simpler way to modify the UID bytes. Just a question: would a dynamic runtime update be required, or would static (compile-time) configuration be enough?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832 NFC change the serial number</title><link>https://devzone.nordicsemi.com/thread/82161?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 12:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77ccce74-e961-4e36-b73c-0d940d72f1f0</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;The first answer is correct, but it needs clarification where to set up these registers. When running on nRF52832 device, remember that the NFC HAL module (hal_nfc_t2t) needs to implement workarounds for NFCT HW errata. One of the workarounds is re-initialization of the NFCT registers after NFC field is lost. So the right place to update is &lt;code&gt;hal_nfc_common_hw_setup()&lt;/code&gt; static function which is called not only when calling &lt;code&gt;nfc_t2t_setup()&lt;/code&gt;, but also in the re-intialization procedure. Otherwise your settings may be overwritten.&lt;/p&gt;
&lt;p&gt;By default the UID is fetched from the FICR registers, but it can be changed. As written in the first answer you can change the &lt;em&gt;NFCID1&lt;/em&gt; size in &lt;em&gt;SENSRES&lt;/em&gt; register. The &lt;em&gt;NFCID1&lt;/em&gt; naming is taken from the NFC Forum Digital Protocol specification.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: remember that setting the &lt;em&gt;NFCID1&lt;/em&gt; registers just sets up the data used in Automatic Collision Resolution Process (ISO 14443-3 protocol). But the UID bytes are also part of the Type 2 Tag memory - these are set through the T2T library API &lt;code&gt;nfc_t2t_internal_set()&lt;/code&gt; and must be consistent with the NFCID1 setting. If you set the internal bytes in &lt;code&gt;hal_nfc_common_hw_setup()&lt;/code&gt; (as described above) you will be OK because it sets up both &lt;em&gt;NFCID1&lt;/em&gt; and the T2T memory UID bytes (in &lt;code&gt;nfc_t2t_setup()&lt;/code&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832 NFC change the serial number</title><link>https://devzone.nordicsemi.com/thread/82160?ContentTypeID=1</link><pubDate>Sat, 01 Apr 2017 17:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cecc6409-ac60-4954-b7f9-0d470f1dcba4</guid><dc:creator>CurtisHx</dc:creator><description>&lt;p&gt;Looks like &lt;code&gt;nfc_t4t_setup&lt;/code&gt; loads the values from the FICR into the NFCID registers, but also caches it in RAM.  Setting the NFCID registers after NFC library initialization does not appear to change the actual serial number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52832 NFC change the serial number</title><link>https://devzone.nordicsemi.com/thread/82159?ContentTypeID=1</link><pubDate>Sat, 01 Apr 2017 11:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3490d7e6-1134-4e8d-b00d-1a7695ce75fd</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;You probably mean ISO14443 7-byte UID (sometimes called Card Serial Number = CSN in RFID) which Nordic calls NFCID. Read more about it &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/nfc.html#concept_swp_h1k_1s__table"&gt;here&lt;/a&gt;. As you see it&amp;#39;s about setting &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/nfc.html?cp=2_2_0_41_11_20#register.SENSRES"&gt;NFCIDSIZE part of SENSRES&lt;/a&gt; register and then and UID itself in &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/nfc.html?cp=2_2_0_41_11_17#register.NFCID1_LAST"&gt;NFCID1_LAST&lt;/a&gt;, &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/nfc.html?cp=2_2_0_41_11_18#register.NFCID1_2ND_LAST"&gt;NFCID1_2ND_LAST&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/nfc.html?cp=2_2_0_41_11_19#register.NFCID1_3RD_LAST"&gt;NFCID1_3RD_LAST&lt;/a&gt;. It is populated by default from &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ficr.html?cp=2_2_0_12_0_37#register.NFC.TAGHEADER0"&gt;FICR NFC.TAGHEADERx&lt;/a&gt; registers.&lt;/p&gt;
&lt;p&gt;(In other words I don&amp;#39;t see any API function call to manage this so I&amp;#39;d write to NFCID1_xxx after NFC library is initialized.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>