-
Notifications
You must be signed in to change notification settings - Fork 51
PDC stuck on requesting header message #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @MauritsMolberg, Maybe you should print/debug bytes coming from tinyPDC, maybe a type of the frame is not correctly recognized. |
Hi, and thanks for the reply. That is very strange. I get the same results as in the original post when running the scrips out of the box, and it is the same when I run it on another machine or try to send data between machines. I unfortunately do not have the time or skills to debug using the bytes in the frames, but I was able to get it to work using this fork, which is good enough for my project. You could take a look there if you are interested in seeing what the differences that make it work could be. |
Hi, I am trying to send some simulated data through pyPMU to OpenPDC and checked the example script, but it seems i am having similar errors where the header file is requested but nothing gets sent, can you suggest what you did to resolve this? |
Hi @bmitrauncc, I was able to get it to work using the fork I linked in my other comment. I never figured out what the issue was. |
I know this issue has been brought up in other threads, but they have been regarding PMU data sent by other programs, and no solution has been found.
I am trying to send PMU data from one of the example PMU scripts to tinyPDC, and tinyPDC never moves on from requesting PMU header. This is printed from tinyPMU:
and this is printed from tinyPDC:
The result is the same when any of the three PMU scripts is sending, and when the scripts are both running on a single computer and on two different computers. If I comment out the
header = pdc.get_header()
line, the same issue happens when requesting config frame.Through debugging I've found that the program gets stuck when running the

socket.recv()
function in theget()
function on line 129 ofpdc.py
.The "Received unknown message" warning always appears after the PDC has requested something, so could there be an issue with the command frame? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered: