Multiple USB to DMX interface support?
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- embedded-iot
Rechercherichtung
Beginne am im Beispiel gezeigten Einstiegspunkt OpenDMXController und verfolge, wie USB-Schnittstellen ausgewählt und verwaltet werden. Reproduziere das Setup mit zwei FT232R/libusb-win32-Dongles; abgeschlossen ist die Aufgabe, wenn die jedem Dongle zugewiesenen Fixtures gleichzeitig gesteuert werden können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi Matt! I‘m currently trying to use this library for a lighting project. I use USB to DMX interface cables with FT232R chip. I used "zadig" to flash the driver of interface to libusb-win32 and successfully dim the light on PC using Python! Thankyou :)
But I found when I plug two dongles in my PC, it seems that it can only control one of them. Luminaires of the other cable won't work.
Does this library support multiple interface to work simultaneously?
I am not a programmer. If I question something wrong please forgive me. And here's my code:
# Create controller
dmx = Controller()
# Load fixture from JSON
dmx.json.load_config('LabLight.json')
# Define a global fade time
fade_time = 5000
# DMA Value Mapping Percentage
def percent_to_dmx_value(percent):
return int((255 * percent) / 100)
# clear
dmx.clear_all_effects()
for brightness_percent in range(5, 101, 5):
dmx_value = percent_to_dmx_value(brightness_percent)
# Dimming
for f in dmx.get_fixtures_by_name_include('DownLight_1Y'): # Y for Yellow light, W for White light
f.dim(dmx_value, fade_time)
for f in dmx.get_fixtures_by_name_include('DownLight_1W'):
f.dim(dmx_value, fade_time)
for f in dmx.get_fixtures_by_name_include('DownLight_2Y'):
f.dim(dmx_value, fade_time)
for f in dmx.get_fixtures_by_name_include('DownLight_2W'):
f.dim(dmx_value, fade_time)
# rest of downlights
time.sleep(3)
# Manual Close
dmx.sleep_till_enter()
dmx.close()
And the json:
{
"type": "Generic.Dimmer",
"args": [],
"name": "DownLight_1Y",
"start_channel": 1
},
{
"type": "Generic.Dimmer",
"args": [],
"name": "DownLight_1W",
"start_channel": 2
},
{
"type": "Generic.Dimmer",
"args": [],
"name": "DownLight_2Y",
"start_channel": 3
},
{
"type": "Generic.Dimmer",
"args": [],
"name": "DownLight_2W",
"start_channel": 4
},
{
"type": "Generic.Dimmer",
"args": [],
"name": "DownLight_3Y",
"start_channel": 5
},
{
"type": "Generic.Dimmer",
"args": [],
"name": "DownLight_3W",
"start_channel": 6
}
]```
There're more but it's just for example.
For instance Downlight1-3 connect dongle_1, and 3_6 connect dongle_2.
- Vorherrschende Sprache
- Python
- Sterne
- 143
- Forks
- 23
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus MattIPv4/PyDMXControl
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
MattIPv4/PyDMXControl#60 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
MattIPv4/PyDMXControl#58 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
MattIPv4/PyDMXControl#55 · 3 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 18/100
MattIPv4/PyDMXControl#52 · 5 Kommentare ·
-
Custom ChannelsOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
MattIPv4/PyDMXControl#51 · 3 Kommentare ·
Alle Issues in MattIPv4/PyDMXControl
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
infrastructure qa
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
khuisman/mcp-gee-sweet#1068 ·
Maintainer antworten meist innerhalb von 1 Tag
-
The book has a Nix install section that chelis.ch lacks, and it names two of the three systemsOffenarea:ecosystem documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Chelis-Lang/chelis#3866 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`lvm_compact` has no self-hosted twin, and `docs/158` §5 says every language-face component mustOffenbug sev-3 vm
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
issue: Picking a prompt from the / menu in a channel inserts a command chip instead of the promptOffenbug confirmed issue
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 78/100
open-webui/open-webui#32712 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag