Hi,
I am trying to find a way to toggle 'Encrypted Communication' flag in Communication Settings tab of the device from Codesys test manager. I looked in script engine plugin API and tried with 'device_parameters' properties of device object, but the count returned was 0. Also tried get_device_communication_settings() of the device object, but could not find any property to set the flag. Also could not find anything suitable in test manager built-in test actions. Request your help in sorting this out.
Thanks,
Mazahar S
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With the upcoming release of CODESYS V3.5 SP16 we added a property to the device communication settings which allows a script to enable/disable the encrypted communication for a device.
BR
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Martin,
Thank you for the response. But the issue is that we do not have a current plan to include SP16 into our package. I understand that automation platform APIs can also be used via IronPythonScripting in TestManager to perform some of the automated actions. I found out that 'ICommunicationSettings6' interface in DeviceObject has get/set iscommunicationencrypted methods. I am not an expert in using IronPython. Hence, could you please let me know if it is possible this way and how.
BR
Mazahar S
Last edit: mazahars 2020-04-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to find a way to toggle 'Encrypted Communication' flag in Communication Settings tab of the device from Codesys test manager. I looked in script engine plugin API and tried with 'device_parameters' properties of device object, but the count returned was 0. Also tried get_device_communication_settings() of the device object, but could not find any property to set the flag. Also could not find anything suitable in test manager built-in test actions. Request your help in sorting this out.
Thanks,
Mazahar S
Hi Mazahar S.
With the upcoming release of CODESYS V3.5 SP16 we added a property to the device communication settings which allows a script to enable/disable the encrypted communication for a device.
BR
Martin
Hi Martin,
Thank you for the response. But the issue is that we do not have a current plan to include SP16 into our package. I understand that automation platform APIs can also be used via IronPythonScripting in TestManager to perform some of the automated actions. I found out that 'ICommunicationSettings6' interface in DeviceObject has get/set iscommunicationencrypted methods. I am not an expert in using IronPython. Hence, could you please let me know if it is possible this way and how.
BR
Mazahar S
Last edit: mazahars 2020-04-07