Setting up communication on Linux
Last Updated 3 years ago
After login in system open the Terminal and follow the steps below:
query the currently usbs of the host. Locate the UPS' port number (look for Cypress, which is USB port brand). Here Device nr. 008. Please check the owner of the usb port, you will find the no.008 belongs to the root account (it means that you don’t have the read or write right on this USB), it’s the reason why you can’t connect to the UPS by usb.
- change the current user to root
Create a rule to solve the issue.
- ls –all /dev/bus/usb/
- ls –all /dev/bus/usb/001
- ls –all /dev/bus/usb/002
Save and exit the vi editor Then query the master group of the UPS-usb,and you will find it belong to your groups. In the end,please restart the rule.
- vi /etc/udev/rules.d/50-myusb.rules
- and then please enter the rules as below:
- if the UPS is connected on a COM port, please enter as below:
- NOTE:please enter your group name to replace the words "xxxxxx".
Switch the root to your account
- udevadm control --reload
Run the software,and the connection will be shown.
- su foko
here "foko" is the local user, replace with your name