Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
haoJin750TFT
Commits
8b10a471
Commit
8b10a471
authored
Sep 28, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:新增uuid字库接口
parent
23ef0997
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
BlueTooth.c
Firmware/Source/Application/BlueTooth.c
+15
-2
BlueTooth.h
Firmware/Source/Application/BlueTooth.h
+2
-1
No files found.
Firmware/Source/Application/BlueTooth.c
View file @
8b10a471
...
...
@@ -162,7 +162,7 @@ TEXT_STRUCT TextPara[TEXT_NUM_TOTAL] =
{
TEXT_NUM_PHONE_NUMBER_TOTAL
,
0x4011
,
0
},
{
TEXT_NUM_INFORMATION_MCUVER
,
0x4012
,
0
},
{
TEXT_NUM_INFORMATION_SWVERSION
,
0x4013
,
0
},
{
TEXT_NUM_INFORMATION_
HW
,
0x4014
,
0
},
//23F 23E
{
TEXT_NUM_INFORMATION_
UUID
,
0x4014
,
0
},
{
TEXT_NUM_INFORMATION_OS
,
0x4015
,
0
},
{
TEXT_NUM_INFORMATION_MCU
,
0x4016
,
0
},
{
TEXT_NUM_FAUULT_CODE
,
0x4022
,
0
},
...
...
@@ -179,6 +179,8 @@ uint8_t PhoneNumberTotal[20];
uint8_t
InformationOSVersion
[
20
];
uint8_t
InformationMCUVersion
[
26
];
uint8_t
TextFaultCodeNum
[
10
];
uint8_t
UUIDDisplay
[
42
];
uint8_t
LastUUIDDisplay
[
21
];
void
TextService
(
void
)
{
...
...
@@ -222,6 +224,8 @@ void TextService(void)
memset
(
LastBlueToothName
,
0
,
sizeof
(
LastBlueToothName
));
memset
(
PhoneNumberTotal
,
0
,
sizeof
(
PhoneNumberTotal
));
memset
(
TextFaultCodeNum
,
0
,
sizeof
(
TextFaultCodeNum
));
memset
(
LastUUIDDisplay
,
0
,
sizeof
(
LastUUIDDisplay
));
memset
(
UUIDDisplay
,
0
,
sizeof
(
UUIDDisplay
));
for
(
uint8_t
i
=
0
;
i
<
sizeof
(
OSVersionASCLLList
);
i
++
)
{
...
...
@@ -347,7 +351,16 @@ void TextService(void)
}
TextPara
[
TEXT_NUM_FAUULT_CODE
].
Vaild
=
0x01
;
}
if
(((
memcmp
(
LastUUIDDisplay
,
UUIDConfigBuf
,
sizeof
(
LastUUIDDisplay
)))
!=
0
))
{
for
(
uint8_t
i
=
0
;
i
<
(
sizeof
(
UUIDConfigBuf
));
i
++
)
{
UUIDDisplay
[
i
*
2
]
=
UUIDConfigBuf
[
i
];
UUIDDisplay
[(
i
*
2
)
+
1
]
=
0x00
;
}
memcpy
(
LastUUIDDisplay
,
UUIDConfigBuf
,
sizeof
(
LastUUIDDisplay
));
TextPara
[
TEXT_NUM_INFORMATION_UUID
].
Vaild
=
0X01
;
}
}
Firmware/Source/Application/BlueTooth.h
View file @
8b10a471
...
...
@@ -10,7 +10,7 @@ typedef enum {
TEXT_NUM_PHONE_NUMBER_TOTAL
,
TEXT_NUM_INFORMATION_MCUVER
,
TEXT_NUM_INFORMATION_SWVERSION
,
TEXT_NUM_INFORMATION_
HW
,
TEXT_NUM_INFORMATION_
UUID
,
TEXT_NUM_INFORMATION_OS
,
TEXT_NUM_INFORMATION_MCU
,
TEXT_NUM_FAUULT_CODE
,
...
...
@@ -48,6 +48,7 @@ extern uint8_t PhoneNumberTotal[20];
extern
uint8_t
InformationOSVersion
[
20
];
extern
uint8_t
InformationMCUVersion
[
26
];
extern
uint8_t
TextFaultCodeNum
[
10
];
extern
uint8_t
UUIDDisplay
[
42
];
extern
TEXT_STRUCT
TextPara
[];
#endif
\ No newline at end of file
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