ninotnc-udev
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ninotnc-udev [2025/08/20 09:59] – [Serial number names] gi3jmc | ninotnc-udev [2025/08/20 10:03] (current) – removed gi3jmc | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== NinoTNC udev Guide ====== | ||
- | |||
- | This guide is intended to assist you in creating static devices for any number of NinoTNCs connected your Raspberry Pi. The device nodes set up will remain constant across restarts, power cycles, and moving the NinoTNC usb cable to a different usb port.\\ | ||
- | This wiki article is **NOT** to be used as an exact key-for-key and click-for-click guide, and also assumes that you are comfortable using the command line. | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Software Prerequisites ===== | ||
- | |||
- | A few specific pieces of software are required for configuring the USB chip used on the NinoTNC so that each individual unit can be identified by a serial number, instead of the USB socket that it is plugged into. | ||
- | |||
- | * The ability to act and edit files as the system superuser (root) | ||
- | * A working git installation | ||
- | * MPC2221a USB chip setting adjustment tool | ||
- | |||
- | First, ensure you have a working git installation with the command '' | ||
- | |||
- | After git is installed/ | ||
- | |||
- | The settings tool is written in the python language, and it needs a couple of extra support packages to be able to work. To install the '' | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ==== Set the Serial Number ==== | ||
- | |||
- | //**Before proceeding with any steps in this section, you should only have one NinoTNC connected. | ||
- | |||
- | First, enable the serial number reporting with '' | ||
- | |||
- | When the command completes you can change the reported serial number with one of your own choosing with | ||
- | '' | ||
- | |||
- | // | ||
- | |||
- | When you are finished enter the command '' | ||
- | |||
- | ---- | ||
- | |||
- | ==== Set the Product Info ==== | ||
- | |||
- | //**Before proceeding with any steps in this section, you should only have one NinoTNC connected. | ||
- | |||
- | You can change the reported product description to better identify the device. | ||
- | |||
- | // | ||
- | |||
- | When you are finished enter the command '' | ||
- | |||
- | ---- | ||
- | |||
- | ==== Create the udev Rules ==== | ||
- | |||
- | You will need to create or amend the file ''/ | ||
- | |||
- | === Devices named by hand === | ||
- | |||
- | This example will make named links for each device based on their serial numbers, allowing the function to be visible\\ | ||
- | Example udev rules for 2 TNCs with serials '' | ||
- | <file shell / | ||
- | # Create descriptive links to make refering to NinoTNC' | ||
- | SUBSYSTEM==" | ||
- | SUBSYSTEM==" | ||
- | </ | ||
- | |||
- | === Serial number names === | ||
- | |||
- | This example will create a link for each NinoTNC using it's serial number as the device name, but requires you to remember which NinoTNC serial is used for each purpose | ||
- | <file shell / | ||
- | # Create descriptive links to make refering to NinoTNC' | ||
- | SUBSYSTEM==" | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ==== Final Steps ==== | ||
- | |||
- | To activate the newly-created rules you can either remove and reconnect the NinoTNC USB cable, or use the command '' |
ninotnc-udev.1755683954.txt.gz · Last modified: by gi3jmc