-
Notifications
You must be signed in to change notification settings - Fork 4
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
Sent data does not work / it doesnt send #2
Comments
My best guess is that you haven't the right entitlements setup for your macOS app which by default enables sandboxing. You will need the This can be setup in the Xcode UI. Select your Xcode Project file, then your target and go to the Signing & Capabilities tab. Under "App Sandbox" select both checkboxes under Networking, Incoming Connections (Server) and Outgoing Connections (Client). |
Hm okay. I have only ever used it with UDP broadcast. Maybe try this. |
So this is the class I've set up
I've already used Wireshark to compare the data packets sent by the sACN Package and QLC+. The packages sent by QLC+ had a size of about 600 bytes while the ones from the package only had a size of around 40. |
You need to keep the 40 bytes is definitely wrong, it needs to be a lot more. You can also try adding padding zeros at the end to make the whole DMX data 512 bytes long, maybe the other side always expects 512 bytes of DMX data. |
Also, please try out the demo and modify it to your needs to see if that works on your setup: https://github.com/dnadoba/sACN/blob/master/Sources/sACNDemo/main.swift |
Ok I changed some things in my code and now I think the connection is fine. It monitors perfectly in the XCode Network Monitor and the length is 600 bytes with my normal channel variables.
The Log looks like this:
But it's still not working... My lamp didn't light up. QLC+ works btw. A DMXChannel looks like this:
and I create 512 of them when a new project is made. |
You can try to use the sACNView app and check if the values are correctly received. Use your own IP for testing this. |
Ok thanks for the help. It doesn't directly work, but if I pass it through QLC+ it works. I think my OLA didn't accept the signals for some reason. In sACNView it looked good and it worked in QLC+ too. So thanks a lot :) |
Hi,
I have a problem using this package. I'm building a macOS application using Swiftui and I'm not able to control my lights with this package. I have a Raspberry Pi set up with OLA.
To explain the problem a bit further, yesterday I set up the Raspberry Pi. I checked the XCode Network (Debug) Monitor to look for Network Traffic, and indeed, I saw data was going out of my program into the pi. (Yes I checked the pi too). But no values seemed to change in the universe. I retried multiple times and tried different methods too. My current attempt is using UDP Unicast to a local IP address. (Yes I tried plugging every component into a switch, and yes it didn't work) I checked every reachability, and to my surprise when I used qlc+ everything worked out fine. So it seems the problem is on the side of this package. I hope to get some help or answer on this issue because the other one didn't really get any response.
Best regards,
MIC
In OLA:
IN XCode:
The text was updated successfully, but these errors were encountered: