Summary of the invention
Purpose of the present invention is exactly the defective that exists in traditional radio communication long distance control system test process in order to overcome, a kind of simulator apparatus 4 and method that is used for testing remote communication monitoring system is provided, this device can be simulated various communication modes, comprise communication modes such as note, dialing number biography, TCP/IP, also have advantages such as the testing cost of saving, raising testing efficiency.The present invention adopts a kind of method that is used for testing remote communication monitoring system, the present invention need not to place wireless communication module 3 in near-end Surveillance center 2 and remote monitoring equipment 1 place, and uncertain factor such as the obstruction that effectively exists in the analog communication network, time-delay, interference, the stability of autotelic testing wireless communication long distance control system, reliability and robustness etc.
Realization is used for the simulator apparatus 4 of testing remote communication monitoring system, mainly form by microprocessor, serial line interface, button, display screen, as shown in Figure 3, microprocessor links to each other with watch-dog 1 with Surveillance center 2 respectively by the dual serial interface, button, display screen all link to each other with microprocessor respectively, select uncertain factors such as obstruction that the simulation practical wireless communication network occurs, time-delay, interference by button, Surveillance center 2 or watch-dog 1 are carried out autotelic test.Display screen can be real-time demonstration current device operating state, briefly show the data of current transmission also can show data such as obstruction, time-delay, interference.
A kind of method that is used for testing remote communication monitoring system, carry out according to the following steps: the microprocessor in (1) simulator apparatus 4 receives the data that Surveillance center 2 sends over by serial line interface, microprocessor analog wireless communication module 3 " deception " Surveillance center 2, reply corresponding response for Surveillance center 2, if specifically be exactly data just to the setting or the status command of wireless communication module 3, only need to reply corresponding response instruction and give Surveillance center 2; If data are to send to watch-dog 1, at first reply corresponding response instruction and give Surveillance center 2, then data are unpacked, organize bag again according to the form of watch-dog 1 needs, send to watch-dog 1 then; (2) microprocessor in the simulator apparatus 4 receives the data that watch-dog 1 sends over by another serial line interface, microprocessor analog wireless communication module 3 " deception " watch-dog 1, reply corresponding response for watch-dog 1, if specifically be exactly data just to the setting or the status command of wireless communication module 3, only need to reply corresponding response instruction and give watch-dog 1; If data are to send to Surveillance center 2, at first reply corresponding response instruction and give watch-dog 1, then data are unpacked, organize bag again according to the form of Surveillance center's 2 needs, send to Surveillance center 2 then.
In the test process of reality, can simulate uncertain factors such as obstruction that practical wireless communication network occurs, time-delay, interference, Surveillance center 2 or watch-dog 1 are carried out autotelic test.These situations can be selected by the mode of the button in the simulator apparatus 4, can select wherein a kind of, two kinds or three kinds of uncertain factors arbitrarily, can also specifically select how many bar data of obstruction, time-delay how long to send again, whether need data are carried out scrambling etc., the radio communication long distance control system is tested.
Display screen in the simulator apparatus 4 can be real-time the display device current working state, for example data transmit status, idle condition, the data that also can briefly show current transmission, can also show data such as obstruction, time-delay, interference, for example stop up how many bar data at present, need how many transmissions again of time-delay, whether need data are carried out scrambling etc., be convenient to the tester and analyze.
The present invention need not to place wireless communication module 3 in near-end Surveillance center 2 and remote monitoring equipment 1 place, therefore can not produce the test communications expense; The present invention breaks away from cordless communication network, can not produce uncertain factors such as the obstruction that exists in the practical wireless communication network, time-delay, interference, can effectively improve testing efficiency; The present invention also can effectively simulate uncertain factors such as the obstruction that exists in the practical wireless communication network, time-delay, interference, the stability of autotelic testing wireless communication long distance control system, reliability and robustness etc.
Embodiment
The present invention can realize by following measure:
Realization is used for the simulator apparatus 4 of testing remote communication monitoring system, mainly form by microprocessor, serial line interface, button, display screen, as shown in Figure 3, microprocessor links to each other with watch-dog 1 with Surveillance center 2 respectively by the dual serial interface, button, display screen all link to each other with microprocessor respectively, select uncertain factors such as obstruction that the simulation practical wireless communication network occurs, time-delay, interference by button, Surveillance center 2 or watch-dog 1 are carried out autotelic test.Display screen can be real-time demonstration current device operating state, briefly show the data of current transmission also can show data such as obstruction, time-delay, interference.
A kind of method that is used for testing remote communication monitoring system, carry out according to the following steps: the microprocessor in (1) simulator apparatus 4 receives the data that Surveillance center 2 sends over by serial line interface, microprocessor analog wireless communication module 3 " deception " Surveillance center 2, reply corresponding response for Surveillance center 2, if specifically be exactly data just to the setting or the status command of wireless communication module 3, only need to reply corresponding response instruction and give Surveillance center 2; If data are to send to watch-dog 1, at first reply corresponding response instruction and give Surveillance center 2, then data are unpacked, organize bag again according to the form of watch-dog 1 needs, send to watch-dog 1 then; (2) microprocessor in the simulator apparatus 4 receives the data that watch-dog 1 sends over by another serial line interface, microprocessor analog wireless communication module 3 " deception " watch-dog 1, reply corresponding response for watch-dog 1, if specifically be exactly data just to the setting or the status command of wireless communication module 3, only need to reply corresponding response instruction and give watch-dog 1; If data are to send to Surveillance center 2, at first reply corresponding response instruction and give watch-dog 1, then data are unpacked, organize bag again according to the form of Surveillance center's 2 needs, send to Surveillance center 2 then.
In the test process of reality, can simulate uncertain factors such as obstruction that practical wireless communication network occurs, time-delay, interference, Surveillance center 2 or watch-dog 1 are carried out autotelic test.These situations can be selected by the mode of the button in the simulator apparatus 4, can select wherein a kind of, two kinds or three kinds of uncertain factors arbitrarily, can also specifically select how many bar data of obstruction, time-delay how long to send again, whether need data are carried out scrambling etc., the radio communication long distance control system is tested.
Display screen in the simulator apparatus 4 can be real-time display simulation apparatus 4 current working state, for example data transmit status, idle condition, the also concise and to the point data of display simulation apparatus 4 current transmissions, can also show data such as obstruction, time-delay, interference, for example stop up how many bar data at present, need how many transmissions again of time-delay, whether need data are carried out scrambling etc., be convenient to the tester and analyze.
Technical scheme of the present invention is " cheating-receive-unpack-pack-send " mode.To introduce the employing mode of " cheating-receive-unpack-pack-send " below in detail and describe telecommunication simulator apparatus 4 working methods.
During test, (1) at first connects Surveillance center 2 and watch-dog 1 usefulness telecommunication simulator apparatus 4, as shown in Figure 2, and these modules of electrifying startup or equipment then.(2) telecommunication simulator apparatus 4 is selected test-types by the button in the simulator apparatus 4, test-types will show at the display screen in the simulator apparatus 4, and test-types comprises functional test, pressure test, reliability testing, robustness testing etc.(3) begin to select uncertain factors such as obstruction, time-delay, interference then by the button in the simulator apparatus 4, wherein functional test and pressure test need not to select parameters such as obstruction, time-delay, interference, and reliability testing, robustness testing need be selected parameters such as obstruction, time-delay, interference.(4) can begin to enter corresponding test after choosing above type or parameter.
In the test process, telecommunication simulator apparatus 4 takes the mode of " deception " and Surveillance center 2 and watch-dog 1 to connect, and what make Surveillance center 2 and watch-dog 1 think to be connected to itself is a wireless communication module 3." deception " mode is exactly that telecommunication simulator apparatus 4 receives after some initialization that Surveillance center 2 and watch-dog 1 send are provided with order or status command specifically, giving them responds accordingly, Surveillance center 2 and watch-dog 1 will think that " wireless communication module 3 " online with it is working properly after receiving correct response, are actually the result of telecommunication simulator apparatus 4 " deception ".After telecommunication simulator apparatus 4 receives the data that a port sends over, send corresponding response to this port immediately, will unpack data then, analyze data content, solve valid data, data format according to the another port needs is repacked, and the data of packing are sent to the another port.If need uncertain factors such as obstruction, time-delay, interference in test process, telecommunication simulator apparatus 4 will be handled accordingly.If specifically obstruction is arranged exactly, will intermittently give transmitting terminal correctly responds, intermittently give the response that transmitting terminal can't be handled, preserve according to the obstruction data number that is provided with is temporary transient for the data that given correct response, after reaching this number, begin to send to receiving terminal; If time-delay is arranged, will be after the data that receive the transmitting terminal transmission, the time-delay official hour gives transmitting terminal again and correctly responds, and then sends the data to receiving terminal; If interference is arranged, just, valid data are carried out scrambling, and then send the data to receiving terminal when data are repacked.
Illustrate " cheating-receive-unpack-pack-send " mode below, the Q2403A wireless communication module of producing with WAVECOM company 3 is an example, and is that example describes in detail in the short message communication mode:
Mode |
Receive data |
Send data |
Deception |
AT+CNMI=2,2,0,0,0 |
OK |
Mode |
Receive data |
Send data |
Receive |
AT+CMGS=028\r0001000D91683179117117F6 00080E7F167A0B8BBE7F6E6210529F0021 |
+CMGS:79 OK |
Unpack |
0E7F167A0B8BBE7F6E6210529F0021 |
|
Packing |
0BA13179117117F7000840112051649520 0E7F167A0B8BBE7F6E6210529F0021 |
|
Send |
+CMT:,33\r0891683108200705F004 0BA13179117117F7000840112051649520 0E7F167A0B8BBE7F6E6210529F0021 |
|
A kind of simulator apparatus 4 and method that is used for testing remote communication monitoring system, need not to place wireless communication module 3 in Surveillance center 2 and watch-dog 1 place, and can effectively simulate uncertain factors such as the obstruction that exists in the practical wireless communication network, time-delay, interference, the stability of autotelic testing wireless communication long distance control system, reliability and robustness etc.This device has advantages such as the testing cost of saving, raising testing efficiency.