|
@@ -51,11 +51,11 @@ public class DeviceRemoteController {
|
|
|
try {
|
|
try {
|
|
|
ops.write(ReUtil.hexStringToByteArray(instruct));
|
|
ops.write(ReUtil.hexStringToByteArray(instruct));
|
|
|
|
|
|
|
|
- Thread.sleep(300);
|
|
|
|
|
|
|
+ Thread.sleep(1800);
|
|
|
|
|
|
|
|
ops.write(ReUtil.hexStringToByteArray(CRCCHECK.getReadLockOrder(Integer.parseInt(cabinetV2Lock.getLockId()))));
|
|
ops.write(ReUtil.hexStringToByteArray(CRCCHECK.getReadLockOrder(Integer.parseInt(cabinetV2Lock.getLockId()))));
|
|
|
|
|
|
|
|
- Thread.sleep(100);
|
|
|
|
|
|
|
+ Thread.sleep(300);
|
|
|
Integer status = redisService.getCacheObject(relayCode + ":" + cabinetV2Lock.getLockId());
|
|
Integer status = redisService.getCacheObject(relayCode + ":" + cabinetV2Lock.getLockId());
|
|
|
if(status != null && status == 1){
|
|
if(status != null && status == 1){
|
|
|
return R.ok("开锁成功");
|
|
return R.ok("开锁成功");
|
|
@@ -81,7 +81,7 @@ public class DeviceRemoteController {
|
|
|
try {
|
|
try {
|
|
|
ops.write(ReUtil.hexStringToByteArray(instruct));
|
|
ops.write(ReUtil.hexStringToByteArray(instruct));
|
|
|
|
|
|
|
|
- Thread.sleep(100);
|
|
|
|
|
|
|
+ Thread.sleep(1800);
|
|
|
|
|
|
|
|
ops.write(ReUtil.hexStringToByteArray(CRCCHECK.getReadLockOrder(Integer.parseInt(cabinetV2Lock.getLockId()))));
|
|
ops.write(ReUtil.hexStringToByteArray(CRCCHECK.getReadLockOrder(Integer.parseInt(cabinetV2Lock.getLockId()))));
|
|
|
|
|
|