I have created virtual machines for each node of my power model the 33-bus.
Each virtual machine is load2 to load33, that will run a python code as DSTCP.
So each VM has its own port starting from 6345 to 6376 because I need to run them simultaneously to collect voltages, currents, and power measurements.
The issue is that I reached port 6350 so only 7 loads work and the rest the python code remains hanging, which I do not know what is wrong with it.
What could be possibly the issue?
Best Regards,
Dhiaa.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you created the same number of clients on OpenDSS-G? To do it, go to the configuration in DSS-G and modify the number of TCP clients to match the number of VM you have around your host. Make sure that your firewall/antivirus is not blocking the ports for getting access to DSS-G.
Let me know how it goes.
Best regards
Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes I thought of chaning the tcp clients to a higher number but it refused to work. Also the firewall is disabled, and tried to even checked the opened ports and nothing worked. I want to access the DSTCP server code to see what IP address you guys are using.
P.S: is there a way to set the tcp clients number on the software from dstcp interfacing code using python I mean without going to the software graphically, because I feel like when I am setting the simulation mode I might not set up the tcp clients number or it is being reset to 1.
Best Regards,
Dhiaa.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At this point is not possible to do that, and I think that setting the number of clients from the configuration is not the right way to do it, I mean, it seemed to wor back in 2013 but these days we can do better. I can chage it for you so it will happen automatically, also, we can serialize the port utilization so we won't have use multiple ports.
I'm working on version 3 but I don't think I'll have a Beta before Januay (I'm in hollyday mode now). So, if you can wait until the first week of Januay I can have that ready by then.
In the mean time you can just create an interface for that, something like a server that gets all the external connections and serialize them into a single connection to DSS-G.
Best regards and happy hollydays!
Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did the interfacing once, with DSTCP.stepIN only once, and for all the 33 loads, and now I am collecting measurements with only one port number.
As a note: only ports from 6345 to 6350 are opened and viable to work with DSTCP interfacing for the moment which is what you need to work on.
Now I have another issue, How do I get the status of the Reclosers I have in my system using DTSCP ?
I hope you could help me with that or at least the dss command that I can use to get the status of reclosers and how can I change some settings using DSS.command
Best Regards,
Dhiaa.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are several ways to do this, let me just mention a couple:
Have you considered using function x19 from DSTCP? It will bring the status for all the switches/reclosers/etc...
Using function x25 you can send an OpenDSS command to DSS-G, so, it will work with the standard DSS queries. For example, in DSS to get the value of an object property you can use the "?" char before the property definition. For example, if you have a recloser and want to know the action property value, the command will be:
? recloser.XYZ.action
Where XYZ is the name of the recloser.
Best regards
Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All,
I have an issue with the DSTCP interfacing.
I have created virtual machines for each node of my power model the 33-bus.
Each virtual machine is load2 to load33, that will run a python code as DSTCP.
So each VM has its own port starting from 6345 to 6376 because I need to run them simultaneously to collect voltages, currents, and power measurements.
The issue is that I reached port 6350 so only 7 loads work and the rest the python code remains hanging, which I do not know what is wrong with it.
What could be possibly the issue?
Best Regards,
Dhiaa.
Hello,
Have you created the same number of clients on OpenDSS-G? To do it, go to the configuration in DSS-G and modify the number of TCP clients to match the number of VM you have around your host. Make sure that your firewall/antivirus is not blocking the ports for getting access to DSS-G.
Let me know how it goes.
Best regards
Davis
Hello,
Yes I thought of chaning the tcp clients to a higher number but it refused to work. Also the firewall is disabled, and tried to even checked the opened ports and nothing worked. I want to access the DSTCP server code to see what IP address you guys are using.
P.S: is there a way to set the tcp clients number on the software from dstcp interfacing code using python I mean without going to the software graphically, because I feel like when I am setting the simulation mode I might not set up the tcp clients number or it is being reset to 1.
Best Regards,
Dhiaa.
Hi,
At this point is not possible to do that, and I think that setting the number of clients from the configuration is not the right way to do it, I mean, it seemed to wor back in 2013 but these days we can do better. I can chage it for you so it will happen automatically, also, we can serialize the port utilization so we won't have use multiple ports.
I'm working on version 3 but I don't think I'll have a Beta before Januay (I'm in hollyday mode now). So, if you can wait until the first week of Januay I can have that ready by then.
In the mean time you can just create an interface for that, something like a server that gets all the external connections and serialize them into a single connection to DSS-G.
Best regards and happy hollydays!
Davis
As a solution,
I did the interfacing once, with DSTCP.stepIN only once, and for all the 33 loads, and now I am collecting measurements with only one port number.
As a note: only ports from 6345 to 6350 are opened and viable to work with DSTCP interfacing for the moment which is what you need to work on.
Now I have another issue, How do I get the status of the Reclosers I have in my system using DTSCP ?
I hope you could help me with that or at least the dss command that I can use to get the status of reclosers and how can I change some settings using DSS.command
Best Regards,
Dhiaa.
Hello,
There are several ways to do this, let me just mention a couple:
Where XYZ is the name of the recloser.
Best regards
Davis