Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein identical from start to finish or similar label is represented identical or similar elements or the element with identical or similar functions.Below by the embodiment that is described with reference to the drawings is exemplary, only is used to explain the present invention, and can not be interpreted as limitation of the present invention.
In order to realize the present invention's purpose, the invention discloses the method for a kind of data acquisition and storage, Fig. 1 shows the FB(flow block) of this method, and this method comprises the steps:
S101: receive test data from antenna.
In conjunction with shown in Figure 2, CMMB coverage test system is divided into peripheral hardware and computer (PC) two parts.Peripheral hardware partly is used for linking to each other with antenna and is used for the acceptance test signal, comprises CMMB test dash receiver, portable frequency spectrum instrument and GPS receiver.Specifically, CMMB test dash receiver is used for the video information and the mistake package informatin of the test signal of reception antenna emission.The portable frequency spectrum instrument is used for the field intensity information of acceptance test signal.The GPS receiver is used for the latitude and longitude information of acceptance test signal.
S102: test data is gathered by USB interface, gpib interface, VISA interface and serial ports.
PC part in the CMMB coverage test system can realize test data is gathered and stored.Specifically, wrap data by the USB interface collection from the video data and the mistake of CMMB beta version.
Traditional data-interface generally adopts pci bus or RS-232 universal serial bus.Pci bus has higher transmission rate, can reach 132Mbit/s, also can plug and play, but their expansion slot is limited and the plug inconvenient.The RS-232 universal serial bus connects more convenient, but transmission rate is too slow, is not easy for high-speed transferring data and transmits mass data.USB (Universal Serial BUS, USB) is a kind of computer interface, is widely used between main frame and various peripheral hardware and carries out transfer of data.USB2.0 is the 3rd version of usb bus agreement, and theoretical maximum speed reaches 480Mbps.Except transmission speed was fast, USB2.0 also had numerous advantages, as had unified the connector of various interface equipment and used the joint model of single special use, can connect a plurality of interface equipments etc.The most outstanding advantage is the characteristic with " hot plug ", can plug and play, and can detect resource, dispense with outer connecting power with configuration-system automatically, this has just concentrated the advantage of PCI and RS-232 universal serial bus, therefore, it is fit closely the USB interface technology being applied to data acquisition.
In the present embodiment, USB interface adopts the CY7C68013A in the Cypress EZ-USB FX2 of the company series.This chip comprises a FIFO memory and the general programmable interface (GPIF) of RAM, 512 byte Scratch RAM, 4kB on one 8051 processor, a serial interface engine (SIE), USB transceiver, the 8kB sheet.Intelligent SIE among the EZ-USB FX2 can handle most of USB2.0 agreement, make microcontroller can be absorbed in application function, thereby reduced the development time, the compatibility of having guaranteed.
The bsp driver that CMMB coverage test system adopts Cypress company to provide comes and hardware carries out alternately, and makes modification as required, and the hardware driving class is encapsulated.Fig. 3 drives the level schematic diagram for USB.
The transmission direction of usb protocol predetermined data has two kinds, IN and OUT.Usb protocol is a kind of master slave relation agreement, has master slave relation between two USB device of mutual communication, so transmission direction is from the angle of main equipment.In simple terms, in usb data communication, transfer of data is to main equipment, and current transmission direction is IN; If data spread out of from main equipment, so current transmission direction then is OUT.
USB interface is the bus protocol based on the token package, does not take interrupt vector, DMA or any input and output resource of any PC.Therefore, must could reach the purpose of communicating by letter with ancillary equipment by rigorous agreement.In usb protocol, the type of data packets for transmission defines with the particular code that is referred to as PacketIDs (PID).Have four kinds of PID types in the USB bag, comprise token, data, shake hands and four kinds of package signs of specific type identifier PID.Table 1 has been listed the type of data packet of USB2.0.
Table 1
The PID type |
The PID title |
Token |
IN,OUT,SOF,SETUP |
Data |
DATA0,DATA1,DATA2,MDATA |
Shake hands |
ACK,NAK,STALL,NYET |
Specific type |
PRE,ERR,SPLIT,PING |
When the full speed pattern, each OUT transmission sends data OUT bag, does not consider whether peripheral hardware is in " doing " state and can not receives data.At the situation of this waste bandwidth, when fast mode, recommend to use new PID type " PING ".Main frame sends short " PING " token to the OUT end points earlier, inquires whether current peripheral hardware has data space to come the store data bag, and only when external equipment was answered " ARK ", main frame just sent than the long data bag.
The SETUP token only is used for control transmission.It is preceding 8 bytes in the packet.By these 8 bytes, peripheral hardware is deciphered the device request of main frame.
The SOF token is represented the beginning of a USB frame.
ARK (Acknowledge) represents that successfully, Data Receiving is errorless.
NAK (Negative Acknowledge) expression is busy, retransmits.This is not to make mistakes, and the USB peripheral hardware does not have answer list that mistake is shown.
STALL represents unknown error, and peripheral hardware fails to understand the device request that main frame sends, and might be that peripheral hardware brings out mistake, or host access and non-existent resource.Usb protocol provides from the method for STALL recovering state.
NYET (Not Yet) is similar to ACK, and the expression Data Receiving is errorless and point out that peripheral hardware also is not ready to receive next packet.Only be used at fast mode.
PRE (Special Preamble) package has PID typonym PRE alone, and it is only applicable to main frame and wants the situation sent out when high-speed transfer becomes low speed transmissions.Before just main frame is sent the low speed package and low-speed device is communicated by letter for the lower end port, the PRE package that must send earlier.
It is the part of partition data transaction (Split Transaction) that the SPILIT package has defined the token package.In order to use bus time best, USB2.0 main frame and hub can be to send low speed and communication data at full speed at a high speed.
The ERR package only uses when partition data is concluded the business.The USB2.0 hub can use this package and repay a mistake with low speed or data trade at full speed and give main frame.
In this test macro, what the usb data interface communication between test receiver and the personal computer adopted is the SlaveFIFOs pattern, and the USB interface of test receiver is subjected to the control of software on the personal computer as slave unit.
In the usb protocol, transmit data by end points.End points be one can unique identification the part of USB device, it is an end point of main frame and communication between devices stream.A series of separate end points have constituted the USB logical device together.Each logical device has a unique address, and this address is when equipment connects main frame, by host assignment, and each end points in the equipment has unique endpoint number at device interior.This endpoint number is given when device design.Each end points all is a simple tie point, supports that perhaps data flow to equipment, perhaps supports its outflow equipment, and both are unable to have both at one and the same time.The characteristic of an end points has determined the type of the transmission that it and client software carry out.An end points has following characteristic: the bus access frequency requirement of end points, the bus delay of end points require, the endpoint number of the bandwidth requirement of end points, end points, be not that 0 end points is in unknown state before being set up to data transmission direction, the endpoint number of transmission type, end points and the main frame of the maximum length of the requirement of fault processing, bag that end points can receive or send, end points, can not be by host access.
The SlaveFIFOs pattern of CY68013A provides five end points, is respectively EP0, EP2, EP4, EP6 and EP8.EP0 can only be used for control transmission, and other end points then can select to be used for bulk transfer or synchronous transmission.EP0 is a two-way end points unique in these end points, both can transmit the data of IN, also can transmit the OUT data.And other end points can only be configured to a kind of transmission direction, IN or OUT.Except EP0, each end points distributes the FIFO that knows clearly, and the size of FIFO and buffering multiple can be provided with by register, and the attribute that each endpoint attribute and each FIFO correctly be set is vital for the firmware development of usb communication control chip.CMMB coverage test system selects for use EP2 as the bulk transfer end points, transmits CMMB multiplex stream data.
USB interface collecting test data need write firmware code.Specifically, on the CY7C68013 chip, the I/O pin that much is used to control the FIFO read-write being arranged, to the correct configuration of these pins with read, is that successfully to develop the usb communication interface necessary.Among above, mentioned test macro USB transmission means of selecting for use and the end points of selecting for use, promptly adopt the mode of bulk transfer, use end points 2 to transmit data, therefore, from the data flow that the CMMB demodulation chip is exported, should be written among the FIFO that end points 2 had.
Firmware program is exactly to be solidificated in the equipment USB controller internal program memory or the program in the program storage of outside expansion, and firmware program is finished required function in order to help hardware.
In the hardware development of test receiver, USB interface-based transfer of data and control are very important parts.The USB process chip of using in the system, the transfer of data of realization two-forty.
Firmware program helps hardware to finish transfer of data.Therefore develop the key of usb communication and control module, be to write efficient, stable firmware program.
Firmware code under the exploitation EZ-USB FX2 framework generally comprises following three processes: one, initialization comprises the initialization of processor and peripheral circuit; Two, principal function comprises and finishes the code that meets the equipment particular requirement; Three, Interrupt Process comprises the program code of handling various interruptions.
The initialization task that the firmware program of usb communication control chip need be finished in the CMMB coverage test system has: the mode of operation that the USB chip is set; Select suitable end points in order to the transmission data; The related register of configuration end points makes data transmission, operation effectively; Simultaneously, all global variables of initialization.
Fig. 4 shows the flow chart of USB firmware program.
1) power-on reset;
2) all global variables of initialization;
3) interruption being set enables;
4) dispose each critical registers;
5) the self-defined state variable of initialization;
6) judge whether to receive data read request;
When judgement receives data read request, submit the data among the FIFO to; Otherwise continue to judge whether to receive data read request.After the data in submitting FIFO to, repeat to judge that both sides do not receive data read request.
Gather field intensity data by gpib interface and/or VISA interface from the portable frequency spectrum instrument.Gpib interface is the interface of at present the most frequently used intelligent instrument, this socket system is proposed by U.S. Hewlett-Packard Corporation at first, the back is also referred to as IEEE-488 interface or IEC-625 interface by the standard interface that U.S. electric and Electronic Engineering Association (IEEE) and International Electrotechnical Commission (IEC) are accepted as programmable instrument and automatic measuring and controlling system.Use gpib interface, the instrument of the various models that different manufacturers can be produced couples together easily with a passive STD bus, forms various Auto-Test Systems.
VISA (Virtual Instrument Software Architecture) is a senior API (API) that is used for carrying out with various instrument bus communication, is I/O interface software standard and the related specifications general name thereof that alliance of VPP system formulates.The VISA built-in function is a cover function that can conveniently call, core function may command all kinds device wherein, and need not consider the interface type of device.
Test macro uses the collection peripheral hardware of Agilent N9340A hand-hold type RF spectrum analysis instrument as the field intensity data, because frequency spectrograph is a USB interface, does not provide gpib interface, so need operate by the VISA built-in function.Test macro adopts the NI-VISA storehouse of NI company, and control information and data output are encapsulated.Wherein, control information comprises and frequency is set, bandwidth, reference level etc.Data output comprises reads the field intensity value.Concrete encapsulation relation is as shown in table 2.
By the longitude and latitude data of serial ports collection from the GPS receiver.Serial ports is a most frequently used data transmission channel between computer and the external series equipment.When data from CPU through serial ports when sending, byte data is converted to the position of serial; When receiving data, the position of serial is converted into byte data.Serial communication has in the industrial automation field very to be used widely, in some industrial control systems, requires system to have real-time computing usually, the needs that serial ports can satisfy efficient Interrupt Process, multitask and communicate by letter.
Though the GPS receiver on the market has various interface to be connected to the PC end now, portion communicates by serial ports and computer within it.The serial communication flow process comprises:
1) opens serial ports, the serial communication parameter is set.Communications parameter comprises communication terminal slogan and communication format;
2) read/write serial ports, incident and fault processing;
3) close serial ports.
In CMMB coverage test system, the GPS receiver of employing is a HOLUX GR-213 type satellite positioning receiver, need change serial port drive by USB it is operated.
S103: will preserve and playback from the test data of USB interface, gpib interface, VISA interface and serial ports.
The preservation of test data and playback function also are the indispensable functions of general test system.To preserve and playback from the test data of above-mentioned USB interface, gpib interface, VISA interface and serial ports.CMMB coverage test system uses the Access database to preserve data, and manages and operating database by the oledb technology.Test macro can carry out playback operation and test data done to analyze gathering by database to test process.
In conjunction with shown in Figure 2, after finishing above-mentioned data acquisition, test data is carried out analyzing and processing by data analysis module, shows the field intensity and the error code of current location in the GIS module, shows the field intensity of current time and the real-time statistics information of error code in data analysis module.
Data acquisition and storage means that the embodiment of the invention proposes, by collecting test data such as USB interface, tester in conjunction with other writes down the accurate signal parameter again, as frequency spectrograph etc., and with the test data storage and the playback that obtain, carry out the analysis and the reprocessing of data, test job is simple, and is easy to operate.
The embodiment of the invention also discloses a kind of data acquisition and storage device, Fig. 5 shows the structured flowchart of this device.This device 500 comprises receiver module 510, acquisition module 511 and memory module 512.
Receiver module 510 is used to receive the test data from antenna.In conjunction with shown in Figure 2, receiver module 510 comprises CMMB test dash receiver, portable frequency spectrum instrument and GPS receiver.Specifically, CMMB test dash receiver is used for the video information and the mistake package informatin of the test signal of reception antenna emission.The portable frequency spectrum instrument is used for the field intensity information of acceptance test signal.The GPS receiver is used for the latitude and longitude information of acceptance test signal.
Acquisition module 520 is used for test data is gathered by USB interface, gpib interface, VISA interface and serial ports.Acquisition module 520 comprises usb communication unit 521, GPIB/VISA communication unit 522 and serial communication unit 523.Specifically, usb communication unit 521 comprises the USB serial ports, is used to gather video data and wraps data by mistake.
Traditional data-interface generally adopts pci bus or RS-232 universal serial bus.Pci bus has higher transmission rate, can reach 132Mbit/s, also can plug and play, but their expansion slot is limited and the plug inconvenient.The RS-232 universal serial bus connects more convenient, but transmission rate is too slow, is not easy for high-speed transferring data and transmits mass data.USB is a kind of computer interface, is widely used between main frame and various peripheral hardware to carry out transfer of data.USB2.0 is the 3rd version of usb bus agreement, and in issue in 1999, its theoretical maximum speed reached 480Mbps.Except transmission speed was fast, USB2.0 also had numerous advantages, as had unified the connector of various interface equipment and used the joint model of single special use, can connect a plurality of interface equipments etc.The most outstanding advantage is the characteristic with " hot plug ", can plug and play, and can detect resource, dispense with outer connecting power with configuration-system automatically, this has just concentrated the advantage of PCI and RS-232 universal serial bus, therefore, it is fit closely the USB interface technology being applied to data acquisition.
In the present embodiment, USB interface adopts the CY7C68013A in the Cypress EZ-USB FX2 of the company series.This chip comprises a FIFO memory and the general programmable interface (GPIF) of RAM, 512 byte Scratch RAM, 4kB on one 8051 processor, a serial interface engine (SIE), USB transceiver, the 8kB sheet.Intelligent SIE among the EZ-USB FX2 can handle most of USB2.0 agreement, make microcontroller can be absorbed in application function, thereby reduced the development time, the compatibility of having guaranteed.
The bsp driver that CMMB coverage test system adopts Cypress company to provide comes and hardware carries out alternately, and makes modification as required, and the hardware driving class is encapsulated.Fig. 3 drives the level schematic diagram for USB.
The transmission direction of usb protocol predetermined data has two kinds, IN and OUT.Usb protocol is a kind of master slave relation agreement, has master slave relation between two USB device of mutual communication, so transmission direction is from the angle of main equipment.In simple terms, in usb data communication, transfer of data is to main equipment, and current transmission direction is IN; If data spread out of from main equipment, so current transmission direction then is OUT.
USB interface is the bus protocol based on the token package, does not take interrupt vector, DMA or any input and output resource of any PC.Therefore, must could reach the purpose of communicating by letter with ancillary equipment by rigorous agreement.In usb protocol, the type of data packets for transmission defines with the particular code that is referred to as PacketIDs (PID).Have four kinds of PID types in the USB bag, comprise token, data, shake hands and four kinds of package signs of specific type identifier PID.Table 1 has been listed the type of data packet of USB2.0.
When the full speed pattern, each OUT transmission sends data OUT bag, does not consider whether peripheral hardware is in " doing " state and can not receives data.At the situation of this waste bandwidth, when fast mode, recommend to use new PID type " PING ".Main frame sends short " PING " token to the OUT end points earlier, inquires whether current peripheral hardware has data space to come the store data bag, and only when external equipment was answered " ARK ", main frame just sent than the long data bag.
The SETUP token only is used for control transmission.It is preceding 8 bytes in the packet.By these 8 bytes, peripheral hardware is deciphered the device request of main frame.
The SOF token is represented the beginning of a USB frame.
ARK (Acknowledge) represents that successfully, Data Receiving is errorless.
NAK (Negative Acknowledge) expression is busy, retransmits.This is not to make mistakes, and the USB peripheral hardware does not have answer list that mistake is shown.
STALL represents unknown error, and peripheral hardware fails to understand the device request that main frame sends, and might be that peripheral hardware brings out mistake, or host access and non-existent resource.Usb protocol provides from the method for STALL recovering state.
NYET (Not Yet) is similar to ACK, and the expression Data Receiving is errorless and point out that peripheral hardware also is not ready to receive next packet.Only be used at fast mode.
PRE (Special Preamble) package has PID typonym PRE alone, and it is only applicable to main frame and wants the situation sent out when high-speed transfer becomes low speed transmissions.Before just main frame is sent the low speed package and low-speed device is communicated by letter for the lower end port, the PRE package that must send earlier.
It is the part of partition data transaction (Split Transaction) that the SPILIT package has defined the token package.In order to use bus time best, USB2.0 main frame and hub can be to send low speed and communication data at full speed at a high speed.
The ERR package only uses when partition data is concluded the business.The USB2.0 hub can use this package and repay a mistake with low speed or data trade at full speed and give main frame.
In this test macro, what the usb data interface communication between test receiver and the personal computer adopted is the SlaveFIFOs pattern, and the USB interface of test receiver is subjected to the control of software on the personal computer as slave unit.
In the usb protocol, transmit data by end points.End points be one can unique identification the part of USB device, it is an end point of main frame and communication between devices stream.A series of separate end points have constituted the USB logical device together.Each logical device has a unique address, and this address is when equipment connects main frame, by host assignment, and each end points in the equipment has unique endpoint number at device interior.This endpoint number is given when device design.Each end points all is a simple tie point, supports that perhaps data flow to equipment, perhaps supports its outflow equipment, and both are unable to have both at one and the same time.The characteristic of an end points has determined the type of the transmission that it and client software carry out.An end points has following characteristic: the bus access frequency requirement of end points, the bus delay of end points require, the endpoint number of the bandwidth requirement of end points, end points, be not that 0 end points is in unknown state before being set up to data transmission direction, the endpoint number of transmission type, end points and the main frame of the maximum length of the requirement of fault processing, bag that end points can receive or send, end points, can not be by host access.
The SlaveFIFOs pattern of CY68013A provides five end points, is respectively EP0, EP2, EP4, EP6 and EP8.EP0 can only be used for control transmission, and other end points then can select to be used for bulk transfer or synchronous transmission.EP0 is a two-way end points unique in these end points, both can transmit the data of IN, also can transmit the OUT data.And other end points can only be configured to a kind of transmission direction, IN or OUT.Except EP0, each end points distributes the FIFO that knows clearly, and the size of FIFO and buffering multiple can be provided with by register, and the attribute that each endpoint attribute and each FIFO correctly be set is vital for the firmware development of usb communication control chip.CMMB coverage test system selects for use EP2 as the bulk transfer end points, transmits CMMB multiplex stream data.
USB interface collecting test data need write firmware code.Specifically, on the CY7C68013 chip, the I/O pin that much is used to control the FIFO read-write being arranged, to the correct configuration of these pins with read, is that successfully to develop the usb communication interface necessary.Among above, mentioned test macro USB transmission means of selecting for use and the end points of selecting for use, promptly adopt the mode of bulk transfer, use end points 2 to transmit data, therefore, from the data flow that the CMMB demodulation chip is exported, should be written among the FIFO that end points 2 had.
Firmware program is exactly to be solidificated in the equipment USB controller internal program memory or the program in the program storage of outside expansion, and firmware program is finished required function in order to help hardware.
In the hardware development of test receiver, USB interface-based transfer of data and control are very important parts.The USB process chip of using in the system, the transfer of data of realization two-forty.
Firmware program helps hardware to finish transfer of data.Therefore develop the key of usb communication and control module, be to write efficient, stable firmware program.
Firmware code under the exploitation EZ-USB FX2 framework generally comprises following three processes: one, initialization comprises the initialization of processor and peripheral circuit; Two, principal function comprises and finishes the code that meets the equipment particular requirement; Three, Interrupt Process comprises the program code of handling various interruptions.
The initialization task that the firmware program of usb communication control chip need be finished in the CMMB coverage test system has: the mode of operation that the USB chip is set; Select suitable end points in order to the transmission data; The related register of configuration end points makes data transmission, operation effectively; Simultaneously, all global variables of initialization.
Fig. 4 shows the flow chart of USB firmware program.
7) power-on reset;
8) all global variables of initialization;
9) interruption being set enables;
10) dispose each critical registers;
11) the self-defined state variable of initialization;
12) judge whether to receive data read request;
When judgement receives data read request, submit the data among the FIFO to; Otherwise continue to judge whether to receive data read request.After the data in submitting FIFO to, repeat to judge that both sides do not receive data read request.
GPIB/VISA communication unit 522 comprises gpib interface and/or VISA interface, is used to gather the field intensity data.
By the field intensity data of GPIB/VISA communication unit 522 collections from the portable frequency spectrum instrument.Gpib interface is the interface of at present the most frequently used intelligent instrument, this socket system is proposed by U.S. Hewlett-Packard Corporation at first, the back is also referred to as IEEE-488 interface or IEC-625 interface by the standard interface that U.S. electric and Electronic Engineering Association (IEEE) and International Electrotechnical Commission (IEC) are accepted as programmable instrument and automatic measuring and controlling system.Use gpib interface, the instrument of the various models that different manufacturers can be produced couples together easily with a passive STD bus, forms various Auto-Test Systems.
VISA (Virtual Instrument Software Architecture) is a senior API (API) that is used for carrying out with various instrument bus communication, is I/O interface software standard and the related specifications general name thereof that alliance of VPP system formulates.The VISA built-in function is a cover function that can conveniently call, core function may command all kinds device wherein, and need not consider the interface type of device.
Test macro uses the collection peripheral hardware of Agilent N9340A hand-hold type RF spectrum analysis instrument as the field intensity data, because frequency spectrograph is a USB interface, does not provide gpib interface, so need operate by the VISA built-in function.Test macro adopts the NI-VISA storehouse of NI company, and control information and data output are encapsulated.Wherein, control information comprises and frequency is set, bandwidth, reference level etc.Data output comprises reads the field intensity value.Table 2 shows concrete encapsulation relation.
Serial communication unit 523 comprises serial ports, is used to gather the longitude and latitude data.By the longitude and latitude data of serial ports collection from the GPS receiver.Serial ports is a most frequently used data transmission channel between computer and the external series equipment.When data from CPU through serial ports when sending, byte data is converted to the position of serial; When receiving data, the position of serial is converted into byte data.Serial communication has in the industrial automation field very to be used widely, in some industrial control systems, requires system to have real-time computing usually, the needs that serial ports can satisfy efficient Interrupt Process, multitask and communicate by letter.
Though the GPS receiver on the market has various interface to be connected to the PC end now, portion communicates by serial ports and computer within it.The serial communication flow process comprises:
4) open serial ports, the serial communication parameter is set.Communications parameter comprises communication terminal slogan and communication format;
5) read/write serial ports, incident and fault processing;
6) close serial ports.
In CMMB coverage test system, the GPS receiver of employing is a HOLUX GR-213 type satellite positioning receiver, need change serial port drive by USB it is operated.
Memory module 530 will be preserved and playback from the test data of USB interface, gpib interface, VISA interface and serial ports.
The preservation of test data and playback function also are the indispensable functions of general test system.To preserve and playback from the test data of above-mentioned usb communication unit 521, GPIB/VISA communication unit 522 and serial communication unit 523.CMMB coverage test system uses the Access database to preserve data, and manages and operating database by the oledb technology.Test macro can carry out playback operation and test data done to analyze gathering by database to test process.
In conjunction with shown in Figure 2, after finishing above-mentioned data acquisition, test data is carried out analyzing and processing by data analysis module, shows the field intensity and the error code of current location in the GIS module, shows the field intensity of current time and the real-time statistics information of error code in data analysis module.
Data acquisition and storage device that the embodiment of the invention proposes, by collecting test data such as USB interface, tester in conjunction with other writes down the accurate signal parameter again, as frequency spectrograph etc., and with the test data storage and the playback that obtain, carry out the analysis and the reprocessing of data, test job is simple, and is easy to operate.
The such scheme that the present invention proposes can be monitored the difference variation of radio-frequency channel in real time by the calibration error parameter, and reflects the precision of calibration in real time by the calibration error parameter that reports.In addition, the such scheme that the present invention proposes can be adjusted the cycle of calibrating in real time according to the calibration error parameter, changes shortening calibration cycle when very fast in the radio-frequency channel, elongate calibration cycle when gradual relatively in the radio-frequency channel, in time carry out rational antenna calibration according to the calibration accuracy situation.The such scheme that the present invention proposes, very little to the change of existing system, can not influence the compatibility of system, and realize simple, efficient.
One of ordinary skill in the art will appreciate that and realize that all or part of step that the foregoing description method is carried is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing module, also can be that the independent physics in each unit exists, and also can be integrated in the module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.