CN114697942B - Self-connection method, system, terminal equipment and storage medium - Google Patents

Self-connection method, system, terminal equipment and storage medium Download PDF

Info

Publication number
CN114697942B
CN114697942B CN202210391050.1A CN202210391050A CN114697942B CN 114697942 B CN114697942 B CN 114697942B CN 202210391050 A CN202210391050 A CN 202210391050A CN 114697942 B CN114697942 B CN 114697942B
Authority
CN
China
Prior art keywords
connection
connection information
information
communication
module
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
CN202210391050.1A
Other languages
Chinese (zh)
Other versions
CN114697942A (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.)
Beijing Sibituo Technology Co ltd
Original Assignee
Beijing Sibituo 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 Beijing Sibituo Technology Co ltd filed Critical Beijing Sibituo Technology Co ltd
Priority to CN202210391050.1A priority Critical patent/CN114697942B/en
Publication of CN114697942A publication Critical patent/CN114697942A/en
Application granted granted Critical
Publication of CN114697942B publication Critical patent/CN114697942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to the technical field of wireless communication, in particular to a self-connection method, a system, terminal equipment and a storage medium, wherein the method comprises the following steps: reading an NFC tag through an NFC near field communication function, wherein connection information of communication equipment is stored in the NFC tag, and the connection information comprises a communication equipment name and communication data; acquiring the connection information, and establishing an access list based on the connection information; selecting target communication equipment from the access list, and determining a connection mode with the target communication equipment; and establishing communication connection with the target communication equipment based on the connection mode and the connection information. The self-connection method, the self-connection system, the terminal equipment and the storage medium have the effect of simplifying the communication connection steps between the mobile equipment and the communication equipment.

Description

Self-connection method, system, terminal equipment and storage medium
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a self-connection method, system, terminal device, and storage medium.
Background
At present, wireless communication connection is one of network transmission technologies commonly used at present, and a related network can be accessed through a wireless access point, so that communication work such as data transmission is completed.
In the prior art, a connection method between a communication device and a mobile device generally requires that a communication password and other configuration information of the communication device are manually input at a mobile device end, and then a connection is established with the communication device.
In view of the above-mentioned related technologies, the inventor believes that when a communication device establishes a communication connection with a mobile device, the communication device needs to know a communication password and fill in the communication password in a manual manner, and when the communication password is forgotten or the communication connection needs to be established quickly, the connection is established in a manual manner, so that improvement is needed.
Disclosure of Invention
In order to simplify a communication connection process between a mobile device and a communication device and improve connection efficiency, the application provides a self-connection method, a self-connection system, a terminal device and a storage medium.
The self-connection method, the self-connection system, the terminal equipment and the storage medium adopt the following technical scheme:
in a first aspect, the present application provides a self-connection method, comprising the steps of:
reading an NFC label through an NFC near field communication function, wherein connection information of communication equipment is stored in the NFC label, and the connection information comprises a name of the communication equipment and communication data;
acquiring the connection information, and establishing an access list based on the connection information;
selecting target communication equipment from the access list, and determining a connection mode with the target communication equipment;
and establishing communication connection with the target communication equipment based on the connection mode and the connection information.
By adopting the technical scheme, the connection information of the communication equipment in the NFC label is read through the NFC near field communication function of the mobile equipment, the connection information of the target communication equipment needing to be established is selected from the access list, and after the mobile equipment is read, the mobile equipment automatically establishes communication connection with the target communication equipment without manually inputting passwords by a user, so that the step of establishing communication connection between the mobile equipment and the communication equipment is simplified, and the connection efficiency is improved.
Optionally, the establishing an access list based on the connection information of the communication device includes the following steps:
identifying the information type of the connection information, and establishing a corresponding access list based on the information type, wherein the information type comprises historical connection information and newly-established connection information, the historical connection information is the connection information of communication equipment which is in historical connection, and the newly-established connection information is the connection information of communication equipment which is not in historical connection;
if the historical connection information is the historical connection information, establishing a first access list, and adding the historical connection information into the first access list;
and if the new connection information is established, establishing a second access list, and adding the new connection information into the second access list.
By adopting the technical scheme, the communication equipment can be classified into historical connection information and newly-established connection information according to different types of the connection information read from the communication equipment, so that the communication equipment which is historically connected and the communication equipment which is historically not connected can be distinguished conveniently.
Optionally, the determining a connection mode with the target communication device includes the following steps:
determining a connection mode with the target communication equipment according to the position of the access list where the connection information of the target communication equipment is located;
if the target communication equipment is in a first access list, determining that the connection mode is direct connection;
and if the target communication equipment is in the second access list, determining that the connection mode is a new connection.
By adopting the technical scheme, the communication connection mode established with the communication equipment can be determined to be different according to different access lists where the connection information is located.
Optionally, the establishing a communication connection with the target communication device based on the connection mode and the connection information includes the following steps:
judging whether the connection mode is direct connection or new connection;
if the connection is direct, the communication connection is directly established with the target communication equipment;
and if the connection is newly established, establishing communication connection with the target communication equipment based on the connection information of the target communication equipment.
By adopting the technical scheme, if the mobile device is in the direct connection mode, the mobile device directly establishes the communication connection with the target communication device, and the connection information of the target communication device does not need to be analyzed on the next step, so that the step of establishing the communication connection between the mobile device which is historically connected and the target communication device is simplified, and if the mobile device is in the direct connection mode, the connection information of the target communication device needs to be analyzed on the next step.
Optionally, the establishing a communication connection with the target communication device based on the connection information of the target communication device includes the following steps:
reading communication data of the target communication device;
generating a pairing signal based on communication data of the target communication device;
acquiring an authorization signal generated by the target communication equipment according to the pairing signal;
establishing a communication connection with the target communication device based on the authorization signal.
In a second aspect, the present application provides a self-connection system comprising a mobile device, a communication device, and an NFC tag;
the NFC tag is internally stored with connection information of the communication equipment, and the connection information comprises a communication equipment name and communication data;
the mobile equipment is used for reading the NFC label through the NFC near field communication function, acquiring the connection information and establishing an information classification module based on the connection information;
and after the target communication equipment is selected from the information classification module, the mobile equipment determines the connection mode with the target communication equipment and establishes communication connection with the communication equipment based on the connection mode and the connection information.
By adopting the technical scheme, the mobile equipment reads the NFC label through the NFC near field communication function, then the target communication equipment needing to establish communication connection is selected from the information classification module, and then the mobile equipment automatically establishes communication connection with the target communication equipment, so that a series of preposed steps such as manual input of a connection password and the like when the communication connection is established are simplified, the step of establishing the communication connection between the mobile equipment and the communication equipment is simplified, and the connection efficiency is improved.
Optionally, the mobile device includes:
the reading module is used for reading the communication equipment name and the communication data of the communication equipment in the NFC label;
the first identification module is connected with the reading module and is used for identifying the information type of the connection information of the communication equipment, wherein the information type comprises historical connection information and newly-established connection information, the historical connection information is the connection information of the communication equipment which is historically connected, and the newly-established connection information is the connection information of the communication equipment which is historically not connected;
the information classification module establishes a first access list and a second access list based on the information type of the connection information, if the connection information is historical connection information, the historical connection information is added into the first access list, and if the connection information is newly established, the newly established connection information is added into the second access list;
a first compiling module, configured to compile the newly created connection information stored in the second access list into a pairing signal corresponding to the communication device;
a first sending module connected to the first compiling module, the first sending module being configured to send the pairing signal to the communication device;
the first receiving module is used for receiving an authorization signal sent by the communication equipment.
By adopting the technical scheme, after the mobile equipment reads the NFC label through the NFC near field communication function, the information classification module corresponding to the NFC label is established by identifying the connection information of the communication equipment in the NFC label, the type of the connection information and the connection mode of the target communication equipment can be distinguished through the information classification module, then the connection information of the target communication equipment needing to be connected is compiled and sent or a pairing signal corresponding to the target communication equipment is directly sent, and then the target communication equipment establishes communication connection with the mobile equipment based on the pairing signal.
Optionally, the communication device includes:
a second receiving module, configured to receive the pairing signal sent by the first sending module;
a second identification module, connected to the second receiving module, configured to identify a pairing signal received by the second receiving module, where the pairing signal includes a historical pairing signal and a new pairing signal, the historical pairing signal is a pairing signal of a mobile device that has been historically connected, and the new pairing signal is connection information of a mobile device that has not been historically connected;
the data classification module is used for establishing a first database and a second database based on pairing signals, if the pairing signals are historical pairing signals, the historical pairing signals are added into the first database, and if new pairing signals are established, the new pairing signals are added into the second database;
a second compiling module to compile historical pairing signals of the second database into authorization signals corresponding to the mobile device;
a second sending module, configured to send the authorization signal to the first receiving module.
By adopting the technical scheme, the communication equipment receives and identifies the pairing signal sent by the mobile equipment, further establishes different data classification modules based on the establishment of the pairing signal, then determines the signal type of the mobile equipment according to the different types of the pairing signal, then compiles and sends the pairing signal or directly sends the authorization signal with the mobile equipment, and the mobile equipment establishes communication connection with the target communication equipment according to the authorization signal.
In a third aspect, the present application provides a terminal device, which adopts the following technical solution:
a terminal device comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, the processor when loading and executing the computer program employing the method of any one of claims 1-5.
By adopting the technical scheme, the computer program is generated by the method of any one of claims 1 to 5 and stored in the memory so as to be loaded and executed by the processor, so that the terminal equipment is manufactured according to the memory and the processor, and the use is convenient.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, in which a computer program is stored which, when loaded and executed by a processor, carries out the method of any one of claims 1-5.
By adopting the technical scheme, the computer program is generated by the method of any one of claims 1 to 5 and stored in a computer readable storage medium so as to be loaded and executed by a processor, and the computer program is convenient to read and store through the computer readable storage medium.
In summary, the present application includes at least one of the following beneficial technical effects:
the corresponding information classification module can be established by identifying the connection information of the communication equipment, the communication connection mode established between the mobile equipment and the communication equipment can be determined to be different according to the different information classification modules where the connection information is located, and then the communication connection is established with the target communication equipment based on the different connection information and connection mode, so that the step of establishing the communication connection between the mobile equipment and the communication equipment is simplified.
Drawings
Fig. 1 is a schematic view of the overall structure of a self-connecting system of the present application.
Fig. 2 is a schematic structural diagram of a mobile device in a self-connection system according to the present application.
Fig. 3 is a schematic structural diagram of a communication device in a self-connection system of the present application.
Fig. 4 is an overall flow chart of a self-connection method of the present application.
Fig. 5 is a schematic flowchart of step S2 in a self-connection method of the present application.
Fig. 6 is a schematic flowchart of step S3 in a self-connection method according to the present application.
Fig. 7 is a schematic flowchart of step S4 in a self-connection method of the present application.
Fig. 8 is a flowchart illustrating step S43 in a self-connection method according to the present application.
Description of the reference numerals:
1. a mobile device; 2. a communication device; 3. an NFC tag; 4. a reading module; 5. a first identification module; 6. an information classification module; 7. a first access list; 8. a second access list; 9. a first compiling module; 10. a first sending module; 11. a first receiving module; 12. a second receiving module; 13. a second identification module; 14. a data classification module; 15. a first database; 16. a second database; 17. a second compiling module; 18. and a second sending module.
Detailed Description
The present application is described in further detail below with reference to figures 1-8.
The present embodiment discloses a self-connection system, and referring to fig. 1, the system includes:
the mobile device 1 generates a pairing signal corresponding to the target communication device 2 by reading the NFC tag 3, and the communication device 2 sends an authorization signal to the mobile device 1 by receiving the pairing signal, so that communication connection is established with the target communication device 2.
For further explanation of the application, the mobile device 1 in this embodiment may be a mobile phone, a tablet computer, and the like with an NFC communication function, and the communication device 2 may be WIFI, bluetooth, zigbee, UWB ultra wide band, RFID, and the like, for convenience of explanation, the mobile device 1 in this embodiment takes a mobile phone as an example, and the communication device 2 takes WIFI as an example.
The NFC tag 3 includes connection information of the communication device 2, the connection information includes a name of the communication device 2 and communication data, and in this embodiment, the connection information of the WIFI includes a device name of the WIFI and PWD information of the WIFI.
Wherein the mobile device 1 comprises:
the reading module 4 is used for reading the name and the communication data of the communication device 2 in the NFC tag 3;
the first identification module 5 is connected with the reading module 4, and the first identification module 5 is used for identifying the name and the communication data of the communication equipment 2 and outputting a corresponding identification result;
the information classification module 6, the information classification module 6 includes the first visits the tabulation 7 and second visits the tabulation 8, the first visits the tabulation 7 to store the connection information of the communication apparatus 2 that the history connects, the second visits the tabulation 8 to store the connection information of the communication apparatus 2 that has not connected;
the first compiling module 9, the first compiling module 9 compiles the connection information of the unconnected communication device 2 stored in the second access list 8 into a corresponding pairing signal;
a first sending module 10, the first sending module 10 being connected to the first compiling module 9, the first sending module 10 being configured to send the pairing signal to the communication device 2;
a first receiving module 11, where the first receiving module 11 is configured to receive an authorization signal sent by the communication device 2;
specifically, referring to fig. 2, connection information in the NFC tag 3 is read by the reading module 4, the first identification module 5 determines whether the connection information is connection information of the communication device 2 that has been historically connected or connection information of the communication device 2 that has not been connected based on the read connection information, the information classification module 6 establishes the first access list 7 and the second access list 8 based on the connection information of the communication device 2, determines the connection mode as a direct connection mode and adds the direct connection mode to the first access list 7 if the connection information is of the communication device 2 that has been historically connected, determines the connection mode as a new connection mode and adds the new connection mode to the second access list 8 if the connection information is of the communication device 2 that has not been connected, pairs of information of the communication device 2 that has been historically connected stored in the mobile device 1 are activated by the connection information of the communication device 2 of the first access list 7, and the pairs of information are directly transmitted to the target communication device 2 through the first transmission module 10 to establish communication connection; the connection information of the communication device 2 in the second access list 8 is compiled into pairing information corresponding to the target device by the first compiling module 9, and is sent to the target communication device 2 by the first sending module 10, and the first receiving module 11 is configured to receive feedback of the target communication device 2 and establish communication connection based on the feedback.
Specifically, in this embodiment, the reading module 4 of the mobile phone reads the WIFI name of the WIFI device and the PWD information of the WIFI in the NFC tag 3, and the first identification module 5 identifies, based on the WIFI name of the WIFI device and the PWD information of the WIFI, whether the historically connected WIFI device or the unconnected WIFI device, for example, the historically connected WIFI device is WIFI1, the PWD information of the WIFI1 is 987654, the unconnected WIFI device is WIFI2, and the PWD information of the WIFI2 is 654321, which are described in the following two connection situations:
the first situation is as follows:
if communication connection is established with the WIFI devices in the first access list 7, the information classification module 6 associates the names WIFI1 of the WIFI devices in the first access list 7 with the PWD information 987654 of the WIFI devices and adds the information into the first access list 7, because the connection information of the WIFI1 is recorded and stored in the mobile phone, the pairing signal of the connection information of the WIFI1 in the mobile phone is directly activated without manual confirmation of a user, the pairing signal is sent to the WIFI1 devices through the first sending module 10, and communication connection is established with the WIFI1 through authorization of the WIFI1 devices.
Case two:
if communication connection is established with the WIFI device in the second access list 8, the information classification module 6 associates the name of the WIFI device, namely WIFI2, with the PWD information 654321 of the WIFI device and adds the information into the second access list 8, the first compiling module 9 compiles the PWD information 654321 of the WIFI2 into a pairing signal corresponding to the WIFI2 device, the pairing signal is sent to the WIFI2 device through the first sending module 10, and then communication connection is established with the WIFI2 through authorization of the WIFI2 device.
Wherein, the communication device 2 comprises:
a second receiving module 12, where the second receiving module 12 is configured to receive the pairing signal sent by the first sending module 10;
the second identification module 13, the second identification module 13 is connected with the second receiving module 12, and the second identification module 13 is used for identifying the received pairing signal;
the data classification module 14, the data classification module 14 includes the first data and the second database 16, the first database 15 stores the connection information of the mobile device 1 which is historically connected, and the second database 16 stores the connection information of the mobile device 1 which is not connected;
a second compiling module 17, wherein the second compiling module 17 is used for compiling the connection information of the mobile device 1 which is not connected into the authorization signal;
and a second sending module 18, wherein the second sending module 18 is used for sending the authorization signal to the first receiving module 11.
Specifically, referring to fig. 3, the second receiving module 12 receives the pairing signal transmitted from the first transmitting module 10, identifies, through the second identifying module 13, whether the pairing signal is the pairing signal of the historically connected mobile device 1 or the pairing signal of the unconnected mobile device 1, stores the pairing signal of the historically connected mobile device 1 in the first database 15 if the pairing signal is the pairing signal of the historically connected mobile device 1, stores the authorization information associated with the pairing signal of the historically connected mobile device 1 in the first database 15, stores the pairing signal of the unconnected mobile device 1 in the second database 16 if the pairing signal is the pairing signal of the unconnected mobile device 1, directly transmits the authorization information associated with the pairing signal stored in the first database 15 to the second transmitting module 18, the second transmitting module 18 transmits the authorization signal to the first receiving module 11 of the target mobile device 1 based on the authorization signal, the first receiving module 11 establishes a communication connection with the target communication device 2 based on the authorization signal, compiles the authorization signal into the pairing signal of the target mobile device 1 and transmits the pairing signal to the target communication module 11 based on the authorization signal of the second receiving module 17, and transmits the pairing signal of the target communication module 11 to the target communication device 1 based on the authorization signal of the first transmitting module 11.
Specifically, in the present embodiment, the description can be divided into two cases:
the first situation is as follows:
if the second receiving module 12 of the WIFI1 receives the pairing signal sent by the mobile phone connected in the history, the pairing signal is identified and added into the first database 15 through the second identification module 13, the first database 15 stores the historical authorization signal related to the mobile phone, the historical authorization signal is directly sent to the first receiving module 11 of the mobile phone through the second sending module 18, and the first receiving module 11 of the mobile phone establishes communication connection with the WIFI1 based on the authorization signal.
Case two:
if the pairing signal sent by the mobile phone which is not connected in history is received by the second receiving module 12 of the WIFI1, the pairing signal is identified by the second identification module 13 and added into the second database 16, the pairing signal in the second database 16 is compiled into an authorization signal corresponding to the mobile phone by the second compiling module 17, the authorization signal is sent to the first receiving module 11 of the mobile phone by the second sending module 18, and the mobile phone establishes communication connection with the WIFI1 based on the authorization signal.
The implementation principle of the embodiment of the application is as follows: reading the connection information of the communication device 2 in the NFC tag 3 by using the reading module 4, identifying whether the communication device 2 is a historically connected communication device 2 or an unconnected communication device 2 by using the first identification module 5, if the communication device 2 is the connection information of the historically connected communication device 2, identifying and adding the connection information into the first access list 7, recording and storing pairing information corresponding to the historically connected communication device 2 in the mobile device 1, directly sending a pairing signal to the second receiving module 12 of the target communication device 2 based on the pairing information in the first access list 7 by using the first sending module 10, identifying and then storing the historically connected pairing information in the first database 15 by using the second identification module 13, storing authorization information of the historically connected mobile device 1 in the first database 15 by using the second sending module 18, directly sending an authorization signal to the target mobile device 1 based on the authorization information in the first database 15, and establishing communication connection between the target mobile device 1 and the target communication device 2 based on the authorization signal; if the connection information of the unconnected communication device 2 is identified and then added into the second access list 8, the connection information in the second access list 8 is compiled into a pairing signal corresponding to the target communication device 2 through the first compiling module 9, the pairing signal is sent to the second receiving module 12 of the target communication device 2 through the first sending module 10, the connection information of the second database 16 is compiled into an authorization signal corresponding to the target mobile device 1 through the second compiling module 17 after being identified and then is recorded into the second database 16, the authorization signal is sent to the first receiving module 11 of the target mobile device 1 through the second sending module 18, and the target mobile device 1 establishes communication connection with the target communication device 2 based on the authorization signal.
In the self-connection system in the embodiment of the present application, only WIFI devices are taken as an example for explanation, where processing methods of the bluetooth, zigbee, UWB ultra wide band, RFID and other communication devices 2 are the same as those of the WIFI devices, and only communication data of the communication devices 2 may be different, which is not described herein again.
The embodiment of the application discloses a self-connection method.
Referring to fig. 4, the method includes the following steps:
s1, reading an NFC tag through an NFC near field communication function, wherein connection information of communication equipment is stored in the NFC tag, and the connection information comprises a communication equipment name and communication data;
s2, acquiring connection information, and establishing an access list based on the connection information;
s3, selecting target communication equipment from the information classification module, and determining a connection mode with the target communication equipment;
and S4, establishing communication connection with the target communication equipment based on the connection mode and the connection information.
In step S1, the NFC tag is a chip capable of being erased and written, and the NFC tag is scanned by a mobile device with the NFC chip, in this embodiment, connection information of WIFI and connection information of WIFI are input in the NFC tag, the connection information of WIFI includes a name of the WIFI device and communication data of the WIFI device, the communication data of the WIFI device is PWD information and IP information of the WIFI device, and a function of establishing communication connection with the WIFI device is realized, the connection information of the WIFI device includes a name of the WIFI and communication data of the WIFI device, and the communication data of the WIFI device is PWD information of the WIFI device and a function of establishing communication connection with the WIFI device is realized.
After the connection information of the communication device is input, the connection information needs to be sorted, and with reference to fig. 5, step S2 includes the following steps:
s21, identifying the information type of the connection information, and establishing a corresponding access list based on the information type, wherein the access list comprises historical connection information and newly-established connection information, the historical connection information is the connection information of the communication equipment which is in historical connection, and the newly-established connection information is the connection information of the communication equipment which is not in historical connection;
s22, if the historical connection information is the historical connection information, establishing a first access list, and adding the historical connection information into the first access list;
and S23, if the new connection information is established, establishing a second access list, and adding the new connection information into the second access list.
In this embodiment, the mobile device is a mobile phone, the communication device is a WIFI device, and the mobile phone records connection information of historically connected WIFI devices, for example, the historically connected WIFI device is recorded in the mobile phone with the WIFI device name WIFI1, the PWD information of WIFI1 is 123456, the non-historically connected WIFI device is recorded in the mobile phone with the WIFI2, and the PWD information of WIFI2 is 456789, and different access lists are established based on the WIFI1 and corresponding PWD information and the WIFI2 and corresponding PWD information.
Specifically, after the connection information is identified and acquired, the connection information needs to be classified and sorted, in this embodiment, if the mobile phone identifies that WIFI1 is a communication device which is historically connected, a first access list is established, and WIFI1 and associated PWD information 123456 are added to the first access list, and if the mobile phone identifies that WIFI2 is a communication device which is not connected, a second access list is established, and WIFI2 and associated PWD information 456789 are added to the second access list.
Sorting the classified connection information, and determining a connection mode for the connection information, wherein, referring to fig. 6, step S3 includes the following steps:
s31, determining a connection mode with the target communication equipment according to the position of the access list where the connection information of the target communication is located;
s32, if the target communication equipment is in the first access list, determining that the connection mode is direct connection;
and S33, if the target communication equipment is in the second access list, determining that the connection mode is new connection.
Specifically, in this embodiment, if the WIFI1 and the associated PWD information 123456 are in the first access list, it is determined that the connection mode with the WIFI1 communication device is direct connection, and if the WIFI2 and the associated PWD information 456789 are in the second access list, it is determined that the connection mode with the WIFI1 communication device is new connection.
After the connection mode is determined, a communication connection is established with the target communication device based on the connection information and the connection mode, and referring to fig. 7, step S4 includes the following steps:
s41, judging whether the connection mode is direct connection or newly-built connection;
s42, if the connection is direct, the communication connection is directly established with the target communication equipment;
and S43, if the connection is newly established, establishing communication connection with the target communication equipment based on the connection information of the target communication equipment.
Specifically, in the present embodiment, the following description is made in two cases:
the first situation is as follows:
if communication connection is required to be established with the WIFI1 device, the WIFI1 is determined to be in a direct connection mode, manual clicking selection is not needed, and as the mobile phone records the PWD information and the IP address which are connected with the WIFI1 in a historical record, when the mobile phone identifies the WIFI1, a historical driving program is directly activated, a historical pairing signal is sent to the WIFI1 device, the WIFI1 device sends an authorization signal to the mobile phone based on the historical pairing signal, and the mobile phone establishes connection with the WIFI1 based on the authorization signal;
case two:
if communication connection needs to be established with the WIFI2 device, and it is determined that the WIFI2 is in a new connection mode, the WIFI2 name needs to be manually clicked to select, and since the PWD information and the IP address of the relevant WIFI2 are not recorded in the mobile phone, the PWD information and the IP address of the WIFI2 need to be recorded and compiled, specifically, referring to fig. 8, step S43 includes the following steps:
s431, reading communication data of the target communication equipment;
s432, generating a pairing signal based on the communication data of the target communication equipment;
s433, acquiring an authorization signal generated by the target communication equipment according to the pairing signal;
and S434, establishing a communication connection with the target communication device based on the authorization signal.
More specifically, in this embodiment, the name of the WIFI2 in the second access list is clicked, then the PWD information and the IP address of the WIFI2 are read, the PWD information and the IP address are recorded and stored by the mobile phone, and are compiled into a pairing signal corresponding to the WIFI2 device, the WIFI2 device sends an authorization signal to the mobile phone based on the pairing signal, and the mobile phone establishes a communication connection with the WIFI2 device based on the authorization signal.
The implementation principle of a self-connection method in the embodiment of the application is as follows: the method comprises the steps of acquiring an NFC label through an NFC near field function, and establishing an information classification module based on communication equipment connection information in the acquired NFC label, wherein connection information of communication equipment which is historically connected is stored in a first access list, connection information of newly-built communication equipment is stored in a second list, the connection information of the communication equipment in the first access list is determined to be in a direct connection mode, manual selection is not needed during connection, a historical pairing signal is directly sent to target communication equipment based on historical connection information which is recorded and stored by mobile equipment, and the target communication equipment establishes communication connection with the mobile equipment based on the historical pairing signal; and the communication equipment in the second access list determines as a new connection mode, reads the connection information of the target communication equipment and generates a pairing signal corresponding to the target communication equipment, the target communication equipment generates an authorization signal corresponding to the initiating terminal based on the pairing signal, and establishes communication connection with the target communication equipment based on the authorization signal.
The self-connection method in the embodiment of the application is only explained by taking the WIFI device as an example, wherein the processing methods of the communication devices such as bluetooth, zigbee, UWB ultra-wideband, RFID and the like are the same as those of the WIFI device, and only the communication data of the communication devices may be different, so details are not repeated herein.
The embodiment of the present application further discloses a terminal device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein when the processor executes the computer program, the method recited in any one of claims 1 to 5 in the above embodiment is adopted.
The terminal device may adopt a computer device such as a desktop computer, a notebook computer, or a cloud server, and includes but is not limited to a processor and a memory, for example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
The processor may be a Central Processing Unit (CPU), and of course, according to an actual use situation, other general processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like may also be used, and the general processor may be a microprocessor or any conventional processor, and the present application does not limit the present invention.
The memory may be an internal storage unit of the terminal device, for example, a hard disk or a memory of the terminal device, or an external storage device of the terminal device, for example, a plug-in hard disk, a smart card memory (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the terminal device, and the memory may also be a combination of the internal storage unit of the terminal device and the external storage device, and the memory is used for storing a computer program and other programs and data required by the terminal device, and the memory may also be used for temporarily storing data that has been output or will be output, which is not limited in this application.
The method of any one of claims 1 to 5 in the above embodiment is stored in a memory of the terminal device by the terminal device, and is loaded and executed on a processor of the terminal device, so that the terminal device is convenient to use.
The embodiment of the present application further discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the method of any one of claims 1 to 5 in the above embodiment is adopted.
The computer program may be stored in a computer readable medium, the computer program includes computer program code, the computer program code may be in a source code form, an object code form, an executable file or some intermediate form, and the like, the computer readable medium includes any entity or device capable of carrying the computer program code, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read Only Memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunication signal, a software distribution medium, and the like, and the computer readable medium includes but is not limited to the above components.
Wherein, the method of any one of claims 1 to 5 in the above embodiments is stored in a computer readable storage medium by the computer readable storage medium, and is loaded and executed on a processor to facilitate the storage and application of the method.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (6)

1. A self-attaching method, comprising the steps of:
reading an NFC label through an NFC near field communication function, wherein connection information of communication equipment is stored in the NFC label, and the connection information comprises a name of the communication equipment and communication data;
identifying the information type of the connection information, and establishing a corresponding access list based on the information type, wherein the information type comprises historical connection information and newly-established connection information, the historical connection information is the connection information of the communication equipment which is historically connected, and the newly-established connection information is the connection information of the communication equipment which is historically not connected;
if the historical connection information is the historical connection information, establishing a first access list, and adding the historical connection information into the first access list;
if the new connection information is established, establishing a second access list, and adding the new connection information into the second access list;
selecting target communication equipment from the access list, and determining a connection mode with the target communication equipment according to the position of the access list where the connection information of the target communication equipment is located;
if the connection information of the target communication equipment is in a first access list, determining that the connection mode is direct connection;
if the connection information of the target communication equipment is in a second access list, determining that the connection mode is a new connection;
judging whether the connection mode is direct connection or new connection;
if the connection is direct, the communication connection is directly established with the target communication equipment;
and if the connection is newly established, establishing communication connection with the target communication equipment based on the connection information of the target communication equipment.
2. The self-connection method according to claim 1, wherein the establishing a communication connection with the target communication device based on the connection information of the target communication device comprises:
reading communication data of the target communication device;
generating a pairing signal based on communication data of the target communication device;
acquiring an authorization signal generated by the target communication equipment according to the pairing signal;
establishing a communication connection with the target communication device based on the authorization signal.
3. A self-attaching system, comprising:
the NFC tag comprises a mobile device (1), a communication device (2) and an NFC tag (3), wherein connection information of the communication device (2) is stored in the NFC tag (3), and the connection information comprises a name of the communication device (2) and communication data;
the reading module (4) is used for reading the NFC tag (3) through an NFC near field communication function and generating corresponding connection information;
a first identification module (5) for identifying the information type of the connection information of the communication device (2);
the information classification module (6) is used for establishing a first access list (7) according to the information classification module (6) if the connection information is historical connection information, adding the historical connection information into the first access list (7), and establishing a second access list (8) according to the information classification module (6) if the connection information is newly established, and adding the newly established connection information into the second access list (8);
the first compiling module (9) is used for selecting a target communication device from the access list, determining a connection mode with the target communication device according to the position of the access list where the connection information of the target communication device is located, determining that the connection mode is direct connection according to the first compiling module (9) if the connection information of the target communication device is in a first access list, determining that the connection mode is new connection according to the first compiling module (9) if the connection information of the target communication device is in a second access list, and compiling the new connection information stored in the second access list (8) into a pairing signal corresponding to the communication device (2);
-first sending means (10) for sending said pairing signal to said communication device (2);
the first receiving module (11) is used for receiving an authorization signal sent by the communication equipment (2), and if the authorization signal is directly connected, the first receiving module (11) is directly connected with the target communication equipment to establish communication connection; if the connection is newly established, establishing communication connection with the target communication equipment according to the connection information of the first receiving module (11) and the target communication equipment.
4. A self-connecting system according to claim 3, characterized in that said communication device (2) comprises:
a second receiving module (12), wherein the second receiving module (12) is used for receiving the pairing signal transmitted by the first transmitting module (10);
a second identifying module (13), wherein the second identifying module (13) is connected to the second receiving module (12), the second identifying module (13) is configured to identify a pairing signal received by the second receiving module (12), the pairing signal includes a historical pairing signal and a newly-established pairing signal, the historical pairing signal is a pairing signal of a historically-connected mobile device (1), and the newly-established pairing signal is connection information of a historically-unconnected mobile device (1);
a data classification module (14), wherein the data classification module (14) establishes a first database (15) and a second database (16) based on the pairing signal, if the pairing signal is a historical pairing signal, the historical pairing signal is added into the first database (15), and if the pairing signal is a new pairing signal, the new pairing signal is added into the second database (16);
a second compiling module (17), the second compiling module (17) being configured to compile a historical pairing signal of the second database (16) into an authorization signal corresponding to the mobile device (1);
a second sending module (18), the second sending module (18) being configured to send the authorization signal to the first receiving module (11).
5. A terminal device comprising a memory, a processor and a computer program stored in the memory and being executable on the processor, characterized in that the method of any of claims 1-2 is used when the computer program is loaded and executed by the processor.
6. A computer-readable storage medium, in which a computer program is stored which, when loaded and executed by a processor, carries out the method of any one of claims 1-2.
CN202210391050.1A 2022-04-14 2022-04-14 Self-connection method, system, terminal equipment and storage medium Active CN114697942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210391050.1A CN114697942B (en) 2022-04-14 2022-04-14 Self-connection method, system, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210391050.1A CN114697942B (en) 2022-04-14 2022-04-14 Self-connection method, system, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114697942A CN114697942A (en) 2022-07-01
CN114697942B true CN114697942B (en) 2023-04-07

Family

ID=82143867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210391050.1A Active CN114697942B (en) 2022-04-14 2022-04-14 Self-connection method, system, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114697942B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412909A (en) * 2016-10-19 2017-02-15 广东欧珀移动通信有限公司 Device connection method and device
CN114025000A (en) * 2021-10-29 2022-02-08 建信金融科技有限责任公司 Method, device, equipment and storage medium for establishing network access relationship

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015038104A1 (en) * 2013-09-11 2015-03-19 Hewlett-Packard Development Company, L.P. Near field communication (nfc) data transfer
AU2013408042B2 (en) * 2013-12-20 2018-01-04 Huawei Device Co., Ltd. Wireless access method and relevant device and system
CN103874164B (en) * 2014-02-28 2017-06-06 上海升途智能系统有限公司 Method, system and the mobile terminal device of WIFI are connected by NFC
CN105592524A (en) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 Method of connecting wireless access point by terminal, and corresponding terminal and corresponding wireless access point
CN105912421A (en) * 2016-04-06 2016-08-31 广东欧珀移动通信有限公司 Backup method and device for storing data in mobile terminals, mobile terminals and terminals
CN107704785A (en) * 2017-09-04 2018-02-16 惠州Tcl移动通信有限公司 Simplify method, storage medium and the mobile terminal of wireless connection using NFC
CN107548063B (en) * 2017-09-14 2020-12-18 何雄英 Method and device for automatically accessing AP (access point), and wireless router
RU2679882C1 (en) * 2018-03-12 2019-02-14 Хуавей Дивайс (Дунгуань) Ко., Лтд Wireless access method and associated device and system
CN113508635B (en) * 2019-03-25 2023-10-20 华为技术有限公司 Method for establishing wireless communication connection and related equipment
CN112073958A (en) * 2020-09-15 2020-12-11 苏州臻迪智能科技有限公司 Connection establishing method and device, mobile terminal and computer readable storage medium
CN113110815B (en) * 2021-04-15 2021-12-21 深圳可视科技有限公司 Method and system for realizing screen transmission function through touch and collision, electronic equipment and storage medium
CN113692066A (en) * 2021-09-17 2021-11-23 中国联合网络通信集团有限公司 Short-distance communication equipment connection method and device and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412909A (en) * 2016-10-19 2017-02-15 广东欧珀移动通信有限公司 Device connection method and device
CN114025000A (en) * 2021-10-29 2022-02-08 建信金融科技有限责任公司 Method, device, equipment and storage medium for establishing network access relationship

Also Published As

Publication number Publication date
CN114697942A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US20080140667A1 (en) Device and method for creating a transaction log of data exchanges between a portable mobile communications device and other wireless devices
US10430802B2 (en) Screen-image based classification
CN108830562B (en) Attendance card punching method and related equipment
CN110175833B (en) Computer device, method, system and medium for binding bank card information
FR2869437A1 (en) READER / WRITE DEVICE FOR INFORMATION CARRIER ASSOCIATED METHODS AND APPARATUS
CN114697942B (en) Self-connection method, system, terminal equipment and storage medium
CN110442636B (en) Data reading and writing method and device and data reading and writing equipment
CN111612947A (en) Method, equipment and storage medium for processing communication abnormity of intelligent lock
CN109034759B (en) Data transfer method and related equipment
CN116340265A (en) Log extraction method and device, electronic equipment and vehicle
CN115629940A (en) Micro-service full-link tracking method, device, system and medium
CN113791766B (en) Method for combining data interfaces, electronic device and readable storage medium
CN105590118A (en) Card reading method and card reading system for remotely reading information of IC card
CN114518877A (en) Data processing method and device and computer storage medium
CN113051105A (en) Data processing method, device, equipment and storage medium
KR20170090244A (en) Service system using of the virtual number or its method
US10672007B2 (en) Payment system, payment terminal, payment method, payment program, and computer-readable recording medium for recording same program
CN109785102A (en) System of account information-pushing method, device, computer equipment and storage medium
CN110647767A (en) Data viewing method, electronic device and computer-readable storage medium
CN107657191B (en) Bank card damage prompting method and system and terminal equipment
CN111158744B (en) Cross-platform heterogeneous data integration method and device
CN113204946B (en) Data control method, device, equipment and storage medium
US10609256B2 (en) Imaging apparatus management system and operation method of an imaging apparatus management system
CN108897873B (en) Method and device for generating job file, storage medium and processor
CN114238104A (en) Monitoring method, device, equipment and storage medium for business transaction

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