<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CLI use (ioninja - serial tap)]]></title><description><![CDATA[<p dir="auto">Hello.<br />
I'm a happy owner of a (tibbo) serial tap and ioninja SW.<br />
Now, I want to use them in order to capture data, in a remote location, unattended and with bad communications.<br />
I am going to use a Rasperry (Arch Arm) with a GPRS modem (not sure if 3G is available).<br />
I do not need the GUI (and it could be a problem if I have to use it!).<br />
Ideally, I would like to be able to save a log, and download it from time to time. I've seen that there is an executable "ioninja-server" that seems that could do the trick, but I have not found detailed documentation (just the "-h", and a short reference in your web).</p>
<p dir="auto">So the question are: Is there any way to do what I want? With this "ioninja-server"? how?</p>
<p dir="auto">Thank you very much!</p>
]]></description><link>http://64.23.185.212/forum/topic/17/cli-use-ioninja-serial-tap</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 18:31:20 GMT</lastBuildDate><atom:link href="http://64.23.185.212/forum/topic/17.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Dec 2021 21:05:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Wed, 05 Oct 2022 12:28:02 GMT]]></title><description><![CDATA[<p dir="auto">Hello Jose,</p>
<p dir="auto">Thank you for your feedback, Jose! Glad to hear the new feature worked well for you!</p>
<p dir="auto">Adding the support for  <code>.njlog</code> output was the right thing to do; thanks for bringing that up originally and with that, adjusting our TODO list priority <img src="http://64.23.185.212/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=miq4h6da9ug" class="not-responsive emoji emoji-android emoji--wink" title=";)" alt="😉" /></p>
]]></description><link>http://64.23.185.212/forum/post/134</link><guid isPermaLink="true">http://64.23.185.212/forum/post/134</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Wed, 05 Oct 2022 12:28:02 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Sun, 02 Oct 2022 10:47:41 GMT]]></title><description><![CDATA[<p dir="auto">Hello Vladimir!<br />
Just a few words in order to say that I've already saw that this feature is included in the last release. In fact, I've already used it and it works great! In fact, at this moment -since about 10 days-, it is working in the setup I commented in my first mail (a raspberry, with a serial tap, in a remote location with very bad commications (I just login in order to see that it is working)). I find it really useful!<br />
Thank you very much!<br />
Regards<br />
Josep</p>
]]></description><link>http://64.23.185.212/forum/post/131</link><guid isPermaLink="true">http://64.23.185.212/forum/post/131</guid><dc:creator><![CDATA[Jose Marro]]></dc:creator><pubDate>Sun, 02 Oct 2022 10:47:41 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Fri, 24 Jun 2022 19:12:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Apologies for the delayed response. Support for <code>njlog</code> output directly from <code>ioninja-hwc</code> is on our TODO list (it was already requested by users). For the time being, you need to post-process the raw output of <code>ioninja-hwc</code> using any scripting language of your choice.</p>
<p dir="auto">The protocol of communication between <code>ioninja-hwc</code> and plugins such as <a href="https://ioninja.com/plugins/ssh-serial.html" rel="nofollow ugc">Serial over SSH</a> or <a href="https://ioninja.com/plugins/ssh-serial-tap.html" rel="nofollow ugc">Serial Tap over SSH</a> is not currently documented, but the decoding process and all relevant constants and data structures can be looked up in the sources of those plugins (remember, all IO Ninja plugins are open-sourced and available at <code>ioninja/scripts/plugins</code>).</p>
<p dir="auto">In particular, all the relevant constants and packet structures for the <code>ioninja-hwc</code> protocol are contained in <code>ioninja/scripts/common/io_HwcProto.jnc</code>. The output file generated by <code>ioninja-hwc</code> is basically a sequence of "out" messages of this protocol. Each message starts with <code>HwcMsgHdr</code> followed by extra data block, the meaning of which depends on the message code. For example, <code>HwcMsgCode.Rx</code> is followed by the received bytes, <code>HwcMsgCode.SerialTapCtsDsr</code> is followed by <code>HwcSerialStatusLines</code> flags, etc.</p>
<p dir="auto">Try decoding the output of <code>ioninja-hwc</code> using any language of your choice, and feel free to let me know if you run into a stumbling block or have any other questions.</p>
]]></description><link>http://64.23.185.212/forum/post/113</link><guid isPermaLink="true">http://64.23.185.212/forum/post/113</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Fri, 24 Jun 2022 19:12:32 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Thu, 16 Jun 2022 15:33:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi there, I think this is the most related to what I am doing currently. I have the ioninja software and the serial tap and I've been trying to log files through the ioninja-hwc. My issue currently is trying to set up the output file format/extension to get a usable file. Likely I just don't understand what the "write to file option" should be setup as. currently I just have it running as: "-out=logfile.txt" but don't really get anything useful from that.</p>
<p dir="auto">My end goal is to generate a log file (like an .njlog if possible) through terminal alone. If there's a different way to get a log file without needing to open the IDE I'd really appreciate the help</p>
]]></description><link>http://64.23.185.212/forum/post/112</link><guid isPermaLink="true">http://64.23.185.212/forum/post/112</guid><dc:creator><![CDATA[Gurs]]></dc:creator><pubDate>Thu, 16 Jun 2022 15:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Sun, 03 Apr 2022 12:16:05 GMT]]></title><description><![CDATA[<p dir="auto">Yes, we plan to add the <code>.njlog</code> output soon, so that would solve many problems.</p>
<p dir="auto">Running a remote X-server is an option, yes. It actually was the only option for running Serial Tap remotely before the release of <code>ioninja-hwc</code>. Now that we have <code>ioninja-hwc</code>, it should be the preferred approach in most cases.</p>
<p dir="auto">We also consider extending the <code>Serial over SSH</code> (and other remote tap plugins) with an option of keeping the <code>ioninja-hwc</code> process persistent across SSH reconnects (via <code>screen</code> or some other terminal manager).</p>
]]></description><link>http://64.23.185.212/forum/post/73</link><guid isPermaLink="true">http://64.23.185.212/forum/post/73</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Sun, 03 Apr 2022 12:16:05 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Mon, 28 Mar 2022 08:27:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello Vladimir,<br />
No worry about the delay and thank you <img src="http://64.23.185.212/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=miq4h6da9ug" class="not-responsive emoji emoji-android emoji--smile" title=":smile:" alt="😄" /> !<br />
Ok! I think that I will be able to use the current output, and it could solve my problems (at least one of them).<br />
Eventually, if you could add the function of save as ".njlog", it would be great.<br />
As a piece of info, that could help someone, I am currently trying "xpra" (<a href="https://xpra.org/" rel="nofollow ugc">https://xpra.org/</a>), it is a kind of X server that allows remote access. This allows run ioninja remotely (and keep it alive permanently) and "attach" me to it from time to time remotely.<br />
Regards!<br />
Josep</p>
]]></description><link>http://64.23.185.212/forum/post/70</link><guid isPermaLink="true">http://64.23.185.212/forum/post/70</guid><dc:creator><![CDATA[Jose Marro]]></dc:creator><pubDate>Mon, 28 Mar 2022 08:27:21 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Thu, 24 Mar 2022 03:18:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello Jose,</p>
<p dir="auto">Once again, apologies for the delayed reply <img src="http://64.23.185.212/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=miq4h6da9ug" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">Yes, in IO Ninja 5.1 we added a CLI tool (<code>ioninja-hwc</code>) for direct communication with Serial Tap and other IO Ninja hardware. The main purpose of this tool was to network-enable the IO Ninja Taps (i.e., to access those over SSH). As such, the output from this tool must satisfy certain requirements (e.g., reliably distinguish between <code>ioninja-hwc</code> messages and SSH server errors, like <code>ioninja-hwc</code> not found). The <code>.njlog</code> format is not very suitable for that, that's why we didn't use it by default (we actually used the protocol from our test fixture for Serial and other Taps).</p>
<p dir="auto">This said, we can of course add <code>.njlog</code> output as an extra feature -- just like we have <code>.pcap</code> output. We probably will do that in one of the upcoming releases.</p>
<ol>
<li>
<p dir="auto">Regarding the format of the output -- since all the scripts in IO Ninja are open-source, you can check the sources of decoder in <code>ioninja/scripts/common/io_HwcProto.jnc</code>. This file contains file structure definitions, packet type code constants, and the decoder itself.</p>
</li>
<li>
<p dir="auto">You are right, there are no timestamps in this protocol. Serial Tap doesn't timestamp individual bytes (Serial Tap basically is a dual-channel USB-to-UART). We can, of course, add timestamps inside <code>ioninja-hwc</code>, but in case of SSH communications, it's not that much different from timestamping on the SSH client side (as we do now). And after we support the <code>.njlog</code> format for file output, adding timestamps to the protocol most likely will not be necessary.</p>
</li>
</ol>
<p dir="auto">Let me know what you think!</p>
]]></description><link>http://64.23.185.212/forum/post/69</link><guid isPermaLink="true">http://64.23.185.212/forum/post/69</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Thu, 24 Mar 2022 03:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Fri, 18 Mar 2022 08:44:08 GMT]]></title><description><![CDATA[<p dir="auto">Hello. Thank you! I've seen that the recent release includes a tool in order to achieve what I wanted to do.<br />
Just a improvement for future releases, it would be great if the tool would save a log, in ".njlog" format, part of my problem is the lack of communications, so keep a ssh session alive it is not an option (I saw that it is possible save "pcap" for ethernet captures, but -obviously- we are talking about serial).<br />
Also, I checked the "write to file" option, and I have two comments:</p>
<ol>
<li>I saw that as "sidecar" of the sniffed data there are some other data (4 bytes ?), I suspect it is info about the data origen, perhaps used by the "ioninja" SW in order to identify it. Is there any place where we can check the meaning of these bytes?</li>
<li>I suspect that inside this "sidecar" data there is no timestamps. The HW probably does not timestamp its raw data... but it would be quite necessary that the  output files writen by the "ioninja-hwc" <em>do</em> include timestamps.<br />
Regards!!</li>
</ol>
]]></description><link>http://64.23.185.212/forum/post/68</link><guid isPermaLink="true">http://64.23.185.212/forum/post/68</guid><dc:creator><![CDATA[Jose Marro]]></dc:creator><pubDate>Fri, 18 Mar 2022 08:44:08 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Tue, 21 Dec 2021 11:52:08 GMT]]></title><description><![CDATA[<p dir="auto">Hello. Do not worry about the delay, we are all very busy <img src="http://64.23.185.212/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=miq4h6da9ug" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":-)" alt="🙂" /><br />
It will be good to have it. In the meantime, libusb could be an option. I used to program in C -many time ago- and I will try (perhaps, I will eventually bother you a bit, with some questions).<br />
Thank your! Regards!</p>
]]></description><link>http://64.23.185.212/forum/post/56</link><guid isPermaLink="true">http://64.23.185.212/forum/post/56</guid><dc:creator><![CDATA[Jose Marro]]></dc:creator><pubDate>Tue, 21 Dec 2021 11:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to CLI use (ioninja - serial tap) on Tue, 21 Dec 2021 09:53:17 GMT]]></title><description><![CDATA[<p dir="auto">Apologies for the delayed reply... Still, better late than never <img src="http://64.23.185.212/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=miq4h6da9ug" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">Alas, currently, there's no support for remote monitoring via Serial Taps -- fiddling with <code>ioninja-server</code> won't cut it... However, it's on our immediate TODO list; we are working on a major update scheduled for the beginning of 2022 which -- among many other things -- will allow controlling Serial Taps and other IO Ninja hardware sniffers connected to remote ARM-based Linux boxes (such as Raspberry Pis).</p>
<p dir="auto">If waiting for the update is not an option, I suggest writing your own program which would read from a Serial Tap using <strong>libusb</strong> (or any other low-level USB framework available in the programming language of your choice) and dump the captured data into a file.</p>
<p dir="auto">The low-level details of USB communication with a Serial Tap (USB VIDs/PIDs, IN/OUT endpoints, packet formats, etc) can be checked in the open-source implementation of the official Serial Tap plugin (see file  <code>scripts/plugins/SerialTap/SerialTapSession.jnc</code>). If you are familiar with C-family languages (C, Java, JavaScript, etc) you should be able to read and understand pretty much everything. And of course, feel free to ask any implementation-related questions here.</p>
<p dir="auto">Hope this clarifies the issue.</p>
]]></description><link>http://64.23.185.212/forum/post/55</link><guid isPermaLink="true">http://64.23.185.212/forum/post/55</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Tue, 21 Dec 2021 09:53:17 GMT</pubDate></item></channel></rss>