Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
1c7a0ed8
Commit
1c7a0ed8
authored
Sep 18, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:UUID数字全部可调
parent
383b3337
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
10 deletions
+61
-10
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+16
-1
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+12
-2
Display_Info.h
YueJin_test_bench/source/Appliciation/Display_Info.h
+1
-0
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+31
-6
RSCAN.c
YueJin_test_bench/source/Driver/CAN/RSCAN.c
+1
-1
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
1c7a0ed8
...
...
@@ -491,7 +491,7 @@ uint8_t UIDStep;
uint8_t
uidWrite
;
uint8_t
UIDGetstep
=
0
;
uint8_t
u8getUIDmsg
[
8
];
uint8_t
UIDNumber
[
15
]
=
{
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
2
,
0
,
0xFF
};
uint8_t
UIDNumber
[
15
]
=
{
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
,
0
,
0xFF
};
void
get_seed_msg
(
void
);
void
UID_ADD
(
void
)
{
...
...
@@ -606,6 +606,9 @@ void Can_Set_Buff_786(uint8_t CopyData [])
// }
break
;
case
3
:
Data_786_8
[
5
]
=
0x30
+
UIDNumber
[
0
];
Data_786_8
[
6
]
=
0x30
+
UIDNumber
[
1
];
Data_786_8
[
7
]
=
0x30
+
UIDNumber
[
2
];
for
(
uint8_t
i
=
0
;
i
<
8
;
i
++
)
{
pCANMsg
->
Msg
[
i
]
=
Data_786_8
[
i
];
...
...
@@ -615,6 +618,13 @@ void Can_Set_Buff_786(uint8_t CopyData [])
case
4
:
if
(
UIDGetstep
==
3
)
{
Data_786_9
[
1
]
=
0x30
+
UIDNumber
[
3
];
Data_786_9
[
2
]
=
0x30
+
UIDNumber
[
4
];
Data_786_9
[
3
]
=
0x30
+
UIDNumber
[
5
];
Data_786_9
[
4
]
=
0x30
+
UIDNumber
[
6
];
Data_786_9
[
5
]
=
0x30
+
UIDNumber
[
7
];
Data_786_9
[
6
]
=
0x30
+
UIDNumber
[
8
];
Data_786_9
[
7
]
=
0x30
+
UIDNumber
[
9
];
for
(
uint8_t
i
=
0
;
i
<
8
;
i
++
)
{
pCANMsg
->
Msg
[
i
]
=
Data_786_9
[
i
];
...
...
@@ -623,6 +633,11 @@ void Can_Set_Buff_786(uint8_t CopyData [])
}
break
;
case
5
:
Data_786_10
[
1
]
=
0x30
+
UIDNumber
[
10
];
Data_786_10
[
2
]
=
0x30
+
UIDNumber
[
11
];
Data_786_10
[
3
]
=
0x30
+
UIDNumber
[
12
];
Data_786_10
[
4
]
=
0x30
+
UIDNumber
[
13
];
Data_786_10
[
5
]
=
0x30
+
UIDNumber2
[
0
];
Data_786_10
[
6
]
=
0x30
+
UIDNumber2
[
1
];
Data_786_10
[
7
]
=
0x30
+
UIDNumber2
[
2
];
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
1c7a0ed8
...
...
@@ -4130,15 +4130,25 @@ void Display_Version_Info(uint32_t ON_OFF)
}
// uint8_t UUIDY = 105;
uint8_t
UUIDX
=
170
;
uint8_t
UIDNumber2
[
19
]
=
{
2
,
5
,
0
,
6
,
1
,
9
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0xFF
};
uint8_t
UIDNumberread
[
33
];
void
UIDDisplay
(
void
)
{
uint8_t
UUIDY
;
if
(
CursorPosition
==
2
)
{
UUIDY
=
105
;
}
else
if
(
CursorPosition
==
1
)
{
UUIDY
=
65
;
}
General_Number_Disp
(
UIDNumber
,
3
,
50
);
//固定UID数字
General_Number_Disp
(
UIDNumber2
,
3
,
75
);
//可调UID数字
General_Number_Disp
(
UIDNumber2
,
3
,
90
);
//可调UID数字
uint8_t
UUIDS
[
2
]
=
{
45
,
0xFF
};
General_Number_Disp
(
UUIDS
,
UUIDX
,
90
);
//UID下——
General_Number_Disp
(
UUIDS
,
UUIDX
,
UUIDY
);
//UID下——
TFT_LCD_Draw_Bmp
(
3
,
25
,
(
uint8_t
*
)
gImage_Dyy_words_3X6_Y88
);
//UID写入
}
...
...
YueJin_test_bench/source/Appliciation/Display_Info.h
View file @
1c7a0ed8
...
...
@@ -104,6 +104,7 @@ extern const uint8_t *Num_30[];
extern
const
uint8_t
*
Letter_Num_11
[];
extern
uint32_t
loc_Current_0
;
extern
uint8_t
CursorPosition
;
extern
void
Get_static_Current
(
void
);
extern
uint32_t
Get_Display_Type
(
void
);
extern
void
Display_Num
(
uint16_t
StartX
,
uint16_t
StartY
,
uint16_t
m_NUM
,
uint8_t
CbkCycle
);
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
1c7a0ed8
...
...
@@ -136,6 +136,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
}
uint8_t
change
=
17
;
uint8_t
writeflag
=
0
;
uint8_t
CursorPosition
=
2
;
void
Key_Operation_SW4
(
Key_Event_en_t
enKeyEvent
)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
...
...
@@ -144,13 +145,27 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent)
if
(
UIDMondel
)
{
Display_TFT_Clear
();
if
(
UIDNumber2
[
change
]
<
9
)
if
(
CursorPosition
==
2
)
{
UIDNumber2
[
change
]
++
;
if
(
UIDNumber2
[
change
]
<
9
)
{
UIDNumber2
[
change
]
++
;
}
else
{
UIDNumber2
[
change
]
=
0
;
}
}
else
else
if
(
CursorPosition
==
1
)
{
UIDNumber2
[
change
]
=
0
;
if
(
UIDNumber
[
change
]
<
9
)
{
UIDNumber
[
change
]
++
;
}
else
{
UIDNumber
[
change
]
=
0
;
}
}
}
}
...
...
@@ -183,8 +198,18 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
}
else
{
change
=
17
;
UUIDX
=
170
;
if
(
CursorPosition
==
2
)
{
change
=
13
;
//第一行最后一位
UUIDX
=
130
;
//第一行坐标
CursorPosition
=
1
;
//配置到第一行
}
else
if
(
CursorPosition
==
1
)
{
change
=
17
;
UUIDX
=
170
;
//第一行坐标
CursorPosition
=
2
;
}
}
guangganmondel
=
0
;
}
...
...
YueJin_test_bench/source/Driver/CAN/RSCAN.c
View file @
1c7a0ed8
...
...
@@ -986,7 +986,7 @@ void RSCAN0_CH4_Receive(CAN_Frame_st_t *pstCANFrame)
uidWrite
=
0
;
UIDGetstep
=
5
;
Display_TFT_Clear
();
General_Number_Disp
(
writesuccess
,
3
,
1
2
0
);
//写入成功
General_Number_Disp
(
writesuccess
,
3
,
1
3
0
);
//写入成功
UID_ADD
();
}
}
...
...
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