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 a kind of intelligentized plug-in method of microwave apparatus circuit board that makes.
Background technology
Present Intelligent Apparatus generally adopts modular design, the main control module of CPU is installed by the expansion of a motherboard realization bus slot structure, and other functional circuit plate module then is inserted on the instrument motherboard.When the instrumental function upgrade or repair, only need to change certain piece functional circuit plate and get final product.And the covering of microwave apparatus frequency range is wideer, an instrument can be from several Hz directly to tens GHz, be subject to design and level of processing simultaneously, device property, material behavior, frequency characteristic, the temperature characterisitic of its inner a lot of functional circuit plates are uneven, debug good circuit board at a machine during batch process, can't change on other machine, if change then must debugging again on new engine.Secondly, if the user in use instrument go wrong, involve the functional circuit plate of this distribution parameter, also can't solve by changing circuit board at once, can only beam back and utilize debug system adjustment again after former factory changes new functional circuit.Prior art just is put into all relevant calibration data of instrument in the disk, and the maintenance host software is motionless, reconfigures instrument parameter, and labor intensive debugging calibration data is realized instrumental function again, therefore can't realize the convenient replacement of instrumental function circuit board.
Be divided into a plurality of models as arrive a 18G model, a 26.5G model, a 40G model, a 60G model etc. according to user's request by frequency range with a microwave apparatus, order demand with a instrument according to the user, can choose the difference in functionality option, prior art is that different instrument configuration need be selected and adorns different functional software substantially, carries out the parameter configuration of complete machine software at last again.
User's demand is promoting microwave apparatus and is constantly upgrading and improve, and its internal circuit plate is under the constant situation of big frame, and function is also being updated and perfect, and complete machine software is also in constantly upgrading and improving simultaneously.Since the hardware change, the functional circuit plate of numerous versions in the instrument of having sold before new complete machine software can't be taken into account the most at last.
Prior art is that whole executable codes of instrument software all are placed in the complete machine software of instrument, the circuit board upper plate carries storer only stores calibration data and version information, version information or the characteristic of instrument complete machine software by reading circuit board, circuit board is identified judgement, complete machine software judges that according to the circuit board version or the characteristic information that read back design code is carried out detailed branch process in complete machine software more then.There is following shortcoming in prior art:
One, can't adapt to the characteristics that microwave apparatus is produced debugging in batches
The microwave apparatus circuit board belongs to distributed constant circuit, so circuit debugging complexity, cycle is longer, especially in homemade microwave apparatus, be a predetermined function index in the realization instrument, when the board production of same design is debugged, may be owing to buying batch difference, the debugging replacing device of circuit board material, device are all different, inner function detail is embodied on the complete machine software, is exactly control method, and calibration steps may be also different.When production lot was bigger, complete machine software then can't hold uneven circuit board software like this.
Two, the microwave apparatus product life cycle longer, can't adapt to the maintenance support of after sale service
The microwave apparatus product much all is to measure the level instrument, accuracy requirement is very high, the assistant adjustment instrument that needs when producing debugging is many, and volume weight is all bigger, the mean time between failures index of general instrument is 3000 or 5000 hours, probability of failure is higher relatively during actual the use, the service of needing repairing is in time when breaking down for the product of selling the user, therefore many times need on-site maintenance, but when relating to the circuit board of microwave device, mostly can't on-the-spot solve fault by the circuit board that more renews because change finish after, also need the auxiliary microwave apparatus of a series of precision to come detection calibration.Therefore have to return the maintenance of former factory, return again to the user after finishing, cause great inconvenience for the especially external user of user.
Three, complete machine software is difficult to safeguard
Complete machine software is in the user in later stage uses and tests, and generally can constantly find needs by software error constantly perfect.Need to be put into after the software modification test on the producer website for user's download and upgrade, but since early stage product the hardware inconsistency, be difficult to guarantee that the renewal of later stage software is fit to numerous hardware versions in early stage.
Summary of the invention
Technical matters to be solved by this invention provides a kind of intelligentized plug-in method of microwave apparatus circuit board that makes, it can make the intellectuality of microwave apparatus circuit board, allow complete machine software upgrading and the improvement of the automatic adaptive instrument of microwave apparatus circuit board, and be independent of the complete machine platform, thoroughly solve exchange and after-sales service problem in producing in batches.
The present invention solves above-mentioned technical matters by following technical proposals: a kind of intelligentized plug-in method of microwave apparatus circuit board that makes is characterized in that the described intelligentized plug-in method of microwave apparatus circuit board that makes may further comprise the steps:
Step 1 analyze to be determined chip card, determines the formation of chip card according to microwave apparatus circuit board function, and chip card comprises characteristic attribute value and the plate level power function of functional unit; As being example with the switch filter plate, then the tape swapping point data of switch filter as the characteristic attribute value, the penalty function of each section switch filter is as plate level power function;
Step 2, make up chip card, carry the memory stores form shfft according to following plate all characteristic attribute values of switch filter are write the 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, the storage chip card carries the chip card that makes up in the storer by the bus tablet that plate carries storer;
Step 4 is finished chip card, the content of carrying the chip card of storer by plate is write into plate and carried in the storer, and chip card just with the microwave apparatus circuit board together like this;
Step 5 is called chip card, and slave plate carries the content of reading chip card in the storer, and does verification;
Step 6 is resolved chip card, and the chip card that plate is carried in the storer is divided into data field and program area according to the agreement of storage format table;
Step 7, attribute assignment and the code of chip card are written into main frame, the property attribute value of the data field of chip card dissection process is given in the host software corresponding to the eigenwert variable of microwave apparatus circuit board, the code of program area is write host memory, make up plate level function pointer.
Preferably, describedly make the intelligentized plug-in method of microwave apparatus circuit board make every microwave apparatus circuit board have plate to carry storer, main frame, switch filter, plate carries storer, switch filter all is connected with main frame, plate carries characteristic attribute data and the plate level function code that storer is used for storage preliminary election plate, realize the chip card of microwave apparatus circuit board, switch filter is as the major function unit of preliminary election plate, finish the preliminary election filtering that receives signal, for back level frequency mixer is eliminated image frequency and interference, selected by the switch filter switching according to the frequency range of user's input and the Frequency point of current scanning.
Preferably, described plate carries between storer and the main frame by SPI or I
2The C universal serial bus is realized connecting.
Preferably, realize being connected by pci bus between described switch filter and the main frame.
Positive progressive effect of the present invention is: the microwave apparatus circuit board by intellectuality of the present invention after, the bottom plate level function that in microwave apparatus, realizes, all pass through in the storer of oneself by agreement of the present invention, store relevant characteristic attribute and relevant software code realization, when being inserted into this circuit board in the instrument, complete machine software loads automatically resolves the function of calling this circuit board.Thereby every circuit board and do not rely on certain software version of instrument, can at will be inserted among the instrument of different batches, the host software of same version can drive the circuit board of different editions, make things convenient for the standalone upgrade improvement of circuit board and the upgrading expansion of host software, be convenient to batch debugging and the after-sales service of microwave apparatus circuit board, made things convenient for production in enormous quantities and the after-sales service of microwave apparatus.The present invention does not change the hardware and software architecture of instrument itself, is easy to promote the use of.
Description of drawings
Fig. 1 uses the theory diagram of element for the present invention makes the intelligentized plug-in method of microwave apparatus circuit board.
Fig. 2 makes the process flow diagram of the intelligentized plug-in method of microwave apparatus circuit board for the present invention.
Embodiment
Be that example provides preferred embodiment of the present invention below in conjunction with accompanying drawing with functional circuit plate-signal preliminary election plate in the receiver of certain model, to describe technical scheme of the present invention in detail.Signal preliminary election plate is realized 9Hz to so signal preliminary election filtering of wide region of 40GHz by the different wave filter combination of inner multistage, and the wave filter of every block of preliminary election plate all is not quite similar owing to indexs such as its bandwidth of reason, frequency such as producing debugging.
As shown in Figure 1, the present invention makes the intelligentized plug-in method of microwave apparatus circuit board make every microwave apparatus circuit board have plate and carries storer, main frame, switch filter, plate carries storer, switch filter and all is connected with main frame, plate carries characteristic attribute data and the plate level function code that storer is used for storage preliminary election plate, realize the chip card of microwave apparatus circuit board, plate carries between storer and the main frame can pass through SPI(Serial Peripheral Interface, Serial Peripheral Interface (SPI)) or I
2The C universal serial bus is realized connecting, and the model that plate carries storer is the AT25512 type storer of atmel corp.Switch filter is as the major function unit of preliminary election plate, finish the preliminary election filtering that receives signal, for back level frequency mixer is eliminated image frequency and interference, switch selection according to the frequency range of user's input and the Frequency point of current scanning by switch filter, pass through PCI(Pedpherd Component Interconnect, peripheral element extension interface between switch filter and the main frame) bus realization connection.Plate carries storer, switch filter is formed the preliminary election plate, and the preliminary election plate is at the front end of receiver, and the main preliminary election that realizes receiving signal image frequency signal or intermodulation signal occur to avoid the rear end frequency mixer, increases the sensitivity that receives path simultaneously.Main frame can adopt central processing unit (CPU), and main frame can carry storer by the read and write access plate, and the bus that access mode can be passed through standard spi bus, I2C bus or design voluntarily realizes, is determined by the memory bus of selecting for use.
As shown in Figure 2, the present invention may further comprise the steps the intelligentized plug-in method of microwave apparatus circuit board:
Step 1 analyze to be determined chip card, determines the formation of chip card according to microwave apparatus circuit board function, and chip card comprises characteristic attribute value and the plate level power function of functional unit; As being example with the switch filter plate, then the tape swapping point data of switch filter as the characteristic attribute value, the penalty function of each section switch filter is as plate level power function;
Step 2, make up chip card, carry memory stores form shfft (table 1) according to following plate all characteristic attribute values of switch filter are write the data field, and fill in the skew of data field capacity and position, plate level power function code is write function region, and fill in program area capacity and position skew.This example is exactly the section of changing of wave filter point 20Hz, 50KHz, 2MHz, 8MHz, 30MHz, 150MHz, 300MHz, 600MHz, 1GHz, 2GHz, 3GHz, 4GHz transfers binary floating number to and deposits the data field that plate carries storer in, and function C ompensateAmplitudeBand1 is carried the program area of storer to the run time version tablet of CompensateAmplitudeBand11, and information such as the skew of relevant position, capacity, version are write;
Table 1 plate carries the memory stores form shfft
The storer total volume |
Circuit board version number, software version number |
Data field capacity and position skew |
Program area capacity and position skew |
Index functions directory area capacity |
The index functions directory area |
Block |
Program area block |
Check word |
Step 3, the storage chip card carries the chip card that makes up in the storer by the bus tablet that plate carries storer;
Step 4, finish chip card, the content of carrying the chip card of storer by plate is write into plate and is carried in the storer, and chip card just with the microwave apparatus circuit board together like this, circuit board different batches or the device of said function are different, and the chip card content may be also different;
Step 5 is called chip card, and slave plate carries the content of reading chip card in the storer, and does verification;
Step 6 is resolved chip card, and the chip card that plate is carried in the storer is divided into data field and program area according to the agreement of storage format table;
Step 7, attribute assignment and the code of chip card are written into main frame, the property attribute value of the data field of chip card dissection process is given in the host software corresponding to the eigenwert variable of microwave apparatus circuit board, the code of program area is write host memory, make up plate level function pointer.
Microwave apparatus circuit board function and the control data of hardware the relevant kernel software power function of read-write such as are obtained and are stored plate into according to the mode of joint and carry in the storer.Plate carries the content of storer form and sorts as follows:
Four bytes: storer total volume (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;
The index functions directory area is all function names and index functions table, and function name and function parameter addressing algorithm adopt following data structure:
The code start address side-play amount of all functions function is arranged in array in order and leaves the address that AddressOfExpFunctions begins among the RAM in, and the side-play amount of all functions function name character string also is arranged in array AddressOfExpNames in order.Each function is stored start address and name character string in RAM, the number of function leaves among the NumberOfExpFunctions structure member.After memory inside is right after this structure, the start address of all functions of sequential storage skew array and function name number of words group.
The function of data field is as follows: store the various attributes of microwave apparatus circuit board internal element in the data field, comprise control data, instrument wave band switching point, the temperature characterisitic of port address, port, the compensation control data of device and unit etc.
The function of program area is as follows: all software function codes of each circuit unit in the memory board in the program area, store with binary mode.
Check word: four bytes, carry the checking data of storer as whole plate, be used for the integrality of checking storage data.
After the host software of instrument starts, judge whether plate carries memory read/write normal, if it is normal then be written into the content of whole storer to the RAM(Random Access Memory of main frame, random access memory) in, at first judge by check word whether the content of storer is wrong, the quite right full content that then carries out is resolved.At first determine the coupling of software and hardware according to version number, if coupling continues the parsing of other content.According to the capacity of data field and position skew, navigate to block, resolve whole data field, give relevant variable in the host software every characteristic attribute value of this circuit board such as port address etc.Capacity according to the index functions directory area, be written into whole index functions district, carry out the parsing of function name and function address, the code of each function is write host memory run time version district, and the function pointer array of the start address of each function in main frame being given host software, when host software calls the correlation function of plank, directly call by function pointer and get final product, so just realized the fusion of different editions circuit board function and host software.
The present invention passes through software functions such as the particular feature of circuit board and personalized control and calibration algorithms, form is put in the storer on the circuit board designed according to this invention, make circuit board possess behavior property, realize the design of intelligent circuit board control, design circuit plate control loads and the operation algorithm in the complete machine software frame again, can make the intellectuality of equipment circuit plate, allow complete machine software upgrading and the improvement of the automatic adaptive instrument of circuit board, and be independent of the complete machine platform, thoroughly solve exchange and after-sales service problem in producing in batches.The present invention can make the circuit board intellectuality of microwave apparatus, the host software of same version can drive the circuit board of different editions, make things convenient for the standalone upgrade improvement of circuit board and the upgrading expansion of host software, be convenient to batch debugging and the after-sales service of microwave apparatus circuit board, the present invention does not change the hardware and software architecture of instrument itself, is easy to promote the use of.
The function of preliminary election plate is to realize the preliminary election of receiver from 9Hz to the 40GHz signal, therefore no matter which type of circuit unit structure its inside adopts, no matter adopt which type of wave filter, or the tape swapping point of wave filter is all different, its function that offers complete machine is exactly the signal filtering preliminary election, the filtering preliminary election only need be called corresponding wave filter in different frequencies for complete machine software and be got final product, therefore the characteristic of preliminary election plate is exactly the replacement point of wave filter, need call simultaneously the corresponding amplitude penalty function of wave filter amplitude calibration the time, so just finish step 1.Step 2 is the concrete plug-in unit that makes up in calculator memory, and eigenwert and correlative code are organized by form in internal memory.Step 3 is that tablet carries formation circuit board chip card in the storer, and the software code relevant with the preliminary election plate and hardware characteristics data have been encapsulated in plate by form of the present invention and have carried in the storer.The present invention can be achieved as follows function: as long as the intended target function that circuit board is realized is constant, in any case internal circuit is adjusted, how to improve, the chip card that plate carries storer improves the change that just need not complete machine software thereupon.Renewal and the improvement of complete machine software on the complete machine functional hierarchy simultaneously all is independent of the functional circuit plate of instrument, thereby can thoroughly solve exchange and after-sales service problem in the batch process.
Those skilled in the art can carry out various remodeling and change to the present invention.Therefore, the present invention has covered various remodeling and the change in the scope that falls into appending claims and equivalent thereof.