How To Install sjinn on Fedora 34

sjinn is Simple tool for sending & receiving data from RS-232 devices

Introduction

In this tutorial we learn how to install sjinn on Fedora 34.

What is sjinn

S-Jinn is a free, lightweight, open-source Linux application written in C. It is a simple command-line tool designed for sending & receiving data from PC controlled TIA/EIA-232 (RS-232) test, measurement, and control devices. Depending on your application you may be able to use stty or C-Kermit, but I believe you will find that S-Jinn is easier-to-use, more intuitive, and more concise in the area of command-line and/or scripted RS-232 data acquisition and control. Popular Linux communications packages like Minicom will also communicate with RS-232 devices, but they are better suited to modems, computers, network devices, etc. They typically lack support for any combination of UART communication settings required by many of the RS-232 test, measurement, and control devices on the market. Most communications packages also lack command-line support. Some provide scripting languages, but S-Jinn frees you from application-specific languages. S-Jinn simply directs the data to STDOUT where you can display it, pipe it, and/or redirect it to be processed by your favorite Unix shell and/or scripting language regardless of whether you prefer Bash, Python, Perl, Expect, or you name it. Other S-Jinn features include the ability to * Control RS-232 DTR and RTS lines from the command-line * Display DTR, RTS, CTS & DSR status * Send control characters (including the NULL character) * Send values in hex * Specify read length * Set programmable delay times for both send & read. * Support for virtually all baud rates, parity, and data lengths found in standard PC UARTS * Output Formatting truncate lines, suppress trailing line feeds

We can use yum or dnf to install sjinn on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install sjinn.

Install sjinn on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install sjinn using dnf by running the following command:

sudo dnf -y install sjinn

Install sjinn on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install sjinn using yum by running the following command:

sudo yum -y install sjinn

How To Uninstall sjinn on Fedora 34

To uninstall only the sjinn package we can use the following command:

sudo dnf remove sjinn

sjinn Package Contents on Fedora 34

/usr/bin/rs232
/usr/bin/sjinn
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/2dce2c7f632891fc0dc443d18571c2d5af3f84
/usr/share/doc/sjinn
/usr/share/doc/sjinn/ChangeLog
/usr/share/doc/sjinn/EXAMPLES
/usr/share/doc/sjinn/FAQS
/usr/share/doc/sjinn/README
/usr/share/doc/sjinn/scripts
/usr/share/doc/sjinn/scripts/dacq
/usr/share/doc/sjinn/scripts/dacqd
/usr/share/doc/sjinn/scripts/dacqdocs
/usr/share/licenses/sjinn
/usr/share/licenses/sjinn/COPYING
/usr/share/man/man1/rs232.1.gz
/usr/share/man/man1/sjinn.1.gz

References

Summary

In this tutorial we learn how to install sjinn on Fedora 34 using yum and dnf.