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 PDFInfo
- 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
- location information
- information
- communication configuration
- country
- user
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 216
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000005540 biological transmission Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 13
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 description 17
- 230000006870 function Effects 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000000375 direct analysis in real time Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000012063 dual-affinity re-targeting Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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
Description
技术领域technical field
本申请属于通信技术领域,尤其涉及一种通信配置设置方法、装置、存储介质及电子设备。The present application belongs to the technical field of communication, and in particular relates to a communication configuration setting method, device, storage medium and electronic equipment.
背景技术Background technique
LPWAN(Low-Power Wide-Area Network,低功率广域网络)也称为LPWA(Low-PowerWide-Area)或LPN(Low-Power Network,低功率网络),是一种用在物联网(例如以电池为电源的感测器),可以用低比特率进行长距离通讯的无线网络。低电量需求、低比特率与使用时机可以用来区分LPWAN与无线广域网络。LPWAN (Low-Power Wide-Area Network, low-power wide-area network), also known as LPWA (Low-PowerWide-Area) or LPN (Low-Power Network, low-power network), is a network used in the Internet of Things (such as battery Sensors for power supply), wireless networks that can communicate over long distances at low bit rates. Low power requirements, low bit rates and timing of use can be used to differentiate LPWAN from WWAN.
在现有技术中,可以通过自组网通信技术支持LPWAN应用,而目前市面上要的LPWAN技术包括NB-IoT(窄带物联网Narrow Band Internet of Things)、eMTC(增强机器类通信,LTE enhanced MTO)、LoRa(远距离无线电(Long Range Radio)等。以LoRa为例,大部分LoRa通讯设备,在世界各地区可使用的无线电频谱、带宽、功率等都可能不一样,若应用在移动设备上,其对应配置就应当跟随当地的无线电法律规定而变化。但是在一些无网络无信号区域,终端无法获取定位,因此便无法对该设备的自组网通信网络进行配置。In the existing technology, LPWAN applications can be supported through ad hoc network communication technology, and the LPWAN technologies currently on the market include NB-IoT (Narrow Band Internet of Things), eMTC (Enhanced Machine Type Communication, LTE enhanced MTO ), LoRa (Long Range Radio), etc. Taking LoRa as an example, most LoRa communication devices may have different radio spectrum, bandwidth, power, etc. that can be used in various regions of the world. , the corresponding configuration should follow the local radio laws and regulations. However, in some areas with no network and no signal, the terminal cannot obtain the location, so it is impossible to configure the ad hoc network communication network of the device.
发明内容Contents of the invention
本申请提供一种通信配置设置方法、装置、存储介质及电子设备,可以根据输入的设备定位信息对自组网通信网络的参数进行设置,提升使用的灵活性。The present application provides a communication configuration setting method, device, storage medium and electronic equipment, which can set the parameters of the ad hoc network communication network according to the input device location information, and improve the flexibility of use.
第一方面,本申请实施例提供一种通信配置设置方法,应用于电子设备,所述电子设备包括自组网通信网络,包括:In the first aspect, the embodiment of the present application provides a communication configuration setting method, which is applied to electronic equipment, and the electronic equipment includes an ad hoc network communication network, including:
接收所述自组网通信网络的开启指令,并根据所述指令对所述电子设备当前的位置进行定位;receiving an instruction to start the ad hoc communication network, and locating the current position of the electronic device according to the instruction;
若定位失败,则接收用户输入的位置信息;If the positioning fails, the location information input by the user is received;
根据所述位置信息在预设对应关系中查找对应的通信配置信息;Searching for corresponding communication configuration information in a preset correspondence according to the location information;
根据所述通信配置信息对所述自组网通信网络的参数进行设置,其中,所述参数包括频率范围、占用带宽以及发射功率。Set parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters include frequency range, occupied bandwidth, and transmission power.
第二方面,本申请实施例提供一种通信配置设置装置,应用于电子设备,所述电子设备包括自组网通信网络,包括:In the second aspect, the embodiment of the present application provides a communication configuration setting device, which is applied to electronic equipment, and the electronic equipment includes an ad hoc network communication network, including:
定位模块,用于接收所述自组网通信网络的开启指令,并根据所述指令对所述电子设备当前的位置进行定位;A positioning module, configured to receive an instruction to start the ad hoc communication network, and locate the current position of the electronic device according to the instruction;
接收模块,用于当所述定位模块定位失败时,接收用户输入的位置信息;A receiving module, configured to receive the location information input by the user when the positioning module fails to locate;
查找模块,用于根据所述位置信息在预设对应关系中查找对应的通信配置信息;A search module, configured to search for corresponding communication configuration information in preset correspondences according to the location information;
设置模块,用于根据所述通信配置信息对所述自组网通信网络的参数进行设置,其中,所述参数包括频率范围、占用带宽以及发射功率。A setting module, configured to set parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters include frequency range, occupied bandwidth and transmission power.
第三方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的通信配置设置方法。In a third aspect, the embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is run on a computer, the computer is made to execute the communication configuration setting method described above.
第四方面,本申请实施例提供一种电子设备,包括自组网通信网络、处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:In a fourth aspect, an embodiment of the present application provides an electronic device, including an ad hoc network communication network, a processor, and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory to execute the following step:
接收所述自组网通信网络的开启指令,并根据所述指令对所述电子设备当前的位置进行定位;receiving an instruction to start the ad hoc communication network, and locating the current position of the electronic device according to the instruction;
若定位失败,则接收用户输入的位置信息;If the positioning fails, the location information input by the user is received;
根据所述位置信息在预设对应关系中查找对应的通信配置信息;Searching for corresponding communication configuration information in a preset correspondence according to the location information;
根据所述通信配置信息对所述自组网通信网络的参数进行设置,其中,所述参数包括频率范围、占用带宽以及发射功率。Set parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters include frequency range, occupied bandwidth, and transmission power.
本申请实施例提供的通信配置设置方法可以接收自组网通信网络的开启指令,并根据指令对电子设备当前的位置进行定位,若定位失败,则接收用户输入的位置信息,根据位置信息在预设对应关系中查找对应的通信配置信息,根据通信配置信息对自组网通信网络的参数进行设置。本申请实施例通过输入的设备定位信息确定对应的通信配置信息,从而根据通信配置信息对自组网通信网络的参数进行设置,有效提升使用的灵活性。The communication configuration setting method provided by the embodiment of the present application can receive the start instruction of the ad hoc communication network, and locate the current location of the electronic device according to the instruction. If the location fails, the location information input by the user is received, and the preset Find the corresponding communication configuration information in the corresponding relationship, and set the parameters of the ad hoc network communication network according to the communication configuration information. In the embodiment of the present application, the corresponding communication configuration information is determined through the input device location information, so that the parameters of the ad hoc communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本申请实施例提供的通信配置设置方法的一种流程示意图。FIG. 1 is a schematic flowchart of a communication configuration setting method provided by an embodiment of the present application.
图2为本申请实施例提供的通信配置设置方法的另一流程示意图。FIG. 2 is another schematic flow chart of the communication configuration setting method provided by the embodiment of the present application.
图3为本申请实施例提供的通信配置设置方法的一种场景示意图。FIG. 3 is a schematic diagram of a scenario of a communication configuration setting method provided in an embodiment of the present application.
图4为本申请实施例提供的通信配置设置装置的一种结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for setting a communication configuration provided in an embodiment of the present application.
图5为本申请实施例提供的通信配置设置装置的另一结构示意图。FIG. 5 is another schematic structural diagram of an apparatus for setting a communication configuration provided by an embodiment of the present application.
图6为本申请实施例提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图7为本申请实施例提供的电子设备的另一结构示意图。FIG. 7 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Referring to the drawings, where the same reference numerals represent the same components, the principles of the present application are exemplified by implementation in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments of the present application that are not described in detail here.
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principle of the present application is described in the above text, which is not meant to be a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first", "second" and "third" in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
请参阅图1,图1为本申请实施例提供的通信配置设置方法的一种流程示意图。本申请实施例提供的通信配置设置方法应用于电子设备,具体流程可以如下:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a communication configuration setting method provided in an embodiment of the present application. The communication configuration setting method provided in the embodiment of the present application is applied to electronic equipment, and the specific process may be as follows:
步骤101,接收自组网通信网络的开启指令,并根据指令对电子设备当前的位置进行定位。Step 101, receiving an instruction to activate the ad hoc communication network, and locating the current location of the electronic device according to the instruction.
在本申请实施例中,电子设备中包括自组网通信网络,该自组网通信网络可以为LPWAN,比如可以通过自组网通信模块来实现。其中,上述自组网通信模块支持LPWAN应用中一种或数种,比如LoRa、SigFox、Weightless、RPMA、Qowisio、N-Wave、Telensa、DART等,也可以支持中长距离的私有通信协议,本申请对此不做进一步限定。In the embodiment of the present application, the electronic device includes an ad hoc network communication network, and the ad hoc network communication network may be an LPWAN, for example, may be implemented by an ad hoc network communication module. Among them, the above-mentioned ad hoc network communication module supports one or more of LPWAN applications, such as LoRa, SigFox, Weightless, RPMA, Qowisio, N-Wave, Telensa, DART, etc., and can also support medium and long-distance private communication protocols. The application does not further limit this.
其中,上述自组网通信网络的开启指令可以由用户触发,比如用户打开包含自组网通信网络的应用程序,从而触发上述自组网通信网络的开启指令,或者用户打开自组网通信功能的开关,也可以出发上述开启指令。本申请实施例中的电子设备包括可移动的电子设备,比如手机、平板电脑等,因此需要先对电子设备进行定位,再根据当地使用该自组网通信网络的相关配置信息进行设置。Wherein, the activation instruction of the ad hoc network communication network may be triggered by the user, for example, the user opens an application program including the ad hoc network communication network, thereby triggering the activation instruction of the ad hoc network communication network, or the user activates the communication function of the ad hoc network The switch can also send out the above-mentioned opening command. The electronic devices in the embodiment of the present application include movable electronic devices, such as mobile phones and tablet computers, so it is necessary to locate the electronic devices first, and then set them according to the relevant configuration information of the ad hoc communication network used locally.
在一实施例中,可以通过所述电子设备上的全球定位系统、或者所述电子设备连接的基站信息、或者所述电子设备的无线网络连接的服务集标识,获取所述电子设备的位置信息。比如可以通过电子设备上的GPS定位系统来获取所述电子设备的位置信息,或者可以通过当前电子设备连接的基站信息,以及当前电子设备的WIFI(WIreless-Fidelity,无线网络)连接的SSID(Service Set Identifier,服务集标识)与BSSID(Basic Service SetIdentifier,基本的服务集标识)来获取所述电子设备的位置信息。In an embodiment, the location information of the electronic device can be acquired through the global positioning system on the electronic device, or the information of the base station connected to the electronic device, or the service set identifier of the wireless network connection of the electronic device . For example, the location information of the electronic device can be obtained through the GPS positioning system on the electronic device, or the base station information connected to the current electronic device, and the SSID (Service ID) connected to the WIFI (WIreless-Fidelity, wireless network) of the current electronic device Set Identifier, service set identifier) and BSSID (Basic Service SetIdentifier, basic service set identifier) to obtain the location information of the electronic device.
步骤102,若定位失败,则接收用户输入的位置信息。Step 102, if the positioning fails, receiving the location information input by the user.
在一实施例中,若定位成功,比如当前电子设备的信号或网络状况均良好,通过基站或全球定位系统获取到电子设备当前的位置信息。还位置信息可以精确到具体的街道信息,比如为“中国广东省深圳市深南大道XX号”。进一步的,在其他实施例中,考虑到本申请中的定位信息是用于确定当前需要使用的通信配置信息,而该配置信息往往是以国家为单位的,也即不同的国家会使用不同的通信配置信息。因此上述定位到的位置信息还可以仅包括国家信息,比如中国。In one embodiment, if the positioning is successful, for example, the current signal or network conditions of the electronic device are good, the current location information of the electronic device is obtained through a base station or a global positioning system. The location information can also be accurate to specific street information, such as "XX Shennan Avenue, Shenzhen City, Guangdong Province, China". Furthermore, in other embodiments, considering that the positioning information in this application is used to determine the current communication configuration information that needs to be used, and the configuration information is often based on a country, that is, different countries will use different Communication configuration information. Therefore, the location information located above may only include country information, such as China.
在一实施例中,若电子设备当前的网络以及信号均处于较差的状态,比如无信号无网络时无法使用全球定位系统以及获取基站信息,因此无法使用电子设备的定位功能,也即定位失败,此时可以接收用户输入的位置信息。比如弹出一个位置信息选项框,由用户点击确定。In one embodiment, if the current network and signal of the electronic device are in a poor state, for example, when there is no signal and no network, the GPS cannot be used and the base station information cannot be obtained, so the positioning function of the electronic device cannot be used, that is, the positioning fails , at this time, the location information input by the user can be received. For example, a location information option box pops up, and the user clicks to confirm.
进一步的,上述接收用户输入的位置信息时可以通过文字输入的方式,也可以通过语音输入的方式。比如用户在输入框中打字输入位置信息,或者通过电子设备的语音助手等方式接收用户的语音,然后对语音进行特征提取、语音识别分析等步骤提取出该语音中的文字信息,以作为位置信息。此处语音分析为文字的技术目前已经比较成熟,故不作具体赘述。Further, when receiving the location information input by the user, it may be input by text or by voice. For example, the user types in the location information in the input box, or receives the user's voice through the voice assistant of the electronic device, and then performs feature extraction, speech recognition analysis and other steps on the voice to extract the text information in the voice as the location information. . Here, the technology of analyzing speech into text is relatively mature at present, so details will not be described in detail.
在一实施例中,在用户输入位置信息时,还可以通过生成多个备选位置信息,再让用户从中选取的方式来进行输入。具体的,可以先获取电子设备最近的一次定位到的位置信息,再根据该位置信息生成多个备选位置信息,从而让用户从中选取,可以大大提升用户输入位置信息的速度和效率,又因为最近一次定位到的位置信息大概率与当前的位置信息相同或相近,因此根据最近一次定位到的位置信息生成的备选位置信息也会与当前的位置信息更为接近。举例来说,在需要用户输入当前的位置信息时,先获取上一次定位到电子设备位置为国家A,再进一步获取与该国家A相邻的国家B、国家C以及国家D,生成备选位置信息也即上述国家A、国家B、国家C以及国家D。可以通过列表的方式将上述4个国家信息显示在电子设备屏幕上,接收用户的点击操作,并确定用户点击的国家信息,比如为国家C,即可将该国家C确定为用户输入的位置信息。In an embodiment, when the user inputs the location information, it may also generate a plurality of candidate location information and allow the user to select from them for input. Specifically, it is possible to obtain the latest location information of the electronic device first, and then generate multiple candidate location information based on the location information, so that the user can choose from them, which can greatly improve the speed and efficiency of the user's input location information, and because The latest location information is likely to be the same as or similar to the current location information, so the candidate location information generated based on the latest location information will also be closer to the current location information. For example, when the user is required to input the current location information, first obtain the last location of the electronic device as country A, and then further obtain the country B, country C, and country D adjacent to the country A to generate alternative locations The information is also the above-mentioned country A, country B, country C and country D. The above four country information can be displayed on the screen of the electronic device in the form of a list, receive the user's click operation, and determine the country information clicked by the user, for example, country C, then the country C can be determined as the location information input by the user .
需要说明的是,考虑到有些国家使用的通信配置信息相同,因此在生成上述多个备选位置信息之后,还可以确定是否存在具有相同通信配置信息的国家,若存在,则可以将该具有相同通信配置信息的国家信息进行合并后再呈献至电子设备屏幕上。比如若上述国家C和国家D均使用一套通信配置信息,则可以在列表中将国家C和国家D合并到一行或者一列,既将国家信息进行整合又能使列表中显示更多内容。It should be noted that, considering that some countries use the same communication configuration information, after generating the above multiple candidate location information, it can also be determined whether there is a country with the same communication configuration information, and if so, the country with the same communication configuration information can be determined. The country information of the communication configuration information is combined and presented on the screen of the electronic device. For example, if the above-mentioned country C and country D both use a set of communication configuration information, country C and country D can be combined into one row or column in the list, which not only integrates the country information but also enables more content to be displayed in the list.
步骤103,根据位置信息在预设对应关系中查找对应的通信配置信息。Step 103, searching for corresponding communication configuration information in preset correspondences according to the location information.
在本申请实施例中,电子设备中预先存储了预设对应关系,该预设对应关系可以包括多个位置信息以及与该位置信息对应的通信配置信息,其中,该通信配置信息包括自组网通信网络中多个参数的设置信息,比如上述参数包括频率范围、占用带宽以及发射功率,在其他实施例中,上述参数还可以包括通信业务类型、占空比、特殊协议规范等。In the embodiment of the present application, the electronic device pre-stores a preset correspondence, and the preset correspondence may include a plurality of location information and communication configuration information corresponding to the location information, wherein the communication configuration information includes an ad hoc network Setting information of multiple parameters in the communication network. For example, the above parameters include frequency range, occupied bandwidth, and transmission power. In other embodiments, the above parameters may also include communication service types, duty cycles, and special protocol specifications.
比如定位成功确定的位置信息或定位失败后用户输入的位置信息为“中国广东省深圳市深南大道XX号”,则在预设对应关系中查找该位置信息对应的通信配置信息。For example, if the location information is successfully determined or the location information input by the user after the location fails is "XX Shennan Avenue, Shenzhen City, Guangdong Province, China", then the communication configuration information corresponding to the location information is searched in the preset corresponding relationship.
在实际使用过程中,若上述预设对应关系中的位置信息的精确度过高,比如精确到城镇或街道,就需要设置每个位置信息对应的通信配置信息,因此这样会使得预设对应关系中的数据极为庞大。在本申请实施例中,考虑到通信配置信息一般是以国家为单位制定的,因此上述预设对应关系中的位置信息可以以国家为单位。然后在查找通信配置信息时只需根据位置信息中的国家信息在预设对应关系中查找该国家对应的通信配置信息即可,比如在确定上述位置“中国广东省深圳市深南大道XX号”后,就可以在预设对应关系中查找中国对应的通信配置信息。也即所述根据所述位置信息在预设对应关系中查找对应的通信配置信息的步骤可以包括:In actual use, if the accuracy of the location information in the above-mentioned preset correspondence relationship is too high, such as accurate to towns or streets, it is necessary to set the communication configuration information corresponding to each location information, so this will make the preset correspondence relationship The data in is extremely large. In the embodiment of the present application, considering that the communication configuration information is generally formulated in units of countries, the location information in the above preset correspondence relationship may be in units of countries. Then, when searching for communication configuration information, you only need to search for the corresponding communication configuration information of the country in the preset correspondence according to the country information in the location information, for example, in determining the above location "XX Shennan Avenue, Shenzhen City, Guangdong Province, China" After that, you can search for the corresponding communication configuration information in China in the preset correspondence. That is to say, the step of searching for the corresponding communication configuration information in the preset correspondence according to the location information may include:
确定所述位置信息所在的区域;determining the area where the location information is located;
在所述预设对应关系中查找与所述区域对应的通信配置信息。Searching for communication configuration information corresponding to the area in the preset correspondence.
步骤104,根据通信配置信息对自组网通信网络的参数进行设置,其中,参数包括频率范围、占用带宽以及发射功率。Step 104, setting parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters include frequency range, occupied bandwidth and transmission power.
在一实施例中,若在上述预设对应关系中查找到与位置信息对应的通信配置信息,则可以进一步根据该通信配置信息中各个参数的设置信息对自组网通信网络的参数进行设置,其中,参数包括频率范围、占用带宽以及发射功率等。其中,上述自组网通信网络可以为LPWAN通信技术中的LoRa,其中LoRa是Semtech公司采用和推广的一种基于扩频技术的超远距离无线传输方案。目前,LoRa主要在全球免费频段运行,包括433、868、915MHz等。LoRa技术具有远距离、低功耗(电池寿命长)、多节点、低成本的特性。举例来说,可以根据通信配置信息将LoRa的频率范围设置在915-920MHz,将LoRa的占用带宽设置为小于1MHz,将LoRa的发射功率设置为小于30dBm,还可以进一步设置LoRa的通信业务类型、占空比、特殊协议规范、加密方式等等。In an embodiment, if the communication configuration information corresponding to the location information is found in the above-mentioned preset correspondence relationship, the parameters of the ad hoc communication network may be further set according to the setting information of each parameter in the communication configuration information, Among them, the parameters include frequency range, occupied bandwidth, and transmit power. Wherein, the above-mentioned ad hoc network communication network may be LoRa in LPWAN communication technology, wherein LoRa is an ultra-long-distance wireless transmission scheme based on spread spectrum technology adopted and promoted by Semtech. At present, LoRa mainly operates in free frequency bands around the world, including 433, 868, 915MHz and so on. LoRa technology has the characteristics of long distance, low power consumption (long battery life), multi-node, and low cost. For example, according to the communication configuration information, the frequency range of LoRa can be set at 915-920MHz, the occupied bandwidth of LoRa can be set to be less than 1MHz, the transmission power of LoRa can be set to be less than 30dBm, and the communication service type of LoRa, Duty cycle, special protocol specification, encryption method, etc.
在一实施例中,若未在上述预设对应关系中查找到与位置信息对应的通信配置信息,比如预设对应关系中没有用户输入或设备定位的位置信息,还可以进一步由用户手动设置通信配置信息,比如分别设置该通信配置信息中的多个参数信息,并在设置完成后根据该通信配置信息对所述自组网通信网络的参数进行设置。也即所述方法还包括:In an embodiment, if the communication configuration information corresponding to the location information is not found in the preset correspondence, for example, there is no location information input by the user or positioned by the device in the preset correspondence, the user can further manually set the communication configuration information. Configuration information, such as setting multiple parameter information in the communication configuration information respectively, and setting parameters of the ad hoc network communication network according to the communication configuration information after the setting is completed. That is, the method also includes:
若所述预设对应关系中未查找到与所述区域对应的通信配置信息,则接收用户输入的参数设置信息;If no communication configuration information corresponding to the area is found in the preset corresponding relationship, receiving parameter setting information input by the user;
根据所述参数设置信息生成通信配置信息。Generate communication configuration information according to the parameter setting information.
其中,若上述通信配置信息中的参数设置信息是由用户输入的,还可以在根据通信配置信息对自组网通信网络的参数进行设置之前,对用户进行提醒,比如在电子设备屏幕上生成提示“本应用的通信频率和功率需要满足当地监管,如造成对其他设备的干扰,后果需自负。”Wherein, if the parameter setting information in the above-mentioned communication configuration information is input by the user, it is also possible to remind the user before setting the parameters of the ad hoc network communication network according to the communication configuration information, such as generating a prompt on the screen of the electronic device "The communication frequency and power of this application need to meet local regulations. If it causes interference to other devices, the consequences will be at your own risk."
由上可知,本申请实施例提供的通信配置设置方法可以接收自组网通信网络的开启指令,并根据指令对电子设备当前的位置进行定位,若定位失败,则接收用户输入的位置信息,根据位置信息在预设对应关系中查找对应的通信配置信息,根据通信配置信息对自组网通信网络的参数进行设置。本申请实施例通过输入的设备定位信息确定对应的通信配置信息,从而根据通信配置信息对自组网通信网络的参数进行设置,有效提升使用的灵活性。It can be seen from the above that the communication configuration setting method provided by the embodiment of the present application can receive the opening command of the ad hoc communication network, and locate the current position of the electronic device according to the command. If the positioning fails, the position information input by the user is received, and according to The location information searches for the corresponding communication configuration information in the preset corresponding relationship, and sets the parameters of the ad hoc network communication network according to the communication configuration information. In the embodiment of the present application, the corresponding communication configuration information is determined through the input device location information, so that the parameters of the ad hoc communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
下面将在上述实施例描述的方法基础上,对本申请的通信配置设置方法做进一步介绍。参阅图2,图2为本申请实施例提供的通信配置设置方法的另一流程示意图,该通信配置设置方法包括:The communication configuration setting method of the present application will be further introduced below on the basis of the methods described in the above embodiments. Referring to FIG. 2, FIG. 2 is another schematic flow chart of the communication configuration setting method provided by the embodiment of the present application. The communication configuration setting method includes:
步骤201,接收自组网通信网络的开启指令,并根据指令对电子设备当前的位置进行定位。Step 201, receiving an instruction to activate the ad hoc communication network, and locating the current location of the electronic device according to the instruction.
在本申请实施例中,电子设备中包括自组网通信网络,该自组网通信网络可以为LPWAN,比如可以通过自组网通信模块来实现。其中,上述自组网通信模块支持LPWAN应用中一种或数种,比如LoRa。In the embodiment of the present application, the electronic device includes an ad hoc network communication network, and the ad hoc network communication network may be an LPWAN, for example, may be implemented by an ad hoc network communication module. Wherein, the above-mentioned ad hoc network communication module supports one or several types of LPWAN applications, such as LoRa.
在一实施例中,可以通过所述电子设备上的全球定位系统、或者所述电子设备连接的基站信息、或者所述电子设备的无线网络连接的服务集标识,获取所述电子设备的位置信息。In an embodiment, the location information of the electronic device can be acquired through the global positioning system on the electronic device, or the information of the base station connected to the electronic device, or the service set identifier of the wireless network connection of the electronic device .
步骤202,若定位成功,则确定定位的位置信息。Step 202, if the positioning is successful, determine the location information of the positioning.
在一实施例中,若定位成功,比如当前电子设备的信号或网络状况均良好,通过基站或全球定位系统获取到电子设备当前的位置信息。还位置信息可以精确到具体的街道信息,比如为“中国广东省深圳市深南大道XX号”。In one embodiment, if the positioning is successful, for example, the current signal or network conditions of the electronic device are good, the current location information of the electronic device is obtained through a base station or a global positioning system. The location information can also be accurate to specific street information, such as "XX Shennan Avenue, Shenzhen City, Guangdong Province, China".
在另一实施例中,若电子设备当前的网络以及信号均处于较差的状态,比如无信号无网络时无法使用全球定位系统以及获取基站信息,因此无法使用电子设备的定位功能,也即定位失败,此时可以接收用户输入的位置信息。比如弹出一个位置信息选项框,由用户点击确定,或者由用户在地图中通过点击确定位置信息等等。In another embodiment, if the current network and signal of the electronic device are in a poor state, for example, when there is no signal and no network, the global positioning system cannot be used and base station information cannot be obtained, so the positioning function of the electronic device cannot be used, that is, positioning If it fails, the location information input by the user can be received at this time. For example, a location information option box pops up, and the user clicks to confirm, or the user clicks to confirm the location information on the map, and so on.
步骤203,判断位置信息是否位于当前所在区域的预设范围区域内,若否,则执行步骤204,若是,则执行步骤205。Step 203 , judging whether the location information is within the preset area of the current location, if not, then execute step 204 , if yes, execute step 205 .
在一实施例中,上述当前区域可以为国家信息,比如上述“中国广东省深圳市深南大道XX号”的当前所在区域即为中国。进一步的,上述预设区域范围为国家的边缘地带或者边境线附近,比如可以设置上述预设范围区域为距离边境线1000米以内的范围区域。则可以判断上述位置与边境线之间的距离是否小于1000米,若不小于,则继续执行步骤204,若小于,则确定该位置位于国家的边缘地带,并进一步执行步骤205。In an embodiment, the above-mentioned current area may be country information, for example, the current area where the above-mentioned "No. XX Shennan Avenue, Shenzhen City, Guangdong Province, China" is currently located is China. Further, the above-mentioned preset area range is the border area or near the border of the country, for example, the above-mentioned preset area area can be set as an area within 1000 meters from the border line. Then it can be judged whether the distance between the above-mentioned location and the border is less than 1000 meters, if not, proceed to step 204, if not, then determine that the location is at the border of the country, and further execute step 205.
步骤204,根据位置信息在预设对应关系中查找对应的通信配置信息。Step 204, searching for corresponding communication configuration information in preset correspondences according to the location information.
若确定当前定位的位置不在国家的边缘地带,则可以根据该位置信息在预设对应关系中查找对应的通信配置信息。其中在本申请实施例中,电子设备中预先存储了预设对应关系,该预设对应关系可以包括多个位置信息以及与该位置信息对应的通信配置信息,其中,该通信配置信息包括自组网通信网络中多个参数的设置信息,比如上述参数包括频率范围、占用带宽以及发射功率。If it is determined that the currently positioned location is not at the border of the country, the corresponding communication configuration information may be searched in the preset correspondence according to the location information. In this embodiment of the present application, the electronic device pre-stores a preset correspondence, which may include a plurality of location information and communication configuration information corresponding to the location information, wherein the communication configuration information includes ad hoc The setting information of multiple parameters in the network communication network, for example, the above parameters include frequency range, occupied bandwidth and transmission power.
在一实施例中,考虑到通信配置信息一般是以国家为单位制定的,因此上述预设对应关系中的位置信息可以以国家为单位。举例来说,该预设对应关系可以如下表所示:In an embodiment, considering that the communication configuration information is generally formulated in units of countries, the location information in the above preset correspondence relationship may be in units of countries. For example, the preset corresponding relationship may be shown in the following table:
然后在查找通信配置信息时只需根据位置信息中的国家信息在预设对应关系中查找该国家对应的通信配置信息即可。比如该位置信息对应国家c,则获取国家c对应的通信配置信息,包括频率范围设置在865-867MHz,占用带宽设置为小于250kHz,发射功率设置为小于14dBM。Then, when searching for the communication configuration information, it is only necessary to search for the communication configuration information corresponding to the country in the preset corresponding relationship according to the country information in the location information. For example, if the location information corresponds to country c, the communication configuration information corresponding to country c is obtained, including setting the frequency range to 865-867MHz, setting the occupied bandwidth to less than 250kHz, and setting the transmit power to less than 14dBM.
步骤205,根据预设范围区域生成提示信息,提示信息包括第一位置信息和第二位置信息。Step 205, generating prompt information according to the preset range area, where the prompt information includes first location information and second location information.
在实际使用的过程中,若确定该位置位于国家的边缘地带,定位误差可能引起国家或地区的误判,进而影响后续获取通信配置信息的准确性。因此在一实施例中,可以根据预设范围区域生成提示信息,提示信息包括第一位置信息和第二位置信息,其中上述第一位置信息可以为上述位置信息所在的国家,上述第二位置信息可以为与上述国家相邻且与该位置信息最近的国家。In actual use, if it is determined that the location is located at the edge of the country, positioning errors may cause misjudgment of the country or region, which in turn affects the accuracy of subsequent communication configuration information. Therefore, in an embodiment, prompt information can be generated according to a preset range area, and the prompt information includes first location information and second location information, wherein the first location information can be the country where the location information is located, and the second location information It may be a country adjacent to the above-mentioned country and closest to the location information.
比如国家a与国家b相邻,上述位置信息与两个国家的边境线距离小于1000米,则确认该位置位于边缘地带,此时可以根据上述国家a和国家b生成提示信息,并显示在电子设备的屏幕上,以供用户进行选择,如图3所示,图3为本申请实施例提供的通信配置设置方法的一种场景示意图,上述第一位置信息和第二位置信息可以分别以图标的形式进行展示。For example, country a is adjacent to country b, and the distance between the above location information and the border of the two countries is less than 1000 meters, then it is confirmed that the location is located at the edge. At this time, the prompt information can be generated according to the above country a and country b, and displayed on the electronic on the screen of the device for users to choose, as shown in Figure 3, Figure 3 is a schematic diagram of a scene of the communication configuration setting method provided by the embodiment of the present application, the above-mentioned first location information and second location information can be represented by icons displayed in the form.
步骤206,接收用户根据提示信息选择的目标位置信息。Step 206, receiving target location information selected by the user according to the prompt information.
继续参阅图3,在生成提示信息后,用户点击屏幕进行选择,比如点击提示信息中的国家a的图标,从而确定目标位置信息即为国家a。Continuing to refer to FIG. 3 , after the prompt information is generated, the user clicks on the screen to make a selection, for example, clicks the icon of country a in the prompt information, so as to determine that the target location information is country a.
步骤207,根据目标位置信息在预设对应关系中查找对应的通信配置信息。Step 207, searching for corresponding communication configuration information in the preset correspondence according to the target location information.
其中,上述在预设对应关系中查找对应的通信配置信息的步骤可以参阅上述步骤204,在此不作赘述。Wherein, the above-mentioned step of searching the corresponding communication configuration information in the preset corresponding relationship can refer to the above-mentioned step 204, which will not be repeated here.
步骤208,根据通信配置信息对自组网通信网络的参数进行设置,其中,参数包括频率范围、占用带宽以及发射功率。Step 208, setting parameters of the ad hoc network communication network according to the communication configuration information, where the parameters include frequency range, occupied bandwidth and transmission power.
在一实施例中,若在上述预设对应关系中查找到与位置信息对应的通信配置信息,则可以进一步根据该通信配置信息中各个参数的设置信息对自组网通信网络的参数进行设置,其中,参数包括频率范围、占用带宽以及发射功率等。比如自组网通信网络可以为LPWAN通信技术中的LoRa,通信配置信息包括上述国家c对应的参数设置信息,因此可以将LoRa的频率范围设置在915-920MHz,将LoRa的占用带宽设置为小于1MHz,将LoRa的发射功率设置为小于30dBm。In an embodiment, if the communication configuration information corresponding to the location information is found in the above-mentioned preset correspondence relationship, the parameters of the ad hoc communication network may be further set according to the setting information of each parameter in the communication configuration information, Among them, the parameters include frequency range, occupied bandwidth, and transmit power. For example, the ad hoc network communication network can be LoRa in LPWAN communication technology, and the communication configuration information includes the parameter setting information corresponding to the above-mentioned country c, so the frequency range of LoRa can be set at 915-920MHz, and the occupied bandwidth of LoRa can be set to less than 1MHz , set the transmit power of LoRa to less than 30dBm.
由上可知,本申请实施例提供的通信配置设置方法可以接收自组网通信网络的开启指令,并根据指令对电子设备当前的位置进行定位,若定位成功,则确定定位的位置信息,判断位置信息是否位于当前所在区域的预设范围区域内,若否,则根据位置信息在预设对应关系中查找对应的通信配置信息,若是,则根据预设范围区域生成提示信息,提示信息包括第一位置信息和第二位置信息,接收用户根据提示信息选择的目标位置信息,根据目标位置信息在预设对应关系中查找对应的通信配置信息,根据通信配置信息对自组网通信网络的参数进行设置,其中,参数包括频率范围、占用带宽以及发射功率。本申请实施例通过输入的设备定位信息确定对应的通信配置信息,从而根据通信配置信息对自组网通信网络的参数进行设置,有效提升使用的灵活性。It can be seen from the above that the communication configuration setting method provided by the embodiment of the present application can receive the opening command of the ad hoc communication network, and locate the current position of the electronic device according to the command. If the positioning is successful, determine the position information of the positioning and judge the position Whether the information is located in the preset area of the current area, if not, search for the corresponding communication configuration information in the preset correspondence according to the location information, if yes, generate a prompt message according to the preset range area, the prompt information includes the first The location information and the second location information, receive the target location information selected by the user according to the prompt information, search for the corresponding communication configuration information in the preset correspondence according to the target location information, and set the parameters of the ad hoc network communication network according to the communication configuration information , where the parameters include frequency range, occupied bandwidth, and transmit power. In the embodiment of the present application, the corresponding communication configuration information is determined through the input device location information, so that the parameters of the ad hoc communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
请参阅图4,图4为本申请实施例提供的通信配置设置装置的一种结构示意图。其中该通信配置设置装置30应用于电子设备,所述电子设备包括自组网通信网络,包括:Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a communication configuration setting device provided in an embodiment of the present application. Wherein the communication configuration setting device 30 is applied to electronic equipment, and the electronic equipment includes an ad hoc network communication network, including:
定位模块301,用于接收所述自组网通信网络的开启指令,并根据所述指令对所述电子设备当前的位置进行定位;A positioning module 301, configured to receive an instruction for starting the ad hoc communication network, and locate the current position of the electronic device according to the instruction;
接收模块302,用于当所述定位模块定位失败时,接收用户输入的位置信息;The receiving module 302 is configured to receive the location information input by the user when the positioning module fails to locate;
查找模块303,用于根据所述位置信息在预设对应关系中查找对应的通信配置信息;A search module 303, configured to search for corresponding communication configuration information in preset correspondences according to the location information;
设置模块304,用于根据所述通信配置信息对所述自组网通信网络的参数进行设置,其中,所述参数包括频率范围、占用带宽以及发射功率。The setting module 304 is configured to set parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters include frequency range, occupied bandwidth and transmission power.
在一实施例中,请参阅图5,在该实施例中,所述通信配置设置装置30还可以包括:In an embodiment, please refer to FIG. 5. In this embodiment, the communication configuration setting device 30 may also include:
确定模块305,用于当定位成功时,确定所述定位的位置信息;A determining module 305, configured to determine the position information of the positioning when the positioning is successful;
判断模块306,用于判断所述位置信息是否位于当前所在区域的预设范围区域内;A judging module 306, configured to judge whether the location information is within a preset area of the current location;
所述查找模块303,还用于当所述判断模块306判断为否时,根据所述位置信息在预设对应关系中查找对应的通信配置信息。The search module 303 is further configured to search for corresponding communication configuration information in preset correspondences according to the location information when the judgment module 306 judges no.
在一实施例中,所述查找模块303可以包括:In an embodiment, the search module 303 may include:
确定子模块3031,用于确定所述位置信息所在的区域;A determining submodule 3031, configured to determine the area where the location information is located;
查找子模块3032,用于在所述预设对应关系中查找与所述区域对应的通信配置信息。The search submodule 3032 is configured to search for communication configuration information corresponding to the area in the preset correspondence.
由上述可知,本申请实施例的通信配置设置装置30可以接收自组网通信网络的开启指令,并根据指令对电子设备当前的位置进行定位,若定位失败,则接收用户输入的位置信息,根据位置信息在预设对应关系中查找对应的通信配置信息,根据通信配置信息对自组网通信网络的参数进行设置。本申请实施例通过输入的设备定位信息确定对应的通信配置信息,从而根据通信配置信息对自组网通信网络的参数进行设置,有效提升使用的灵活性。It can be seen from the above that the communication configuration setting device 30 of the embodiment of the present application can receive the start command of the ad hoc communication network, and locate the current position of the electronic device according to the command. If the positioning fails, it will receive the position information input by the user, according to The location information searches for the corresponding communication configuration information in the preset corresponding relationship, and sets the parameters of the ad hoc network communication network according to the communication configuration information. In the embodiment of the present application, the corresponding communication configuration information is determined through the input device location information, so that the parameters of the ad hoc communication network are set according to the communication configuration information, and the flexibility of use is effectively improved.
本申请实施例中,通信配置设置装置与上文实施例中的通信配置设置方法属于同一构思,在通信配置设置装置上可以运行通信配置设置方法实施例中提供的任一方法,其具体实现过程详见通信配置设置方法的实施例,此处不再赘述。In the embodiment of the present application, the communication configuration setting device and the communication configuration setting method in the above embodiments belong to the same concept, and any method provided in the communication configuration setting method embodiment can be run on the communication configuration setting device, and its specific implementation process For details, refer to the embodiment of the communication configuration setting method, which will not be repeated here.
本文所使用的术语“模块”可看作为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看作为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。The term "module" as used herein may be considered a software object that executes on the computing system. The various components, modules, engines and services described herein can be considered as implementation objects on the computing system. The devices and methods described herein can be implemented in the form of software, and of course can also be implemented in hardware, all of which are within the protection scope of the present application.
本申请实施例还提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的通信配置设置方法。The embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program is run on a computer, the computer is made to execute the communication configuration setting method described above.
本申请实施例还提供一种电子设备,如平板电脑、手机等。电子设备中的处理器会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器中,并由处理器来运行存储在存储器中的应用程序,从而实现各种功能:The embodiment of the present application also provides an electronic device, such as a tablet computer, a mobile phone, and the like. The processor in the electronic device will load the instructions corresponding to the process of one or more application programs into the memory according to the following steps, and the processor will run the application program stored in the memory, so as to realize various functions:
接收所述自组网通信网络的开启指令,并根据所述指令对所述电子设备当前的位置进行定位;receiving an instruction to start the ad hoc communication network, and locating the current position of the electronic device according to the instruction;
若定位失败,则接收用户输入的位置信息;If the positioning fails, the location information input by the user is received;
根据所述位置信息在预设对应关系中查找对应的通信配置信息;Searching for corresponding communication configuration information in a preset correspondence according to the location information;
根据所述通信配置信息对所述自组网通信网络的参数进行设置,其中,所述参数包括频率范围、占用带宽以及发射功率。Set parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters include frequency range, occupied bandwidth, and transmission power.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase 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. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
请参阅图6,电子设备400包括处理器401以及存储器402。其中,处理器401与存储器402电性连接。Referring to FIG. 6 , an electronic device 400 includes a processor 401 and a memory 402 . Wherein, the processor 401 is electrically connected with the memory 402 .
处理器400是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备400的各种功能并处理数据,从而对电子设备400进行整体监控。The processor 400 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or loading computer programs stored in the memory 402 and calling data stored in the memory 402, the processor 400 executes electronic various functions of the device 400 and process data, so as to monitor the electronic device 400 as a whole.
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。The memory 402 can 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 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating systems, computer programs required by at least one function (such as sound playback function, image playback function, etc.); Data created by the use of electronic devices, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may further include a memory controller to provide the processor 401 with access to the memory 402 .
在本申请实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401运行存储在存储器402中的计算机程序,从而实现各种功能,如下:In this embodiment of the application, the processor 401 in the electronic device 400 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 402, and run the instructions stored in the memory 402 by the processor 401. The computer program in the computer, so as to realize various functions, as follows:
接收所述自组网通信网络的开启指令,并根据所述指令对所述电子设备当前的位置进行定位;receiving an instruction to start the ad hoc communication network, and locating the current position of the electronic device according to the instruction;
若定位失败,则接收用户输入的位置信息;If the positioning fails, the location information input by the user is received;
根据所述位置信息在预设对应关系中查找对应的通信配置信息;Searching for corresponding communication configuration information in a preset correspondence according to the location information;
根据所述通信配置信息对所述自组网通信网络的参数进行设置,其中,所述参数包括频率范围、占用带宽以及发射功率。Set parameters of the ad hoc network communication network according to the communication configuration information, wherein the parameters include frequency range, occupied bandwidth, and transmission power.
请一并参阅图7,在一些实施方式中,电子设备400还可以包括:显示器403、射频电路404、音频电路405以及电源406。其中,其中,显示器403、射频电路404、音频电路405以及电源406分别与处理器401电性连接。Please also refer to FIG. 7 , in some implementation manners, the electronic device 400 may further include: a display 403 , a radio frequency circuit 404 , an audio circuit 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 respectively electrically connected to the processor 401 .
显示器403可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器403可以包括显示面板,在一些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The display 403 can be used to display information input by or provided to the user and various graphical user interfaces, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display 403 may include a display panel. In some implementation manners, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
射频电路404可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。通常,射频电路501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,SubscriberIdentity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。The radio frequency circuit 404 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to send and receive signals with network equipment or other electronic equipment. Generally, the radio frequency circuit 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), duplexer, etc.
音频电路405可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。音频电路506可将接收到的音频数据转换成电信号,传输到扬声器,由扬声器转换为声音信号输出。The audio circuit 405 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone. The audio circuit 506 can convert the received audio data into an electrical signal, transmit it to the speaker, and convert it into an audio signal for output by the speaker.
电源406可以用于给电子设备400的各个部件供电。在一些实施例中,电源406可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源406还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The power supply 406 may be used to power various components of the electronic device 400 . In some embodiments, the power supply 406 can be logically connected to the processor 401 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption through the power management system. The power supply 406 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
尽管图7中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 7 , the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), and the like.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
需要说明的是,对本申请实施例的通信配置设置方法而言,本领域普通测试人员可以理解实现本申请实施例通信配置设置方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如通信配置设置方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the communication configuration setting method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the flow of the communication configuration setting method of the embodiment of the application can be realized by controlling the relevant hardware through a computer program. Complete, the computer program can be stored in a computer-readable storage medium, such as stored in the memory of the electronic device, and executed by at least one processor in the electronic device, and the execution process can include, for example, the communication configuration setting method Example flow. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, and the like.
对本申请实施例的通信配置设置装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,存储介质譬如为只读存储器,磁盘或光盘等。For the communication configuration setting device of the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as a read-only memory, magnetic disk or optical disk.
以上对本申请实施例所提供的一种通信配置设置方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction of a communication configuration setting method, device, storage medium and electronic equipment provided by the embodiments of the present application. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The description of the above embodiments It is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, this The content of the description should not be understood as limiting the application.
Claims (9)
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)
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)
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 |
-
2020
- 2020-07-31 CN CN202010760088.2A patent/CN111885628B/en active Active
Patent Citations (7)
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 |
---|---|---|
US10327147B2 (en) | Method and apparatus for identifying pseudo base-station, and terminal | |
US10462764B2 (en) | Method and apparatus for identifying pseudo base-station, and terminal | |
CN107172671B (en) | A channel switching method, device, storage medium and terminal | |
US11321407B2 (en) | Search method, and apparatus | |
CN106888495B (en) | Network access method and terminal | |
CN106506862B (en) | Mobile terminal working mode switching method and mobile terminal | |
CN107436948B (en) | File searching method and device and terminal | |
CN107566985A (en) | A kind of main SIM card of mobile terminal determines method and device | |
CN111787631B (en) | Radio frequency resource allocation method and device and electronic equipment | |
WO2020048283A1 (en) | Carrier aggregation update method and relevant product | |
CN112269842A (en) | Information processing method and device, storage medium and computer equipment | |
CN105898839A (en) | Communication network access method and device | |
CN106028316A (en) | A network search method and device for international roaming | |
CN106570431A (en) | File reading method and device | |
CN106572459B (en) | Information processing method and device and storage medium | |
CN106961710A (en) | A kind of method for network access and terminal | |
CN110583054B (en) | Timing method of synchronization signal block, user equipment and network equipment | |
CN103631592B (en) | A kind of configuration, call method, device and equipment that shows resource | |
CN105744600B (en) | Communication network access method and user equipment | |
CN108924908A (en) | WiFi scanning method and device and electronic device | |
CN115314962A (en) | Cell access method and device | |
CN106454789A (en) | International roaming identification method and mobile terminal | |
CN106686579B (en) | Method and device for obtaining operator name | |
CN111918288B (en) | Communication method, communication device and electronic equipment | |
CN105828290A (en) | Method and device for selecting terminal to process business event |
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 |