Wireless XHC-HB04 pendant 'always connected'

More
9 years 2 months ago #96856 by hwylie
Evidently, no error is reported by 'libusb_control_transfer' (called from 'xhc-hb04.cc') when the wireless pendant (model WHB04-L) is switched off.

This means 'require_pendant' in INI stanza [XHC_HB04_CONFIG] has no effect: HAL pin xhc-hb04.connected is always asserted.

Is this a limitation of the XHC (wireless) pendant / USB dongle design, or is there a workaround to correctly acquire pendant status?

LCNC version is current Master (Debian OS).

Please Log in to join the conversation.

More
9 years 2 months ago #96857 by dgarrett
Connection loss occurs when you remove the usb connection.

excerpt: configs/sim/axis/xhc-hb04/README

When require_pendant = no, the xhc-hb04 hal pins will be created even if the pendant is not connected at startup. A new connection, a disconnect, and a reconnect are supported.

Ref:
github.com/LinuxCNC/linuxcnc/blob/master...axis/xhc-hb04/README

From the man page

(bit out) xhc-hb04.connected True when connection to the pendant is established over the USB interface.

Ref:
linuxcnc.org/docs/devel/html/man/man1/xhc-hb04.1.html

Please Log in to join the conversation.

More
9 years 2 months ago #96881 by hwylie
Thank you - 'libusb' scope being only the USB interface, it is understood that HID status is an application layer issue - and as for wireless USB devices in general, the driver is unaware of absence of device power, wireless link error rate, etc.

Please Log in to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum