CN107766305A - Decoding algorithm determines method, apparatus, terminal and storage medium - Google Patents

Decoding algorithm determines method, apparatus, terminal and storage medium Download PDF

Info

Publication number
CN107766305A
CN107766305A CN201710994402.1A CN201710994402A CN107766305A CN 107766305 A CN107766305 A CN 107766305A CN 201710994402 A CN201710994402 A CN 201710994402A CN 107766305 A CN107766305 A CN 107766305A
Authority
CN
China
Prior art keywords
decoding algorithm
list
target
identification information
algorithm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710994402.1A
Other languages
Chinese (zh)
Inventor
俞义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710994402.1A priority Critical patent/CN107766305A/en
Publication of CN107766305A publication Critical patent/CN107766305A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present application discloses a kind of decoding algorithm and determines method, apparatus, terminal and storage medium, and this method includes:Judge whether target code meets the first decoding algorithm and the second decoding algorithm;If target code meets the first decoding algorithm and the second decoding algorithm, or target code does not meet the first decoding algorithm and the second decoding algorithm, then obtains the target identification information of WAP corresponding to the target code;Judge to whether there is the target identification information in the presets list;If there is the target identification information, then target unlocking algorithm is determined according to the list attribute information of described the presets list.The application can improve target code decoding accuracy.

Description

Decoding algorithm determines method, apparatus, terminal and storage medium
Technical field
The invention relates to route decoding technique, more particularly to a kind of decoding algorithm determine method, apparatus, terminal and Storage medium.
Background technology
With the development of radio network technique, the increasing using terminal of user is connected to wireless network.In connection nothing During gauze network, user selects an objective network according to the network name of wireless network first, and it is close then to input correct network Code signs in objective network.
The network name of objective network is also known as service set (Service Set Identifier, SSID).Android The SSID coded systems that system is supported include Unicode codings and GBK codings.But Android system terminal is in display wireless network During network title, often there is the phenomenon of SSID decoding errors, SSID decoding efficiency is low.It can be seen that SSID decoding processes need to be changed Enter.
The content of the invention
The embodiment of the present application provides a kind of decoding algorithm and determines method, apparatus, terminal and storage medium, can improve service Set identifier decodes accuracy.
In a first aspect, the embodiment of the present application, which provides a kind of decoding algorithm, determines method, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm;
If target code meets the first decoding algorithm and the second decoding algorithm, or target code does not meet the first decoding Algorithm and the second decoding algorithm, then obtain the target identification information of WAP corresponding to the target code;
Judge to whether there is the target identification information in the presets list;
If there is the target identification information, then determine that target unlocks according to the list attribute information of described the presets list Algorithm.
Second aspect, the embodiment of the present application additionally provide a kind of decoding algorithm determining device, including:
First judge module, for judging whether target code meets the first decoding algorithm and the second decoding algorithm;
Acquisition module, if judging that target code meets the first decoding algorithm and the second solution for first judge module Code algorithm, or target code do not meet the first decoding algorithm and the second decoding algorithm, then obtain corresponding to the target code The target identification information of WAP;
Second judge module, for judging to whether there is the target identification information in the presets list;
Determining module, if judging the target identification information be present for second judge module, according to The list attribute information of the presets list determines target unlocking algorithm.
The third aspect, the embodiment of the present application additionally provide a kind of terminal, and the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processing Device realizes that the decoding algorithm as shown in first aspect determines method.
Fourth aspect, the embodiment of the present application additionally provide a kind of computer-readable recording medium, are stored thereon with computer Program, realize that the decoding algorithm as shown in first aspect determines method when the program is executed by processor.
The application first determines whether target code meets the first decoding algorithm and the second decoding algorithm;Secondly, if mesh Mark coding meets the first decoding algorithm and the second decoding algorithm, or target code does not meet the first decoding algorithm and the second decoding Algorithm, then obtain the target identification information of WAP corresponding to target code;Again, judge to whether there is in the presets list Target identification information;Finally, if there is target identification information, then target solution is determined according to the list attribute information of the presets list Lock algorithm, it is possible to increase target code (SSID) decodes accuracy.
Brief description of the drawings
Fig. 1 is the flow chart that a decoding algorithm in the embodiment of the present application determines method;
Fig. 2 is the bullet frame schematic diagram in the embodiment of the present application;
Fig. 3 is the flow chart that another decoding algorithm in the embodiment of the present application determines method;
Fig. 4 is the structural representation of a decoding algorithm determining device in the embodiment of the present application;
Fig. 5 is the structural representation of a terminal in the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the application, rather than the restriction to the application.It also should be noted that in order to just The part related to the application rather than entire infrastructure are illustrate only in description, accompanying drawing.
With the development of wireless network, terminal can get neighbouring wireless network, and connected and arranged by wireless network The traveling of table, the title (such as SSID) of wireless network around is shown to user.User selects some wireless network to be connect Enter, and then realize and accessed by the internet based on WLAN (such as wifi).The characters such as man are as wireless network The part of title, need to be encoded in transmitting terminal (such as radio access node), and solved in receiving terminal (such as mobile phone) Code.But due to having much for the coded system of man, receiving terminal can not know transmitting terminal using which kind of coding staff Formula, therefore occur that the receiving terminal decoding process used and compiling method mode that transmitting terminal uses are inconsistent, cause decoding error Situation.Now, the wireless network name that receiving terminal is shown is the title of mess code or display mistake, causes user can not the degree of accuracy Find objective network.
The application first judges the form of target code, looked for before being decoded to target code (SSID after coding) To decoding algorithm corresponding to target code.Especially when target code had not both met Unicode codings did not met GBK codings yet When, by way of inquiring user, it is determined that final decoding process.Realization accurately decodes to target code, improves SSID decoding efficiency.The technical scheme provided below in conjunction with the accompanying drawings the application is described in detail.
Fig. 1 is the flow chart that a kind of decoding algorithm that the embodiment of the present application provides determines method, and the present embodiment is applicable to The situation that terminal-pair service set (Service Set Identifier, abbreviation SSID) is identified, this method can be by The terminal of objective network is connected to perform, the terminal can be mobile terminal, tablet personal computer, wearable device, notebook electricity Brain etc., this method specifically comprises the following steps:
Step 110, judge whether target code meets the first decoding algorithm and the second decoding algorithm.
Wireless access points (WirelessAccessPoint, abbreviation AP) are by the title of itself with service set Traveling is broadcasted.When terminal is entered in the range of AP, the SSID of AP broadcast can detect.In order to guarantee data security, AP exists Before sending SSID, SSID can be encoded.The rule of coding can according to coding method corresponding to the first decoding algorithm, It can be coding method corresponding to the second decoding algorithm.Optionally, coding method corresponding to the first decoding algorithm is Unicode (Unicode) decoding algorithm, coding method corresponding to the second decoding algorithm are Chinese Internal Code Specification (Chinese Internal Code Specification, GBK) decoding algorithm.Wherein, in Unicode code characters transmitting procedure, use UTF-8 coding transmissions, for the sake of convenient, the character of Unicode codings is also known as UTF-8 code characters, Unicode decoding algorithms Also known as UTF-8 decoding algorithms.UTF-8 (8-bit Unicode Transformation Format) is that one kind is directed to Unicode variable length character coding, also known as Unicode.AP can be based on any one mode pair in Unicode or GBK SSID is encoded.In the specification that GBK is encoded and UTF-8 is encoded there is the character repeated in itself, if having used mistake during decoding By mistake decoding process mistake then occurs, cause wifi hotspot title show mess code the problem of.
Terminal listen to AP broadcast coding SSID after, the SSID of coding form is judged first, Determine whether to meet the first decoding algorithm, do not meet the second decoding algorithm.Or, if meet the second decoding algorithm, do not meet First decoding algorithm.Or judge whether to meet the first decoding algorithm and the second decoding algorithm simultaneously.Or judge whether i.e. Do not meet the first decoding algorithm and do not meet the second decoding algorithm again.
In one implementation, it can judge whether target code meets the first decoding algorithm and based on byte quantity Two decoding algorithms.
Because GBK is encoded by the way of two byte representations, one character, therefore after target code is got, Judge whether target code is even bit.If even bit, then it can primarily determine that and meet UTF-8 or GBK.If odd number Position, then can determine that and only meet UTF-8.
In addition, UTF-8 is usually 2-4 positions to the character quantity of target code, if the character quantity of target code is more than 4 Position, then can determine that it is applied to GBK.
In another implementation, can be judged based on span target code whether meet the first decoding algorithm and Second decoding algorithm.
UTF-8 span covers Chinese and English character, and GBK only covers whole Chinese texts.Therefore GBK span whether can be exceeded according to target code, determine that target code meets and whether meet UTF-8.
In another implementation, the list of physical addresses stored is also based on, judges whether target code accords with Close the first decoding algorithm and the second decoding algorithm.
If the communication connection that AP is successfully established with terminal, i.e. terminal have used correct SSID and have input correctly close Code, then record the facility information of the AP and the decoding algorithm corresponding relation of use, obtain list of physical addresses in the terminal.Should Facility information includes physical address, and obtained corresponding relation can be entered by the mode of key-value pair (physical address, decoding algorithm) Row storage.When terminal and the AP are again coupled to, AP physical address can be first searched from the list of physical addresses of preservation, according to The physical address determines decoding algorithm.
Specifically, first, obtain target physical address corresponding to target code.Then, whether target physical address is judged It is present in first list and second list simultaneously, or is not present in first list and second list;First list is used to remember The physical address of the first decoding algorithm matching is recorded, second list is used for the physical address for recording the matching of the second decoding algorithm.
List of physical addresses is stored with respectively in first list and second list.When terminal is successfully accessed to certain wireless network Afterwards, terminal obtains the physical address of WAP corresponding to the wireless network, according to the network name for decoding the wireless network It is that the decoding algorithm used is updated to first list or second list.If specifically, use the first decoding algorithm, The physical address of the WAP is then added in first list.If the second decoding algorithm is used, in secondary series The physical address of the WAP is added in table.In addition, first look for whether having deposited in first list or second list In the physical address, if existing, cancel addition operation.
If step 120, target code meet the first decoding algorithm and the second decoding algorithm, or target code is not met First decoding algorithm and the second decoding algorithm, then obtain the target identification information of WAP corresponding to target code.
The target identification information of wireless access point AP is used to uniquely represent WAP.Optionally, can be by wireless access The physical address (mac addresses) of point is used as target identification information.
In one implementation, if WAP is the wireless router of family or company, nothing can be passed through The route-map paster that the line router back side is pasted obtains.User can be taken pictures by camera function to paster, and be passed through Text region obtains the physical address of wireless router.Or router rs name is manually entered according to paster by user.
In another implementation, terminal can send query statement to WAP and then obtain WAP Physical address information.Usual wireless router is provided with feeding back the function of physical address.
Step 130, judge to whether there is target identification information in the presets list.
The presets list can be above-mentioned first list and second list.First list and second list can pass through database Management software is managed.The query statement such as select sentences being equipped with by database, can be in first list and second list In search whether target identification information be present.
Optionally, looked in being searched in first list (or second list) and search whether target identification information be present.If Target identification information is not present in first list (or second list), then searches whether to deposit in second list (or first list) In target identification information.
When target identification information be present in first list (or secondary series), can cancel in second list (or first row Table) in search.But probably due to the mode such as maloperation has used the second decoding process to be successfully decoded, in order to multiple before user Conjunction whether there is the situation, search whether target identification information be present in second list (or first list).If secondary series Then illustrate that target identification information only exists and first list in the absence of target identification information in table.If mesh in second list be present Identification information is marked, then needs to export two kinds of decoded results, correct decoded result is determined according to the feedback information that user triggers, entered And the corresponding list item in first list or second list is deleted.
Step 140, if there is target identification information, then determine that target unlocks according to the list attribute information of the presets list Algorithm.
Optionally, the list attribute information of preset table can be the title of list.Exemplary, if in first list Target identification information be present, then read the title of first list, target unlocking algorithm is determined according to the title of first list.If Target identification information in second list be present, then read the title of second list, target solution is determined according to the title of second list Lock algorithm.
Further, if target identification information had not only been present in first list but also was present in second list, by the first solution One in code algorithm and the second decoding algorithm is defined as default decoding algorithm, and therein another is defined as into other decodings Algorithm.
Target code is decoded using default decoding algorithm, and the decoded result is exported.
Optionally, when exporting decoded result, identifier is added first for wireless network name corresponding to target code.So Afterwards, when user clicks on identifier, output plays frame, plays the feedback information that frame is used to show decoded result and receive user's input.
Wherein, identifier can be newly-increased prompting icon in list item corresponding to target code in wireless network list, should Network name in the icon representation list item is to be confirmed.The SSID that bullet frame obtains including the default decoding algorithm of basis, and for The correct button and wrong button of family input feedback information.If user clicks on correct button, triggering confirms instruction.If with Wrong button is clicked at family, then instruction is changed in triggering.
Further, if exporting the SSID and obtained using other decoding algorithms that default decoding algorithm obtains in frame is played The SSID arrived.Decoding algorithm corresponding to the SSID that user is clicked on is defined as target decoder algorithm.As shown in Fig. 2 using default The SSID that decoding algorithm obtains is network D, and the SSID obtained using other decoding algorithms is network D-1.User, which clicks on, wherein to be appointed Meaning one when, triggering confirm instruction.Decoding algorithm is defined as target decoder used by terminal will confirm that the SSID that instruction is pointed to Algorithm.
User can be determined correct when requiring connect to the wireless network of some AP offers by AP supplier SSID.Such as the WiFi titles in its family of inquiry householder, or the WiFi titles of inquiry waiter retail shop.If wireless network arranges The SSID that user finds is not present in table, then user can click on the identifier in wireless network list, and then trigger and play frame, and defeated Enter feedback command.
Because user knows its SSID found, thus the feedback message inputted according to user can determine that it is currently used pre- If whether decoding algorithm is correct.If incorrect use other decoding processes instead, and will use what other decoding processes obtained Decoded result is exported, then obtains the feedback information of user's input, and determines target decoder algorithm according to feedback information.
Optionally, if user's input validation instructs, default decoding algorithm is defined as target decoder algorithm.If with Instruction is changed in family input, then other decoding algorithms is defined as into target decoder algorithm, other decoding algorithms are the first decoding algorithm With the decoding algorithm in the second decoding algorithm in addition to default decoding algorithm.
The decoding algorithm that the embodiment of the present application provides determines method, first determines whether target code meets the first decoding calculation Method and the second decoding algorithm;Secondly, if target code meets the first decoding algorithm and the second decoding algorithm, or target code The first decoding algorithm and the second decoding algorithm are not met, then obtains the target identification letter of WAP corresponding to target code Breath;Again, judge to whether there is target identification information in the presets list;Finally, if there is target identification information, then according to pre- If the list attribute information of list determines target unlocking algorithm.Fixed relative to using default algorithm in correlation technique or using Decoding algorithm, the application can meet the first decoding algorithm and the second decoding algorithm, or target judging target code When coding does not meet the first decoding algorithm and the second decoding algorithm, determine that target code is corresponding according to first list or second list Target decoder algorithm, realize accurately search decoding algorithm, improve SSID decoding efficiencies.
Above-described embodiment is specifically described below by one embodiment, the scene is that user is obtained using mobile phone Wifi lists, as shown in figure 3, including:
Step 210, mobile phone around searching after AP, judge coding corresponding to AP SSID whether UTF-8 decoding algorithms With GBK decoding algorithms.
Specifically, judge whether to meet the requirement of UTF-8 bytes number and whether meet GBK coding span requirements.
If step 220, meeting UTF-8 decoding algorithms, GBK decoding algorithms are not met, then judge that current SSID belongs to UTF-8 is encoded, and the physical address of the AP is added in UTF-8 the encoding lists.
In the present embodiment, UTF-8 and AP relation list can be established, wherein preserving the physics for the AP for meeting UTF-8 Address.
If step 230, not meeting UTF-8 decoding algorithms, meet GBK decoding algorithms, then judge that current SSID belongs to UTF-8 is encoded, and the MAC of AP address is added in the list of GBK codings.
In the present embodiment, GBK and AP relation list can be established, wherein preserving the physical address for the AP for meeting GBK.
If step 240, meeting UTF-8 decoding algorithms and also complying with GBK decoding algorithms, or do not meet UTF-8 decodings and calculate Method does not meet GBK decoding algorithms yet, then obtains the physical address of WAP corresponding to target code.
Step 250, judge to whether there is target identification information in first list or second list.
If target identification information be present in step 260, first list, the first decoding algorithm is defined as target decoder Algorithm.If target identification information in second list be present, the second decoding algorithm is defined as target decoder algorithm.
If target identification information in step 270, first list and second list be present, or first list and second Target identification information is not present in list, then target code is carried out using the first decoding algorithm and the second decoding algorithm respectively Decode and export decoded result.
Step 280, the feedback information inputted according to user determine target decoder algorithm.
If there is target identification information, then target unlocking algorithm is determined according to the list attribute information of the presets list.
Fig. 4 is a kind of structural representation for decoding algorithm determining device that the embodiment of the present application provides, and the device is used for real The above-mentioned method of existing above-described embodiment, the device are located in mobile terminal, including:
First judge module 310, for judging whether target code meets the first decoding algorithm and the second decoding algorithm;
Acquisition module 320, if for first judge module 310 judge target code meet the first decoding algorithm and Second decoding algorithm, or target code do not meet the first decoding algorithm and the second decoding algorithm, then obtain the target code The target identification information of corresponding WAP;
Second judge module 330, for judging to whether there is the target identification information in the presets list;
Determining module 340, if judging the target identification information, root be present for second judge module 330 Target unlocking algorithm is determined according to the list attribute information of described the presets list.
Further, first judge module 310 is used for:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on byte quantity.
Further, first judge module 310 is used for:
It is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on span.
Further, first judge module 310 is used for:
It is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Obtain target physical address corresponding to target code;
Judge the target physical address whether and meanwhile be present in first list and second list, or be not present in institute State first list and the second list;The first list is used for the physical address for recording the matching of the first decoding algorithm, described Second list is used for the physical address for recording the matching of the second decoding algorithm.
Further, second judge module 330 is used for:
Looked in being searched in the first list and search whether the target identification information be present;
If the target identification information is not present in the first list, search whether to deposit in the second list In the target identification information.
Further, the determining module 340 is used for:
If the target identification information in the first list be present, the title of the first list is read, according to The title of the first list determines target unlocking algorithm;
If the target identification information in the second list be present, the title of the second list is read, according to The title of the second list determines target unlocking algorithm.
Further, the first decoding algorithm is Unicode decoding algorithm, and the second decoding algorithm is Chinese Internal Code Specification Decoding algorithm.
The decoding algorithm that the embodiment of the present application provides determines method, and the first judge module 310 first judges that target code is It is no to meet the first decoding algorithm and the second decoding algorithm;Secondly, if target code meets the first decoding algorithm and the second decoding Algorithm, or target code do not meet the first decoding algorithm and the second decoding algorithm, then acquisition module 320 obtains the target and compiled The target identification information of WAP corresponding to code;Again, the second judge module 330 judges to whether there is institute in the presets list State target identification information;Finally, if there is the target identification information, it is determined that module 340 is according to described the presets list List attribute information determines target unlocking algorithm.Calculated relative to using default algorithm in correlation technique or using fixed decoding Method, the application can meet the first decoding algorithm and the second decoding algorithm judging target code, or target code is not inconsistent When closing the first decoding algorithm and the second decoding algorithm, the target solution according to corresponding to first list or second list determine target code Code algorithm, realizes and accurately searches decoding algorithm, improves SSID decoding efficiencies.
Said apparatus can perform the method that the foregoing all embodiments of the application are provided, and it is corresponding to possess the execution above method Functional module and beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the foregoing all implementations of the application The method that example is provided.
Fig. 5 is a kind of structural representation for terminal that the embodiment of the present application provides.As shown in figure 5, the terminal can include: Housing (not shown), first memory 401, the first central processing unit (Central Processing Unit, CPU) 402 (also known as first processor, hereinafter referred to as CPU), it is stored on first memory 401 and can be run on first processor 402 Computer program, circuit board (not shown) and power circuit (not shown).Foregoing circuit plate is placed in above-mentioned housing The interior volume surrounded;Above-mentioned CPU402 and above-mentioned first memory 401 are arranged on foregoing circuit plate;Above-mentioned power circuit, For each circuit or the device power supply for above-mentioned terminal;Above-mentioned first memory 401, for storing executable program code; Above-mentioned CPU402 is run and above-mentioned executable journey by reading the executable program code stored in above-mentioned first memory 401 Program corresponding to sequence code, for performing:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm;
If target code meets the first decoding algorithm and the second decoding algorithm, or target code does not meet the first decoding Algorithm and the second decoding algorithm, then obtain the target identification information of WAP corresponding to the target code;
Judge to whether there is the target identification information in the presets list;
If there is the target identification information, then determine that target unlocks according to the list attribute information of described the presets list Algorithm.
Above-mentioned terminal also includes:Peripheral Interface 403, RF (Radio Frequency, radio frequency) circuit 405, voicefrequency circuit 406th, loudspeaker 411, power management chip 408, input/output (I/O) subsystem 409, touch-screen 412, other input/controls Equipment 410 and outside port 404, these parts are communicated by one or more communication bus or signal wire 407.
In addition, terminal also includes camera and RGB light sensor.RGB light sensor is located at beside camera, can be with It is disposed adjacent with camera.Camera can be that front camera can also be rear camera.RGB light sensor can be with It is first-class such as disposed in the narrow side of terminal side with camera configured separate, example.
It should be understood that graphic terminal 400 is only an example of terminal, and terminal 400 can have than figure Shown in more or less parts, two or more parts can be combined, or can have different portions Part configures.Various parts shown in figure can be including one or more signal transactings and/or application specific integrated circuit Hardware, software or hardware and software combination in realize.
The terminal provided below with regard to the present embodiment is described in detail, and the terminal is by taking smart mobile phone as an example.
First memory 401, above-mentioned first memory 401 can be accessed by CPU402, Peripheral Interface 403 etc., and above-mentioned One memory 401 can include high random access first memory, can also include non-volatile first memories, such as one Individual or multiple disk first memory parts, flush memory device or other volatile solid-state first memory parts.
The input of equipment and output peripheral hardware can be connected to CPU402 and the by Peripheral Interface 403, above-mentioned Peripheral Interface 403 One memory 401.
I/O subsystems 409, above-mentioned I/O subsystems 409 can be by the input/output peripherals in equipment, such as touch-screen 412 With other input/control devicess 410, Peripheral Interface 403 is connected to.I/O subsystems 409 can include the He of display controller 4091 For controlling one or more input controllers 4092 of other input/control devicess 410.Wherein, one or more input controls Device 4092 processed receives electric signal from other input/control devicess 410 or sends electric signal to other input/control devicess 410, Other input/control devicess 410 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 4092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Wherein, according to touch-screen operation principle and transmission information medium classification, touch-screen 412 can be resistance-type, Capacitor induction type, infrared-type or surface acoustic wave type.Classify according to mounting means, touch-screen 412 can be:It is external hanging type, built-in Formula or monoblock type.Classify according to technical principle, touch-screen 412 can be:Vector pressure sensing technology touch-screen, resistive technologies are touched Touch screen, capacitance technology touch-screen, infrared technology touch-screen or surface acoustic wave technique touch-screen.
Touch-screen 412, above-mentioned touch-screen 412 are the input interface and output interface between user terminal and user, can It can include figure, text, icon, video etc. to user, visual output depending on output display.Optionally, touch-screen 412 is by user The electric signal (electric signal of such as contact surface) triggered on touch screen curtain, is sent to first processor 402.
Display controller 4091 in I/O subsystems 409 receives electric signal from touch-screen 412 or sent out to touch-screen 412 Electric signals.Touch-screen 412 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 4091 The interaction of user interface object on touch-screen 412, that is, realize man-machine interaction, the user interface being shown on touch-screen 412 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 405, it is mainly used in establishing the communication of intelligent sound box and wireless network (i.e. network side), realizes intelligent sound box Data receiver and transmission with wireless network.Such as transmitting-receiving short message, Email etc..
Voicefrequency circuit 406, it is mainly used in receiving voice data from Peripheral Interface 403, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 411.
Loudspeaker 411, for the voice signal for receiving intelligent sound box from wireless network by RF circuits 405, it is reduced to Sound simultaneously plays the sound to user.
Power management chip 408, the hardware for being connected by CPU402, I/O subsystem and Peripheral Interface are powered And power management.
In the present embodiment, central first processor 402 is used for:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm;
If target code meets the first decoding algorithm and the second decoding algorithm, or target code does not meet the first decoding Algorithm and the second decoding algorithm, then obtain the target identification information of WAP corresponding to the target code;
Judge to whether there is the target identification information in the presets list;
If there is the target identification information, then determine that target unlocks according to the list attribute information of described the presets list Algorithm.
Further, it is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on byte quantity.
Further, it is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on span.
Further, it is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Obtain target physical address corresponding to target code;
Judge the target physical address whether and meanwhile be present in first list and second list, or be not present in institute State first list and the second list;The first list is used for the physical address for recording the matching of the first decoding algorithm, described Second list is used for the physical address for recording the matching of the second decoding algorithm.
Further, it whether there is the target identification information in described judgement the presets list, including:
Looked in being searched in the first list and search whether the target identification information be present;
If the target identification information is not present in the first list, search whether to deposit in the second list In the target identification information.
Further, the list attribute information according to described the presets list determines target unlocking algorithm, including:
If the target identification information in the first list be present, the title of the first list is read, according to The title of the first list determines target unlocking algorithm;
If the target identification information in the second list be present, the title of the second list is read, according to The title of the second list determines target unlocking algorithm.
Further, the first decoding algorithm is Unicode decoding algorithm, and the second decoding algorithm is Chinese Internal Code Specification Decoding algorithm.
The embodiment of the present application additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, the journey Sequence can realize following steps when being executed by processor:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm;
If target code meets the first decoding algorithm and the second decoding algorithm, or target code does not meet the first decoding Algorithm and the second decoding algorithm, then obtain the target identification information of WAP corresponding to the target code;
Judge to whether there is the target identification information in the presets list;
If there is the target identification information, then determine that target unlocks according to the list attribute information of described the presets list Algorithm.
Further, it is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on byte quantity.
Further, it is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on span.
Further, it is described to judge whether target code meets the first decoding algorithm and the second decoding algorithm, including:
Obtain target physical address corresponding to target code;
Judge the target physical address whether and meanwhile be present in first list and second list, or be not present in institute State first list and the second list;The first list is used for the physical address for recording the matching of the first decoding algorithm, described Second list is used for the physical address for recording the matching of the second decoding algorithm.
Further, it whether there is the target identification information in described judgement the presets list, including:
Looked in being searched in the first list and search whether the target identification information be present;
If the target identification information is not present in the first list, search whether to deposit in the second list In the target identification information.
Further, the list attribute information according to described the presets list determines target unlocking algorithm, including:
If the target identification information in the first list be present, the title of the first list is read, according to The title of the first list determines target unlocking algorithm;
If the target identification information in the second list be present, the title of the second list is read, according to The title of the second list determines target unlocking algorithm.
Further, the first decoding algorithm is Unicode decoding algorithm, and the second decoding algorithm is Chinese Internal Code Specification Decoding algorithm.
The computer-readable storage medium of the embodiment of the present application, any of one or more computer-readable media can be used Combination.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes:Tool There are the electrical connections of one or more wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any includes or the tangible medium of storage program, the program can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
Can with one or more programming languages or its combination come write for perform the application operation computer Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, also wrapped Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete Ground is performed, partly performed on the user computer on the user computer, the software kit independent as one performs, partly existed Subscriber computer upper part is performed or performed completely on remote computer or server on the remote computer.It is being related to In the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or wide area Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP To pass through Internet connection).
Pay attention to, above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also Other more equivalent embodiments can be included, and scope of the present application is determined by scope of the appended claims.

Claims (10)

1. a kind of decoding algorithm determines method, it is characterised in that including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm;
If target code meets the first decoding algorithm and the second decoding algorithm, or target code does not meet the first decoding algorithm With the second decoding algorithm, then the target identification information of WAP corresponding to the target code is obtained;
Judge to whether there is the target identification information in the presets list;
If there is the target identification information, then determine that target unblock is calculated according to the list attribute information of described the presets list Method.
2. decoding algorithm according to claim 1 determines method, it is characterised in that described to judge whether target code meets First decoding algorithm and the second decoding algorithm, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on byte quantity.
3. decoding algorithm according to claim 1 determines method, it is characterised in that described to judge whether target code meets First decoding algorithm and the second decoding algorithm, including:
Judge whether target code meets the first decoding algorithm and the second decoding algorithm based on span.
4. decoding algorithm according to claim 1 determines method, it is characterised in that described to judge whether target code meets First decoding algorithm and the second decoding algorithm, including:
Obtain target physical address corresponding to target code;
Judge the target physical address whether and meanwhile be present in first list and second list, or be not present in described One list and the second list;Physical address of the first list for recording the matching of the first decoding algorithm, described second List is used for the physical address for recording the matching of the second decoding algorithm.
5. decoding algorithm according to claim 4 determines method, it is characterised in that described to judge whether deposited in the presets list In the target identification information, including:
Looked in being searched in the first list and search whether the target identification information be present;
If the target identification information is not present in the first list, search whether institute be present in the second list State target identification information.
6. decoding algorithm according to claim 5 determines method, it is characterised in that the row according to described the presets list Table Properties information determines target unlocking algorithm, including:
If the target identification information in the first list be present, the title of the first list is read, according to described The title of first list determines target unlocking algorithm;
If the target identification information in the second list be present, the title of the second list is read, according to described The title of second list determines target unlocking algorithm.
7. the decoding algorithm according to any one of claim 1-6 determines method, it is characterised in that the first decoding algorithm is Unicode decoding algorithm, the second decoding algorithm are Chinese Internal Code Specification decoding algorithm.
A kind of 8. decoding algorithm determining device, it is characterised in that including:
First judge module, for judging whether target code meets the first decoding algorithm and the second decoding algorithm;
Acquisition module, if judging that target code meets the first decoding algorithm and the second decoding is calculated for first judge module Method, or target code do not meet the first decoding algorithm and the second decoding algorithm, then obtain wireless corresponding to the target code The target identification information of access point;
Second judge module, for judging to whether there is the target identification information in the presets list;
Determining module, if judging the target identification information be present for second judge module, according to described default The list attribute information of list determines target unlocking algorithm.
9. a kind of terminal, it is characterised in that the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real Now the decoding algorithm as described in any in claim 1-7 determines method.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor Realize that the decoding algorithm as described in any in claim 1-7 determines method during execution.
CN201710994402.1A 2017-10-23 2017-10-23 Decoding algorithm determines method, apparatus, terminal and storage medium Pending CN107766305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710994402.1A CN107766305A (en) 2017-10-23 2017-10-23 Decoding algorithm determines method, apparatus, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710994402.1A CN107766305A (en) 2017-10-23 2017-10-23 Decoding algorithm determines method, apparatus, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN107766305A true CN107766305A (en) 2018-03-06

Family

ID=61269910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710994402.1A Pending CN107766305A (en) 2017-10-23 2017-10-23 Decoding algorithm determines method, apparatus, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107766305A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517385A (en) * 2012-07-11 2014-01-15 Tcl集团股份有限公司 AP connecting method and system of Wi-Fi of Android
CN103634475A (en) * 2013-12-09 2014-03-12 中国联合网络通信集团有限公司 Mobile terminal and method of displaying network name thereon
CN104754701A (en) * 2015-03-09 2015-07-01 广东欧珀移动通信有限公司 Signal processing method and mobile terminal
CN104994128A (en) * 2015-05-15 2015-10-21 北京网康科技有限公司 Data coding type identifying and transcoding method and device
CN106068028A (en) * 2016-07-04 2016-11-02 青岛海信宽带多媒体技术有限公司 Terminal processes method and the terminal of wireless network name mess code
US20170032163A1 (en) * 2015-07-31 2017-02-02 Denso Wave Incorporated System and method of reading information code

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517385A (en) * 2012-07-11 2014-01-15 Tcl集团股份有限公司 AP connecting method and system of Wi-Fi of Android
CN103634475A (en) * 2013-12-09 2014-03-12 中国联合网络通信集团有限公司 Mobile terminal and method of displaying network name thereon
CN104754701A (en) * 2015-03-09 2015-07-01 广东欧珀移动通信有限公司 Signal processing method and mobile terminal
CN104994128A (en) * 2015-05-15 2015-10-21 北京网康科技有限公司 Data coding type identifying and transcoding method and device
US20170032163A1 (en) * 2015-07-31 2017-02-02 Denso Wave Incorporated System and method of reading information code
CN106068028A (en) * 2016-07-04 2016-11-02 青岛海信宽带多媒体技术有限公司 Terminal processes method and the terminal of wireless network name mess code

Similar Documents

Publication Publication Date Title
CN107463693A (en) A kind of data processing method, device, terminal and computer-readable recording medium
CN108984081A (en) A kind of searched page exchange method, device, terminal and storage medium
CN110235087B (en) Method and terminal for realizing voice control
CN109188927A (en) Appliance control method, device, gateway and storage medium
CN103475667A (en) Method, device and system for controlling access router
CN106601248A (en) Smart home system based on distributed voice control
CN104796385A (en) Terminal binding method, device and system
KR102190436B1 (en) Electronic device and method for transceiving data
US9977646B2 (en) Broadcast control and accrued history of media
CN107767228A (en) Using recommendation method, apparatus, terminal device and storage medium
CN103687063B (en) A kind of method of interconnection network, device and terminal equipment
CN107729538A (en) comment information processing method, device, terminal device and storage medium
CN107172258A (en) A kind of method, device, terminal and storage medium for preserving associated person information
CN105354459B (en) Information processing method and device and electronic equipment
CN107222626A (en) Screen content display method and device and electronic equipment
CN107708183A (en) Decoding algorithm determines method, apparatus, terminal and storage medium
CN107330013B (en) Method and equipment for user recommendation
CN107766550A (en) comment information processing method, device, terminal device and storage medium
CN107729302A (en) Decoding algorithm determines method, apparatus, terminal and storage medium
CN107766305A (en) Decoding algorithm determines method, apparatus, terminal and storage medium
CN109168184A (en) Information interacting method and Related product based on neighbouring sensing network NAN
CN107770844A (en) Decoding algorithm determines method, apparatus, terminal and storage medium
CN107797976A (en) Decoding algorithm determines method, apparatus, terminal and storage medium
CN105094028A (en) Abnormal state prompting method of sweeping robot and server
CN108600084A (en) Information transferring method, device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180306