CN104735139B - End message statistical method, device, terminal and server - Google Patents

End message statistical method, device, terminal and server Download PDF

Info

Publication number
CN104735139B
CN104735139B CN201510105138.2A CN201510105138A CN104735139B CN 104735139 B CN104735139 B CN 104735139B CN 201510105138 A CN201510105138 A CN 201510105138A CN 104735139 B CN104735139 B CN 104735139B
Authority
CN
China
Prior art keywords
script
amendment
server
terminal
amendment script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510105138.2A
Other languages
Chinese (zh)
Other versions
CN104735139A (en
Inventor
高阳
丁晓亮
邹明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510105138.2A priority Critical patent/CN104735139B/en
Publication of CN104735139A publication Critical patent/CN104735139A/en
Application granted granted Critical
Publication of CN104735139B publication Critical patent/CN104735139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is directed to a kind of end message statistical method, device, terminal and server, belong to network technique field.Methods described includes:Establish script running environment;The amendment script that the reception server issues;The amendment script is illegally verified;After the amendment script is by illegally verifying, the amendment script is run, log information collection is carried out according to the amendment script;The log information being collected into is uploaded to the server, the server is used to carry out statistical analysis to the log information.Due to having carried out the real-time and centralized collection processing of log information based on amendment script, so time delay is not present in information, collection efficiency is higher, and information is not present and reports missing and mistakes and omissions, improves the Data Collection degree of accuracy.

Description

End message statistical method, device, terminal and server
Technical field
This disclosure relates to network technique field, more particularly to a kind of end message statistical method, device, terminal and service Device.
Background technology
Television set propagates terminal as a kind of information, is widely used in routine work life.With Internet technology Fast development, television product constantly weeded out the old and bring forth the new, and intelligent TV set arises at the historic moment, and it is just accounted in routine work life According to more and more important position.And in order to provide a user quality services, to lift user experience, intelligent TV set is general The function of Information Statistics will be attached with.
When carrying out Information Statistics, terminal carries out getting record ready correlation technique according to user behavior, each user behavior A corresponding point (point).After terminal records 15 minutes, by the information reporting in this 15 minutes to server.
If the information in this stage is not report to server, the data in next stage due to suspension or other reasonses It will be covered, so existence information reports the situation of missing;And due to reporting within 15 minutes a data, therefore number Time delay, excessively slow be present according to collection.
The content of the invention
To overcome problem present in correlation technique, the disclosure provide a kind of end message statistical method, device, terminal and Server.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of end message statistical method, methods described are applied to eventually End, methods described include:
Establish script running environment;
The amendment script that the reception server issues;
The amendment script is illegally verified;
After the amendment script is by illegally verifying, the amendment script is run, day is carried out according to the amendment script Will information;
The log information being collected into is uploaded to the server, the server is used to unite to the log information Meter analysis.
Alternatively, the amendment script that the reception server issues, including:
The server is received according to the long amendment script for connecting push, the length be connected as the terminal with it is described The connection established between server;Or,
Amendment script being sent to the server every preset time and issuing request, the server is used to repair according to Positive script issues request and issues amendment script to the terminal.
Alternatively, it is described that the amendment script is illegally verified, including:
The amendment script is decrypted according to default public key, the amendment script after being decrypted;
Whether designated identification information is included in amendment script after detection decryption;
After including designated identification information in amendment script after decryption is detected, it is illegal to determine that the amendment script passes through Verification;
Wherein, the amendment script is the script that is encrypted according to default private key of the server, the public key with The private key matches.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of end message statistical method, methods described are applied to clothes Business device, methods described include:
Amendment script is issued to terminal, the amendment script is the pin that the server is encrypted according to default private key This;
Receive the log information that the terminal is sent after the amendment script is run;
The log information is stored in specified log collection queue;
Statistical analysis is carried out to the log information in the specified log collection queue, obtains statistical result.
Alternatively, the log information in the specified log collection queue carries out statistical analysis, including:
Statistical analysis is carried out to the log information in the specified log collection queue using specified cluster system.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of end message statistic device, described device are applied to eventually End, described device include:
Module is established, for establishing script running environment;
Script receiving module, the amendment script issued for the reception server;
Correction verification module, for illegally being verified to the amendment script;
Collection module, for after the amendment script is by illegally verifying, running the amendment script, being repaiied according to described Positive script carries out log information collection;
Uploading module, for the log information being collected into be uploaded into the server, the server is used for described Log information carries out statistical analysis.
Alternatively, the script receiving module, for receiving the server according to the long amendment pin for connecting push This, the length is connected as the connection established between the terminal and the server;Or, every preset time to the server Send amendment script and issue request, the server, which is used to be issued according to the amendment script, asks to issue amendment to the terminal Script.
Alternatively, the correction verification module, for the amendment script to be decrypted according to default public key, decrypted Amendment script afterwards;Whether designated identification information is included in amendment script after detection decryption;Amendment after decryption is detected After including designated identification information in script, determine the amendment script by illegally verifying;Wherein, the amendment script is described The script that server is encrypted according to default private key, the public key match with the private key.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of end message statistic device, described device are applied to clothes Business device, described device include:
Module is issued, for issuing amendment script to terminal, the amendment script is the server according to default private The script that key is encrypted;
Receiving module, the log information sent for receiving the terminal after the amendment script is run;
Memory module, for the log information to be stored in specified log collection queue;
Analysis module, for carrying out statistical analysis to the log information in the specified log collection queue, counted As a result.
Alternatively, the analysis module, for utilizing specified cluster system to the day in the specified log collection queue Will information carries out statistical analysis.
According to the 5th of the embodiment of the present disclosure the aspect, there is provided a kind of terminal, the terminal include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:Establish script running environment;The amendment script that the reception server issues;It is right The amendment script is illegally verified;After the amendment script is by illegally verifying, the amendment script is run, according to institute State amendment script and carry out log information collection;The log information being collected into is uploaded to the server, the server is used for Statistical analysis is carried out to the log information.
According to the 6th of the embodiment of the present disclosure the aspect, there is provided a kind of server, it is characterised in that the server bag Include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:Amendment script is issued to terminal, the amendment script is the server root The script being encrypted according to default private key;Receive the log information that the terminal is sent after the amendment script is run;Will The log information is stored in specified log collection queue;Log information in the specified log collection queue is united Meter analysis, obtains statistical result.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Terminal is after script running environment is established, amendment script that the reception server issues, and amendment script is carried out non- Method verifies;After script is corrected by illegally verifying, terminal operating amendment script, log information receipts are carried out according to amendment script Collection, and the log information being collected into is uploaded onto the server, and statistical analysis is carried out to log information by server, due to based on repairing Positive script has carried out the real-time and centralized collection processing of log information, so time delay is not present in information, collection efficiency is higher, And information is not present and reports missing and mistakes and omissions, improves the Data Collection degree of accuracy.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of end message statistical method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of end message statistical method according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of end message statistical method according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of end message statistic device according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of end message statistic device according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of terminal according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of server according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of end message statistical method according to an exemplary embodiment, as shown in figure 1, The end message statistical method is used in terminal, comprises the following steps.
In a step 101, script running environment is established.
In a step 102, the amendment script that the reception server issues.
In step 103, amendment script is illegally verified.
At step 104, after script is corrected by illegally verifying, operation amendment script, day is carried out according to amendment script Will information.
In step 105, the log information being collected into is uploaded onto the server, server is used to unite to log information Meter analysis.
The method that the embodiment of the present disclosure provides, terminal is after script running environment is established, amendment that the reception server issues Script, and amendment script is illegally verified;After script is corrected by illegally verifying, terminal operating amendment script, according to Correct script and carry out log information collection, and the log information being collected into is uploaded onto the server, by server to log information Statistical analysis is carried out, due to having carried out the real-time and centralized collection processing of log information based on amendment script, so information In the absence of time delay, collection efficiency is higher, and information is not present and reports missing and mistakes and omissions, improves the Data Collection degree of accuracy.
Alternatively, the amendment script that the reception server issues, including:
The reception server is according to the long amendment script for connecting push, the long company for being connected as establishing between terminal and server Connect;Or,
Amendment script being sent to server every preset time and issuing request, server, which is used to be issued according to amendment script, asks Ask to terminal and issue amendment script.
Alternatively, amendment script is illegally verified, including:
Amendment script is decrypted according to default public key, the amendment script after being decrypted;
Whether designated identification information is included in amendment script after detection decryption;
After including designated identification information in amendment script after decryption is detected, it is determined that amendment script passes through illegal school Test;
Wherein, it is the script that server is encrypted according to default private key to correct script, and public key matches with private key.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the present invention, herein no longer Repeat one by one.
Fig. 2 is a kind of flow chart of end message statistical method according to an exemplary embodiment, as shown in Fig. 2 The end message statistical method is used in server, comprises the following steps.
In step 201, amendment script is issued to terminal, amendment script is that server is encrypted according to default private key Script.
In step 202, receiving terminal corrects the log information sent after script in operation.
In step 203, log information is stored in specified log collection queue.
In step 204, to specifying the log information in log collection queue to carry out statistical analysis, statistical result is obtained.
The method that the embodiment of the present disclosure provides, terminal is after script running environment is established, amendment that the reception server issues Script, and amendment script is illegally verified;After script is corrected by illegally verifying, terminal operating amendment script, according to Correct script and carry out log information collection, and the log information being collected into is uploaded onto the server, by server to log information Statistical analysis is carried out, due to having carried out the real-time and centralized collection processing of log information based on amendment script, so information In the absence of time delay, collection efficiency is higher, and information is not present and reports missing and mistakes and omissions, improves the Data Collection degree of accuracy.
Alternatively, statistical analysis is carried out to the log information in specified log collection queue, including:
Using specified cluster system to specifying the log information in log collection queue to carry out statistical analysis.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the present invention, herein no longer Repeat one by one.
Fig. 3 is a kind of flow chart of end message statistical method according to an exemplary embodiment, as shown in figure 3, Interaction agent is terminal and server, is comprised the following steps.
In step 301, terminal establishes script running environment.
Wherein, terminal can be the smart machine such as intelligent TV set, tablet personal computer, the embodiment of the present disclosure to the type of terminal not Specifically limited.
In the disclosed embodiments, terminal can take following manner to realize when establishing script running environment:
Terminal establishes a monitor (monitor), and the monitor monitoring server push (push) can come in real time Data;When the data received are log collection order, log collection is carried out according to the log collection order received.
It should be noted that why the embodiment of the present disclosure establishes script running environment, it is because establishing script fortune On the basis of row environment, just can the script that issues of runtime server, and then carry out log information collection.And script fortune is not being set up During row environment, even if receiving the script that server issues, because script is unable to successful operation, therefore also collects and believe less than daily record Breath.
In step 302, the amendment script that terminal the reception server issues.
Wherein, amendment script is a section termination executable program, namely log collection order, for indicating collection terminal Log information, for example may indicate that whether detection terminal opens screen protection, the sound way of output for obtaining terminal etc..
In the disclosed embodiments, terminal can obtain the amendment script that server issues by following two ways:
First way, the reception server are according to the long amendment script for connecting push.
Wherein, the long connection for being connected as establishing between terminal and server, can be continuously transmitted in a connection multiple Packet, during holding is connected, if sent without packet, it is necessary to which terminal and server-side send out link detecting bag.
For first way, server will correct script active push to terminal.Wherein, server can in real time or every Set time corrects script to terminal push, and the embodiment of the present disclosure is limited without specific this.
The second way, send amendment script to server every preset time and issue request, server is used for basis and repaiied Positive script issues request and issues amendment script to terminal.
For the second way, terminal actively issues amendment script to server request.Wherein, preset time can be 1 day, 1 week or 1 month etc., the embodiment of the present disclosure are limited without specific this.Server is receiving repairing for terminal transmission After positive script issues request, it can generate according to the data needs of itself and issue corresponding amendment script.
It should be noted that no matter server takes above-mentioned any mode to issue amendment script, amendment script is being issued Before, server is encrypted all in accordance with default private key to amendment script.That is, server issue amendment script when, It is to issue the amendment script after encryption.Further, in order to ensure correcting the security of script, rivest, shamir, adelman can be taken Amendment script is encrypted.Such as knapsack algorithm, elliptic curve encryption algorithm etc., the embodiment of the present disclosure to this without It is specific to limit.
In step 303, the terminal-pair amendment script is illegally verified.
In the disclosed embodiments, terminal does not run the amendment script received immediately after amendment script is received, But the amendment script is illegally verified, to ensure information security, to prevent disabled user gets the daily record of terminal from believing Breath.Terminal can take following manner to realize when illegally being verified to the amendment script:
Amendment script is decrypted according to default public key, the amendment script after being decrypted;Repairing after detection decryption Whether designated identification information is included in positive script;After including designated identification information in amendment script after decryption is detected, really The positive script of periodical repair is by illegally verifying.
Wherein, amendment script server takes rivest, shamir, adelman and encrypted, default public key with it is default Private key matches, and the default public key is that terminal and server are appointed in advance.Therefore, terminal is issued receiving server Amendment script after, can according to the public key made an appointment to amendment script be decrypted.In addition, designated identification information can be one Small piece of code, such as fix-log-begin/fix-log-end.As the first behavior fix-log- in the data that terminal receives Begin, last column fix-log-end, it is determined that designated identification information is included in the amendment script after decryption, is received It is not illegal script to correct script, and the amendment script is by illegally verifying.
Certainly, in addition to the above-mentioned mode illegally verified to amendment script, other modes can be also taken, the disclosure is implemented Example is limited without specific this.If correcting script not by illegally verifying, handling process so far terminates.
In step 304, after script is corrected by illegally verifying, terminal operating amendment script, entered according to amendment script Row log information is collected.
In the disclosed embodiments, after script is corrected by illegally verifying, terminal can transport in the running environment of foundation The row amendment script, due to containing the log information that terminal need to collect in amendment script, can terminal can be according to the amendment pin The collection of this progress log information.Wherein, log information can totally be divided into two major classes, and one kind is User action log, for example is stepped on The behavior such as record, browse, clicking on, sharing, liking;Another kind of is system operation daily record, for example internal memory, disk, network, system and is entered Journey state etc..For two examples, when the internal memory service condition, the sound way of output, screen of amendment script instruction collection terminal Type etc. is protected, then terminal collects above- mentioned information according to the instruction of amendment script.When the behavior behaviour of user is collected in amendment script instruction When noting down, then terminal is collected according to behavior operation note of the instruction of amendment script to user.
In step 305, terminal uploads onto the server the log information being collected into.
Terminal is before the log information being collected into is uploaded, in order to save the time of upload and accelerate to upload speed Degree, it may be selected log information carrying out packing compression.Send be collected into log information when, may be selected long connected mode or TCP (Transmission Control Protocol, transmission control protocol) connected mode is sent, and the embodiment of the present disclosure is to this Limited without specific.
Within step 306, log information is stored in specified day by server after the log information of terminal transmission is received In will Collection Queue.
In the disclosed embodiments, log collection queue is specified to refer to kafka, the log collection queue is fast with read or write speed And it is famous, daily record data capacity is big, not high to reliability requirement.Wherein, kafka storage strategies are to carry out daily record with topic Information management, each topic include multiple part, the corresponding logic log of each part, are made up of multiple segment;Each A plurality of log information is stored in segment, log information id is determined by its logical place, i.e., can directly be positioned from log information id To the storage location of log information;Each part corresponding index in internal memory, records first in each segment The skew of log information.
In step 307, server is counted to specifying the log information in log collection queue to carry out statistical analysis As a result.
In the disclosed embodiments, server is stored in specified log collection queue in the log information for uploading terminal Afterwards, when carrying out statistical analysis to the above-mentioned log information being collected into, realized using spark group systems.Wherein, spark Group system is a kind of general distributed big data parallel computation frame, is realized based on MR (Map Reduce) algorithm distributed Calculate.Spark compared with MR, it is maximum the characteristics of be that the operation results of data can be stored in internal memory.It is special based on this function Property, Spark has more advantage in terms of mass data processing, interative computation and data mining.
After statistical result is obtained based on spark group systems, statistical result tracking user behavior can be based on, obtains and uses The interest preference information at family, so as to improve current service according to the interest preference information of user, to lift user experience;May be used also The system operation ability of terminal is assessed based on the statistical result, so as to improve the hardware configuration or soft of terminal based on obtained result Part configuration etc..
The method that the embodiment of the present disclosure provides, terminal is after script running environment is established, amendment that the reception server issues Script, and amendment script is illegally verified;After script is corrected by illegally verifying, terminal operating amendment script, according to Correct script and carry out log information collection, and the log information being collected into is uploaded onto the server, by server to log information Statistical analysis is carried out, due to having carried out the real-time and centralized collection processing of log information based on amendment script, so information In the absence of time delay, collection efficiency is higher, and information is not present and reports missing and mistakes and omissions, improves the Data Collection degree of accuracy.
Fig. 4 is a kind of block diagram of end message statistic device according to an exemplary embodiment.Reference picture 4, the dress Put including establishing module 401, script receiving module 402, correction verification module 403, collection module 404, uploading module 405.
Wherein, establish module 401 to be connected with script receiving module 402, for establishing script running environment;Script receives mould Block 402 is connected with correction verification module 403, the amendment script issued for the reception server;Correction verification module 403 and collection module 404 Connection, for illegally being verified to amendment script;Collection module 404 is connected with uploading module 405, for leading to when amendment script After crossing illegal verification, operation amendment script, log information collection is carried out according to amendment script;Uploading module 405, for that will collect To log information upload onto the server, server be used for log information carry out statistical analysis.
Alternatively, script receiving module, end is connected as according to the long amendment script for connecting push, length for the reception server The connection established between end and server;Or, send amendment script to server every preset time and issue request, server is used In issuing request according to amendment script amendment script is issued to terminal.
Alternatively, correction verification module, for amendment script to be decrypted according to default public key, the amendment after being decrypted Script;Whether designated identification information is included in amendment script after detection decryption;Wrapped in amendment script after decryption is detected After information containing designated identification, it is determined that amendment script is by illegally verifying;Wherein, amendment script is server according to default private key The script being encrypted, public key match with private key.
The device that the embodiment of the present disclosure provides, terminal is after script running environment is established, amendment that the reception server issues Script, and amendment script is illegally verified;After script is corrected by illegally verifying, terminal operating amendment script, according to Correct script and carry out log information collection, and the log information being collected into is uploaded onto the server, by server to log information Statistical analysis is carried out, due to having carried out the real-time and centralized collection processing of log information based on amendment script, so information In the absence of time delay, collection efficiency is higher, and information is not present and reports missing and mistakes and omissions, improves the Data Collection degree of accuracy.
Fig. 5 is a kind of block diagram of end message statistic device according to an exemplary embodiment.Reference picture 5, the dress Put including issuing module 501, receiving module 502, memory module 503, analysis module 504.
Wherein, issue module 501 to be connected with receiving module 502, for issuing amendment script to terminal, amendment script is clothes The script that business device is encrypted according to default private key;Receiving module 502 is connected with memory module 503, is existed for receiving terminal The log information sent after operation amendment script;Memory module 503 is connected with analysis module 504, for log information to be stored In specified log collection queue;Analysis module 504, for specifying the log information in log collection queue to carry out statistical Analysis, obtains statistical result.
Alternatively, analysis module, for being entered using specified cluster system to the log information in specified log collection queue Row statistical analysis.
The device that the embodiment of the present disclosure provides, terminal is after script running environment is established, amendment that the reception server issues Script, and amendment script is illegally verified;After script is corrected by illegally verifying, terminal operating amendment script, according to Correct script and carry out log information collection, and the log information being collected into is uploaded onto the server, by server to log information Statistical analysis is carried out, due to having carried out the real-time and centralized collection processing of log information based on amendment script, so information In the absence of time delay, collection efficiency is higher, and information is not present and reports missing and mistakes and omissions, improves the Data Collection degree of accuracy.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of for the frame of the terminal 600 counted to end message according to an exemplary embodiment Figure.For example, terminal 600 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, put down Board device, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 6, terminal 600 can include following one or more assemblies:Processing component 602, memory 604, power supply Component 606, multimedia groupware 608, audio-frequency assembly 610, I/O (Input/Output, input/output) interface 612, sensor Component 614, and communication component 616.
Processing component 602 generally controls the integrated operation of terminal 600, is such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 602 can refer to including one or more processors 620 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 602 can include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 can include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in terminal 600.These data are shown Example includes the instruction of any application program or method for being operated in terminal 600, contact data, telephone book data, disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 606 provides electric power for the various assemblies of terminal 600.Power supply module 606 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal 600.
Multimedia groupware 608 is included in the screen of one output interface of offer between the terminal 600 and user.One In a little embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen includes touch panel, screen may be implemented as touch-screen, to receive from user's Input signal.Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel.Institute Stating touch sensor can the not only border of sensing touch or sliding action, but also detect and the touch or slide phase The duration and pressure of pass.In certain embodiments, multimedia groupware 608 includes a front camera and/or rearmounted taken the photograph As head.When terminal 600 is in operator scheme, during such as screening-mode or video mode, front camera and/or rear camera can With the multi-medium data outside reception.Each front camera and rear camera can be a fixed optical lens systems Or there is focusing and optical zoom capabilities.
Audio-frequency assembly 610 is configured as output and/or input audio signal.For example, audio-frequency assembly 610 includes a MIC (Microphone, microphone), when terminal 600 is in operator scheme, such as call model, logging mode and speech recognition mode When, microphone is configured as receiving external audio signal.The audio signal received can be further stored in memory 604 Or sent via communication component 616.In certain embodiments, audio-frequency assembly 610 also includes a loudspeaker, for exporting audio Signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 614 includes one or more sensors, and the state for providing various aspects for terminal 600 is commented Estimate.For example, sensor cluster 614 can detect opening/closed mode of equipment 600, the relative positioning of component, such as component For the display and keypad of terminal 600, sensor cluster 614 can be with the position of 600 1 components of detection terminal 600 or terminal Put change, the existence or non-existence that user contacts with terminal 600, the orientation of terminal 600 or the temperature of acceleration/deceleration and terminal 600 Change.Sensor cluster 614 can include proximity transducer, be configured in no any physical contact near detection The presence of object.Sensor cluster 614 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, CMOS) or CCD (Charge-coupled Device, charge coupled cell) image biography Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 614 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between terminal 600 and other equipment.Terminal 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, also including NFC, (Near Field Communication, near field leads to the communication component 616 Letter) module, to promote junction service.For example, RFID (Radio Frequency can be based in NFC module Identification, radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) skill Art, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, terminal 600 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at data signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, PLD), FPGA) (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 604 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 620 of terminal 600.For example, The non-transitorycomputer readable storage medium can be ROM, RAM (Random Access Memory, random access memory Device), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and light data deposit Store up equipment etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal During row so that terminal is able to carry out a kind of end message statistical method, and methods described includes:
Establish script running environment;
The amendment script that the reception server issues;
Amendment script is illegally verified;
After script is corrected by illegally verifying, operation amendment script, log information collection is carried out according to amendment script;
The log information being collected into is uploaded onto the server, server is used to carry out statistical analysis to log information.
Alternatively, the amendment script that the reception server issues, including:
The reception server is according to the long amendment script for connecting push, the long company for being connected as establishing between terminal and server Connect;Or,
Amendment script being sent to server every preset time and issuing request, server, which is used to be issued according to amendment script, asks Ask to terminal and issue amendment script.
Alternatively, amendment script is illegally verified, including:
Amendment script is decrypted according to default public key, the amendment script after being decrypted;
Whether designated identification information is included in amendment script after detection decryption;
After including designated identification information in amendment script after decryption is detected, it is determined that amendment script passes through illegal school Test;
Wherein, it is the script that server is encrypted according to default private key to correct script, and public key matches with private key.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, terminal are establishing script running environment Afterwards, the amendment script that the reception server issues, and amendment script is illegally verified;When amendment script is by illegally verifying Afterwards, terminal operating amendment script, log information collection is carried out according to amendment script, and the log information being collected into is uploaded to clothes Business device, statistical analysis is carried out to log information by server, due to having carried out the real-time of log information and collection based on amendment script Middle collection processing, so time delay is not present in information, collection efficiency is higher, and information is not present and reports missing and mistakes and omissions, carries The Data Collection degree of accuracy is risen.
Fig. 7 is a kind of block diagram of server 700 for end message statistics according to an exemplary embodiment.Example Such as, server 700 may be provided in a server.Reference picture 7, server 700 include processing component 722, and it is further wrapped One or more processors are included, and as the memory resource representated by memory 732, can be by processing component 722 for storing Execution instruction, such as application program.The application program stored in memory 732 can include one or more every One module for corresponding to one group of instruction.In addition, processing component 722 is configured as execute instruction, to perform in above-described embodiment Method performed by server.
Server 700 can also include a power supply module 726 and be configured as the power management of execute server 700, and one Individual wired or wireless network interface 750 is configured as server 700 being connected to network, and input and output (I/O) interface 758.Server 700 can be operated based on the operating system for being stored in memory 732, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of end message statistical method, it is characterised in that methods described is applied to terminal, and methods described includes:
Establish script running environment;
The amendment script that the reception server issues, the amendment script are that server needs generated pin according to the data of itself This;
The amendment script is illegally verified;
After the amendment script is by illegally verifying, the amendment script is run, daily record letter is carried out according to the amendment script Breath is collected;
The log information being collected into is uploaded to the server, the server is used to carry out statistical to the log information Analysis,
The amendment script that the reception server issues, including:
Receive the server and the terminal and the service are connected as according to the long amendment script for connecting push, the length The connection established between device;Or,
Amendment script being sent to the server every preset time and issuing request, the server is used for according to the amendment pin Originally issue request and issue amendment script to the terminal.
2. according to the method for claim 1, it is characterised in that it is described that the amendment script is illegally verified, including:
The amendment script is decrypted according to default public key, the amendment script after being decrypted;
Whether designated identification information is included in amendment script after detection decryption;
After including designated identification information in amendment script after decryption is detected, determine that the amendment script passes through illegal school Test;
Wherein, the amendment script is the script that is encrypted according to default private key of the server, the public key with it is described Private key matches.
3. a kind of end message statistical method, it is characterised in that methods described is applied to server, and methods described includes:
Amendment script is issued to terminal, the amendment script is the script that the server is encrypted according to default private key;
The log information that the terminal is sent after the amendment script is run is received, the amendment script is server according to certainly The data of body need generated script;
The log information is stored in specified log collection queue;
Statistical analysis is carried out to the log information in the specified log collection queue, obtains statistical result,
It is described to issue amendment script to terminal, including:
The amendment script is pushed to terminal according to long connection, the length is connected as establishing between the terminal and the server Connection;Or,
Receiving terminal issues request every the amendment script that preset time is sent, and is issued and is asked to described according to the amendment script Terminal issues amendment script.
4. according to the method for claim 3, it is characterised in that the daily record in the specified log collection queue is believed Breath carries out statistical analysis, including:
Statistical analysis is carried out to the log information in the specified log collection queue using specified cluster system.
5. a kind of end message statistic device, it is characterised in that described device is applied to terminal, and described device includes:
Module is established, for establishing script running environment;
Script receiving module, the amendment script issued for the reception server, the amendment script are servers according to itself Data need generated script;
Correction verification module, for illegally being verified to the amendment script;
Collection module, for after the amendment script is by illegally verifying, the amendment script being run, according to the amendment pin This progress log information collection;
Uploading module, for the log information being collected into be uploaded into the server, the server is used for the daily record Information carries out statistical analysis,
The script receiving module, is additionally operable to:
Receive the server and the terminal and the service are connected as according to the long amendment script for connecting push, the length The connection established between device;Or,
Amendment script being sent to the server every preset time and issuing request, the server is used for according to the amendment pin Originally issue request and issue amendment script to the terminal.
6. device according to claim 5, it is characterised in that the correction verification module, for according to default public key to institute State amendment script to be decrypted, the amendment script after being decrypted;Whether specified mark is included in amendment script after detection decryption Know information;After including designated identification information in amendment script after decryption is detected, it is illegal to determine that the amendment script passes through Verification;Wherein, the amendment script is the script that is encrypted according to default private key of the server, the public key with it is described Private key matches.
7. a kind of end message statistic device, it is characterised in that described device is applied to server, and described device includes:
Module is issued, for issuing amendment script to terminal, the amendment script is that the server enters according to default private key The script of row encryption;
Receiving module, the log information sent for receiving the terminal after the amendment script is run, the amendment script It is that server needs generated script according to the data of itself;
Memory module, for the log information to be stored in specified log collection queue;
Analysis module, for carrying out statistical analysis to the log information in the specified log collection queue, statistical result is obtained,
It is described to issue module, it is additionally operable to:
The amendment script is pushed to terminal according to long connection, the length is connected as establishing between the terminal and the server Connection;Or,
Receiving terminal issues request every the amendment script that preset time is sent, and is issued and is asked to described according to the amendment script Terminal issues amendment script.
8. device according to claim 7, it is characterised in that the analysis module, for utilizing specified cluster system pair Log information in the specified log collection queue carries out statistical analysis.
9. a kind of terminal, it is characterised in that the terminal includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:Establish script running environment;The amendment script that the reception server issues, it is described to repair Positive script is that server needs generated script according to the data of itself;The amendment script is illegally verified;Work as institute After amendment script is stated by illegally verifying, the amendment script is run, log information collection is carried out according to the amendment script;Will The log information being collected into is uploaded to the server, and the server is used to carry out statistical analysis to the log information,
The amendment script that the reception server issues, including:
Receive the server and the terminal and the service are connected as according to the long amendment script for connecting push, the length The connection established between device;Or,
Amendment script being sent to the server every preset time and issuing request, the server is used for according to the amendment pin Originally issue request and issue amendment script to the terminal.
10. a kind of server, it is characterised in that the server includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:Amendment script is issued to terminal, the amendment script is the server according to pre- If the script that is encrypted of private key;The log information that the terminal is sent after the amendment script is run is received, it is described to repair Positive script is that server needs generated script according to the data of itself;The log information is stored in specified log collection In queue;Statistical analysis is carried out to the log information in the specified log collection queue, obtains statistical result,
It is described to issue amendment script to terminal, including:
The amendment script is pushed to terminal according to long connection, the length is connected as establishing between the terminal and the server Connection;Or,
Receiving terminal issues request every the amendment script that preset time is sent, and is issued and is asked to described according to the amendment script Terminal issues amendment script.
CN201510105138.2A 2015-03-11 2015-03-11 End message statistical method, device, terminal and server Active CN104735139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510105138.2A CN104735139B (en) 2015-03-11 2015-03-11 End message statistical method, device, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510105138.2A CN104735139B (en) 2015-03-11 2015-03-11 End message statistical method, device, terminal and server

Publications (2)

Publication Number Publication Date
CN104735139A CN104735139A (en) 2015-06-24
CN104735139B true CN104735139B (en) 2018-02-02

Family

ID=53458565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510105138.2A Active CN104735139B (en) 2015-03-11 2015-03-11 End message statistical method, device, terminal and server

Country Status (1)

Country Link
CN (1) CN104735139B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10333705B2 (en) * 2016-04-30 2019-06-25 Civic Technologies, Inc. Methods and apparatus for providing attestation of information using a centralized or distributed ledger
CN107343091A (en) * 2017-06-27 2017-11-10 努比亚技术有限公司 Data reporting method and system
CN108449216A (en) * 2018-04-09 2018-08-24 中科微至智能制造科技江苏有限公司 A kind of logistics sorting data statistical approach based on Spark technologies
CN111666193B (en) * 2019-03-08 2024-01-30 阿里巴巴集团控股有限公司 Method and system for monitoring and testing terminal function based on real-time log analysis
CN113032224A (en) * 2021-04-22 2021-06-25 深信服科技股份有限公司 Information acquisition method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212347A (en) * 2006-12-31 2008-07-02 中兴通讯股份有限公司 Method and device for obtaining operation log of network element management system
CN101620630A (en) * 2009-06-29 2010-01-06 北京黑米天成科技有限公司 WEB action data collecting model based on JS script
CN102158748A (en) * 2010-05-14 2011-08-17 青岛海信传媒网络技术有限公司 Methods and systems for collecting and uploading logs
CN103886735A (en) * 2014-03-07 2014-06-25 北京国电通网络技术有限公司 Acquisition method and acquisition system of power utilization information, and meter reading equipment
CN104363113A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Business continuity detection method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4600447B2 (en) * 2007-08-30 2010-12-15 ブラザー工業株式会社 Log collection system and computer apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212347A (en) * 2006-12-31 2008-07-02 中兴通讯股份有限公司 Method and device for obtaining operation log of network element management system
CN101620630A (en) * 2009-06-29 2010-01-06 北京黑米天成科技有限公司 WEB action data collecting model based on JS script
CN102158748A (en) * 2010-05-14 2011-08-17 青岛海信传媒网络技术有限公司 Methods and systems for collecting and uploading logs
CN103886735A (en) * 2014-03-07 2014-06-25 北京国电通网络技术有限公司 Acquisition method and acquisition system of power utilization information, and meter reading equipment
CN104363113A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Business continuity detection method

Also Published As

Publication number Publication date
CN104735139A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN107169125B (en) Multimedia resource delivery statistical data acquisition method and device
CN104735139B (en) End message statistical method, device, terminal and server
CN104462277B (en) Application program installation data statistical method, server and terminal
CN107343030B (en) Information pushing method, device and system
CN110689460A (en) Traffic accident data processing method, device, equipment and medium based on block chain
CN106488335A (en) Live-broadcast control method and device
CN107750466A (en) Use equipment near synchronized cue pairing
CN109039990B (en) Behavior verification method and device based on verification code
CN105049213A (en) File signature method and device
CN106454392A (en) Live broadcast processing method, device and terminal
CN107491966A (en) Method of payment, apparatus and system, storage medium
CN106792448A (en) Bluetooth connecting method and device, system
WO2016011739A1 (en) Method, device, and system for anti-counterfeiting verification
CN111368232A (en) Password sharing reflux method and device, electronic equipment and storage medium
CN104468581B (en) The method and device of login application program
CN106534876A (en) Target user determining method and target user determining device
CN107070654A (en) information collecting method and device
CN106713127A (en) Instant chatting record acquisition and processing methods and devices
CN109560986A (en) Test method, device and the test macro of things-internet gateway equipment
CN104125267A (en) Account protection method, device and terminal equipment
CN107316207A (en) A kind of method and apparatus for obtaining bandwagon effect information
CN108053241A (en) Data analysing method, device and computer readable storage medium
CN107945552A (en) Become method, apparatus and the storage medium that the lamp time is prompted to signal lamp
CN107154977A (en) Information-pushing method and device
CN104539497B (en) Method for connecting network and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant