Skip to content

Adding ovdmx support for ola#1581

Open
stemnic wants to merge 23 commits into
OpenLightingProject:masterfrom
stemnic:master
Open

Adding ovdmx support for ola#1581
stemnic wants to merge 23 commits into
OpenLightingProject:masterfrom
stemnic:master

Conversation

@stemnic

@stemnic stemnic commented Sep 12, 2019

Copy link
Copy Markdown

Created a new pull request, we would also like to add some references to the hardware files so people can also make their own adapters

@peternewman

Copy link
Copy Markdown
Member

Created a new pull request, we would also like to add some references to the hardware files so people can also make their own adapters

In terms of the hardware, can you give some more info? My gut feeling is you're probably in the right area making a new plugin, but see some other options here:
https://www.openlighting.org/ola/get-help/ola-faq/#What_is_the_difference_between_the_different_USB_plugins

So fixing the licence check would be an excellent and trivial place to start.

@peternewman peternewman added this to the 0.11.0 milestone Sep 22, 2019

@peternewman peternewman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread olad/DynamicPluginLoader.cpp Outdated
Comment thread olad/DynamicPluginLoader.cpp Outdated
Comment thread plugins/ovdmx/OVDmxThread.cpp Outdated
Comment thread plugins/ovdmx/OVDmxPort.h Outdated
Comment thread plugins/ovdmx/OVDmxPort.h Outdated
Comment thread plugins/ovdmx/OVDmxThread.cpp Outdated
Comment thread plugins/ovdmx/OVDmxThread.h Outdated
Comment thread plugins/ovdmx/OVDmxThread.h Outdated
@stemnic

stemnic commented Oct 9, 2021

Copy link
Copy Markdown
Author

Sorry this took a lot longer than I anticipated, kind of forgot it with everything that happened these last few years.

I have made the changes you suggested and hope everything is okey now. Regarding the hardware it is custom with a pcb layout and microcontroller code which you can find here https://github.com/omegav/ovdmx

@stemnic
stemnic requested a review from peternewman October 9, 2021 14:47

@peternewman peternewman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial comments.

Is there anything special to identify your device via lsusb, or is it just on /dev/ttyACM0 or similar?

Comment thread plugins/ovdmx/OVDmxDevice.cpp Outdated
Comment thread plugins/ovdmx/OVDmxDevice.h Outdated
Comment thread plugins/ovdmx/OVDmxPlugin.cpp Outdated
Comment thread plugins/ovdmx/OVDmxThread.cpp
Comment thread plugins/ovdmx/OVDmxThread.cpp Outdated
Comment on lines +100 to +101
dmx_packet.data_length_parts[0] = ((((uint16_t)DMX_UNIVERSE_SIZE)>>8) & 0xff);
dmx_packet.data_length_parts[1] = ((((uint16_t)DMX_UNIVERSE_SIZE)) & 0xff);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a look at our SplitUInt16 function for this.

What happens if the incoming DMX frame has fewer than 512 slots?

@stemnic stemnic Nov 28, 2021

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure, in the application I have used it in there has always been 512 frames afaik. The original author of the code @JanOveSaltvedt could probably comment on that
I have changed it at least to SplitUInt16 as requested.

Comment thread plugins/ovdmx/OVDmxThread.cpp Outdated
Comment thread plugins/ovdmx/OVDmxThread.cpp Outdated
@stemnic

stemnic commented Nov 28, 2021

Copy link
Copy Markdown
Author

Some initial comments.

Is there anything special to identify your device via lsusb, or is it just on /dev/ttyACM0 or similar?

From my understanding it just shows up as /dev/ttyACM0 since it's configured on the MCU side to show up as a usb cdc device. You can see the MCU usb config here https://github.com/omegav/ovdmx/blob/master/Code/OVDMX/src/config/conf_usb.h

stemnic and others added 10 commits November 28, 2021 16:24
De-dented

Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
attached comment to function

Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
Aligned

Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
Fixed typo

Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
Fixes aligning

Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
@stemnic

stemnic commented Nov 28, 2021

Copy link
Copy Markdown
Author

All the changes you requested should now be committed

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

Successfully merging this pull request may close these issues.

4 participants