Summary of the invention
The shortcomings that it is a primary object of the present invention to overcome the prior art and deficiency are provided one kind and are made more based on software exchange
Formula small region search method only needs one piece of radio frequency circuit board for supporting all standard frequency ranges on hardware, passes through multicore digital signal
The switching that processor (Digital Signal Process) runs multiple threads progress standards is synchronous with the search of cell.
In order to achieve the above object, the invention adopts the following technical scheme:
The invention discloses one kind to be based on software exchange multi-standard small region search method, includes the following steps:
S1, device power, the initialization of digital signal processor start completion, the digital signal processor includes four altogether
Core, core 0 include two threads, and one is to control thread, and an agreement thread, other three cores only have agreement thread;
The core 0 that S2, pc client issue cell searching instruction to digital signal processor controls thread, and core 0 controls thread
It is parsed by message, obtains communication standard, cell search mode and the frequency point information currently issued;
S3, compared by 0 thread of core standard information that the end PC issues whether with the state parameter one that is saved in control thread
It causes to judge that current device is first time search cell or re-searches for cell, wherein situation there are two types of cells is re-searched for,
Again the cell for completing current standard one is standard Information invariability is blind to search or fixed frequency is searched for, and another kind is that standard information changes,
Then the switching for needing first to carry out standard is carrying out cell searching;
If S4, status indicating device are to carry out cell searching for the first time, control thread first enters corresponding standard
Current standard to be processed is updated into state parameter, then starts the agreement thread of four core, to four lines by control flow
After journey all starts successfully, the control thread of core 0 sends the frequency of cell searching instruction configuration radio frequency circuit board to four agreement threads
Point information;
If S5, state instruction are not to search for for the first time, judge that the standard of the standard issued and current device processing is
It is no consistent;
If S51, the standard issued are consistent with the standard that current device is handled, search is obtained according to the message being resolved to
Mode is blind searches or fixed frequency is searched for;
If the standard of S52, the standard issued and current device processing are inconsistent, the control thread of core 0 is according to parsing
To message know to carry out standard switching.
As a preferred technical solution, in step S1, the control thread is used to carry out letter with pc client and four cores
Breath interaction, the protocol processes thread are used to complete the cell searching synchronization and subsequent processing of each agreement.
As a preferred technical solution, in step S1, when being initialized, it is responsible for and pc client and agreement line in core 0
The control thread starting of journey interaction, the agreement thread of four cores all do not start, wait and sending instructions under pc client, at this time equipment
It is done nothing in IDLE state.
As a preferred technical solution, in step S2, the cell search mode include it is blind search and determine frequency search for, blind search be
Refer to and some standard full frequency band is searched for, determines to refer to the search several specific frequency points of the standard frequently, under normal circumstances all standards
First time cell searching be all it is blind search, fixed frequency can be carried out after completing primary search and is searched for;The frequency point information is to determine frequency
It is issued when search.
As a preferred technical solution, in step S3, four agreement threads only need one of thread to be handled i.e.
Can, the agreement thread configuration frequency point information of default core 0 opens the acquisition function for data of eating dishes without rice or wine, opening timing device, four agreement lines
Journey starts to carry out the search synchronous working of cell, until completing the cell synchronous in current base station overlay area.
As a preferred technical solution, in step S51, stop eating dishes without rice or wine in the control thread of core 0 first if it is blind search
Then the acquisition function of data sends cell searching instruction, subsequent operating process and for the first time search to four agreement threads
Cell process is unanimously until the synchronous working of completion cell;If it is frequency search is determined, the control thread preservation of core 0 first is resolved to
Frequency point information, then stop the acquisition function of data of eating dishes without rice or wine, send the cell comprising frequency point information to four agreement threads and search
Suo Zhiling, the subsequent operating process synchronous working until completing cell consistent with first time search cell process.
As a preferred technical solution, in step S52, standard switching is carried out method particularly includes:
First by standard information update into state parameter, then stop the acquisition of data of eating dishes without rice or wine, stops timer, in core
0 control thread in pre-treatment standard all quantity of states reset, stop the operation of all accelerators, to four agreement threads
It sends instruction stopping cell search process process and enters IDLE state, then close the agreement thread of current standard, after the completion
Control thread starts four new agreement threads according to the standard information issued, and thread is controlled after starting successfully to four agreement lines
Journey sends cell searching instruction, and default carries out frequency point information using the cell searching thread of core 0 and issues, and completes matching for radio frequency link
It sets, opens data acquisition function of eating dishes without rice or wine, enable timer, four agreement threads start cell searching work, until completing base station
The synchronization search work of cell in coverage area.
Compared with the prior art, the invention has the following advantages and beneficial effects:
It is provided by the invention to be based on software exchange multi-standard small region search method, it is only necessary to be set by software to control hardware
The search synchronous working of cell is completed in the standby switching for carrying out standard.In the certain specific application scenarios of reality, hardware is needed to set
It is standby to support various kinds of mobile communication standard, it may need to carry out toggling between multiple standards in use, compared to adopting
With the mode of hardware exchange, software exchange has at low cost, high-efficient, fast response time, easy to operate feature.
Embodiment
As shown in Figure 1 and Figure 2, the present embodiment one kind is based on software exchange multi-standard small region search method, including following steps
It is rapid:
1. device power, digital signal processor start completion is initialized, and is responsible for and pc client and agreement thread in core 0
Interactive control thread starting, the agreement thread of four cores all do not start, wait and sending instructions under pc client, at this time at equipment
It is done nothing in IDLE state;
Can 2.PC client issue a confirmation command digital signal processor and work normally, if number can be worked normally
Word signal processor can reply a response message to pc client, come from if cisco unity malfunction pc client not will receive
The response message of digital signal processor;
3. pc client issues cell searching instruction and arrives after step 2 confirmation digital signal processor can work normally
The control thread of Digital Signal Processor Core 0, control thread are parsed by message, obtain the communication standard currently issued, cell
Search pattern and frequency point information, wherein cell search mode include it is blind search and determine frequency search for, it is blind search refer to some standard carry out
Full frequency band search, fixed to refer to certain a few specific frequency point of search frequently, all standard first time cell searchings are all under normal circumstances
It is blind to search, it can choose after completing primary search and carry out blind search or fixed frequency is searched for.Frequency point information is only issued when determining frequency search;
4. whether the standard information that issues by comparing the end PC of control thread by step 3 core 0 protects with controlling in thread
The state parameter deposited unanimously judges that current device is to search for cell for the first time or re-search for cell, wherein re-searching for small
The cell that area completes current standard there are two types of situation, one is standard Information invariability again is blind to search or fixed frequency is searched for, and one is systems
Formula information changes, and the switching for first carrying out standard is needed then to carry out cell searching again;
5. carrying out cell searching if it is first time, the control thread of core 0 first enters the control stream of standard to be handled
Current standard to be processed is updated into state parameter, then starts the agreement thread of four core, all open to four threads by journey
After moving successfully, the control thread of core 0 sends the frequency point information of cell searching instruction configuration radio frequency circuit board to four agreement threads.
Four processing threads only need some thread to carry out the configuration of radio frequency circuit board frequency point, present invention default in actual process
Using the agreement thread configuration frequency point information of core 0, it is then turned on the acquisition function for data of eating dishes without rice or wine, starts timer, four agreements
Thread starts to carry out the search synchronous working of cell, until completing the cell synchronous in current base station overlay area;
6. being searched for if not first time, to handle in two kinds of situation here, the first situation is the system that the end PC issues
Formula is consistent with the standard that current device is handled, and obtaining way of search according to the message that is resolved to is blind search or fixed frequency is searched for.Such as
Fruit is the blind acquisition function of searching the data that stop eating dishes without rice or wine first in the control thread of core 0, then sends weight to four agreement threads
The instruction of new search cell, the subsequent operating process synchronous working until completing cell consistent with first time search cell process;
If it is frequency search is determined, the control thread of core 0 first saves the frequency point information that is resolved to, and then stopping is eated dishes without rice or wine the acquisition function of data
Energy sends the cell searching comprising frequency point information to four agreement threads and instructs, and subsequent operating process and first time search for small
Area's process is unanimously until completing the cell synchronous in current base station overlay area;
7. this relates to cutting to standard another situation is that the standard of standard and the current device processing issued is inconsistent
The control thread of change of current journey, core 0 judges standard switching to be carried out according to the message being resolved to, and first arrives standard information update
In state parameter, then stop the acquisition of data of eating dishes without rice or wine, stops timer, stop the operation of hardware accelerator, by 0 control line of core
All quantity of states of pre-treatment standard in journey are reset, to four agreement threads send instruction stop cell search process processes into
Enter IDLE state.After four agreement threads fully enter IDLE state, then the agreement thread of current standard is closed.It completes
Control thread restarts four new agreement threads according to the standard information currently issued afterwards, all starts success to four threads
Afterwards, the control thread of core 0 sends the frequency point information of cell searching instruction configuration radio frequency circuit board to four agreement threads.In reality
Four processing threads only need some thread to carry out the configuration of radio frequency circuit board frequency point in treatment process, and present invention default utilizes core
0 agreement thread configuration frequency point information is then turned on the acquisition function for data of eating dishes without rice or wine, and starts timer, and four agreement threads are opened
The work of beginning cell searching, the synchronization search work until completing cell in base station range.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment
Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention,
It should be equivalent substitute mode, be included within the scope of the present invention.