Skip to content
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

Test disconnection with power meter #38

Closed
DVEfremov opened this issue Dec 28, 2020 · 1 comment
Closed

Test disconnection with power meter #38

DVEfremov opened this issue Dec 28, 2020 · 1 comment
Assignees
Labels
Investigate Investigate/Research

Comments

@DVEfremov
Copy link

DVEfremov commented Dec 28, 2020

Test USB cable disconnection

Tests with USB connection.

Possible cases:

  • Pull out USB; Turn off Yokogawa:
  • In all described cases we could not get information from PTD after connection recovering or turning on Yokogawa. In log messages we can see next messages:
Time,01-13-2021 15:41:30.548,ERROR,write to WT310 failed with error 0.
Time,01-13-2021 15:41:30.550,Watts,-1.000000,Volts,-1.000000,Amps,-1.000000,PF,-1.000000,Mark,notset 
Time,01-13-2021 15:41:31.547,WARNING,No valid watts samples for this measurement!
Time,01-13-2021 15:41:54.704,ERROR,write to WT310 failed with error 0.
Time,01-13-2021 15:41:54.705,Watts,-1.000000,Volts,-1.000000,Amps,-1.000000,PF,-1.000000,Mark,notset
Time,01-13-2021 15:41:55.716,ERROR,write to WT310 failed with error 0.
  • To get correct data from Yokogawa again we have to restart PTD.

Test RS-232 connection

  • Case 1. Pull out RS-232:
    When we pull out RS-232 we get next messages in log file:
Time,01-14-2021 16:13:41.449,Watts,-2.000000,Volts,-2.000000,Amps,-2.000000,PF,-2.000000,Mark,notset
Time,01-14-2021 16:13:44.453,Watts,-1.000000,Volts,-1.000000,Amps,-1.000000,PF,-1.000000,Mark,notset   
Time,01-14-2021 16:13:44.455,Watts,-2.000000,Volts,-2.000000,Amps,-2.000000,PF,-2.000000,Mark,notset   
Time,01-14-2021 16:13:44.457,Watts,-2.000000,Volts,-2.000000,Amps,-2.000000,PF,-2.000000,Mark,notset   
Time,01-14-2021 16:13:47.458,Watts,-1.000000,Volts,-1.000000,Amps,-1.000000,PF,-1.000000,Mark,notset   
Time,01-14-2021 16:13:47.460,Watts,-2.000000,Volts,-2.000000,Amps,-2.000000,PF,-2.000000,Mark,notset   
  • Messages in console:
01-14-2021 16:14:23.451: ERROR: read of WT310 failed with error 0.
01-14-2021 16:14:23.452: WARNING: Missed 2 samples
01-14-2021 16:14:26.336: timeout, 0 bytes read:!

  • If we plug RS-232 the connection completely recovering, we can get data from Yokogawa by PTD.

  • Case 2. Turn off Yokogawa.

  • Messages in log file:

Time,01-14-2021 16:26:45.374,Watts,-1.000000,Volts,-1.000000,Amps,-1.000000,PF,-1.000000,Mark,notset 
Time,01-14-2021 16:26:46.378,Watts,-1.000000,Volts,-1.000000,Amps,-1.000000,PF,-1.000000,Mark,notset 
Time,01-14-2021 16:26:47.372,Watts,-1.000000,Volts,-1.000000,Amps,-1.000000,PF,-1.000000,Mark,notset
  • Messages in console:
01-14-2021 16:26:54.375: ERROR: write failed with error 995.
01-14-2021 16:26:54.376: ERROR: write to WT310 failed with error 0.
  • To get correct data from Yokogawa again we have to restart PTD.

In cases when Yokogawa is turned off or unavailable throw USB and we try to start PTD and connect to Yokogawa by RS-232 we will have the same error:


****************************************************************************
***********************************
SPEC PTDaemon Tool
Version 1.9.1-a2d19f26-20190717
***********************************
Licensed Materials - Property of SPEC
Copyright 2006-2019 Standard Performance Evaluation Corporation (SPEC)
All Rights Reserved.
For use with benchmark products from SPEC and authorized organizations only.
****************************************************************************
  Selected power meter 'Yokogawa WT310' from wt310.cpp
Redirecting data output to file D:\logs_ptdeamon.txt
Calculated PTD CRC: 0xa2d19f26, 2017792
01-14-2021 16:06:26.715: Attempting to connect to measurement device type 49...
01-14-2021 16:06:29.629: ERROR: Zero byte count from meter
01-14-2021 16:06:29.630: ERROR: write to Yokogawa WT310 failed with error 0.
01-14-2021 16:06:29.630: ERROR: Invalid device type specified.

@aatangulov aatangulov changed the title Test usb cable disconnection Test disconnection with power meter Dec 28, 2020
@aatangulov
Copy link
Contributor

  • USB/serial disconnect
  • Power failure/ power button pressed on meter

@xzfc xzfc added documentation Improvements or additions to documentation Investigate Investigate/Research and removed documentation Improvements or additions to documentation labels Jan 29, 2021
@xzfc xzfc closed this as completed Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigate Investigate/Research
Projects
None yet
Development

No branches or pull requests

3 participants