Skip to content

for dnp3-python v0.2#5

Merged
craig8 merged 22 commits intoVOLTTRON:releasefrom
kefeimo:develop
Feb 15, 2023
Merged

for dnp3-python v0.2#5
craig8 merged 22 commits intoVOLTTRON:releasefrom
kefeimo:develop

Conversation

@kefeimo
Copy link
Copy Markdown
Contributor

@kefeimo kefeimo commented Jan 4, 2023

No description provided.

@kefeimo kefeimo requested review from craig8 and davidraker and removed request for craig8 and davidraker January 4, 2023 21:28
@craig8 craig8 requested review from bonicim, craig8 and shwethanidd and removed request for craig8 and shwethanidd January 4, 2023 21:44
@craig8 craig8 removed their assignment Jan 4, 2023
@craig8 craig8 requested review from craig8 and removed request for bonicim January 4, 2023 21:46
@craig8 craig8 assigned shwethanidd and unassigned bonicim Jan 4, 2023
Copy link
Copy Markdown
Contributor

@craig8 craig8 left a comment

Choose a reason for hiding this comment

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

I am testing on 22.04 with the package from https://test.pypi.org/project/dnp3-python/0.2.3b2/. Though I could probably use the src and use setup.py for installation....Is that correct?

It seems that I couldn't get that to work. In the developer section of the readme can you walk us through the commands to build the project from source? This is different than normal so I would like to see that in the readme.

We need to be able to cross compile this on different versions of python. the output currently is https://test-files.pythonhosted.org/packages/43/1a/bef57863dee2ffacf467fba8912933b1b37fb30d0bca4a9c33380d2903e2/dnp3_python-0.2.3b2-cp38-cp38-manylinux1_x86_64.whl explicitly python3.8

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/dnp3_python/dnp3station/outstation_new.py Outdated
Comment thread src/dnp3_python/dnp3station/outstation_new.py Outdated
while count < 3:
sleep(1) # Note: hard-coded, master station query every 1 sec.
while count < 10:
sleep(2) # Note: hard-coded, master station query every 1 sec.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So tell me why we are sleeping here? Can we intercept something, or determine whatever startup (I assume startup) has to be done so we can continue?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The sleep is to mimic the master polling interval, say, every 2 seconds.
When you say "Can we intercept something", do you mean Difference between gevent.sleep() and time.sleep() in Python? Since this is a small demo script, I intend to make it simple.

@craig8 craig8 merged commit 9dab238 into VOLTTRON:release Feb 15, 2023
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