# Accessing Inverter HID interface via NodeRed

**URL:** <https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671>\
**Category:** General\
**Created:** [29 September 2021 11:47 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671 "2021-09-29T11:47:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [29 September 2021 11:47 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/1 "2021-09-29T11:47:30Z")

</div>

Good day, Learned Fellows!

I am busy doing the final touches to my inverter comms routines and have run into a snag..

Currently I access the unit via a USB-\>Serial adaptor, but wish to access it direct through its HID interface, removing additional bit of hardware that's getting getting in the way...

I know that the unit is accessible via the HID interface and that the communications formats are pretty much identical, yet when configuring the serial port node, I get an error to the effect of `"[serialconfig:4041a1e3.96f118] serial port /dev/ttyHID1 error: Error: Error: Invalid argument setting custom baud rate of 2400"`

Any pointers as to where I am messing it up? (The /dev/ttyHID1 port is available/visible/funtional through another software driver.)

TIA  
Ed

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [5 October 2021 13:45 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/2 "2021-10-05T13:45:44Z")

</div>

Nudging.... Anybody out there?

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [5 October 2021 13:55 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/3 "2021-10-05T13:55:17Z")

</div>

HID != tty

You can't just hook a serial port node to a HID char device in /dev as they need to be talked to in different ways.

You may do better with

> **[node-red-contrib-usbhid](https://flows.nodered.org/node/node-red-contrib-usbhid)**
>
> A node-hid (USB HID device access library) wrapper for nodered

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [5 October 2021 15:08 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/4 "2021-10-05T15:08:46Z")

</div>

Hey @hardillb

Thanks for coming back to me..

I gave that a go... Had problems installing... Was also way old if I remember correctly....

Do you perhaps know of any other option?

Ed

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [7 October 2021 14:50 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/5 "2021-10-07T14:50:16Z")

</div>

Hey Guys...

After a LOT of reading up... (that amounts to more than a paragraph for me...LOL) ... I have come across `node-hid` ... Managed to get it installed, but now need to find out how to use it from `Node-Red` ....

The initial bits seem to work:

```auto
$ npm install -g node-hid
$ hid-showdevices libusb
$ hid-showdevices hidraw

```

I can see from a terminal session the addition or removal of a hid device, so things are talking in the background....

_ **Crunch** _ .... That's where my knowledge ends....

The little bit I did with a crc16Xmodem function node kinda lets me think that I can incorporate the hid functions in a similar manner, but way I'm out of my comfort zone....

I think I am on a "possible" track, but hey.... Does anybody have a gps and a white stick to lend me?

 ![screenshot-192.168.0.248_1880-2021.10.07-16_45_58](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d176b99c7febf38fd4955386bfe3f41aa4939ae4.png)

 ![screenshot-192.168.0.248_1880-2021.10.07-16_47_52](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bcef81b850ef6135daad628e43ef0f9dedbd5021.png)

Many thanks...  
Ed

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [7 October 2021 15:47 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/6 "2021-10-07T15:47:23Z")

</div>

node-red-contrib-usbhid uses node-hid

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [7 October 2021 17:25 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/7 "2021-10-07T17:25:59Z")

</div>

Yeh... Gave it a good go to install on my Pi today, came up with an error log so long that I would hesitate to post it here...  
E

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 December 2021 17:26 UTC](https://discourse.nodered.org/t/accessing-inverter-hid-interface-via-nodered/51671/8 "2021-12-06T17:26:28Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
