Linux and No Dongle Detection: Difference between revisions

From MXWendler Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 7: Line 7:
'''Background'''
'''Background'''


Actually a dongle is found, but it cannot be read because of a udev permission issue
Actually a dongle is found, but it is not usable because of insufficient udev permissions. Dongle values can be read, but no commands like e.g. 'Respond with dongle serial' can be sent (written) to the dongles.


'''Solution'''
'''Solution'''


Enable the correct permissions for the USB dongle with the following command sequence issued in a shell
For a first test, you can start MXWendler as root. If the dongle is usable now, it is a udev permission issue. Now enable the correct permissions for all users the USB dongle. Enable full access to the dongles with the following command sequence issued in a terminal:


<code>
<code>
$ sudo touch /etc/udev/
$ sudo touch /etc/udev/rules.d/999-ft-mxw.rules


$ sudo vim /etc/udev/rules.d/999-ft-mxw.rules
</code>
</code>
Enter this line:
<code>
SUBSYSTEM=="usb",ATTRS{idVendor}=="096e",MODE="0666"
</code>
Exit vim with <esc>,:,w,q,<enter>. Then restart udev service
<code>
$ sudo /etc/init.d/udev restart
</code>
and re-plug the dongle. This udev rule enables read/write permissions for all users when a Feitian dongle (Vendor id is 096e) is plugged into the system.
'''Remark'''
The 'write' - permissions added here allow sending device commands to the dongle. The values stored inside the dongle are never changed.

Latest revision as of 13:47, 1 June 2024

This applies to Ubuntu and Ubuntu-based Linux versions and all MXWendler versions

Problem

You start with a USB dongle attached but the log states there is no dongle found.

Background

Actually a dongle is found, but it is not usable because of insufficient udev permissions. Dongle values can be read, but no commands like e.g. 'Respond with dongle serial' can be sent (written) to the dongles.

Solution

For a first test, you can start MXWendler as root. If the dongle is usable now, it is a udev permission issue. Now enable the correct permissions for all users the USB dongle. Enable full access to the dongles with the following command sequence issued in a terminal:

$ sudo touch /etc/udev/rules.d/999-ft-mxw.rules

$ sudo vim /etc/udev/rules.d/999-ft-mxw.rules

Enter this line:

SUBSYSTEM=="usb",ATTRS{idVendor}=="096e",MODE="0666"

Exit vim with <esc>,:,w,q,<enter>. Then restart udev service

$ sudo /etc/init.d/udev restart

and re-plug the dongle. This udev rule enables read/write permissions for all users when a Feitian dongle (Vendor id is 096e) is plugged into the system.

Remark

The 'write' - permissions added here allow sending device commands to the dongle. The values stored inside the dongle are never changed.