What's new

USB HID

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

PavelBab

Occasional Visitor
I have constant problems connecting the UPS via USB HID on my new router AX86U. I add the following script to the boot sequence, lsusb command show my UPS, but the sofware still doesn't find my UPS.
#!/bin/sh

mkdir -p /dev/usb/hid
mknod /dev/usb/hid/hiddev0 c 180 96
mknod /dev/usb/hid/hiddev1 c 180 97
mknod /dev/usb/hid/hiddev2 c 180 98
mknod /dev/usb/hid/hiddev3 c 180 99
mknod /dev/usb/hid/hiddev4 c 180 100
mknod /dev/usb/hid/hiddev5 c 180 101
mknod /dev/usb/hid/hiddev6 c 180 102
mknod /dev/usb/hid/hiddev7 c 180 103
mknod /dev/usb/hid/hiddev8 c 180 104
mknod /dev/usb/hid/hiddev9 c 180 105
mknod /dev/usb/hid/hiddev10 c 180 106
mknod /dev/usb/hid/hiddev11 c 180 107
mknod /dev/usb/hid/hiddev12 c 180 108
mknod /dev/usb/hid/hiddev13 c 180 109
mknod /dev/usb/hid/hiddev14 c 180 110
mknod /dev/usb/hid/hiddev15 c 180 111

insmod input-core
insmod hid
insmod usbhid


I tested both software "apcupsd" and "nut".
Older routers and firmware had no problems with this UPS

Please can anybody to help me. What more can I do about it.
 
I run NUT without issues on a AC86U. The only thing I need to do is load the 3 kernel modules from the library on the router;


Code:
insmod /lib/modules/4.1.27/kernel/drivers/input/input-core.ko
insmod /lib/modules/4.1.27/kernel/drivers/hid/hid.ko
insmod /lib/modules/4.1.27/kernel/drivers/hid/usbhid/usbhid.ko

Probably have to change your path to suit your router.

I don't need to make all those nodes.

The other thing with nut is you need to specify the router login name on the command line as NUT assumes "root" as the user name.
 
Sirs,

Configured nut:
the message: "Error: Driver not connected" after command "upsc ups".

Configured apcupsd:
"STATUS : COMMLOST" in results from "apcaccess" command.

Can anybody tested usb UPS with AX86U?
My old routers Wl500g, RT16N, AC68U required "insmode xxxxx" commands only.

Regards
 
Before running upsmon, you have run;

upsdrvctl -u <router login name> start
upsd -u <router login name>
 
Thank you, I founded a misprint in my the config file.
Nut is working now.
Thank you again.
Isn't it just amazing how one little mis step can really play havoc with your day.

Glad you got it working. I love NUT. I get text messages when we are away from home to let me know when the power is off. Nor to mention to safely send shut down commands to my NAS and put the router into a safe state just before the UPS craps.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top