CN109068395B - Method and device for indicating state of bridging pairing, terminal equipment and medium - Google Patents

Method and device for indicating state of bridging pairing, terminal equipment and medium Download PDF

Info

Publication number
CN109068395B
CN109068395B CN201811046226.XA CN201811046226A CN109068395B CN 109068395 B CN109068395 B CN 109068395B CN 201811046226 A CN201811046226 A CN 201811046226A CN 109068395 B CN109068395 B CN 109068395B
Authority
CN
China
Prior art keywords
pairing
wireless terminal
instruction
signal
indicator lamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811046226.XA
Other languages
Chinese (zh)
Other versions
CN109068395A (en
Inventor
任文强
郑俊强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201811046226.XA priority Critical patent/CN109068395B/en
Publication of CN109068395A publication Critical patent/CN109068395A/en
Application granted granted Critical
Publication of CN109068395B publication Critical patent/CN109068395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B5/00Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied
    • G08B5/22Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B5/00Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied
    • G08B5/22Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission
    • G08B5/36Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission using visible light sources
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B5/00Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied
    • G08B5/22Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission
    • G08B5/36Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission using visible light sources
    • G08B5/38Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission using visible light sources using flashing light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method, a device, terminal equipment and a medium for indicating the state of bridging pairing, which belong to the technical field of communication, wherein the method comprises the following steps that an access point terminal performs bridging pairing with a wireless terminal according to a pairing request of the wireless terminal; setting a signal indicator lamp according to the signal intensity of the wireless terminal; and executing a preset pairing instruction aiming at the set system indicator lamp, and sending a message containing the pairing instruction to at least one wireless terminal so that the wireless terminal executes the pairing instruction aiming at the system indicator lamp of the wireless terminal. Therefore, the current bridging pairing state can be determined simply and intuitively, and subsequent corresponding operations can be guided to be executed.

Description

Method and device for indicating state of bridging pairing, terminal equipment and medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for indicating a status of a bridge pairing, a terminal device, and a medium.
Background
In places where wired wiring is difficult (e.g., remote mountainous areas), in order to expand the coverage area of the network, a bridging device is generally used for wireless bridging. The bridging device includes an access point terminal and a wireless terminal. The Access Point terminal adopts an Access Point (AP) mode, which is a bridge between a wired network and a wireless network, provides a wireless Access service, allows other wireless devices to Access, and is used for accessing the wireless network to the ethernet. The wireless terminal adopts a wireless terminal mode (STA), does not accept the access of the wireless device, and can be connected to the access point terminal.
In the prior art, the following two methods are generally adopted to perform bridge pairing between an access point terminal and each wireless terminal:
the first mode is as follows: a configuration WEB page of the access point terminal is registered through the world wide WEB (WEB), and the physical address configuration or Service Set Identifier (SSID) of the target wireless terminal is configured.
The second way is: the device is set to be in an AP mode or an STA mode through a dial key arranged on the bridging device, and then the SSID of the target wireless terminal is configured through an address key.
However, with the above approach, the current status of the bridging pair and whether it is correctly paired cannot be determined intuitively.
Disclosure of Invention
The embodiment of the application provides a method and a device for indicating the state of bridging pairing, terminal equipment and a medium, which are used for determining the current state of bridging pairing through an indicator lamp when bridging pairing is performed, and further indicating the subsequent operation of bridging pairing through the indicator lamp.
In a first aspect, a method for indicating a status of a bridge pairing is provided, including:
the access point terminal performs bridge pairing with at least one wireless terminal based on the received pairing request of the at least one wireless terminal;
the method comprises the steps of obtaining the signal intensity of at least one wireless terminal, and executing a signal indication instruction corresponding to the signal intensity aiming at a signal indication lamp of an access point terminal based on the corresponding relation between the signal intensity and the signal indication instruction, wherein the signal indication lamp is used for indicating the signal intensity;
the method comprises the steps of executing a preset pairing instruction aiming at a system indicator lamp of an access point terminal, and sending a message containing the pairing instruction to at least one wireless terminal so that the wireless terminal executes the pairing instruction aiming at the system indicator lamp of the wireless terminal, wherein the system indicator lamp is used for indicating whether pairing is successful or not.
Therefore, whether the bridging pairing is correct or not can be judged according to the states of the indicator lamps.
Preferably, before performing bridge pairing with at least one wireless terminal based on the received pairing request of at least one wireless terminal, the method further includes:
acquiring an access point mode instruction sent by a user through a set mode key;
configuring a terminal mode parameter of the access point terminal into an access point mode based on the access point mode instruction;
receiving an unlocking instruction sent by a user through a set locking key;
and configuring the locking parameters of the access point terminal into an unlocking mode based on the unlocking instruction.
Preferably, the performing bridge pairing with at least one wireless terminal based on the received pairing request of at least one wireless terminal specifically includes:
receiving a pairing request sent by at least one wireless terminal based on a preset physical address;
performing bridge pairing with at least one wireless terminal based on the received pairing request;
the wireless terminal stores the physical address of the access point terminal in advance.
Preferably, based on the correspondence between the signal strength and the signal indication command, the method for executing the signal indication command corresponding to the signal strength by the signal indication lamp of the access point terminal specifically includes:
if the signal intensity is lower than a first preset signal threshold value, setting a first signal indicator lamp to be in a flashing state and setting a second signal indicator lamp to be in a light-off state, wherein the signal indicator lamps at least comprise the first signal indicator lamp and the second signal indicator lamp;
if the signal intensity is not lower than a first preset signal threshold value and not higher than a second preset signal threshold value, setting the first signal indicator lamp to be in a normally-on state and setting the second signal indicator lamp to be in a light-out state;
and if the signal intensity is higher than a second preset signal threshold value, setting the first signal indicator lamp and the second signal indicator lamp to be in a normally-on state.
Preferably, the sending a message including a pairing instruction to at least one wireless terminal specifically includes:
acquiring an IP address, a port and a physical address of at least one wireless terminal;
generating a message based on a preset socket protocol, an IP address, a port, a physical address and a pairing instruction;
and sending a message to at least one wireless terminal so that the at least one wireless terminal acquires the message in a packet capturing mode through a set packet capturing tool.
Preferably, the executing a preset pairing instruction for the system indicator of the ap terminal, and sending a message including the pairing instruction to at least one wireless terminal, so that the wireless terminal executes the pairing instruction for the system indicator of the wireless terminal, specifically includes:
acquiring the number of terminals of at least one wireless terminal, and setting the initial execution times to be zero;
executing the following steps until the execution times reach the number of terminals: when the first light synchronization period is determined to be reached, executing a preset first pairing instruction aiming at a system indicator lamp of the access point terminal, and sending a first message containing the first pairing instruction to at least one wireless terminal; when the second light synchronization period is determined to be reached, executing a second pairing instruction aiming at a system indicator lamp of the access point terminal, sending a second message containing the second pairing instruction to at least one wireless terminal, and adding one to the execution times;
the first pairing indication instruction and the second pairing indication instruction are different in indication operation of the system indicator lamp.
Preferably, after sending the message including the pairing instruction to the at least one wireless terminal, the method further includes:
receiving a locking instruction input by a user through a locking key;
configuring a physical address of at least one wireless terminal in a set configuration file based on the locking instruction;
and when the configuration is determined to be successful, setting the local lock indicator lamp to be in a normally-on state.
In a second aspect, a status indication device for bridging a pair includes:
the pairing unit is used for carrying out bridge pairing with at least one wireless terminal based on a received pairing request of the at least one wireless terminal;
the execution unit is used for acquiring the signal intensity of at least one wireless terminal, and executing a signal indication instruction corresponding to the signal intensity aiming at a signal indication lamp of the access point terminal based on the corresponding relation between the signal intensity and the signal indication instruction, wherein the signal indication lamp is used for indicating the signal intensity;
the sending unit is used for executing a preset pairing instruction aiming at a system indicator lamp of the access point terminal and sending a message containing the pairing instruction to at least one wireless terminal so that the wireless terminal executes the pairing instruction aiming at the system indicator lamp of the wireless terminal, and the system indicator lamp is used for indicating whether pairing is successful or not.
Preferably, before performing bridge pairing with the at least one wireless terminal based on the received pairing request of the at least one wireless terminal, the pairing unit is further configured to:
acquiring an access point mode instruction sent by a user through a set mode key;
configuring a terminal mode parameter of the access point terminal into an access point mode based on the access point mode instruction;
receiving an unlocking instruction sent by a user through a set locking key;
and configuring the locking parameters of the access point terminal into an unlocking mode based on the unlocking instruction.
Preferably, the pairing unit is specifically configured to:
receiving a pairing request sent by at least one wireless terminal based on a preset physical address;
performing bridge pairing with at least one wireless terminal based on the received pairing request;
the wireless terminal stores the physical address of the access point terminal in advance.
Preferably, the execution unit is specifically configured to:
if the signal intensity is lower than a first preset signal threshold value, setting a first signal indicator lamp to be in a flashing state and setting a second signal indicator lamp to be in a light-off state, wherein the signal indicator lamps at least comprise the first signal indicator lamp and the second signal indicator lamp;
if the signal intensity is not lower than a first preset signal threshold value and not higher than a second preset signal threshold value, setting the first signal indicator lamp to be in a normally-on state and setting the second signal indicator lamp to be in a light-out state;
and if the signal intensity is higher than a second preset signal threshold value, setting the first signal indicator lamp and the second signal indicator lamp to be in a normally-on state.
Preferably, when sending the message including the pairing instruction to at least one wireless terminal, the sending unit is specifically configured to:
acquiring an IP address, a port and a physical address of at least one wireless terminal;
generating a message based on a preset socket protocol, an IP address, a port, a physical address and a pairing instruction;
and sending a message to at least one wireless terminal so that the at least one wireless terminal acquires the message in a packet capturing mode through a set packet capturing tool.
Preferably, the sending unit is specifically configured to:
acquiring the number of terminals of at least one wireless terminal, and setting the initial execution times to be zero;
executing the following steps until the execution times reach the number of terminals: when the first light synchronization period is determined to be reached, executing a preset first pairing instruction aiming at a system indicator lamp of the access point terminal, and sending a first message containing the first pairing instruction to at least one wireless terminal; when the second light synchronization period is determined to be reached, executing a second pairing instruction aiming at a system indicator lamp of the access point terminal, sending a second message containing the second pairing instruction to at least one wireless terminal, and adding one to the execution times;
the first pairing indication instruction and the second pairing indication instruction are different in indication operation of the system indicator lamp.
Preferably, the sending unit is further configured to:
after a message containing a pairing instruction is sent to at least one wireless terminal, a locking instruction input by a user through a locking key is received;
configuring a physical address of at least one wireless terminal in a set configuration file based on the locking instruction;
and when the configuration is determined to be successful, setting the local lock indicator lamp to be in a normally-on state.
In a third aspect, a terminal device is provided, which includes at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the computer program causes the processing unit to execute any of the above steps of the method for indicating a status of a bridge pairing.
In a fourth aspect, a computer readable medium is provided, which stores a computer program executable by a terminal device, when the program is run on the terminal device, to cause the terminal device to perform the steps of any of the above described status indication methods of bridging pairings.
In the method, the device, the terminal equipment and the medium for indicating the state of bridging pairing provided by the embodiment of the application, the access point terminal performs bridging pairing with the wireless terminal according to the pairing of the wireless terminal; setting a signal indicator lamp according to the signal intensity of the wireless terminal; and executing a preset pairing instruction aiming at the set system indicator lamp, and sending a message containing the pairing instruction to at least one wireless terminal so that the wireless terminal executes the pairing instruction aiming at the system indicator lamp of the wireless terminal. Therefore, whether bridging is successful or not can be indicated through the signal indicator lamp in the process of bridging and pairing the access point terminal and the wireless terminal, whether correct pairing is judged through the on-off state of the system indicator lamp of the access point terminal and the system indicator lamp of the wireless terminal, the current bridging and pairing state can be determined simply and intuitively, and subsequent pairing operation can be conducted.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1a is a schematic structural diagram of a bridging device in an embodiment of the present application;
FIG. 1b is a block diagram illustrating an exemplary bridge pairing status indication system according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating an implementation of a method for indicating a status of a bridge pairing according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a status indication apparatus for bridge pairing according to an embodiment of the present disclosure.
Detailed Description
In order to determine the current state of bridging pairing through an indicator lamp when bridging pairing is performed, and further indicate subsequent operations of bridging pairing through the indicator lamp, embodiments of the present application provide a method and an apparatus for indicating the state of bridging pairing, a terminal device, and a medium.
Fig. 1a is a schematic structural diagram of a bridge device. The bridging device includes a mode button, a lock button, a system indicator light, a first signal indicator light, a second signal indicator light, and a lock indicator light.
And the mode key is used for setting the bridging equipment into an AP mode or an STA mode.
And the locking key is used for setting the bridge device to be in an unlocking (unlock) mode or a locking (lock) mode.
The bridging device periodically detects the key states of the mode keys and the locking keys according to a preset period (such as 1s), so that instructions issued by a user through the mode keys and the locking keys can be rapidly acquired, and parameter configuration is performed based on the instructions.
And the system indicator light is used for executing the on-off operation based on the pairing indication instruction. Whether the system indicator lamps of the wireless terminal and the access point terminal are synchronously turned on and off can indicate whether the wireless terminal and the access point terminal are successfully paired, and the number of the wireless terminals accessed by the access point terminal can be indicated through the turn-on and turn-off times of the system indicator lamps.
The signal indicator lamps comprise a first signal indicator lamp and a second signal indicator lamp, and are used for executing corresponding operation according to the acquired signal intensity of the wireless terminal after the bridging is successful.
And the lock indicator lamp is used for indicating that the lock is currently in a lock mode or an unlock mode.
Fig. 1b is a schematic diagram of a bridge pairing status indication system. The status indication system of the bridge pairing comprises: an access point terminal and a plurality of wireless terminals, such as wireless terminal 1, wireless terminal 2 … … and wireless terminal n.
The access point terminal adopts an AP mode, is a bridge of a wired network and a wireless network, provides wireless access service, allows other wireless devices to access, and can access the wireless network to the Ethernet. The wireless terminal adopts an STA mode, does not accept the access of the wireless equipment and can be connected to the AP terminal.
Before bridge pairing, firstly, a user sets a mode for each bridge device, and the specific steps are as follows:
the first type of bridge device configures local terminal mode parameters into an access point mode based on an access point mode instruction sent by a user through a set mode key, namely, the first type of bridge device is set as an access point terminal.
The second type of bridge device configures the local terminal mode parameters into the wireless terminal mode based on the wireless terminal mode instruction sent by the user through the setting mode key, that is, the second type of bridge device is set as the wireless terminal. The wireless terminal is configured with a physical address of a designated access point terminal in advance at the time of factory setting.
Then, each bridging device configures the locally stored locking parameters into an unlocking mode based on an unlocking instruction issued by a user through a locking key.
Thus, the wireless terminal and the access point terminal can automatically perform bridge pairing.
Referring to fig. 2, a flowchart of an implementation of a method for indicating a status of a bridge pairing according to the present invention is shown. The specific implementation flow of the method is as follows:
step 200: the wireless terminal sends a pairing request to the access point terminal based on the locally stored physical address of the access point terminal.
Specifically, when step 200 is executed, since the wireless terminal and the ap terminal are both bridge devices and are located in a second layer, i.e. a data link layer, in an Open System Interconnection (OSI) model, the wireless terminal and the ap terminal can only use a physical address (MAC) in charge of the data link layer for data transmission. The MAC address is also called a MAC address or a hardware address, and is used to define the location of the network device. A device will have a MAC address. The MAC address is network card determined and fixed.
Because the physical address of the access point terminal is pre-configured when the wireless terminal leaves a factory, the wireless terminal can be automatically in bridging pairing with the access point terminal as long as the wireless terminal and the access point terminal are both in an unlocking mode, so that the complex steps of WEB configuration or dial configuration are avoided, and the efficiency of bridging pairing is improved.
Step 201: and the access point terminal performs bridging pairing with the wireless terminal based on the received pairing request.
Specifically, when step 201 is executed, the number of the wireless terminals may be one or more.
Step 202: the access point terminal acquires the signal intensity of the wireless terminal and acquires a signal indication instruction corresponding to the signal intensity based on the corresponding relation between the signal intensity and the signal indication instruction.
Specifically, before step 202 is executed, a corresponding relationship between the signal strength and the signal indication instruction is set, and the corresponding relationship may be as follows:
and if the signal intensity is lower than the first preset signal threshold value, setting the first signal indicator lamp to be in a flashing state, and setting the second signal indicator lamp to be in a light-off state.
And if the signal intensity is not lower than the first preset signal threshold value and not higher than the second preset signal threshold value, setting the first signal indicator lamp to be in a normally-on state and setting the second signal indicator lamp to be in a light-out state.
For example, the first predetermined threshold value is-69 dbm (signal strength) and the second predetermined threshold value is-59 dbm.
And if the signal intensity is higher than a second preset signal threshold value, setting the first signal indicator lamp and the second signal indicator lamp to be in a normally-on state.
Because the access point terminal can acquire the signal of the wireless terminal only after the access point terminal and the wireless terminal are successfully bridged, the user can judge whether the access point terminal and the wireless terminal are successfully bridged and the current signal intensity range through the state of the signal indicator lamp.
When the corresponding relation between the signal intensity and the signal indication instruction is set, the number of the signal indication lamps, the signal threshold value and the like can be adjusted and set according to actual needs, and the signal indication lamps and the signal threshold value are not limited in the embodiment of the application.
Step 203: and the access point terminal executes the acquired signal indication instruction aiming at the signal indication lamp.
Further, based on the principle that the ap terminal sets the signal indicator, the wireless terminal may also set the signal indicator of the wireless terminal and execute the signal indication command, which is not described herein again.
Therefore, the user can also judge whether the wireless terminal is successfully bridged with the access point terminal or not and judge the signal intensity range of the access point terminal according to the state of the signal indicator lamp of the wireless terminal.
Step 204: the access point terminal executes a preset first pairing instruction aiming at the set system indicator lamp, and sends a first message containing the first pairing instruction to the wireless terminal.
Specifically, first, when the time is counted after the bridging pairing is completed and the ap terminal determines that the first light synchronization period (e.g., 3s) is reached, a first pairing instruction is executed (e.g., turned on) for the set system indicator.
Then, the ap terminal obtains a port and an Internet Protocol (IP) address of the wireless terminal, and sends a first packet including a first pairing instruction to the wireless terminal by using an original socket Protocol based on the obtained physical address, port, and IP address of the wireless terminal.
Step 205: and the wireless terminal executes the first pairing indication instruction in the acquired first message.
Specifically, first, the wireless terminal monitors a fixed port (e.g., the port 50001), and acquires a first message sent by the ap terminal in a packet capturing manner through a set packet capturing tool.
Optionally, the bale plucking tool may be a tcpdump bale plucking tool, and the bale plucking tool may use a pcap library for data plucking.
Then, the wireless terminal acquires a first pairing instruction contained in the first message, and executes the first pairing instruction for a local system indicator lamp.
Step 206: and the access point terminal executes a preset second pairing instruction aiming at the set system indicator lamp and sends a second message containing the second pairing instruction to the wireless terminal.
Specifically, first, when the ap terminal determines that the second light synchronization period (e.g., 3s) is reached, a second pairing instruction is executed (e.g., light-off) with respect to the set system indicator.
And then, the access point terminal sends a second message containing a second pairing instruction to the wireless terminal by adopting an original socket protocol based on the acquired physical address, port and IP address of the wireless terminal.
Step 207: and the wireless terminal executes the second pairing instruction in the acquired second message.
Specifically, first, the wireless terminal monitors a fixed port (e.g., the port 50001), and acquires a second message sent by the ap terminal in a packet capturing manner through a set packet capturing tool.
Then, the wireless terminal acquires a second pairing instruction contained in the second message, and executes the second pairing instruction for a local system indicator lamp.
In the embodiment of the application, when the access point terminal sends the message, the message containing the MAC address can be sent to the wireless terminal only by binding the device interface of the bridge device with the original socket. However, in order to enable the wireless terminal at the opposite end to accurately receive the packet, the access point terminal still acquires the port and the IP address of the wireless terminal when constructing the packet, and generates the packet based on the acquired port, IP address and physical address. The wireless terminal monitors the fixed port and acquires the message in a packet capturing mode through a packet capturing tool. Therefore, the problem of data loss when the message is sent by adopting the modes of broadcasting and the like is avoided, the problem that the system indicator lamp does not flicker caused by data transmission failure is further avoided, and the message sending accuracy and the system indicator lamp accuracy are improved.
Further, in this embodiment of the application, only the access point terminal sends the constructed packet to the wireless terminal after constructing the packet, and the wireless terminal obtains the packet through the monitored port packet capturing example for explanation, the wireless terminal may also send the packet to the access point terminal by using the same packet sending principle, and the access point terminal may also obtain the packet sent by the wireless terminal by using the same packet receiving principle, which is not described herein again.
Since the message transmission rate is fast, usually higher than 1mbp/s (1 mbit/s), it is difficult for human eyes to recognize, so the ap and the wireless terminal are seen by human eyes as synchronously lighting up or synchronously lighting down. Therefore, the user can judge whether the access point terminal and the wireless terminal are successfully bridged or not according to whether the system indicator lamps of the access point terminal and the wireless terminal are synchronously flashed or not.
Wherein, once twinkling means: once lit and once unlit. Optionally, the number of times of flashing is set to the number of the wireless terminals accessed by the access point terminal, so that if the number of times of flashing is different from the number of the wireless terminals which are currently seen to be flashing synchronously, it is indicated that other wireless terminals access the access point terminal, or that the current wireless terminal accesses other access point terminals.
For example, if the number of times of blinking is 5 and the number of wireless terminals blinking in synchronization with the access point terminal a is 4, it indicates that there is one wireless terminal in another area accessing the access point terminal a.
Step 208: the ap terminal adds one to the set number of execution times, and determines whether the number of execution times reaches the number of paired terminals, if so, then step 208 is executed, otherwise, step 203 is executed.
Specifically, in step 207, optionally, the ap terminal sets the initial execution number to 0, so that the ap terminal may execute the flashing operation of the system indicator light according to the number of paired wireless terminals. The user can determine the number of the wireless terminals accessed by the access point terminal through the number of the flickers.
For example, if the on/off status of the system indicator is: bright 0.5S-go 3 times, and then it is determined that the access point terminal and 3 wireless terminals have been bridge paired.
Step 209: and the access point terminal executes a locking instruction input by the user and sets the lock indicator lamp to be in a normally-on state when the locking is determined to be successful.
Specifically, firstly, when the user determines that the bridging pairing is successful according to the on-off states of the system indicator lamps of the access point terminal and the system indicator lamps of the wireless terminals, the user sends a locking instruction through the locking key of the access point terminal, and sends a locking instruction through the locking key of the wireless terminals.
Then, when the access point terminal determines that the locking instruction is received, the MAC address of the wireless terminal is configured in the local configuration file, and when the configuration is determined to be successful, the local lock indicator lamp is set to be in a normally-on state. And when the wireless terminal determines that the locking instruction is received, the MAC address of the access point terminal is configured in the local configuration file, and when the configuration is determined to be successful, the local lock indicator lamp is set to be in a normally-on state.
Furthermore, in practical application, each indicator lamp can be set by self according to actual requirements, and the current states of bridging, pairing, locking and the like are indicated through different light on-off states.
Therefore, each bridging device can be set to be in a locking mode through the locking key, so that the access point terminal can only be connected with the wireless terminal corresponding to the configuration information in the configuration file, and the wireless terminal can only be connected with the access point terminal corresponding to the configuration information in the configuration file, and the device interlocking between the access point terminal and the wireless terminal is realized. The access point terminal can prevent other wireless terminals from accessing, and the wireless terminal can not access other access point terminals.
Further, if the user determines a pairing error according to the on/off states of the system indicator lamps of the access point terminal and the system indicator lamps of the wireless terminals, the user may also perform a re-pairing operation by performing an operation such as restarting or moving the device.
In an embodiment of the present application, an electronic device includes: one or more processors; and
one or more computer-readable media having stored thereon a program for bridging status indications of pairings, wherein the program, when executed by one or more processors, performs the steps in the above embodiments.
In an embodiment of the present application, one or more computer-readable media having stored thereon a program for a status indication of a bridging pair, wherein the program, when executed by one or more processors, causes a communication device to perform the steps of the above embodiments.
Based on the same inventive concept, the embodiment of the present application further provides a status indication apparatus for bridge pairing, and as the principles of the apparatus and the device for solving the problems are similar to a status indication method for bridge pairing, the implementation of the apparatus can refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 3, a schematic structural diagram of a status indication apparatus for bridge pairing according to an embodiment of the present application includes:
a pairing unit 30, configured to perform bridge pairing with at least one wireless terminal based on a received pairing request of the at least one wireless terminal;
an execution unit 31, configured to obtain signal strength of at least one wireless terminal, and execute a signal indication instruction corresponding to the signal strength for a signal indication lamp of an access point terminal based on a correspondence between the signal strength and the signal indication instruction, where the signal indication lamp is used for indicating the signal strength;
the sending unit 32 is configured to execute a preset pairing instruction for a system indicator of the ap terminal, and send a message including the pairing instruction to at least one wireless terminal, so that the wireless terminal executes the pairing instruction for the system indicator of the wireless terminal, and the system indicator is used to indicate whether pairing is successful.
Preferably, before performing bridge pairing with at least one wireless terminal based on the received pairing request of at least one wireless terminal, the pairing unit 30 is further configured to:
acquiring an access point mode instruction sent by a user through a set mode key;
configuring a terminal mode parameter of the access point terminal into an access point mode based on the access point mode instruction;
receiving an unlocking instruction sent by a user through a set locking key;
and configuring the locking parameters of the access point terminal into an unlocking mode based on the unlocking instruction.
Preferably, the pairing unit 30 is specifically configured to:
receiving a pairing request sent by at least one wireless terminal based on a preset physical address;
performing bridge pairing with at least one wireless terminal based on the received pairing request;
the wireless terminal stores the physical address of the access point terminal in advance.
Preferably, the execution unit 31 is specifically configured to:
if the signal intensity is lower than a first preset signal threshold value, setting a first signal indicator lamp to be in a flashing state and setting a second signal indicator lamp to be in a light-off state, wherein the signal indicator lamps at least comprise the first signal indicator lamp and the second signal indicator lamp;
if the signal intensity is not lower than a first preset signal threshold value and not higher than a second preset signal threshold value, setting the first signal indicator lamp to be in a normally-on state and setting the second signal indicator lamp to be in a light-out state;
and if the signal intensity is higher than a second preset signal threshold value, setting the first signal indicator lamp and the second signal indicator lamp to be in a normally-on state.
Preferably, when sending the message including the pairing instruction to at least one wireless terminal, the sending unit 32 is specifically configured to:
acquiring an Internet Protocol (IP) address, a port and a physical address of at least one wireless terminal;
generating a message based on a preset socket protocol, an IP address, a port, a physical address and a pairing instruction;
and sending a message to at least one wireless terminal so that the at least one wireless terminal acquires the message in a packet capturing mode through a set packet capturing tool.
Preferably, the sending unit 32 is specifically configured to:
acquiring the number of terminals of at least one wireless terminal, and setting the initial execution times to be zero;
executing the following steps until the execution times reach the number of terminals: when the first light synchronization period is determined to be reached, executing a preset first pairing instruction aiming at a system indicator lamp of the access point terminal, and sending a first message containing the first pairing instruction to at least one wireless terminal; when the second light synchronization period is determined to be reached, executing a second pairing instruction aiming at a system indicator lamp of the access point terminal, sending a second message containing the second pairing instruction to at least one wireless terminal, and adding one to the execution times;
the first pairing indication instruction and the second pairing indication instruction are different in indication operation of the system indicator lamp.
Preferably, the sending unit 32 is further configured to:
after a message containing a pairing instruction is sent to at least one wireless terminal, a locking instruction input by a user through a locking key is received;
configuring a physical address of at least one wireless terminal in a set configuration file based on the locking instruction;
and when the configuration is determined to be successful, setting the local lock indicator lamp to be in a normally-on state.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same one or more pieces of software or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (16)

1. A method for indicating status of a bridging pair, comprising:
the access point terminal performs bridge pairing with at least one wireless terminal based on the received pairing request of the at least one wireless terminal;
acquiring the signal intensity of the at least one wireless terminal, and executing a signal indication instruction corresponding to the signal intensity aiming at a signal indication lamp of the access point terminal based on the corresponding relation between the signal intensity and the signal indication instruction, wherein the signal indication lamp is used for indicating the signal intensity;
and executing a preset pairing instruction aiming at the system indicator lamp of the access point terminal, and sending a message containing the pairing instruction to the at least one wireless terminal so that the wireless terminal executes the pairing instruction aiming at the system indicator lamp of the wireless terminal, wherein the system indicator lamp is used for indicating whether the pairing is successful or not.
2. The method of claim 1, wherein prior to bridge pairing with at least one wireless terminal based on a received pairing request for the at least one wireless terminal, further comprising:
acquiring an access point mode instruction sent by a user through a set mode key;
configuring a terminal mode parameter of the access point terminal into an access point mode based on the access point mode instruction;
receiving an unlocking instruction sent by the user through a set locking key;
and configuring the locking parameters of the access point terminal into an unlocking mode based on the unlocking instruction.
3. The method of claim 1, wherein performing bridge pairing with at least one wireless terminal based on a received pairing request of the at least one wireless terminal comprises:
receiving a pairing request sent by the at least one wireless terminal based on a preset physical address;
performing bridge pairing with the at least one wireless terminal based on the received pairing request;
the wireless terminal stores the physical address of the access point terminal in advance.
4. The method according to claim 1, wherein executing the signal indication command corresponding to the signal strength for a signal indication lamp of the access point terminal based on a correspondence between the signal strength and the signal indication command specifically includes:
if the signal intensity is lower than a first preset signal threshold value, setting a first signal indicator lamp to be in a flashing state and setting a second signal indicator lamp to be in a light-off state, wherein the signal indicator lamps at least comprise the first signal indicator lamp and the second signal indicator lamp;
if the signal intensity is not lower than the first preset signal threshold value and not higher than a second preset signal threshold value, setting the first signal indicator lamp to be in a normally-on state and setting the second signal indicator lamp to be in a light-out state;
and if the signal intensity is higher than the second preset signal threshold value, setting the first signal indicator lamp and the second signal indicator lamp to be in a normally-on state.
5. The method according to claim 1, wherein sending a message including a pairing indication instruction to the at least one wireless terminal includes:
acquiring an Internet Protocol (IP) address, a port and a physical address of the at least one wireless terminal;
generating a message based on a preset socket protocol, an IP address, a port, a physical address and the pairing instruction;
and sending the message to the at least one wireless terminal so that the at least one wireless terminal acquires the message in a packet capturing mode through a set packet capturing tool.
6. The method according to any one of claims 1 to 5, wherein executing a preset pairing instruction for a system indicator lamp of the ap terminal, and sending a message including the pairing instruction to the at least one wireless terminal, so that the wireless terminal executes the pairing instruction for the system indicator lamp of the wireless terminal, specifically includes:
acquiring the number of the terminals of the at least one wireless terminal, and setting the initial execution times to be zero;
executing the following steps until the execution times reach the number of the terminals: when a first light synchronization period is determined to be reached, executing a preset first pairing instruction aiming at a system indicator lamp of the access point terminal, and sending a first message containing the first pairing instruction to the at least one wireless terminal; when a second light synchronization period is determined to be reached, executing a second pairing instruction aiming at a system indicator lamp of the access point terminal, sending a second message containing the second pairing instruction to the at least one wireless terminal, and adding one to the execution times;
wherein the first pairing indication instruction and the second pairing indication instruction are different in indication operation of a system indicator lamp.
7. The method of claim 2, wherein after sending a message containing a pairing indication instruction to the at least one wireless terminal, further comprising:
receiving a locking instruction input by the user through the locking key;
configuring the physical address of the at least one wireless terminal in a set configuration file based on the locking instruction;
and when the configuration is determined to be successful, setting the local lock indicator lamp to be in a normally-on state.
8. A status indication device for bridge pairing, applied to an access point terminal, includes:
the pairing unit is used for carrying out bridge pairing with at least one wireless terminal based on a received pairing request of the at least one wireless terminal;
the execution unit is used for acquiring the signal intensity of the at least one wireless terminal and executing a signal indication instruction corresponding to the signal intensity aiming at a signal indication lamp of the access point terminal based on the corresponding relation between the signal intensity and the signal indication instruction, wherein the signal indication lamp is used for indicating the signal intensity;
and the sending unit is used for executing a preset pairing instruction aiming at the system indicator lamp of the access point terminal and sending a message containing the pairing instruction to the at least one wireless terminal so that the wireless terminal executes the pairing instruction aiming at the system indicator lamp of the wireless terminal, and the system indicator lamp is used for indicating whether the pairing is successful or not.
9. The apparatus of claim 8, wherein prior to bridge pairing with the at least one wireless terminal based on the received pairing request for the at least one wireless terminal, the pairing unit is further configured to:
acquiring an access point mode instruction sent by a user through a set mode key;
configuring a terminal mode parameter of the access point terminal into an access point mode based on the access point mode instruction;
receiving an unlocking instruction sent by the user through a set locking key;
and configuring the locking parameters of the access point terminal into an unlocking mode based on the unlocking instruction.
10. The apparatus of claim 8, wherein the pairing unit is specifically configured to:
receiving a pairing request sent by the at least one wireless terminal based on a preset physical address;
performing bridge pairing with the at least one wireless terminal based on the received pairing request;
the wireless terminal stores the physical address of the access point terminal in advance.
11. The apparatus as claimed in claim 8, wherein said execution unit is specifically configured to:
if the signal intensity is lower than a first preset signal threshold value, setting a first signal indicator lamp to be in a flashing state and setting a second signal indicator lamp to be in a light-off state, wherein the signal indicator lamps at least comprise the first signal indicator lamp and the second signal indicator lamp;
if the signal intensity is not lower than the first preset signal threshold value and not higher than a second preset signal threshold value, setting the first signal indicator lamp to be in a normally-on state and setting the second signal indicator lamp to be in a light-out state;
and if the signal intensity is higher than the second preset signal threshold value, setting the first signal indicator lamp and the second signal indicator lamp to be in a normally-on state.
12. The apparatus as claimed in claim 8, wherein said transmitting unit is specifically configured to:
acquiring an Internet Protocol (IP) address, a port and a physical address of the at least one wireless terminal;
generating a message based on a preset socket protocol, an IP address, a port, a physical address and the pairing instruction;
and sending the message to the at least one wireless terminal so that the at least one wireless terminal acquires the message in a packet capturing mode through a set packet capturing tool.
13. The apparatus according to any one of claims 8 to 12, wherein the sending unit is specifically configured to:
acquiring the number of the terminals of the at least one wireless terminal, and setting the initial execution times to be zero;
executing the following steps until the execution times reach the number of the terminals: when a first light synchronization period is determined to be reached, executing a preset first pairing instruction aiming at a system indicator lamp of the access point terminal, and sending a first message containing the first pairing instruction to the at least one wireless terminal; when a second light synchronization period is determined to be reached, executing a second pairing instruction aiming at a system indicator lamp of the access point terminal, sending a second message containing the second pairing instruction to the at least one wireless terminal, and adding one to the execution times;
wherein the first pairing indication instruction and the second pairing indication instruction are different in indication operation of a system indicator lamp.
14. The apparatus of claim 9, wherein the sending unit is further configured to:
after sending a message containing a pairing instruction to the at least one wireless terminal, receiving a locking instruction input by the user through the locking key;
configuring the physical address of the at least one wireless terminal in a set configuration file based on the locking instruction;
and when the configuration is determined to be successful, setting the local lock indicator lamp to be in a normally-on state.
15. A terminal device, comprising at least one processing unit and at least one memory unit, wherein the memory unit stores a computer program which, when executed by the processing unit, causes the processing unit to carry out the steps of the method according to any one of claims 1 to 7.
16. A computer-readable medium, in which a computer program executable by a terminal device is stored, which program, when run on the terminal device, causes the terminal device to carry out the steps of the method according to any one of claims 1 to 7.
CN201811046226.XA 2018-09-07 2018-09-07 Method and device for indicating state of bridging pairing, terminal equipment and medium Active CN109068395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811046226.XA CN109068395B (en) 2018-09-07 2018-09-07 Method and device for indicating state of bridging pairing, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811046226.XA CN109068395B (en) 2018-09-07 2018-09-07 Method and device for indicating state of bridging pairing, terminal equipment and medium

Publications (2)

Publication Number Publication Date
CN109068395A CN109068395A (en) 2018-12-21
CN109068395B true CN109068395B (en) 2020-12-18

Family

ID=64760826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811046226.XA Active CN109068395B (en) 2018-09-07 2018-09-07 Method and device for indicating state of bridging pairing, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN109068395B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031149B (en) * 2019-12-19 2022-07-29 北京浪潮数据技术有限公司 Server management method, system, equipment and computer readable storage medium
CN116760749B (en) * 2023-08-15 2023-10-17 湖南博匠信息科技有限公司 Method for positioning physical position of server through BMC

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192916A (en) * 2006-11-23 2008-06-04 华为技术有限公司 Wireless access method and wireless access device
CN102611589A (en) * 2012-04-12 2012-07-25 南京物联传感技术有限公司 Automatic detection device of disconnection of router and working method thereof
CN102931485A (en) * 2012-11-12 2013-02-13 深圳市首达电子有限公司 Multi-functional wireless fidelity (WiFi) device
CN103686674A (en) * 2013-09-30 2014-03-26 深圳市通力科技开发有限公司 Network access method, intelligent terminal and WiFi access equipment
CN105636159A (en) * 2015-12-31 2016-06-01 珠海格力电器股份有限公司 Configuration method and device for connecting electric appliance with wireless router and mobile communication terminal
CN205847614U (en) * 2016-06-15 2016-12-28 上海自足网络科技有限公司 The portable focus router that movable self-organization accesses
CN106937373A (en) * 2017-02-14 2017-07-07 上海斐讯数据通信技术有限公司 A kind of method and system that router signal is adjusted by fingerprint recognition

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8421637B2 (en) * 2007-07-13 2013-04-16 Cradlepoint, Inc. Multipurpose indicator lights

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192916A (en) * 2006-11-23 2008-06-04 华为技术有限公司 Wireless access method and wireless access device
CN102611589A (en) * 2012-04-12 2012-07-25 南京物联传感技术有限公司 Automatic detection device of disconnection of router and working method thereof
CN102931485A (en) * 2012-11-12 2013-02-13 深圳市首达电子有限公司 Multi-functional wireless fidelity (WiFi) device
CN103686674A (en) * 2013-09-30 2014-03-26 深圳市通力科技开发有限公司 Network access method, intelligent terminal and WiFi access equipment
CN105636159A (en) * 2015-12-31 2016-06-01 珠海格力电器股份有限公司 Configuration method and device for connecting electric appliance with wireless router and mobile communication terminal
CN205847614U (en) * 2016-06-15 2016-12-28 上海自足网络科技有限公司 The portable focus router that movable self-organization accesses
CN106937373A (en) * 2017-02-14 2017-07-07 上海斐讯数据通信技术有限公司 A kind of method and system that router signal is adjusted by fingerprint recognition

Also Published As

Publication number Publication date
CN109068395A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN107222372B (en) Information sending method and equipment
CN105306544B (en) Remote updating method
EP3021520B1 (en) Method and apparatus for delimiting problem
CN111786893B (en) method and device for synchronizing software versions of wireless routers in mesh networking
CN106412843B (en) Method, device and system for pairing gateway and terminal
CN109068395B (en) Method and device for indicating state of bridging pairing, terminal equipment and medium
CN111314185B (en) Ad hoc network method, ad hoc network response method, controlled equipment and gateway
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN110868707A (en) BLE MESH-based intelligent device network distribution method
CN109691172A (en) The method and apparatus for transmitting information
JP2017526289A (en) Information self-registration method, apparatus, system, and computer storage medium
CN107483084B (en) Broadband carrier networking method, site and system
CN106604316B (en) Method, device and system for positioning fault of wireless access equipment
CN113965904A (en) Device registration method, device and storage medium
CN110602732B (en) Wireless configuration parameter synchronization method, device, network equipment and computer readable storage medium
CN105578490B (en) A kind of monitoring signaling method and system
CN108234052A (en) The method, apparatus and system that a kind of clock synchronizes
CN103197665A (en) Remote control testing device and remote control method for carrying out controlling on electronic equipment
CN113596938A (en) Network switching method and device of mobile terminal, storage medium and electronic device
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
CN203133546U (en) Remote control test equipment which controls electronic equipment
CN111988681A (en) NB-loT-based smart electric meter communication method and system
CN111669801A (en) Method, terminal and access point equipment for establishing network connection
CN111031496A (en) Switching device and lamp device pairing method and system based on SIG MESH network
CN103346832B (en) A kind of detection method of Fiber connection state and device

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