Wireless device positioning and antithetical couplet networking method, wireless device, terminal and medium

文档序号:787630 发布日期:2021-04-09 浏览:4次 中文

阅读说明:本技术 无线设备的定位与对联组网方法、无线设备、终端及介质 (Wireless device positioning and antithetical couplet networking method, wireless device, terminal and medium ) 是由 张�浩 金立平 韦滨贵 黄嘉铖 于 2020-12-07 设计创作,主要内容包括:本发明公开了无线设备的定位与对联组网方法、无线设备、终端及介质,方法包括:第一无线设备启动,自动监听扫描周边无线信号;检测判断是否搜索到预先设置的作为AP接入设备的第二无线设备,当第一无线设备搜索到预设的作为AP接入设备的第二无线设备,第一无线设备自动设置为CPE模式,并且与第二无线设备自动对接,进行自组网;当第一无线设备没有搜索到系统指定SSID的第二无线设备,第一无线设备自动设置为AP模式,并且自动生成用于连接的预定密码,发射广播包,准备与相关无线设备对接,进行自组网。本发明通过上述的解决方案可以做到降低施工人员的技术需求,只需要控制上电设备的顺序即可完成一整套的设备组网设置,简单便捷。(The invention discloses a wireless device positioning and antithetical couplet networking method, a wireless device, a terminal and a medium, wherein the method comprises the following steps: the first wireless equipment is started to automatically monitor and scan peripheral wireless signals; detecting and judging whether a preset second wireless device serving as an AP access device is searched, and when the preset second wireless device serving as the AP access device is searched by the first wireless device, automatically setting the first wireless device to be in a CPE mode, and automatically butting with the second wireless device to perform ad hoc networking; when the first wireless device does not search the second wireless device with the system-specified SSID, the first wireless device is automatically set to the AP mode, automatically generates a preset password for connection, transmits a broadcast packet, prepares to be docked with the relevant wireless device, and performs ad hoc networking. According to the invention, the technical requirements of constructors can be reduced through the solution, and a whole set of equipment networking setting can be completed only by controlling the sequence of the power-on equipment, so that the method is simple and convenient.)

1. A method for positioning and networking a wireless device, comprising:

the first wireless equipment is started to automatically monitor and scan peripheral wireless signals;

detecting and judging whether a second wireless device which is preset as an AP access device is searched,

when the first wireless equipment searches for second wireless equipment which is preset as AP access equipment, the first wireless equipment is automatically set to be in a CPE mode, and is automatically butted with the second wireless equipment to carry out ad hoc networking;

when the first wireless device does not search the second wireless device with the system-specified SSID, the first wireless device is automatically set to the AP mode, automatically generates a preset password for connection, transmits a broadcast packet, prepares to be docked with the relevant wireless device, and performs ad hoc networking.

2. The method of claim 1, wherein when the first wireless device does not search for a second wireless device with a system-specific SSID, the first wireless device automatically sets to AP mode and automatically generates a predetermined password for connection, transmits a broadcast packet, prepares to interface with the associated wireless device, and performs ad-hoc networking, further comprising:

after the first wireless equipment is set to be in an AP mode, monitoring beacon frame information of a peripheral wireless channel; making a data list of each monitored beacon message;

the RSSI and the working channels of all current signals are automatically analyzed, network congestion is filtered according to the distribution of the signal intensity in each channel, and a channel without the network congestion of wireless signals is selected for data transmission.

3. The method of claim 1, wherein the step of the wireless device initiating and automatically listening for ambient wireless comprises:

setting a second wireless device AP-1 as an AP access device in advance;

and presetting an access password by using the specific AP-1 as an SSID after the AP-1 equipment is started.

4. The method of claim 1, wherein the step of initiating by the first wireless device and automatically listening for peripheral wireless comprises:

after the wireless equipment is started, the beacon frame information of the peripheral signals is automatically monitored.

5. The method according to claim 1, wherein when the first wireless device searches for a second wireless device that is a preset AP access device, the first wireless device automatically sets to a CPE mode and automatically interfaces with the second wireless device, and the step of performing ad hoc networking comprises:

when the first wireless equipment automatically scans beacon frame information and contains the SSID of the second wireless equipment of the AP access equipment, the first wireless equipment is determined to search the preset second wireless equipment serving as the AP access equipment;

the first wireless equipment is automatically set to be in a CPE mode, and information is written and stored;

and the first wireless equipment automatically establishes connection with the SSID of the second wireless equipment to perform ad hoc networking.

6. The method for positioning and networking of wireless devices according to claim 1, further comprising the steps of:

the mobile terminal Bluetooth is converted into a wireless Bluetooth module through a built-in serial port in the wireless equipment to establish connection with the wireless equipment;

the mobile terminal receives the operation instruction to establish the wireless equipment for remote debugging, detailed equipment state inquiry and/or remote wireless software upgrading.

7. A wireless device, wherein the wireless device is provided with:

the wireless device is provided with a CPU (central processing unit),

the display device is connected with the CPU of the wireless equipment and is used for displaying the signal intensity;

the serial port-to-Bluetooth module is connected with the CPU of the wireless device and is a data transmission module based on a Bluetooth Specification V4.0 BLE Bluetooth protocol;

the wireless device performs ad hoc networking by using the positioning and networking method of the wireless device as claimed in any one of claims 1 to 6.

8. The wireless device of claim 7, further comprising:

the first switch is connected with the CPU of the wireless equipment and is used for resetting the system or switching the display mode;

the second switch is connected with the CPU of the wireless equipment and is used for switching an AP working mode or a CPE working mode;

the display device is a liquid crystal display, and the serial port-to-Bluetooth module is a BLE4.0 Bluetooth module;

outputting display control to a display device through a GPIO pin in the CPU of the wireless equipment, and switching a liquid crystal screen to display content through the first switch; and manually switching the current working mode of the wireless equipment after the system is started through the second switch, and manually selecting the AP mode or the CPE mode.

9. An intelligent terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of the method according to any one of claims 1-6 when the one or more programs are executed by one or more processors.

10. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-6.

Technical Field

The invention relates to the technical field of system upgrading, in particular to a wireless equipment positioning and antithetical couplet networking method, wireless equipment, an intelligent terminal and a storage medium.

Background

CPE, English full name Customer premix Equipment, transliteration: the customer premises equipment is a mobile signal access equipment which receives mobile signals and forwards the mobile signals by wireless WIFI signals, and is also equipment which converts high-speed 4G or 5G signals into WiFi signals.

Present wireless WIFI CPE product is many all facing several big problems, firstly, because CPE's use generally all need professional personnel to debug with the installation, professional installer need be familiar with the whole network deployment system of CPE, need get into webpage manual switching AP and CPE mode, then set for dedicated password after, two can only ally oneself with equipment and all need synchronous setting to accomplish a series of networks, the operation is inconvenient. Secondly, because the antennas adopted by the wireless equipment are all omnidirectional antennas basically, the direction of the wireless equipment cannot be adjusted visually by constructors through the outside of the wireless equipment, and the traditional wireless equipment generally adopts three LEDs to represent the strength, the middle strength and the weakness of signals. But it is not clear whether the current signal strength is the best position; the wireless device generally can erect higher place, if meet more professional problem the constructor need climb the height and dismantle equipment gets off and carry out equipment debugging, and the great expense of debugging equipment degree of difficulty is also high.

Thus, there is still a need for improvement and development of the prior art.

Disclosure of Invention

The technical problem to be solved by the present invention is to provide a method for positioning and antithetical couplet networking of a wireless device, an intelligent terminal and a storage medium, aiming at solving the problems of inconvenient operation, low networking efficiency and labor waste of the positioning and antithetical couplet networking of the wireless device in the prior art.

The technical scheme adopted by the invention for solving the problems is as follows:

a method for positioning and networking a wireless device comprises the following steps:

the first wireless equipment is started to automatically monitor and scan peripheral wireless signals;

detecting and judging whether a second wireless device which is preset as an AP access device is searched,

when the first wireless equipment searches for second wireless equipment which is preset as AP access equipment, the first wireless equipment is automatically set to be in a CPE mode, and is automatically butted with the second wireless equipment to carry out ad hoc networking;

when the first wireless device does not search the second wireless device with the system-specified SSID, the first wireless device is automatically set to the AP mode, automatically generates a preset password for connection, transmits a broadcast packet, prepares to be docked with the relevant wireless device, and performs ad hoc networking.

The method for positioning and networking the wireless device, wherein when the first wireless device does not search the second wireless device with the system-specified SSID, the first wireless device automatically sets to the AP mode, automatically generates a predetermined password for connection, transmits a broadcast packet, prepares to be docked with the relevant wireless device, and performs ad hoc networking, further comprising:

after the first wireless equipment is set to be in an AP mode, monitoring beacon frame information of a peripheral wireless channel; making a data list of each monitored beacon message;

the RSSI and the working channels of all current signals are automatically analyzed, network congestion is filtered according to the distribution of the signal intensity in each channel, and a channel without the network congestion of wireless signals is selected for data transmission.

The method for positioning and networking the wireless equipment in an antithetical couplet mode comprises the following steps of starting the wireless equipment and automatically monitoring and scanning peripheral wireless equipment:

setting a second wireless device AP-1 as an AP access device in advance;

and presetting an access password by using the specific AP-1 as an SSID after the AP-1 equipment is started.

The method for positioning and networking the wireless equipment in the antithetical couplet comprises the following steps of starting the first wireless equipment and automatically monitoring and scanning peripheral wireless:

after the wireless equipment is started, the beacon frame information of the peripheral signals is automatically monitored.

The method for positioning and networking the wireless equipment comprises the following steps that when the first wireless equipment searches for the preset second wireless equipment serving as the AP access equipment, the first wireless equipment is automatically set to be in a CPE mode and is automatically docked with the second wireless equipment, and the step of ad hoc networking is carried out, wherein the step of networking the wireless equipment comprises the following steps:

when the first wireless equipment automatically scans beacon frame information and contains the SSID of the second wireless equipment of the AP access equipment, the first wireless equipment is determined to search the preset second wireless equipment serving as the AP access equipment;

the first wireless equipment is automatically set to be in a CPE mode, and information is written and stored;

and the first wireless equipment automatically establishes connection with the SSID of the second wireless equipment to perform ad hoc networking.

The method for positioning and networking the wireless equipment in the antithetical couplet comprises the following steps:

the mobile terminal Bluetooth is converted into a wireless Bluetooth module through a built-in serial port in the wireless equipment to establish connection with the wireless equipment;

the mobile terminal receives the operation instruction to establish the wireless equipment for remote debugging, detailed equipment state inquiry and/or remote wireless software upgrading.

A wireless device, wherein the wireless device has disposed thereon:

the wireless device is provided with a CPU (central processing unit),

the display device is connected with the CPU of the wireless equipment and is used for displaying the signal intensity;

the serial port-to-Bluetooth module is connected with the CPU of the wireless device and is a data transmission module based on a Bluetooth Specification V4.0 BLE Bluetooth protocol;

the wireless equipment adopts any one of the wireless equipment positioning and networking method for networking by antithetical couplet to carry out ad hoc networking.

The wireless device, wherein it further comprises:

the first switch is connected with the CPU of the wireless equipment and is used for resetting the system or switching the display mode;

the second switch is connected with the CPU of the wireless equipment and is used for switching an AP working mode or a CPE working mode;

the display device is a liquid crystal display, and the serial port-to-Bluetooth module is a BLE4.0 Bluetooth module;

outputting display control to a display device through a GPIO pin in the CPU of the wireless equipment, and switching a liquid crystal screen to display content through the first switch; and manually switching the current working mode of the wireless equipment after the system is started through the second switch, and manually selecting the AP mode or the CPE mode.

An intelligent terminal comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of any of the methods when the one or more programs are executed by one or more processors.

A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any of the methods.

The invention has the beneficial effects that: when the embodiment of the invention is started, the wireless equipment is started and then automatically monitors the beacon frame information of the peripheral signals, confirms the working mode of the current CPE, does not need manual intervention and automatically configures the mode; and the information such as the signal intensity of the current link state can be reflected in more detail through the liquid crystal display screen on the CPE; in addition, a serial port-to-Bluetooth module is arranged in the CPE, and the CPE can be remotely debugged by connecting the Bluetooth of the mobile phone to the CPE without climbing a pole. Through the technical scheme, the technical requirements of constructors can be reduced, and a whole set of equipment networking setting can be completed only by controlling the sequence of the power-on equipment, so that the method is simple and convenient. The remote control brings convenience to debugging personnel.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic flowchart of a method for positioning and peer-to-peer networking of a wireless device according to an embodiment of the present invention.

Fig. 2 is a functional block diagram of a wireless device provided in embodiment 1 of the present invention.

Fig. 3 is a schematic diagram of a process of networking by a wireless device according to an embodiment of the present invention.

Fig. 4 is a schematic diagram of a wireless device provided in embodiment 2 of the present invention.

Fig. 5 is a schematic diagram of a connection between a wireless device and a bluetooth of a mobile phone terminal according to embodiment 2 of the present invention.

Fig. 6 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.

The existing wireless equipment positioning and antithetical couplet networking is inconvenient to operate because the CPE is generally debugged by professional personnel when being used and installed, professional installation personnel need to be familiar with the whole networking system of the CPE, the AP and CPE modes need to be manually switched into a webpage, and then after a special password is set, a series of networking can be completed only by synchronously setting two antithetical couplet equipment.

In order to solve the problems of the prior art, the invention provides a method for positioning and networking a wireless device, in an embodiment of the invention, only a device needing to be set as an AP needs to be started first, the device will search for nearby wireless devices preferentially when the device is started, and when no specific assigned SSID of the system is found, the wireless device will be automatically set as an AP mode and will automatically avoid a strong signal wireless channel. Through the following detailed scheme, the purpose that even non-professional constructors can simply set networking can be achieved, the traditional setting of entering a webpage interface or a serial interface is not needed, and the constructors can be used after being electrified.

The names appearing in this example are explained as follows:

CPE, English full name Customer premix Equipment, transliteration: the customer premises equipment is a mobile signal access equipment which receives mobile signals and forwards the mobile signals by wireless WIFI signals, and is also equipment which converts high-speed 4G or 5G signals into WiFi signals.

beacon (beacon) frames;

SSID, router identification, name of wireless signal sent by router.

Wireless ap (access point): i.e., a wireless access point, which is used for a wireless switch of a wireless network, and is also the core of the wireless network.

Exemplary method

As shown in fig. 1, an embodiment of the present invention provides a method for positioning and networking a wireless device in an association manner, where the method for positioning and networking a wireless device in an association manner can be applied to an intelligent terminal. In an embodiment of the present invention, the method includes the steps of:

step S100, starting a first wireless device, and automatically monitoring and scanning peripheral wireless signals;

in the embodiment of the invention, when networking is performed, the first wireless equipment is started and can automatically monitor and scan peripheral wireless. For example, the wireless device automatically listens for the beacon frame information of the surrounding signal after being started. Whether the wireless device exists in the periphery is searched by scanning beacon frame information of the periphery signal.

Step S200, detecting and judging whether a preset second wireless device serving as an AP access device is searched;

before the method is implemented, the second wireless device AP-1 can be set as an AP access device in advance; and presetting an access password by using the specific AP-1 as an SSID after the AP-1 equipment is started. That is, the AP-1 is used as the SSID name of the second wireless device in advance, which is convenient for other wireless devices to scan and search.

In the embodiment of the invention, the first wireless equipment is started, scans beacon frame information of peripheral signals to search whether the peripheral equipment exists, and detects and judges whether the preset second wireless equipment serving as the AP access equipment is searched.

Step S300, when the first wireless equipment searches for preset second wireless equipment serving as AP access equipment, the first wireless equipment is automatically set to be in a CPE mode, and is automatically butted with the second wireless equipment to carry out ad hoc networking;

in the embodiment of the invention, when the first wireless device searches the preset second wireless device serving as the AP access device, namely the second wireless device with the AP-1 as the SSID name is searched during scanning and searching, and the second wireless device is preset as the AP access device, at this time, the first wireless device can be automatically set to be in a CPE mode, and is automatically butted with the second wireless device to perform ad hoc networking.

Specifically, for example, when the first wireless device automatically scans beacon frame information and includes an SSID of a second wireless device of the AP access device, the first wireless device is determined to search for a preset second wireless device serving as the AP access device; the first wireless device is automatically set to a CPE mode and writes and stores the information; and the first wireless equipment automatically establishes connection with the SSID of the second wireless equipment to perform ad hoc networking. The automatic networking can automatically store the setting information in the Flash of the wireless equipment after the working mode is set, so that networking disorder after the equipment is suddenly powered off is avoided.

The invention can realize that the working mode of the current CPE is appointed in a mode of automatically monitoring the beacon frame information of the peripheral signals after the wireless equipment is started when the wireless equipment is started, manual intervention is not needed, and the mode is automatically configured.

Step S400, when the first wireless device does not search the second wireless device with the system-assigned SSID, the first wireless device is automatically set to the AP mode, automatically generates a preset password for connection, transmits a broadcast packet, prepares to be in butt joint with the related wireless device, and performs ad hoc networking.

In the embodiment of the invention, when the first wireless device does not search the second wireless device with the system-specified SSID, the first wireless device is automatically set to the AP mode, automatically generates the preset password for connection, transmits the broadcast packet, prepares to be in butt joint with the related wireless device and performs ad hoc networking.

In addition, in the embodiment of the invention, after the first wireless equipment is set to be in the AP mode, the beacon frame information of the peripheral wireless channel is monitored; making a data list of each monitored beacon message; the RSSI and the working channels of all current signals are automatically analyzed, network congestion is filtered according to the distribution of the signal intensity in each channel, and a channel without the network congestion of wireless signals is selected for data transmission. Therefore, the invention can realize the filtering of network congestion, select the channel without network congestion of wireless signals for data transmission and ensure the smoothness and reliability of the signals.

As can be seen from the above, the embodiment of the present invention only needs to start the device that needs to be set as the AP first, and the device will preferentially search for the nearby wireless devices when starting, and when no specific SSID of the system is found, the wireless device will automatically set as the AP mode, and will automatically avoid the strong signal wireless channel. Through the following detailed scheme, the purpose that even non-professional constructors can simply set networking can be achieved, the traditional setting of entering a webpage interface or a serial interface is not needed, and the constructors can be used after being electrified.

In a preferred embodiment, the present invention may further set a display screen for displaying the intensity of the wireless signal on the wireless device, for example, a liquid crystal digital display mode is adopted on the wireless device, and an installer can know information of multiple aspects, such as the current signal intensity, the setting state of the current device, and the IP address of the current device, through the liquid crystal panel.

In a further embodiment, the method for positioning and networking a wireless device further includes:

a serial port built in the wireless equipment can be converted into a wireless Bluetooth module;

the mobile terminal Bluetooth is converted into a wireless Bluetooth module through a built-in serial port in the wireless equipment to establish connection with the wireless equipment; the mobile terminal receives the operation instruction to establish the wireless equipment for remote debugging, detailed equipment state inquiry and/or remote wireless software upgrading.

Therefore, the invention can be realized by arranging a serial port-to-wireless Bluetooth module in the wireless equipment, and the Bluetooth serial port communication module is a new generation data transmission module based on the Bluetooth Specification V4.0 BLE Bluetooth protocol. The wireless working frequency band is 2.4GHz ISM, and the modulation mode is GFSK. The maximum transmitting power of the module is 4dBm, the receiving sensitivity is-93 dBm, 80-meter ultra-long distance communication can be realized with a mobile phone in an open environment, the module supports a deep sleep mode through software setting, and the interference of BLE to wireless equipment communication is avoided. Constructors can be connected with the fault equipment through the Bluetooth of the mobile phone to conduct remote debugging, detailed equipment state inquiry, remote wireless software upgrading and other operations without climbing.

Exemplary device

As shown in fig. 2, a wireless device 100 of the present embodiment includes, provided on the wireless device 100:

the wireless device CPU110 is configured to, for example,

a display device 120 connected to the wireless device CPU110 for displaying signal strength;

a serial port to Bluetooth module 130 connected to the wireless device CPU110, wherein the serial port to Bluetooth module 130 is a data transmission module based on Bluetooth Specification V4.0 BLE Bluetooth protocol;

as shown in fig. 2, the wireless device described in this embodiment further includes:

a first switch 140 connected to the wireless device CPU110 for system reset or switching of the display mode;

a second switch 150 connected to the wireless device CPU110, for switching an AP operating mode or a CPE operating mode;

the display device 120 is a liquid crystal display, and the serial port-to-bluetooth module 130 is a BLE4.0 bluetooth module;

outputting display control to the display device 120 through a GPIO pin in the wireless device CPU110, and switching the display content of the liquid crystal screen through the first switch 140; the second switch 150 is used for manually switching the current working mode of the wireless equipment after the system is started, and manually selecting the AP mode or the CPE mode.

The wireless device in this embodiment performs ad hoc networking by using the method for positioning and networking the wireless device in the above embodiment.

The method comprises the following specific steps:

the wireless device of the embodiment of the invention only needs to start the device needing to be set as the AP in the intelligent ad hoc network, the device can preferentially search nearby wireless devices in the starting process, and when the specific appointed SSID of the system is not found, the wireless device can be automatically set as the AP mode and can automatically avoid a strong signal wireless channel. Through the following detailed scheme, the purpose that even non-professional constructors can simply set networking can be achieved, the traditional setting of entering a webpage interface or a serial interface is not needed, and the constructors can be used after being electrified.

Specifically referring to fig. 3, for example, the wireless device starts up, automatically scans the weekend wireless signals, and automatically monitors the beacon frame information of the peripheral signals after the wireless device starts up, and if the system sets that the AP device starts up, the system uses a specific AP-1 as the SSID and the password is preset.

In the first case, when an AP-1 signal is scanned, the wireless device is set to CPE mode, and the information is written and saved and automatically interfaced with the AP device.

That is, in the first case of the present invention, if the wireless device monitors that the beacon frame information contains the specific SSID, the wireless device is automatically set to the CPE mode, and starts to connect with the SSID device of AP-1 to complete the docking of the whole wireless network.

In the second case: and scanning no AP-1 signal, setting the wireless equipment into an AP mode, setting the SSID password, writing and storing the set information, and sending a broadcast packet to wait for connection.

In the first situation, if the WIFI cannot acquire the specific SSID, the wireless device can be automatically set to be in the AP mode, automatically generate a preset password, transmit a broadcast packet and prepare to be docked with the related device; the automatic networking can automatically store the setting information in the Flash of the wireless equipment after the working mode is set, so that networking disorder after the equipment is suddenly powered off is avoided.

If the wireless device is set to be in the AP mode, the second step is to monitor beacon frame information of peripheral wireless channels, each beacon frame has signal strength and working channel information corresponding to the wireless device, each monitored beacon information is made into a data list, the system automatically analyzes the RSSI (received signal strength indication) of all current signals and the working channels of the signals, and selects the channels according to the distribution of the signal strength in each channel to make network congestion, which is easy to interfere, so that the channel with the strongest signal is avoided, and a channel with cleaner wireless signals is selected to make data transmission.

The wireless equipment can also realize that when the traditional wireless equipment is in antithetical couplet, because the antennas adopted by the wireless equipment are all omnidirectional antennas basically, a constructor can not adjust the direction of the wireless equipment through the outside of the wireless equipment intuitively, and the traditional wireless equipment generally adopts three LEDs to represent the strong, medium and weak signals. However, it is not clear whether the current signal intensity is the best position, and the LED method can only display the approximate signal intensity. The invention adopts the mode of liquid crystal digital display on the wireless equipment, so that an installer can know information in various aspects, such as the current signal strength, the setting state of the current equipment and the IP address of the current equipment, through the liquid crystal panel.

As shown in fig. 4, in the implementation manner of the present invention, the GPIO (input/output) pin in the CPU110 of the wireless device controls the output and display of the liquid crystal display: connecting the liquid crystal screen with a CPU (central processing unit) of the wireless device through a GPIO (general purpose input/output) pin; the first switch (tact switch a) is connected with the wireless device CPU through a GPIO pin. The wireless equipment can switch the display content of the liquid crystal screen through multiplexing the function of the reset key and the short-time key; for example, a signal strength display, a display of the current IP address, and/or a display of the current operating mode (AP or CPE) via a liquid crystal display. The display mode is switched by long pressing the 10S system reset through the first switch (the tact switch A) or short pressing.

Meanwhile, the invention also adds another key function to manually switch the current working mode of the wireless equipment after the system is started, and manually select the AP mode or the CPE mode. For example, as shown in fig. 4, the second switch (tact switch B) is connected to the wireless device CPU through the GPIO pin for switching the current operation mode (AP or CPE).

Furthermore, the wireless equipment can be realized, the wireless equipment is generally erected to a higher place, if professional problems are met, a constructor needs to climb up to disassemble the equipment to debug the equipment, and the difficulty and the cost for debugging the equipment are high.

As shown in fig. 5, in the present invention, a serial-to-wireless Bluetooth module (wireless Bluetooth module BLE4.0) is built in a wireless device, the wireless Bluetooth module BLE4.0 is connected to a wireless device CPU through a UART (universal asynchronous receiver transmitter) interface, and the Bluetooth serial communication module of this embodiment is a new generation of data transmission module based on Bluetooth Specification V4.0 BLE Bluetooth protocol. The wireless working frequency band is 2.4GHz ISM, and the modulation mode is GFSK (Gaussian frequency Shift keying). The maximum transmitting power of the wireless Bluetooth module is 4dBm, the receiving sensitivity is-93 dBm, 80-meter ultra-long-distance communication can be realized with a mobile phone end in an open environment, the wireless Bluetooth module supports a deep sleep mode through software setting, and the BLE is prevented from causing interference to communication of wireless equipment. Constructors can be connected with the fault equipment through the Bluetooth of the mobile phone to conduct remote debugging, detailed equipment state inquiry, remote wireless software upgrading and other operations without climbing.

Therefore, the main core of the embodiment of the invention is that in the mode of an ad hoc network system, a constructor does not need to use a computer or enter a wireless device webpage to set the working mode of the wireless device, the butt joint between two devices and the like. Then, through the implementation mode of the liquid crystal display (display device), the two devices can be accurately positioned to the strongest wireless network signal, and the smoothness and the reliability of the signal are ensured. Meanwhile, various kinds of information can be displayed through the liquid crystal screen, and the operation of constructors is simplified. And by

The built-in BLE4.0 module also brings convenience to constructors and maintenance of equipment at lower cost.

Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as shown in fig. 6. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and a Bluetooth module which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a method of positioning and peer-to-peer networking of wireless devices. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the Bluetooth module of the intelligent terminal is arranged inside the intelligent terminal in advance.

It will be understood by those skilled in the art that the block diagram shown in fig. 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.

In one embodiment, an intelligent terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:

the first wireless equipment is started to automatically monitor and scan peripheral wireless signals;

detecting and judging whether a second wireless device which is preset as an AP access device is searched,

when the first wireless equipment searches for second wireless equipment which is preset as AP access equipment, the first wireless equipment is automatically set to be in a CPE mode, and is automatically butted with the second wireless equipment to carry out ad hoc networking;

when the first wireless device does not search the second wireless device with the system-specified SSID, the first wireless device is automatically set to the AP mode, automatically generates a preset password for connection, transmits a broadcast packet, prepares to be docked with the relevant wireless device, and performs ad hoc networking.

Based on the above embodiments, the present invention also provides a non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any one of the methods.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

In summary, the present invention discloses a method for positioning and networking a wireless device, an intelligent terminal and a storage medium, wherein the method comprises: the method comprises the following steps: the first wireless equipment is started to automatically monitor and scan peripheral wireless signals; detecting and judging whether a preset second wireless device serving as an AP access device is searched, and when the preset second wireless device serving as the AP access device is searched by the first wireless device, automatically setting the first wireless device to be in a CPE mode, and automatically butting with the second wireless device to perform ad hoc networking; when the first wireless device does not search the second wireless device with the system-specified SSID, the first wireless device is automatically set to the AP mode, automatically generates a preset password for connection, transmits a broadcast packet, prepares to be docked with the relevant wireless device, and performs ad hoc networking. According to the invention, the technical requirements of constructors can be reduced through the solution, and a whole set of equipment networking setting can be completed only by controlling the sequence of the power-on equipment, so that the method is simple and convenient.

It should be understood that the application of the present invention is not limited to the above examples, and it will be obvious to those skilled in the art that modifications and variations can be made in the above description, for example, the way of the wireless transparent transmission control wireless device with built-in bluetooth can also be used for antithetical couplets, and the way of the digital tube can also be used for the liquid crystal display, and all such modifications and variations should fall within the scope of the appended claims.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:通讯终端侦测管控方法和设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!