From efa5896ab47409e680a896fd76ffb8924b5c77f7 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Fri, 30 Jan 2009 00:23:17 +0100 Subject: [PATCH] make the power-relay work this is a hack: use powercycle with 0 power_on_ms and a long enough power_off_ms as substitution for powerup/powerdown. This can't be activated via the gui but only with the rsbs2 perl script. more firmware reverse engineering is needed to get the commands powerup and powerdown to work, too. --- rsbs2 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rsbs2 b/rsbs2 index 9102759..2ad767e 100755 --- a/rsbs2 +++ b/rsbs2 @@ -280,11 +280,11 @@ printf("byte 22: 0x%x\n", ord($board[22])); #showprop("SERVER_POWER_ON_PULSE_MS"); #showprop("SERVER_POWER_OFF_MODE"); #showprop("SERVER_POWER_OFF_PULSE_MS"); -#showprop("AGENT_VERSION"); +#showprop("FP_COMREDIRECT"); board_properties(); -show_all_vars(); +#show_all_vars(); #server_power_on modes: (com/agilent/rmc/mgui/panels/PowerMgmtConf.class) #0: l_pmconf_option_disabled @@ -301,13 +301,16 @@ setprop("FP_REMOTE_POWER", "TRUE"); #PM Mode setprop("SERVER_POWER_ON_MODE", sprintf("0x%x", $pmode)); setprop("SERVER_POWER_OFF_MODE", sprintf("0x%x", $pmode)); +#Hack: Abuse powercycloe for powerup and down... +setprop("SERVER_POWER_ON_PULSE_MS", "0x0"); #$reqstr=''.$boarddesc_new.''; #print $reqstr."\n"; #print Dumper(_req($reqstr)); -#serveraction("hardreset"); -serveraction("powerup"); -serveraction("powerdown"); +serveraction("hardreset"); +#serveraction("powerup"); +#serveraction("powerdown"); +serveraction("powercycle"); logout(); -- 2.39.2