Frequently Asked Question

Setting up communication on Linux
Last Updated 2 years ago

After login in system open the Terminal and follow the steps below:

image

  1. change the current user to root
  • su root
  • query the currently usbs of the host.
    • lsusb
  • 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.
    • ls –all /dev/bus/usb/
    • ls –all /dev/bus/usb/001
    • ls –all /dev/bus/usb/002
  • Create a rule to solve the issue.
    • vi /etc/udev/rules.d/50-myusb.rules
    • and then please enter the rules as below:
      SUBSYSTEMS=="usb",ATTRS{idVendor}=="0665",ATTRS{idProduct}=="5161",GROUP=xxxxxx MODE="0666"
    • if the UPS is connected on a COM port, please enter as below:
      KERNEL=="ttyUSB*",MODE="0666"
    • NOTE:please enter your group name to replace the words "xxxxxx".
      image
  • 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.
    • udevadm control --reload
      image
  • Switch the root to your account
    • su foko
      here "foko" is the local user, replace with your name
  • Run the software,and the connection will be shown.
  • image

    Please Wait!

    Please wait... it will take a second!