Intelligent district log system and log recording method thereof

An intelligent cell and recording method technology, applied in transmission systems, digital transmission systems, electrical components, etc., can solve the problems of increasing terminal connection time and transmission time, losing data, increasing server overhead, etc., to facilitate query and improve processing. The effect of efficiency

Inactive Publication Date: 2011-09-21
TCL CORPORATION
9 Cites 16 Cited by

AI-Extracted Technical Summary

Problems solved by technology

The log system plays a very important role in the diagnosis of terminal problems. The logs collected by the terminal are transmitted to the server through the network, so that the terminal maintenance personnel can understand the operation status of all terminals on the server, and quickly locate the problem through the log content , which greatly saves maintenance costs and improves the efficiency of problem solving. Therefore, many terminals on the market currently have the function of collecting system logs and transmitting them to the server. However, there are certain problems in the implementation of this function and it is not perfect.
Some existing log systems transmit log files through UDP transmission, but because UDP has no mechanism to ensure the reliability of data transmission, data transmission through UDP transmission between different devices on the network will cause data loss problems, and the log system Constantly tran...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Method used

The indoor unit log collection module uses UDP transmission mode to ensure the efficiency of log collection. The log agent module receives UDP data through the local UDP port, which overcomes the shortcomings of unreliable UDP data transmission through the network, and ensures that the local log information is not lost. , and then transmit the log information to the outdoor station of the unit through the TCP transmission mode, which ensures the reliability of the log information network transmission, and the indoor unit sends the log information to the outdoor station of the unit, sharing the server-side network pressure to each outdoor station of the unit. The log information in the unit outdoor station database facilitates the query of terminal maintenance personnel. The log information of each indoor terminal belonging to the unit outdoor station can be quickly searched according to time, room number and other conditions, and the log file processing efficiency is improved.
The log collection module 1...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention provides an intelligent district log system. The intelligent district log system comprises at least one indoor terminal and a log server, wherein the indoor terminal includes a log collection module for collecting the log information of at least one terminal process module, and also includes a log agent module; the log agent module includes a UDP (user datagram protocol) monitoring sub-module, a memory queue management sub-module and a TCP (transmission control protocol) transmission sub-module; the UDP monitoring sub-module is used for receiving the log information transmitted by the log collection module, storing the log information in the memory queue of the memory queue management sub-module, and sending a message to inform the TCP transmission sub-module; and the TCP transmission sub-module is used for extracting the log information from the memory queue of the memory queue management sub-module and forwarding the log information. The intelligent district log system provided by the invention can collect the log information in the UDP transmission manner, and can transmit the log information in the TPC transmission manner, thereby improving the log information processing efficiency and facilitating information query.

Application Domain

Technology Topic

User Datagram ProtocolProcess module +4

Image

  • Intelligent district log system and log recording method thereof
  • Intelligent district log system and log recording method thereof

Examples

  • Experimental program(1)

Example Embodiment

In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
The present invention solves the problems mentioned in the background art, and provides a perfect solution in terms of terminal execution efficiency, log sending reliability, network pressure on the server side, and convenience for terminal maintenance personnel to find log information.
1, a preferred embodiment of the smart community log system of the present invention includes: an indoor terminal 10, a unit door phone log agent module 20 provided in a unit door phone, and a log server 30. The indoor terminal 10 includes a terminal process module 12, The log collection module 14 and the log proxy module 16, the log proxy module 16 includes a UDP monitoring submodule 162, a memory queue management submodule 164, and a TCP sending submodule 166. The unit door phone log proxy module 20 includes a TCP monitoring submodule 21. Database 22, file writing submodule 24, TCP sending submodule 26, and query submodule 28.
The log collection module 14 of the indoor terminal 10 is used to collect log information generated by several terminal process modules 12 in the indoor terminal 10; the UDP monitoring sub-module 162 is used to receive the log information sent by the log collection module 14 and put it into In the memory queue of the memory queue management sub-module 164, a concurrent message informs the TCP sending sub-module 166; the TCP sending sub-module 166 is used to retrieve log information from the memory queue of the memory queue management sub-module 164 and forward the log information to Unit door phone; the memory queue management sub-module 164 performs mutual exclusion lock operation and first-in-first-out management on the memory queue to ensure that the write and fetch operations of the memory queue do not conflict, even if the TCP sending sub-module 166 sends data slowly, It is guaranteed that the log information will not be lost, and it can be arranged in the order received and continue to be sent.
The TCP monitoring submodule 21 of the unit door phone log agent module 20 is used to receive the log information sent by the indoor terminal 10 to save it in the database 22, and is also used to receive the query information sent by the log server 30 and send the query information to The query submodule 28; the file writing submodule 28 is used to write the records of the database 22 to a log file; the query submodule 28 queries the records that meet the conditions in the database and sends them to the TCP sending submodule 26; The TCP sending submodule 26 is used to send the queried records or log files to the log server 30.
Referring to Figure 2, the preferred embodiment of the smart community log recording method of the present invention includes the steps: S1, each process module of the indoor terminal transfers the log information to be output to the log collection module by calling the log collection module interface; S2, the log collection module is in each On the basis of the log information input by the process module, add some additional information, such as time, host name and other information to facilitate the classification and reading of the log, and then the log collection module sends the log information to the log agent module through UDP transmission; S3, log agent The UDP monitoring submodule of the module receives the log information; S4, the UDP monitoring submodule of the log agent module, after receiving the log information, calls the memory management submodule to determine whether the memory queue is locked, if it is locked, go to step S5, if it is not locked, Go to step S6; S5, wait for the TCP sending sub-module to release the queue lock; S6, the UDP listening sub-module of the log agent module calls the memory management sub-module to lock the memory queue, put the log information into the memory queue according to the first-in first-out principle, and then call The memory management submodule releases the memory queue lock; S7, the UDP monitoring submodule of the log agent module judges whether there is the last log information in the memory queue, if it exists, it will go directly to step S10, if it does not exist, go to step 9; S9, the UDP monitoring submodule Send a message to the TCP sending sub-module, notifying it that there is log information to be sent. The last log information in the memory queue means that the message has been sent and the TCP sending sub-module has not had time to get the log information, so it will no longer be sent to the TCP sub-module Send a message; S10, the TCP sending sub-module of the log agent module receives the message, calls the memory management sub-module to lock the memory queue, and retrieves all log information from the memory queue according to the first-in first-out principle; S11, the TCP sending sub-module of the log agent module The module calls the memory management submodule to release the memory queue lock, so that the UDP monitoring submodule can continue to write; S12, the TCP sending submodule of the log agent module sends log information to the unit doorway; S13, the unit doorway in the unit doorway The TCP monitoring sub-module of the machine log agent module judges the type of the received information, if it is the query information from the log server, then go to step S14, if it is the log information from the indoor terminal, then go to step S15; S14, notify the query sub-module to query the database Then go to step S17; S15. After receiving the log information, save the log information in the local database according to fields such as time, room number and log content, and then determine whether the log records in the database exceed a set value, such as 10,000, which exceeds Then go to step S16, otherwise it ends; S16, call the file writing submodule to write the log information of each indoor unit in the database into a log file; S17, call the TCP sending submodule to upload the log file to the log server; S18, the log server receives the query Results or log files.
Among them, the query process of the log server is detailed as follows: enter the time interval, room number and other conditions in the background log query page through the log server to query the log information of an indoor terminal within a certain period of time, and the log server sends the query information to After receiving the query information, the unit door phone and unit door phone TCP monitoring sub-module call the query sub-module to query the database, and the query sub-module calls the TCP sending sub-module to query the log information record and return the query result to the log server.
The present invention adds two log agent modules to the original intelligent community log system, one on the indoor terminal and the other on the unit door phone. The log agent module added to the indoor terminal is responsible for receiving the logs sent by the log collection module via UDP transmission. The log information is sent to the unit VTO via TCP transmission. The log agent module added to the unit VTO is responsible for receiving the log information sent by the indoor terminal, saving it to the local database, and forming a log file according to a certain strategy and uploading it to the log Server.
The indoor unit log collection module uses UDP transmission mode to ensure the efficiency of log collection. The log proxy module receives UDP data through the local UDP port, which overcomes the shortcomings of unreliable transmission of UDP data through the network, so that the local log information is not lost , And then use TCP transmission to transmit log information to the unit VTO, ensuring the reliability of log information network transmission, and the indoor unit sends log information to the unit VTO, sharing the server-side network pressure on each unit VTO, and The log information in the unit door phone database facilitates the query of terminal maintenance personnel, and can quickly search the log information of each indoor terminal in the unit door phone according to conditions such as time and room number, and improve the efficiency of log file processing.
The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
###0001###
###0002###
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Segmented crankshaft machining process

ActiveCN103009021AImprove yield and process qualityImprove processing efficiencyProcessing accuracyMachining process
Owner:SICHUAN MIANZHU XINKUN MACHINERY MAKING

Classification and recommendation of technical efficacy words

  • Improve processing efficiency
  • Convenient query

Acid tank sealing treatment system

Owner:YANTAI JEREH PETROLEUM EQUIP & TECH

Food safety tracing system and method

Owner:ANHUI JINGHUI CAILANZI E COMMERCE CO LTD

VoLTE voice quality assessment method and system

InactiveCN108428459AConvenient queryEvaluation results are reliableSpeech analysisSpecial data processing applicationsAssessment methodsValue assessment
Owner:CHINA MOBILE GRP GUANGDONG CO LTD +1
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products