# Node-red-contrib-streamdeck change USB path

**URL:** <https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299>\
**Category:** Hardware\
**Created:** [3 February 2021 10:49 UTC](https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299 "2021-02-03T10:49:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MechatronicMan](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@MechatronicMan](https://discourse.nodered.org/u/MechatronicMan)\
**Post date:** [3 February 2021 10:49 UTC](https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299/1 "2021-02-03T10:49:40Z")

</div>

Hi  
I have work with this nodes but have some try change usb path for this node?  
When Node-Red is starting, he discover connected device (streamdeck) and if during run streamdeck has change usb port he can't connect with him. He can list all streamdeck in system with they path, but sending node can't see it any more.  
Is there away to update path in this nodes? or mamy some walk around like changing usb path in system?/virtual usb port with routing??

Best Regards  
K.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [3 February 2021 11:46 UTC](https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299/2 "2021-02-03T11:46:20Z")

</div>

> [@MechatronicMan](#):
>
> during run streamdeck has change usb port

Welcome to the forum @MechatronicMan

Can you explain what you mean by that please? If you mean that the usb changes, for example, from `tty/USB0` to `tty/USB1` then the solution is to use a udev rule so that the device is always available at the same port. See [How udev rules can help us to recognize a usb-to-serial device over /dev/tty interface - DEV Community](https://dev.to/enbis/how-udev-rules-can-help-us-to-recognize-a-usb-to-serial-device-over-dev-tty-interface-pbk)

---

<div class="post-metadata">

**Author:** ![MechatronicMan](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@MechatronicMan](https://discourse.nodered.org/u/MechatronicMan)\
**Post date:** [3 February 2021 12:09 UTC](https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299/3 "2021-02-03T12:09:01Z")

</div>

Hi  
Yes, and this is nice solution. But as I understood it identify it by some ID. In my installation there will be few stream decks and few raspberry, So in one time there will be always one stream deck in one nod-red. But if for some reasons (for eg. moving installation) some one will plug out and change stream decks places (can't be sure that always this stream deck will work will exactly the same RPI and node-red), then I have problem to find where is proper strem deck... and don't know if it will be always 4 stream decks or 20. So walk around is to restart flow to reincation scan for devices i think, but I must dive in Node-red Api 🙂 (restart of whole node-red service  
take to much time)

But thanks for advice I was forgot to look at this problem from RPI side 🙂

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [3 February 2021 13:28 UTC](https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299/4 "2021-02-03T13:28:37Z")

</div>

You should be able identify a udev property which says it is a streamdeck, rather than identifying an individual one. So possibly Vendor and Device but not Serial number. Then any one plugged in will be recognised.

---

<div class="post-metadata">

**Author:** ![MechatronicMan](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@MechatronicMan](https://discourse.nodered.org/u/MechatronicMan)\
**Post date:** [5 February 2021 08:22 UTC](https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299/5 "2021-02-05T08:22:37Z")

</div>

Great 🙂 Thanks for point me a direction 🙂

K.

---

<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 April 2021 08:22 UTC](https://discourse.nodered.org/t/node-red-contrib-streamdeck-change-usb-path/40299/6 "2021-04-06T08:22:40Z")

</div>

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