CN107708183B - Decoding algorithm determination method, device, terminal and storage medium - Google Patents

Decoding algorithm determination method, device, terminal and storage medium Download PDF

Info

Publication number
CN107708183B
CN107708183B CN201710993309.9A CN201710993309A CN107708183B CN 107708183 B CN107708183 B CN 107708183B CN 201710993309 A CN201710993309 A CN 201710993309A CN 107708183 B CN107708183 B CN 107708183B
Authority
CN
China
Prior art keywords
decoding algorithm
target
decoding
determining
target code
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.)
Active
Application number
CN201710993309.9A
Other languages
Chinese (zh)
Other versions
CN107708183A (en
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 CN201710993309.9A priority Critical patent/CN107708183B/en
Publication of CN107708183A publication Critical patent/CN107708183A/en
Application granted granted Critical
Publication of CN107708183B publication Critical patent/CN107708183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • H04L1/0046Code rate detection or code type detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a decoding algorithm determining method, a device, a terminal and a storage medium, wherein the method comprises the following steps: judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm; if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code; and determining a target decoding algorithm according to the target identification information. The target coding and decoding accuracy can be improved.

Description

Decoding algorithm determination method, device, terminal and storage medium
Technical Field
The present disclosure relates to routing decoding technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for determining a decoding algorithm.
Background
With the development of wireless network technology, users increasingly use terminals to connect to wireless networks. When connecting the wireless network, the user firstly selects a target network according to the network name of the wireless network, and then inputs a correct network password to log in the target network.
The network name of the target network is also called Service Set Identifier (SSID). SSID encoding modes supported by the android system comprise Unicode encoding and GBK encoding. However, when the android system terminal displays the wireless network name, the SSID decoding error often occurs, and the SSID decoding efficiency is low. It can be seen that the SSID decoding scheme is to be improved.
Disclosure of Invention
The embodiment of the application provides a decoding algorithm determining method, a decoding algorithm determining device, a terminal and a storage medium, and can improve the decoding accuracy of service set identification.
In a first aspect, an embodiment of the present application provides a method for determining a decoding algorithm, including:
judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code;
and determining a target decoding algorithm according to the target identification information.
In a second aspect, an embodiment of the present application further provides a decoding algorithm determining apparatus, including:
the judging module is used for judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
the acquisition module is used for acquiring target identification information of the wireless access point corresponding to the target code if the judgment module judges that the target code conforms to the first decoding algorithm and the second decoding algorithm or the target code does not conform to the first decoding algorithm and the second decoding algorithm;
and the determining module is used for determining a target decoding algorithm according to the target identification information acquired by the acquiring module.
In a third aspect, an embodiment of the present application further provides a terminal, where the terminal includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the decoding algorithm determination method as shown in the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the decoding algorithm determination method as shown in the first aspect.
The method comprises the steps of firstly, judging whether a target code accords with a first decoding algorithm and a second decoding algorithm; if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code; and finally, determining a target decoding algorithm according to the target identification information, so that the target coding (SSID) decoding accuracy can be improved.
Drawings
FIG. 1 is a flow chart of a decoding algorithm determination method in an embodiment of the present application;
FIG. 2 is a schematic view of a bullet box in an embodiment of the present application;
FIG. 3 is a flow chart of another decoding algorithm determination method in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a decoding algorithm determining apparatus in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal in the embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
With the development of wireless networks, a terminal can acquire a nearby wireless network and display the names (such as SSIDs) of the surrounding wireless networks to a user through the running of a wireless network connection list. A user selects a certain wireless network for access, and then internet access based on a wireless local area network (such as wifi) is achieved. Characters such as Chinese characters are used as components of a wireless network name, and need to be encoded at a sending end (such as a wireless access node) and decoded at a receiving end (such as a mobile phone). However, since there are many encoding methods for chinese characters, the receiving end cannot know which encoding method is used by the transmitting end, and therefore, the decoding method used by the receiving end is inconsistent with the encoding method used by the transmitting end, which may result in a decoding error. At this time, the wireless network name displayed by the receiving end is a messy code or a wrong name, so that the user cannot accurately find the target network.
Before decoding a target code (an SSID after encoding), the format of the target code is judged, and a decoding algorithm corresponding to the target code is found. Especially, when the target code is not consistent with the Unicode code or the GBK code, the final decoding mode is determined by inquiring the user. The target code is accurately decoded, and the SSID decoding efficiency is improved. The technical solution provided by the present application is described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a decoding algorithm determining method provided in an embodiment of the present application, where the present embodiment is applicable to a case where a terminal identifies a Service Set Identifier (SSID), the method may be executed by a terminal connected to a target network, where the terminal may be a mobile terminal, a tablet computer, a wearable device, a notebook computer, and the method specifically includes the following steps:
step 110, judging whether the target code accords with the first decoding algorithm and the second decoding algorithm.
The wireless Access Point (AP) broadcasts its name as the service set identifier. When the terminal enters the range of the AP, the SSID broadcast by the AP can be detected. To ensure data security, the AP encodes the SSID prior to transmitting it. The encoding rule may be according to an encoding method corresponding to the first decoding algorithm, or may be an encoding method corresponding to the second decoding algorithm. Optionally, the coding method corresponding to the first decoding algorithm is a uniform Code (Unicode) decoding algorithm, and the coding method corresponding to the second decoding algorithm is a Chinese Internal Code Specification (GBK) decoding algorithm. In the course of transmitting Unicode coded characters, UTF-8 coding is used for transmission, and for the sake of convenience, the characters coded by Unicode are also called UTF-8 coding characters, and the Unicode decoding algorithm is also called UTF-8 decoding algorithm. UTF-8(8-bit Unicode Transformation Format) is a variable length character code for Unicode, also known as Unicode. The AP may encode the SSID based on either Unicode or GBK. Repeated characters exist in the specifications of GBK coding and UTF-8 coding, and errors can occur if an incorrect decoding mode is used during decoding, so that the problem that the names of wifi hot spots display messy codes is caused.
After monitoring the coded SSID broadcasted by the AP, the terminal firstly judges the format of the coded SSID to determine whether the coded SSID conforms to the first decoding algorithm and does not conform to the second decoding algorithm. Or whether the second decoding algorithm is met, and not the first decoding algorithm. Or, judging whether the first decoding algorithm and the second decoding algorithm are simultaneously met. Alternatively, it is determined whether neither the first decoding algorithm nor the second decoding algorithm is met.
In one implementation, whether the target encoding conforms to the first decoding algorithm and the second decoding algorithm may be determined based on the number of bytes.
Because the GBK adopts a mode that two bytes represent one character for coding, whether the target code is an even number is judged after the target code is obtained. If there are even numbered bits, it may be preliminarily determined to be UTF-8 or GBK compliant. If odd, it may be determined to be UTF-8 only.
In addition, UTF-8 typically encodes the target with a number of characters between 2-4 bits, which may be determined to be appropriate for GBK if the number of characters encoded by the target is greater than 4 bits.
In another implementation, whether the target code conforms to the first decoding algorithm and the second decoding algorithm may be determined based on the value range.
UTF-8 covers both Chinese and English characters, while GBK covers only all Chinese characters. Therefore, whether the target code conforms to UTF-8 can be determined according to whether the target code exceeds the value range of the GBK.
In yet another implementation, whether the target code conforms to the first decoding algorithm and the second decoding algorithm may be further determined based on the stored physical address list.
If the AP and the terminal are successfully established communication connection, namely the terminal uses a correct SSID and inputs a correct password, recording the corresponding relation of the equipment information of the AP and the adopted decoding algorithm in the terminal to obtain a physical address list. The device information includes a physical address, and the obtained correspondence may be stored in a key-value pair (physical address, decoding algorithm) manner. When the terminal is connected with the AP again, the physical address of the AP may be searched from the stored physical address list, and the decoding algorithm may be determined according to the physical address.
Specifically, first, a target physical address corresponding to a target code is obtained. Then, judging whether the target physical address exists in the first list and the second list at the same time or not, or does not exist in the first list and the second list; the first list is used for recording the physical addresses matched with the first decoding algorithm, and the second list is used for recording the physical addresses matched with the second decoding algorithm.
And step 120, if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of the wireless access point corresponding to the target code.
The target identification information of the wireless access point AP is used to uniquely represent the wireless access point. Alternatively, the physical address (mac address) of the wireless access point may be used as the target identification information.
In one implementation, if the wireless access point is a home or corporate wireless router, it can be obtained through a router information sticker pasted on the back of the wireless router. The user can photograph the sticker through the photographing function, and obtains the physical address of the wireless router through character recognition. Alternatively, the router name is manually entered by the user from a sticker.
In another implementation manner, the terminal may send an inquiry instruction to the wireless access point to further acquire the physical address information of the wireless access point. The wireless routers are all provided with the function of feeding back the physical address.
And step 130, determining a target decoding algorithm according to the target identification information.
The target identification information corresponds to a unique wireless access point, and a target decoding algorithm can be determined through a local stored physical address and a corresponding table of the wireless access point. For example, when the terminal successfully connects to a wireless network, the terminal stores the physical address of the wireless router corresponding to the wireless network, and the storage form can be a key value pair (physical address, decoding algorithm). When the terminal is connected to the wireless network again, the decoding algorithm corresponding to the key value pair is searched according to the physical address, and the decoding algorithm is determined as the target decoding algorithm.
Further, when the terminal can connect to the mobile cellular network, the target identification information can be sent to the server; and determining a target decoding algorithm according to the decoding information fed back by the server.
The server side can store a data table of the corresponding relation between the identification information of the wireless access point and the coding algorithm. When the terminal sends the target identification information to the server, the server searches for the coding algorithm corresponding to the target identification information. And transmits the encoding algorithm to the terminal. And the terminal determines the decoding algorithm corresponding to the coding algorithm as a target decoding algorithm.
Further, the terminal may store a list of correspondence between the product lot and the decoding algorithm. The terminal may obtain the product batch corresponding to the target identification information through the server. And then determining a corresponding target decoding algorithm according to the product batch locally at the terminal. Optionally, the terminal may use the first N bits of the physical address as the product batch. N is not less than 4.
Further, if the terminal cannot determine the target decoding algorithm according to the information fed back by the server, one of the first decoding algorithm and the second decoding algorithm is determined as a preset decoding algorithm, and the other one is determined as the other decoding algorithm.
And decoding the target code by using a preset decoding algorithm, and outputting a decoding result.
Optionally, when the decoding result is output, an identifier is added to the wireless network name corresponding to the target code. Then, when the user clicks the identifier, a popup box is output, and the popup box is used for displaying the decoding result and receiving feedback information input by the user.
The identifier may be a prompt icon added in the entry corresponding to the target code in the wireless network list, where the icon indicates that the network name in the entry is to be confirmed. The popup box comprises an SSID obtained according to a preset decoding algorithm, and a correct button and an incorrect button for a user to input feedback information. If the user clicks the correct button, a confirmation instruction is triggered. If the user clicks the error button, a replacement instruction is triggered.
Further, if the SSID obtained by the preset decoding algorithm and the SSIDs obtained by adopting other decoding algorithms are output in the bullet box. And determining a decoding algorithm corresponding to the SSID clicked by the user as a target decoding algorithm. As shown in fig. 2, the SSID obtained by using the preset decoding algorithm is the network D, and the SSIDs obtained by using the other decoding algorithms are the network D-1. When the user clicks any one of the commands, a confirmation command is triggered. And the terminal determines the decoding algorithm adopted by the SSID pointed by the confirmation instruction as the target decoding algorithm.
When a user needs to connect to a wireless network provided by an AP, the correct SSID can be determined by the provider of the AP. Such as asking the home owner for a WiFi name or asking the waiter for a WiFi name. If the SSID searched by the user does not exist in the wireless network list, the user can click the identifier in the wireless network list, and then the popup box is triggered and a feedback instruction is input.
Since the user knows the SSID he is looking for, it can be determined from the feedback message input by the user whether the preset decoding algorithm currently in use is correct. If the decoding method is incorrect, other decoding methods can be replaced, decoding results obtained by other decoding methods are output, feedback information input by a user is obtained, and a target decoding algorithm is determined according to the feedback information.
Optionally, if the user inputs a confirmation instruction, the preset decoding algorithm is determined as the target decoding algorithm. And if the user inputs a replacement instruction, determining other decoding algorithms as target decoding algorithms, wherein the other decoding algorithms are decoding algorithms except for a preset decoding algorithm in the first decoding algorithm and the second decoding algorithm.
The decoding algorithm determining method provided by the embodiment of the application comprises the steps of firstly judging whether a target code accords with a first decoding algorithm and a second decoding algorithm; if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code; and finally, determining a target decoding algorithm according to the target identification information. Compared with the prior art that a default algorithm or a fixed decoding algorithm is adopted, the method and the device can determine the target decoding algorithm according to the target identification information of the wireless access point when the target code is judged to be in accordance with the first decoding algorithm and the second decoding algorithm or the target code is not in accordance with the first decoding algorithm and the second decoding algorithm, and the SSID decoding efficiency is improved.
The above embodiment is specifically described below by an embodiment, where the scenario is that a user uses a mobile phone to obtain a wifi list, as shown in fig. 3, the scenario includes:
step 210, after searching the surrounding APs, the mobile phone determines whether the coded SSID corresponding to the AP is a UTF-8 decoding algorithm or a GBK decoding algorithm.
Specifically, whether the UTF-8 byte number requirement is met or not and whether the GBK coding value range requirement is met or not are judged.
And step 220, if the UTF-8 decoding algorithm is met and the GBK decoding algorithm is not met, judging that the current SSID belongs to the UTF-8 code, and adding the physical address of the AP into a UTF-8 code list.
In this embodiment, a relationship list between the UTF-8 and the AP may be established, in which the physical address of the AP conforming to the UTF-8 is stored.
And step 230, if the current SSID does not accord with the UTF-8 decoding algorithm and accords with the GBK decoding algorithm, judging that the current SSID belongs to the UTF-8 code, and adding the MAC address of the AP into a list of GBK codes.
In this embodiment, a relationship list between the GBK and the AP may be established, where a physical address of the AP conforming to the GBK is stored.
And step 240, if the UTF-8 decoding algorithm is met and the GBK decoding algorithm is met, or the UTF-8 decoding algorithm is not met and the GBK decoding algorithm is not met, acquiring the physical address of the wireless access point corresponding to the target code.
And step 250, sending the physical address to a server for inquiry, and receiving feedback information returned by the server.
And step 260, determining a target decoding algorithm according to the feedback information.
Fig. 4 is a schematic structural diagram of a decoding algorithm determining apparatus provided in an embodiment of the present application, where the apparatus is configured to implement the method in the foregoing embodiment, and the apparatus is located in a mobile terminal, and includes:
a judging module 310, configured to judge whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
an obtaining module 320, configured to obtain target identification information of a wireless access point corresponding to a target code if the determining module 310 determines that the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm;
a determining module 330, configured to determine a target decoding algorithm according to the target identification information acquired by the acquiring module 320.
Further, the determining module 310 is configured to:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the number of bytes.
Further, the determining module 310 is configured to:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the value range.
Further, the determining module 310 is configured to:
acquiring a target physical address corresponding to a target code;
judging whether the target physical address exists in a first list and a second list at the same time or not, or does not exist in the first list and the second list; the first list is used for recording physical addresses matched with a first decoding algorithm, and the second list is used for recording physical addresses matched with a second decoding algorithm.
Further, the determining module 330 is configured to:
sending the target identification information to a server;
and determining a target decoding algorithm according to the decoding information fed back by the server.
Further, the determining module 330 is configured to:
obtaining a product batch corresponding to the target identification information;
and determining a target decoding algorithm according to the product batch.
Furthermore, the first decoding algorithm is a unified code decoding algorithm, and the second decoding algorithm is a Chinese character internal code extension standard decoding algorithm.
In the decoding algorithm determining method provided in the embodiment of the present application, first, the determining module 310 determines whether the target code conforms to a first decoding algorithm and a second decoding algorithm; if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, the obtaining module 320 obtains the target identification information of the wireless access point corresponding to the target code; finally, the determining module 330 determines a target decoding algorithm according to the target identification information. Compared with the prior art that a default algorithm or a fixed decoding algorithm is adopted, the method and the device can determine the target decoding algorithm according to the target identification information of the wireless access point when the target code is judged to be in accordance with the first decoding algorithm and the second decoding algorithm or the target code is not in accordance with the first decoding algorithm and the second decoding algorithm, and the SSID decoding efficiency is improved.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 5, the terminal may include: a housing (not shown), a first memory 401, a first Central Processing Unit (CPU) 402 (also called a first processor, hereinafter referred to as CPU), a computer program stored in the first memory 401 and operable on the first processor 402, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU402 and the first memory 401 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the first memory 401 is used for storing executable program codes; the CPU402 reads the executable program code stored in the first memory 401 to run a program corresponding to the executable program code, and executes:
judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code;
and determining a target decoding algorithm according to the target identification information.
The above terminal further includes: peripheral interface 403, RF (Radio Frequency) circuitry 405, audio circuitry 406, speakers 411, power management chip 408, input/output (I/O) subsystem 409, touch screen 412, other input/control devices 410, and external port 404, which communicate via one or more communication buses or signal lines 407.
In addition, the terminal also comprises a camera and an RGB light sensor. The RGB light sensor is located beside the camera and can be arranged adjacent to the camera. The camera can be a front camera or a rear camera. The RGB light sensor may also be arranged separately from the camera, for example on a narrow side of the terminal.
It should be understood that the illustrated terminal 400 is merely one example of a terminal and that the terminal 400 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes the terminal provided in this embodiment in detail, and the terminal is a smart phone as an example.
A first memory 401, said first memory 401 being accessible by the CPU402, the peripheral interface 403, etc., said first memory 401 may comprise a high speed random access first memory and may further comprise a non-volatile first memory, such as one or more magnetic disk first storage devices, flash memory devices, or other volatile solid state first storage devices.
A peripheral interface 403, the peripheral interface 403 being capable of connecting input and output peripherals of the device to the CPU402 and the first memory 401.
An I/O subsystem 409, the I/O subsystem 409 connecting input and output peripherals on the device, such as a touch screen 412 and other input/control devices 410, to the peripheral interface 403. The I/O subsystem 409 may include a display controller 4091 and one or more input controllers 4092 for controlling other input/control devices 410. Where one or more input controllers 4092 receive electrical signals from or send electrical signals to other input/control devices 410, the other input/control devices 410 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 4092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 412 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. Classified by the installation method, the touch screen 412 may be: external hanging, internal or integral. Classified according to technical principles, the touch screen 412 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 412, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 412 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the first processor 402.
The display controller 4091 in the I/O subsystem 409 receives electrical signals from the touch screen 412 or transmits electrical signals to the touch screen 412. The touch screen 412 detects a contact on the touch screen, and the display controller 4091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 412, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 412 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 405 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 406 is mainly used to receive audio data from the peripheral interface 403, convert the audio data into an electric signal, and transmit the electric signal to the speaker 411.
And the loudspeaker 411 is used for restoring the voice signal received by the intelligent sound box from the wireless network through the RF circuit 405 into sound and playing the sound to the user.
And the power management chip 408 is used for supplying power and managing power to the hardware connected with the CPU402, the I/O subsystem and the peripheral interface.
In this embodiment, the central first processor 402 is configured to:
judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code;
and determining a target decoding algorithm according to the target identification information.
Further, the determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm includes:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the number of bytes.
Further, the determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm includes:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the value range.
Further, the determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm includes:
acquiring a target physical address corresponding to a target code;
judging whether the target physical address exists in a first list and a second list at the same time or not, or does not exist in the first list and the second list; the first list is used for recording physical addresses matched with a first decoding algorithm, and the second list is used for recording physical addresses matched with a second decoding algorithm.
Further, the determining a target decoding algorithm according to the target identification information includes:
sending the target identification information to a server;
and determining a target decoding algorithm according to the decoding information fed back by the server.
Further, the determining a target decoding algorithm according to the target identification information includes:
obtaining a product batch corresponding to the target identification information;
and determining a target decoding algorithm according to the product batch.
Furthermore, the first decoding algorithm is a unified code decoding algorithm, and the second decoding algorithm is a Chinese character internal code extension standard decoding algorithm.
Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the following steps:
judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code;
and determining a target decoding algorithm according to the target identification information.
Further, the determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm includes:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the number of bytes.
Further, the determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm includes:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the value range.
Further, the determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm includes:
acquiring a target physical address corresponding to a target code;
judging whether the target physical address exists in a first list and a second list at the same time or not, or does not exist in the first list and the second list; the first list is used for recording physical addresses matched with a first decoding algorithm, and the second list is used for recording physical addresses matched with a second decoding algorithm.
Further, the determining a target decoding algorithm according to the target identification information includes:
sending the target identification information to a server;
and determining a target decoding algorithm according to the decoding information fed back by the server.
Further, the determining a target decoding algorithm according to the target identification information includes:
obtaining a product batch corresponding to the target identification information;
and determining a target decoding algorithm according to the product batch.
Furthermore, the first decoding algorithm is a unified code decoding algorithm, and the second decoding algorithm is a Chinese character internal code extension standard decoding algorithm.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. A decoding algorithm determination method, comprising:
judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
if the target code conforms to the first decoding algorithm and the second decoding algorithm, or the target code does not conform to the first decoding algorithm and the second decoding algorithm, acquiring target identification information of a wireless access point corresponding to the target code;
sending the target identification information to a server; the server stores a data table of the corresponding relation between the identification information of the wireless access point and the coding algorithm;
determining a target decoding algorithm according to the information fed back by the server;
if the target decoding algorithm cannot be determined according to the information fed back by the server, determining one of the first decoding algorithm and the second decoding algorithm as a preset decoding algorithm, and determining the other one as the other decoding algorithm;
decoding the target code by using the preset decoding algorithm and outputting a decoding result;
if the user inputs a confirmation instruction aiming at the decoding result, determining the preset decoding algorithm as a target decoding algorithm;
and if the user inputs a replacement instruction aiming at the decoding result, determining the other decoding algorithm as a target decoding algorithm.
2. The decoding algorithm determining method according to claim 1, wherein said determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm comprises:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the number of bytes.
3. The decoding algorithm determining method according to claim 1, wherein said determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm comprises:
and judging whether the target code conforms to the first decoding algorithm and the second decoding algorithm or not based on the value range.
4. The decoding algorithm determining method according to claim 1, wherein said determining whether the target code conforms to the first decoding algorithm and the second decoding algorithm comprises:
acquiring a target physical address corresponding to a target code;
judging whether the target physical address exists in a first list and a second list at the same time or not, or does not exist in the first list and the second list; the first list is used for recording physical addresses matched with a first decoding algorithm, and the second list is used for recording physical addresses matched with a second decoding algorithm.
5. The decoding algorithm determining method according to any one of claims 1 to 4, wherein the first decoding algorithm is a Unicode decoding algorithm, and the second decoding algorithm is a Hanzi inner code extension Specification decoding algorithm.
6. A decoding algorithm determining apparatus, comprising:
the judging module is used for judging whether the target code conforms to a first decoding algorithm and a second decoding algorithm;
the acquisition module is used for acquiring target identification information of the wireless access point corresponding to the target code if the judgment module judges that the target code conforms to the first decoding algorithm and the second decoding algorithm or the target code does not conform to the first decoding algorithm and the second decoding algorithm;
the determining module is used for sending the target identification information to a server and determining a target decoding algorithm according to the information fed back by the server; the server stores a data table of the corresponding relation between the identification information of the wireless access point and the coding algorithm;
wherein the determining module is further configured to:
if the target decoding algorithm cannot be determined according to the information fed back by the server, determining one of the first decoding algorithm and the second decoding algorithm as a preset decoding algorithm, and determining the other one as the other decoding algorithm;
decoding the target code by using the preset decoding algorithm and outputting a decoding result;
if the user inputs a confirmation instruction aiming at the decoding result, determining the preset decoding algorithm as a target decoding algorithm;
and if the user inputs a replacement instruction aiming at the decoding result, determining the other decoding algorithm as a target decoding algorithm.
7. A terminal, characterized in that the terminal comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the decoding algorithm determination method of any one of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the decoding algorithm determination method according to any one of claims 1 to 5.
CN201710993309.9A 2017-10-23 2017-10-23 Decoding algorithm determination method, device, terminal and storage medium Active CN107708183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710993309.9A CN107708183B (en) 2017-10-23 2017-10-23 Decoding algorithm determination method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710993309.9A CN107708183B (en) 2017-10-23 2017-10-23 Decoding algorithm determination method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107708183A CN107708183A (en) 2018-02-16
CN107708183B true CN107708183B (en) 2021-06-01

Family

ID=61181700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710993309.9A Active CN107708183B (en) 2017-10-23 2017-10-23 Decoding algorithm determination method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107708183B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104723A (en) * 2018-07-13 2018-12-28 Oppo(重庆)智能科技有限公司 A kind of network name display methods and relevant device
CN111918363B (en) * 2020-08-10 2023-04-07 北京紫光展锐通信技术有限公司 Network distribution method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263680A (en) * 2010-05-25 2011-11-30 广州市聚晖电子科技有限公司 Smart home system
WO2013119599A1 (en) * 2012-02-06 2013-08-15 Qualcomm Incorporated Systems and methods for enabling stations to connect to wireless hotspots using non-unicode service set identification information
CN104754701A (en) * 2015-03-09 2015-07-01 广东欧珀移动通信有限公司 Signal processing method and mobile terminal
CN105430712A (en) * 2015-10-30 2016-03-23 上海斐讯数据通信技术有限公司 Service set identifier coding method, coding device, decoding method and decoding device
CN106068028A (en) * 2016-07-04 2016-11-02 青岛海信宽带多媒体技术有限公司 Terminal processes method and the terminal of wireless network name mess code
CN106792622A (en) * 2016-12-27 2017-05-31 广东欧珀移动通信有限公司 The method and terminal device of AP are hidden in connection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263680A (en) * 2010-05-25 2011-11-30 广州市聚晖电子科技有限公司 Smart home system
WO2013119599A1 (en) * 2012-02-06 2013-08-15 Qualcomm Incorporated Systems and methods for enabling stations to connect to wireless hotspots using non-unicode service set identification information
CN104754701A (en) * 2015-03-09 2015-07-01 广东欧珀移动通信有限公司 Signal processing method and mobile terminal
CN105430712A (en) * 2015-10-30 2016-03-23 上海斐讯数据通信技术有限公司 Service set identifier coding method, coding device, decoding method and decoding device
CN106068028A (en) * 2016-07-04 2016-11-02 青岛海信宽带多媒体技术有限公司 Terminal processes method and the terminal of wireless network name mess code
CN106792622A (en) * 2016-12-27 2017-05-31 广东欧珀移动通信有限公司 The method and terminal device of AP are hidden in connection

Also Published As

Publication number Publication date
CN107708183A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
US20150077231A1 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
CN108040355B (en) Network access method and system
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
WO2019134306A1 (en) Message processing method, device, terminal apparatus, and readable storage medium
KR102107132B1 (en) Access point connection method of electronic apparatus and electronic appparatus thereof
US20150156300A1 (en) Method for filtering spam in electronic device and the electronic device
CN103067055A (en) Bluetooth connecting method and mobile terminal
KR20150067090A (en) Multi-screen interaction method, devices, and system
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
CN106293738B (en) Expression image updating method and device
CN114697879B (en) Bluetooth pairing method, electronic device, chip and storage medium
US11196868B2 (en) Audio data processing method, server, client and server, and storage medium
CN107708183B (en) Decoding algorithm determination method, device, terminal and storage medium
CN112492611A (en) Network configuration method, network configuration device, electronic equipment and readable storage medium
CN105451368A (en) Communication method and apparatus
CN113853754A (en) In the bluetoothTMElectronic device and method for displaying external electronic device query list in network environment
CN112888024B (en) Data processing method, data processing device, storage medium and electronic equipment
CN107729302B (en) Decoding algorithm determination method, device, terminal and storage medium
CN107819761B (en) Data processing method and device and readable storage medium
CN109005469B (en) Message format conversion method and device, storage medium and android terminal
JP7475476B2 (en) Information processing method, device and storage medium
CN107770844B (en) Decoding algorithm determination method, device, terminal and storage medium
CN108235249B (en) Method and device for determining coding mode, storage medium and terminal
CN108304369B (en) File type identification method and device
KR102367186B1 (en) METHOD FOR CONTROLLING IoT APPARATUS USING WIRELESS REMOTE CONTROLLER OF LOW-POWER, IoT HUB and IoT SYSTEM

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant