CN113115475A - Wireless connection method and system - Google Patents

Wireless connection method and system Download PDF

Info

Publication number
CN113115475A
CN113115475A CN202110311532.7A CN202110311532A CN113115475A CN 113115475 A CN113115475 A CN 113115475A CN 202110311532 A CN202110311532 A CN 202110311532A CN 113115475 A CN113115475 A CN 113115475A
Authority
CN
China
Prior art keywords
wireless
connection
equipment
authentication information
bar code
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.)
Pending
Application number
CN202110311532.7A
Other languages
Chinese (zh)
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.)
Fujian Newland Auto ID Technology Co Ltd
Original Assignee
Fujian Newland Auto ID Technology 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 Fujian Newland Auto ID Technology Co Ltd filed Critical Fujian Newland Auto ID Technology Co Ltd
Priority to CN202110311532.7A priority Critical patent/CN113115475A/en
Publication of CN113115475A publication Critical patent/CN113115475A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The invention belongs to the technical field of wireless communication, and discloses a wireless connection method and a system thereof, wherein the method comprises the following steps: the second wireless equipment generates and displays a bar code containing a target name and the MAC code content of the machine, and the first wireless equipment scans and identifies the bar code on a display screen of the second wireless equipment to obtain the target name and the MAC address; the second wireless equipment changes the equipment name into a target name, and the first wireless equipment searches for a wireless connection signal with the target name; and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule and match with each other, and if the matching is successful, the wireless connection is completed. The technical scheme adopted by the invention is simple and convenient to operate, is beneficial to quickly finding the equipment to be matched, and is high in safety because the authentication information is dynamically generated.

Description

Wireless connection method and system
Technical Field
The invention relates to the field of wireless communication, in particular to a wireless connection method and a wireless connection system.
Background
With the development of communication technology in modern society, communication between devices is gradually performed by using wireless connection methods such as bluetooth and WIFI. In the prior art, a common wireless connection mode is shown in fig. 1, after a wireless function is started between an initiating connection device and a connected device, the initiating connection device searches for the connectable device, manually finds the connected device according to information such as a bluetooth or WIFI hotspot name, an MAC address and the like, authenticates the connected device through a PIN code or a password, and connects the connected device after authentication.
The prior art wireless connection mode has the following problems: 1. the operation is complicated, multi-step manual operations such as searching, pairing, password inputting, connection and the like need to be performed on a searching display screen, and a user is required to have certain operation experience; 2. the connected devices cannot be accurately distinguished, in a complex environment, particularly in an application scene using professional devices, not only are a plurality of connected devices exist, but also the connection names of the plurality of connected devices are consistent or the device names are character strings which cannot be simply distinguished, so that a user cannot easily distinguish which device is currently expected to be connected in a searching display screen, and the situation of connecting wrong devices is easy to occur; 3. the security is low, in order to make the device capable of performing wireless connection smoothly, under most conditions, the PIN code or password of the connected device is not changed for a long time and is disclosed in a certain range, and other devices are easily connected.
Disclosure of Invention
The present invention is directed to a wireless connection method and system thereof, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
technical scheme one
A wireless connection method, comprising the steps of:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
S2: and the first wireless equipment generates a target name according to a preset rule and displays the target name and a local MAC address generating bar code on a local display screen.
S3: and the second wireless equipment scans and reads the bar code on the display screen of the first wireless equipment, performs related setting according to the decoding content of the bar code, changes the wireless connection name of the second wireless equipment into the target name, sends out a wireless connection signal and records the MAC address related to the bar code.
S4: the first wireless device starts searching for a wireless connection signal having a name of the target name.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the wireless connection setting through an algorithm.
S6: and the first wireless equipment and the second wireless equipment exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
In the step S5, the authentication information is security information, including a bluetooth paired PIN code or a WiFi connection encryption authentication method and password.
In the step S6, after the authentication information is successfully matched, the second wireless device sends a request to the first wireless device to verify the MAC address, and compares whether the MAC address of the first wireless device is consistent with the MAC address in the barcode recorded in the step S3, if so, the connection is successful, otherwise, the connection is rejected.
After the connection is successful, when a new device needs to be connected, the first wireless device and the second wireless device negotiate with each other whether to disconnect the current connection, and after the disconnection, the steps from S1 to S6 are executed again to complete the wireless connection of the new device.
Technical scheme two
A wireless connection method, comprising the steps of:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
S2: and the second wireless equipment generates a target name according to a preset rule, generates a bar code by the target name and the MAC address of the local machine and displays the bar code on a display screen of the local machine, and changes the wireless connection name of the local machine into the target name and sends a wireless connection signal.
S3: and the first wireless equipment scans and reads the bar code on the display screen of the second wireless equipment, and performs related setting according to the decoding content of the bar code to acquire the target name and the MAC address.
S4: the first wireless device searches for a wireless connection signal whose wireless connection name is the target name.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S6: and the first wireless equipment and the second wireless equipment exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
In the step S6, after the authentication information is successfully matched, the first wireless device sends a request to the second wireless device to verify the MAC address, and compares whether the MAC address of the second wireless device is consistent with the MAC address in the barcode recorded in the step S3, if so, the connection is successful, otherwise, the connection is rejected.
Technical scheme three
A wireless connection system comprises a first wireless device and a second wireless device, wherein the first wireless device comprises a display screen, the second wireless device comprises a bar code reading module, and the first wireless device and the second wireless device execute the following steps:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
S2: and the first wireless equipment generates a target name according to a preset rule and displays the target name and a local MAC address generating bar code on a local display screen.
S3: and the second wireless equipment scans and reads the bar code on the display screen of the first wireless equipment, performs related setting according to the decoding content of the bar code, changes the wireless connection name into the target name and then sends a wireless connection signal, and records the MAC address related to the bar code.
S4: the first wireless device starts searching for a wireless connection signal having a name of the target name.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S6: and exchanging authentication information of the first wireless equipment and the second wireless equipment in a wireless signal transmission mode, matching, when the authentication information is matched with each other, initiating a request to the first wireless equipment by the second wireless equipment to verify an MAC address, comparing whether the MAC address of the first wireless equipment is consistent with the MAC address in the bar code recorded in the step S3, if so, successfully connecting, otherwise, rejecting the connection.
Technical scheme four
A wireless connection system comprises a first wireless device and a second wireless device, wherein the first wireless device comprises a bar code reading module, the second wireless device comprises a display screen, and the first wireless device and the second wireless device execute the following steps:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
S2: and the second wireless equipment generates a target name according to a preset rule, generates a bar code by the target name and the MAC address of the local machine and displays the bar code on a display screen of the local machine, and changes the wireless connection name into the target name and sends out a wireless connection signal.
S3: and the first wireless equipment scans and reads the bar code on the display screen of the second wireless equipment, and performs related setting according to the decoding content of the bar code to acquire the target name and the MAC address.
S4: the first wireless device searches for a wireless connection signal whose wireless connection name is the target name.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S6: and exchanging authentication information of the first wireless device and the second wireless device in a wireless signal transmission mode and matching the authentication information, when the authentication information is matched with each other, the first wireless device sends a request to the second wireless device to verify an MAC address, comparing whether the MAC address of the second wireless device is consistent with the MAC address in the bar code recorded in the step S3, if so, the connection is successful, otherwise, the connection is rejected.
Technical scheme five
A wireless connection device, the wireless connection device comprising a barcode reading module and a processor, the processor performing the steps of:
s1: and the wireless connection equipment starts a wireless connection function.
S2: and the wireless connection equipment scans and reads the bar code on the display screen of the connected equipment and acquires the target name and the MAC address according to the decoding content of the bar code.
S3: the wireless connection device searches for a wireless connection signal whose wireless connection name is the target name.
S4: the wireless connection equipment generates authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched with Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S5: the wireless connection device and the connected device exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
Technical scheme six
A wirelessly connected device comprising a display screen and a processor, the processor performing the steps of:
s1: the wireless connection device opens a wireless connection mode.
S2: the wireless connection equipment generates a target name according to a preset rule, generates a bar code by the target name and a local machine MAC address and displays the bar code on a local machine display screen, and changes the wireless connection name into the target name and sends a wireless connection signal.
S3: the wireless connection equipment generates authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched with Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S4: and the wireless connection equipment and the other connection equipment which searches the wireless connection signal exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
Compared with the prior art, the invention has the beneficial effects that:
the equipment operation process is simple and quick, the search process is not required to be excessively participated by manpower, and the accuracy and the high efficiency are realized; the authentication information is automatically generated by the equipment according to a preset rule, safety information such as a password and the like does not need to be recorded manually or input manually, and the safety is high.
Drawings
Fig. 1 is a flowchart of a wireless connection method in the prior art.
Fig. 2 is a flowchart of an embodiment of a wireless connection method according to an embodiment of the present invention.
Fig. 3 is a flowchart of an embodiment of a wireless connection method according to an embodiment of the present invention.
Fig. 4 is a schematic view of a wireless connection device according to an embodiment of the present invention.
Fig. 5 is a schematic operation interface diagram of an embodiment of a wireless connection device according to an embodiment of the present invention.
Fig. 6 is a schematic view of a wireless connection device according to an embodiment of the present invention.
Fig. 7 is a schematic operation interface diagram of an embodiment of a wireless connection device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
As shown in fig. 2, a wireless connection method includes the following steps:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
As shown in fig. 4, the first wireless device and the second wireless device are devices having wireless connection functions such as bluetooth or WiFi, in this embodiment, the first wireless device is a barcode reading device capable of scanning barcodes, such as a handheld barcode scanning gun, a desktop barcode scanner, a mobile data terminal, a portable barcode scanner, and the second wireless device is a device having an electronic display screen, such as a notebook computer, a tablet computer, a mobile data terminal, and the like.
And wireless connection programs are arranged in the first wireless connection device and the second wireless connection device, and an operator clicks a program starting button to enable the devices to enter a wireless connection working state. The execution unit of the device can control the wireless switch state of the device according to the program, read the MAC code of the device, modify and display the wireless connection name of the device, execute searching and matching and perform other preset rules and flows.
S2: and the first wireless equipment generates a target name according to a preset rule and displays the target name and a local MAC address generating bar code on a local display screen.
In step S2, the target name generated each time a wireless connection is established is unique and not repeated.
As shown in fig. 5, in this embodiment, the first wireless device is a tablet computer, the second wireless device is a handheld code scanning gun, and the first wireless device executes a predetermined program to generate a hotspot name (SSID), which is a target name, according to a preset rule: ABCD 123. The preset rule can set different coding rules according to requirements, including length limitation, character type limitation and the like, and can also take the connection initiating time and the equipment model as part of the target name.
The first wireless device also reads a native MAC code, in this embodiment, the native MAC code is 28: F5:37:71:4B:20, and adds the generated target name ABCD123 to obtain a code word content: ABCD 12328: F5:37:71:4B:20, and the first wireless device generates a barcode according to the content of the code words and displays the barcode on a local display screen.
If the requirement on the safety is not high, only the MAC address of the first wireless equipment can be used as the code word content, in this case, fixed target names are required to be agreed in advance between the equipment, or the target names are generated according to the MAC address in the code word content by using a method agreed in advance.
Because the bar code scanning device including the handheld code scanning gun needs to scan the bar code frequently in the using process, in order to distinguish the set code from other bar codes related in the normal using process, some specific contents can be added in the code word content to be used as an identifier or some parameters (such as adding specific code marks, different code system types and the like) different from other bar codes used in the service flow can be added in the bar code generating process, so that the second wireless device can quickly judge that the bar code is the wireless connection function bar code.
S3: and the second wireless equipment scans and reads the bar code on the display screen of the first wireless equipment, performs related setting according to the decoding content of the bar code, changes the wireless connection name of the second wireless equipment into the target name, sends out a wireless connection signal and records the MAC address related to the bar code.
In this embodiment, after scanning the barcode, the second wireless device modifies the local wireless connection name into ABCD123, and records the MAC addresses 28: F5:37:71:4B:20 contained in the barcode in the memory for subsequent comparison.
S4: the first wireless device starts searching for a wireless connection signal having a name of the target name.
And the first wireless equipment starts to automatically generate a wireless connection signal with the wireless connection name of the target name after finishing generating and displaying the bar code. The first wireless device automatic search is provided with a time limit, and when the specific device is not searched after the limited time, a wireless connection failure indication is sent out, and an operator is informed that the specific device is not searched.
When the first wireless device searches the wireless connection signal, activation information is sent to the second wireless device, an information interaction channel is established between the two devices, but the information interaction channel is only used for transmitting subsequent authentication information between the devices.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the wireless connection setting through an algorithm.
In the step S5, the authentication information is security information, including a bluetooth paired PIN code or a WiFi connection encryption authentication method and password.
The authentication is defined as the operation of inputting a PIN code to pair in the Bluetooth connection process, and the operation of setting an encryption authentication mode, a WiFi password and the like in the WiFi connection process. The authentication information is information related to safety in the wireless connection process and comprises a Bluetooth pairing PIN code, a WiFi encryption authentication mode, a WiFi password and the like. The authentication information generation rule is an algorithm agreed by the two devices in advance, and can be built in a factory stage or downloaded in a state that the devices are connected to an official party. The algorithm can generate authentication information through calculation according to the content of the bar code, and the algorithm can generate the authentication information through numerical operation and character conversion.
In this embodiment, according to the barcode content ABCD 12328: F5:37:71:4B:20, the authentication information generated by the authentication information generation rule is that the WiFi encryption mode is WPA2 and the password is 17B40282F 573. And the two pieces of equipment respectively change the WiFi encryption mode of the two pieces of equipment into the WPA2, and the second equipment sends the password to the first wireless equipment.
S6: and the first wireless equipment and the second wireless equipment exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
In this embodiment, the second wireless device receives the password sent by the first wireless device and compares the password with the password calculated by the local device, and the password is correct and the connection is successful.
In the step S6, after the authentication information is successfully matched, the second wireless device sends a request to the first wireless device to verify the MAC address, and compares whether the MAC address of the first wireless device is consistent with the MAC address in the barcode recorded in the step S3, if so, the connection is successful, otherwise, the connection is rejected.
In order to prevent other devices from being illegally or unintentionally wrongly connected by means of screen capture and the like, a MAC address verification stage can be added.
After the connection is successful, when a new device needs to be connected, the first wireless device and the second wireless device negotiate with each other whether to disconnect the current connection, and after the disconnection, the steps from S1 to S6 are executed again to complete the wireless connection of the new device.
According to the wireless connection method, the operation process of the equipment is simple and quick, the searching process does not need to be participated in too much manpower, and the accuracy and the high efficiency are realized; the authentication information is automatically generated by the equipment according to a preset rule, safety information such as a password and the like does not need to be recorded manually or input manually, and the safety is high.
Example two
As shown in fig. 3, a wireless connection method includes the following steps:
a wireless connection method, comprising the steps of:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
S2: and the second wireless equipment generates a target name according to a preset rule, generates a bar code by the target name and the MAC address of the local machine and displays the bar code on a display screen of the local machine, and changes the wireless connection name of the local machine into the target name and sends a wireless connection signal.
S3: and the first wireless equipment scans and reads the bar code on the display screen of the second wireless equipment, and performs related setting according to the decoding content of the bar code to acquire the target name and the MAC address.
S4: the first wireless device searches for a wireless connection signal whose wireless connection name is the target name.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S6: and the first wireless equipment and the second wireless equipment exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
In the step S6, after the authentication information is successfully matched, the first wireless device sends a request to the second wireless device to verify the MAC address, and compares whether the MAC address of the second wireless device is consistent with the MAC address in the barcode recorded in the step S3, if so, the connection is successful, otherwise, the connection is rejected.
According to the wireless connection method, the operation process of the equipment is simple and quick, the searching process does not need to be participated in too much manpower, and the accuracy and the high efficiency are realized; the authentication information is automatically generated by the equipment according to a preset rule, safety information such as a password and the like does not need to be recorded manually or input manually, and the safety is high.
EXAMPLE III
As shown in fig. 4, the first wireless device and the second wireless device are both mobile data terminals having a display screen and a barcode reading module, and the wireless communication mode is bluetooth communication, where the mobile data terminal a is used as the first wireless device and the mobile data terminal B is used as the second wireless device.
In the first step, a wireless connection function is opened in two mobile data terminals.
And secondly, generating a target Bluetooth name by the wireless connection program according to a preset rule, extracting the MAC address of the mobile data terminal A, and generating a DataMatrix two-dimensional code by taking the target Bluetooth name and the MAC address as code word contents. And simultaneously starting a Bluetooth search service, and searching for Bluetooth equipment with a Bluetooth name consistent with a target Bluetooth name, wherein the display interface of the mobile data terminal A is shown in FIG. 7.
And the third part is that an operator manually operates the mobile data terminal B to read the bar code on the display interface of the mobile data terminal A. After the mobile data terminal B successfully reads, the Bluetooth name of the mobile data terminal B is automatically modified into the name appointed in the bar code according to the program. And generating a PIN code according to the code word content.
And fourthly, automatically searching the mobile data terminal A of the Bluetooth slave device to find the mobile data terminal B with the modified name, generating a PIN (personal identification number) code according to the code word content, and pairing the PIN code with the mobile data terminal B to complete connection.
By using the connection method, in the example, an operator only needs to open a wireless connection program at the equipment end and uses the equipment to scan the two-dimensional code of the screen, so that the Bluetooth pairing connection can be completed. And the PIN code required by pairing is randomly generated, and the safety is high.
Example four
A wireless connection system comprises a first wireless device and a second wireless device, wherein the first wireless device comprises a display screen, the second wireless device comprises a bar code reading module, and the first wireless device and the second wireless device execute the following steps:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
S2: and the first wireless equipment generates a target name according to a preset rule and displays the target name and a local MAC address generating bar code on a local display screen.
S3: and the second wireless equipment scans and reads the bar code on the display screen of the first wireless equipment, performs related setting according to the decoding content of the bar code, changes the wireless connection name into the target name and then sends a wireless connection signal, and records the MAC address related to the bar code.
S4: the first wireless device starts searching for a wireless connection signal having a name of the target name.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S6: and exchanging authentication information of the first wireless equipment and the second wireless equipment in a wireless signal transmission mode, matching, when the authentication information is matched with each other, initiating a request to the first wireless equipment by the second wireless equipment to verify an MAC address, comparing whether the MAC address of the first wireless equipment is consistent with the MAC address in the bar code recorded in the step S3, if so, successfully connecting, otherwise, rejecting the connection.
According to the wireless connection system, the operation process of the equipment is simple and quick, the search process does not need to be participated in too much manpower, and the accuracy and the high efficiency are realized; the authentication information is automatically generated by the equipment according to a preset rule, safety information such as a password and the like does not need to be recorded manually or input manually, and the safety is high.
EXAMPLE five
A wireless connection system comprises a first wireless device and a second wireless device, wherein the first wireless device comprises a bar code reading module, the second wireless device comprises a display screen, and the first wireless device and the second wireless device execute the following steps:
s1: the first wireless device and the second wireless device turn on a wireless connection mode.
S2: and the second wireless equipment generates a target name according to a preset rule, generates a bar code by the target name and the MAC address of the local machine and displays the bar code on a display screen of the local machine, and changes the wireless connection name into the target name and sends out a wireless connection signal.
S3: and the first wireless equipment scans and reads the bar code on the display screen of the second wireless equipment, and performs related setting according to the decoding content of the bar code to acquire the target name and the MAC address.
S4: the first wireless device searches for a wireless connection signal whose wireless connection name is the target name.
S5: and the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S6: and exchanging authentication information of the first wireless device and the second wireless device in a wireless signal transmission mode and matching the authentication information, when the authentication information is matched with each other, the first wireless device sends a request to the second wireless device to verify an MAC address, comparing whether the MAC address of the second wireless device is consistent with the MAC address in the bar code recorded in the step S3, if so, the connection is successful, otherwise, the connection is rejected.
According to the wireless connection system, the operation process of the equipment is simple and quick, the search process does not need to be participated in too much manpower, and the accuracy and the high efficiency are realized; the authentication information is automatically generated by the equipment according to a preset rule, safety information such as a password and the like does not need to be recorded manually or input manually, and the safety is high.
EXAMPLE six
A wireless connection device, the wireless connection device comprising a barcode reading module and a processor, the processor performing the steps of:
s1: and the wireless connection equipment starts a wireless connection function.
S2: and the wireless connection equipment scans and reads the bar code on the display screen of the connected equipment and acquires the target name and the MAC address according to the decoding content of the bar code.
S3: the wireless connection device searches for a wireless connection signal whose wireless connection name is the target name.
S4: the wireless connection equipment generates authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched with Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S5: the wireless connection device and the connected device exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
According to the wireless connection equipment, the operation process of the equipment is simple and quick, the search process is not required to be excessively participated by manpower, and the accuracy and the high efficiency are realized; the authentication information is automatically generated by the equipment according to a preset rule, safety information such as a password and the like does not need to be recorded manually or input manually, and the safety is high.
EXAMPLE seven
A wirelessly connected device comprising a display screen and a processor, the processor performing the steps of:
s1: the wireless connection device opens a wireless connection mode.
S2: the wireless connection equipment generates a target name according to a preset rule, generates a bar code by the target name and a local machine MAC address and displays the bar code on a local machine display screen, and changes the wireless connection name into the target name and sends a wireless connection signal.
S3: the wireless connection equipment generates authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched with Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection.
S4: and the wireless connection equipment and the other connection equipment which searches the wireless connection signal exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
According to the wireless connection equipment, the operation process of the equipment is simple and quick, the search process is not required to be excessively participated by manpower, and the accuracy and the high efficiency are realized; the authentication information is automatically generated by the equipment according to a preset rule, safety information such as a password and the like does not need to be recorded manually or input manually, and the safety is high.
It is obvious to a person skilled in the art that the invention is not restricted to details of the above-described exemplary embodiments, but that it can be implemented in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (10)

1. A wireless connection method, comprising the steps of:
s1: the first wireless equipment and the second wireless equipment start a wireless connection mode;
s2: the first wireless equipment generates a target name according to a preset rule, and displays the target name and a local MAC address generating bar code on a local display screen;
s3: the second wireless equipment scans and reads the bar code on the display screen of the first wireless equipment, performs related setting according to the decoding content of the bar code, changes the wireless connection name of the second wireless equipment into the target name, sends a wireless connection signal and records the MAC address related to the bar code;
s4: the first wireless device starts to search for a wireless connection signal with the name of the target name;
s5: the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the wireless connection setting through an algorithm;
s6: and the first wireless equipment and the second wireless equipment exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
2. The wireless connection method according to claim 1, wherein in the step S5, the authentication information is security information, and includes a PIN code of bluetooth pairing or an encryption authentication method and a password of WiFi connection.
3. The wireless connection method of claim 2, wherein in step S6, after the authentication information is successfully matched, the second wireless device sends a request to the first wireless device to verify the MAC address, and compares whether the MAC address of the first wireless device is consistent with the MAC address in the barcode recorded in step S3, if so, the connection is successful, otherwise, the connection is rejected.
4. The wireless connection method of claim 3, wherein after the connection is successful, when a new device needs to be connected, the first and second wireless devices negotiate with each other whether to disconnect the current connection, and after the disconnection, the steps S1 to S6 are re-executed to complete the wireless connection of the new device.
5. A wireless connection method, comprising the steps of:
s1: the first wireless equipment and the second wireless equipment start a wireless connection mode;
s2: the second wireless equipment generates a target name according to a preset rule, generates a bar code by the target name and a local machine MAC address and displays the bar code on a local machine display screen, and changes a local machine wireless connection name into the target name and sends a wireless connection signal;
s3: the first wireless equipment scans and reads the bar code on the display screen of the second wireless equipment, and performs related setting according to the decoding content of the bar code to acquire the target name and the MAC address;
s4: the first wireless equipment searches for a wireless connection signal with a wireless connection name as the target name;
s5: the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection;
s6: and the first wireless equipment and the second wireless equipment exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
6. The wireless connection method according to claim 5, wherein in step S6, after the authentication information is successfully matched, the first wireless device sends a request to the second wireless device to verify the MAC address, and compares whether the MAC address of the second wireless device is consistent with the MAC address in the barcode recorded in step S3, if so, the connection is successful, otherwise, the connection is rejected.
7. A wireless connection system, includes first wireless device and second wireless device, wherein, first wireless device includes the display screen, the second wireless device includes bar code recognition module, its characterized in that, first wireless device with the following step is carried out to the second wireless device:
s1: the first wireless equipment and the second wireless equipment start a wireless connection mode;
s2: the first wireless equipment generates a target name according to a preset rule, and displays the target name and a local machine MAC address generating bar code on a local machine display screen;
s3: the second wireless equipment scans and reads the bar code on the display screen of the first wireless equipment, performs related setting according to the decoding content of the bar code, changes the wireless connection name into the target name and then sends a wireless connection signal, and records the MAC address related to the bar code;
s4: the first wireless device starts to search for a wireless connection signal with the name of the target name;
s5: the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection;
s6: and exchanging authentication information of the first wireless equipment and the second wireless equipment in a wireless signal transmission mode, matching, when the authentication information is matched with each other, initiating a request to the first wireless equipment by the second wireless equipment to verify an MAC address, comparing whether the MAC address of the first wireless equipment is consistent with the MAC address in the bar code recorded in the step S3, if so, successfully connecting, otherwise, rejecting the connection.
8. A wireless connection system, includes first wireless device and second wireless device, wherein, first wireless device includes bar code recognition module, second wireless device includes the display screen, its characterized in that, first wireless device with the following step is carried out to second wireless device:
s1: the first wireless equipment and the second wireless equipment start a wireless connection mode;
s2: the second wireless equipment generates a target name according to a preset rule, generates a bar code of the target name and a local machine MAC address and displays the bar code on a local machine display screen, and changes a wireless connection name into the target name and sends a wireless connection signal;
s3: the first wireless equipment scans and reads the bar code on the display screen of the second wireless equipment, and performs related setting according to the decoding content of the bar code to acquire the target name and the MAC address;
s4: the first wireless equipment searches for a wireless connection signal with a wireless connection name as the target name;
s5: the first wireless equipment and the second wireless equipment respectively generate authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection;
s6: and exchanging authentication information of the first wireless device and the second wireless device in a wireless signal transmission mode and matching the authentication information, when the authentication information is matched with each other, the first wireless device sends a request to the second wireless device to verify an MAC address, comparing whether the MAC address of the second wireless device is consistent with the MAC address in the bar code recorded in the step S3, if so, the connection is successful, otherwise, the connection is rejected.
9. A wireless connection device, the wireless connection device includes a barcode reading module and a processor, the processor performs the following steps:
s1: the wireless connection equipment starts a wireless connection function;
s2: the wireless connection equipment scans and reads a bar code on a display screen of the connected equipment and acquires a target name and an MAC address according to the decoding content of the bar code;
s3: the wireless connection equipment searches for a wireless connection signal with a wireless connection name as the target name;
s4: the wireless connection equipment generates authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection;
s5: the wireless connection device and the connected device exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
10. A wirelessly connected device comprising a display screen and a processor, wherein the processor performs the steps of:
s1: the wireless connection equipment starts a wireless connection mode;
s2: the wireless connection equipment generates a target name according to a preset rule, generates a bar code by the target name and a local machine MAC address and displays the bar code on a local machine display screen, and changes the wireless connection name into the target name and sends a wireless connection signal;
s3: the wireless connection equipment generates authentication information according to the content of the bar code and a preset rule, wherein the rule is that the character string is converted into the authentication information participating in the setting of the wireless connection through an algorithm, and the authentication information is safety information and comprises a PIN (personal identification number) matched by Bluetooth or an encryption authentication mode and a password of WiFi (wireless fidelity) connection;
s4: and the wireless connection equipment and the other connection equipment which searches the wireless connection signal exchange authentication information of both sides in a wireless signal transmission mode and carry out matching, and when the authentication information is matched with each other, connection is established, otherwise, connection is refused.
CN202110311532.7A 2021-03-24 2021-03-24 Wireless connection method and system Pending CN113115475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110311532.7A CN113115475A (en) 2021-03-24 2021-03-24 Wireless connection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110311532.7A CN113115475A (en) 2021-03-24 2021-03-24 Wireless connection method and system

Publications (1)

Publication Number Publication Date
CN113115475A true CN113115475A (en) 2021-07-13

Family

ID=76710523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110311532.7A Pending CN113115475A (en) 2021-03-24 2021-03-24 Wireless connection method and system

Country Status (1)

Country Link
CN (1) CN113115475A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8126399B1 (en) * 2009-03-31 2012-02-28 Koamtac, Inc. Method and apparatus for improved automatic bluetooth device identification for data exchange
CN102983885A (en) * 2011-09-07 2013-03-20 上海未来宽带技术股份有限公司 System and method for enhancing name readability of Bluetooth device
WO2014067238A1 (en) * 2012-11-01 2014-05-08 Capitalbio Corporation Method, device, and system establishing a wireless communication channel between electronic devices
CN104780044A (en) * 2014-01-15 2015-07-15 杭州晟元芯片技术有限公司 Dynamic token type smart watch based on mobile phone, Bluetooth and two-dimension code and implementation method
CN105472771A (en) * 2014-09-12 2016-04-06 小米科技有限责任公司 Wireless connection method and device
CN105490711A (en) * 2015-12-31 2016-04-13 福建联迪商用设备有限公司 Bluetooth automatic connection method, master device, slave device, and system
JP2016054373A (en) * 2014-09-03 2016-04-14 ヤマハ株式会社 Short range radio device and audio apparatus
CN105516975A (en) * 2015-11-26 2016-04-20 上海科勒电子科技有限公司 Wireless connection method, master device, slave device and system
CN105657782A (en) * 2015-03-31 2016-06-08 酷派软件技术(深圳)有限公司 Wireless connection requesting method, device and terminal device
US20160182624A1 (en) * 2014-12-23 2016-06-23 Xiaomi Inc. Method and device for wireless connection
CN110381176A (en) * 2019-07-10 2019-10-25 中山优感科技有限公司 A kind of bluetooth title naming method and device for producing bluetooth equipment in batches
CN111050307A (en) * 2019-11-27 2020-04-21 深圳星康医疗科技有限公司 Method, system and computer readable storage medium for realizing Bluetooth connection based on two-dimensional bar code
US20200169886A1 (en) * 2018-11-23 2020-05-28 Samsung Eletrônica da Amazônia Ltda. Secure method for configuring internet of things (iot) devices through wireless technologies
CN111225285A (en) * 2020-01-07 2020-06-02 海信视像科技股份有限公司 Bluetooth device display name modification and display method, device, equipment and medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8126399B1 (en) * 2009-03-31 2012-02-28 Koamtac, Inc. Method and apparatus for improved automatic bluetooth device identification for data exchange
CN102983885A (en) * 2011-09-07 2013-03-20 上海未来宽带技术股份有限公司 System and method for enhancing name readability of Bluetooth device
WO2014067238A1 (en) * 2012-11-01 2014-05-08 Capitalbio Corporation Method, device, and system establishing a wireless communication channel between electronic devices
CN104780044A (en) * 2014-01-15 2015-07-15 杭州晟元芯片技术有限公司 Dynamic token type smart watch based on mobile phone, Bluetooth and two-dimension code and implementation method
JP2016054373A (en) * 2014-09-03 2016-04-14 ヤマハ株式会社 Short range radio device and audio apparatus
CN105472771A (en) * 2014-09-12 2016-04-06 小米科技有限责任公司 Wireless connection method and device
US20160182624A1 (en) * 2014-12-23 2016-06-23 Xiaomi Inc. Method and device for wireless connection
CN105657782A (en) * 2015-03-31 2016-06-08 酷派软件技术(深圳)有限公司 Wireless connection requesting method, device and terminal device
CN105516975A (en) * 2015-11-26 2016-04-20 上海科勒电子科技有限公司 Wireless connection method, master device, slave device and system
CN105490711A (en) * 2015-12-31 2016-04-13 福建联迪商用设备有限公司 Bluetooth automatic connection method, master device, slave device, and system
US20200169886A1 (en) * 2018-11-23 2020-05-28 Samsung Eletrônica da Amazônia Ltda. Secure method for configuring internet of things (iot) devices through wireless technologies
CN110381176A (en) * 2019-07-10 2019-10-25 中山优感科技有限公司 A kind of bluetooth title naming method and device for producing bluetooth equipment in batches
CN111050307A (en) * 2019-11-27 2020-04-21 深圳星康医疗科技有限公司 Method, system and computer readable storage medium for realizing Bluetooth connection based on two-dimensional bar code
CN111225285A (en) * 2020-01-07 2020-06-02 海信视像科技股份有限公司 Bluetooth device display name modification and display method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US11588655B2 (en) Home appliance, network connection system for home appliance and network connection method of home appliance
CN104378145B (en) The matching method and system of bluetooth equipment
EP2495944B1 (en) Generation and scanning of barcode-data for registering in a wireless network
US9686637B2 (en) Method of and system for pairing a Bluetooth master device with a Bluetooth slave device that is selected from a group of Bluetooth slave devices that are in Bluetooth-discoverable range with the Bluetooth master device
CN106413124B (en) Equipment binding method and device
KR102275720B1 (en) Bluetooth communication method and bluetooth communication device
US20080184345A1 (en) Method of Detecting and Authenticating Connection Target for Wireless Communication Apparatus
EP3035725A1 (en) Authentication method and authentication device for wireless router
CN105450405B (en) A kind of setting of password and authentication method and system
CN103248874B (en) Job site wireless portable data acquiring and transmission system headend equipment
CN104980887A (en) Bluetooth connection establishment method and intelligent terminal
KR20120123941A (en) Method for paring radio communication using QRcord
CN104918296B (en) System and method is assisted in network connection
CN105578398A (en) Terminal, and Bluetooth connection method
CN111669737A (en) Bluetooth device connection method and device and electronic device
US11017121B2 (en) Information authentication method, apparatus, storage medium and virtual reality device based on virtual reality scenario
KR20080039153A (en) Method for pairing between mobile communication terminal and bluetooth device, mobile communication terminal and system for the same
CN110992528A (en) Intelligent door lock binding method and equipment based on identification code and storage medium
CN113115475A (en) Wireless connection method and system
KR20120045848A (en) Device and method for pairing between bluetooth devices
WO2017049507A1 (en) Barcode recognition method and smart wristband
CN105549976B (en) PDA intelligence interconnection method and device
KR100950662B1 (en) A method of certifying smart card for Identification Module using Network
CN205017592U (en) Wifi network device
JP2019068353A (en) Inter-apparatus communication method and information terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination