refactor(config): 更新配置信息和软件版本
- 修改了资源和服务配置文件中的 URL 和端口设置 - 更新了主进程启动参数,增加了用户数据路径 -调整了校准参数中的电流值 - 降低了软件版本号 - 新增了串口通信配置文件
This commit is contained in:
parent
7d53c34651
commit
d66df5e2cf
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "gy-calibration",
|
"name": "gy-calibration",
|
||||||
"version": "1.0.12",
|
"version": "1.0.0",
|
||||||
"description": "谷云开发部开发的断路器标定软件",
|
"description": "谷云开发部开发的断路器标定软件",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "example.com",
|
"author": "example.com",
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
//打包配置
|
//打包配置
|
||||||
|
|
||||||
// url: 'http://127.0.0.1:8000',
|
url: 'http://127.0.0.1:8000',
|
||||||
// wsUrl: 'ws://127.0.0.1:8000',
|
wsUrl: 'ws://127.0.0.1:8000',
|
||||||
// swichWsUrl: 'ws://127.0.0.1:8001',
|
swichWsUrl: 'ws://127.0.0.1:8001',
|
||||||
// serialPortUrl: 'http://127.0.0.1:8000',
|
serialPortUrl: 'http://127.0.0.1:8000',
|
||||||
|
|
||||||
//开发配置
|
//开发配置
|
||||||
|
|
||||||
url: 'http://192.168.1.17:8000',
|
// url: 'http://192.168.1.17:8000',
|
||||||
wsUrl: 'ws://192.168.1.17:8000',
|
// wsUrl: 'ws://192.168.1.17:8000',
|
||||||
swichWsUrl: 'ws://192.168.1.17:8001',
|
// swichWsUrl: 'ws://192.168.1.17:8001',
|
||||||
serialPortUrl: 'http://192.168.1.17:8000',
|
// serialPortUrl: 'http://192.168.1.17:8000',
|
||||||
|
|
||||||
// 远程连接串口使用
|
// 远程连接串口使用
|
||||||
// serialPortUrl: 'http://120.77.172.42:7202',
|
// serialPortUrl: 'http://120.77.172.42:7202',
|
||||||
|
|
|
@ -12,7 +12,7 @@ equipment: HS-9203M-0001
|
||||||
#设备总数
|
#设备总数
|
||||||
totalNum: 16
|
totalNum: 16
|
||||||
#起始端口号
|
#起始端口号
|
||||||
startAddr: 3
|
startAddr: 22
|
||||||
#测试源电压波动比例
|
#测试源电压波动比例
|
||||||
fluctuateRatioU: 90
|
fluctuateRatioU: 90
|
||||||
#测试源电压波动比例
|
#测试源电压波动比例
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,29 @@
|
||||||
|
[Delay]
|
||||||
|
ErrWaittime=0.5
|
||||||
|
SourceWaittime=1
|
||||||
|
StdmeterWaittime=2
|
||||||
|
Waittime4open=0.2
|
||||||
|
PurgeCommDelay=0.05
|
||||||
|
SampleTIME=3
|
||||||
|
HarmStableTime=3
|
||||||
|
HarmReviseTime=2
|
||||||
|
IntervalWaitTime=0.05
|
||||||
|
BpGrade1=0.05
|
||||||
|
BpGrade2=0.1
|
||||||
|
DelayAfterGearChange=0.5
|
||||||
|
IFCheckGear=0
|
||||||
|
CheckGearIntervalTime=1
|
||||||
|
CheckGearMaxWaitTIme=7
|
||||||
|
ReviseTIme=0
|
||||||
|
|
||||||
|
[System]
|
||||||
|
SetMode5300b=0
|
||||||
|
ReadMode5300b=1
|
||||||
|
HarmReviseMode=0
|
||||||
|
IfHarmRevise=1
|
||||||
|
HS5300ReadUacSupport=1
|
||||||
|
ifThreadLog=1
|
||||||
|
HS5300UURevise=0
|
||||||
|
|
||||||
|
[Debug]
|
||||||
|
Mode=0
|
|
@ -117,8 +117,8 @@ if (!gotTheLock) {
|
||||||
// 筛选出以.exe结尾的文件
|
// 筛选出以.exe结尾的文件
|
||||||
exePluginsExeList = files.filter(file => path.extname(file).toLowerCase() === '.exe');
|
exePluginsExeList = files.filter(file => path.extname(file).toLowerCase() === '.exe');
|
||||||
});
|
});
|
||||||
|
const userDataPath = app.getPath('userData');
|
||||||
child = spawn('./main.exe', [], { cwd: exePath, stdio: ['ignore', 'pipe', 'pipe'] });
|
child = spawn('./main.exe', ['--args', userDataPath], { cwd: exePath, stdio: ['ignore', 'pipe', 'pipe'] });
|
||||||
|
|
||||||
//监听进程的输出
|
//监听进程的输出
|
||||||
child.stdout.on('data', data => {
|
child.stdout.on('data', data => {
|
||||||
|
|
|
@ -778,7 +778,7 @@ const currentScheme = ref({
|
||||||
id: 3,
|
id: 3,
|
||||||
step: 3,
|
step: 3,
|
||||||
voltage: 100,
|
voltage: 100,
|
||||||
current: 2,
|
current: 80,
|
||||||
powerFactor: '0.5L',
|
powerFactor: '0.5L',
|
||||||
isILeak: true
|
isILeak: true
|
||||||
}
|
}
|
||||||
|
@ -1299,7 +1299,7 @@ const addScheme = () => {
|
||||||
id: 3,
|
id: 3,
|
||||||
step: 3,
|
step: 3,
|
||||||
voltage: 100,
|
voltage: 100,
|
||||||
current: 2,
|
current: 80,
|
||||||
powerFactor: '0.5L',
|
powerFactor: '0.5L',
|
||||||
isILeak: true
|
isILeak: true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue