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
04f364af
Commit
04f364af
authored
Sep 22, 2025
by
lyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、更新获取ddr运行频率 2、更新wifiSSID:midea_test 密码是123456789) 3、更新licenses授权路径
parent
436b2f1b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
13 deletions
+33
-13
factoryTestItem/factoryTestLicenseAuthor.evue
factoryTestItem/factoryTestLicenseAuthor.evue
+2
-1
factoryTestItem/factoryTestWifi.evue
factoryTestItem/factoryTestWifi.evue
+6
-6
factoryTestItem/factoryTestsystemCheck.evue
factoryTestItem/factoryTestsystemCheck.evue
+1
-1
factoryTest_plugin/factory_testSystemInfo.js
factoryTest_plugin/factory_testSystemInfo.js
+24
-5
No files found.
factoryTestItem/factoryTestLicenseAuthor.evue
View file @
04f364af
...
...
@@ -103,7 +103,8 @@
checkLisense
:
function
()
{
const
fs
=
require
(
"
@system.fs
"
)
var
filenm
=
"
operation_license
"
var
partFilePath
=
"
../../../../../mnt/extsd/msdkFiles/
"
+
filenm
//var partFilePath = "../../../../../mnt/extsd/msdkFiles/" + filenm
var
partFilePath
=
"
../../../../../tmp/
"
+
filenm
if
(
fs
.
exists
(
partFilePath
))
{
this
.
crtBrightnessValue
=
"
已注册!
"
//console.log("the " + filenm + " is exists.")
...
...
factoryTestItem/factoryTestWifi.evue
View file @
04f364af
...
...
@@ -255,7 +255,7 @@
var
librtc
=
require
(
"
rtc.js
"
);
//var this.initWifissid = "
Midea_WifiBT
";
//var this.initWifissid = "
midea_test
";
//var this.initWifipwd = "";
var
initWifisig
=
undefined
;
var
pathflag
=
1
;
...
...
@@ -268,12 +268,12 @@
data
:
{
title_TEXT
:
"
WIFI
"
,
initWifissid
:
"
Midea_WifiBT
"
,
initWifipwd
:
"
12345678
"
,
initWifissid
:
"
midea_test
"
,
initWifipwd
:
"
12345678
9
"
,
initencryptedMode
:
"
WPA
"
,
Reminder_TEXT
:
"
请配置SSID为
Midea_WifiBT,密码为12345678
的WIFI路由器,且确保路由器能连上外网
"
,
wifiInfo_TEXT
:
"
Midea_WifiBT
"
,
wifiInfoWarn_TEXT
:
"
Midea_WifiBT
信号强度需要大于-38dB
"
,
Reminder_TEXT
:
"
请配置SSID为
midea_test,密码为123456789
的WIFI路由器,且确保路由器能连上外网
"
,
wifiInfo_TEXT
:
"
midea_test
"
,
wifiInfoWarn_TEXT
:
"
midea_test
信号强度需要大于-38dB
"
,
wifiInfoState_TEXT
:
"
"
,
exit_TEXT
:
"
退出
"
,
...
...
factoryTestItem/factoryTestsystemCheck.evue
View file @
04f364af
...
...
@@ -108,7 +108,7 @@
crtsystemId1_TextHeader2
:
"
固件版本号:
"
,
crtsystemId1_TextHeader3
:
"
硬件版本号:
"
,
crtsystemId1_TextHeader4
:
"
TP版本:
"
,
crtsystemId1_TextHeader5
:
"
DDR:
"
,
crtsystemId1_TextHeader5
:
"
DDR
运行频率
:
"
,
crtsystemId1_TextValue1
:
"
NG
"
,
crtsystemId1_TextValue2
:
"
NG
"
,
crtsystemId1_TextValue3
:
"
NG
"
,
...
...
factoryTest_plugin/factory_testSystemInfo.js
View file @
04f364af
...
...
@@ -96,6 +96,7 @@ function updateSystemInfo() {
systemInfo
.
licenseRegistered
=
"
NG
"
;
systemInfo
.
wifiIp
=
"
NG
"
;
systemInfo
.
screenVendor
=
""
;
systemInfo
.
ddrFrequency
=
"
NG
"
;
}
else
{
systemInfo
.
cpuTemperature
=
getCPUTemperature
();
...
...
@@ -105,9 +106,10 @@ function updateSystemInfo() {
systemInfo
.
licenseRegistered
=
(
checkLicense
()
==
1
?
"
Pass
"
:
"
NG
"
);
// 需根据实际实现
systemInfo
.
wifiIp
=
getWifiInfo
(
"
ip_address
"
);
//前提wifi要连接
systemInfo
.
screenVendor
=
getScreenVendor
();
// 需根据实际实现
systemInfo
.
ddrFrequency
=
getDDRFrequency
();
}
systemInfo
.
sn
=
userData
.
aboutSNValue
||
"
NG
"
;
systemInfo
.
tpVersion
=
"
V5A
"
;
// 示例值
systemInfo
.
tpVersion
=
userData
.
tpFirmwareVersion
;
// 示例值
systemInfo
.
wifiModel
=
"
AP62212
"
;
// 示例值
...
...
@@ -123,8 +125,8 @@ function updateSystemInfo() {
that
.
crtsystemId1_TextValue1
=
systemInfo
.
sn
;
that
.
crtsystemId1_TextValue2
=
systemInfo
.
softwareVersion
;
that
.
crtsystemId1_TextValue3
=
systemInfo
.
hardwareVersion
;
that
.
crtsystemId1_TextValue4
=
"
NG
"
,
that
.
crtsystemId1_TextValue5
=
"
792 MHZ
"
,
that
.
crtsystemId1_TextValue4
=
systemInfo
.
tpVersion
,
that
.
crtsystemId1_TextValue5
=
(
systemInfo
.
ddrFrequency
!=
"
NG
"
)
?
systemInfo
.
ddrFrequency
+
"
MHz
"
:
systemInfo
.
ddrFrequency
;
// that.crtsystemId2_TextHeader1: "WiFi MAC:",
// that.crtsystemId2_TextHeader2: "蓝牙MAC:",
...
...
@@ -364,7 +366,23 @@ function getCPUTemperature() {
return
"
NG
"
;
}
}
function
getDDRFrequency
()
{
// 1. 把 clk_summary 里 dram-clk 那一行抓出来存临时文件
systemCtrl
.
executeSystemCommand
(
"
awk '/dram-clk/ {print $5}' /sys/kernel/debug/clk/clk_summary > /tmp/ddr_freq.txt
"
);
// 2. 读文件
const
freqHzStr
=
fs
.
read
(
"
/tmp/ddr_freq.txt
"
,
"
r
"
);
if
(
freqHzStr
)
{
const
freqHz
=
parseInt
(
freqHzStr
.
trim
(),
10
);
// 单位 Hz
const
freqMHz
=
(
freqHz
/
1
e6
).
toFixed
(
0
);
// 转 MHz,保留整数
// console.log(`DDR频率: ${freqMHz} MHz`);
return
freqMHz
;
}
else
{
// console.log("无法读取DDR频率");
return
"
NG
"
;
}
}
...
...
@@ -401,7 +419,8 @@ function getScreenVendor() {
function
checkLicense
()
{
const
fs
=
require
(
"
@system.fs
"
)
var
filenm
=
"
operation_license
"
var
partFilePath
=
"
../../../../../mnt/extsd/msdkFiles/
"
+
filenm
// var partFilePath = "../../../../../mnt/extsd/msdkFiles/" + filenm
var
partFilePath
=
"
../../../../../tmp/
"
+
filenm
if
(
fs
.
exists
(
partFilePath
))
{
//console.log("the " + filenm + " is exists.")
return
1
;
...
...
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