labgrid-project / labgrid

Embedded systems control library for development, testing and installation
https://labgrid.readthedocs.io/
Other
327 stars 164 forks source link

Gude EPC 1202 incompatible with existing gude power backends #1263

Open est-flouveau opened 1 year ago

est-flouveau commented 1 year ago

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.

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 commented 1 year ago

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

est-flouveau commented 1 year ago

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

https://github.com/pdudaemon/pdudaemon/commit/6739a7dfe1f0d84e97b4bb7fa1930841823909d2

I will give it a try. Thanks for the tips

Bastian-Krause commented 11 months ago

@est-flouveau Did pdudaemon work for your case?

est-flouveau commented 11 months ago

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

est-flouveau commented 9 months ago

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