Make the intelligentized plug-in method of microwave apparatus circuit board
Technical field
The present invention relates to a kind of intelligentized method, particularly relate to one and make the intelligentized plug-in unit of microwave apparatus circuit board
Method.
Background technology
Present Intelligent Apparatus typically uses modularized design, is provided with the main control module of CPU by one piece of motherboard
Realizing the extension of bus slot structure, other functional circuit plate module is then inserted on instrument motherboard.When instrumental function upgrading or dimension
When repairing, it is only necessary to change certain block functional circuit plate.And microwave apparatus frequency range covers relatively wide, an instrument can be from several Hz
Directly to tens GHz, being limited to design and level of processing, inside it, the very device property of multifunction circuit board, material is special simultaneously
Property, frequency characteristic, temperature characterisitic are uneven, the circuit board debugged on a machine during batch production, it is impossible to change to
On other machine, if changed, again must debug on new engine.Secondly, if user's in use instrument occurs
Problem, involves the functional circuit plate of this distributed constant, also cannot solve by changing circuit board at once, can only beam back genuine
The adjustment again of debugging system is utilized after changing new functional circuit.Prior art is simply put all calibration data that instrument is relevant
In disk, keep host software motionless, reconfigure instrument parameter, again labor intensive debugging calibration data, it is achieved instrument
Function, therefore cannot realize the convenient replacement of instrumental function circuit board.
It is divided into multiple model such as to 18G mono-model, 26.5G mono-according to user's request by frequency range with a microwave apparatus
Model, mono-model of 40G, mono-model of 60G etc., order demand with a instrument according to user, can choose difference in functionality
Option, prior art is substantially different instrument configuration need to choose to install different functional software, carries out the ginseng of complete machine software the most again
Number configuration.
The demand driving of user microwave apparatus and is constantly updated and improve, and its internal circuit plate is in the constant feelings of big frame
Under condition, function is also being updated and perfect, and complete machine software is also in constantly updating and improving simultaneously.Owing to hardware changes,
New complete machine software finally will be unable to take into account the functional circuit plate of numerous versions in the instrument sold in the past.
Prior art is that whole executable codes of instrument software are all placed in the complete machine software of instrument, onboard on circuit board
Memorizer only stores calibration data and version information, and instrument complete machine software passes through version information or the characteristic number of reading circuit plate
According to, it is identified circuit board judging, then complete machine software judges according to the circuit board version read back or characteristic information, then
In complete machine software, design code carries out detailed branch process.Prior art has the disadvantage in that
One, the feature of microwave apparatus batch production debugging cannot be adapted to
Microwave apparatus circuit board belongs to distributed constant circuit, and therefore circuit debugging is complicated, and the cycle is longer, especially domestic
In microwave apparatus, for realizing a predetermined function index in instrument, when the board production of same design is debugged, it is likely to be due to
Circuit board material, the buying batch difference of device, debugging replacing device are the most different, and it is soft that internal function detail is embodied in complete machine
On part, it is simply that control method, calibration steps may be the most different.When production lot is bigger, complete machine software then cannot accommodate such as
This uneven circuit board software.
Two, the microwave apparatus product life cycle is longer, it is impossible to adapt to the maintenance support of after-sale service
Microwave apparatus product is the most all to measure level instrument, and required precision is the highest, the auxiliary needed the when of scheduling and planning
Adjusting instrument is the most, and volume weight is the biggest, the MTBF index of general instrument be 3000 or
5000 hours, time actually used, probability of failure was of a relatively high, sold when the product of user breaks down the service of needing repairing in time,
The most many times need on-site maintenance, but when relating to the circuit board of microwave device, mostly cannot be on-the-spot by more renewing
Circuit board solves fault, because after having changed, in addition it is also necessary to the assisted microwave synthesis instrument of a series of precision carrys out detection calibration.Therefore
Genuine maintenance have to be returned, be returned to user after completing again, cause great inconvenience to user's especially Foreign User.
Three, complete machine software is difficult to safeguard
During the complete machine software user in the later stage uses and tests, typically can constantly find software error, need the completeest
Kind.Need to be put into after software modification test on producer website and download upgrading for user, but owing to the hardware of early stage product is inconsistent
Property, it is difficult to ensure that the numerous hardware versions updating applicable early stage of later stage software.
Summary of the invention
The technical problem to be solved is to provide one and makes the intelligentized plug-in method of microwave apparatus circuit board, its
Microwave apparatus circuit board can be made intelligent, allow the complete machine software upgrading of microwave apparatus circuit board automatic adaptation instrument and improvement,
And independent of complete machine platform, thoroughly solve the exchange in batch production and after-sales service problem.
The present invention solves above-mentioned technical problem by following technical proposals: one makes microwave apparatus circuit board intelligence
Change plug-in method, it is characterised in that described in make the intelligentized plug-in method of microwave apparatus circuit board comprise the following steps:
Step one, analyzes and determines chip card, determine the composition of chip card according to microwave apparatus circuit board function, intelligence
Plug-in unit includes characteristic attribute value and the plate level power function of functional unit;As a example by switch filter plate, then switch filtering
The tape swapping point data of device is as characteristic attribute value, and the penalty function of each section of switch filter is as plate level power function;
Step 2, builds chip card, according to following onboard memorizer storage format table owning switch filter
Characteristic attribute value write data field, and fill in data field capacity and position skew, plate level power function code is write function region,
And fill in program area capacity and position skew;
Step 3, stores chip card, and the chip card built is write onboard storage by the bus of onboard memorizer
In device;
Step 4, completes chip card, writes in onboard memorizer by the content of the chip card of onboard memorizer, this
Sample chip card is just with microwave apparatus circuit board together;
Step 5, calls chip card, reads the content of chip card, and verify from onboard memorizer;
Step 6, resolves chip card, the chip card in onboard memorizer is divided into according to the agreement of storage format table
Data field and program area;
Step 7, the attribute assignment of chip card and code are loaded into main frame, by the data field of chip card dissection process
Property attribute value gives the eigenvalue variable in host software corresponding to microwave apparatus circuit board, the code of program area is write main
Machine internal memory, builds plate level function pointer.
Preferably, the intelligentized plug-in method of microwave apparatus circuit board is made to make every piece of microwave apparatus circuit board with plate described in
Carrying memorizer, main frame, switch filter, onboard memorizer, switch filter are all connected with main frame, and onboard memorizer is used for storing
The characteristic attribute data of preliminary election plate and plate level function code, it is achieved the chip card of microwave apparatus circuit board, switch filter is made
For the Main functional units of preliminary election plate, complete to receive the preliminary election filtering of signal, eliminate image frequency and interference for rear class frequency mixer, according to
The frequency range of user's input and the Frequency point of Current Scan are selected by switch filter switching.
Preferably, by SPI or I between described onboard memorizer and main frame2C universal serial bus realizes connecting.
Preferably, realize being connected by pci bus between described switch filter and main frame.
The most progressive effect of the present invention is: after microwave apparatus circuit board is by the intellectuality of the present invention, at microwave instrument
The bottom plate level function realized in device, all passes through in the memorizer of oneself by the agreement of the present invention, stores relevant characteristic attribute
With relevant software code realization, when this circuit board is inserted in instrument, complete machine software automatically loads parsing and calls this circuit
The function of plate.Thus every piece of circuit board is not rely on certain software version of instrument, can at will be inserted into the instrument of different batches
Among device, the host software of same version can drive the circuit board of different editions, facilitates the standalone upgrade of circuit board to improve
Upgrading with host software extends, it is simple to the batch debugging of microwave apparatus circuit board and after-sales service, facilitates microwave apparatus
Produce in enormous quantities and after-sales service.The present invention does not change the hardware and software architecture of instrument itself, it is easy to promote the use of.
Accompanying drawing explanation
Fig. 1 is that the present invention makes the intelligentized plug-in method of microwave apparatus circuit board use the theory diagram of element.
Fig. 2 is the flow chart that the present invention makes the intelligentized plug-in method of microwave apparatus circuit board.
Detailed description of the invention
The present invention is provided below in conjunction with the accompanying drawings as a example by the receiver of certain model one block of functional circuit plate-signal preliminary election plate
Preferred embodiment, to describe technical scheme in detail.Signal preliminary election plate passes through the filter combination that internal multistage is different
Realize the widest scope of 9Hz to 40GHz signal preliminary election filtering, the wave filter of every block of preliminary election plate due to the reasons such as scheduling and planning its
The index such as bandwidth, frequency is all not quite similar.
As it is shown in figure 1, the present invention makes the intelligentized plug-in method of microwave apparatus circuit board make every piece of microwave apparatus circuit board
With onboard memorizer, main frame, switch filter, onboard memorizer, switch filter are all connected with main frame, and onboard memorizer is used
In the storage characteristic attribute data of preliminary election plate and plate level function code, it is achieved the chip card of microwave apparatus circuit board, onboard deposit
SPI(Serial Peripheral Interface, Serial Peripheral Interface (SPI) can be passed through between reservoir and main frame) or I2C serial
Bus realizes connecting, and the model of onboard memorizer is the AT25512 type memorizer of atmel corp.Switch filter is as preliminary election
The Main functional units of plate, completes to receive the preliminary election filtering of signal, eliminates image frequency and interference for rear class frequency mixer, defeated according to user
The frequency range and the Frequency point of Current Scan that enter are selected by switch filter switching, pass through between switch filter and main frame
PCI(Pedpherd Component Interconnect, peripheral element extension interface) bus realization connection.Onboard memorizer,
Switch filter composition preliminary election plate, preliminary election plate is in the front end of receiver, and the main preliminary election realizing receiving signal, to avoid rear end to mix
Frequently there is image frequency signal or intermodulation signal in device, increases the sensitivity of receiving path simultaneously.Main frame can use central processing unit
(CPU), main frame can be with the onboard memorizer of read and write access, and access mode can pass through standard spi bus, I2C bus or designed, designed
Bus realize, the memory bus selected determine.
As in figure 2 it is shown, the present invention makes the intelligentized plug-in method of microwave apparatus circuit board comprise the following steps:
Step one, analyzes and determines chip card, determine the composition of chip card according to microwave apparatus circuit board function, intelligence
Plug-in unit includes characteristic attribute value and the plate level power function of functional unit;As a example by switch filter plate, then switch filtering
The tape swapping point data of device is as characteristic attribute value, and the penalty function of each section of switch filter is as plate level power function;
Step 2, builds chip card, according to following onboard memorizer storage format table (table 1) by switch filter
All characteristic attribute values write data field, and fill in data field capacity and position skew, plate level power function code is write letter
Number district, and fill in program area capacity and position skew.This example is exactly the section of changing some 20Hz, 50KHz, 2MHz, the 8MHz of wave filter,
30MHz, 150MHz, 300MHz, 600MHz, 1GHz, 2GHz, 3GHz, 4GHz transfer binary floating number to and are stored in onboard storage
The data field of device, in the execution generation of function CompensateAmplitudeBand1 to CompensateAmplitudeBand11
Code writes the program area of onboard memorizer, and there being the information writes such as off position skew, capacity, version;
Table 1 onboard memorizer storage format table
Memorizer total capacity |
Circuit board version number, software version number |
Data field capacity and position skew |
Program area capacity and position skew |
Index functions directory area capacity |
Index functions directory area |
Data block |
Program area block |
Check word |
Step 3, stores chip card, and the chip card built is write onboard storage by the bus of onboard memorizer
In device;
Step 4, completes chip card, writes in onboard memorizer by the content of the chip card of onboard memorizer, this
Just with microwave apparatus circuit board together, the circuit board different batches of said function or device are different, intelligence for sample chip card
Energy plug-in content may be the most different;
Step 5, calls chip card, reads the content of chip card, and verify from onboard memorizer;
Step 6, resolves chip card, the chip card in onboard memorizer is divided into according to the agreement of storage format table
Data field and program area;
Step 7, the attribute assignment of chip card and code are loaded into main frame, by the data field of chip card dissection process
Property attribute value gives the eigenvalue variable in host software corresponding to microwave apparatus circuit board, the code of program area is write main
Machine internal memory, builds plate level function pointer.
Microwave apparatus circuit board function is pressed to the kernel software power function controlling the read-writes such as data acquisition relevant of hardware
Mode according to joint stores in onboard memorizer.Content and the sequence of onboard memorizer form are as follows:
Four bytes: memorizer total capacity (unit byte);
Four bytes: circuit board version number, software version number;
Four bytes: data field capacity and position skew (unit byte);
Four bytes: program area capacity and position skew (unit byte);
Four bytes: index functions directory area capacity;
Index functions directory area is all function names and index functions table, function name and function parameter addressing algorithm, uses
Following data structure:
The code initial address side-play amount of all power functions is arranged in array in order and leaves in RAM
The address that AddressOfExpFunctions starts, the side-play amount of all power function name character strings is arranged in the most in order
Array AddressOfExpNames.Each function stores initial address and name character string in RAM, and the number of function is deposited
In NumberOfExpFunctions structure member.After memory inside immediately this structure, all functions of sequential storage
Initial address skew array and function name number of words group.
The function of data field is as follows: store each attribute of microwave apparatus circuit board internal element in data field, including
Port address, the control data of port, instrument wave band switching point, temperature characterisitic, the compensation of device and unit controls data etc..
The function of program area is as follows: each circuit unit all of software function code in memory plane in program area, with two
Binary form stores.
Check word: four bytes, as the verification data of whole onboard memorizer, for verifying the complete of storage data
Property.
After the host software of instrument starts, it is judged that onboard memory read/write is the most normal, if normal, it is loaded into whole depositing
The content of reservoir is to the RAM(Random Access Memory of main frame, random access memory) in, first pass through check word and judge to deposit
The content of reservoir is the most wrong, quite right, carries out full content parsing.First mating of software and hardware is determined according to version number,
If coupling continues the parsing of other content.Capacity according to data field and position skew, navigate to data block, resolve whole
Data field, gives the relevant variable in host software each characteristic attribute value such as port address of this circuit board etc..According to letter
The capacity in number index list district, is loaded into whole index functions district, carries out the parsing of function name and function address, by each function
Code write host memory performs code area, and the function of each function initial address imparting host software in main frame is referred to
Pin array, is directly called by function pointer when host software calls the correlation function of plank, thus achieves not
Fusion with version circuit plate function Yu host software.
The present invention passes through the particular feature circuit board and the software function such as personalized control and calibration algorithm, according to this
The form of bright design is put in the memorizer on circuit board, makes circuit board possess behavior property, it is achieved intelligent circuit board control
Design, then in complete machine software frame, design the loading of circuit board control and run algorithm, it is possible to make equipment circuit plate intelligent, allow
The complete machine software upgrading of circuit board automatic adaptation instrument and improvement, and independent of complete machine platform, thoroughly solve in batch production
Exchange and after-sales service problem.The present invention can make the circuit board intellectuality of microwave apparatus, the host software energy of same version
Enough drive the circuit board of different editions, facilitate the standalone upgrade improvement of circuit board and the upgrading extension of host software, it is simple to microwave
The batch debugging of equipment circuit plate and after-sales service, the present invention does not change the hardware and software architecture of instrument itself, it is easy to push away
Wide use.
The function of preliminary election plate is the preliminary election realizing receiver from 9Hz to 40GHz signal, and the most no matter what its inside uses
Which type of wave filter no matter the circuit unit structure of sample, use, or the tape swapping point of wave filter be the most different, and it is supplied to complete machine
Function is exactly signal filtering preliminary election, and filtering preliminary election has only to call corresponding wave filter over different frequencies for complete machine software
, therefore the characteristic of preliminary election plate is exactly the replacement point of wave filter, needs to call wave filter when amplitude calibration simultaneously
Corresponding Amplitude Compensation function, this completes step one.Step 2 specifically builds plug-in unit in calculator memory, eigenvalue
Organize by form in internal memory with correlative code.Step 3 is to write to form circuit board chip card in onboard memorizer,
The software code relevant to preliminary election plate and hardware characteristics data have been encapsulated in onboard memorizer by the form of the present invention.The present invention
Can implement function such as: as long as the predeterminated target function that circuit board realizes is constant, in any case internal circuit adjusts, how to change
Entering, the chip card of onboard memorizer improves the change being no need for complete machine software therewith.Complete machine software is in complete machine functional layer simultaneously
Renewal on secondary and improvement are independently of each the functional circuit plate of instrument, thus can thoroughly solve the exchange in batch production and after sale
Maintenance problem.
Those skilled in the art can carry out various remodeling and change to the present invention.Therefore, present invention covers and fall into
Various remodeling in the range of appending claims and equivalent thereof and change.