Commit fced0dc6 authored by martin hou's avatar martin hou

fix: 增加固件

parent 8ca1b95d
......@@ -10,7 +10,9 @@ const firmwareVersions = [
{ model: 'hidock-h1', version: '5.2.9', url: 'https://jensen.test.hidock.com/firmwares/hidock-h1-5.2.9.bin', remark: '' },
{ model: 'hidock-h1e', version: '6.2.9', url: 'https://jensen.test.hidock.com/firmwares/hidock-h1e-6.2.9.bin', remark: '' },
{ model: 'hidock-p1', version: '1.3.10', url: 'https://jensen.test.hidock.com/firmwares/p1-1.3.10.bin', remark: '' },
{ model: 'hidock-p1', version: '1.3.14', url: 'https://jensen.test.hidock.com/firmwares/p1-1.3.14.bin', remark: '' }
{ model: 'hidock-p1', version: '1.3.14', url: 'https://jensen.test.hidock.com/firmwares/p1-1.3.14.bin', remark: '' },
{ model: 'hidock-p1', version: '1.0.11', url: 'https://jensen.test.hidock.com/firmwares/hidock-p1-1.0.11.bin', remark: '' },
{ model: 'hidock-p1', version: '1.0.12', url: 'https://jensen.test.hidock.com/firmwares/hidock-p1-1.0.12.bin', remark: '' }
];
const sleep = (ms: number) => {
......@@ -822,6 +824,16 @@ export function Home() {
await releaseJensen();
}
const handleReadBlock = async () => {
let jensen = await getJensen();
if (jensen == null) return;
const fname = '2026Feb04-152156-Rec00.wav';
let rst = await jensen.readFile(fname, 0, 1024 * 1024 * 2);
console.log('xxxxxx0', rst);
// Logger.info('jensen', 'read-block', 'Read Block: ' + JSON.stringify(rst));
await releaseJensen();
}
return (
<>
<div className="btn-container" style={{ display: 'flex', flexDirection: 'row', gap: '16px', padding: '16px', alignItems: 'center', flexWrap: 'wrap' }}>
......@@ -866,6 +878,7 @@ export function Home() {
<button onClick={switchRecordingQuality}>Switch Recording Quality</button>
<button onClick={getAudioInputDevice}>Get Audio Input Device</button>
<button onClick={switchAudioInputDevice}>Switch Audio Input Device</button>
<button onClick={handleReadBlock}>Read Block</button>
<span style={{ marginLeft: '8px' }}>Interval(ms): </span>
<input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment