CN110602804A - Data exchange method, device and storage medium based on AP direct connection - Google Patents

Data exchange method, device and storage medium based on AP direct connection Download PDF

Info

Publication number
CN110602804A
CN110602804A CN201810608666.3A CN201810608666A CN110602804A CN 110602804 A CN110602804 A CN 110602804A CN 201810608666 A CN201810608666 A CN 201810608666A CN 110602804 A CN110602804 A CN 110602804A
Authority
CN
China
Prior art keywords
request information
user terminal
path
household appliance
key
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.)
Granted
Application number
CN201810608666.3A
Other languages
Chinese (zh)
Other versions
CN110602804B (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.)
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Foshan Shunde Midea Electrical Heating Appliances Manufacturing 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 Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority to CN201810608666.3A priority Critical patent/CN110602804B/en
Publication of CN110602804A publication Critical patent/CN110602804A/en
Application granted granted Critical
Publication of CN110602804B publication Critical patent/CN110602804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/085Secret sharing or secret splitting, e.g. threshold schemes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The embodiment of the invention discloses a data exchange method, equipment and a storage medium based on AP direct connection, wherein the method comprises the following steps: the household appliance equipment acquires upload request information sent by a first user terminal through a first path and stores the upload request information; wherein the upload request information at least includes: sharing data and a first key; the household appliance equipment acquires acquisition request information sent by the second user terminal through a second path; the obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; and if the first secret key is matched with the second secret key, the household appliance equipment sends the shared data to the second user terminal through the second path.

Description

Data exchange method, device and storage medium based on AP direct connection
Technical Field
The present invention relates to data exchange technologies in wireless communications, and in particular, to a data exchange method, device, and storage medium based on AP direct connection.
Background
The existing internet of things based on Wireless local area network (WiFi) is applied to the field of intelligent household appliances, and under the condition that a WiFi router is not provided, a WiFi module in the intelligent household appliance can start a Wireless Access Point (AP) mode; the user control terminal with the WiFi function can be connected to the AP of the intelligent household appliance and can perform point-to-point control on the intelligent household appliance in a direct connection mode. However, without the WiFi router, the user control terminal would not be able to connect to the internet. Therefore, in this situation, the data of the user control terminal (such as the menu instruction of the intelligent electric rice cooker customized by the user) cannot be exchanged with the data of other user control terminals.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data exchange method, device and storage medium based on AP direct connection, where two user terminals that are not connected to the internet are connected point-to-point through an AP of a home appliance to form an AP direct connection path, so that the two user terminals upload and acquire data through the AP direct connection path, and thus complete data exchange between the two user terminals without the need of the internet.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a data exchange method based on AP direct connection, which comprises the following steps:
the household appliance equipment acquires upload request information sent by a first user terminal through a first path and stores the upload request information; wherein the upload request information at least includes: sharing data and a first key; the first path is a path for point-to-point connection between the household appliance and the first user terminal through a wireless Access Point (AP) of the household appliance;
the household appliance equipment acquires acquisition request information sent by the second user terminal through a second path; the obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; the second path is a path for point-to-point connection between the household appliance and the second user terminal through the AP of the household appliance;
and if the first secret key is matched with the second secret key, the household appliance equipment sends the shared data to the second user terminal through the second path.
The embodiment of the invention provides a household electrical appliance, which at least comprises: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions configured to perform the steps of:
acquiring uploading request information sent by a first user terminal through a first path, and storing the uploading request information; wherein the upload request information at least includes: sharing data and a first key; the first path is a path for point-to-point connection between the household appliance and the first user terminal through a wireless Access Point (AP) of the household appliance;
acquiring acquisition request information sent by the second user terminal through a second path; the obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; the second path is a path for point-to-point connection between the household appliance and the second user terminal through the AP of the household appliance;
and if the first key is matched with the second key, sending the shared data to the second user terminal through the second path.
Correspondingly, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are configured to execute the above-mentioned AP direct connection-based data exchange method.
The embodiment of the invention provides a data exchange method, equipment and a storage medium based on AP direct connection, wherein two user terminals which are not connected with the Internet are connected point to point through the AP of household appliances to form an AP direct connection path, so that the two user terminals upload and acquire data through the AP direct connection path, and the two user terminals complete data exchange without the Internet.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having different letter suffixes may represent different examples of similar components. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed herein.
Fig. 1 is a schematic flow chart illustrating an implementation process of data exchange based on AP direct connection according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating another implementation flow of data exchange based on AP direct connection according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a system configuration according to an embodiment of the present invention;
fig. 4A is a diagram of a scenario application of data exchange based on AP direct connection according to an embodiment of the present invention;
fig. 4B is a schematic flow chart illustrating another implementation of data exchange based on AP direct connection according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an AP direct connection-based data exchange device according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
An embodiment of the present invention provides a data exchange method based on AP direct connection, and fig. 1 is a schematic diagram illustrating an implementation flow of data exchange based on AP direct connection in an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S101, the household appliance obtains uploading request information sent by a first user terminal through a first path, and stores the uploading request information.
Here, the WiFI module of the WiFI module in the home appliance device obtains the upload request information sent by the first user terminal through the first path, and stores the upload request information in the storage module of the WiFI module in the home appliance device.
The household appliances can be an intelligent electric cooker, an intelligent refrigerator, an intelligent pressure cooker and the like; the first user terminal is used for controlling the household appliance, and the first user terminal can be a mobile phone, a computer, a tablet computer and the like of a user. The upload request information at least includes: sharing data and a first key; the first path is a path through which the household appliance is connected with the first user terminal point to point through a wireless Access Point (AP) of the household appliance. The shared data is the equipment which is uploaded to the household electrical appliance equipment by the first user terminal through a first path and is used for sharing or exchanging with other user terminals; for example, the household appliance is an intelligent electric rice cooker, the first user terminal is a mobile phone, and the uploading request information sent by the first user terminal may be understood as that the mobile phone sends a user-defined menu or the like (shared data) to the intelligent electric rice cooker through the first route for sharing with other mobile phones.
And step S102, the household appliance acquires the acquisition request information sent by the second user terminal through a second path.
Here, the WiFI module of the WiFI module in the home appliance device acquires the acquisition request information sent by the second user terminal through the second path. The second user terminal may be a user's cell phone, computer, tablet computer, etc. The obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; the second path is a path through which the home appliance is connected with the second user terminal point to point through its own AP. For example, the second mobile phone (the second user terminal) sends the acquisition request information for acquiring the shared menu uploaded by the first mobile phone to the smart electric cooker (the household appliance).
Step S103, if the first key matches the second key, the home appliance device sends the shared data to the second user terminal through the second path.
Here, whether the first key matches the second key is determined by a controller of the WiFi module in the home appliance. And the controller of the WiFi module in the household appliance equipment controls the WiFi module to send the shared data to the second user terminal through the second path. For example, the shared data is a user-defined menu uploaded by the first user terminal, and when the first key is matched with the second key, the home appliance device sends the user-defined menu to the second user terminal.
In the embodiment of the invention, firstly, the household appliance equipment acquires the uploading request information sent by a first user terminal through a first path and stores the uploading request information; wherein the upload request information at least includes: sharing data and a first key; the first path is a path for point-to-point connection between the household appliance and the first user terminal through a wireless Access Point (AP) of the household appliance; then, the household appliance equipment acquires acquisition request information sent by the second user terminal through a second path; the obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; the second path is a path for point-to-point connection between the household appliance and the second user terminal through the AP of the household appliance; finally, if the first secret key is matched with the second secret key, the household appliance equipment sends the shared data to the second user terminal through the second path; so, two user terminals that do not all connect the internet carry out point-to-point connection through the AP of tame electric installation, form AP and directly link the route, and then two user terminals directly link the route through this AP and upload and acquire data, and then make two user terminals, under the condition that does not need the internet, accomplish data exchange.
In another embodiment, before step S101, that is, "the home appliance device obtains the upload request information sent by the first user terminal through the first path, and stores the upload request information", the method further includes:
and step S11, the household appliance receives first AP direct connection request information sent by a first user terminal.
Here, the first AP direct connection request information at least includes: first identification information and a third key; the first identification information may be information that can uniquely identify the home appliance, such as a physical address and a serial number of the home appliance.
Step S12, if the first identification information and the third key satisfy a first preset condition, the home appliance device connects with the first user terminal point-to-point through its own wireless access point AP to obtain a first path.
Step S13, the home appliance receives second AP direct connection request information sent by the second user terminal; wherein the second AP direct connection request information at least includes: second identification information and a fourth key.
Step S14, if the second identification information and the fourth key satisfy a second preset condition, the home appliance device connects with the second user terminal point-to-point through its own AP to obtain a second path.
An embodiment of the present invention provides a data exchange method based on AP direct connection, and fig. 2 is a schematic diagram of an implementation flow of data exchange based on AP direct connection according to another embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S201, the first user terminal sends a first AP direct connection request message to the home appliance device.
Here, the first user terminal sends first AP direct connection request information to the home appliance device without networking; the first user terminal sends first AP direct connection request information to a WiFi module in the household appliance device through a channel (such as an STA channel) except the AP channel. The first AP direct connection request information at least includes: first identification information and a third key.
Step S202, if the first identification information and the third secret key meet a first preset condition, the household appliance is connected with the first user terminal in a point-to-point mode through the AP of the household appliance, and a first path is obtained.
Step S203, the second user terminal sends second AP direct connection request information to the home appliance device.
Here, the second user terminal sends second AP direct connection request information to the home appliance device without networking; the second AP direct connection request information at least includes: second identification information and a fourth key.
Step S204, if the second identification information and the fourth secret key meet a second preset condition, the household appliance is connected with the second user terminal in a point-to-point mode through the AP of the household appliance, and a second path is obtained. The third identification information is the same as or different from the second identification information; the third identification information and the second identification information include at least one of: the physical address of the home appliance, the serial number of the home appliance, and the like.
In step S205, the first user terminal sends the upload request information to the home appliance device through the first path.
Here, the upload request information includes at least: the shared data and the first key.
In step S206, the home appliance receives the upload request information, and calculates the number of bytes of the upload request information.
Here, the calculating the number of bytes of the upload request information may be understood as: and the household appliance calculates the byte number of the shared data contained in the uploading request information.
Step S207, if the number of bytes that can be stored in the current storage space of the home appliance is greater than or equal to the number of bytes of the upload request information, storing the upload request information in the storage space.
Here, the current self storage space is a storage space of a storage module of the WiFi module of the home appliance.
And step S208, the second user terminal sends the acquisition request information to the household appliance equipment through the second path.
Here, the acquisition request information includes at least: a second key.
Step S209, if the first key matches the second key, the home appliance device sends the shared data to the second user terminal through the second path.
In this embodiment, through the AP direct-connected connection of household electrical appliances and user terminal to make household electrical appliances and user terminal upload and acquire data at AP direct-connected connection, and then realized on AP direct-connected's route, two user terminals that do not connect with the internet accomplish data exchange, satisfied user terminal under the condition that does not have the router, need data exchange's demand, promoted user experience and felt.
In other embodiments, after step S206, that is, "the home appliance receives the upload request information and calculates the number of bytes of the upload request information", the method further includes:
if the number of bytes which can be stored in the current self storage space is smaller than the number of bytes of the uploading request information, the household appliance equipment sends rejection information to the first user terminal; the rejection information is used for indicating that the household appliance refuses to receive the uploading request information sent by the first user terminal through the first path.
In other embodiments, in step S208, after the second user terminal sends the obtaining request information to the home appliance device through the second path, the method further includes:
and if the first secret key is not matched with the second secret key, the household appliance continuously stores the shared data in the storage space.
An embodiment of the present invention provides a data exchange method based on AP direct connection, and fig. 3 is a schematic diagram of a system structure according to an embodiment of the present invention, and as shown in fig. 3, the system 300 includes three parts: thing networking household electrical appliances 301, WiFI module 302 and user control terminal 303, wherein:
the internet of things household appliance 301 is used for communicating with the user control terminal 303 through the WiFI module 302; the household appliances of the Internet of things can be an intelligent electric cooker, an intelligent refrigerator, an intelligent microwave oven and the like.
The WiFI module 302 includes: controller 321, WiFI module 322, and storage module 323, wherein:
the controller 321 is configured to embed an AP software control module, and after the AP software control module is started, the WiFi module 322 will establish an AP channel. The WiFI module 302 is one module in the internet of things appliance 301.
The controller 321 is further configured to verify the validity of the identity of the user control terminal 303, and if the identity of the user control terminal is legal, control the WiFi module 322 to establish a direct connection with the user control terminal through an AP channel.
Here, the verifying the validity of the identity of the user control terminal 303 is to determine whether AP direct connection request information (including the first AP direct connection request information and the second AP direct connection request information) sent by the user control terminal 303 meets a first preset condition (or a second preset condition). Correspondingly, if the AP direct connection request information (first AP direct connection request information) sent by the user control terminal 303 meets a first preset condition (or second AP direct connection request information sent by other user control terminals meets a second preset condition), it is determined that the identity of the user control terminal 303 has validity.
The controller 321 is further configured to verify whether the ue has the validity of acquiring data for exchange sent by other ues.
Here, the validity of the data for exchange is verified, that is, whether the fourth key in the acquisition request information sent by the user control terminal for acquiring the data for exchange sent by the other user control terminal matches the third key in the upload request information is determined. Correspondingly, if the fourth key in the acquisition request information is matched with the third key in the uploading request information, the user control terminal is determined to have the legality of acquiring the data which are sent by other user control terminals and used for exchanging.
The controller 321 is further configured to temporarily store data for exchange, which is received by the WiFi module 322 and sent by the user control terminal, in a storage space of the WiFi module 322, and if the fourth key in the acquisition request information matches the third key in the upload request information, load the data for exchange, which is temporarily stored in the storage space of the WiFi module 322.
Here, the loading of the data for exchange to the WiFi module 322 is to send the data for exchange uploaded by the user control terminal to another user control terminal, so as to implement data exchange between different user control terminals in an AP direct connection manner. The data for exchange (i.e., shared data) may be contents of a custom menu homemade by a user for an intelligent home appliance (e.g., an intelligent rice cooker).
The WiFi module 322 is configured to perform wireless direct connection bidirectional communication with the user control terminal that has established direct connection through an AP channel, to obtain a path, that is, a first path, directly connected to an AP of the user control terminal (that is, a first user terminal or a second user terminal).
The storage module 323 is configured to temporarily store data sent by the ue to the WiFi module 322 via the first path, where the data is ready to be exchanged with another ue (e.g., a second ue).
The user control terminal 303 is configured to send an AP direct connection request, that is, first AP direct connection request information or second AP direct connection request information, to the WiFi module 322 through another channel (for example, an STA channel); the user control terminal 303 may be an electronic device such as a smart phone, a computer, or a tablet computer with a WiFi function. The user control terminal 303 may be one or more user control terminals, and as shown in fig. 3, the user control terminal 303 may include a user control terminal 1, a user control terminal 2, and a user control terminal 3.
The user control terminal 303, further configured to send data for exchange (i.e., shared data) to the WiFi module 322 through the first path; or, for obtaining the data for exchange from the WiFi module 322 through the second path.
Generally, when two user terminals controlling the household electrical appliance are not connected to the internet, data exchange between the two terminals cannot be realized through the network, but in the embodiment of the present invention, the two user terminals are directly connected to the AP of the household electrical appliance, and data exchange can be completed through the AP direct connection path, as shown in fig. 4A, both the mobile phone 42 and the mobile phone 43 are used for controlling the electric rice cooker 41, and both the mobile phone 42 and the mobile phone 43 are in a state of not being connected to the internet. Under the condition that the mobile phone 42 and the mobile phone 43 are not connected with the internet, the data exchange can be completed through the following steps:
in the first step, the mobile phone 42 (first user terminal) and the mobile phone 43 (second user terminal) respectively send the first AP direct connection request message and the second AP direct connection request message to the electric cooker 41 (home appliance).
In the second step, the electric cooker 41 determines whether the first AP direct connection request information and the second AP direct connection request information satisfy a preset condition. If the first AP direct connection request message and the second AP direct connection request message both satisfy the preset condition, the electric cooker 41 and the mobile phone 42 and the mobile phone 43 establish AP direct connection with the electric cooker through the AP of the electric cooker 41, and obtain a first path and a second path, respectively.
And thirdly, the mobile phone 42 sends the request information to the electric rice cooker 41 through the first path, and the request information is used for uploading the request information which is shared by other mobile phones and contains the user-defined menu (as displayed in an area 44, the user-defined menu comprises fried green vegetables, steamed eggs and the like).
And fourthly, if the byte number of the storage space of the electric cooker is more than or equal to the byte number of the uploaded request information, the electric cooker 41 stores the self-set menu uploaded by the mobile phone 42 in the electric cooker 41.
Fifthly, if the user of the mobile phone 43 wishes to obtain the menu information uploaded by the mobile phone 42, the mobile phone 43 sends an obtaining request message to the electric rice cooker 41 through the second path.
Sixthly, the electric rice cooker 41 judges whether the first key in the uploading request information sent by the mobile phone 42 is matched with the second key in the acquisition request sent by the mobile phone 43, if the first key is matched with the second key, the electric rice cooker 41 sends the self-defined menu uploaded by the mobile phone 42 to the mobile phone 43, and therefore data exchange can be completed even if the mobile phone 42 and the mobile phone 43 are not networked.
Fig. 4B is a schematic diagram of a flow of implementing data exchange based on AP direct connection according to an embodiment of the present invention, and as shown in fig. 4B, the method includes the following steps:
in step S401, the user powers on the home appliance.
Here, the internet of things household appliance is connected with the WiFi module, and the internet of things household appliance is powered on, namely, the WiFi module supplies power.
Step S402, the controller of the WiFi module in the household appliance loads the AP software control module to enable the WiFi module to load the AP channel.
In step S403, the first user control terminal sends the first AP direct connection request information to the WiFi module in the home appliance device through a channel (e.g., an STA channel) other than the AP channel.
Here, the first user terminal sends the first AP direct connection request information to the WiFi module in the home appliance device through a channel (e.g., an STA channel) other than the AP channel without connecting to the internet. As shown in fig. 4A, when both the mobile phone 42 and the mobile phone 43 are unable to connect to the internet, the mobile phone 42 and the mobile phone 43 respectively request the first AP direct connection request information and the second AP direct connection request information from the electric cooker 41.
The first user control terminal (i.e., the first user terminal) may be an electronic device such as a smartphone, a computer, or a tablet computer with a WiFi function; the first AP direct connection request at least comprises: identification information (i.e. first identification information) and a third key of the home device; the identification information may be any information capable of uniquely identifying the home appliance, such as a physical address, a serial number, and the like of the home appliance.
And S404, the household appliance judges whether the AP direct connection request information meets a preset condition or not.
Here, if the AP direct connection request information satisfies a preset condition, the method proceeds to step S405; if the AP direct connection request information does not satisfy the preset condition, step S441 is performed, that is, the household appliance controls the WiFi module to not establish a direct connection with the first user control terminal. The preset condition can be any information capable of uniquely identifying the WiFi module and a preset decryption algorithm. And when the identification information of the household appliance in the first AP direct connection request is the same as the set identification information of the household appliance and the third secret key is matched with a preset decryption algorithm, determining that the first AP direct connection request meets a preset condition. As shown in fig. 4A, the electric cooker 41 determines whether the first AP direct connection request information and the second AP direct connection request information satisfy the preset condition.
Step S405, the household appliance control WiFi module establishes direct connection with the first user control terminal through the AP channel to obtain a first path.
Here, the first path may be understood as a direct connection path established between the mobile phone 42 and the electric cooker 41 in fig. 4A.
Step S406, the first user control terminal sends the upload request information to the household electrical appliance through the first path.
Here, the first user control terminal sends upload request information to a WiFi module of the household appliance through the first path; as shown in fig. 4A, the mobile phone 42 transmits to the electric cooker 41 upload request information including a user-customized menu for sharing with other mobile phones.
Here, the upload request information includes at least: the shared data and the first key. The upload request information may be data uploaded by the first user control terminal (e.g., a mobile phone of a user) for sharing with other user control terminals, such as a customized menu of the smart rice cooker.
Step S407, the home appliance determines whether the size of the current storage space of the home appliance can store the shared data.
Here, if the current own storage space can store the shared data, the step S408 is entered; if the current own storage space cannot store the shared data, the process proceeds to step S409.
Step S408, the controller of the home appliance temporarily stores the shared data in the current storage space of the home appliance.
Here, the sharing data is temporarily stored in the current storage space, and it can be understood that, in fig. 4A, the electric cooker 41 stores the self-defined menu uploaded by the mobile phone 42 in the electric cooker 41.
Step S409, the WiFi module of the household appliance sends rejection information to the first user control terminal.
Here, the rejection information is used to indicate that the WiFi module rejects to receive the upload request information sent by the first user control terminal through the first path.
And step S410, the second user control terminal sends the acquisition request information to the WiFi module of the household appliance through the second path.
Here, in step S410, before the second user control terminal sends the acquisition request information to the WiFi module through the second path, the controller controls the WiFi module to establish a direct connection with the second user control terminal through the AP channel, so as to obtain the second path. As shown in fig. 4A, the second path is a path established by the direct AP connection between the rice cooker 41 and the mobile phone 43.
The obtaining request information at least comprises: a second key. For example, the obtaining request information may be a user-defined menu sent by the second user control terminal (i.e. an electronic device such as a mobile phone) for obtaining the intelligent electric cooker uploaded by the first user control terminal.
In step S411, the controller of the WiFi module in the home appliance determines whether the first key is matched with the second key.
Here, if the first key matches the second key, step S412 is entered; if the first key does not match the second key, the process proceeds to step S413. As shown in fig. 4A, the electric cooker 41 determines whether the first key in the upload request message sent by the mobile phone 42 matches the second key in the acquisition request sent by the mobile phone 43, and if the first key matches the second key, the electric cooker 41 sends the custom menu uploaded by the mobile phone 42 to the mobile phone 43.
Step S412, the home appliance loads the shared data temporarily stored in the current storage space of the home appliance to the WiFi module, and sends the shared data to the second user control terminal through the WiFi module.
In step S413, the home device still stores the shared data in its current storage space.
Here, the saving the shared data in the current own storage space is: storing the shared data in a storage module in a WiFi module of the household appliance; and after the second user control terminal receives the shared data uploaded by the first user control terminal, the data exchange between the first user control terminal and the second user control terminal based on the AP direct connection is realized.
Fig. 5 is a schematic structural diagram of a home appliance device based on AP-direct connection data exchange according to an embodiment of the present invention, and as shown in fig. 5, the home appliance device 500 at least includes: a processor 501 and a storage medium 502 configured to store executable instructions, wherein:
the processor 501 is configured to execute stored executable instructions for implementing the following steps:
the household appliance equipment acquires upload request information sent by a first user terminal through a first path and stores the upload request information; wherein the upload request information at least includes: sharing data and a first key; the first path is a path for point-to-point connection between the household appliance and the first user terminal through a wireless Access Point (AP) of the household appliance;
the household appliance equipment acquires acquisition request information sent by the second user terminal through a second path; the obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; the second path is a path for point-to-point connection between the household appliance and the second user terminal through the AP of the household appliance;
and if the first secret key is matched with the second secret key, the household appliance equipment sends the shared data to the second user terminal through the second path.
It should be noted that the above description of the server and terminal embodiments is similar to the description of the method embodiments, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the embodiments of the server and the terminal of the present invention, reference is made to the description of the embodiments of the method of the present invention for understanding.
It should be noted that, in the embodiment of the present invention, if the above-mentioned AP direct connection-based data exchange method is implemented in the form of a software functional module, and is sold or used as an independent product, the method may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computing device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present invention provides a computer storage medium, where a computer-executable instruction is stored in the computer storage medium, and the computer-executable instruction is configured to execute the AP direct connection-based data exchange method or the AP direct connection-based data exchange method on the device side provided in the other embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data exchange method based on AP direct connection is characterized in that the method comprises the following steps:
the household appliance equipment acquires upload request information sent by a first user terminal through a first path and stores the upload request information; wherein the upload request information at least includes: sharing data and a first key; the first path is a path for point-to-point connection between the household appliance and the first user terminal through a wireless Access Point (AP) of the household appliance;
the household appliance equipment acquires acquisition request information sent by the second user terminal through a second path; the obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; the second path is a path for point-to-point connection between the household appliance and the second user terminal through the AP of the household appliance;
and if the first secret key is matched with the second secret key, the household appliance equipment sends the shared data to the second user terminal through the second path.
2. The method as claimed in claim 1, wherein before the home appliance device obtains the upload request information sent by the first user terminal through the first path and stores the upload request information, the method further comprises:
the household appliance equipment receives first AP direct connection request information sent by a first user terminal; wherein the first AP direct connection request information at least includes: first identification information and a third key;
if the first identification information and the third secret key meet a first preset condition, the household appliance is in point-to-point connection with the first user terminal through a wireless Access Point (AP) of the household appliance to obtain a first path;
the household appliance equipment receives second AP direct connection request information sent by the second user terminal; wherein the second AP direct connection request information at least includes: second identification information and a fourth key;
and if the second identification information and the fourth secret key meet a second preset condition, the household appliance is in point-to-point connection with the second user terminal through the AP of the household appliance, and a second path is obtained.
3. The method as claimed in claim 2, wherein the third identification information is the same as or different from the second identification information;
the third identification information and the second identification information include at least one of: the physical address of the household appliance and the serial number of the household appliance.
4. The method as claimed in claim 1, wherein the step of the home appliance device obtaining the upload request information sent by the first user terminal through the first path and storing the upload request information comprises:
the household appliance equipment acquires upload request information sent by the first user terminal through a first path and calculates the byte number of the upload request information;
and if the number of bytes which can be stored in the current storage space of the household appliance is more than or equal to the number of bytes of the uploading request information, storing the uploading request information in the storage space.
5. The method as recited in claim 4, wherein said method further comprises:
if the number of bytes which can be stored in the current self storage space is smaller than the number of bytes of the uploading request information, the household appliance equipment sends rejection information to the first user terminal; the rejection information is used for indicating that the household appliance refuses to receive the uploading request information sent by the first user terminal through the first path.
6. The method as claimed in claim 1 or 4, wherein the method further comprises:
and if the first secret key is not matched with the second secret key, the household appliance continuously stores the shared data in the storage space.
7. An electrical home device, comprising at least: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions configured to perform the steps of:
acquiring uploading request information sent by a first user terminal through a first path, and storing the uploading request information; wherein the upload request information at least includes: sharing data and a first key; the first path is a path for point-to-point connection between the household appliance and the first user terminal through a wireless Access Point (AP) of the household appliance;
acquiring acquisition request information sent by the second user terminal through a second path; the obtaining request information is used for obtaining shared data sent by the first user terminal; the obtaining request information at least comprises: a second key; the second path is a path for point-to-point connection between the household appliance and the second user terminal through the AP of the household appliance;
and if the first key is matched with the second key, sending the shared data to the second user terminal through the second path.
8. The home appliance device of claim 7, wherein before the obtaining the upload request information sent by the first user terminal via the first path and storing the upload request information, the device further comprises:
receiving first AP direct connection request information sent by a first user terminal; wherein the first AP direct connection request information at least includes: first identification information and a third key;
if the first identification information and the third secret key meet a first preset condition, point-to-point connection is carried out between the first identification information and the third secret key through a wireless Access Point (AP) of the first user terminal to obtain a first path;
receiving second AP direct connection request information sent by the second user terminal; wherein the second AP direct connection request information at least includes: second identification information and a fourth key;
and if the second identification information and the fourth secret key meet a second preset condition, obtaining a second path through point-to-point connection between the AP of the second user terminal and the second user terminal.
9. The home device of claim 8, wherein the third identification information is the same as or different from the second identification information;
the third identification information and the second identification information include at least one of: the physical address of the household appliance and the serial number of the household appliance.
10. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are configured to perform the AP direct connection-based data exchange method provided in any one of claims 1 to 6.
CN201810608666.3A 2018-06-13 2018-06-13 Data exchange method, equipment and storage medium based on AP direct connection Active CN110602804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810608666.3A CN110602804B (en) 2018-06-13 2018-06-13 Data exchange method, equipment and storage medium based on AP direct connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810608666.3A CN110602804B (en) 2018-06-13 2018-06-13 Data exchange method, equipment and storage medium based on AP direct connection

Publications (2)

Publication Number Publication Date
CN110602804A true CN110602804A (en) 2019-12-20
CN110602804B CN110602804B (en) 2023-06-02

Family

ID=68849200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810608666.3A Active CN110602804B (en) 2018-06-13 2018-06-13 Data exchange method, equipment and storage medium based on AP direct connection

Country Status (1)

Country Link
CN (1) CN110602804B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935190A (en) * 2020-10-12 2020-11-13 杭州海康威视数字技术股份有限公司 Internet of vehicles terminal data sharing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729249A (en) * 2009-12-21 2010-06-09 西安西电捷通无线网络通信有限公司 Building method of safe connection among user terminals and system thereof
CN103529793A (en) * 2013-10-18 2014-01-22 中山司南物联网科技有限公司 Control system and control method for Internet of things based on STA (Station) mode and AP (Access Point) mode of WIFI (Wireless Fidelity)
CN104010309A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method for establishing connection between access point and terminal and terminal
CN104767767A (en) * 2014-01-02 2015-07-08 中国移动通信集团公司 Method, device and system for sharing Internet access data and network equipment
CN105959189A (en) * 2016-06-08 2016-09-21 美的集团股份有限公司 Home appliance equipment, communication system and method of cloud server and terminal, and terminal
CN107360635A (en) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 A kind of data transmission method, device, terminal and computer-readable recording medium
CN107666669A (en) * 2016-07-29 2018-02-06 中兴通讯股份有限公司 A kind of data sharing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729249A (en) * 2009-12-21 2010-06-09 西安西电捷通无线网络通信有限公司 Building method of safe connection among user terminals and system thereof
CN103529793A (en) * 2013-10-18 2014-01-22 中山司南物联网科技有限公司 Control system and control method for Internet of things based on STA (Station) mode and AP (Access Point) mode of WIFI (Wireless Fidelity)
CN104767767A (en) * 2014-01-02 2015-07-08 中国移动通信集团公司 Method, device and system for sharing Internet access data and network equipment
CN104010309A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method for establishing connection between access point and terminal and terminal
CN105959189A (en) * 2016-06-08 2016-09-21 美的集团股份有限公司 Home appliance equipment, communication system and method of cloud server and terminal, and terminal
CN107666669A (en) * 2016-07-29 2018-02-06 中兴通讯股份有限公司 A kind of data sharing method and device
CN107360635A (en) * 2017-07-18 2017-11-17 广东欧珀移动通信有限公司 A kind of data transmission method, device, terminal and computer-readable recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935190A (en) * 2020-10-12 2020-11-13 杭州海康威视数字技术股份有限公司 Internet of vehicles terminal data sharing method and device, electronic equipment and storage medium
CN111935190B (en) * 2020-10-12 2021-01-26 杭州海康威视数字技术股份有限公司 Internet of vehicles terminal data sharing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110602804B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
CN107241679B (en) Connection establishing method, information sending method, message sending method and device
CN108055339B (en) Household appliance interconnection method and device, storage medium and cloud platform server
US8260885B2 (en) Method and system for bootstrap of a device
EP3605995A1 (en) Method and apparatus for discussing digital certificate by esim terminal and server
CN104660618A (en) Binding method and binding equipment
CN108667094B (en) Communication method, power adapter and terminal
EP3869112B1 (en) Air-conditioning device control method and air-conditioning device
EP2566109A2 (en) Information processing apparatus and information processing program
CN106105131B (en) Electronic device, method, apparatus, and computer medium pairing a plurality of devices
CN108135022B (en) Equipment control method, device, terminal and computer readable storage medium
KR102237840B1 (en) APPARATUS AND METHODS TO INSTALL AND MANAGE eSIM PROFILES
CN105069875A (en) Electronic key, electronic devices and electronic device networking/pairing method
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
US20230076852A1 (en) Electronic device supporting plurality of sims and operating method therefor
KR20150117835A (en) Wireless charging equipment, terminal, wireless charging system comprising the same, control method thereof and computer readable medium having computer program recorded therefor
CN109067883A (en) Information-pushing method and device
CN110602804B (en) Data exchange method, equipment and storage medium based on AP direct connection
KR102462366B1 (en) APPRATUS AND METHOD FOR NEGOTIATING eUICC VERSION
CN114201184A (en) Method, device, storage medium, equipment and system for burning information
CN101800985B (en) Authentication method and system, terminal, server and data downloading method and device
CN104717688A (en) Method and device for controlling wireless router
CN109729515B (en) Method for realizing machine-card binding, user identification card and Internet of things terminal
US20230030914A1 (en) Electronic device and method for transferring subscription by using embedded sim in the electronic device
EP3459269B1 (en) Method for provisioning an applet with credentials of a terminal application provided by an application server and corresponding ota platform
CN110554612A (en) Information protection method, server and computer readable 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
GR01 Patent grant
GR01 Patent grant