-
Notifications
You must be signed in to change notification settings - Fork 47
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
Frequency out of range when the format is floating point. #29
Comments
I also had the same issue a while back, and my "solution" was to comment out line 2144 and 2145 Lines 2144 to 2145 in 66e6c49
Not a pretty solution, but it solved for me. As freq is a number bypassing the if should solve the issue. in the branch udp-support-v0.1 there is already the commented version, but if you're using TCP i'd suggest keeping with master as it is more up to date with community issues. Lines 2143 to 2145 in 22b6064
|
@poledna And the table in Mysql could also prove this. So did you received the correct data? |
Hey @JiaxuanHan-UoS, Would you mind sharing your configuration frame with us? Also, there is a known issue with FREQ unpacking caused by my misinterpretation as stated here #4 |
Hi Stevan, I just read issue4 and find there could be some misunderstanding about FREQ definition. If the format of FREQ is integer, the 2-byte string represents deviation and requires the nominal frequency defined in CONFIG-2 to determine the actual frequency. However, if the FREQ is float, the 4-byte string is long enough to represent the accurate value and don't need the nominal frequency in CONFIG-2 to calculate the result. |
That is correct. That issue has been already fixed on bugfix branch. If you are using tinyPDC this line will ask for ConfigurationFrame in order to unpack the values:
Please double check your FORMAT field in configuration frame, should look like this:
So you should have |
@sstevan |
Thanks, the problem has been solved after using bug-fix v1.0.1 frame.py scripts |
Firstly, I set the format of phasors and frequency as integer. Everything is fine and I keep receiving messages about dataframe were received successfully.
When the format of frequency were changed to floating point. The error messages were shown below:
According to the suggestions of Steven, I removed exception catching and find the error location is the range filter of frequency. Row 2143 in frame.py.
However, I checked the received data with PMU connection tester, and the received FREQ is within the given range(49.9288Hz).
Thanks for all discussion!
The text was updated successfully, but these errors were encountered: