Beispiel #1
0
        private void dumpmemfull_Click(object sender, EventArgs e)
        {
            try
            {
                WebMAN.Dump(WebMAN.DumpFile.FullMemory);
                WebMAN.RenameFile("/dev_hdd0/dump_full.bin", "/dev_hdd0/FULLdump.bin");
                Thread.Sleep(100);
                DownloadFile("dev_hdd0/FULLdump.bin", "FULLdump.bin");
                status.Text = "Dump retrieved!";

                if (rbt.Checked)
                {
                    string res = "";

                    if (sftrbt.Checked)
                    {
                        WebMAN.Power(WebMAN.PowerFlag.SoftReboot, out res);
                    }
                    else if (hrdrbt.Checked)
                    {
                        WebMAN.Power(WebMAN.PowerFlag.HardReboot, out res);
                    }
                    else if (qckrbt.Checked)
                    {
                        WebMAN.Power(WebMAN.PowerFlag.QuickReboot, out res);
                    }

                    status.Text = res;
                }
                else
                {
                    WebMAN.RingBuzzer(0xA, 0x1B6);
                }
            }
            catch
            {
                status.Text = "Failed to dump full memory";
            }
        }
Beispiel #2
0
        private void dumplv1btn_Click(object sender, EventArgs e)
        {
            try
            {
                WebMAN.Dump(WebMAN.DumpFile.LV1);
                WebMAN.RenameFile("/dev_hdd0/dump_lv1.bin", "/dev_hdd0/lv1dump.bin");
                status.Text = "File Dumped!";
                Thread.Sleep(100);
                DownloadFile("dev_hdd0/lv1dump.bin", "lv1dump.bin");
                status.Text = "Dump retrieved!";
                if (rbt.Checked)
                {
                    string res = string.Empty;
                    if (sftrbt.Checked)
                    {
                        WebMAN.Power(WebMAN.PowerFlag.SoftReboot, out res);
                    }
                    else if (hrdrbt.Checked)
                    {
                        WebMAN.Power(WebMAN.PowerFlag.HardReboot, out res);
                    }
                    else if (qckrbt.Checked)
                    {
                        WebMAN.Power(WebMAN.PowerFlag.QuickReboot, out res);
                    }

                    status.Text = res;
                }
                else
                {
                    WebMAN.RingBuzzer(0xA, 0x1B6);
                }
            }
            catch
            {
                status.Text = "Failed to dump LV1 memory";
            }
        }