Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DrWater
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
路少雄
DrWater
Commits
3807f2b4
Commit
3807f2b4
authored
May 16, 2024
by
李威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级固件
parent
c1847f34
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
10 deletions
+59
-10
DJMHomeTY.xcworkspace/xcuserdata/nana.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
DJMHomeTY/Global/Define/XHCommand.h
+1
-0
DJMHomeTY/Global/Define/XHURL.h
+5
-0
DJMHomeTY/Page/DRFacial/Controller/DXHotElectricVC.m
+52
-9
Pods/Target Support Files/Pods-HJMDrWarter/Pods-HJMDrWarter-frameworks.sh
+1
-1
No files found.
DJMHomeTY.xcworkspace/xcuserdata/nana.xcuserdatad/UserInterfaceState.xcuserstate
View file @
3807f2b4
No preview for this file type
DJMHomeTY/Global/Define/XHCommand.h
View file @
3807f2b4
...
...
@@ -217,5 +217,6 @@
#define DR05_HE_get_Version @"0500A6330240"//获取版本
#define DR05_HE_send_getUpdateVersion @"0500a63102aa"//发送固件升级
#define DR05_HE_back_Version @"0700A6330140"//返回版本
#define DR05_HE_send_UpdateVersion @"0500613102aa"//返回版本
#endif
/* XHCommand_h */
DJMHomeTY/Global/Define/XHURL.h
View file @
3807f2b4
...
...
@@ -165,6 +165,11 @@
/*海菲秀获取BANNER列表*/
#define HFXGetGiftLink [NSString stringWithFormat:@"%@%@",DRURL,@"/ldm/api/openurl/faceAgeH5"]
/*热电获取视频列表*/
#define RDGetVideoList [NSString stringWithFormat:@"%@%@",DRURL,@"/ldm/api/operateVideos"]
/*热电获取智能调控能量和温度*/
#define RDGetSmartRec [NSString stringWithFormat:@"%@%@",DRURL,@"/ldm/api/smartRec"]
#endif
/* XHURL_h */
DJMHomeTY/Page/DRFacial/Controller/DXHotElectricVC.m
View file @
3807f2b4
...
...
@@ -665,7 +665,7 @@
self
.
orderStatus
=
OrderStatusNAK
;
}
else
if
([
value
isEqual
:
OTAUPGR
]){
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
0
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
HJGetBluetoothManager
writeStr
:[
DR05_HE_send_
get
UpdateVersion
withCrc16Modbus
]];
[
HJGetBluetoothManager
writeStr
:[
DR05_HE_send_UpdateVersion
withCrc16Modbus
]];
// [SVProgressHUD showSuccessWithStatus:@"已发送升级指令"];
});
...
...
@@ -739,14 +739,14 @@
XHGetDataManager
.
machineVersion
=
[
NSString
stringWithFormat
:
@"V%ld.%ld"
,
versions
,
versions1
];
NSLog
(
@"XHGetDataManager.machineVersion:%@"
,
XHGetDataManager
.
machineVersion
);
if
(
!
self
.
isChecked
){
[
self
checkDeviceVersionWithResult
:
^
(
BOOL
isUpdate
)
{
}
binUrl
:
^
(
NSString
*
url
)
{
}];
}
[
self
bindMyDevice
];
//
if(!self.isChecked){
//
[self checkDeviceVersionWithResult:^(BOOL isUpdate) {
//
//
} binUrl:^(NSString *url) {
//
//
}];
//
}
//
[self bindMyDevice];
}
//版本号
...
...
@@ -1086,6 +1086,49 @@
// });
}
//状态
-
(
void
)
didUpdateBluetoothStatus
:
(
BluetoothStatus
)
status
{
HJSelfWeak
;
switch
(
status
)
{
// 连接成功
case
BluetoothStatusPoweredOff
:
{
[
SVProgressHUD
showErrorWithStatus
:
HJLocalizedString
(
@"手机未开启蓝牙,请开启蓝牙重试!"
)];
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
5
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
SVProgressHUD
dismiss
];
});
}
break
;
// 连接成功
case
BluetoothStatusConnectOk
:
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[
weakSelf
setNavState
:
true
];
});
[
SVProgressHUD
showSuccessWithStatus
:
HJLocalizedString
(
@"连接成功"
)];
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
1
.
0
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
SVProgressHUD
dismiss
];
});
}
break
;
case
BluetoothGetDeviceIDSuccessed
:
{
}
break
;
case
BluetoothStatusDisConnect
:
{
HJGetBluetoothManager
.
noReconnect
=
false
;
}
break
;
default
:
break
;
}
}
-
(
void
)
onWriteBleData
:
(
NSData
*
)
data
{
//发送数据到终端设备
// [HJGetBluetoothManager wirteBleOTAData:data];
...
...
Pods/Target Support Files/Pods-HJMDrWarter/Pods-HJMDrWarter-frameworks.sh
View file @
3807f2b4
...
...
@@ -41,7 +41,7 @@ install_framework()
if
[
-L
"
${
source
}
"
]
;
then
echo
"Symlinked..."
source
=
"
$(
readlink
"
${
source
}
"
)
"
source
=
"
$(
readlink
-f
"
${
source
}
"
)
"
fi
if
[
-d
"
${
source
}
/
${
BCSYMBOLMAP_DIR
}
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment