<?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>Problem with beaconed 802.15.4 communications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63751/problem-with-beaconed-802-15-4-communications</link><description>I trying to establish communications with a (non Nordic) beaconed 802.15.4 coordinator. 
 I&amp;#39;ve used some code from the wireless_uart_raw example but did not use the FSM. 
 If I set a_rx_on_idle_set() to 1 I can associate with the coordinator fine. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Aug 2020 12:34:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63751/problem-with-beaconed-802-15-4-communications" /><item><title>RE: Problem with beaconed 802.15.4 communications</title><link>https://devzone.nordicsemi.com/thread/263438?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 12:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f80c1a-b948-40ea-94f8-6d8f658f8777</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Liam,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I took over this case after Edvin went out on vacation.&lt;/p&gt;
&lt;p&gt;I would start with checking if the coordinator for some reason stop sending beacons or if the device stops receiving them. To verify it I would use the nRF Sniffer for 802.15.4: &lt;a title="https://github.com/nordicsemiconductor/nrf-sniffer-for-802.15.4" href="https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4" rel="noopener noreferrer" target="_blank"&gt;https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Check if beacons are generated when the device stops receiving them.&lt;/p&gt;
&lt;p&gt;One question for you, is the device in rx-on-when-idle or is it in rx-off-when-idle, could you clarify?&lt;/p&gt;
&lt;p&gt;Another question, is there an inactive period enabled in the superframe?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with beaconed 802.15.4 communications</title><link>https://devzone.nordicsemi.com/thread/262038?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 14:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ee8170-4628-4719-b2a9-3c6f8a4339e0</guid><dc:creator>Liam</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any update on this please?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;How am I supposed to use mlme_sync_req?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I preceded it with&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; a_pan_id_set( PAN_ID );&lt;/p&gt;
&lt;p&gt;which I presume is enough for the sync to occur and then start association.&lt;/p&gt;
&lt;p&gt;kind regards&lt;/p&gt;
&lt;p&gt;Liam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with beaconed 802.15.4 communications</title><link>https://devzone.nordicsemi.com/thread/260214?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 16:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98016fb9-b9b9-4f8f-823d-8d43ea1cd2d0</guid><dc:creator>Liam</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for getting back to me.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am working on an endpoint and am trying to get it to&amp;nbsp;working with&amp;nbsp;a beaconed coordinator. I&amp;#39;m just calling&amp;nbsp;sys_task_run(); in my main loop.&amp;nbsp;app_task_handler() is empty.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    uint32_t tick = u32ArgGet1ms_Ticks() + 1000;
    while (true)
    {
        sys_task_run();
		
		static teEndState last_state = 0xff;
		teEndState state = tUpdateLinkState();

		if (state != last_state)
		{
			last_state = state;
			
			NRF_LOG_INFO(&amp;quot;State=%u&amp;quot;, state );
		}
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Logging is enabled. Output is below after associating after the passive scan. =PAN:0x889 is output in&amp;nbsp;mlme_beacon_notify_ind(). After a few seconds they stop because&amp;nbsp;&lt;span&gt;mlme_beacon_notify_ind is not longer being called ( I put a breakpoint on it ). Definitely not a hard fault because I have a handler for that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Wireless UART example started.
&amp;lt;info&amp;gt; app: Hello
&amp;lt;info&amp;gt; app: Init ...
&amp;lt;info&amp;gt; app: Addr = 89ABCDEF
&amp;lt;info&amp;gt; app: Addr = 8D1500
&amp;lt;info&amp;gt; app: SAS:800  
&amp;lt;info&amp;gt; app: SR:0, 0 
&amp;lt;info&amp;gt; app: State=1
&amp;lt;info&amp;gt; app: HAS:0,2, 
&amp;lt;info&amp;gt; app: List sz=1 889
&amp;lt;info&amp;gt; app: Pan:0x 889 Ch:0xB Starting Association

&amp;lt;info&amp;gt; app: State=2
&amp;lt;info&amp;gt; app: Associated,AD:1 
&amp;lt;info&amp;gt; app: State=5
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889
&amp;lt;info&amp;gt; app: =PAN:0x889&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;By sync I mean setting the MAC to synchronise with the beacon from the coordinator. This I&amp;#39;d expect to call after the end of the passive scan - so I call&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;mac_mlme_sync.h&amp;quot;

void mlme_sync_loss_ind( mlme_sync_loss_ind_t * ind)
{
	NRF_LOG_INFO(&amp;quot;Sync Loss :%u&amp;quot;, ind-&amp;gt;loss_reason );
}

void StartSync( uint8_t channel )
{
	static mlme_sync_req_t  sMlmeReqRsp;
	sMlmeReqRsp.logical_channel = channel;
	sMlmeReqRsp.track_beacon = true;
	mlme_sync_req( &amp;amp;sMlmeReqRsp );
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;but I see no response either in the handler or my code.&lt;/p&gt;
&lt;p&gt;Hope that makes things a bit clearer&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Liam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with beaconed 802.15.4 communications</title><link>https://devzone.nordicsemi.com/thread/260197?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 15:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca137891-4f21-4118-8b22-8783446f1755</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry. What do you mean by &amp;quot;syncing with the beacon&amp;quot;?&lt;/p&gt;
&lt;p&gt;Where are you looking at these beacons? Do you use a sniffer?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It isn&amp;#39;t really easy to say whats going on, since I don&amp;#39;t know much about your application. Could you share a bit more on how you do it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you enable logging in your project? If so, does the log say anything? When you stop seeing the beacons, have you tried debugging? Is the application still running, or did it stop somewhere in an error handler or a hardfault?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t use the FSM, how do you trigger the beacon packets?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>