<?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>NRF Mesh - Smartphone as Sniffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58749/nrf-mesh---smartphone-as-sniffer</link><description>Hi, 
 Let&amp;#39;s say I have a network with 5 NRF52833-DK and 1 smartphone with the NRFMesh App. How can I achieve to sniff all the ongoing packets in the mesh network on the smartphone? 
 
 My first idea was to use gatt_mesh.c, where every node can send data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Mar 2020 07:55:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58749/nrf-mesh---smartphone-as-sniffer" /><item><title>RE: NRF Mesh - Smartphone as Sniffer</title><link>https://devzone.nordicsemi.com/thread/238716?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 07:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:196637f7-fb78-4e3d-9fb2-74a8300f40cd</guid><dc:creator>SET</dc:creator><description>&lt;p&gt;OK, I got it, the proxy filter was indeed set wrongly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Mesh - Smartphone as Sniffer</title><link>https://devzone.nordicsemi.com/thread/238698?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 06:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6faaa7d6-172e-4930-bc46-9d1e94eef3f1</guid><dc:creator>SET</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any Network PDUs when the mesh nodes communicated with each other, so somehow there seems to be a proxy filter. I&amp;#39;m using the light switch server examples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where can I adjust the filter addresses, I cannot find any in the proxy headers?&lt;/p&gt;
&lt;p&gt;In proxy.c exists the following event callback, that is called when a Mesh message is ongoing, but It wont sent to a GATT connection:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void mesh_evt_handle(const nrf_mesh_evt_t * p_evt)
{
    /* According to Section 6.6 in the Mesh Profile Specification v1.0, we should forward all
     * beacons with new values for IV index or flags. We&amp;#39;ll maintain a small cache of previous beacons
     * to enforce this by best effort.
     */
    if (p_evt-&amp;gt;type == NRF_MESH_EVT_NET_BEACON_RECEIVED)
    {
        if (p_evt-&amp;gt;params.net_beacon.p_rx_metadata-&amp;gt;source != NRF_MESH_RX_SOURCE_GATT &amp;amp;&amp;amp;
            !cache_has_elem(&amp;amp;m_beacon_cache, p_evt-&amp;gt;params.net_beacon.p_auth_value))
        {
            if (beacon_packet_send_to_all(p_evt-&amp;gt;params.net_beacon.p_beacon_secmat,
                                            p_evt-&amp;gt;params.net_beacon.iv_index,
                                            p_evt-&amp;gt;params.net_beacon.flags.iv_update,
                                            p_evt-&amp;gt;params.net_beacon.flags.key_refresh) == NRF_SUCCESS)
            {
                cache_put(&amp;amp;m_beacon_cache, p_evt-&amp;gt;params.net_beacon.p_auth_value);
            }
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;SET&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Mesh - Smartphone as Sniffer</title><link>https://devzone.nordicsemi.com/thread/238558?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 14:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66292ad1-cf61-4a7b-8fb4-4261db24ad90</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sebastian,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As stated in the spec, the proxy server will forward to the proxy (client) all message unless there is a proxy filtering.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understand what you meant by &amp;quot;&lt;span&gt;My first idea was to use gatt_mesh.c, where every node can send data to all it&amp;#39;s GATT connection&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The Proxy node should forward all messages it receives.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What you need to do is to modify the nRF Mesh app to print out any message on GATT.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>