diff --git a/server/src/Controllers/ProgressController.cs b/server/src/Controllers/ProgressController.cs
new file mode 100644
index 0000000..e69de29
diff --git a/server/src/Services/ProgressService.cs b/server/src/Services/ProgressService.cs
new file mode 100644
index 0000000..e69de29
diff --git a/src/components/equipments/MotherBoardCaps.vue b/src/components/equipments/MotherBoardCaps.vue
index 63b21d3..ed1cf34 100644
--- a/src/components/equipments/MotherBoardCaps.vue
+++ b/src/components/equipments/MotherBoardCaps.vue
@@ -41,16 +41,12 @@
外设
-
@@ -120,16 +116,6 @@ async function handleMatrixkeyCheckboxChange(event: Event) {
}
}
-async function handlePowerCheckboxChange(event: Event) {
- const target = event.target as HTMLInputElement;
- const ret = await eqps.powerSetOnOff(target.checked);
- if (target.checked) {
- eqps.enablePower = ret;
- } else {
- eqps.enablePower = !ret;
- }
-}
-
async function toggleJtagBoundaryScan() {
eqps.enableJtagBoundaryScan = !eqps.enableJtagBoundaryScan;
}
diff --git a/src/stores/equipments.ts b/src/stores/equipments.ts
index 943d5a6..6bc7652 100644
--- a/src/stores/equipments.ts
+++ b/src/stores/equipments.ts
@@ -108,6 +108,9 @@ export const useEquipments = defineStore("equipments", () => {
async function jtagBoundaryScan() {
const release = await jtagClientMutex.acquire();
try {
+ // 自动开启电源
+ await powerSetOnOff(true);
+
const jtagClient = AuthManager.createAuthenticatedJtagClient();
const portStates = await jtagClient.boundaryScanLogicalPorts(
boardAddr.value,
@@ -139,6 +142,9 @@ export const useEquipments = defineStore("equipments", () => {
async function jtagUploadBitstream(bitstream: File): Promise {
try {
+ // 自动开启电源
+ await powerSetOnOff(true);
+
const jtagClient = AuthManager.createAuthenticatedJtagClient();
const resp = await jtagClient.uploadBitstream(
boardAddr.value,
@@ -155,6 +161,9 @@ export const useEquipments = defineStore("equipments", () => {
async function jtagDownloadBitstream(): Promise {
const release = await jtagClientMutex.acquire();
try {
+ // 自动开启电源
+ await powerSetOnOff(true);
+
const jtagClient = AuthManager.createAuthenticatedJtagClient();
const resp = await jtagClient.downloadBitstream(
boardAddr.value,
@@ -173,6 +182,9 @@ export const useEquipments = defineStore("equipments", () => {
async function jtagGetIDCode(isQuiet: boolean = false): Promise {
const release = await jtagClientMutex.acquire();
try {
+ // 自动开启电源
+ await powerSetOnOff(true);
+
const jtagClient = AuthManager.createAuthenticatedJtagClient();
const resp = await jtagClient.getDeviceIDCode(
boardAddr.value,
@@ -190,6 +202,9 @@ export const useEquipments = defineStore("equipments", () => {
async function jtagSetSpeed(speed: number): Promise {
const release = await jtagClientMutex.acquire();
try {
+ // 自动开启电源
+ await powerSetOnOff(true);
+
const jtagClient = AuthManager.createAuthenticatedJtagClient();
const resp = await jtagClient.setSpeed(
boardAddr.value,