CN116437328A - Equipment communication method and electronic equipment - Google Patents

Equipment communication method and electronic equipment Download PDF

Info

Publication number
CN116437328A
CN116437328A CN202310328009.4A CN202310328009A CN116437328A CN 116437328 A CN116437328 A CN 116437328A CN 202310328009 A CN202310328009 A CN 202310328009A CN 116437328 A CN116437328 A CN 116437328A
Authority
CN
China
Prior art keywords
equipment
intelligent
gateway
information
authentication
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
CN202310328009.4A
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.)
Ecoflow Technology Ltd
Original Assignee
Ecoflow Technology 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 Ecoflow Technology Ltd filed Critical Ecoflow Technology Ltd
Priority to CN202310328009.4A priority Critical patent/CN116437328A/en
Publication of CN116437328A publication Critical patent/CN116437328A/en
Pending legal-status Critical Current

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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The application provides a device communication method and electronic equipment, and relates to the technical field of communication, wherein the method comprises the following steps: after the gateway equipment scans the intelligent equipment, the gateway equipment establishes close-range communication connection with the intelligent equipment; then sending first authentication information to the intelligent equipment through the short-range communication connection, so that the intelligent equipment can match the bound user account information to authenticate; and the gateway equipment sends the distribution network information to the intelligent equipment after receiving the authentication passing message sent by the intelligent equipment, so that the intelligent equipment can access the local area network established by the gateway equipment according to the distribution network information. The technical scheme provided by the application can effectively reduce the operation of the distribution network, and improves the distribution network efficiency and the convenience of user use.

Description

Equipment communication method and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a device communication method and an electronic device.
Background
The gateway equipment is an important component of home intelligence, and can connect intelligent equipment in a home through a wireless network, so that a user can manage and control the intelligent equipment through the gateway equipment, thereby providing convenience for life of the user.
Along with the development of the Internet of things and intelligent home, more and more devices have intelligent functions, so that the life of people is more intelligent. When the intelligent equipment is used for the first time, a user needs to firstly carry out network distribution on the intelligent equipment, and the intelligent equipment is accessed into the wireless local area network of the gateway equipment. At present, a common mode is that a user realizes the network distribution by performing one-step operation such as device scanning, password input and the like on intelligent devices or related applications according to prompts, and the mode is complex, inconvenient for the user to use and must work in an environment with network communication.
Disclosure of Invention
In view of this, the present application provides a device communication method and an electronic device, which are used for reducing the operation flow of the distribution network of the user and improving the convenience of the user.
In order to achieve the above object, in a first aspect, an embodiment of the present application provides a device communication method, applied to a gateway device,
in a possible implementation manner of the first aspect, the method includes:
after the intelligent equipment is scanned, establishing close-range communication connection with the intelligent equipment;
sending first authentication information to the intelligent equipment through the short-range communication connection, wherein the first authentication information is used for the intelligent equipment to match the bound user account information so as to authenticate;
after receiving the authentication passing message sent by the intelligent device, sending distribution network information to the intelligent device, wherein the distribution network information comprises service set identification and password information sent by the gateway device, so that the intelligent device can access to the local area network established by the gateway device according to the distribution network information.
In a possible implementation manner of the first aspect, the first authentication information includes at least one user account information recorded by the gateway device.
In a possible implementation manner of the first aspect, the method further includes: and after receiving the authentication failure message sent by the intelligent equipment, disconnecting the short-distance communication connection with the intelligent equipment.
In a possible implementation manner of the first aspect, the method further includes:
after receiving second authentication information sent by the intelligent equipment, matching the recorded user account information with the second authentication information;
and under the condition that the matching is successful, opening the access right of the intelligent equipment.
In a possible implementation manner of the first aspect, the gateway device and the smart device use symmetric encryption communication for data transmission, and an encryption algorithm adopted by the symmetric encryption communication is an AES encryption algorithm.
In a second aspect, an embodiment of the present application provides a device communication method, applied to an intelligent device, where the method includes:
receiving a close-range communication connection request of gateway equipment, and establishing close-range communication connection with the gateway equipment;
after receiving the first authentication information sent by the gateway equipment, matching the bound user account information with the first authentication information;
under the condition of successful matching, sending an authentication passing message to gateway equipment;
and after receiving the distribution network information sent by the gateway equipment, accessing the local area network established by the gateway equipment according to the distribution network information.
In a possible implementation manner of the second aspect, the method further includes: and sending an authentication failure message to the gateway equipment under the condition of failure of matching.
In a possible implementation manner of the second aspect, after receiving the identification information of the gateway device, second authentication information is sent to the gateway device, where the second authentication information is used for the gateway device to match the recorded user account information for authentication;
under the condition that the matching is successful, the intelligent device has the access right of the gateway device.
In a possible implementation manner of the second aspect, the identification information includes: the device information of the gateway device and the address information of the local area network server corresponding to the gateway device.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the device communication method described above when the computer program is invoked.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored thereon, the computer program implementing the device communication method described above when executed by a processor.
In a fifth aspect, embodiments of the present application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the above-described device communication method.
According to the technical scheme, after the gateway equipment scans the intelligent equipment, the gateway equipment automatically establishes close-range communication connection with the intelligent equipment, then sends first authentication information to the intelligent equipment through the close-range communication connection, the intelligent equipment can match the bound user account information with the first authentication information, authentication passing information is fed back to the gateway equipment after the matching is successful, and then the network distribution information sent by the gateway equipment and the gateway equipment are automatically distributed.
Drawings
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a device communication method according to an embodiment of the present application;
fig. 3 is a flow chart of another device communication method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application. The terminology used in the description of the embodiments of the application is for the purpose of describing particular embodiments of the application only and is not intended to be limiting of the application. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 1 is a schematic diagram of a system architecture provided in an embodiment of the present application, and as shown in fig. 1, the system architecture may include a server 100, an intelligent device 200, a mobile terminal 300, a gateway device 400, and a router 500.
Wherein the server 100 may have a remote network communication connection with the router 500. The server 100 may receive a control signal transmitted from the mobile terminal 300 and may perform information inquiry, and then transmit the control signal to the router 500 through a network, and receive a feedback signal transmitted from the router 500 through the network. The server may be an entity server, a virtual server, or the like.
The smart device 200 may be a terminal device that adds network functions and smart algorithms. The smart device 200 may establish a communication connection with the gateway device 400 to obtain control signals to implement corresponding instruction operations. The intelligent device 200 may include intelligent home devices having communication functions such as an intelligent sound box, an intelligent television, an intelligent refrigerator, an intelligent washing machine, an intelligent air conditioner, and an intelligent door lock, and the intelligent device 200 may further include devices having communication functions such as office devices and traffic devices.
The mobile terminal 300 may be any device that can install an application and has a man-machine interaction interface. The mobile terminal 300 may transmit a control signal to the server 100 through a network and receive a feedback signal of the server 100; such as: the mobile terminal 300 may include, but is not limited to, a mobile phone, a personal computer, a tablet computer, a portable wearable device, etc., and in the embodiment of the present application, the mobile phone is exemplified.
The gateway apparatus 400 may receive the control signal sent from the server 100 and sent from the router 500, and the gateway apparatus 400 processes the signal and sends the processed feedback signal to the router 500, and sends the signal to the server 100 through the router 500.
The router 500 may receive the control signal transmitted from the server 100 and transmit the signal to the gateway apparatus 400, and receive a feedback signal transmitted from the gateway apparatus 400. In some embodiments, the functionality of router 500 may also be integrated on gateway device 400.
In fig. 1, two intelligent devices are taken as an example for illustration, but in practical application, the number and types of the intelligent devices may be selected according to actual needs, which is not particularly limited in the embodiment of the present application.
In addition, in the embodiment of the application, no strict distinguishing relationship exists between the intelligent device and the mobile terminal, and for the same device, the intelligent device can be used as the mobile terminal in some scenes, and can also be used as the intelligent device in other scenes. For example: in some scenarios, the mobile phone may be used as a mobile terminal to bind with the intelligent device, and in other scenarios, the gateway device may also be used to connect the mobile phone.
It should be understood that the above-described system is only a schematic description provided in the present application, and does not impose any limitation on the system to which the device communication method of the present application is applied. In an actual application scenario, the device communication method provided in the application may be implemented based on some or all devices in the system. Alternatively, some of the devices in the above system may be replaced. The present application is not limited in this regard.
The interaction process between the devices in the above system is described in detail below.
Fig. 2 is a flow chart of a device communication method provided in an embodiment of the present application, as shown in fig. 2, the method may include the following steps:
step S110, after the gateway equipment scans the intelligent equipment, the gateway equipment establishes close range communication connection with the intelligent equipment.
The intelligent device can broadcast own identification information, and the identification information is used for uniquely identifying the intelligent device; for example, the identification information may include at least one of a device serial number and a name of the smart device. In some embodiments, the identification information may further include a production number, a category number, a signal strength, a hardware address, and the like of the device, where the content specifically included in the identification information may be set according to the needs of the actual application, which is not particularly limited in this application.
It will be appreciated that the intelligent device may continually broadcast its own identification information, thereby increasing the speed of establishing a communication connection with the gateway device. The intelligent device can also broadcast own identification information at intervals to reduce power consumption. The present application is not particularly limited thereto.
When the gateway device is in a working state, short-distance communication scanning can be continuously or intermittently performed to detect whether intelligent devices (also called network equipment to be distributed) which are not accessed to a network exist in a scanning range. After the gateway equipment scans the equipment to be distributed, sending a near field communication connection request (for convenience of description, simply called a connection request) to the intelligent equipment; correspondingly, after receiving the connection request, the intelligent device can establish close-range communication connection with the gateway device. The form of broadcasting the smart device and the way that the gateway device scans the smart device may be bluetooth, or other manners, such as Ultra Wide Band (UWB), near field wireless communication (NearField Communication, NFC), and the like.
Specifically, the example in which the intelligent device uses bluetooth to broadcast the identification information and the gateway device uses bluetooth to scan is exemplified. After the gateway device scans the intelligent device, the gateway device can be matched with the network distribution device list recorded by the gateway device according to the identification information of the intelligent device. The distribution network device list may contain unique identification information of the intelligent device of the local area network established by the access gateway device, and the unique identification information of the intelligent device may be recorded in the distribution network device list after the intelligent device is accessed to the local area network. If the identification information of the intelligent equipment exists in the distribution network equipment list, judging that the intelligent equipment is accessed to a local area network established by gateway equipment; if the connection request does not exist, the intelligent device is judged to be the network device to be distributed, and then the gateway device can send the connection request to the intelligent device.
Correspondingly, after receiving the connection request of the gateway device, the intelligent device establishes a close-range communication connection, such as a bluetooth connection, with the gateway device. Thus, data transmission between the intelligent device and the gateway device can be facilitated.
In some embodiments of the present application, after determining that the intelligent device is a network device to be configured, the gateway device may first check the identification information of the intelligent device to determine whether the intelligent device is a supportable device. For example, the name of the intelligent device is XXX, and if the list of supportable devices stored in the gateway device contains the series, the intelligent device is judged to be the supportable device. If the network resource waste is supportable, the gateway equipment sends a connection request to the intelligent equipment, so that the network resource waste is reduced. Wherein the supportable device list may be an updatable list. Specifically, the verification information may be set according to actual needs, which is not particularly limited in the embodiment of the present application.
It may be appreciated that the connection request sent by the gateway device may also include identification information of the gateway device, so that the intelligent device may determine device parameters of the gateway device, and so on, so as to identify the connection request in subsequent use. The connection request may be in the form of a connection request frame or other messages having similar functions, which is not specifically limited in this embodiment.
By establishing the short-range communication connection, the embodiment of the application can enable the gateway equipment and the intelligent equipment to perform data transmission and subsequent network distribution operation under the condition that a local area network is not used.
In some embodiments, after sending the connection request, the gateway device may default to having established a close range communication connection with the smart device and perform the next step.
In other embodiments, to improve the reliability of the method, after receiving the notification message such as the request information, the authentication information, etc., the smart device and the gateway device may feedback a response frame to the other party to indicate that the notification message has been received. For example, after receiving a connection request from the gateway device and establishing a close range communication connection, the smart device may feed back a connection response frame to the gateway device to indicate that the smart device has successfully established a close range communication connection with the gateway device.
For example, if the gateway device does not receive the connection response frame fed back by the intelligent device within a preset time after sending the connection request, the gateway device may send the connection request to the intelligent device again. After the number of times of sending the connection request reaches the threshold or the preset duration, the gateway device still fails to receive the connection response frame, the gateway device can not continue to send the connection request and restart scanning, so as to find the next device to be configured. This can reduce the case of connection failure due to network fluctuation or the like.
Step S120, the gateway equipment sends first authentication information to the intelligent equipment through the short-range communication connection.
After the gateway device establishes the close-range communication connection with the intelligent device, the gateway device can send first authentication information to the intelligent device for the intelligent device to match the bound user account information for authentication. The first authentication information may include at least one user account information recorded by the gateway device. The first authentication information is used for the intelligent device to match the bound user account information. If the matching is successful, the authentication is passed, and after the authentication is passed, the gateway equipment can continue to execute the network distribution operation on the intelligent equipment.
Specifically, the first authentication information refers to user account information of binding devices when the user purchases the gateway device or the intelligent device. Taking intelligent equipment as an example, a user establishes connection with the intelligent equipment through a mobile terminal, and then can input relevant user account information when registering through modes such as application programs, applets, two-dimension code scanning and the like on the mobile terminal; for example, the user inputs a mobile phone number, a user name, an identification card number, etc. on the application. The manner in which the mobile terminal is connected to the intelligent device may be wired connection, or may be wireless connection such as bluetooth, infrared, NFC, or cellular network, which is not particularly limited in this application.
And the mobile terminal writes the user account information into the intelligent device through the connection established with the intelligent device. The user may then access the smart device based on the user account information. The intelligent device can store the user account information after receiving the user account information so as to be convenient for authentication and other operations in subsequent use.
In some embodiments, in order to ensure the security of the user information and the privacy of the user information, the mobile terminal may further generate a unique identity (Identity document, ID) key according to a certain rule according to the user account information, and write the ID key as a specific user account information into the smart device, so that the smart device may use the ID key to perform authentication when performing authentication operation. Of course, the embodiment of the application can also generate the ID key according to a certain rule, and write the ID key as a special user account information into the gateway device.
The embodiment of the application will be described by taking the user account information as an ID key as an example.
It will be appreciated that to be suitable for home scenarios and multi-service scenarios, the smart device may write user account information for multiple users to support multi-user access.
In one possible implementation manner of the present application, in order to improve the reliability of the method and the security of the information, the data transmission between the gateway device and the intelligent device may be encrypted by using an encryption manner; that is, after the gateway device establishes a connection with the intelligent device, the first authentication information may be encrypted to generate encrypted first authentication information, and then the encrypted first authentication information may be sent to the intelligent device. After receiving the encrypted first authentication information, the intelligent device can decrypt the first authentication information according to a decryption algorithm to obtain the original first authentication information and then match the first authentication information.
It can be understood that the encryption mode refers to a supportable encryption algorithm predefined by the gateway and the intelligent device or known by the gateway device and the intelligent device, and when the intelligent device receives the first authentication information, the encryption mode is matched first, and then decryption is performed.
In some embodiments of the present application, the encryption algorithm may be burned into the gateway device and the intelligent device at the time of production, so that the gateway device and the intelligent device may be directly used, and in other embodiments of the present application, the encryption algorithm may also be written into the intelligent device and the gateway device when the user binds the intelligent device and the gateway device.
The encryption algorithm may be a symmetric encryption algorithm such as an advanced encryption standard (Advanced Encryption Standard, AES), a data encryption standard, a triple data encryption algorithm, or the like; the encryption algorithm can also be an RSA algorithm, an elliptic encryption algorithm, a digital signature algorithm and other asymmetric encryption algorithms; in addition, the encryption algorithm may be a hybrid algorithm formed by combining a symmetric encryption algorithm and an asymmetric encryption algorithm, which is not particularly limited in the embodiment of the present application.
In order to increase the speed of data transmission, the gateway device and the intelligent device may also determine whether encryption is required according to the type of transmission information, and the like. For example, in the process that the gateway device sends the connection request to the intelligent device and the intelligent device feeds back the connection response frame to the gateway device in the above embodiment, since important information such as user account information is not involved, encryption may not be performed.
In one possible implementation manner of the present application, the gateway device may combine the connection request and the sending of the first authentication information, where the connection request carries the first authentication information. After analyzing the connection request, the intelligent device acquires first authentication information and then authenticates according to the authentication information. This may reduce the frequency of data transmissions between the gateway device and the smart device.
Step S130, after receiving the first authentication information sent by the gateway device, the intelligent device matches the bound user account information with the first authentication information.
After receiving the first authentication information, the intelligent device performs matching according to the user account information in the first authentication information and the user account information bound by the intelligent device, and if the matching is successful, the authentication is passed.
As an example, the smart device may match the user ID key in the first authentication information with the ID key bound by the smart device, determine whether the user ID key and the ID key are the same, and if the same ID key exists, the matching is successful, and the authentication passes. As described above, the gateway device may encrypt the first authentication information first, and send the encrypted first authentication information to the intelligent device; correspondingly, after receiving the encrypted first authentication information sent by the gateway device, the intelligent device can decrypt according to a decryption algorithm, then match the first authentication information with the user account information bound by itself, and if the first authentication information is matched with the user account information, the intelligent device can determine that the gateway device passes authentication.
In one possible implementation manner of the method, the gateway device and the intelligent device can bind account information of a plurality of users and a plurality of ID keys corresponding to the account information of the plurality of users, and when the gateway device sends first authentication information to the intelligent device, the gateway device can send the first authentication information corresponding to the account information of each user to the intelligent device in sequence, so that the intelligent device can be matched one by one.
In another possible implementation manner of the present application, in order to reduce the frequency of data transmission, the gateway device may send multiple or all user account information to the smart device at a time, so that the smart device performs matching, thereby determining whether authentication passes.
And step 140, the intelligent device sends an authentication passing message to the gateway device under the condition that the authentication passes.
Specifically, after the first authentication information sent by the gateway device is matched with the user account information recorded by the intelligent device, if the same ID key exists, the authentication is passed, and the intelligent device sends an authentication passing message to the gateway device. If the same ID key does not exist, authentication is not passed.
And step S150, the gateway equipment sends the distribution network information to the intelligent equipment under the condition of receiving the authentication passing message.
After receiving the authentication passing message sent by the intelligent device, the gateway device can send network allocation information to the intelligent device, wherein the network allocation information can contain service set identification and password information so that the intelligent device can access the local area network established by the gateway device according to the network allocation information.
Step S160, the intelligent equipment accesses the local area network established by the gateway equipment according to the distribution network information after receiving the distribution network information sent by the gateway equipment.
After receiving the network allocation information, the intelligent device can be configured according to the service set identification and the password information so as to access the local area network established by the gateway device.
In some embodiments, in the event of authentication failure, the smart device may send an authentication failure message to the gateway device. The authentication failure message may include a reason of failure, identification information of the intelligent device, and the like.
In some embodiments, the intelligent device may also not send an authentication failure message to the gateway device in case of authentication failure; the gateway device may consider authentication to fail if no message fed back by the intelligent device is received within the target duration.
The gateway device may also disconnect the short-range communication connection with the smart device in case of authentication failure.
In some embodiments of the present application, after determining that the authentication fails, the gateway device may attempt to resend the first authentication information to the intelligent device, so as to reduce occurrence of authentication failure caused by factors such as network fluctuation, device error, and the like. If the authentication still fails, the gateway equipment breaks the short-range communication connection with the intelligent equipment and resumes scanning.
Because the intelligent device can still broadcast the identification information after the authentication fails, in order to save communication resources, the gateway device can mark the device with the authentication failure according to the identification information of the intelligent device, for example, add a blacklist. So that the gateway device can ignore the intelligent device and continue scanning when it scans the intelligent device. Therefore, the intelligent equipment can be prevented from being frequently authenticated, and network resource waste is caused.
In some embodiments of the present application, after the password information of the local area network is changed, the gateway device may reestablish a close-range communication connection with the intelligent device that has been configured with the network, so that after authentication is passed, the password information is synchronized with the intelligent device, so that the intelligent device is re-connected to the local area network. In other embodiments of the present application, the smart device may actively send a request message for synchronizing the password to the gateway device through the close-range communication connection after the password error occurs, so as to trigger the gateway device to reconfigure the network for the smart device.
In the foregoing embodiment, taking the gateway device scanning the intelligent device and establishing the short-range communication connection as an example, in a possible implementation manner of the present application, the gateway device may also broadcast its own identification information outwards. After the intelligent device scans the gateway device, the intelligent device establishes a close range communication connection with the gateway device, and sends first authentication information to the gateway device to instruct the gateway device to authenticate the authentication information; or triggering the gateway device to send authentication information to the intelligent device to instruct the intelligent device to authenticate the authentication information. After passing the authentication, the gateway device sends the distribution network information to the intelligent device.
In another possible implementation manner of the present application, it may also be that a close-range communication connection is established between the intelligent devices, and authentication information is sent, so as to implement a distribution network between the intelligent devices. For example, the intelligent device a with the network is in close-range communication connection with the intelligent device B without the network, and the intelligent device B may send authentication information to the intelligent device a. After passing the authentication, the intelligent device A sends the distribution network information to the intelligent device B, so that the intelligent device B can access the local area network established by the gateway device according to the distribution network information.
According to the technical scheme provided by the embodiment, after the gateway equipment scans the intelligent equipment, the gateway equipment automatically establishes close-range communication connection with the intelligent equipment, and sends first authentication information to the intelligent equipment through the close-range communication connection. The intelligent device can match the bound user account information with the first authentication information, after the matching is successful, the authentication passing message is fed back to the gateway device, and then the network configuration information sent by the gateway device is accessed to the local area network established by the gateway device. In the scheme, the user only needs to bind the user account information to the intelligent equipment in advance, and does not need to execute other network distribution operations such as password input and the like, so that the network distribution operation can be effectively reduced, and the network distribution efficiency and the network distribution success rate are improved.
In some embodiments of the present application, the network device may provide access rights, and the intelligent device may obtain the access rights through an authentication manner after accessing to a local area network provided by the network device. This process is described in detail below.
Fig. 3 is a flow chart of another method for device communication according to an embodiment of the present application, as shown in fig. 3, the method may include the following steps:
step S210, the gateway device broadcasts the identification information of the gateway device.
The gateway device may broadcast the identification information of the gateway device in the lan through a specific port continuously or intermittently, and the identification information may include device information of the gateway device and address information of a lan server of the gateway device, such as an IP address and a port. The gateway device may broadcast over UDP (User Datagram Protocol ) or over TCP (Transmission Control Protocol, transmission control protocol), which is not limited in this application. In some embodiments, the identification information of the gateway device may also be sent by multicast or unicast.
Step S220, the intelligent device sends second authentication information to the gateway device after receiving the identification information of the gateway device.
The intelligent device may monitor a specific port of the gateway device and, upon receiving the identification information of the gateway device, establish a communication connection, e.g., a TCP connection, with the gateway device. The intelligent device may send second authentication information to the gateway device according to the identification information, where the second authentication information may be user account information recorded by the intelligent device, and is used for the gateway device to match the recorded user account information to perform authentication.
It is understood that other mainstream protocols, custom protocol data unit formats, etc. may be employed in addition to the TCP or UDP protocols.
Step S230, the gateway equipment matches the bound user account information with the second authentication information after receiving the second authentication information sent by the intelligent equipment.
And the gateway equipment can match the second authentication information with the user account information bound by the gateway equipment under the condition that the second authentication information sent by the intelligent equipment is received. If the gateway equipment is matched with the same user account information, the authentication is passed.
Step S240, the gateway device opens the access right of the intelligent device to the gateway device under the condition that the authentication is passed.
Under the condition that the matching is successful, the gateway equipment can allow the intelligent equipment to have the authority to access the gateway equipment; in case of a failure of the match, the gateway device may disconnect the communication connection with the smart device after returning an authentication failure message to the smart device. The gateway device may also directly disconnect the communication connection with the intelligent device after the authentication fails, which is not particularly limited in the present application.
In some embodiments, the access rights may include query rights to query the status of the gateway device and the accessed smart device, etc.; in some embodiments, the access rights may also include control rights such as smart devices that control access to the gateway device.
It should be noted that, the foregoing is an exemplary description taking the intelligent terminal to obtain the access right as an example, in some scenarios, the mobile terminal may also be used to obtain the access right, and a specific implementation principle may refer to the foregoing embodiment, which is not described herein again.
The intelligent device may send the first authentication information to the gateway device through the identification information broadcasted by the gateway device. The gateway equipment can match the bound user account information with the second authentication information, and after the matching is successful, the access right of the intelligent equipment to the gateway equipment is opened. Therefore, the condition that the unfamiliar intelligent equipment accesses the gateway equipment can be effectively reduced, and the safety and reliability of communication are improved.
Those skilled in the art will appreciate that the above embodiments are exemplary and not intended to limit the present application. The order of execution of one or more of the above steps may be modified, if possible, or may be combined selectively to yield one or more other embodiments. Those skilled in the art can select any combination from the above steps according to the need, and all the steps do not depart from the spirit of the scheme of the present application.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device, and fig. 4 is a schematic structural diagram of an electronic device provided in the embodiment of the present application, where the device may include a memory 210 and a processor 220, where the memory 210 is used to store a computer program, and the processor 220 is used to execute the method described in the foregoing method embodiment when the computer program is called.
The electronic device may be the gateway device or the intelligent device.
The electronic device provided in this embodiment may execute the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method described in the above method embodiment.
Embodiments of the present application also provide a computer program product which, when run on an electronic device, causes the electronic device to execute the method described in the above method embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, hard Disk, or magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), or the like.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium may include: ROM or random access memory RAM, magnetic or optical disk, etc.
The naming or numbering of the steps in the present application does not mean that the steps in the method flow must be executed according to the time/logic sequence indicated by the naming or numbering, and the execution sequence of the steps in the flow that are named or numbered may be changed according to the technical purpose to be achieved, so long as the same or similar technical effects can be achieved.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
In the description of the present application, unless otherwise indicated, "/" means that the associated object is an "or" relationship, e.g., a/B may represent a or B; the term "and/or" in this application is merely an association relation describing an association object, and means that three kinds of relations may exist, for example, a and/or B may mean: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural.
Also, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of the following" or similar expressions thereof, means any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A device communication method applied to a gateway device, the method comprising:
after the intelligent equipment is scanned, establishing short-distance communication connection with the intelligent equipment;
sending first authentication information to the intelligent equipment through the short-range communication connection, wherein the first authentication information is used for the intelligent equipment to match the bound user account information so as to authenticate;
and after receiving the authentication passing message sent by the intelligent equipment, sending distribution network information to the intelligent equipment, wherein the distribution network information comprises a service set identifier and password information sent by the gateway equipment, so that the intelligent equipment can access a local area network established by the gateway equipment according to the distribution network information.
2. The method of claim 1, wherein the first authentication information comprises at least one user account information recorded by the gateway device.
3. The method according to claim 1, wherein the method further comprises: and after receiving the authentication failure message sent by the intelligent equipment, disconnecting the short-distance communication connection with the intelligent equipment.
4. The method according to claim 1, wherein the method further comprises:
after receiving second authentication information sent by the intelligent equipment, matching the recorded user account information with the second authentication information;
and under the condition that the matching is successful, opening the access right of the intelligent equipment.
5. The method according to any of claims 1-4, wherein data transmission between the gateway device and the smart device is performed using symmetric encrypted communication, and wherein the encryption algorithm used for the symmetric encrypted communication is AES encryption algorithm.
6. A device communication method applied to an intelligent device, the method comprising:
receiving a close-range communication connection request of gateway equipment, and establishing close-range communication connection with the gateway equipment;
after receiving first authentication information sent by the gateway equipment, matching the bound user account information with the first authentication information;
under the condition of successful matching, sending an authentication passing message to the gateway equipment;
and after receiving the distribution network information sent by the gateway equipment, accessing a local area network established by the gateway equipment according to the distribution network information.
7. The method of claim 6, wherein the method further comprises:
and sending an authentication failure message to the gateway equipment under the condition of failure of matching.
8. The method of claim 6, wherein the method further comprises:
after receiving the identification information of the gateway equipment, sending second authentication information to the gateway equipment, wherein the second authentication information is used for the gateway equipment to match recorded user account information so as to authenticate;
and under the condition that the matching is successful, the intelligent equipment has the access right of the gateway equipment.
9. The method of claim 8, wherein the identification information comprises: the equipment information of the gateway equipment and the address information of the local area network server corresponding to the gateway equipment.
10. An electronic device, comprising: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of any of claims 1-9 when the computer program is invoked.
CN202310328009.4A 2023-03-24 2023-03-24 Equipment communication method and electronic equipment Pending CN116437328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310328009.4A CN116437328A (en) 2023-03-24 2023-03-24 Equipment communication method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310328009.4A CN116437328A (en) 2023-03-24 2023-03-24 Equipment communication method and electronic equipment

Publications (1)

Publication Number Publication Date
CN116437328A true CN116437328A (en) 2023-07-14

Family

ID=87084793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310328009.4A Pending CN116437328A (en) 2023-03-24 2023-03-24 Equipment communication method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116437328A (en)

Similar Documents

Publication Publication Date Title
EP3595247B1 (en) Identity authentication method and system
CN117544931A (en) Information sharing method, terminal device, storage medium, and computer program product
US20190268764A1 (en) Data transmission method, apparatus, and system
WO2023280194A1 (en) Network connection management method and apparatus, readable medium, program product, and electronic device
EP4007374A1 (en) Information processing method and apparatus, communication device and storage medium
CN105682093A (en) Wireless network access method and access device, and client
CN110933484A (en) Management method and device of wireless screen projection equipment
EP4099733A1 (en) Security authentication method and apparatus, and electronic device
CN113271579A (en) Bluetooth device control method, client, computer device and readable storage medium
CN114697879B (en) Bluetooth pairing method, electronic device, chip and storage medium
US20180095500A1 (en) Tap-to-dock
CN111865731A (en) Intelligent equipment adding method and device, intelligent household control panel and storage medium
CN112566119A (en) Terminal authentication method and device, computer equipment and storage medium
CN112769868A (en) Communication method, communication device, electronic device and storage medium
CN114390488A (en) Method and system for realizing rapid interconnection of equipment
CN116325664A (en) Method and device for intelligent equipment network distribution
CN106537962B (en) Wireless network configuration, access and access method, device and equipment
US20210067961A1 (en) Secure simultaneous authentication of equals anti-clogging mechanism
CN116437328A (en) Equipment communication method and electronic equipment
CN114417309A (en) Bidirectional identity authentication method, device, equipment and storage medium
US11178145B2 (en) Network apparatus and control method thereof
CN113285994A (en) Message sending method, device, server and storage medium
Srinivasan et al. XTRA—eXtended bit-Torrent pRotocol for Authenticated covert peer communication: Authenticated covert P2P communication
CN110392076B (en) Method, device and storage medium for vehicle-to-any V2X communication
CN112398718A (en) Network transmission method and device, electronic equipment and storage medium

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