Notes by infeeeee

About Revit, ifc and other things

nJoy Keen USB UPS in Network UPS Tools

I didn’t find about how to use nJoy UPSs in Network UPS Tools on Linux.

nJoy is a romanian manufacturer, produces UPSs, batteries and other hardwares, even laptops. Their UPSs are one of the cheapest ones, so I bought one. Also their design is also catched my eyes, however in IRL they don’t look as good as on photos.

nJoy homepage

USB

The Keen USB series has an usb port, so it’s possible to connect them to a PC.

On their support website they recommend PowerGuide software. I tried installing first, it was a nighmare, don’t recommend using it.

So I tried to use it with better tools, namely NUT, already integrated in most Linux systems. However this devices aren’t supported by NUTS officially.

I tryed some drivers available in NUT, and blazer_ser was working.

So my final config in NUTS:

driver = blazer_ser
port = /dev/ttyUSB0

Indentification

dmesg while connecting:

[12687.461212] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[12687.461225] ch341 1-5:1.0: device disconnected
[12690.492666] usb 1-5: new full-speed USB device number 4 using xhci_hcd
[12690.741289] usb 1-5: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[12690.741292] usb 1-5: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[12690.741293] usb 1-5: Product: USB Serial
[12690.749317] ch341 1-5:1.0: ch341-uart converter detected
[12690.763556] usb 1-5: ch341-uart converter now attached to ttyUSB0

lsusb:

Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter

lsusb -d 1a86:7523 -v:

Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1a86 QinHeng Electronics
  idProduct          0x7523 HL-340 USB-Serial adapter
  bcdDevice            2.64
  iManufacturer           0
  iProduct                2 USB Serial
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0027
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      2
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)