Skip to content
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

Subnets > 0 not working #20

Closed
gabe927 opened this issue Feb 15, 2022 · 3 comments · Fixed by #21
Closed

Subnets > 0 not working #20

gabe927 opened this issue Feb 15, 2022 · 3 comments · Fixed by #21
Labels
bug Something isn't working

Comments

@gabe927
Copy link

gabe927 commented Feb 15, 2022

I'm passing data from Resolume into little program using this library. When I use a universe in subnet 0, there's no issues and I get data printed in the console. If I use a subnet that's greater than 0, I get nothing. I've tried both of the following methods for registering a listener and neither seem to work.

a.register_listener(0, sub=1, net=0, is_simplified=False, callback_function=print)
a.register_listener(16, callback_function=print)
@cpvalente cpvalente added the bug Something isn't working label Feb 25, 2022
@cpvalente
Copy link
Owner

cpvalente commented Feb 25, 2022

Hi, thank you for opening the issue. I had a quick look and there are no obvious issues here.

I will write some tests for the scenario and hopefully find the mistake shortly.
Will also test output from resolume to see if the implementation matches (all tests so far have been done with DMX workshop)

@cpvalente cpvalente linked a pull request Feb 26, 2022 that will close this issue
@cpvalente
Copy link
Owner

Hey @gabe927, I believe the code in the PR #21 fixes the issue.
I will just take some time to make sure everything is OK. You are welcome to checkout the new code if you have the opportunity

@crommcruach
Copy link

crommcruach commented Jan 21, 2025

Same problem here with Version 1.5 on sending Data to Artnet Node(s):

def artnet_off(target_ip,universe):
    #sends blackout to clear signals
    artnet = StupidArtnet(target_ip, universe, PACKET_SIZE)
    artnet.blackout()	
    artnet.show()


def artnet_on(target_ip,universe):
    #outputs full on 
    artnet = StupidArtnet(target_ip, universe, PACKET_SIZE)
    artnet.flash_all()
    artnet.show()


artnet_on("192.168.1.11",0)
time.sleep(1)
artnet_off("192.168.1.11",0)

Header:
bytearray(b'Art-Net\x00\x00P\x00\x0e\x00\x00\x00\x00\x01\xfe')

Works Fine!

def artnet_off(target_ip,universe):
    #sends blackout to clear signals
    artnet = StupidArtnet(target_ip, universe, PACKET_SIZE)
    artnet.blackout()	
    artnet.show()


def artnet_on(target_ip,universe):
    #outputs full on 
    artnet = StupidArtnet(target_ip, universe, PACKET_SIZE)
    artnet.flash_all()
    artnet.show()


artnet_on("192.168.1.11",1)
time.sleep(1)
artnet_off("192.168.1.11",1)

Header:
bytearray(b'Art-Net\x00\x00P\x00\x0e\x00\x00\x01\x00\x01\xfe')

Nothing

Same if "set_simplified(False)" Universe 0 Workin any above 0 no Output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants