<?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>How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94218/how-to-test-802-15-4-radio-with-the-lowest-code-size</link><description>Hi, 
 I am trying to create an ad-hoc network with several nrf5340 boards using 802154 radio, e.g. whenever each node transmits, others can receive the transmitted packets. First, I started with an example from your company such as the multiprotocol_rpmsg</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Nov 2022 13:27:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94218/how-to-test-802-15-4-radio-with-the-lowest-code-size" /><item><title>RE: How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/thread/398122?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 13:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4388b247-afb2-46bd-a3e1-d5972543741f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Lan&lt;/p&gt;
[quote user="landao"]Thank you for your time. This is exactly what I mentioned in the title of this topic.[/quote]
&lt;p&gt;My apologies, you mentioned the debugging issue specifically for the hci_rpmsg sample, I didn&amp;#39;t realize the build issues for 802154_phy_test was related to the same problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The network core of the nRF5340 has considerably less memory available than the application core, and these samples are apparently so close to the limit that there is no room for the additional debugging capabilities.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s important to note that you can still debug code without the debug options set, but you won&amp;#39;t have access to&amp;nbsp;the same amount of information through the debugger.&amp;nbsp;&lt;/p&gt;
[quote user="landao"]So now, I will try to find out a way to fix this by myself.[/quote]
&lt;p&gt;The best of luck &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/thread/398050?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 10:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43e89b53-bb04-4948-a28f-422359b4eb12</guid><dc:creator>landao</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your time. This is exactly what I mentioned in the title of this topic. But you can not do anything for us. The reason is very simple as &amp;quot;&lt;span&gt;We don&amp;#39;t really have a lot of examples for doing proprietary 802.15.4 based protocols unfortunately, you probably need to start out with the 802154_phy_test sample.&amp;nbsp;&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;So now, I will try to find out a way to fix this by myself.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Lan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/thread/398031?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 09:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:589dff4e-d7f0-4a98-8fbe-782b02e48998</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Lan&lt;/p&gt;
&lt;p&gt;It seems the project is too large to build&amp;nbsp;with &lt;strong&gt;&lt;em&gt;Enable debug options&lt;/em&gt;&lt;/strong&gt; set, the flash use overflows by around 8kB.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you disable this option it should be possible to build it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/thread/397876?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 13:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b81a1067-1091-4f7c-85a7-d590315edcb4</guid><dc:creator>landao</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you look at the attached picture? That is what I got when I built the&amp;nbsp;&lt;span&gt;802154_phy_test sample for the nrf5340 board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you rebuild this project again and confirm that it still works?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If this project works well, two nrf boards can communicate with each other, and then I can go further.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7701.error.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/thread/397834?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 11:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94a6f7d3-87c8-4ac6-aff7-ecba203ef040</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Lan&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t really have a lot of examples for doing proprietary 802.15.4 based protocols unfortunately, you probably need to start out with the 802154_phy_test sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is odd that you can&amp;#39;t get it to build, though. Did you make sure to build it for the nrf5340dk_nrf5340_cpunet board?&lt;/p&gt;
&lt;p&gt;Did you make some changes to it since it stopped working?&lt;/p&gt;
&lt;p&gt;If you are going to make your own mesh protocol &amp;#39;from scratch&amp;#39; I hope you are prepared to spend a lot of time on it, this is not an easy undertaking ;)&lt;/p&gt;
[quote user="landao"]Can you suggest how to create an ISR for the 802.15.4 receiver?[/quote]
&lt;p&gt;The 802.15.4 MAC will handle the radio interrupt for you, and call different handler functions depending on what caused the interrupt.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For an overview of the various functions called by the MAC layer refer to the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_802154/doc/api.html#calls-to-the-higher-layer"&gt;Calls to the higher layer&lt;/a&gt; chapter in the documentation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding Bluetooth questions we are happy to help with that, just open a new ticket and share a bit more details about what you are trying to do with Bluetooth &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/thread/397710?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 15:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78816eb-0a0c-43f9-acf8-f4f8fe9eff45</guid><dc:creator>landao</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Many thanks for your answer. We had 40 nrf5340 boards and I would use&amp;nbsp;Visual Studio Code. Please find my answers as follows:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Q1:&amp;nbsp;If I understand you correctly you just want to set up a small mesh type network where any device can transmit to any other?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A1: Actually, I want to design a mesh by my own protocol. For example, when a node transmits a packet, all nodes belonging to its communication range can receive the transmitted packet, but my own protocol will decide which ones are active and which one can be a relay, which ones are in deep sleep mode, and so on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Q2:&amp;nbsp;Is using 802.15.4 an absolute requirement, or would using other radio modes be a possibility if you can still implement the required network topology?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A2: Yes, Now I would use 802.15.4 as a general one for my industrial scenarios, for example, WIRELESS HART is also based on 802.15.4. For my other applications, if you can suggest how to use BLE for nrf5340 with&amp;nbsp;Visual Studio Code, it is also great for me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Q3:&amp;nbsp;Do you need full mesh capability, including the ability for nodes to relay packets between other nodes, or is it fine to only have direct connections between the nodes?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A3: I will design a full mesh by my own protocol. But first, I would work with a small mesh network and then extend it to a full mesh network later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Q4:&amp;nbsp;Is low power a requirement, or is it OK to leave the radio on all the time (meaning you get around 4-5mA constant current draw from the radio) ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A4: Yes, my own protocol may use a timer to wake up the radio from deep sleep mode. I would use a timer using the crystal for synchronization. Which nodes are active as a receiver are decided by my own protocol and I would use an ISR for the receiver mode. Can you suggest how to create an ISR for the 802.15.4 receiver?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lan&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to test 802.15.4 radio with the lowest code size</title><link>https://devzone.nordicsemi.com/thread/397684?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 14:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c623c40b-9c65-4d45-bd21-578c04b96191</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Lan&lt;/p&gt;
&lt;p&gt;If I understand you correctly you just want to set up a small mesh type network where any device can transmit to any other?&lt;/p&gt;
&lt;p&gt;Is using 802.15.4 an absolute requirement, or would using other radio modes be a possibility if you can still implement the required network topology?&lt;/p&gt;
&lt;p&gt;Do you need full mesh capability, including the ability for nodes to relay packets between other nodes, or is it fine to only have direct connections between the nodes?&lt;/p&gt;
&lt;p&gt;Is low power a requirement, or is it OK to leave the radio on all the time (meaning you get around 4-5mA constant current draw from the radio) ?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>