Summary of the invention
To overcome the problems in correlation technique, the disclosure a kind of file test method, device and computer are provided can
Read storage medium.
According to the first aspect of the embodiments of the present disclosure, a kind of file test method is provided, this method is applied to first terminal,
The first terminal is for running file to be tested, which comprises obtains the first network address mark of second terminal, institute
State second terminal for by compile obtain file to be tested;It is identified according to the first network address, Xiang Suoshu second terminal
The request of the first file acquisition is sent, so that the second terminal and the first terminal establish default communication connection;By pre-
If receive the first file to be tested, first file to be tested is run, the first test result is obtained.
In one possible implementation, this method further include: receiving described second by default
When the file that terminal is sent updates request, the request of the second file acquisition is sent to the second terminal by default communication connection,
So that the second terminal sends the second file to be tested to first terminal, second file to be tested is based on described first
The updated file of file to be tested;When receiving second file to be tested by presetting, described in operation
Second file to be tested, obtains the second test result.
In one possible implementation, the first network address mark for obtaining second terminal, comprising: to carrying
There is the image in 2 D code of the network address of second terminal to be identified, obtains the first network address mark.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.
According to the second aspect of an embodiment of the present disclosure, a kind of file test method is provided, this method is applied to second terminal,
The second terminal is used to obtain file to be tested by compiling, which comprises receives the first text that first terminal is sent
Part acquisition request, wherein the first terminal carries for running file to be tested in the first file acquisition request
The first network address of one terminal identifies;Default communication connection is established according to the first network address and the first terminal;
It is requested in response to first file acquisition, the first file to be tested is sent to first terminal by default communication connection, so that
The first terminal runs first file to be tested.
In one possible implementation, this method further include: be triggered in response to compiling control, to modified the
The code of one file to be tested is compiled, and obtains the second file to be tested;It is sent by default communication connection to first terminal
File updates request, so that first terminal sends the request of the second file acquisition to second terminal;It is sent out in response to the first terminal
The the second file acquisition request sent sends the second file to be tested to first terminal by default communication connection, so that first is whole
End runs second file to be tested.
In one possible implementation, the method also includes: according to the network address of second terminal, generate and carry
There is the image in 2 D code of the network address of second terminal.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.
According to the third aspect of an embodiment of the present disclosure, a kind of file test device is provided, which is applied to first terminal,
For the first terminal for running file to be tested, described device includes: the first acquisition module, for obtaining the of second terminal
One network address mark, the second terminal are used to obtain file to be tested by compiling;First request module, for according to institute
State first network address mark, Xiang Suoshu second terminal send the first file acquisition request so that the second terminal with it is described
First terminal establishes default communication connection;First test module, for receive first to be tested by default
When file, first file to be tested is run, the first test result is obtained.
In one possible implementation, the device further include: the second request module, for by presetting communication link
When receiving the file that the second terminal is sent and updating request, the is sent to the second terminal by default communication connection
Two file acquisitions request, so that the second terminal sends the second file to be tested, second text to be tested to first terminal
Part is based on the described first updated file of file to be tested;Second test module is received by default
When second file to be tested, second file to be tested is run, the second test result is obtained.
In one possible implementation, described first to obtain module include: identification submodule, for carrying the
The image in 2 D code of the network address of two terminals is identified, the first network address mark is obtained.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.
According to a fourth aspect of embodiments of the present disclosure, a kind of file test device is provided, which is applied to second terminal,
The second terminal is used to obtain file to be tested by compiling, and described device includes: third request module, receives first terminal
The the first file acquisition request sent, wherein the first terminal for running file to be tested, ask by first file acquisition
The first network address mark of first terminal is carried in asking;Link block, for according to the first network address with it is described
First terminal establishes default communication connection;First sending module, for being requested in response to first file acquisition, by default
It communicates to connect to first terminal and sends the first file to be tested, so that the first terminal runs first file to be tested.
In one possible implementation, the device further include: collector, for being touched in response to compiling control
Hair, is compiled the code of the modified first file to be tested, obtains the second file to be tested;4th request module is used
Request is updated in sending file to first terminal by default communication connection, so that first terminal sends the second text to second terminal
Part acquisition request;Second sending module is requested in response to the second file acquisition that the first terminal is sent, and passes through default communication
It connects to first terminal and sends the second file to be tested, so that first terminal runs second file to be tested.
In one possible implementation, described device further include: image generation module, for according to second terminal
Network address generates the image in 2 D code for carrying the network address of second terminal.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.
According to a fifth aspect of the embodiments of the present disclosure, a kind of file test device is provided, comprising: processor;For storing
The memory of processor-executable instruction;Wherein, the processor is configured to executing the above method.
According to a sixth aspect of an embodiment of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described
When instruction in storage medium is executed by processor, enable a processor to execute the above method.
The technical scheme provided by this disclosed embodiment can include the following benefits: pass through above-mentioned file test side
Method, tester can the network connection based on first terminal and second terminal, to second terminal issue file acquisition request, and
The first test file is got in time, realizes the automation across end transmission of test file, while can will form software journey
The test across end transmission link and file to be tested of software development link, file to be tested that sequence executable file needs to pass through
Link closely connects, and realizes the automation to form the overall flow of software program executable file.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of file test method shown according to an exemplary embodiment, as shown in Figure 1, file
Test method is for including the following steps in terminal.
In step s 11, the first network address mark of second terminal is obtained.
In step s 12, it is identified according to the first network address, Xiang Suoshu second terminal sends the first file acquisition and asks
It asks, so that the second terminal and the first terminal establish default communication connection.
In step s 13, when receiving the first file to be tested by presetting, it is to be measured to run described first
File is tried, the first test result is obtained.
In one possible implementation, file test method described in the disclosure can be applied to exploitation software program
In the process, the link of the executable file completed to compiling test, this method can be by for running file to be tested
First terminal execute.Wherein, file to be tested can be by developer complete coding and the compilation phase after it is obtained
File.In the present embodiment, file to be tested may include any version of produced executable file in software program iterative process
This, first file to be tested can be understood as the initial version of produced executable file in software program iterative process.
In one possible implementation, first terminal described in the disclosure can be arbitrary, can be used for run to
The terminal of test file;In one example, first terminal can be user equipment (User Equipment, UE), movement is set
Standby, user terminal, terminal, cellular phone, wireless phone, personal digital assistant (Personal Digital Assistant,
PDA), handheld device, calculating equipment, mobile unit, wearable device etc..In order to guarantee that file to be tested can in first terminal
To operate normally, the operating system of first terminal described in the present embodiment needs the file type phase with the file to be tested
Match.
In one possible implementation, second terminal described in the disclosure can be arbitrary, and can pass through compiling
Obtain the terminal of file to be tested.In one example, application developer can be encoded and be compiled by second terminal
First terminal is sent to file to be tested, and by file to be tested;After first terminal receives file to be tested, program
File to be tested that tester is received using second terminal test (run), and then by being obtained to test (operation)
Test result analysis and judgement, to determine the file to be tested with the presence or absence of loophole.
In one possible implementation, default communication connection, which can be any one, allows server active transmission to believe
Cease to the communication connection mode of client, by realize first terminal and second terminal can based on this communication connection in a manner of actively send out
Breath deliver letters to other side.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.Specifically
For, WebSocket agreement is the new network protocol of one kind based on TCP.It realizes browser and server full duplex
(full-duplex) communication allows server active transmission information to client.
In one possible implementation, file to be tested can be any type of mobile applications (APP,
Application executable file (such as rpk file or apk file etc.)), first terminal, which can be, can run mobile answer
With portable equipments such as the smart phone of program or tablet computers, second terminal, which can be, has programming development environment and program compiling
The terminal (such as PC or server) of environment.
In one possible implementation, first network address identifies the network address for identifying second terminal, the
One terminal can identify according to first network address and carry out information exchange with second terminal.In one example, first network
Location mark includes the IP address (Internet Protocol Address, Internet protocol address) and port numbers of first terminal.
In one possible implementation, the request of the first file acquisition may include for requesting the first file to be tested
Request message can be by sending the behaviour of file to be tested to first terminal after second terminal receives the request message
Make to respond the request message.
In one possible implementation, the present embodiment can be after getting first network address mark, can be by the
One network address mark is stored in first terminal, the advantages of this arrangement are as follows, when first terminal and second terminal again into
When row interaction, it rapidly extracting can identify, avoid again to the first network address of second terminal from the storage unit of itself
The operation for obtaining first network address mark in step S11 is executed, is improved work efficiency.
In one possible implementation, the request of the first file acquisition may include the network for identifying first terminal
Second network identity of address, it is corresponding, it is identified in step s 12 according to the first network address, Xiang Suoshu the
Two terminals send the request of the first file acquisition, so that the second terminal sends the first file to be tested to first terminal, comprising:
It is identified according to the first network address, Xiang Suoshu second terminal sends the request of the first file acquisition, so that the second terminal
While sending the first file to be tested to first terminal, the second network identity is stored in second terminal, such benefit
Be, when second terminal and first terminal interact again, can from the storage unit of itself rapidly extracting to first
Second network address of terminal identifies.
In one possible implementation, the first test result can be the operation result of the first file to be tested, this
In embodiment, the test result may include generated test data, test data in the first test file operational process
Generation time and while breaking down produced abnormal marking code.In one example, first terminal can be by first
Test result is stored in storage unit, so that tester or developer are literary to the first test according to first test result
Failure in part is checked.
In this way, tester can the default communication connection based on first terminal and second terminal, to second
Terminal issues file acquisition request, and gets the first test file in time, and it is automatic to realize transmitting across end for test file
Change, at the same can by formed software program executable file need pass through software development link, file to be tested across end pass
Defeated link and the testing process of file to be tested closely connect, and realize the entirety to form software program executable file
The automation of process.
Fig. 2 is a kind of flow chart of file test method shown according to an exemplary embodiment.Such as Fig. 2, text is shown
A kind of possible implementation of part test method, this document test method further include:
In step S14, when updating request by the default file for receiving the second terminal transmission,
The request of the second file acquisition is sent to the second terminal by default communication connection, so that the second terminal is to first terminal
The second file to be tested is sent, second file to be tested is based on the described first updated file of file to be tested;
In step S15, when receiving second file to be tested by presetting, operation described second
File to be tested obtains the second test result.
In a kind of possible implementation, first terminal can be previously stored with the executable file in above-described embodiment
Initial version (the i.e. first file to be tested), operation performed by step S14 to step S15 can be update, and this is first to be tested
The operation of file.
In the present embodiment, second terminal is the side of active transmission request, and first terminal is the side of respond request.Its
In, the file updates request and is issued by second terminal, for updating the executable file stored in first terminal.One kind can
In the implementation of energy, file, which updates to request can be, completes coding and second in executable file of the developer to new version
After terminal compiling is completed, actively issued by second terminal.The request of second file acquisition can be first terminal for responding
File updates request and issues, to indicate that the file that first terminal " agreements " second terminal issues updates request, when second whole
After termination receives the second file acquisition request of first terminal transmission, second can be sent to first terminal according to the second network identity
File (i.e. the executable file of new version) to be tested.
In one possible implementation, the described second file to be tested is to be updated based on the described first file to be tested
File afterwards, second file to be tested can exist in the form of service packs (a part of new version executable file), into
And at no point in the update process, the second file to be tested is added to the file path in first terminal where the first file to be tested;
In the implementation of another possibility, the new version executable file of second file to be tested can also be with complete file
Form exist, in renewal process, can use the second file to be tested and replace the first of first terminal the file to be tested.
It in one possible implementation, can be with reference in above embodiment first to the description of the second test result
The content of test result.
In one possible implementation, the first network address mark of second terminal, packet are obtained described in step S11
It includes: the image in 2 D code for the network address for carrying second terminal is identified, obtain the first network address mark.
In this embodiment, first terminal may be configured with image collecting device, and tester can pass through the image
Acquisition device scans the image in 2 D code, and then gets the first network address mark of second terminal.This kind of implementation side
Just quick, user experience is preferable.
Fig. 3 is a kind of flow chart of file test method shown according to an exemplary embodiment, as shown in figure 3, file
Test method is applied to second terminal, includes the following steps.
In step S31, the first file acquisition request that first terminal is sent is received, wherein the first terminal is used for
File to be tested is run, the first network address mark of first terminal is carried in the first file acquisition request;
In step s 32, default communication connection is established according to the first network address and the first terminal;
It in step S33, requests in response to first file acquisition, is sent by default communication connection to first terminal
First file to be tested, so that the first terminal runs first file to be tested.
In the present embodiment, step S31, in step S32 and operation, with above embodiment described in step S33
Step S11, the operation that step S12 and step S13 is described is identical.Accordingly, with respect to first terminal, second terminal, the first text
The definition of the nouns such as part acquisition request, the second network address mark, the first file to be tested, is referred in above embodiment
Description.
In one possible implementation, file test method described in the disclosure can be applied to exploitation software program
In the process, the link of executable file compiling completed test.This method can be to be tested by being obtained by compiling
File carrys out second terminal execution.In one possible implementation, second terminal described in the disclosure can be user and set
Standby, user terminal, server etc. have the terminal of programming development environment and program translation and compiling environment.
In one possible implementation, first terminal is the side of active transmission request, and second terminal is that response is asked
The side asked.As an example, first terminal can get the first network address mark of second terminal first, and by first network
Address identification record is into the storage unit of first terminal, when tester needs to obtain the first file to be tested, can pass through
First terminal identifies to second terminal according to the first network address of second terminal and sends the request of the first file acquisition.When second
It, can be first by the request of the first file acquisition entrained the when terminal receives the first file acquisition request that first terminal issues
Second network address identification record of one terminal is obtained into the storage unit of second terminal, while for responding first file
Request is taken, is identified according to second network address to first terminal and sends the first file to be tested, so that the first terminal
Run the described first file to be tested.
In one possible implementation, default communication connection, which can be any one, allows server active transmission to believe
Cease to the communication connection mode of client, by realize first terminal and second terminal can based on this communication connection in a manner of actively send out
Breath deliver letters to other side.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.Specifically
For, WebSocket agreement is the new network protocol of one kind based on TCP.It realizes browser and server full duplex
(full-duplex) communication allows server active transmission information to client.
In this way, tester can the network connection based on first terminal and second terminal, to second terminal
File acquisition request is issued, and gets the first test file in time, realizes the automation across end transmission of test file, together
When can by formed software program executable file need pass through software development link, file to be tested across end transmission link
It is closely connected with the testing process of file to be tested, realizes the overall flow to form software program executable file
Automation.
Fig. 4 is a kind of flow chart of file test method shown according to an exemplary embodiment.Such as Fig. 4, text is shown
A kind of possible implementation of part test method, this document test method further include:
In step S34, it is triggered in response to compiling control, the code of the modified first file to be tested is compiled
It translates, obtains the second file to be tested;
In step s 35, file is sent to first terminal by default communication connection and updates request so that first terminal to
Second terminal sends the request of the second file acquisition;
It in step S36, is requested in response to the second file acquisition that the first terminal is sent, passes through default communication connection
The second file to be tested is sent to first terminal, so that first terminal runs second file to be tested.
In the present embodiment, the step S34, operation that step S35 and step S36 are described, with step in above embodiment
It is same process that S14 and step S15, which is described,.Accordingly, with respect to the second file to be tested, the second network address mark, text
Part updates the definition of the nouns such as request, the request of the second file acquisition, the description being referred in above embodiment.
In one possible implementation, the compiling control can be in the composing software of the second file to be tested
Button is compiled, after developer completes to encode, second terminal can be triggered by the compiling button to the second text to be tested
The compilation process of part.
In the present embodiment, second terminal is the side of active transmission request, and first terminal is the side of respond request.Its
In, the file updates request and is actively issued by second terminal, for updating the executable file stored in first terminal.One
In kind possible implementation, file update request can be executable file of the developer to new version complete coding and
After second terminal compiling is completed, actively issued by second terminal.The request of second file acquisition can be first terminal and be used for
Response file updates request and issues, and is requested with indicating that file that first terminal " agreements " second terminal issues updates, when the
After two terminals receive the second file acquisition request of first terminal transmission, it can be sent according to the second network identity to first terminal
Second file (i.e. the executable file of new version) to be tested.
In one possible implementation, such as Fig. 4, this document test method further include: in step S37, according to
The network address of two terminals generates the image in 2 D code for carrying the network address of second terminal.
In one example, second terminal first starts its HTTP service for building completion, the operating system meeting of second terminal
To the port numbers of HTTP service distribution, and using the IP address of second terminal and port numbers as network address, and to the network
Address carries out the processes such as data analysis, data encoding, Error Correction of Coding, construction final data information, structural matrix, mask, in turn
Generate the image in 2 D code for carrying the network address of second terminal.The disclosure does not make the concrete mode for generating image in 2 D code
Limitation.
Using example
Below in conjunction with an exemplary application scene, the application example according to the embodiment of the present disclosure is provided, in order to understand
The process of file test method.It will be understood by those skilled in the art that below using example merely for the sake of being easy to understand the disclosure
The purpose of embodiment is not construed as the limitation to the embodiment of the present disclosure.
Fig. 5 is a kind of schematic diagram of the application scenarios of file test method shown according to an exemplary embodiment.At this
Using in example, as shown in figure 5, this document test method the following steps are included:
1, compiling side (first terminal) starts HTTP service, and according to the IP address of first terminal (first network address label
Know) generate two dimensional code;
2, operation side (second terminal) passes through the IP address for scanning the two-dimensional code and obtaining first terminal, and records to operation side;
3, operation side operation rpk file (file to be tested), and start debugging services (the default test clothes of Websocket
Business);
4, operation lateral root sends HTTP request to compiling side according to the IP address of first terminal;
5, Websocket communication connection is established by browser and operation side in compiling side;
6, operation side group communicates to connect in Websocket operation result being sent to compiling side;
7, compiling lateral root modifies file to be tested according to operation result, and modified file to be tested is sent to operation
Side.
Example is applied by above-mentioned, tester and developer can connect based on first terminal and the network of second terminal
Connect, realize test file across end transmission automation, while can will be formed software program executable file need by
Software development link, file to be tested closely connect across end transmission link and the testing process of file to be tested,
Realize the automation to form the overall flow of software program executable file.
Fig. 6 is a kind of block diagram of file test device shown according to an exemplary embodiment.This document test device is answered
For first terminal, first terminal is for running file to be tested, and referring to Fig. 6, which includes the first acquisition module 51, first
Request module 52 and the first test module 53.
First obtains module 51, and the first network address for obtaining second terminal identifies, and the second terminal is for leading to
It crosses compiling and obtains file to be tested;
First request module 52, for being identified according to the first network address, Xiang Suoshu second terminal sends the first text
Part acquisition request, so that the second terminal and the first terminal establish default communication connection;
First test module 53, for by it is default receive the first file to be tested when, described in operation
First file to be tested, obtains the first test result.
Fig. 7 is a kind of block diagram of file test device shown according to an exemplary embodiment.As shown in fig. 7, the device
Further include:
Second request module 54, for passing through the default file update for receiving the second terminal and sending
When request, the request of the second file acquisition is sent to the second terminal by default communication connection so that the second terminal to
First terminal sends the second file to be tested, and second file to be tested is updated based on the described first file to be tested
File;
Second test module 55, when receiving second file to be tested by presetting, described in operation
Second file to be tested, obtains the second test result.
In one possible implementation, the first acquisition module 51 includes:
It identifies submodule 511, is identified for the image in 2 D code to the network address for carrying second terminal, obtained
The first network address mark.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.
Fig. 8 is a kind of block diagram of file test device shown according to an exemplary embodiment.This document test device is answered
For second terminal, second terminal is used to obtain file to be tested by compiling, and referring to Fig. 8, which includes that third asks modulus
Block 71, link block 72 and the first sending module 73.
Third request module 71 receives the first file acquisition request that first terminal is sent, wherein the first terminal is used
In running file to be tested, the first network address mark of first terminal is carried in the first file acquisition request;
Link block 72, for establishing default communication connection according to the first network address and the first terminal;
First sending module 73 is communicated to connect by default to first for requesting in response to first file acquisition
Terminal sends the first file to be tested, so that the first terminal runs first file to be tested.
Fig. 9 is a kind of block diagram of file test device shown according to an exemplary embodiment.As shown in figure 9, the text
Part test device further include:
Collector 74, for being triggered in response to compiling control, to the code of the modified first file to be tested into
Row compiling, obtains the second file to be tested;
4th request module 75 updates request for sending file to first terminal by default communication connection, so that the
One terminal sends the request of the second file acquisition to second terminal;
Second sending module 76, the second file acquisition request for being sent in response to the first terminal, by default
It communicates to connect to first terminal and sends the second file to be tested, so that first terminal runs second file to be tested.
In one possible implementation, as shown in figure 9, this document test device further include: image generation module 77,
For the network address according to second terminal, the image in 2 D code for carrying the network address of second terminal is generated.
In one possible implementation, the default communication connection includes that Websocket protocol communication connects.
Figure 10 is a kind of block diagram of device 800 for file test shown according to an exemplary embodiment.For example, dress
Setting 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig.1 0, device 800 may include following one or more components: processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device
Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1932 of instruction, above-metioned instruction can be executed by the processing component 1922 of device 1900 to complete the above method.
For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.