CN111885628B - Communication configuration setting method and device, storage medium and electronic equipment - Google Patents

Communication configuration setting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111885628B
CN111885628B CN202010760088.2A CN202010760088A CN111885628B CN 111885628 B CN111885628 B CN 111885628B CN 202010760088 A CN202010760088 A CN 202010760088A CN 111885628 B CN111885628 B CN 111885628B
Authority
CN
China
Prior art keywords
position information
information
communication configuration
user
country
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
CN202010760088.2A
Other languages
Chinese (zh)
Other versions
CN111885628A (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 CN202010760088.2A priority Critical patent/CN111885628B/en
Publication of CN111885628A publication Critical patent/CN111885628A/en
Application granted granted Critical
Publication of CN111885628B publication Critical patent/CN111885628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application discloses a communication configuration setting method, a device, a storage medium and electronic equipment, wherein the method comprises the following steps: and receiving an opening instruction of the ad hoc network communication network, positioning the current position of the electronic equipment according to the instruction, if positioning fails, receiving position information input by a user, searching corresponding communication configuration information in a preset corresponding relation according to the position information, and setting parameters of the ad hoc network communication network according to the communication configuration information. According to the embodiment of the application, the corresponding communication configuration information is determined through the input device positioning information, so that the parameters of the ad hoc network communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.

Description

Communication configuration setting method and device, storage medium and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a communication configuration setting method, a device, a storage medium and electronic equipment.
Background
An LPWAN (Low-Power Wide Area Network) is also called as an LPWA (Low-Power Wide Area Network) or an LPN (Low-Power Network), and is a wireless Network used in the internet of things (e.g., a battery-powered sensor) and capable of performing long-distance communication with a Low bit rate. Low power requirements, low bit rate and time of use may be used to distinguish LPWANs from wireless wide area networks.
In the prior art, LPWAN applications may be supported by an ad hoc network communication technology, and the LPWAN technologies currently required in the market include NB-IoT (narrowband internet of things Narrow Band Internet of Things), eMTC (enhanced machine type communication, LTE enhanced MTO), loRa (Long Range Radio), and the like.
Disclosure of Invention
The application provides a communication configuration setting method, a device, a storage medium and electronic equipment, which can set parameters of an ad hoc network communication network according to input equipment positioning information, and improve the flexibility of use.
In a first aspect, an embodiment of the present application provides a communication configuration setting method, applied to an electronic device, where the electronic device includes an ad hoc network communication network, including:
receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic equipment according to the instruction;
if positioning fails, receiving position information input by a user;
searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
In a second aspect, an embodiment of the present application provides a communication configuration setting apparatus, applied to an electronic device, where the electronic device includes an ad hoc network communication network, including:
the positioning module is used for receiving an opening instruction of the ad hoc network communication network and positioning the current position of the electronic equipment according to the instruction;
the receiving module is used for receiving the position information input by the user when the positioning of the positioning module fails;
the searching module is used for searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and the setting module is used for setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
In a third aspect, embodiments of the present application provide a storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the above-described communication configuration setting method.
In a fourth aspect, an embodiment of the present application provides an electronic device, including an ad hoc communication network, a processor, and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic equipment according to the instruction;
if positioning fails, receiving position information input by a user;
searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
The communication configuration setting method provided by the embodiment of the invention can receive the starting instruction of the ad hoc network communication network, locate the current position of the electronic equipment according to the instruction, if the current position fails, receive the position information input by the user, search the corresponding communication configuration information in the preset corresponding relation according to the position information, and set the parameters of the ad hoc network communication network according to the communication configuration information. According to the embodiment of the application, the corresponding communication configuration information is determined through the input device positioning information, so that the parameters of the ad hoc network communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a communication configuration setting method according to an embodiment of the present application.
Fig. 2 is another flow chart of a communication configuration setting method according to an embodiment of the present application.
Fig. 3 is a schematic view of a scenario of a communication configuration setting method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a communication configuration setting device according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of the communication configuration setting device provided in the embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements throughout, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on the illustrated embodiments of the present application and should not be taken as limiting other embodiments not described in detail herein.
In the following description, specific embodiments of the present application will be described with reference to steps and symbols performed by one or more computers, unless otherwise indicated. Thus, these steps and operations will be referred to in several instances as being performed by a computer, which as referred to herein performs operations that include processing units by the computer that represent electronic signals that represent data in a structured form. This operation transforms the data or maintains it in place in the computer's memory system, which may reconfigure or otherwise alter the computer's operation in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, and one skilled in the art will recognize that various steps and operations described below may also be implemented in hardware.
The terms "first," "second," and "third," etc. in this application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the particular steps or modules listed and certain embodiments may include additional steps or modules not listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a flow chart of a communication configuration setting method according to an embodiment of the present application. The communication configuration setting method provided by the embodiment of the application is applied to the electronic equipment, and the specific flow can be as follows:
step 101, receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic equipment according to the instruction.
In the embodiment of the application, the electronic device includes an ad hoc network, which may be an LPWAN, for example, may be implemented by an ad hoc communication module. The above-mentioned ad hoc network communication module supports one or several LPWAN applications, such as LoRa, sigFox, weightless, RPMA, qowisio, N-Wave, telensa, DART, and may also support a medium-long distance private communication protocol, which is not limited in this application.
The opening instruction of the ad hoc network communication network may be triggered by a user, for example, the user opens an application program including the ad hoc network communication network, so as to trigger the opening instruction of the ad hoc network communication network, or the user opens a switch of the ad hoc network communication function, or may start the opening instruction. The electronic device in the embodiment of the present application includes a mobile electronic device, such as a mobile phone, a tablet computer, etc., so that the electronic device needs to be located first, and then set according to relevant configuration information of the local use of the ad hoc communication network.
In an embodiment, the location information of the electronic device may be obtained through a global positioning system on the electronic device, or base station information connected with the electronic device, or a service set identifier connected with a wireless network of the electronic device. The location information of the electronic device may be obtained, for example, by a GPS positioning system on the electronic device, or may be obtained by base station information of a current electronic device connection, and SSID (Service Set Identifier ) and BSSID (Basic Service Set Identifier, basic service set identifier) of a WIFI (WIreless-Fidelity) connection of the current electronic device.
Step 102, if positioning fails, receiving the position information input by the user.
In an embodiment, if the positioning is successful, for example, the signal or network condition of the current electronic device is good, the current location information of the electronic device is obtained through the base station or the global positioning system. The location information can also be accurate to specific street information, such as "XX No. of Shenzhen Shennan Dadao in Shenzhen, guangdong, china". Further, in other embodiments, it is contemplated that the positioning information in the present application is used to determine the communication configuration information that is currently needed, and the configuration information is often in units of countries, that is, different countries may use different communication configuration information. The above-mentioned located location information may thus also include only country information, such as china.
In an embodiment, if the current network and the signal of the electronic device are in a poor state, for example, the global positioning system cannot be used and the base station information cannot be acquired when no signal is available, so that the positioning function of the electronic device cannot be used, that is, the positioning fails, and the position information input by the user can be received. Such as pop up a location information tab, which is determined by the user clicking.
Further, the above-mentioned position information input by the user may be input by text or by voice. For example, the user types in the position information in the input box, or receives the voice of the user by means of a voice assistant of the electronic device, and then performs steps such as feature extraction, voice recognition analysis and the like on the voice to extract text information in the voice as the position information. The technology of voice analysis is mature at present, so that detailed description is omitted.
In an embodiment, when the user inputs the position information, the user can also input the position information by generating a plurality of alternative position information and then selecting the position information from the plurality of alternative position information. Specifically, the position information of the electronic device which is positioned most recently can be acquired first, and then a plurality of candidate position information is generated according to the position information, so that a user can select the position information from the position information, the speed and the efficiency of inputting the position information by the user can be greatly improved, and the candidate position information generated according to the position information which is positioned most recently is more similar to the current position information because the probability of the position information which is positioned most recently is the same as or similar to the current position information. For example, when the user needs to input the current location information, the location of the electronic device located last time is first acquired as country a, and then country B, country C, and country D adjacent to the country a are further acquired, so as to generate alternative location information, that is, country a, country B, country C, and country D. The above 4 country information may be displayed on the screen of the electronic device in a list manner, a click operation of the user is received, and the country information clicked by the user, for example, country C, is determined, and the country C may be determined as the location information input by the user.
It should be noted that, in consideration of that the communication configuration information used by some countries is the same, after the plurality of candidate location information are generated, it may be further determined whether a country having the same communication configuration information exists, and if so, the country information having the same communication configuration information may be combined and then presented on the electronic device screen. If the country C and the country D both use a set of communication configuration information, the country C and the country D can be combined into one line or one column in the list, so that the country information can be integrated and more contents can be displayed in the list.
Step 103, searching corresponding communication configuration information in a preset corresponding relation according to the position information.
In this embodiment of the present application, a preset correspondence is pre-stored in the electronic device, where the preset correspondence may include a plurality of location information and communication configuration information corresponding to the location information, where the communication configuration information includes setting information of a plurality of parameters in an ad hoc network communication network, for example, the parameters include a frequency range, an occupied bandwidth, and a transmitting power, and in other embodiments, the parameters may further include a communication service type, a duty cycle, a special protocol specification, and so on.
For example, if the location information determined successfully by the location or the location information input by the user after the location failure is "XX number of the deep south large channel in Shenzhen, guangdong province of China", the communication configuration information corresponding to the location information is searched in the preset corresponding relation.
In the actual use process, if the accuracy of the position information in the preset corresponding relationship is too high, for example, the position information is accurate to towns or streets, the communication configuration information corresponding to each position information needs to be set, so that the data in the preset corresponding relationship is huge. In the embodiment of the present application, in consideration of that the communication configuration information is generally formulated in units of countries, the location information in the above-described preset correspondence relationship may be in units of countries. When searching the communication configuration information, only the communication configuration information corresponding to the country is needed to be searched in a preset corresponding relation according to the country information in the position information, for example, after the position 'the XX number of Shenzhen, shennan Dadao, guangdong province of China' is determined, the communication configuration information corresponding to China can be searched in the preset corresponding relation. That is, the step of searching for corresponding communication configuration information in a preset correspondence according to the location information may include:
determining the area where the position information is located;
searching communication configuration information corresponding to the area in the preset corresponding relation.
And 104, setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
In an embodiment, if the communication configuration information corresponding to the location information is found in the preset correspondence, parameters of the ad hoc network communication network may be further set according to setting information of each parameter in the communication configuration information, where the parameters include a frequency range, an occupied bandwidth, a transmitting power, and the like. The ad hoc network may be a LoRa in LPWAN communication technology, where LoRa is an ultra-long distance wireless transmission scheme based on spread spectrum technology adopted and popularized by Semtech company. Currently, loRa operates mainly in the global free frequency band, including 433, 868, 915MHz, etc. The LoRa technology has the characteristics of long distance, low power consumption (long battery life), multiple nodes and low cost. For example, the frequency range of the LoRa may be set to 915-920MHz, the occupied bandwidth of the LoRa may be set to less than 1MHz, the transmitting power of the LoRa may be set to less than 30dBm, and the communication service type, the duty cycle, the special protocol specification, the encryption mode, etc. of the LoRa may be further set according to the communication configuration information.
In an embodiment, if the communication configuration information corresponding to the location information is not found in the preset correspondence, for example, the preset correspondence does not have the location information input by the user or located by the device, the user may further manually set the communication configuration information, for example, set a plurality of parameter information in the communication configuration information respectively, and set the parameters of the ad hoc network communication network according to the communication configuration information after the setting is completed. Namely the method further comprises the following steps:
if the communication configuration information corresponding to the area is not found in the preset corresponding relation, receiving parameter setting information input by a user;
and generating communication configuration information according to the parameter setting information.
If the parameter setting information in the communication configuration information is input by the user, the user may be reminded before setting the parameter of the ad hoc network communication network according to the communication configuration information, for example, a prompt is generated on the screen of the electronic device, where the communication frequency and power of the application need to meet local supervision, for example, interference to other devices is caused, and the result needs to be self-negative. "
As can be seen from the foregoing, the communication configuration setting method provided by the embodiment of the present application may receive an opening instruction of the ad hoc network communication network, locate a current location of the electronic device according to the instruction, if the location fails, receive location information input by a user, search corresponding communication configuration information in a preset corresponding relationship according to the location information, and set parameters of the ad hoc network communication network according to the communication configuration information. According to the embodiment of the application, the corresponding communication configuration information is determined through the input device positioning information, so that the parameters of the ad hoc network communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
The communication configuration setting method of the present application will be further described below on the basis of the method described in the above embodiment. Referring to fig. 2, fig. 2 is another flow chart of a communication configuration setting method according to an embodiment of the present application, where the communication configuration setting method includes:
step 201, receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic device according to the instruction.
In the embodiment of the application, the electronic device includes an ad hoc network, which may be an LPWAN, for example, may be implemented by an ad hoc communication module. Wherein the ad hoc communication module supports one or more of LPWAN applications, such as LoRa.
In an embodiment, the location information of the electronic device may be obtained through a global positioning system on the electronic device, or base station information connected with the electronic device, or a service set identifier connected with a wireless network of the electronic device.
Step 202, if the positioning is successful, determining the positioning information of the positioning.
In an embodiment, if the positioning is successful, for example, the signal or network condition of the current electronic device is good, the current location information of the electronic device is obtained through the base station or the global positioning system. The location information can also be accurate to specific street information, such as "XX No. of Shenzhen Shennan Dadao in Shenzhen, guangdong, china".
In another embodiment, if the current network and the signal of the electronic device are in a poor state, for example, the global positioning system cannot be used and the base station information cannot be acquired when no signal is available, so that the positioning function of the electronic device cannot be used, that is, the positioning fails, and the position information input by the user can be received. Such as pop-up a location information tab, determined by a user click, or by a user clicking in a map to determine location information, etc.
Step 203, determining whether the location information is located in a preset range of the current area, if not, executing step 204, and if so, executing step 205.
In an embodiment, the current area may be country information, for example, the current area of the "Shen nan Dadao XX No. of Shen nan Dai of Guangdong province of China" is China. Further, the predetermined area may be in the vicinity of an edge zone or border line of the country, for example, the predetermined area may be set to be a range of 1000 meters or less from the border line. It may be determined whether the distance between the location and the border line is less than 1000 meters, if not, step 204 is continued, if so, it is determined that the location is located in an edge zone of the country, and step 205 is further performed.
Step 204, searching corresponding communication configuration information in a preset corresponding relation according to the position information.
If the currently located position is determined not to be in the border zone of the country, the corresponding communication configuration information can be searched in the preset corresponding relation according to the position information. In this embodiment of the present application, a preset correspondence is pre-stored in the electronic device, where the preset correspondence may include a plurality of location information and communication configuration information corresponding to the location information, where the communication configuration information includes setting information of a plurality of parameters in an ad hoc network communication network, for example, the parameters include a frequency range, an occupied bandwidth, and a transmitting power.
In one embodiment, the location information in the preset correspondence relationship may be in a country unit, considering that the communication configuration information is generally formulated in a country unit. For example, the preset correspondence may be as follows:
region of Frequency range Occupying bandwidth Transmitting power
Country a 863-868MHz Less than 200kHz Less than 20dBm
Country b 915-920MHz Less than 1MHz Less than 30dBm
Country c 865-867MHz Less than 250kHz Less than 14dBM
And then, when searching the communication configuration information, searching the communication configuration information corresponding to the country in the preset corresponding relation according to the country information in the position information. For example, if the location information corresponds to country c, communication configuration information corresponding to country c is obtained, wherein the communication configuration information comprises frequency ranges of 865-867MHz, occupied bandwidth is set to be less than 250kHz, and transmitting power is set to be less than 14dBM.
Step 205, generating prompt information according to the preset range area, wherein the prompt information comprises first position information and second position information.
In the actual use process, if the position is determined to be in the border zone of the country, the positioning error may cause misjudgment of the country or the region, thereby affecting the accuracy of the subsequent acquisition of the communication configuration information. Therefore, in an embodiment, the prompt information may be generated according to the preset range area, where the prompt information includes first location information and second location information, where the first location information may be a country where the location information is located, and the second location information may be a country adjacent to the country and closest to the location information.
For example, country a and country b are adjacent, the border line distance between the location information and the two countries is less than 1000 meters, and the location is confirmed to be in an edge zone, at this time, prompt information may be generated according to the country a and the country b and displayed on a screen of the electronic device for a user to select, as shown in fig. 3, fig. 3 is a schematic view of a scenario of the communication configuration setting method provided in the embodiment of the present application, where the first location information and the second location information may be displayed in the form of icons respectively.
And 206, receiving target position information selected by the user according to the prompt information.
With continued reference to fig. 3, after the prompt message is generated, the user clicks the screen to select, for example, click the icon of country a in the prompt message, so as to determine that the target location information is country a.
Step 207, searching corresponding communication configuration information in a preset corresponding relation according to the target position information.
The step of searching the corresponding communication configuration information in the preset correspondence may refer to step 204, which is not described herein.
And step 208, setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
In an embodiment, if the communication configuration information corresponding to the location information is found in the preset correspondence, parameters of the ad hoc network communication network may be further set according to setting information of each parameter in the communication configuration information, where the parameters include a frequency range, an occupied bandwidth, a transmitting power, and the like. For example, the ad hoc network may be a LoRa in the LPWAN communication technology, and the communication configuration information includes parameter setting information corresponding to the country c, so that a frequency range of the LoRa may be set to 915-920MHz, an occupied bandwidth of the LoRa may be set to less than 1MHz, and a transmitting power of the LoRa may be set to less than 30dBm.
As can be seen from the foregoing, the communication configuration setting method provided in the embodiment of the present application may receive an opening instruction of an ad hoc network communication network, locate a current location of an electronic device according to the instruction, if the location is successful, determine location information of the location, determine whether the location information is located in a preset range area of the current location area, if not, search corresponding communication configuration information in a preset corresponding relationship according to the location information, if yes, generate a prompt message according to the preset range area, where the prompt message includes a first location information and a second location information, receive target location information selected by a user according to the prompt message, search corresponding communication configuration information in the preset corresponding relationship according to the target location information, and set parameters of the ad hoc network communication network according to the communication configuration information, where the parameters include a frequency range, an occupied bandwidth, and a transmitting power. According to the embodiment of the application, the corresponding communication configuration information is determined through the input device positioning information, so that the parameters of the ad hoc network communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a communication configuration setting device according to an embodiment of the present application. Wherein the communication configuration setting apparatus 30 is applied to an electronic device including an ad hoc communication network, comprising:
the positioning module 301 is configured to receive an opening instruction of the ad hoc network communication network, and position a current location of the electronic device according to the instruction;
the receiving module 302 is configured to receive location information input by a user when the positioning module fails to position;
a searching module 303, configured to search corresponding communication configuration information in a preset corresponding relationship according to the location information;
and a setting module 304, configured to set parameters of the ad hoc network according to the communication configuration information, where the parameters include a frequency range, an occupied bandwidth, and a transmitting power.
In an embodiment, referring to fig. 5, in this embodiment, the communication configuration setting device 30 may further include:
a determining module 305, configured to determine location information of the positioning when the positioning is successful;
a judging module 306, configured to judge whether the location information is located in a preset range area of the current area;
the searching module 303 is further configured to search for corresponding communication configuration information in a preset corresponding relationship according to the location information when the judging module 306 judges that the communication configuration information is not.
In an embodiment, the searching module 303 may include:
a determining submodule 3031, configured to determine an area in which the location information is located;
and a searching submodule 3032, configured to search the communication configuration information corresponding to the area in the preset corresponding relationship.
As can be seen from the foregoing, the communication configuration setting device 30 in the embodiment of the present application may receive an opening instruction of the ad hoc network communication network, locate a current location of the electronic device according to the instruction, if the location fails, receive location information input by a user, search corresponding communication configuration information in a preset corresponding relationship according to the location information, and set parameters of the ad hoc network communication network according to the communication configuration information. According to the embodiment of the application, the corresponding communication configuration information is determined through the input device positioning information, so that the parameters of the ad hoc network communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
In this embodiment of the present application, the communication configuration setting device and the communication configuration setting method in the foregoing embodiment belong to the same concept, and any method provided in the embodiment of the communication configuration setting method may be run on the communication configuration setting device, and a specific implementation process of the method is detailed in the embodiment of the communication configuration setting method, which is not described herein again.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as implementing objects on the computing system. The apparatus and methods described herein may be implemented in software, but may also be implemented in hardware, which is within the scope of the present application.
The embodiment of the application also provides a storage medium, on which a computer program is stored, which when run on a computer causes the computer to execute the above-described communication configuration setting method.
The embodiment of the application also provides electronic equipment, such as a tablet personal computer, a mobile phone and the like. The processor in the electronic device loads the instructions corresponding to the processes of one or more application programs into the memory according to the following steps, and the processor runs the application programs stored in the memory, so as to realize various functions:
receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic equipment according to the instruction;
if positioning fails, receiving position information input by a user;
searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Referring to fig. 6, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 400 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device 400 and processes data by running or loading computer programs stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device 400.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
In the embodiment of the present application, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions, as follows:
receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic equipment according to the instruction;
if positioning fails, receiving position information input by a user;
searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
Referring to fig. 7, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. Wherein, the display 403, the radio frequency circuit 404, the audio circuit 405 and the power supply 406 are electrically connected to the processor 401 respectively.
The display 403 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces that may be composed of graphics, text, icons, video, and any combination thereof. The display 403 may include a display panel, which in some embodiments may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), or an Organic Light-Emitting Diode (OLED), or the like.
The radio frequency circuitry 404 may be used to transceive radio frequency signals to establish wireless communications with a network device or other electronic device via wireless communications. Typically, the radio frequency circuitry 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like.
The audio circuitry 405 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone. The audio circuit 506 may convert the received audio data into an electrical signal, transmit to a speaker, and be converted into a sound signal output by the speaker.
The power supply 406 may be used to power the various components of the electronic device 400. In some embodiments, the power supply 406 may be logically connected to the processor 401 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system. The power supply 406 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 7, the electronic device 400 may further include a camera, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It should be noted that, for the communication configuration setting method of the embodiment of the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the communication configuration setting method of the embodiment of the present application may be implemented by controlling related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution may include, for example, the flow of the embodiment of the communication configuration setting method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the communication configuration setting device of the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules, if implemented as software functional modules and sold or used as a stand-alone product, may also be stored on a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The foregoing describes in detail a communication configuration setting method, apparatus, storage medium and electronic device provided in the embodiments of the present application, and specific examples are applied to illustrate principles and implementations of the present application, where the foregoing description of the embodiments is only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (9)

1. A communication configuration setting method applied to an electronic device, the electronic device comprising an ad hoc communication network, the method comprising the steps of:
receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic equipment according to the instruction;
if the positioning is successful, determining positioning position information, wherein whether the position information is located in a preset range area of an area where the user is located is judged, if yes, prompting information is generated according to the preset range area, the prompting information comprises first position information and second position information, the first position information is a country where the position information is located, the second position information is a country which is adjacent to the country and is closest to the position information, so that the user can select the country, and the position information determined by the user according to the prompting information is received;
if positioning fails, receiving position information input by a user, wherein the position information of the electronic equipment which is positioned last time is acquired, and a plurality of pieces of alternative position information are generated according to the position information which is positioned last time, so that the user can select the position information;
searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
2. The communication configuration setting method according to claim 1, characterized in that the method further comprises:
if the communication configuration information is not located in the preset range area, searching corresponding communication configuration information in a preset corresponding relation according to the position information.
3. The communication configuration setting method according to claim 1, wherein the step of searching for the corresponding communication configuration information in a preset correspondence according to the location information includes:
determining the area where the position information is located;
searching communication configuration information corresponding to the area in the preset corresponding relation.
4. A communication configuration setting method according to claim 3, characterized in that the method further comprises:
if the communication configuration information corresponding to the area is not found in the preset corresponding relation, receiving parameter setting information input by a user;
and generating communication configuration information according to the parameter setting information.
5. A communication configuration setting apparatus applied to an electronic device including an ad hoc communication network, the apparatus comprising:
the positioning module is used for receiving an opening instruction of the ad hoc network communication network and positioning the current position of the electronic equipment according to the instruction;
the determining module is used for determining the position information of the positioning when the positioning is successful;
the judging module is used for judging whether the position information is located in a preset range area of the current area, if so, generating prompt information according to the preset range area, wherein the prompt information comprises first position information and second position information, the first position information is a country where the position information is located, the second position information is a country adjacent to the country and closest to the position information, so that a user can select the country, and the position information determined by the user according to the prompt information is received;
the receiving module is used for receiving the position information input by the user when the positioning module fails to position, acquiring the position information which is positioned at the latest time of the electronic equipment, and generating a plurality of alternative position information according to the position information which is positioned at the latest time so as to enable the user to select the position information;
the searching module is used for searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and the setting module is used for setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
6. The communication configuration setting apparatus according to claim 5, characterized in that the apparatus further comprises:
and the searching module is further used for searching corresponding communication configuration information in a preset corresponding relation according to the position information when the judging module judges that the position information is not the same.
7. The communication configuration setting apparatus according to claim 5, wherein the search module includes:
the determining submodule is used for determining the area where the position information is located;
and the searching sub-module is used for searching the communication configuration information corresponding to the area in the preset corresponding relation.
8. A storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the communication configuration setting method according to any one of claims 1 to 4.
9. An electronic device comprising an ad hoc communication network, a processor and a memory, said memory storing a plurality of instructions, characterized in that said processor loads instructions in said memory for performing the steps of:
receiving an opening instruction of the ad hoc network communication network, and positioning the current position of the electronic equipment according to the instruction;
if the positioning is successful, determining positioning position information, wherein whether the position information is located in a preset range area of an area where the user is located is judged, if yes, prompting information is generated according to the preset range area, the prompting information comprises first position information and second position information, the first position information is a country where the position information is located, the second position information is a country which is adjacent to the country and is closest to the position information, so that the user can select the country, and the position information determined by the user according to the prompting information is received;
if positioning fails, receiving position information input by a user, wherein the position information of the electronic equipment which is positioned last time is acquired, and a plurality of pieces of alternative position information are generated according to the position information which is positioned last time, so that the user can select the position information;
searching corresponding communication configuration information in a preset corresponding relation according to the position information;
and setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters comprise a frequency range, occupied bandwidth and transmitting power.
CN202010760088.2A 2020-07-31 2020-07-31 Communication configuration setting method and device, storage medium and electronic equipment Active CN111885628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010760088.2A CN111885628B (en) 2020-07-31 2020-07-31 Communication configuration setting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010760088.2A CN111885628B (en) 2020-07-31 2020-07-31 Communication configuration setting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111885628A CN111885628A (en) 2020-11-03
CN111885628B true CN111885628B (en) 2023-08-08

Family

ID=73205947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010760088.2A Active CN111885628B (en) 2020-07-31 2020-07-31 Communication configuration setting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111885628B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6959192B1 (en) * 2000-11-06 2005-10-25 Agere Systems Inc. System and method for updating stored information portable electronic devices based on geographic location
JP2008227590A (en) * 2007-03-08 2008-09-25 Sony Corp Wireless communication apparatus, wireless communication system, wireless communication method and program
CN102685718A (en) * 2012-05-25 2012-09-19 华为技术有限公司 Wi-Fi configuration method and system
WO2013083027A1 (en) * 2011-12-06 2013-06-13 华为终端有限公司 Terminal frequency-band adaptation method and terminal
CN105578389A (en) * 2015-12-18 2016-05-11 深圳优克云联科技有限公司 Terminal bandwidth configuration method and mobile terminal
CN109068346A (en) * 2018-08-27 2018-12-21 出门问问信息科技有限公司 A kind of method and device configuring WiFi parameter
CN110740446A (en) * 2019-10-29 2020-01-31 Oppo广东移动通信有限公司 Communication configuration method and related equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7352733B2 (en) * 2004-03-03 2008-04-01 Atheros Communications, Inc. Implementing location awareness in WLAN devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6959192B1 (en) * 2000-11-06 2005-10-25 Agere Systems Inc. System and method for updating stored information portable electronic devices based on geographic location
JP2008227590A (en) * 2007-03-08 2008-09-25 Sony Corp Wireless communication apparatus, wireless communication system, wireless communication method and program
WO2013083027A1 (en) * 2011-12-06 2013-06-13 华为终端有限公司 Terminal frequency-band adaptation method and terminal
CN102685718A (en) * 2012-05-25 2012-09-19 华为技术有限公司 Wi-Fi configuration method and system
CN105578389A (en) * 2015-12-18 2016-05-11 深圳优克云联科技有限公司 Terminal bandwidth configuration method and mobile terminal
CN109068346A (en) * 2018-08-27 2018-12-21 出门问问信息科技有限公司 A kind of method and device configuring WiFi parameter
CN110740446A (en) * 2019-10-29 2020-01-31 Oppo广东移动通信有限公司 Communication configuration method and related equipment

Also Published As

Publication number Publication date
CN111885628A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US10462764B2 (en) Method and apparatus for identifying pseudo base-station, and terminal
US10327147B2 (en) Method and apparatus for identifying pseudo base-station, and terminal
AU2018432066A1 (en) Method for selecting nsa and sa networking mode, and terminal device
CN104735671A (en) Malicious call recognition method and device
US20170318061A1 (en) Method, device, and system for managing information recommendation
CN106961710B (en) Network access method and terminal
CN106375962A (en) Network searching method and mobile terminal
CN105704700A (en) Communication network access method and device
CN106507289A (en) A kind of cut-in method of wireless network and mobile terminal
CN105873103A (en) Communication network access device and user equipment
CN105657175A (en) Network acceleration device and method
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN106570431A (en) File reading method and device
CN105898839A (en) Communication network access method and device
CN105760055A (en) Mobile terminal and control method thereof
CN106604277A (en) Wireless network access method and mobile terminal
CN105872980A (en) Method and device for scanning wireless network signal
CN110677842B (en) Network searching method, device, terminal equipment and storage medium
CN103631592B (en) A kind of configuration, call method, device and equipment that shows resource
CN103455333A (en) Desktop icon processing method and device and mobile terminal
CN110046032A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN105744600B (en) Communication network cut-in method and user equipment
CN105704788A (en) Communication network access method and user equipment
CN105657792A (en) Communication network access method and device
US11297580B2 (en) Timing method for synchronization signal block, and related product

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
GR01 Patent grant
GR01 Patent grant