1
0
forked from dyf/APP

修改区分图片,动画协议

This commit is contained in:
fengerli
2025-11-21 18:47:20 +08:00
parent 27308e0ed1
commit 14d6fa7ccb

View File

@ -77,7 +77,7 @@
<text class="smallTxt">泛光模式</text> <text class="smallTxt">泛光模式</text>
</view> </view>
</view> </view>
<!-- <view class="mode fleft" v-on:click.stop="UploadOpenImg()"> <view class="mode fleft" v-on:click.stop="UploadOpenImg()">
<view class="leftImg"> <view class="leftImg">
<image class="img" src="/static/images/6155/DeviceDetail/open.png" mode="aspectFit"></image> <image class="img" src="/static/images/6155/DeviceDetail/open.png" mode="aspectFit"></image>
</view> </view>
@ -85,8 +85,8 @@
<text class="bigTxt">开机画面</text> <text class="bigTxt">开机画面</text>
<text class="smallTxt">上传</text> <text class="smallTxt">上传</text>
</view> </view>
</view> --> </view>
<view class="mode fleft" v-on:click.stop="UploadOpenVideo()"> <view class="mode marginLeft fleft" v-on:click.stop="UploadOpenVideo()">
<view class="leftImg"> <view class="leftImg">
<image class="img" src="/static/images/common/video.png" mode="aspectFit"></image> <image class="img" src="/static/images/common/video.png" mode="aspectFit"></image>
</view> </view>
@ -422,15 +422,11 @@
} }
switch (this.formData.mode) { switch (this.formData.mode) {
case 0: case 0:
txt = "强光模式"; txt = "强光模式";
break; break;
case 1: case 1:
txt = "弱光模式"; txt = "弱光模式";
break; break;
case 2: case 2:
txt = "爆闪模式"; txt = "爆闪模式";
break; break;
@ -773,7 +769,7 @@
} }
//FA 09 0C 84 FB 09 00 [01~08] + 3200字节 +FF 数据格式 //FA 09 0C 84 FE 09 00 [01~08] + 3200字节 +FF 数据格式
var buffer = new ArrayBuffer(bufferSize); var buffer = new ArrayBuffer(bufferSize);
var dataView = new DataView(buffer); var dataView = new DataView(buffer);
if (childPacket == 1) { if (childPacket == 1) {
@ -781,7 +777,7 @@
dataView.setUint8(1, 0x09); // 帧头 dataView.setUint8(1, 0x09); // 帧头
dataView.setUint8(2, 0x0C); // 帧头 dataView.setUint8(2, 0x0C); // 帧头
dataView.setUint8(3, 0x84); // 帧头 dataView.setUint8(3, 0x84); // 帧头
dataView.setUint8(4, 0xFD); // 帧头 dataView.setUint8(4, 0xFE); // 帧头
dataView.setUint8(5, 0x09); dataView.setUint8(5, 0x09);
dataView.setUint8(6, 0x00); // 帧头 dataView.setUint8(6, 0x00); // 帧头
dataView.setUint8(7, currentPacket); //包序号 dataView.setUint8(7, currentPacket); //包序号
@ -1581,7 +1577,7 @@
dataView.setUint8(bufferSize - 1, 0xFF); dataView.setUint8(bufferSize - 1, 0xFF);
let inteval = 100; let inteval = 200;
//parseInt(this.inteval ? this.inteval : 80); //parseInt(this.inteval ? this.inteval : 80);
//console.log("inteval=", inteval) //console.log("inteval=", inteval)
ble.sendData(f.deviceId, buffer, f.writeServiceId, f ble.sendData(f.deviceId, buffer, f.writeServiceId, f