A kind of remote diagnosis method of wireless communication module, device and system
Technical field
The invention belongs to wireless communication technique field, particularly relate to a kind of remote diagnosis method of wireless communication module, device and system.
Background technology
Traditional wireless communication module generally captures diagnostic message (message, log) by serial physical equipment (as UART, USB etc.).But there is the situation that the not enough or client of serial port resource does not use USB in actual use, capturing diagnostic message in this case can bother in the extreme, often needs by drawing serial device in addition to realize.If now the equipment of client is in use, just inevitably equipment is dismantled, cause larger loss and labour cost.
If module suddenly produces severely subnormal or deadlock in running in addition, because of time compole short, relevant diagnostic message can not be captured in time, and needs again to test reproduction, can cause the waste of time and resource equally.
So there is following shortcoming in prior art:
If 1. associated serial equipment is unavailable, need to carry out physical removal to equipment, cost is larger;
2. can not preserve diagnostic message in time, often need again to reappear, waste resource;
3. cause damage to client in the large-scale application stage.
Summary of the invention
The invention provides a kind of remote diagnosis method of wireless communication module, device and system, be intended to solve wireless communication module failure diagnosis in prior art not in time or be difficult to obtain the problem of failure diagnosis information.
For realizing above object, the invention provides a kind of remote diagnosis method of wireless communication module, comprising following steps:
Real-time diagnosis module running status generates diagnostic message, and classification preserves the diagnostic message of module in FLASH memory;
Reach when imposing a condition, compress described diagnostic message and upload to high in the clouds by wireless network;
Receive the diagnostic instruction that high in the clouds generates according to run time diagnostic message.
Further, described diagnostic message comprises the DUMP information of preserving before module crashes.
Further, described in impose a condition into, when reaching preset time threshold, the diagnostic message of transmission module on high in the clouds; Or when reaching default file size, the diagnostic message of transmission module on high in the clouds.
Further, generate diagnostic message in real-time diagnosis module running status, and classification preserve the diagnostic message of module in FLASH memory before also comprise step: receive note or serial equipment and functional diagnosis parameter to module setting be set.
Further, described diagnostic message is carried out classification preserve according to network, data service, note, phone.
Further, also step is comprised after receiving the diagnostic instruction that high in the clouds generates according to run time diagnostic message: execution diagnostic instruction to high in the clouds execution result back.
And for realizing above object, the present invention also provides a kind of tele-diagnostic device of wireless communication module, comprises:
Diagnosis unit, generates diagnostic message for real-time diagnosis module running status, and classification preserves the diagnostic message of module in FLASH memory;
Transmitting element, for reach impose a condition time, compress described diagnostic message and upload to high in the clouds by wireless network;
Receiving element, for receiving the diagnostic instruction that high in the clouds generates according to run time diagnostic message.
Further, also comprise: parameter setting unit, functional diagnosis parameter to module setting is set for receiving note or serial equipment.
Further, also comprise: feedback unit, for performing diagnostic instruction and to high in the clouds execution result back.
Further, described diagnostic message comprises the DUMP information of preserving before module crashes.
And for realizing above object, the present invention also provides a kind of remote diagnosis system of wireless communication module, comprises: cloud server, wireless communication module;
Described wireless communication module real-time diagnosis also obtains diagnostic message, and provisional classifications preserves described diagnostic message in FLASH memory; When meeting when imposing a condition, diagnostic message is uploaded in cloud server by wireless communication module; Described cloud server generates diagnostic instruction according to diagnostic message and is sent to wireless communication module; Wireless communication module performs described diagnostic instruction and to cloud server execution result back.
Further, also comprise note or serial equipment, for arranging the functional diagnosis parameter of wireless communication module.
Further, described diagnostic message comprises the DUMP information of preserving before module crashes.
The remote diagnosis method of wireless communication module that the present invention realizes, device and system, by the running state information of real-time diagnosis wireless communication module, and running state information is transferred to high in the clouds, failure diagnosis is carried out by the abnormal information of high in the clouds to the wireless communication module obtained, and generate the instruction solving corresponding fault, solve the problem of the acquisition diagnostic message difficulty occurred in the actual use of module.
Accompanying drawing explanation
The remote diagnosis method schematic flow sheet of the wireless communication module that Fig. 1 provides for the embodiment of the present invention one;
The remote diagnosis method schematic flow sheet of the wireless communication module that Fig. 2 provides for the embodiment of the present invention two;
The tele-diagnostic device structural representation of the wireless communication module that Fig. 3 provides for the embodiment of the present invention three;
The tele-diagnostic device structural representation of the wireless communication module that Fig. 4 provides for the embodiment of the present invention four;
The remote diagnosis system structural representation of the wireless communication module that Fig. 5 provides for the embodiment of the present invention five;
Fig. 6 is the schematic diagram of remote diagnosis of the present invention.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Embodiment one
With reference to figure 1, the embodiment of the present invention one provides a kind of remote diagnosis method of wireless communication module, comprises following steps:
S101, real-time diagnosis module running status generates diagnostic message, and classification preserves the diagnostic message of module in FLASH memory;
Concrete, described running status comprises the network connection state, serial device state, data service state etc. of wireless communication module, real-time diagnosis the running state information of collecting wireless communication module forms diagnostic message, carries out classification to described diagnostic message according to network, data service, note, phone etc. and is also temporarily stored in FLASH memory.
S102, reaches when imposing a condition, compresses described diagnostic message and upload to high in the clouds by wireless network;
Concrete, when the data volume of described diagnostic message reaches the size of setting, or when the acquisition time of described diagnostic message reaches setting duration, or during to the time point set, wireless communication module compresses described diagnostic message and uploads to high in the clouds, and described high in the clouds refers to cloud server.Certainly, also described imposing a condition can be set as uploading in real time.
Cloud server can be analyzed the diagnostic message that wireless communication module is uploaded, and then forms diagnostic instruction.The various misoperation information of wireless communication module are comprised, the dump information such as such as crashed, Network Abnormal etc. in described diagnostic message.
S103, receives the diagnostic instruction that high in the clouds generates according to run time diagnostic message.
Concrete, wireless communication module receives the diagnostic instruction that high in the clouds generates, and performs described diagnostic instruction.High in the clouds sends diagnostic instruction as required, inquires about the state information that some are common, and what upload as current is the information that network is relevant, then send the value of instructions query network state and key variables; If what need acquisition is UART serial device state, data service state etc., after module receives the diagnostic instruction on backstage, perform relevant operation, and return diagnostic result to background server.
The remote diagnosis method of the wireless communication module more than realized, undertaken analyzing and diagnosing by the real-time diagnosis information of module being preserved and uploading to high in the clouds, not only can get all abnormal informations that module is run, also do not need to carry out physical removal to module, by completing the acquisition of diagnostic message in the air, efficiently convenient.
Embodiment two
With reference to figure 2, the embodiment of the present invention two provides a kind of remote diagnosis method of wireless communication module, comprises following steps:
S201, receives note or serial equipment arranges the functional diagnosis parameter set module;
Concrete, wireless communication module can pass through note or serial device (UART, etc. USB) diagnostic function parameter is set, as whether enabled the IP and port etc. of diagnostic function, the time threshold automatically uploaded and size threshold value, the stored type of guarantor, cloud server.
S202, real-time diagnosis module running status generates diagnostic message, and classification preserves the diagnostic message of module in FLASH memory;
S203, reaches when imposing a condition, compresses described diagnostic message and upload to high in the clouds by wireless network;
S204, receives the diagnostic instruction that high in the clouds generates according to run time diagnostic message.
S205, performs diagnostic instruction to high in the clouds execution result back.
Concrete, the diagnostic instruction of execution as inquired about current network state, some information that the state of serial device etc. are common.Then execution result is fed back to cloud server, these feedback result beyond the clouds server are preserved, and for successive projects, teacher analyzes.
The remote diagnosis method of the wireless communication module more than realized, by note or serial device, the functional diagnosis parameter to wireless communication module sets, very convenient, and undertaken analyzing and diagnosing by the real-time diagnosis information of module is preserved and uploaded to high in the clouds, efficiently convenient.
Embodiment three
With reference to figure 3, the embodiment of the present invention three provides a kind of tele-diagnostic device of wireless communication module, comprises: diagnosis unit 10, transmitting element 20, receiving element 30.
Diagnosis unit 10, generates diagnostic message for real-time diagnosis module running status, and classification preserves the diagnostic message of module in FLASH memory.
Concrete, described running status comprises the network connection state, serial device state, data service state etc. of wireless communication module, diagnosis unit 10 real-time diagnosis the running state information of collecting wireless communication module forms diagnostic message, carries out classification to described diagnostic message according to network, data service, note, phone etc. and is also temporarily stored in FLASH memory.
Transmitting element 20, for reach impose a condition time, compress described diagnostic message and upload to high in the clouds by wireless network;
Concrete, when the data volume of described diagnostic message reaches the size of setting, or when the acquisition time of described diagnostic message reaches setting duration, or during to the time point set, transmitting element 20 compresses described diagnostic message and uploads to high in the clouds, and described high in the clouds refers to cloud server.Certainly, also described imposing a condition can be set as uploading in real time.
Cloud server can be analyzed the diagnostic message that wireless communication module is uploaded, and then forms diagnostic instruction.The various misoperation information of wireless communication module are comprised, the dump information such as such as crashed, Network Abnormal etc. in described diagnostic message.
Receiving element 30, for receiving the diagnostic instruction that high in the clouds generates according to run time diagnostic message.
Concrete, receiving element 30 receives the diagnostic instruction that high in the clouds generates, and performs described diagnostic instruction.High in the clouds sends diagnostic instruction as required, inquires about the state information that some are common, and what upload as current is the information that network is relevant, then send the value of instructions query network state and key variables; If what need acquisition is UART serial device state, data service state etc., after module receives the diagnostic instruction on backstage, perform relevant operation, and return diagnostic result to background server.
The tele-diagnostic device of the wireless communication module more than realized, undertaken analyzing and diagnosing by the real-time diagnosis information of module being preserved and uploading to high in the clouds, not only can get all abnormal informations that module is run, also do not need to carry out physical removal to module, by completing the acquisition of diagnostic message in the air, efficiently convenient.
Embodiment four
With reference to figure 4, the tele-diagnostic device of a kind of wireless communication module that the embodiment of the present invention four provides, comprises: diagnosis unit 10, transmitting element 20, receiving element 30, parameter setting unit 40, feedback unit 50.
Parameter setting unit 40, arranges functional diagnosis parameter to module setting for receiving note or serial equipment.
Concrete, parameter setting unit 40 receives from note or serial device (UART, etc. USB) whether the diagnostic function parameter arranged, as enabled diagnostic function, the time threshold automatically uploaded and size threshold value, the stored type of guarantor, the IP of cloud server and port etc.
Diagnosis unit 10, generates diagnostic message for real-time diagnosis module running status, and classification preserves the diagnostic message of module in FLASH memory;
Transmitting element 20, for reach impose a condition time, compress described diagnostic message and upload to high in the clouds by wireless network;
Receiving element 30, for receiving the diagnostic instruction that high in the clouds generates according to run time diagnostic message.
Feedback unit 50, for performing diagnostic instruction and to high in the clouds execution result back.
Concrete, the diagnostic instruction of execution as inquired about current network state, some information that the state of serial device etc. are common.Execution result is fed back to cloud server by feedback unit 50, and these feedback result beyond the clouds server are preserved, and for successive projects, teacher analyzes.
The tele-diagnostic device of the wireless communication module more than realized, by note or serial device, the functional diagnosis parameter to wireless communication module sets, very convenient, and undertaken analyzing and diagnosing by the real-time diagnosis information of module is preserved and uploaded to high in the clouds, efficiently convenient.
Embodiment five
Shown in figure 5 and Fig. 6, the remote diagnosis system of a kind of wireless communication module that the embodiment of the present invention five provides, comprises: cloud server, wireless communication module; Note or serial equipment.Note or serial equipment are for arranging the functional diagnosis parameter of wireless communication module.Described wireless communication module real-time diagnosis also obtains diagnostic message, and the described diagnostic message of interim preservation is in FLASH memory; When meeting when imposing a condition, diagnostic message is uploaded in cloud server by wireless communication module; Described cloud server generates diagnostic instruction according to institute's diagnostic message and is sent to wireless communication module; Wireless communication module performs described diagnostic instruction and to cloud server execution result back.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can control to be correlated with by program completes, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
Above with reference to the accompanying drawings of the preferred embodiments of the present invention, not thereby limit to interest field of the present invention.Those skilled in the art do not depart from the scope and spirit of the present invention, and multiple flexible program can be had to realize the present invention, and the feature such as an embodiment can be used for another embodiment and obtains another embodiment.All use do within technical conceive of the present invention any amendment, equivalently replace and improve, all should within interest field of the present invention.