Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re860_factory
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
waterword
re860_factory
Commits
c9dc0bfb
Commit
c9dc0bfb
authored
Oct 12, 2025
by
lyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:自动化测试授权增加2、4、6、8、16、32段 ;2、增加lcd测试时间 1秒切换一个画面;3、优化触摸
parent
a8f35efa
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
115 additions
and
49 deletions
+115
-49
factoryTestItem/factory_autoFactory.evue
factoryTestItem/factory_autoFactory.evue
+1
-1
factoryTest_plugin/factory_autoFactoryTest.js
factoryTest_plugin/factory_autoFactoryTest.js
+11
-4
factoryTest_plugin/factory_autoFactoryTestUtil.js
factoryTest_plugin/factory_autoFactoryTestUtil.js
+91
-44
lib/factory/factory_uartUtil.c
lib/factory/factory_uartUtil.c
+12
-0
lib/factory/factory_uartUtil.so
lib/factory/factory_uartUtil.so
+0
-0
No files found.
factoryTestItem/factory_autoFactory.evue
View file @
c9dc0bfb
...
...
@@ -126,7 +126,7 @@
ledtimerSet
:
function
()
{
this
.
resetLcd
();
this
.
clearTimer
();
idTimeOut
=
this
.
$setInterval
(
this
.
normalTimerOut
,
3
00
,
[],
this
);
idTimeOut
=
this
.
$setInterval
(
this
.
normalTimerOut
,
10
00
,
[],
this
);
// this.$setTimeout(this.LedTimerOut, 5000, [], this);
},
...
...
factoryTest_plugin/factory_autoFactoryTest.js
View file @
c9dc0bfb
...
...
@@ -41,7 +41,8 @@ function event(fd, recvBuf) {
if
(
hit
)
return
hit
.
fn
(
fd
,
recvBuf
);
}
function
eventHex
(
fd
,
recvBuf
)
{
console
.
log
(
'
RXHEX:
'
+
recvBuf
);
console
.
debug
(
`RXHEX:
${
recvBuf
}
`
);
//console.debug(`!!!!will go to main globalThis.appAliveValue!=1 ${globalThis.appAliveValue}`)
const
hit
=
cmdTableHex
.
find
(
item
=>
recvBuf
.
includes
(
item
.
kw
));
if
(
hit
)
return
hit
.
fn
(
fd
,
recvBuf
);
}
...
...
@@ -167,15 +168,21 @@ function doWriteLic(fd, recvBuf) {
console
.
log
(
"
recvBuf:
"
+
recvBuf
)
var
ret
=
autoUtil
.
licParce
(
recvBuf
);
if
(
ret
==
1
)
{
console
.
log
(
"
licParce ret:
"
+
ret
)
send
(
fd
,
'
+OK
'
);
}
else
if
(
ret
==
-
2
)
{
}
else
if
(
ret
==
2
)
{
console
.
log
(
"
licParce error
"
);
if
(
uartMode
==
1
)
{
restartUart
();
}
else
if
(
uartMode
==
2
)
{
restartUartCarrieWave
();
}
}
else
if
(
ret
==
3
)
{
console
.
log
(
"
licParce ret:
"
+
ret
)
send
(
fd
,
'
+OK
'
);
autoUtil
.
gotoWriteLic
();
}
// console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
// console.log('write lic:' + recvBuf);
...
...
factoryTest_plugin/factory_autoFactoryTestUtil.js
View file @
c9dc0bfb
This diff is collapsed.
Click to expand it.
lib/factory/factory_uartUtil.c
View file @
c9dc0bfb
...
...
@@ -10,6 +10,7 @@
#include <signal.h>
#include <sys/stat.h> // 放在现有 #include 区域任意位置
#include <stdint.h> // 就有 uint8_t
#include <sched.h>
#define DEBUG 0
/* 1=打开调试 0=关闭打印 */
#if DEBUG
...
...
@@ -30,6 +31,14 @@ static int g_rxlen = 0; /* 有效长度
static
int
g_rxHexlen
=
0
;
/* 有效长度 */
static
pthread_mutex_t
g_rx_mutex
=
PTHREAD_MUTEX_INITIALIZER
;
/* 互斥锁 */
void
set_realtime_priority
(
pthread_t
thread
,
int
priority
)
{
struct
sched_param
param
;
param
.
sched_priority
=
priority
;
pthread_setschedparam
(
thread
,
SCHED_FIFO
,
&
param
);
}
/* ---------------- 串口底层 ---------------- */
/**
* @brief 接收数据
...
...
@@ -332,6 +341,9 @@ int uart_init(const char *port, const char *baud_str)
pthread_t
tid
;
pthread_create
(
&
tid
,
NULL
,
rx_thread
,
(
void
*
)(
long
)
fd
);
set_realtime_priority
(
tid
,
10
);
pthread_detach
(
tid
);
/* 自生自灭 */
return
fd
;
}
...
...
lib/factory/factory_uartUtil.so
View file @
c9dc0bfb
No preview for this file type
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