|
|
/**
|
|
|
* 通用返回信息
|
|
|
* @fileOverview 指令配置文件
|
|
|
* @author qiqi.zhou@yoho.cn
|
|
|
* @module interface
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* @var {Object} 通用返回信息
|
|
|
*/
|
|
|
var commonMessage = {
|
|
|
'00': {
|
...
|
...
|
@@ -18,10 +24,11 @@ var commonMessage = { |
|
|
code: -1,
|
|
|
message: '操作失败'
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 指令集枚举
|
|
|
* @exports default
|
|
|
*/
|
|
|
export default {
|
|
|
openUhf: {
|
...
|
...
|
@@ -29,7 +36,7 @@ export default { |
|
|
input: 'A000000000',
|
|
|
output: {
|
|
|
'a0200': commonMessage['00'],
|
|
|
'a02ff0': commonMessage['ff0'],
|
|
|
'a02ff0': commonMessage.ff0,
|
|
|
'a02f00': {
|
|
|
code: 2,
|
|
|
message: 'UHF模块已打开'
|
...
|
...
|
@@ -41,7 +48,7 @@ export default { |
|
|
input: 'A100000000',
|
|
|
output: {
|
|
|
'a1200': commonMessage['00'],
|
|
|
'a12ff0': commonMessage['ff0']
|
|
|
'a12ff0': commonMessage.ff0
|
|
|
}
|
|
|
},
|
|
|
setPower: {
|
...
|
...
|
@@ -49,9 +56,9 @@ export default { |
|
|
input: 'F3',
|
|
|
output: {
|
|
|
'f3200': commonMessage['00'],
|
|
|
'f32ffff': commonMessage['ffff'],
|
|
|
'f32fffe': commonMessage['fffe'],
|
|
|
'f32ff0': commonMessage['ff0']
|
|
|
'f32ffff': commonMessage.ffff,
|
|
|
'f32fffe': commonMessage.fffe,
|
|
|
'f32ff0': commonMessage.ff0
|
|
|
}
|
|
|
},
|
|
|
setFilter: {
|
...
|
...
|
@@ -59,9 +66,9 @@ export default { |
|
|
input: 'B7',
|
|
|
output: {
|
|
|
'b7200': commonMessage['00'],
|
|
|
'b72ffff': commonMessage['ffff'],
|
|
|
'b72fffe': commonMessage['fffe'],
|
|
|
'b72ff0': commonMessage['ff0']
|
|
|
'b72ffff': commonMessage.ffff,
|
|
|
'b72fffe': commonMessage.fffe,
|
|
|
'b72ff0': commonMessage.ff0
|
|
|
}
|
|
|
},
|
|
|
setFrequency: {
|
...
|
...
|
@@ -69,9 +76,9 @@ export default { |
|
|
input: 'BF',
|
|
|
output: {
|
|
|
'bf200': commonMessage['00'],
|
|
|
'bf2ffff': commonMessage['ffff'],
|
|
|
'bf2fffe': commonMessage['fffe'],
|
|
|
'bf2ff0': commonMessage['ff0']
|
|
|
'bf2ffff': commonMessage.ffff,
|
|
|
'bf2fffe': commonMessage.fffe,
|
|
|
'bf2ff0': commonMessage.ff0
|
|
|
}
|
|
|
},
|
|
|
getConfig: {
|
...
|
...
|
@@ -79,8 +86,8 @@ export default { |
|
|
input: 'B300000000',
|
|
|
output: {
|
|
|
'b3200': commonMessage['00'],
|
|
|
'b32ffff': commonMessage['ffff'],
|
|
|
'b32fffe': commonMessage['fffe'],
|
|
|
'b32ffff': commonMessage.ffff,
|
|
|
'b32fffe': commonMessage.fffe,
|
|
|
'b316': {
|
|
|
code: 1,
|
|
|
message: '返回信息'
|
...
|
...
|
@@ -92,9 +99,9 @@ export default { |
|
|
input: 'B400000000',
|
|
|
output: {
|
|
|
'b4400': commonMessage['00'],
|
|
|
'b44ffff': commonMessage['ffff'],
|
|
|
'b44fffe': commonMessage['fffe'],
|
|
|
'b44ff0': commonMessage['ff0']
|
|
|
'b44ffff': commonMessage.ffff,
|
|
|
'b44fffe': commonMessage.fffe,
|
|
|
'b44ff0': commonMessage.ff0
|
|
|
}
|
|
|
},
|
|
|
sartInventory: {
|
...
|
...
|
@@ -102,8 +109,8 @@ export default { |
|
|
input: 'F100000000',
|
|
|
output: {
|
|
|
'f1200': commonMessage['00'],
|
|
|
'f12ffff': commonMessage['ffff'],
|
|
|
'f12fffe': commonMessage['fffe'],
|
|
|
'f12ffff': commonMessage.ffff,
|
|
|
'f12fffe': commonMessage.fffe,
|
|
|
'f1': {
|
|
|
code: 2,
|
|
|
message: '返回信息'
|
...
|
...
|
@@ -120,9 +127,9 @@ export default { |
|
|
input: 'F200000000',
|
|
|
output: {
|
|
|
'f2200': commonMessage['00'],
|
|
|
'f22ffff': commonMessage['ffff'],
|
|
|
'f22fffe': commonMessage['fffe'],
|
|
|
'f22ff0': commonMessage['ff0']
|
|
|
'f22ffff': commonMessage.ffff,
|
|
|
'f22fffe': commonMessage.fffe,
|
|
|
'f22ff0': commonMessage.ff0
|
|
|
}
|
|
|
},
|
|
|
setInventoryTime: {
|
...
|
...
|
@@ -130,9 +137,9 @@ export default { |
|
|
input: 'B0',
|
|
|
output: {
|
|
|
'b0200': commonMessage['00'],
|
|
|
'b02ffff': commonMessage['ffff'],
|
|
|
'b02fffe': commonMessage['fffe'],
|
|
|
'b02ff0': commonMessage['ff0']
|
|
|
'b02ffff': commonMessage.ffff,
|
|
|
'b02fffe': commonMessage.fffe,
|
|
|
'b02ff0': commonMessage.ff0
|
|
|
}
|
|
|
}
|
|
|
}; |
|
|
\ No newline at end of file |
...
|
...
|
|