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

Gude EPC 1202 incompatible with existing gude power backends #1263

Open
est-flouveau opened this issue Sep 4, 2023 · 5 comments
Open

Gude EPC 1202 incompatible with existing gude power backends #1263

est-flouveau opened this issue Sep 4, 2023 · 5 comments

Comments

@est-flouveau
Copy link

Hi Everyone,

I'm using labgrid in its release v23.0.3.
I bought a EPC 1202 from Gude (firmware v1.11) and want to use this driver to control my device power cycle.

I try all gude driver without success.
Here is the output of the ov.html:

<!DOCTYPE html>
<html><head><!--
<meta http-equiv="powerstate" content="Power Port,1">
<meta http-equiv="powerstate" content="Power Port,1">
<meta http-equiv="powerstate" content="Power Port,1">
<meta http-equiv="powerstate" content="Power Port,1">
-->
</head><body></body></html>

And this is not compatible with available power drivers.

  • gude.py => driver does not search for ov.html
  • gude24.py => pattern is not compatible with ov.hml
  • gude8031.py => driver does not search for ov.html
  • gude8225.py => driver does not search for ov.html
  • gude8316.py => pattern is not compatible with ov.hml

I'm quite confused with this and don't know how to handle it.
I modified gude24.py to fit the ov.html output, but don't know if it's the correct way.

Moreover, we can use http://192.168.0.2/statusjsn.js?components=1 to get statuses of outputs and parse using json.

@Emantor
Copy link
Member

Emantor commented Sep 6, 2023

Is this by chance already supported inside of pdudaemon? In that case I'd recommend using pdudaemon instead.

@est-flouveau
Copy link
Author

It seems that the 1202 has been recently integrated inside pdudaemon using telnet:

pdudaemon/pdudaemon@6739a7d

I will give it a try. Thanks for the tips

@Bastian-Krause
Copy link
Member

@est-flouveau Did pdudaemon work for your case?

@est-flouveau
Copy link
Author

I haven't had time to test this solution yet.

@Bastian-Krause Bastian-Krause changed the title Gude power strip access failed Gude EPC 1202 incompatible with existing gude power backends Oct 23, 2023
@est-flouveau
Copy link
Author

est-flouveau commented Nov 20, 2023

I finally have time to check pdudaemon, and it works (on|off|reboot) using the HEAD of the project. Next step is to configure labgrid to work with pdudaemon.

Only issue is that pdudaemon does not support "get" command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants