<?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>FDS Implementation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60947/fds-implementation</link><description>Hello Everyone, 
 I am trying to implement fds in nrf52832 with sdk 15.2. getting some issues. I am using 5 record key&amp;#39;s and 1 file id. 
 Before coming to that, Can anyone explain what is file id, record id and record key? I have read documentations but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2020 06:33:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60947/fds-implementation" /><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/250574?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 06:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a0447b0-5ffc-4ced-8087-26db27e92d10</guid><dc:creator>Somesh Burkule</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/jared"&gt;Jared&lt;/a&gt; for help.&lt;/p&gt;
&lt;p&gt;I have implemented successfully fds operations with 2 file id&amp;#39;s and 6 records in nrf52. not much difficult as much I was thinking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/248623?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 06:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:295efe01-d431-4f3a-ae94-39fc3b314796</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Somesh Burkule"]what this queue useful for? how we can define this queue size depend on records?[/quote]
&lt;p&gt;&amp;nbsp;From &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_fds_functionality.html?cp=7_1_3_56_1_4#lib_fds_functionality_keys"&gt;documentation&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The size of the internal queue of FDS operations. Increase the size if there are many users, or if your application will queue many operations at a time without waiting for the previous operations to complete. In general, you should increase the queue size if you frequently receive&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__fds.html#ggafa9be5679ab03d785820f2474c5ccc6ea5feceebf00bf1ec9a624a6248637d719"&gt;FDS_ERR_NO_SPACE_IN_QUEUES&lt;/a&gt;&amp;nbsp;errors.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The FDS module is an asynchronous module, and uses a queue for scheduling operations. The size of the queue determines therefore how many write/read etc operations you can schedule at once.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/248610?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 05:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3238cf84-75d5-4241-ab43-1cbe874e4ba5</guid><dc:creator>Somesh Burkule</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/jared"&gt;Jared&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I am using one file id and 5 record key&amp;#39;s. while writing to file, giving error to 5th record. then I increased fds internal queue size from 4 to 8. then it worked properly.&lt;/p&gt;
&lt;p&gt;what this queue useful for? how we can define this queue size depend on records?&lt;/p&gt;
&lt;p&gt;I need to add one more file id and record key. what value should I use for queue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/248215?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 13:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:108ae34f-4471-481a-a79f-b0b1b0348288</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;&lt;span&gt;From &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__fds.html?cp=7_1_6_11_18_19#ga15112e682cc2c4771945fcf5816e3b1b"&gt;documentation&lt;/a&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;fds_record_find (): This function finds the first record in a file that has the given record key. To search for the next record with the same key in the file, call the function again and supply the same&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/structfds__find__token__t.html"&gt;fds_find_token_t&lt;/a&gt;&amp;nbsp;structure to resume searching from the last record that was found.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/248210?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 13:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a592140-29cf-4464-bbd2-ce49257acbd4</guid><dc:creator>Somesh Burkule</dc:creator><description>&lt;p&gt;What if I use file I&amp;#39;d and same record key?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/248180?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 12:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9e7f9ef-e793-4574-a5b1-c10dc9ea8795</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to pass the Record id when you want to access a record since this is something that will be handled by the module. Only Record Key and File Id is necessary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/248178?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 12:44:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:398f8593-be67-41f7-b23b-df302e768268</guid><dc:creator>Somesh Burkule</dc:creator><description>[quote userid="73165" url="~/f/nordic-q-a/60947/fds-implementation/247848"]You use record KEY and file ID when you want to access a Record.&amp;nbsp;[/quote]
&lt;p&gt;Thanks Jared.&lt;/p&gt;
&lt;p&gt;So we can use fds without using Record Id?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS Implementation</title><link>https://devzone.nordicsemi.com/thread/247848?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 12:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e70efa4a-af67-4231-859b-b3ff04b54ee8</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I actually do not agree, I think the specification explains is pretty well:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;Record key&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;16 bits&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;Key that can be used to find the record. The value FDS_RECORD_KEY_DIRTY (0x0000) is reserved by the system to flag records that have been invalidated. See&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_fds_functionality.html#lib_fds_functionality_keys"&gt;Restrictions on keys and IDs&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for further restrictions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;File ID&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;16 bits&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;
&lt;p&gt;ID of the file that the record is associated with. The value FDS_FILE_ID_INVALID (0xFFFF) is used by the system to identify records that have not been written correctly. See&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_fds_functionality.html#lib_fds_functionality_keys"&gt;Restrictions on keys and IDs&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for further restrictions.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;Record ID&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;32 bits&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;Unique identifier of the record.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So a specific Record will be stored in a file with a file ID. A file can have several records with the same record KEY but &lt;strong&gt;different&lt;/strong&gt; record&amp;nbsp;ID. Record ID is therefore unique, record KEY and file ID however is not. Which means that you can have several records stored with the same file ID and record KEY but with a unique record ID. You use record KEY and file ID when you want to access a Record.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_fds_functionality.html?cp=7_1_3_56_1"&gt;Documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>