Invention content
In view of the deficiencies of the prior art, the present invention proposes a kind of combined Intelligent set top box volume production test method and is
System.
A kind of combined Intelligent set top box volume production test method, the Intelligent set top box include OTT units, CM units, packet
Include following steps:OTT units install volume production test software, and corresponding according to the pattern information of acquisition startup volume production test software
Operating mode;OTT units establish the communication connection with CM units based on network socket;OTT units are to CM unit transmission datas
Information;Data information described in CM unit resolves, and send corresponding feedback information to OTT units.
Further, the OTT units install volume production test software, and start volume production test according to the pattern information of acquisition
The corresponding operating mode of software comprises the steps of:Whether the monitoring of OTT units has the access of carry equipment;If there is carry equipment to connect
Enter, whether judges in carry equipment comprising file needed for test;If including file, OTT units needed for test in carry equipment
The volume production test software in file needed for test is obtained, installs and opens volume production test software;It is literary needed for OTT unit read tests
Configuration file in part starts the corresponding operating mode of volume production test software according to the pattern information configured in configuration file.
Further, the operating mode includes:Burning pattern, for mono- to the OTT units, the CM that test Intelligent set top box
The corresponding information of related hardware module burning of member.
The burning pattern comprises the steps of:OTT units initialize burning UI;OTT units are connect by network socket
Receive burning information, the burning information of CM units of the OTT units that PC server is sent;Burning information is burned onto OTT by OTT units
The specified address of unit;The burning information of CM units is sent to CM units by OTT units by network socket;CM units will obtain
The burning information taken is burned onto the specified address of CM units, and the information burning result of CM units is fed back to OTT units;OTT
Unit refreshes burning UI according to information burning result, the information burning result of CM units of OTT units.
Further, the operating mode includes:Checking mode is used for OTT units, the CM of check test Intelligent set top box
The corresponding information of related hardware module institute's burning of unit.
The checking mode comprises the steps of:OTT unit initiation verifications UI;OTT units are connect by network socket
Receive the check information for the OTT units that PC server is sent, the check information of CM units;OTT units are by the check information of OTT units
It is compared with the reference information of the burning of OTT units, judges whether the burning information of OTT units succeeds;OTT units pass through net
Network socket sends the instruction of CM information checkings to CM units;CM units read the burning of CM units according to the instruction of CM information checkings
Reference information, and the reference information of the burning of CM units is fed back into OTT units;OTT units by the check information of CM units with
The reference information of the burning of CM units is compared, and judges whether the burning information of CM units succeeds;OTT units are mono- according to OTT
Check results, the check results of CM units of member refresh verification UI.
Further, the operating mode includes:Whether test pattern, the hardware module for testing Intelligent set top box can
Normal work.
The test pattern comprises the steps of:Initialization test UI;The test thread for creating each hardware module, by each
Whether test each corresponding hardware module of thread parallel detection can work normally;If the test result of any one test thread is
Pass then refreshes primary test UI;The some time is waited for, after respectively the test result of test thread is pass, passes through and tests UI
Play fool proof video.
Further, the operating mode includes:Aging mode plays video for a long time for verifying Intelligent set top box
Stability.
Further, described to be worked accordingly according to the pattern information configured in configuration file startup volume production test software
The step of pattern includes:Configuration file is parsed, the pattern information configured in configuration file is obtained;Volume production test software is according to mould
Formula information selects and enters corresponding operating mode.
Further, the test thread includes:Bluetooth tests thread, wifi tests thread, wired test thread, USB
Interface or TF card test thread, Intelligent set top box information test thread, remote controller response test thread, Doby test thread, CM
Unit testing thread.
Further, the bluetooth tests thread, comprises the steps of:Start bluetooth module;It scans and obtains current indigo plant
Tooth list of devices;Judge in bluetooth equipment list with the presence or absence of the bluetooth name specified in configuration file;If it has, then bluetooth module
Test result is pass, refresh testing UI.
The wifi tests thread, comprises the steps of:Start wifi module;It scans and obtains wifi lists;Judge
With the presence or absence of the wifi names specified in configuration file in wifi lists;If it has, then wifi module test result is pass, refresh
Test UI.
Wired test thread, comprises the steps of:Judge wired module whether just by android standard interfaces
Often;If it has, then wired module test result is pass, refresh testing UI.
The USB interface or TF card test thread, comprise the steps of:Judge in carry equipment with the presence or absence of specified text
Part;If it has, then USB interface or TF card test result are pass, refresh testing UI.
The remote controller response tests thread, comprises the steps of:Receive the telecommand that remote controler is sent out;According to remote control
Instruction triggers test the corresponding button on UI;Monitor whether the button is clicked;If it has, then remote controller response test knot
Fruit is pass, refresh testing UI.
The Doby tests thread, comprises the steps of:Read the information of Doby node in Intelligent set top box;Judge intelligence
Whether set-top box supports Doby audio;If it has, then Doby test result is pass, refresh testing UI.
A kind of combined Intelligent set top box volume production test system, including:Memory, processor and it is stored in the memory
Computer program that is upper and can running on the processor;The computer program is realized above-mentioned when being executed by the processor
The step of method described in any one.
To achieve the goals above, technical solution of the present invention is as follows:
Beneficial effects of the present invention:
(1) this method or system make the OTT units of Intelligent set top box are established with CM units to communicate to connect by network socket,
By self-defining communication protocol, the data interaction of the OTT units and CM units for different system is realized, so that OTT is mono-
Member can be completed at the same time volume production test with CM units in same station, improve production efficiency and reduce human cost.
(2) this method or system are by reading the configuration file in carry equipment, and volume production test software is in different work
Station starts corresponding operating mode according to the pattern information configured in configuration file, and volume production test software starts simple, behaviour
Facilitate.Test, information burning, the information checking etc. of the completion Intelligent set top box of sub-station, improve production efficiency.This method
Or system test mode realizes the full automation tested Intelligent set top box, avoids and occurs because of artificial random sampling observation
Detection coverage rate is low, cost of labor increases and can not carry out each hardware module to all Intelligent set top boxes on production line
The problem of detection, improves detection efficiency, reduces manufacturing cost.
(3) this method or system make full use of itself interface UI of OTT units realize Intelligent set top box test, burning,
The visualization of the results such as verification reduces the probability that producers judge error;And it is realized using the visualization interface of OTT units
Setting to CM location modes.
Embodiment 1:
As shown in Figure 1, the test environment frame for the application forms.It is mono- that combined Intelligent set top box contains OTT units, CM
Member.
PC server sends director data according to agreement and gives OTT units.Director data includes:1) .OTT units need burning
Information;2) .OTT units need the information verified;3) .CM units need the information of burning;4) .CM units need the letter verified
Breath.
OTT units receive the data of PC server in information burning or checking procedure and according to the protocol analysis data,
Then the information burning or verification about OTT units are completed according to analysis result;Simultaneously by about the data of CM units according to association
View issues CM units, for the burning of CM units.OTT units and the information for being responsible for verification CM units.OTT units are in test process
In automatically test and the results are shown in UI(User Interface, user interface).During burn-in test, automatic cycle
Play aging video.
CM units receive the data of OTT units, and provide feedback information.
As shown in Fig. 2, a kind of combined Intelligent set top box volume production test method, the Intelligent set top box include OTT units,
CM units, include the following steps:
S10:OTT units install volume production test software, and start the corresponding work of volume production test software according to the pattern information of acquisition
Operation mode;
S20:OTT units establish the communication connection with CM units based on network socket;
S30:OTT units are to CM unit transmission data information;
S40:Data information described in CM unit resolves, and send corresponding feedback information to OTT units.
Operating mode includes test pattern, burning pattern, checking mode or/and aging mode.Test pattern, for testing
Whether the hardware module of Intelligent set top box can work normally.Burning pattern, for OTT units, the CM to testing Intelligent set top box
The corresponding information of related hardware module burning of unit.Checking mode is used for OTT units, the CM of check test Intelligent set top box
The corresponding information of related hardware module institute's burning of unit.Aging mode plays video for a long time for verifying Intelligent set top box
Stability.
As shown in figure 3, step S20 is comprised the steps of:
S1:Whether OTT units are monitored the access of carry equipment in USB jack;If it has, then executing S2;If it has not, then continuing to supervise
It listens.Carry equipment can be the storage devices such as USB flash disk, SD card;
S2:Whether include file needed for test in OTT unit judges carry equipment;If it has, then executing S3;If it has not, then sending out
Go out prompt;
S3:OTT units obtain the volume production test software in test file, install and open volume production test software;
S4:Configuration file in file needed for OTT unit read tests starts according to the pattern information configured in configuration file
The corresponding operating mode of volume production test software.
Testing required file includes:
1) volume productions test software installation kit:For installing volume production test software.
2) configuration file of .xml formats:For storing configuration information, such as current production model is set.
3) agings video:Video for loop play under aging mode.
4) fool proofs video:The video is redirected automatically after being pass for test result, to prompt producers to test knot
Beam.
Specifically, as shown in figure 4, the flow diagram of the model selection for volume production test software, step S4 include following
Step:
S41:Configuration file is parsed, the pattern information configured in configuration file is obtained;
S42:Volume production test software selects according to pattern information and enters corresponding operating mode.
Each operating mode is separately employed in the test station of Intelligent set top box, burning station, verification station, senile experiment work
Position.Different station difference adapteds different USB flash disk or SD card, OTT units are by identifying the mould in USB flash disk or SD card in configuration file
Formula information, into corresponding operating mode.Division of labor bit test can improve production efficiency.
Specifically, as shown in figure 5, test pattern comprises the steps of:
S4211:Initialization test UI;
S4212:The test thread for creating each hardware module, by each each corresponding hardware module of test thread parallel detection whether
It can normal work;
S4213:If the test result of any one test thread is pass(Indicate that hardware module can work normally), then refresh one
Secondary test UI, to show the testing progress or test result of each test thread;
S4214:The some time is waited for, after respectively the test result of test thread is pass, fool proof video is played by testing UI,
To prompt producers' test to terminate, the testing time is saved.
Because the test of each hardware module is all individual thread, each thread parallel(Simultaneously)Test, to improve test
Speed.When the test result for only occurring a certain hardware module is pass, just refresh primary test UI, the test of the hardware module
State is from becoming ' test passes through ' ' in test '(That is pass).If waiting for a period of time, test UI shows always a certain hardware mould
The test result of block is not pass, then clicks retesting button or restart set-top box on test UI by producers, further
It is secondary to enter test;If re-test or problematic, it is necessary to which corresponding hardware module whether there is problem under inspection.
More specifically, test thread includes specifically following test thread:
1) bluetooths test thread, comprise the steps of:
Start bluetooth module;
It scans and obtains current Bluetooth list of devices;
Judge in bluetooth equipment list with the presence or absence of the bluetooth name specified in configuration file;If it has, then bluetooth module test knot
Fruit is pass, refresh testing UI.
2) .wifi tests thread, comprises the steps of:
Start wifi module;
It scans and obtains wifi lists;
Judge in wifi lists with the presence or absence of the wifi names specified in configuration file;If it has, then wifi module test result is
Pass, refresh testing UI.
3) the wired test threads of, comprise the steps of:
Judge whether wired module is normal by android standard interfaces;If it has, then wired module test result is pass,
Refresh testing UI.
4) .USB interfaces or TF card test thread, comprise the steps of:
Judge in carry equipment with the presence or absence of specified file;If it has, then USB interface or TF card test result are pass, brush
New test UI.
5) Intelligent set top boxes information tests thread, comprises the steps of:
By android standard interfaces, read the corresponding information of Intelligent set top box, as the addresses wifimac, wired addresses mac,
Sn, software version number, wifi intensity of product etc..
6) remote controller responses test thread, comprise the steps of:
Receive the telecommand that remote controler is sent out;
According to the corresponding button on telecommand triggering test UI;
Monitor whether the button is clicked;If it has, then remote controller response test result is pass, refresh testing UI.
7) Dobies test thread, comprise the steps of:
Read the information of Doby node in Intelligent set top box;
Judge whether Intelligent set top box supports Doby audio;If it has, then Doby test result is pass, refresh testing UI.
8) .CM unit testings thread, comprises the steps of:
Due to CM units(In ecos systems)With OTT units(In Android system)Not in the ecos where same system, CM
System does not have visualization interface, this testing scheme to use the technology of network socket, realizes between two different systems
Information exchange.The volume production test software principle of this testing scheme is that OTT units give CM units by socket hair message;CM units
Own hardware module testing is completed according to message;Hardware module test result is fed back to OTT units by CM units;OTT units will
The result of CM units feedback is shown on test UI.The hardware module test of CM units is comprising such as resetting key testing, WPS tests
Button, CM reach the standard grade test, handling capacity and panel test.
Specifically, as shown in fig. 6, burning pattern comprises the steps of:
S4221:OTT units initialize burning UI;
S4222:OTT units receive burning information, the burning of CM units for the OTT units that PC server is sent by network socket
Record information;
S4223:Burning information is burned onto the specified address of OTT units by OTT units;
S4224:The burning information of CM units is sent to CM units by OTT units by network socket;
S4225:The burning information of acquisition is burned onto the specified address of CM units by CM units, and by the information burning knot of CM units
Fruit feeds back to OTT units;
S4226:OTT units refresh burning UI according to information burning result, the information burning result of CM units of OTT units.
After OTT units enter burning pattern, burning information acquisition request is sent to PC server;PC server is according to request
Corresponding burning information is sent to OTT;After OTT units receive the burning information of PC server transmission, according to agreement to burning
Information is parsed;The burning information of OTT units, the burning information of CM units are respectively provided with different labels;OTT unit foundations
The burning information of marker recognition OTT units, the burning information of CM units;The burning information of OTT units is burned onto the finger of OTT units
Determine address.The burning information of CM units is sent to CM units by OTT units;The CM unit foundation marker recognitions burning information, and
The burning information is burned onto to the specified address of CM units;After CM units complete burning, it is mono- that information burning result is fed back into OTT
Member.OTT units refresh UI according to the burning result of two units.
Specifically, as shown in fig. 7, checking mode comprises the steps of:
S4231:OTT unit initiation verifications UI;
S4232:OTT units receive the check information for the OTT units that PC server is sent, the school of CM units by network socket
Test information;
S4233:The check information of OTT units is compared OTT units with the reference information of the burning of OTT units, judges OTT
Whether the burning information of unit succeeds;
S4234:OTT units send the instruction of CM information checkings by network socket to CM units;
S4235:CM units read the reference information of the burning of CM units according to the instruction of CM information checkings, and by the burning of CM units
Reference information feed back to OTT units;
S4236:The check information of CM units is compared OTT units with the reference information of the burning of CM units, judges that CM is mono-
Whether the burning information of member succeeds;
S4237:OTT units refresh verification UI according to check results, the check results of CM units of OTT units.
Checking mode is similar to burning pattern.After OTT units enter checking mode, sends check information to PC server and obtain
Take request;PC server foundation asks to send corresponding check information to OTT;OTT units receive the school of PC server transmission
After testing information, check information is parsed according to agreement;The check information of OTT units, the check information of CM units band respectively
There is different labels;OTT units are according to the check information of marker recognition OTT units, the check information of CM units;OTT units according to
The burning information of itself is verified according to the check information of OTT units, and CM information checkings are sent to CM units by network socket
The reference information of the burning of CM units is read in instruction according to the instruction of CM information checkings, and by the reference information of the burning of CM units
OTT units are fed back to, last OTT units can refresh UI according to the check results of two units.
Specifically, if pattern set in configuration file is aging mode, volume production test software can be transferred and be recycled
The aging video in test file is played, verification Intelligent set top box plays the stability of video for a long time.The test item is a kind of
Stability test is typically to take a sample test.
Specifically, the application also includes that CM unit informations are verified and configured, and is specifically comprised the steps of:
Monitor boot broadcast;After judging whether current being switched on of Intelligent set top box is test, burning, verification according to boot broadcast
It first powers on;If it has, then into CM configuration webpages.
The CM configuration webpages obtain the state of CM units and show in the table, and producers can be by checking table
Lattice judge whether current CM units meet manufacture demand.Further, it is also possible to directly be carried out to CM states by the CM configuration webpages
Setting.
The application is applied in the test session of Intelligent set top box volume production, and the automatic inspection to products-hardware is realized from software
Brake, the automatic burning of product information, verifying function and the intuitive for improving human-computer interaction improve production effect to reach
Rate saves the purpose of human cost.In addition, additionally providing the combined Intelligent set top box of test(OTT+CM)Scheme.