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
f7e32134
Commit
f7e32134
authored
Sep 29, 2025
by
lyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:占时优化代码容错,关闭自动化测试
parent
9b37db9c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
25 deletions
+51
-25
app.js
app.js
+1
-1
factoryTestItem/factory_testList.evue
factoryTestItem/factory_testList.evue
+2
-2
factoryTestItem/factory_testUartComm.evue
factoryTestItem/factory_testUartComm.evue
+23
-17
factoryTest_plugin/factory_autoFactoryTest.js
factoryTest_plugin/factory_autoFactoryTest.js
+23
-3
factoryTest_plugin/factory_testAuto.js
factoryTest_plugin/factory_testAuto.js
+2
-2
No files found.
app.js
View file @
f7e32134
...
...
@@ -61,7 +61,7 @@ function onCreate(uri) {
gc
();
}
require
(
"
factory_autoFactoryTest.js
"
).
autoFactoryTestTimer
();
//
require("factory_autoFactoryTest.js").autoFactoryTestTimer();
}
// function onKeyEvent(code) {
...
...
factoryTestItem/factory_testList.evue
View file @
f7e32134
...
...
@@ -90,9 +90,9 @@
// en: 0,
//},
{
id
:
"
id_factory
T
estUartComm
"
,
id
:
"
id_factory
_t
estUartComm
"
,
name
:
"
无极性通信
"
,
startup
:
"
factory
T
estUartComm
"
,
startup
:
"
factory
_t
estUartComm
"
,
top
:
100
,
left
:
20
,
en
:
1
,
...
...
factoryTestItem/factory
T
estUartComm.evue
→
factoryTestItem/factory
_t
estUartComm.evue
View file @
f7e32134
...
...
@@ -63,6 +63,7 @@
//console.log("sendValue:" + sendValue);
sendValue
+=
1
;
packet_cmd
.
pack_cmd_packet_0x50
();
console
.
log
(
"
userData.factoryFlag:
"
+
userData
.
factoryFlag
);
this
.
sendCommValueText
=
""
+
sendValue
;
this
.
recvCommValueText
=
""
+
userData
.
factoryRecvCnt
;
if
(
userData
.
factoryRecvCnt
>
0
)
{
...
...
@@ -74,6 +75,9 @@
require
(
"
factory_testAuto.js
"
).
autoFactoryNextPage
(
"
factoryTestUartComm
"
);
},
uartComm
:
function
()
{
console
.
log
(
"
uartComm
"
);
var
timerOutCnt
=
require
(
"
factory_autoFactoryTest.js
"
).
exclear2Xuart
();
setTimeout
(
function
()
{
var
serialPortName
=
undefined
// var serialManager = require("serialmanager.js");
var
process
=
require
(
"
@system.process
"
);
...
...
@@ -84,12 +88,14 @@
else
{
serialPortName
=
"
/dev/ttyProto
"
}
var
process
=
require
(
"
@system.process
"
)
if
(
process
.
platform
!=
"
win32
"
)
{
serialManager
.
open
(
serialPortName
,
function
(
isSuccess
,
status
)
{
//console.log("=========open_async [".concat(isSuccess, "] [").concat(status, "]========="));
});
}
},
timerOutCnt
);
},
onShow
:
function
()
{
this
.
$setY
(
"
id_yes
"
,
-
480
);
...
...
factoryTest_plugin/factory_autoFactoryTest.js
View file @
f7e32134
...
...
@@ -8,6 +8,7 @@ var uart = require("factory_uartUtil.js");
var
_userdata
=
require
(
"
userdata.js
"
);
var
userData
=
_userdata
.
userData
;
var
autoUtil
=
require
(
"
factory_autoFactoryTestUtil.js
"
);
var
autoFactoryState
=
false
;
var
uartMode
=
2
//0:uart 1:uart_carrie_wave
/* ================= 1. 路由表:关键字 → 处理函数 ================= */
...
...
@@ -381,7 +382,7 @@ function kill_tty(port) {
}
function
initCarrieWave
(
port
,
baud_str
)
{
console
.
log
(
"
!!initCarrieWave
"
);
setAutoFactory
(
true
)
uart
.
pwm_uart_init
()
return
uart
.
uart_init
(
port
,
baud_str
);
...
...
@@ -394,6 +395,7 @@ function close(fd) {
uart
.
uart_close
(
fd
);
fd
=
-
1
;
}
setAutoFactory
(
false
)
}
...
...
@@ -456,12 +458,30 @@ function uart_set_mode(fd, mode) {
}
function
setAutoFactory
(
state
)
{
autoFactoryState
=
state
;
}
function
getAutoFactory
(
state
)
{
return
autoFactoryState
}
function
exclear2Xuart
()
{
console
.
log
(
"
!!!_exclear2Xuart
"
);
// exitAutoFactory();
// const port = pickUartDev();
// if (!port) return -1;
// return kill_tty(port);
return
1
;
// setTimeout(() => {
// }, 1000);
}
module
.
exports
=
{
autoFactoryTestTimer
:
autoFactoryTestTimer
,
getAutoFactory
:
getAutoFactory
,
exclear2Xuart
:
exclear2Xuart
,
manualKeyBz
:
manualKeyBz
,
restartUart
:
restartUart
}
factoryTest_plugin/factory_testAuto.js
View file @
f7e32134
...
...
@@ -16,7 +16,7 @@ var flageMap = {
"
factoryTestTouch
"
:
"
touch
"
,
"
factoryTestWifi
"
:
"
wifi
"
,
"
factoryTestSound
"
:
"
sound
"
,
"
factory
T
estUartComm
"
:
"
uartComm
"
,
"
factory
_t
estUartComm
"
:
"
uartComm
"
,
"
factoryTestBright
"
:
"
bright
"
,
"
factoryTestLicenseAuthor
"
:
"
licenseAuthor
"
,
"
factoryTestRtc
"
:
"
rtc
"
,
...
...
@@ -33,7 +33,7 @@ var autoMovePage = [
"
factoryTestTouch
"
,
"
factoryTestWifi
"
,
"
factoryTestSound
"
,
"
factory
T
estUartComm
"
,
"
factory
_t
estUartComm
"
,
"
factoryTestBright
"
,
"
factoryTestLicenseAuthor
"
,
"
factoryTestRtc
"
,
...
...
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