CN108235249B - Method and device for determining coding mode, storage medium and terminal - Google Patents

Method and device for determining coding mode, storage medium and terminal Download PDF

Info

Publication number
CN108235249B
CN108235249B CN201810041378.4A CN201810041378A CN108235249B CN 108235249 B CN108235249 B CN 108235249B CN 201810041378 A CN201810041378 A CN 201810041378A CN 108235249 B CN108235249 B CN 108235249B
Authority
CN
China
Prior art keywords
determining
coding mode
position information
area
information
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
CN201810041378.4A
Other languages
Chinese (zh)
Other versions
CN108235249A (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 CN201810041378.4A priority Critical patent/CN108235249B/en
Publication of CN108235249A publication Critical patent/CN108235249A/en
Application granted granted Critical
Publication of CN108235249B publication Critical patent/CN108235249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a method, a device, a storage medium and a terminal for determining a coding mode, wherein the method comprises the following steps: scanning a wireless local area network according to a preset instruction; when the wireless local area network is scanned, the position information of the user is obtained; and determining a first coding mode according to the position information. According to the scheme for determining the coding mode, firstly, a wireless local area network is scanned according to a preset instruction; then, when the wireless local area network is scanned, the position information of the user is obtained; and finally, determining the first coding mode according to the position information, realizing that the coding mode is determined according to the position of the user, further identifying the SSID by using a more accurate coding mode, and improving the decoding efficiency of the SSID.

Description

Method and device for determining coding mode, storage medium and terminal
Technical Field
The embodiment of the application relates to the field of mobile terminal communication, in particular to a method and a device for determining a coding mode, a storage medium and a terminal.
Background
With the development of wireless network technology, users increasingly use terminals to connect to wireless networks. The network name of a wireless network is also called a 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.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a storage medium, and a terminal for determining an encoding scheme, which can improve the decoding efficiency of an SSID.
In a first aspect, an embodiment of the present application provides a method for determining a coding scheme, including:
scanning a wireless local area network according to a preset instruction;
when the wireless local area network is scanned, the position information of the user is obtained;
and determining a first coding mode according to the position information.
In a second aspect, an embodiment of the present application provides an apparatus for determining an encoding mode, including:
the scanning module is used for scanning the wireless local area network according to a preset instruction;
the position information acquisition module is used for acquiring the position information of the user when the scanning module scans the wireless local area network;
and the algorithm determining module is used for determining a first coding mode according to the position information acquired by the position information acquiring module.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for determining an encoding mode as shown in the first aspect.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program to implement the method for determining an encoding manner as shown in the first aspect.
According to the scheme for determining the coding mode, firstly, a wireless local area network is scanned according to a preset instruction; then, when the wireless local area network is scanned, the position information of the user is obtained; and finally, determining the first coding mode according to the position information, realizing that the coding mode is determined according to the position of the user, further identifying the SSID by using a more accurate coding mode, and improving the decoding efficiency of the SSID.
Drawings
Fig. 1 is a schematic flowchart of a method for determining a coding scheme according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for determining a coding scheme according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another method for determining a coding scheme according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for determining a coding scheme according to another embodiment of the present application;
fig. 5 is a block diagram of a device for determining an encoding mode according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. 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.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
A wireless Access Point (AP) broadcasts its name in the form of a Service Set Identifier (SSID). 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. And the terminal decodes the text of the SSID by adopting a decoding algorithm corresponding to the coding algorithm. The corresponding encoding algorithm and decoding algorithm are referred to as a coding scheme in the present application. The encoding algorithm may be a uniform code (Unicode) decoding algorithm or 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. 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. 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.
At present, after receiving the coded SSID broadcasted by the AP, the terminal decodes the SSID by using a default decoding algorithm, for example, the default SSID decoding algorithm of the android system is UTF-8. However, at this time, the UTF-8 decoding algorithm may be used to decode the SSID encoded by the GBK, and at this time, the decoded text is abnormal, such as garbled or wrong, and the decoding efficiency is low. The embodiment of the application provides a technical scheme for determining a coding mode according to user position information, which is used for replacing the current mode of adopting a default decoding algorithm and can improve the decoding efficiency of SSID. The specific scheme is as follows:
fig. 1 is a schematic flow chart of a method for determining an encoding mode according to an embodiment of the present application, where the method is used for a terminal to identify a Service Set Identifier (SSID), and the method may be executed by a terminal connected to a wireless network or discovering the wireless network, where the terminal may be a mobile terminal, a tablet computer, a wearable device, a laptop computer, or the like, and the method specifically includes the following steps:
and step 110, scanning the wireless local area network according to a preset instruction.
The preset instruction can be triggered by a user actively or can be triggered when the terminal is started. The triggering mode of the preset instruction can be set by a user. Optionally, when the terminal starts the wlan function, the terminal scans for the wlan. The user manually starts the wireless network function of the terminal, and after the terminal starts the wireless network function, the terminal searches signals sent by the peripheral AP and scans the wireless local area network.
Optionally, if the location information of the user is located in the preset coordinate area, the wireless local area network is scanned. The terminal acquires Positioning information through a Global Positioning System (GPS). The terminal stores a plurality of preset coordinate areas, and each preset coordinate area corresponds to a wireless local area network, such as a home network or a company network. The user may close the wlan function outdoors, and when the user returns home or arrives at a company, the terminal detects that the positioning information is located in a home area or a company area, and automatically opens the wlan function of the terminal. The wireless local area network is used for providing wifi data communication.
And step 120, when the wireless local area network is scanned, acquiring the position information of the user.
The location information may be country information, city information, administrative area information, residential cell information, or the like. The location information may be set according to different regional levels, for example, only the country information where the terminal is located is obtained, and for example, the cell information where the terminal is located is obtained. The acquisition level of the location information may be determined according to the stored minimum region level. For example, if the UTF-8 method is used in the stored chinese region and the GBK method is used in the us region, the country information is acquired from the location information. For another example, if the UTF-8 type is used in the stored china region and the GBK method is used in beijing, the location information is obtained as the city information.
Optionally, the location information may be obtained by at least one of the following methods:
the GPS positioning module acquires position information; or, obtaining the position information through the base station; or, the location information is acquired through the website of the wireless local area network.
The GPS positioning module can perform positioning through a satellite to obtain coordinate information of the terminal. The city or cell where the user is located can be determined according to the coordinate information.
A terminal may query for WIFI networks to which it is connected, each WIFI network being provided by one or more wireless routers. By accessing a gateway of a local wireless local area network, a physical address of the gateway is queried, and network positioning information is determined according to the physical address.
Further, the terminal acquires the position information through the physical address of the currently registered base station; alternatively, the location information is obtained by the physical address of the wireless router. In the android system, the information of the base station currently registered by the terminal can be represented by a set of a location area number (lac) and a cell id (ci). Further, each base station may be identified using a Base Station Identity Code (BSIC). And accessing the base station according to the base station information to acquire the physical address of the base station. Each base station has a unique physical address, and the corresponding position information of the base station can be inquired according to the physical address.
Step 130, determining a first encoding mode according to the position information.
Optionally, when the terminal is connected to the network, the terminal may send the location information to the server, and the server determines the coding mode corresponding to the location information.
Optionally, the terminal stores a corresponding relationship between the position information and the encoding mode, and the corresponding relationship may be stored in a relationship table. And searching a first coding mode corresponding to the position information from a relation table, wherein the relation table comprises the corresponding relation between the position information and the coding mode. The relationship table stores a correspondence between position information at an arbitrary level and a coding method. Any level includes: country level, provincial junior, city level, county level, administrative district level, cell level, or building level, etc.
And after determining the first coding mode, the terminal decodes the coded SSID sent by the AP by using the first coding mode to obtain a text of the SSID. And displayed in a wireless connection list.
In the method for determining the encoding mode provided in this embodiment, a wireless local area network is scanned according to a preset instruction; then, when the wireless local area network is scanned, the position information of the user is obtained; and finally, determining a first coding mode according to the position information. Compared with the prior art that decoding is performed by using a default decoding algorithm, the method and the device for decoding the SSID can determine the first decoding mode according to the position information of the user to obtain the decoding mode corresponding to the current position, avoid the problem of decoding errors by using the default decoding algorithm, further identify the SSID by using a more accurate coding mode, and improve the decoding efficiency of the SSID.
Fig. 2 is a schematic flow chart of another method for determining a coding scheme provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
step 210, scanning the wireless local area network according to a preset instruction.
Step 220, when the wireless local area network is scanned, the position information of the user is obtained.
The position information of the user may be a positioning coordinate or a specific shop or building. But the existing relation table does not have the position information directly corresponding to the current positioning coordinate of the user. For example, the location coordinate of the user is (x, y), and the relationship table only stores the correspondence between the cell level and the city level, and at this time, it is necessary to search the location information level with the smallest area where the location coordinate of the user is located. For example, it is determined whether the location coordinates of the user are located in the location areas of each cell level stored in the relationship table, and if not, the location information of the city level where the location coordinates of the user are located is searched.
Step 230, determining a first location area based on the location information.
And acquiring the position information of the minimum area where the position information is located by the map application, such as a cell or a building level. The location information is determined as a first location area.
And step 240, judging whether the coding mode corresponding to the first position area exists.
And searching whether a record corresponding to the first position cell exists in the relation table. If so, step 250 is performed. Otherwise, if not, step 260 is performed.
Step 250, if the coding mode corresponding to the first position area exists, determining the coding mode corresponding to the first position area as the first coding mode.
And step 260, if the coding mode corresponding to the first position region does not exist, determining a second position region according to the first position region, wherein the area of the second position region is larger than that of the first position region.
If not, searching a second position small region with the smallest area and containing the first position region. For example, administrative area information including location information of a certain cell level is set as the second location area. And judging whether the second position area exists in the relation table. And in analogy, the position information with the minimum area and containing the position information of the user, which is recorded in the relation table, is searched.
Alternatively, the location information of the city level where the user is located may be used as the second location area.
Step 270, determining the coding mode corresponding to the second position region as the first coding mode.
The method for determining the coding mode provided by the embodiment can accurately locate the current location information of the user, and if the small-range coding mode record where the user is located exists, the first coding mode is determined according to the record, so that the accuracy of the coding mode is further improved.
Fig. 3 is a schematic flowchart of another method for determining a coding scheme provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
step 310, scanning the wireless local area network according to a preset instruction.
And step 320, when the wireless local area network is scanned, acquiring the position information of the user.
And step 330, downloading the update information through a preset server.
The terminal can send the position information to the server, receive the coding mode fed back by the server and locally store the relation table. When the terminal is connected to the network, the update information is downloaded through the server.
And step 340, updating the relation table according to the updating information.
The update information may be incremental update information. And if the same position information in the relation table exists in the updating information, updating the coding mode corresponding to the position information. And if the position information which is not stored in the relation table exists in the updating information, adding a corresponding relation record in the relation table.
Step 350, determining a first coding mode according to the position information.
The method for determining the coding scheme provided by this embodiment can update the correspondence between the location information stored in the terminal and the coding scheme, thereby improving the accuracy of the coding scheme.
Fig. 4 is a schematic flowchart of another method for determining a coding scheme provided in an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
step 410, scanning the wireless local area network according to a preset instruction.
Step 420, when the wireless local area network is scanned, the position information of the user is obtained.
And step 430, determining a first coding mode according to the position information.
And step 440, if the coding result obtained according to the first coding mode is the messy code, determining the second coding mode as the coding mode corresponding to the position information.
Because the encoding mode is GBK or UTF-8, if the user finds that the SSID obtained by using the first encoding mode has messy codes or wrong codes, the encoding mode corresponding to the position information is modified locally. And then, feeding back the modified corresponding relation to the server. During modification, the current minimum location area identifier, such as a cell identifier, can be obtained, a record is searched according to the location information corresponding to the cell identifier, and the coding mode in the record is modified. And if the record corresponding to the cell identifier is not stored in the relation table, creating a record.
The method for determining the coding scheme provided in this embodiment can change the coding scheme with errors, and improve the effectiveness of recording the position information and the coding scheme.
Fig. 5 is a schematic structural diagram of a device for determining an encoding mode according to an embodiment of the present application. As shown in fig. 5, the apparatus includes: a scanning module 510, a location information acquisition module 520, an algorithm determination module 530, and an update module 540.
A scanning module 510, configured to scan a wireless local area network according to a preset instruction;
a location information obtaining module 520, configured to obtain location information of a user when the scanning module 510 scans a wireless local area network;
an algorithm determining module 530, configured to determine a first encoding manner according to the location information acquired by the location information acquiring module 520.
Further, the scan module 510 is configured to:
when the terminal starts the wireless local area network function, scanning the wireless local area network; or,
and if the positioning information of the user is located in the preset coordinate area, scanning the wireless local area network.
Further, the location information obtaining module 520 is configured to:
the GPS positioning module acquires position information; or,
acquiring position information through a base station; or,
and acquiring the position information through the website of the wireless local area network.
Further, the algorithm determination module 530 is configured to:
determining a first location area according to the location information;
judging whether a coding mode corresponding to the first position area exists or not;
if the coding mode corresponding to the first position area exists, determining the coding mode corresponding to the first position area as a first coding mode;
if the coding mode corresponding to the first position area does not exist, determining a second position area according to the first position area, wherein the area of the second position area is larger than that of the first position area;
and determining the coding mode corresponding to the second position area as a first coding mode.
Further, the algorithm determination module 530 is configured to:
and searching a first coding mode corresponding to the position information from a relation table, wherein the relation table comprises the corresponding relation between the position information and the coding mode.
Further, an update module 540 is included, and the update module 540 is configured to:
downloading the update information through a preset server;
and updating the relation table according to the updating information.
Further, the update module 540 is further configured to:
and if the coding result obtained according to the first coding mode is a messy code, determining a second coding mode as a coding mode corresponding to the position information.
In the apparatus for determining a coding mode provided in this embodiment, first, the scanning module 510 scans the wireless local area network according to a preset instruction; then, when the wireless local area network is scanned, the location information obtaining module 520 obtains the location information of the user; finally, the algorithm determining module 530 determines the first encoding method according to the position information. Compared with the prior art that decoding is performed by using a default decoding algorithm, the method and the device for decoding the SSID can determine the first decoding mode according to the position information of the user to obtain the decoding mode corresponding to the current position, avoid the problem of decoding errors by using the default decoding algorithm, further identify the SSID by using a more accurate coding mode, and improve the decoding efficiency of the SSID.
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. 6 is a schematic structural diagram of another terminal device provided in an embodiment of the present application. As shown in fig. 6, the terminal may include: a housing (not shown), a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 601 and operable on the processor 602, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU602 and the memory 601 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 601 is used for storing executable program codes; the CPU602 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 601.
The terminal further comprises: peripheral interfaces 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610, and external ports 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated terminal apparatus 600 is only one example of a terminal, and the terminal apparatus 600 may have more or less components than shown in the drawings, 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 in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 612 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 612 may be: external hanging, internal or integral. Classified according to technical principles, the touch screen 612 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 612, which touch screen 612 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 612 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 602.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 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 605 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 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to restore the voice signal received by the smart speaker from the wireless network through the RF circuit 605 to sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
In this embodiment, the central processor 602 is configured to:
scanning a wireless local area network according to a preset instruction;
when the wireless local area network is scanned, the position information of the user is obtained;
and determining a first coding mode according to the position information.
Further, the scanning the wlan according to the preset instruction includes:
when the terminal starts the wireless local area network function, scanning the wireless local area network; or,
and if the positioning information of the user is located in the preset coordinate area, scanning the wireless local area network.
Further, the acquiring the location information of the user includes:
the GPS positioning module acquires position information; or,
acquiring position information through a base station; or,
and acquiring the position information through the website of the wireless local area network.
Further, the determining the first encoding manner according to the position information includes:
determining a first location area according to the location information;
judging whether a coding mode corresponding to the first position area exists or not;
if the coding mode corresponding to the first position area exists, determining the coding mode corresponding to the first position area as a first coding mode;
if the coding mode corresponding to the first position area does not exist, determining a second position area according to the first position area, wherein the area of the second position area is larger than that of the first position area;
and determining the coding mode corresponding to the second position area as a first coding mode.
Further, the determining the first encoding manner according to the position information includes:
and searching a first coding mode corresponding to the position information from a relation table, wherein the relation table comprises the corresponding relation between the position information and the coding mode.
Further, before determining the encoding method according to the position information, the method further includes:
downloading the update information through a preset server;
and updating the relation table according to the updating information.
Further, after determining the first encoding method according to the position information, the method further includes:
and if the coding result obtained according to the first coding mode is a messy code, determining a second coding mode as a coding mode corresponding to the position information.
The embodiment of the present application further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are used for executing a method for determining an encoding mode when executed by a terminal device processor, and the method includes:
scanning a wireless local area network according to a preset instruction;
when the wireless local area network is scanned, the position information of the user is obtained;
and determining a first coding mode according to the position information.
Further, the scanning the wlan according to the preset instruction includes:
when the terminal starts the wireless local area network function, scanning the wireless local area network; or,
and if the positioning information of the user is located in the preset coordinate area, scanning the wireless local area network.
Further, the acquiring the location information of the user includes:
the GPS positioning module acquires position information; or,
acquiring position information through a base station; or,
and acquiring the position information through the website of the wireless local area network.
Further, the determining the first encoding manner according to the position information includes:
determining a first location area according to the location information;
judging whether a coding mode corresponding to the first position area exists or not;
if the coding mode corresponding to the first position area exists, determining the coding mode corresponding to the first position area as a first coding mode;
if the coding mode corresponding to the first position area does not exist, determining a second position area according to the first position area, wherein the area of the second position area is larger than that of the first position area;
and determining the coding mode corresponding to the second position area as a first coding mode.
Further, the determining the first encoding manner according to the position information includes:
and searching a first coding mode corresponding to the position information from a relation table, wherein the relation table comprises the corresponding relation between the position information and the coding mode.
Further, before determining the encoding method according to the position information, the method further includes:
downloading the update information through a preset server;
and updating the relation table according to the updating information.
Further, after determining the first encoding method according to the position information, the method further includes:
and if the coding result obtained according to the first coding mode is a messy code, determining a second coding mode as a coding mode corresponding to the position information.
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).
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the above-described application recommendation operation, and may also perform related operations in the application recommendation method provided in any embodiment of the present application.
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 (9)

1. A method for determining a coding scheme, comprising:
scanning a wireless local area network according to a preset instruction;
when the wireless local area network is scanned, the position information of the user is obtained;
determining a first coding mode according to the position information;
the determining the first encoding mode according to the position information includes:
determining a first location area according to the location information;
judging whether a coding mode corresponding to the first position area exists or not;
if the coding mode corresponding to the first position area exists, determining the coding mode corresponding to the first position area as a first coding mode;
if the coding mode corresponding to the first position area does not exist, determining a second position area according to the first position area, wherein the area of the second position area is larger than that of the first position area;
and determining the coding mode corresponding to the second position area as a first coding mode, wherein the position area comprises a country level, a province level, a city level, a county level, an administrative region level, a cell level or a building level.
2. The method for determining the encoding scheme of claim 1, wherein the scanning for the wlan according to the preset command comprises:
when the terminal starts the wireless local area network function, scanning the wireless local area network; or,
and if the positioning information of the user is located in the preset coordinate area, scanning the wireless local area network.
3. The method for determining the encoding scheme according to claim 1, wherein the acquiring the location information of the user includes:
the GPS positioning module acquires position information; or,
acquiring position information through a base station; or,
and acquiring the position information through the website of the wireless local area network.
4. The method for determining the encoding scheme according to claim 1, wherein the determining the first encoding scheme based on the position information includes:
and searching a first coding mode corresponding to the position information from a relation table, wherein the relation table comprises the corresponding relation between the position information and the coding mode.
5. The method of claim 4, further comprising, before determining the coding scheme based on the position information:
downloading the update information through a preset server;
and updating the relation table according to the updating information.
6. The method for determining the encoding scheme according to claim 1, further comprising, after determining the first encoding scheme based on the position information:
and if the coding result obtained according to the first coding mode is a messy code, determining a second coding mode as a coding mode corresponding to the position information.
7. An apparatus for determining a coding scheme, comprising:
the scanning module is used for scanning the wireless local area network according to a preset instruction;
the position information acquisition module is used for acquiring the position information of the user when the scanning module scans the wireless local area network;
the algorithm determining module is used for determining a first coding mode according to the position information acquired by the position information acquiring module;
the algorithm determining module is used for determining a first position area according to the position information;
judging whether a coding mode corresponding to the first position area exists or not;
if the coding mode corresponding to the first position area exists, determining the coding mode corresponding to the first position area as a first coding mode;
if the coding mode corresponding to the first position area does not exist, determining a second position area according to the first position area, wherein the area of the second position area is larger than that of the first position area;
and determining the coding mode corresponding to the second position area as a first coding mode, wherein the position area comprises a country level, a province level, a city level, a county level, an administrative region level, a cell level or a building level.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for determining the coding scheme according to any one of claims 1 to 6.
9. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for determining the encoding scheme according to any one of claims 1 to 6 when executing the computer program.
CN201810041378.4A 2018-01-16 2018-01-16 Method and device for determining coding mode, storage medium and terminal Active CN108235249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810041378.4A CN108235249B (en) 2018-01-16 2018-01-16 Method and device for determining coding mode, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810041378.4A CN108235249B (en) 2018-01-16 2018-01-16 Method and device for determining coding mode, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108235249A CN108235249A (en) 2018-06-29
CN108235249B true CN108235249B (en) 2020-11-17

Family

ID=62641940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810041378.4A Active CN108235249B (en) 2018-01-16 2018-01-16 Method and device for determining coding mode, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108235249B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918363B (en) * 2020-08-10 2023-04-07 北京紫光展锐通信技术有限公司 Network distribution method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283642A (en) * 2014-10-22 2015-01-14 小米科技有限责任公司 Method and device for issuing service set identifier (SSID) in wireless local area network

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8711034B2 (en) * 2007-10-02 2014-04-29 Ricoh Co., Ltd. Geographically self-labeling access points
KR101836876B1 (en) * 2011-03-02 2018-03-09 삼성전자주식회사 Apparatus and method for performing network connection in portable terminal
US9271329B2 (en) * 2012-02-06 2016-02-23 Qualcomm Incorporated Systems and methods for enabling stations to connect to wireless hotspots using non-unicode service set identification information
CN103517385B (en) * 2012-07-11 2016-08-03 Tcl集团股份有限公司 The method of attachment of the AP of Android system Wi-Fi and system
CN106068028B (en) * 2016-07-04 2019-09-20 青岛海信宽带多媒体技术有限公司 The method and terminal of wireless network name messy code are handled in terminal
CN106304409B (en) * 2016-08-31 2019-12-13 江苏福云星信息技术有限公司 connection method and application system for quickly and automatically accessing WIFI wireless network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283642A (en) * 2014-10-22 2015-01-14 小米科技有限责任公司 Method and device for issuing service set identifier (SSID) in wireless local area network

Also Published As

Publication number Publication date
CN108235249A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN105933904B (en) Network connection method and device
CN107508883B (en) Information pushing method and device, storage medium and mobile terminal
RU2486586C1 (en) Method and device for integration of data on point provided by group of suppliers
WO2016173348A1 (en) Network access method and mobile communications terminal
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
EP3197213B1 (en) Network access method and mobile communication terminal
CN105094861A (en) Webpage application program loading method, device and system
CN101641932A (en) Appratus for providing location information of hand-held device and method thereof
CN103067055A (en) Bluetooth connecting method and mobile terminal
WO2018149137A1 (en) Wireless fidelity (wi-fi) connection method and related product
KR20110103398A (en) Method and apparatus for obtaining location information using smart card
CN103687063B (en) A kind of method of interconnection network, device and terminal equipment
US10034323B2 (en) Control method for BLE communication between host device and peripheral device
CN106686587B (en) Wireless fidelity Wi-Fi connection method, mobile terminal and medium
CN105517192A (en) Wireless network connecting method and device
CN107809742A (en) Processing method, device, storage medium and the terminal of location information
JP5715596B2 (en) Intelligent phone number processing
CN105530222A (en) Method for establishing connection among terminals, and device and system
CN109511166B (en) Positioning method and positioning device of equipment
CN108235249B (en) Method and device for determining coding mode, storage medium and terminal
JPWO2011111443A1 (en) Portable communication terminal device, power consumption control method and program for portable communication terminal device
CN107708183B (en) Decoding algorithm determination method, device, terminal and storage medium
KR20120107152A (en) Remote operation system and remote operation method for terminal
CN105611525B (en) A kind of information processing method and electronic equipment
WO2017005053A1 (en) Application installation method, server and 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
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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant