Embodiment
The scheme of the embodiment of the invention is by utilizing terminal equipment can obtain the function of Mobile Country Code MCC automatically, make the camera head in the terminal equipment to come self adaptation to regulate its camera parameter by the Mobile Country Code MCC that terminal equipment obtains, find the capable time for exposure/frequency that is fit to each national alternating current operating frequency, both can avoid the fringe phenomena of camera head when taking, can simplify the complicated operation degree of terminal equipment again.
As shown in Figure 1, regulate the schematic flow sheet of method embodiment one of the camera parameter of terminal equipment for self adaptation of the present invention.The method that this self adaptation is regulated the camera parameter of terminal equipment comprises the steps:
Step 101, obtain the Mobile Country Code MCC in the identification code of lane place;
When terminal equipment carries out web search, some includes lane place identification code (Local Area Identification in the system message that gets access to, hereinafter to be referred as: LAI), include in this lane place identification code Mobile Country Code MCC (Mobile Country Code, hereinafter to be referred as: MCC);
The Mobile Country Code MCC that step 102, basis are obtained, self adaptation is regulated camera parameter;
After terminal equipment gets access to MCC, comprising camera head will be according to the MCC that obtains, search corresponding camera parameter, mainly be row time for exposure/frequency, to adapt to the operating frequency of the present on-site alternating current of this terminal equipment.
The self adaptation that present embodiment provides is regulated the method for the camera parameter of terminal equipment, by utilizing terminal equipment can obtain the function of MCC automatically, make the camera head in the terminal equipment to come self adaptation to regulate its camera parameter by the MCC that terminal equipment obtains, find the capable time for exposure/frequency that is fit to each national alternating current operating frequency, the fringe phenomena of camera head when taking can be avoided, the complicated operation degree of terminal equipment can also be simplified.
As shown in Figure 2, regulate the schematic flow sheet of method embodiment two of the camera parameter of terminal equipment for self adaptation of the present invention.The method that this self adaptation is regulated the camera parameter of terminal equipment comprises the steps:
Behind step 201, the startup terminal equipment, terminal equipment carries out web search and initialization;
Terminal equipment, portable terminal for example, after start, generally all can carry out web search and initialization automatically, to obtain the various system messages of Web broadcast, system message mainly comprises wireless network parameter main on the air interface, specifically has: information such as Network Recognition parameter, cell selecting parameter, system control parameters and network function parameter;
Step 202, obtain a plurality of system messages that comprise the Network Recognition parameter in the Web broadcast;
Search net in the terminal equipment start, obtain in the system message process, find the system message 3, system message 4, the system message 6 that comprise LAI;
Step 203, from system message extracting position district identification code;
LAI comprises: (Mobile Network Code is called for short: MNC) and Location Area Code (Local Area Code, abbreviation: LAC) for MCC, mobile network No..MCC is whole world unified distribution, becomes by thirty system array, and be 460 as China, Britain is 234, Peru is 716; MNC is distributed by unification of the motherland, forms by two decimal numbers, and be 00 as telecommunications, UNICOM is 01, LAC then is by each network operator's unified planning, forms by two bytes;
Step 204, if the lane place identification code in a plurality of system messages is consistent, then from the lane place identification code of extracting, obtain Mobile Country Code MCC;
After from system message 3, system message 4, system message 6, getting access to LAI respectively, judge that whether three LAI are consistent, confirm whether therefrom to obtain MCC again.From the LAI that extracts, obtain MCC and mainly can adopt following dual mode:
A kind of is to instruct by AT to obtain.AT is Attention, and AT instruction can be controlled many behaviors of portable terminal, comprises dial number, by key control, fax, GPRS or the like.AT instruction comprises: 1, querying command, promptly the AT instruction back adds "? ", promptly constitute querying command; 2, test command, promptly add in AT instruction back "=? ", promptly constitute test command; 3, generally speaking fill order adds that "=" and command parameter get final product after the AT instruction.Terminal equipment obtains MCC by the AT querying command, is the AT querying command: AT+COPS?, return results is MCC and terminal equipment place network MNC; Terminal equipment can also obtain MCC by the AT test command, is the AT test command: AT+COPS=?, return results is the all-network MNC under MCC and this MCC.But obtaining MCC by AT querying command or AT test command, is to have circumscribedly, and the AT querying command is searched at terminal equipment under the situation of net, registration failure, just can not obtain to order return value, promptly can not obtain MCC; The AT test command can be listed the all-network that terminal can search, but consuming time long.
Another kind is not need the terminal equipment active inquiry, but after being detected Mobile Country Code MCC and changed by network protocol stack, the Mobile Country Code MCC after upgrading is pushed to terminal equipment.Network protocol stack can active detecting MCC variation, and detecting when changing instant notice terminal equipment.Upgrade as the terminal equipment occurrence positions, promptly network protocol stack detects the variation of LAI, looks at whether the MCC number before and after the renewal of position is different, different, then new MCC notice terminal equipment.
The Mobile Country Code MCC that step 205, basis are obtained, self adaptation is regulated camera parameter;
In the general terminal equipment with the chip supply of material commercial city of camera head the function of configuration line time for exposure/frequency is provided, and can carry out the configuration of camera parameter by relevant register is set.Terminal equipment is in opening initialization search network process, by parsing the MCC among the LAI, the notice terminal equipment; The driver that terminal equipment calls in the camera head carries out the relevant register setting, find out the camera parameter that adapts with terminal equipment the country one belongs to, with the function of the Adaptive matching that reaches the camera head on terminal equipment the country one belongs to and the terminal equipment, the fringe phenomena when eliminating the camera head pictures taken.
The self adaptation that present embodiment provides is regulated the method for the camera parameter of terminal equipment, obtain Mobile Country Code MCC information by different modes, terminal equipment carries out the setting of the camera parameter of the camera head on it according to the MCC information of obtaining, do not need manual the regulating of user, just can eliminate the fringe phenomena of the picture of taking pictures.
As shown in Figure 3, regulate the structural representation of device embodiment one of the camera parameter of terminal equipment for self adaptation of the present invention.The device that this self adaptation is regulated the camera parameter of terminal equipment comprises: application module 1 is used for obtaining the Mobile Country Code MCC of lane place identification code; Photographing module 2 is used for the Mobile Country Code MCC that gets access to according to application module 1, and self adaptation is regulated camera parameter.Be specially: terminal equipment is after start, and in network search procedure, application module 1 can get access to the LAI in the system message, includes MCC among this LAI; After terminal equipment gets access to MCC, photographing module 2 will be according to the MCC that obtains, in this photographing module 2, search corresponding camera parameter in the corresponding module that stores MCC and the corresponding relation of camera parameter, mainly be row time for exposure/frequency, to adapt to the operating frequency of the present on-site alternating current of this terminal equipment.
The self adaptation that present embodiment provides is regulated the device of the camera parameter of terminal equipment, by utilizing terminal equipment can obtain the function of MCC automatically, the MCC that makes photographing module in the terminal equipment to obtain by the application module of terminal equipment comes self adaptation to regulate its camera parameter, find the capable time for exposure/frequency that is fit to each national alternating current operating frequency, the fringe phenomena of camera head when taking can be avoided, the complicated operation degree of terminal equipment can also be simplified.
As shown in Figure 4, regulate the structural representation of device embodiment two of the camera parameter of terminal equipment for self adaptation of the present invention.The device that this self adaptation is regulated the camera parameter of terminal equipment comprises: application module 1 and photographing module 2.Wherein:
Application module 1 also comprises: first acquisition module 11, be used for by web search, and obtain a plurality of system messages that comprise the Network Recognition parameter in the Web broadcast; Extraction module 12 is used for the identification code from system message extracting position district; Second acquisition module 13 is used for obtaining Mobile Country Code MCC from the lane place identification code of extracting.Wherein also comprise in second acquisition module 13: enquiry module 131 is used for obtaining Mobile Country Code MCC by inquiry; And/or test module 132, be used for obtaining Mobile Country Code MCC by test.Under the situation of a plurality of LAI unanimities that extraction module 12 extracts, second acquisition module 13 can obtain MCC by enquiry module 131 or test module 132, as shown in Figure 4, enquiry module 131 and test module 132 can all be included in second acquisition module 13, but only there is a job time; Perhaps second acquisition module 13 of the MCC that network protocol stack can also its detected variation of active push to the terminal equipment, network protocol stack can active detecting MCC variation, and detecting when changing instant notice terminal equipment.Upgrade as the terminal equipment occurrence positions, promptly network protocol stack detects the variation of LAI, looks at whether the MCC number before and after the renewal of position is different, different, then new MCC notice terminal equipment.
Photographing module 2 also comprises: deposit unit 21 is used to store the camera parameter of setting; Control unit 22 is used to obtain Mobile Country Code MCC, and corresponding camera parameter in the regulating and controlling deposit unit 21.
The self adaptation that present embodiment provides is regulated the device of the camera parameter of terminal equipment, obtain Mobile Country Code MCC information by different modes, terminal equipment carries out the setting of the camera parameter of the camera head on it according to the MCC information of obtaining, do not need manual the regulating of user, just can eliminate the fringe phenomena of the picture of taking pictures.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.