scy-phy / minicps

MiniCPS: a framework for Cyber-Physical Systems real-time simulation, built on top of mininet
MIT License
166 stars 70 forks source link

Empty ENIP-Tags #28

Closed potiri closed 3 years ago

potiri commented 3 years ago

I keep facing a problem while running the example project swat-s1. Whilst init.py works and I can start run.py seeing the mininet> prompt the PLCs are not communication correctly as the ENIP-Tags are not filled properly. When I start plc1.py (after having started plc2 and plc3) i get the error:

fit201 = float(self.receive(FIT201_2, PLC2_ADDR))
ValueError: could not convert string to float:

Debugging showed me that this is because fit201 is just an empty string. Could you maybe help me what I'm missing out here?

potiri commented 3 years ago

It seems that a new version of cpppo (4.4) caused the error, everything works fine again with version 4.3.4 sopip uninstall cpppo and pip install cpppo=4.3.4 solved my problem.

Gargi-Mitra commented 3 years ago

I was also getting the same error. Uninstalling cpppo 4.4 and installing cpppo version 4.3.4 has not solved it. I am still getting the error.