Skip to content

Not working on Raspberry Pi #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
static75 opened this issue Sep 5, 2022 · 0 comments
Open

Not working on Raspberry Pi #6

static75 opened this issue Sep 5, 2022 · 0 comments

Comments

@static75
Copy link

static75 commented Sep 5, 2022

I'm trying your code on Raspberry Pi, using Python 3.7.3, and I have a USB-to-DMX cable connected to ttyUSB0. I know the cable works because I used it with my laptop and Freestyler to control my light ADJ light fixture (6 channels). When I run the code, my light fixture knows that something was transmitted (it rotates to an odd pan/tilt position and the light turns off), but it doesn't seem to recognize the actual channel values.

In addition, I added a "print" function in your DmxPy.py file to see exactly what was being sent to the USB port for DMXOPEN, DMXINTENSITY, sdata, and DMXCLOSE. If I send six channels with values 1 thru 6 accordingly, it seems to transmit correctly. b'\x00\x01\x02\x03\x04\x05\x06\x00...

However, if I set channel 1 = 127, channel 2 = 127, 3=8, 4=1, 5=10, and 6 = 6, the byte stream seems to get corrupted.
b'\x00\x7f\x7f\x08\x02\n\x06\x00...

Am I doing somthing wrong to run this code? Am I missing a step?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant