CN106506644A - Terminal Debugging message collection method and system - Google Patents

Terminal Debugging message collection method and system Download PDF

Info

Publication number
CN106506644A
CN106506644A CN201610987619.5A CN201610987619A CN106506644A CN 106506644 A CN106506644 A CN 106506644A CN 201610987619 A CN201610987619 A CN 201610987619A CN 106506644 A CN106506644 A CN 106506644A
Authority
CN
China
Prior art keywords
port
debugging message
client
server
socket
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.)
Pending
Application number
CN201610987619.5A
Other languages
Chinese (zh)
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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co Ltd
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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201610987619.5A priority Critical patent/CN106506644A/en
Publication of CN106506644A publication Critical patent/CN106506644A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to terminal Debugging message collection method and system, by setting up server socket and client socket, socket is used for describing IP address and port;Configuration server port, and bound functions are called in the Service-Port, IP address is bound with Service-Port;Set in Service-Port and monitor;Judge whether Service-Port has the connection request from client, if so, then server calls receiver function processes the request of client Debugging message.After being disposed, client receiver function is sent result to.I.e. user only needs for client and server particular port to set up connection and can just complete the collection of Debugging message, and it is simple to collect process, and additionally increases hardware device without the need for operator and can be realized as.

Description

Terminal Debugging message collection method and system
Technical field
The present invention relates to Debugging message collect, more particularly to a kind of simple to operate, can efficiently positioning test terminal tune Examination formation gathering method and system.
Background technology
At present, with the popularization of broadband access, ip voice (VoIP), IPTV service are developed rapidly, increasing net Network terminal unit is introduced in home and enterprise networks.When these network-termination devices are used in carrier network environment or terminal When there is network problem in the man of family, conventional adjustment method has:Telnet is supported to solve, while needing to coordinate client technologies Hold personnel or terminal use assists, collect Debugging message.But it is not that everyone is ready in the case of equipment is lacked, creates conditions Coordinate debugging orientation problem.Reason is more, substantially has debugging step loaded down with trivial details, and client contradicts or needs additionally to connect serial ports etc..
Content of the invention
Be based on this, it is necessary to provide a kind of simple to operate, can efficiently the terminal Debugging message collection method of positioning test and System.
A kind of terminal Debugging message collection method, for by http server come collection terminal Debugging message, including with Lower step:
Server socket and client socket is set up, the socket is used for describing IP address and port;
Configuration server end socket port numbers, and bound functions are called in the server end, by the server IP address is bound with Service-Port;
Set in the Service-Port and monitor;
Judge whether the Service-Port has the connection request from the client, if so, then server calls connect Receive function and process the client Debugging message request;After being disposed, client receiver function is sent result to.
Wherein in one embodiment, also include:
After the client is input into server ip address and port, enters Debugging message and collect interface.
Wherein in one embodiment, also include:Configuration Debugging message acquisition time, size of data and work(needed for unlatching Energy information option, in preserving to the flash memory of end product, executes Debugging message and collects.
Wherein in one embodiment, also include:Preserved Debugging message is derived from the flash memory, and is used for problem Positioning analysises.
A kind of terminal Debugging message collection system, including creation module, configuration module, monitors module and judge module;
The creation module is used for setting up server socket and client socket, and the socket is used for describing IP ground Location and port;
The configuration module is used for configuration server socket port numbers, and calls bound functions in the server end, The IP address of the server is bound with Service-Port;
The monitoring module is used for setting in the Service-Port to be monitored;
The judge module be used for judge whether the Service-Port has the connection request from the client port, If so, then server calls receiver function processes the client Debugging message request;After being disposed, visitor is sent result to Family end receiver function.
Wherein in one embodiment, after the client input server ip address and client port, debugging is entered Information interface.
Wherein in one embodiment, the configuration module be additionally operable to configure Debugging message acquisition time, size of data with And required function information option is opened, in preserving to the flash memory of end product, execute Debugging message and collect.
Wherein in one embodiment, also include data transmission module, the data transmission module is used for will be from the sudden strain of a muscle The preserved Debugging message of middle derivation is deposited, and is analyzed for positioning problems.
Above-mentioned terminal Debugging message collection method and system are socketed by setting up server socket and client socket Word is used for describing IP address and port;Configuration server port, and bound functions are called in the Service-Port, by IP address Bind with Service-Port;Set in Service-Port and monitor;Judge whether Service-Port has the connection from client to ask Ask, if so, then server calls receiver function processes the request of client Debugging message.After being disposed, visitor is sent result to Family end receiver function.I.e. user only needs to set up to connect client and server particular port just complete Debugging message Collect, collection process is simple, and additionally increase hardware device without the need for operator and can be realized as.
Description of the drawings
Flow charts of the Fig. 1 for terminal Debugging message collection method;
Module maps of the Fig. 2 for terminal Debugging message collection system.
Specific embodiment
For the ease of understanding the present invention, the present invention is described more fully below with reference to relevant drawings.In accompanying drawing Give the preferred embodiment of the present invention.But, the present invention can be realized in many different forms, however it is not limited to herein Described embodiment.On the contrary, the purpose for providing these embodiments is to make the understanding to the disclosure more saturating Thorough comprehensive.
Unless otherwise defined, all of technology used herein and scientific terminology and the technical field for belonging to the present invention The implication that technical staff is generally understood that is identical.The term for being used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that of the invention in limiting.Term as used herein " and/or " include one or more phases The arbitrary and all of combination of the Listed Items of pass.
As shown in figure 1, the flow chart for terminal Debugging message collection method.
A kind of terminal Debugging message collection method, for sending terminal Debugging message to server, comprises the following steps:
Step S110, sets up server socket and client socket, and the socket is used for describing IP address and end Mouthful.
Before server socket is set up, need to start the service of http processes.Create server socket afterwards, that is, create Build IP address and port.
Step S120, configuration server end socket port numbers, and bound functions are called in the server end, will be described The IP address of server is bound with Service-Port.
Specifically, server has various functions port, in order to ensure that user can send Debugging message by unique port, Accordingly, it would be desirable to configure to Service-Port.Such as in 8080 port of server configures, and bind functions are called to be bound. During gather information, only need to be after client be input into server ip address and 8080 ports, client just sends connection to server Request.
Step S130, sets in the Service-Port and monitors.
Service-Port is completed with postponing, is needing to monitor the port, that is, receiving the data letter that collects the port Breath.
Step S140, judges whether the Service-Port has the connection request from the client, if so, then services Device calls receiver function to process the request of client Debugging message;After being disposed, client receiver function is sent result to.Adjust Examination personnel or user derive preserved Debugging message from the flash memory and analyze for positioning problems.
Above-mentioned terminal Debugging message collection method being collected based on Http modes, due to being pre-configured with end in server Mouthful, and IP address has been bound, therefore, user only need to be input into server ip address and certain port number in terminal, can just enter End product Debugging message collects interface.After opening the option of required function information, server process is committed to, Debugging message will In preserving to end product memorizer, commissioning staff or user just can be used for positioning problems analysis after client importing.Should Method is simple to operate, it is possible to resolve efficient positioning test carrier network environment and end user problems.
Terminal Debugging message collection method also includes:After the client is input into server ip address and port, enter Debugging message collects interface.
Specifically, after network-termination device (client) is run completely, in browser address bar, input IP address+ Port numbers (8080 ports being such as pre-configured with) enter Debugging message and collect the page,
Terminal Debugging message collection method also includes:Needed for configuration Debugging message acquisition time, size of data and unlatching Function information collects option, in preserving to end product memorizer, executes Debugging message and collects.
Terminal Debugging message collection method also includes:Preserved Debugging message is derived from the flash memory, and is used for asking Topic positioning analysises.
After Debugging message is collected and finished, the page is collected by Debugging message, from end product memorizer (flash) The preserved Debugging message of middle derivation is analyzed to client for positioning problems.
Above-mentioned all embodiments are based on, the principle of terminal Debugging message collection method is as follows:
First, socket is set up in server end, and configure port, by bind functions binding IP address and configuration port. Meanwhile, socket is also set up in client, commissioning staff or user are in the corresponding IP address of client input and the port numbers for configuring The connection of client and server can be realized.And by the annexation, the request of the Debugging message of client can be sent to Server.I.e. user only needs just to obtain Debugging message from end product by being simply input operation, without the need for professional people Member's Attended Operation, and operator is without increase additional hardware equipment.Meanwhile, operator can be carried out to client by IP address Positioning, further solves the problems, such as network environment for user.
As shown in Fig. 2 the module map for terminal Debugging message collection system.
A kind of terminal Debugging message collection system, including creation module 201, configuration module 202, monitoring module 203 and sentences Disconnected module 204.
The creation module 201 is used for setting up server socket and client socket, and the socket is used for describing IP address and port.
The configuration module 202 is used for configuration server port socket port numbers, and binds in the server calls Function, the IP address of the server is bound with Service-Port.
The monitoring module 203 is used for setting in the Service-Port to be monitored.
The judge module 204 be used for judge whether the Service-Port has the connection request from the client, If so, then server calls receiver function processes the Debugging message request of client port, after being disposed, sends result to Client receiver function.
Configuration module 202 is additionally operable to configure Debugging message acquisition time, size of data and opens required function information Option, in preserving to the flash memory of end product, executes Debugging message and collects.
Terminal Debugging message collection system also includes data transmission module, and the data transmission module is used for will be from the sudden strain of a muscle Deposit the preserved Debugging message of middle derivation to send to the client, analyze for positioning problems.
Above-mentioned terminal Debugging message collection method and system are socketed by setting up server socket and client socket Word is used for describing IP address and port;Configuration server port, and bound functions are called in the Service-Port, by IP address Bind with Service-Port;Set in Service-Port and monitor;Judge whether Service-Port has the connection from client to ask Ask, if so, then server calls receiver function processes the Debugging message request of client port, after being disposed, result is sent out Give client receiver function.I.e. user is only needed to be set up client with server and is connected the receipts that can just complete Debugging message Collection, collects process simply, and can be realized as without the need for operator's increase hardware device.Meanwhile, binding IP address facilitates operator Client is positioned.
Each technical characteristic of embodiment described above arbitrarily can be combined, for making description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously Therefore can not be construed as limiting the scope of the patent.It should be pointed out that for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, some deformations and improvement can also be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (8)

1. a kind of terminal Debugging message collection method, for by http server, come collection terminal Debugging message, its feature exists In comprising the following steps:
Server socket and client socket is set up, the socket is used for describing IP address and port;
Configuration server end socket port numbers, and bound functions are called in the server end, by the IP ground of the server Bind with Service-Port location;
Set in the Service-Port and monitor;
Judge whether the Service-Port has the connection request from the client, if so, then server calls receive letter Number processes the client Debugging message request;After being disposed, client receiver function is sent result to.
2. terminal Debugging message collection method according to claim 1, it is characterised in that also include:
After the client is input into server ip address and port, enters Debugging message and collect interface.
3. terminal Debugging message collection method according to claim 2, it is characterised in that also include:Configuration Debugging message Acquisition time, size of data and unlatching required function information option, in preserving to the flash memory of end product, execute debugging Information.
4. terminal Debugging message collection method according to claim 3, it is characterised in that also include:From the flash memory Preserved Debugging message is derived, and is analyzed for positioning problems.
5. a kind of terminal Debugging message collection system, it is characterised in that including creation module, configuration module, monitor module and sentence Disconnected module;
The creation module is used for setting up server socket and client socket, the socket be used for describing IP address and Port;
The configuration module is used for configuration server socket port numbers, and calls bound functions in the server end, by institute The IP address and Service-Port for stating server is bound;
The monitoring module is used for setting in the Service-Port to be monitored;
The judge module be used for judge whether the Service-Port has the connection request from the client port, if It is that then server calls receiver function processes the client Debugging message request;After being disposed, client is sent result to End receiver function.
6. terminal Debugging message collection system according to claim 5, it is characterised in that the client is input into server After IP address and client port, enter Debugging message and collect interface.
7. terminal Debugging message collection system according to claim 5, it is characterised in that the configuration module is additionally operable to match somebody with somebody Put Debugging message acquisition time, size of data and open required function information option, preserve to the flash memory of end product In, execute Debugging message and collect.
8. terminal Debugging message collection system according to claim 5, it is characterised in that also include data transmission module, The data transmission module is used for derive preserved Debugging message from the flash memory, and analyzes for positioning problems.
CN201610987619.5A 2016-11-07 2016-11-07 Terminal Debugging message collection method and system Pending CN106506644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610987619.5A CN106506644A (en) 2016-11-07 2016-11-07 Terminal Debugging message collection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610987619.5A CN106506644A (en) 2016-11-07 2016-11-07 Terminal Debugging message collection method and system

Publications (1)

Publication Number Publication Date
CN106506644A true CN106506644A (en) 2017-03-15

Family

ID=58323958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610987619.5A Pending CN106506644A (en) 2016-11-07 2016-11-07 Terminal Debugging message collection method and system

Country Status (1)

Country Link
CN (1) CN106506644A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110177026A (en) * 2019-05-17 2019-08-27 深圳创维-Rgb电子有限公司 A kind of detection method, storage medium and the server of network interface terminal
CN111314273A (en) * 2018-12-12 2020-06-19 阿里巴巴集团控股有限公司 Data transmission method and connection device based on UDP (user Datagram protocol)
CN111970364A (en) * 2020-08-17 2020-11-20 创新奇智(重庆)科技有限公司 Hardware debugging execution method and device, electronic equipment and storage medium
CN112702362A (en) * 2021-03-24 2021-04-23 北京翼辉信息技术有限公司 Method and device for enhancing TCP/IP protocol stack, electronic equipment and storage medium
CN113449172A (en) * 2021-06-03 2021-09-28 阿波罗智联(北京)科技有限公司 Asynchronous data reporting method and device, electronic equipment and storage medium
CN116546057A (en) * 2023-07-06 2023-08-04 南京航空航天大学 Strong real-time data communication method for digital twin application

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217413A (en) * 2008-01-03 2008-07-09 杭州华三通信技术有限公司 A centralized debugging system and centralized debugging method of extensible unit in the extensible system
US20120226837A1 (en) * 2011-03-02 2012-09-06 Texas Instruments Incorporated Method and System of debugging Multicore Bus Transaction Problems
CN102790817A (en) * 2011-05-19 2012-11-21 乐金电子(中国)研究开发中心有限公司 Mobile terminal and debugging method thereof
CN104993969A (en) * 2015-07-28 2015-10-21 上海斐讯数据通信技术有限公司 Asynchronous configuration OUN method, system and OLT
CN105227399A (en) * 2015-09-10 2016-01-06 汉柏科技有限公司 Based on network equipment Debugging message acquisition methods and the system of User space
CN105703947A (en) * 2016-01-18 2016-06-22 深圳创维数字技术有限公司 Method for remotely debugging router, server, and router
CN105915367A (en) * 2016-03-30 2016-08-31 青岛海信移动通信技术股份有限公司 Online debugging method, terminal and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217413A (en) * 2008-01-03 2008-07-09 杭州华三通信技术有限公司 A centralized debugging system and centralized debugging method of extensible unit in the extensible system
US20120226837A1 (en) * 2011-03-02 2012-09-06 Texas Instruments Incorporated Method and System of debugging Multicore Bus Transaction Problems
CN102790817A (en) * 2011-05-19 2012-11-21 乐金电子(中国)研究开发中心有限公司 Mobile terminal and debugging method thereof
CN104993969A (en) * 2015-07-28 2015-10-21 上海斐讯数据通信技术有限公司 Asynchronous configuration OUN method, system and OLT
CN105227399A (en) * 2015-09-10 2016-01-06 汉柏科技有限公司 Based on network equipment Debugging message acquisition methods and the system of User space
CN105703947A (en) * 2016-01-18 2016-06-22 深圳创维数字技术有限公司 Method for remotely debugging router, server, and router
CN105915367A (en) * 2016-03-30 2016-08-31 青岛海信移动通信技术股份有限公司 Online debugging method, terminal and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314273A (en) * 2018-12-12 2020-06-19 阿里巴巴集团控股有限公司 Data transmission method and connection device based on UDP (user Datagram protocol)
CN111314273B (en) * 2018-12-12 2022-06-07 阿里巴巴集团控股有限公司 Data transmission method and connection device based on UDP (user Datagram protocol)
CN110177026A (en) * 2019-05-17 2019-08-27 深圳创维-Rgb电子有限公司 A kind of detection method, storage medium and the server of network interface terminal
CN111970364A (en) * 2020-08-17 2020-11-20 创新奇智(重庆)科技有限公司 Hardware debugging execution method and device, electronic equipment and storage medium
CN112702362A (en) * 2021-03-24 2021-04-23 北京翼辉信息技术有限公司 Method and device for enhancing TCP/IP protocol stack, electronic equipment and storage medium
CN113449172A (en) * 2021-06-03 2021-09-28 阿波罗智联(北京)科技有限公司 Asynchronous data reporting method and device, electronic equipment and storage medium
US11849006B2 (en) 2021-06-03 2023-12-19 Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd. Method for reporting asynchronous data, electronic device and storage medium
CN113449172B (en) * 2021-06-03 2024-03-29 阿波罗智联(北京)科技有限公司 Asynchronous data reporting method and device, electronic equipment and storage medium
CN116546057A (en) * 2023-07-06 2023-08-04 南京航空航天大学 Strong real-time data communication method for digital twin application

Similar Documents

Publication Publication Date Title
CN106506644A (en) Terminal Debugging message collection method and system
CN104349346B (en) A kind of mobile terminal WiFi handling capacity automated testing methods
CN105430760B (en) Connection method and system between equipment
CN101483553B (en) Audit apparatus and method for customer network behavior
EP1667360A1 (en) Generic discovery for computer networks
CN107800565A (en) Method for inspecting, device, system, computer equipment and storage medium
CN105099733B (en) The method and system of equipment safety management in safety control platform
CN106961357A (en) A kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals
CN107025222A (en) A kind of distributed information log acquisition method and device
CN101431447B (en) Method and apparatus for testing capacity and performance of virtual special network server
CN107919971A (en) Method, apparatus and system for audio/video communication connection disaster tolerance
CN110321531A (en) Laboratory Instruments information management system
CN103326902A (en) Configurable monitoring system and monitoring method for distributed type mainframe performance testing data
CN105516061A (en) Remote server access method and web server
CN106535240A (en) Mobile APP centralized performance analysis method based on cloud platform
US20070143471A1 (en) Methods, systems and computer program products for evaluating suitability of a network for packetized communications
CN107579792A (en) The parallel analytic method of polytypic satellite in orbit engineering parameter
CN110768870B (en) Quality monitoring method and device for intelligent special line
CN107911410A (en) Distributed Services process resource consumes statistical method and device
CN107426046A (en) User's Internet data capturing analysis method and system
CN103152195B (en) Collecting method and device
CN106209446B (en) The construction method of the service application logical network of data center server
DE102010009642B4 (en) System and method of sending packets using the network address of another device
CN115460102A (en) Packet grabbing system, packet grabbing method and packet grabbing device
CN106776236A (en) The method and apparatus of the execution of monitoring program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315

RJ01 Rejection of invention patent application after publication