diff --git a/entry/src/main/cpp/bin/libJudgeSdk.so b/entry/src/main/cpp/bin/libJudgeSdk.so index 3a1b8133..1bfb688d 100644 Binary files a/entry/src/main/cpp/bin/libJudgeSdk.so and b/entry/src/main/cpp/bin/libJudgeSdk.so differ diff --git a/entry/src/main/ets/common/service/indexService.ts b/entry/src/main/ets/common/service/indexService.ts index 57513cc3..bc847b9e 100644 --- a/entry/src/main/ets/common/service/indexService.ts +++ b/entry/src/main/ets/common/service/indexService.ts @@ -301,16 +301,17 @@ function openChuankouFn(callback) { } function getChuankouFnMsg() { - testNapi.SerialRecvAsync(globalThis.fd, 5000, (revTestInfo) => { - const message = revTestInfo?.recevedBuf?.toString() - let msg = util.TextDecoder.create().decodeWithStream(new Uint8Array(revTestInfo?.recevedBuf)) - let dang = Number(msg?.split(",")?.[1] || 0) - globalThis.chuankoMsg = dang - console.log("lixiao, chuankou", msg) - }) - setTimeout(() => { - getChuankouFnMsg() - }, 200) + // 新档位 + // testNapi.SerialRecvAsync(globalThis.fd, 5000, (revTestInfo) => { + // const message = revTestInfo?.recevedBuf?.toString() + // let msg = util.TextDecoder.create().decodeWithStream(new Uint8Array(revTestInfo?.recevedBuf)) + // let dang = Number(msg?.split(",")?.[1] || 0) + // globalThis.chuankoMsg = dang + // console.log("lixiao, chuankou", msg) + // }) + // setTimeout(() => { + // getChuankouFnMsg() + // }, 200) let timeout = 50000; // 2秒超时 let databuff = [0x61, 0xAA, 0x0A, 0X15, 0X00]; // send ABCDE testNapi.SerialSendAsync(globalThis.fd, databuff, (ret) => {