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
8d531143
Commit
8d531143
authored
Jun 07, 2025
by
梁百峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改写码保护功能
parent
6c42cf9a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
Barcode_Scanner.c
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
+8
-3
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+1
-1
api_RS485.c
YueJin_test_bench/source/Appliciation/api_RS485.c
+1
-1
init.c
YueJin_test_bench/source/System/init.c
+3
-3
No files found.
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
View file @
8d531143
...
...
@@ -96,7 +96,7 @@ void datacheck(void)
checksum
=
Yadi_CAL_Data_Sum
(
&
BarCode
[
2
],
64
+
2
);
if
(
checksum
!=
BarCode
[
68
])
{
checknumwrong
=
1
;
//
checknumwrong = 1;
}
break
;
case
0x49
:
...
...
@@ -104,7 +104,7 @@ void datacheck(void)
checksum
=
Yadi_CAL_Data_Sum
(
&
BarCode
[
2
],
64
+
2
);
if
(
checksum
!=
BarCode
[
68
])
{
checknumwrong
=
1
;
//
checknumwrong = 1;
}
break
;
case
0x4A
:
...
...
@@ -116,7 +116,7 @@ void datacheck(void)
checksum
=
Yadi_CAL_Data_Sum
(
&
BarCode
[
2
],
64
+
2
);
if
(
checksum
!=
BarCode
[
68
])
{
checknumwrong
=
1
;
//
checknumwrong = 1;
}
break
;
case
0x4D
:
...
...
@@ -240,6 +240,11 @@ void datacheck(void)
// g_Stage = 1;
if
(((
BarCode
[
arraynum
])
==
0x4A
)
&&
((
BarCode
[
arraynum
-
1
])
==
0x4B
))
{
if
(
BarCode
[
2
]
==
0x81
)
{
writeflag
=
BarCode
[
16
];
RS485_TX_finish
=
0
;
}
switch
(
zhenduansendStep
)
{
case
0
:
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
8d531143
...
...
@@ -3799,7 +3799,7 @@ void Display_Version_Info(uint32_t ON_OFF)
// TFT_LCD_Draw_Bmp(3, 160, ( uint8_t * )gImage_Alarm_12_WordX6_Y165); //24脚输出占空比
// TFT_LCD_Draw_Bmp(210, 160, ( uint8_t * )gImage_Alarm_13_ImageX222_Y166); //%
TFT_LCD_Draw_Bmp
(
3
,
290
,
(
uint8_t
*
)
gImage_gImage_checkVX6_Y165
);
//检测台版本号
uint8_t
mbuff
[
7
]
=
{
2
,
5
,
0
,
6
,
0
,
4
,
0xff
};
uint8_t
mbuff
[
7
]
=
{
2
,
5
,
0
,
6
,
0
,
6
,
0xff
};
General_Number_Disp
(
mbuff
,
160
,
290
);
}
...
...
YueJin_test_bench/source/Appliciation/api_RS485.c
View file @
8d531143
...
...
@@ -408,7 +408,7 @@ void RS485_User_Tx_Data(void)
RS485_TX_finish
=
1
;
if
(
RS485_TX_finish
==
1
)
{
if
((
MENU_CHECK_STEP
==
3
||
Get_Display_Type
(
)
==
3
||
MENU_CHECK_STEP
==
16
||
MENU_CHECK_STEP
==
0
))
if
((
MENU_CHECK_STEP
==
3
||
Get_Display_Type
(
)
==
0
||
Get_Display_Type
(
)
==
3
||
MENU_CHECK_STEP
==
16
||
MENU_CHECK_STEP
==
0
))
// if((MENU_CHECK_STEP == 3 || Get_Display_Type( ) == 3 || MENU_CHECK_STEP == 16 ) && clearOdoFlag != 1)
{
RS485_send_num
++
;
...
...
YueJin_test_bench/source/System/init.c
View file @
8d531143
...
...
@@ -118,11 +118,11 @@ void Sys_Startup_Init(void)
LINE_OUT_NEG_03
=
1
;
LINE_OUT_NEG_04
=
1
;
Display_TFT_Clear
();
GUI_Display_Version_Code_Service
(
25
,
20
,
"Please Scan The Code "
,
Letter_Num_11
,
PCodeText_Space_size
);
//
Display_TFT_Clear();
//
GUI_Display_Version_Code_Service(25, 20, "Please Scan The Code ", Letter_Num_11, PCodeText_Space_size);
/*上电扫码校验功能如果需要扫码校验注释掉firstpowerflag = 2,打开上面两行的注释即可*/
//
firstpowerflag = 2;
firstpowerflag
=
2
;
}
/***********************************************************************
...
...
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