<?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>Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93242/capturing-modem-trace-on-arm-system</link><description>Hi Team! 
 I need to capture a modem trace over a long period of time while driving around, and there is no way my laptop&amp;#39;s battery can handle that. I thought I&amp;#39;d use a Raspberry Pi and a big power bank, but unfortunately nRF Toolkit doesn&amp;#39;t work on ARM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jul 2025 09:38:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93242/capturing-modem-trace-on-arm-system" /><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/542737?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 09:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:224b4c4b-4f0b-4f38-82cc-b9e62cda9751</guid><dc:creator>AlanIoT</dc:creator><description>&lt;p&gt;For those who come after:&lt;/p&gt;
&lt;p&gt;the process is very simple in the end:&lt;/p&gt;
&lt;p&gt;1. On the ARM device, you need an FTDI cable capable of 1Mbaud communication.&lt;/p&gt;
&lt;p&gt;2. Plug this cable into one of the USB ports in the ARM device&lt;/p&gt;
&lt;p&gt;3. capture the raw input from the serial connection that opened when plugging in the cable. I recommend going as simple as possible; the following line worked for me:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;configure the serial device:
stty -F {device_path} {baud_rate} raw -clocal -crtscts
save the modem trace coming through the serial connection to your log file:
cat {device_path} &amp;gt; {log_file}

example:
stty -F /dev/ttyUSB0 1000000 raw -clocal -crtscts
cat /dev/ttyUSB0 &amp;gt; filename.bin&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4. then copy the .bin file to a non-ARM platform of your choice.&lt;/p&gt;
&lt;p&gt;5. Make sure you have &lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/guides/installing.html"&gt;nrfutil installed&lt;/a&gt;&amp;nbsp;(download, move to path, make executable)&lt;/p&gt;
&lt;p&gt;6. make sure you have the correct plugin installed:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil install trace&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;7. convert the .bin file into a pcapng file using the nrfutil trace command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil trace lte --input-file /path/to/filename.bin --output-pcapng /path/to/wireshark_capture.pcapng&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;8. Done. The trace can now be analysed as a wireshark capture.&lt;/p&gt;
&lt;p&gt;hope this helps. variations and other complementary info can be found in the nrfutil documentation&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/542607?ContentTypeID=1</link><pubDate>Wed, 16 Jul 2025 07:42:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c43ada-1194-4295-a21b-59c63923de09</guid><dc:creator>AlanIoT</dc:creator><description>&lt;p&gt;Hi Achim &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;I think one of the more plausible and flexible ways to extract valid modem traces in the field with minimal effort is the solution suggested by ibiglari. To cache / intermediately store the trace bit by bit on an external device via UART (same process you&amp;#39;d use to get it in the lab, but mobile) and then convert it / play it back to a nrfutil compatible System at a later time. But I agree with you, I can&amp;#39;t find a cohesive and well documented way of achieving this. I&amp;#39;m sure we&amp;#39;ll figure it out soon, but some documentation and a sample to help more easily gather modem traces from field devices would be greatly appreciated. I&amp;#39;ll try to make a post / guide as soon as I&amp;#39;ve figured out a way to reliably get the trace collection via ARM-device working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/542568?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 17:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8d1c14-ad93-4aec-982e-14a1a76399f1</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;AFAIK, Nordic &amp;quot;always&amp;quot; asks about modem traces, but I&amp;#39;m not aware, that this long lasting issue about consolidating &amp;quot;long term modem traces&amp;quot; has been solved. I&amp;#39;m not even sure, if it&amp;#39;s possible at all to read such long traces, if it&amp;#39;s more than a few hours and MBs.&lt;/p&gt;
&lt;p&gt;In the meantime (I use NCS 2.9.2), the modem trace function comes with some more options. Especially the one using an external flash is pretty nice. It records the trace and to read it out, it just writes that to the UART and so it&amp;#39;s possible to read it with the cellular monitor.&lt;/p&gt;
&lt;p&gt;If you want to use it with other boards than the DKs, you may need to add your boards to the &amp;quot;nrf/snippets/nrf91-modem-trace-ext-flash&amp;quot;. One pitfall doing so may be the &amp;quot;CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE&amp;quot; and the &amp;quot;CONFIG_NRF_MODEM_LIB_TRACE_FLASH_SECTORS&amp;quot; which both must fit to the flash size.&lt;/p&gt;
&lt;p&gt;But it requires an external flash and is also limited by the size of the flash and the selected level.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/542533?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 13:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3999d3b-b204-440e-88de-8418c6f72d62</guid><dc:creator>AlanIoT</dc:creator><description>&lt;p&gt;Sorry to revive this thread after so much time, but is there any chance you could share the script or maybe even any new methods you found? We&amp;#39;ve captured a bin file, but so far it isn&amp;#39;t decoded / translated properly into wireshark. Any hints would be very helpful, thanks :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/398046?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 09:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37f2aed-630f-4813-b950-8293e92db24d</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; Nordic advised me something was &amp;quot;wrong&amp;quot; with the traces&lt;/p&gt;
&lt;p&gt;Yep, that information, what&amp;#39;s wrong, would be required in order to continue with that idea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/398036?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 09:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf043515-93f5-42a2-8803-eebb36debb66</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;How much of your users will be able to use a external flash on their own with the provided documentation? We will see ...&lt;/p&gt;
&lt;p&gt;Edited:&lt;/p&gt;
&lt;p&gt;Hm, that&amp;#39;s only for the nRF9160-DK with the &amp;quot;external Flash&amp;quot; already on board, right?&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t work for a Thingy:91 &amp;quot;out-of-the-box&amp;quot;, there a really external Flash would be required?&lt;/p&gt;
&lt;p&gt;To use a nRF9160-DK, USB power bank fails (it&amp;#39;s the power bank, which switches off), but using an &amp;quot;external battery&amp;quot; works. So the setup for the wild will be a box with the nRF9160-DK and a battery.&lt;/p&gt;
&lt;p&gt;1 MB for traces is not too large. Is it considered to be used as &amp;quot;ring buffer&amp;quot;, means it keeps the last 1 MB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/398021?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 08:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:501c01ca-c1e6-46de-b0a4-6ba624a4400d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;We are continuously trying to improve our deliveries, and tracing has been a front that we&amp;#39;ve tried to improve upon. Lately with this PR:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/9364"&gt;https://github.com/nrfconnect/sdk-nrf/pull/9364&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll relay your feedback internally.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/397979?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 22:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f1aaf0f-38e7-4547-82f3-c70722e5cc75</guid><dc:creator>ibiglari</dc:creator><description>&lt;p&gt;I could share the small application and script I wrote for RPi, but Nordic advised me something was &amp;quot;wrong&amp;quot; with the traces I had captured (didn&amp;#39;t specify what exactly - &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93386/lte-m-reconnect-after-los" rel="noopener noreferrer" target="_blank"&gt;More information here&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/397742?ContentTypeID=1</link><pubDate>Sat, 26 Nov 2022 10:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1624544b-7640-484e-8722-ea512912a548</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Let me start, that in my experience this topic is extremely important!&lt;/p&gt;
&lt;p&gt;For the very most issues here in this forum, Nordic asks for traces.&lt;/p&gt;
&lt;p&gt;(From my view point, that is more a general way to process issues, asking something back.)&lt;/p&gt;
&lt;p&gt;But, if Nordic wants trace from the wild or long-term scenarios, using a PC doesn&amp;#39;t work. Using a Raspi is a much better approach. I&amp;#39;m not sure, if something as&amp;nbsp;&lt;a href="https://cdn.transcend-info.com/products/images/modelpic/630/EN_RDP9_PS_2020.pdf"&gt;OTG Card Readers&lt;/a&gt; will work at all with the USB port of a Thingy:91, but it would take anyway long to be available.&lt;/p&gt;
&lt;p&gt;Or, what did Nordic use?&lt;/p&gt;
&lt;p&gt;(Sometimes, reading all the issues here in the forum, I have to confess, that I start to belief, Nordic doesn&amp;#39;t trace too much in the wild or for long terms ;-) .)&lt;/p&gt;
&lt;p&gt;So, again, as sum-up:&lt;/p&gt;
&lt;p&gt;If Nordic wants traces for issues from the wild or long-term scenarios, a PC is not that useful.&lt;/p&gt;
&lt;p&gt;Using a Raspi with sd-card and USB powerbank is also in my experience the &amp;quot;shortest way to go&amp;quot;. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;So:&lt;/p&gt;
&lt;p&gt;Are there any other preconditions, which must be considered?&lt;/p&gt;
&lt;p&gt;E.g. &amp;quot;Framing&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Capturing Modem Trace on ARM System</title><link>https://devzone.nordicsemi.com/thread/392638?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 13:20:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15917588-1392-4952-9cba-2deaea16b61d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, the nRF Connect for desktop application does not run on ARM Linux.&lt;/p&gt;
&lt;p&gt;However, the modem trace functionality only opens up a communication channel over uart.&lt;/p&gt;
&lt;p&gt;You can open up the uart port with any terminal program baud=1M and&amp;nbsp;store the content to a file, but I would recommend that you test this solution over time to ensure that there&amp;#39;s no issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>