<?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>Commissioner disable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49701/commissioner-disable</link><description>Hi there, 
 I want to do scanning existing networks and for these goals, I need to enable Commissioner on Commissioner side. I use the otCommissionerStart function but when I check the current state I get DISABLED. What I do wrong? And do I need really</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2019 09:18:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49701/commissioner-disable" /><item><title>RE: Commissioner disable</title><link>https://devzone.nordicsemi.com/thread/198371?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 09:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e051b6e3-e4a8-4fda-a537-2f793a2d61f6</guid><dc:creator>Kostiantyn Makhno</dc:creator><description>&lt;p&gt;Thanks. But anyway it&amp;#39;s strange because I did the same as you wrote and nothing worked :) So, I&amp;#39;ll one more time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Commissioner disable</title><link>https://devzone.nordicsemi.com/thread/198334?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 08:11:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90730ce8-a68c-4d92-85d1-804f24621c48</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;You need to start the commissioner using &lt;span&gt;otCommissionerStart&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/openthread/openthread/blob/master/src/cli/cli_commissioner.cpp#L320"&gt;https://github.com/openthread/openthread/blob/master/src/cli/cli_commissioner.cpp#L320&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This will set the commisioner state to &amp;#39;active&amp;#39;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/openthread/openthread/blob/master/src/cli/README_COMMISSIONER.md#start"&gt;https://github.com/openthread/openthread/blob/master/src/cli/README_COMMISSIONER.md#start&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Commissioner disable</title><link>https://devzone.nordicsemi.com/thread/198228?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 15:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1db7208-8709-4ca0-a9c4-1ac743a61867</guid><dc:creator>Kostiantyn Makhno</dc:creator><description>&lt;p&gt;UPGRADE: I&amp;#39;ve already scanned networks, but now it is not joinable (commissioner state is PETITION). How I can set ACTIVE commissioner role state and do it joinable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Commissioner disable</title><link>https://devzone.nordicsemi.com/thread/198225?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 15:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02b8fb6e-d23b-4b90-ba3c-2d54b6c4575f</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need to enable commissioner role. You can check such things in the CLI implementation, and see what OT command are needed for each CLI command.&lt;/p&gt;
&lt;p&gt;There is a &amp;#39;scan&amp;#39; CLI command here: &lt;a href="https://github.com/openthread/openthread/blob/master/src/cli/README.md#scan-channel"&gt;https://github.com/openthread/openthread/blob/master/src/cli/README.md#scan-channel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you go and see which function you should be looking for cli.cpp: &lt;a href="https://github.com/openthread/openthread/blob/master/src/cli/cli.cpp#L206"&gt;https://github.com/openthread/openthread/blob/master/src/cli/cli.cpp#L206&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And you will see that you can use otLinkActiveScan for scanning networks: &lt;a href="https://github.com/openthread/openthread/blob/master/src/cli/cli.cpp#L2781"&gt;https://github.com/openthread/openthread/blob/master/src/cli/cli.cpp#L2781&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>