Summary of the invention
The objective of the invention is to overcome the shortcoming and defect of above-mentioned prior art, the real-time collecting method of remote data in the radio frequency stretch system is provided, this method can solve the problem that proximal device can't be monitored the remote equipment signal intelligence effectively, effectively control by this method, can make remote equipment extract the bottom data of a period of time, be reported in the proximal device, thereby, the engineer can analyze the far-end communication conditions in the control machine room, and do not need to the scene of remote equipment to analyze, improve operating efficiency, reduced labour intensity.
Purpose of the present invention is achieved through the following technical solutions: the real-time collecting method of remote data in this radio frequency stretch system, and its step comprises:
(1) according to the data analysis demand, the proximal device monitoring host computer sends instruction by link with HDLC, extracts the downlink command of certain remote equipment real time data;
(2) after the remote monitoring main frame receives the instruction of proximal device monitoring host computer, resolve instruction, judge whether to belong to instruction at equipment at the corresponding levels; If, the instruction of then carrying out next step parsing and preparing triggering bottom data processing apparatus;
(3) the remote monitoring main frame is according to the command information of resolving, the bottom data processing apparatus is sent triggering command, control bottom data processing apparatus grasps the link data of a period and stores, the length of described period is decided according to the performance and the storage space limitations of bottom data processing apparatus, this moment segment limit can be several milliseconds to a few tens of milliseconds;
(4) after the bottom data processing apparatus grasps ED as requested, by the communication link between bottom data processing apparatus and the remote equipment monitoring host computer, send flag bit, show that grasping data finishes, and do not have and lose preservation, wait for that the remote equipment monitoring host computer reads;
(5) after the remote equipment monitoring host computer is polled to the flag bit that the bottom data processing apparatus sends, wait for remote monitoring main frame free time, and trigger the bottom data processing apparatus and send the data of storage to the remote monitoring main frame in proper order;
(6) the remote monitoring main frame is according to the requirement that begins to send instruction, and sequential read is got the data of corresponding data, triggers and reads the flag bit that finishes, and the bottom data processing apparatus empties memory space according to this flag bit, waits for extracting process next time;
(7) the remote monitoring main frame carries out compressed encoding with the data that receive according to the host-host protocol between far-end and the near-end;
(8) the remote monitoring main frame with data compression coding good after, give the near-end monitoring host computer by the HDLC channel transfer stipulated in the CPRI agreement, and do not influence normal link data communication;
(9) the near-end monitoring host computer extracts the sampled data of the remote monitoring main frame transmission that receives, and storage after the decoding that decompresses offers the backstage with bin file form or text file format and analyzes.
Must realize the present invention for better, the triggering command that the described remote monitoring main frame of above-mentioned steps (3) sends to the bottom data processing apparatus comprises triggering and enables, grasps data number or time range, the triggering that can also comprise special data is grasped and storage, and the type of described special data decides according to the agreement between remote monitoring main frame and the bottom data processing apparatus.
The transport process of the data of the described bottom data processing apparatus storage of above-mentioned steps (5) can carry out continuously or be interrupted and carry out, and is triggered and control by the remote equipment monitoring host computer fully.
The present invention compared with prior art has following advantage and beneficial effect:
(1) can solve the problem that proximal device can't be monitored the remote equipment signal intelligence effectively, effectively control by this method, can make remote equipment extract the bottom data of a period of time, be reported in the proximal device, thereby, the engineer can analyze the far-end communication conditions in the control machine room, and does not need to analyze to the scene of remote equipment.
(2) the present invention is according to the thinking that trigger-extract-reports-return, proximal device control remote equipment has been proposed, extract adc data by far-end bottom layer treatment device again, report the technical scheme of proximal device again, overcome because bottom data processing apparatus memory space is effective, data rate is high, flow causes data to grasp difficulty, the difficult problem of real-time processing greatly, under the prerequisite that does not influence proper communication, effectively solved a difficult problem that the big data on flows of far-end is sent to proximal device.
(3) realization of the present invention, can solve engineers and bear the problem that heavy tester remote equipment scene in the far-drawing system is tested, engineers can be in the machine room of proximal device, directly extract the real time data of remote equipment, on background PC computer, carry out analyzing and processing, in time grasp the communication conditions of remote equipment, greatly improved engineer's operating efficiency, reduce labour intensity and maintenance cost, had very big using value.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment one
As shown in Figure 1, the real-time collecting method of remote data in this radio frequency stretch system, its job step comprises:
(1) according to the data analysis demand, the proximal device monitoring host computer sends instruction by link HDLC, extracts the downlink command of certain remote equipment real time data;
(2) after the remote monitoring main frame receives the instruction of proximal device monitoring host computer, resolve instruction, judge whether to belong to instruction at equipment at the corresponding levels; If, the instruction of then carrying out next step parsing and preparing triggering bottom data processing apparatus;
(3) the remote monitoring main frame is according to the command information of resolving, the bottom data processing apparatus is sent triggering command, control bottom data processing apparatus grasps the link data of a period and stores, the length of described period is decided according to the performance and the storage space limitations of bottom data processing apparatus, can be several milliseconds to a few tens of milliseconds,, can increase memory time according to demand if but memory space is enough on the bottom data processor piece;
In this process, the triggering command that described remote monitoring main frame sends to the bottom data processing apparatus comprises triggering and enables, grasps data number or time range, the triggering that can also comprise special data is grasped and storage, the type of described special data decides according to the agreement between remote monitoring main frame and the bottom data processing apparatus, for example can sample and store a certain signal specific data, some triggering signal etc. of perhaps sampling can be set sampling according to engineer's needs and trigger;
(4) after the bottom data processing apparatus grasps ED as requested, by the communication link between bottom data processing apparatus and the remote equipment monitoring host computer, send flag bit, show that grasping data finishes, and do not have and lose preservation, wait for that the remote equipment monitoring host computer reads;
(5) after the remote equipment monitoring host computer is polled to the flag bit that the bottom data processing apparatus sends, wait for remote monitoring main frame free time, and trigger its bottom data processing apparatus and send the data of storage to the remote monitoring main frame in proper order;
Wherein, the transport process of the data of described bottom data processing apparatus storage can carry out continuously or be interrupted and carry out, and is sent out and is controlled by the remote equipment monitoring host computer fully;
(6) the remote monitoring main frame is according to the requirement that begins to send instruction, and sequential read is got the data of corresponding data, triggers and reads the flag bit that finishes, and the bottom data processing apparatus empties memory space according to this flag bit, waits for extracting process next time;
(7) the remote monitoring main frame carries out compressed encoding with the data that receive according to the host-host protocol between far-end and the near-end;
(8) the remote monitoring main frame with data compression coding after, give the near-end monitoring host computer by the HDLC channel transfer stipulated in the CPRI agreement, and do not influence normal link data communication;
(9) the near-end monitoring host computer extracts the sampled data of the remote monitoring main frame transmission that receives, and the decoding back of decompressing for example offers the backstage with bin file form or text file format and analyzes with certain stored in file format.
As mentioned above, just can realize the present invention preferably, the foregoing description is preferred embodiment of the present invention only, is not to be used for limiting practical range of the present invention; Be that all equalizations of doing according to content of the present invention change and modification, all contained by claim of the present invention scope required for protection.