ni / niveristand-instrument-addon-custom-device

VeriStand Instrument Addon custom device
MIT License
11 stars 18 forks source link

Can't send UDP data to Multicast IP address #172

Open CoderMad opened 3 years ago

CoderMad commented 3 years ago

I have configured the UDP Custom Device for my project where the receiving IP (target) is multicast receiver. But, after deploying the project to target I could see an error in Error code Message channel. I have attached the error code in the attachment, please let me know if there is any fix or workaround available for this issue.

Regards, Madan Mohan Capture

bogdanp-ni commented 3 years ago

Hi @CoderMad,

Sure, we'll take a look. I haven't seen this error before, so unfortunately I cannot offer a good workaround yet.

CoderMad commented 3 years ago

Hi @bogdanp-ni, I have reviewed the source code shared in this repo. I think in the Engine configuration part, you guys are using Protocols.lvlibp library for all the protocol level APIs. I think for the multicast transmission we might need to use 'UDP Multicast Open' instead of 'UDP open' in the initialization part (attached image below) based on the validation of the target IP range (224.0.0.0 through 239.255.255.255 for multicast). Due to this issue we couldn't able to transfer UDP data to Multicast addresses. Can you guys please check on this aspect and provide us a fix or any alternative workaround?

--Madan Mohan UDP_Open