CN114390506A - Egg rack connecting method and device, storage medium and electronic device - Google Patents

Egg rack connecting method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114390506A
CN114390506A CN202011112862.5A CN202011112862A CN114390506A CN 114390506 A CN114390506 A CN 114390506A CN 202011112862 A CN202011112862 A CN 202011112862A CN 114390506 A CN114390506 A CN 114390506A
Authority
CN
China
Prior art keywords
egg rack
target egg
target
wireless connection
pairing
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
CN202011112862.5A
Other languages
Chinese (zh)
Other versions
CN114390506B (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.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing 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 Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN202011112862.5A priority Critical patent/CN114390506B/en
Publication of CN114390506A publication Critical patent/CN114390506A/en
Application granted granted Critical
Publication of CN114390506B publication Critical patent/CN114390506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention provides an egg rack connecting method, an egg rack connecting device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a first characteristic identifier which is sent by a target egg rack and used for identifying the target egg rack; matching the first feature identification with a pre-recorded historical feature identification; and sending a wireless connection request to the target egg rack to establish wireless connection with the target egg rack under the condition that the first characteristic identification is determined to be matched with the historical characteristic identification. By the egg rack expansion device, the problem that the egg rack is difficult to expand in the related technology is solved, and the effect of facilitating the expansion of the egg rack is achieved.

Description

Egg rack connecting method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to an egg rack connecting method, an egg rack connecting device, a storage medium and an electronic device.
Background
At present, intelligent egg racks are arranged in some intelligent refrigerators, the intelligent egg racks measure the weight of eggs through pressure sensors and identify the number of the eggs, so that users can be informed of eating the eggs in time according to purchase dates and estimated quality guarantee periods, or the users are informed of purchasing new eggs in time when no eggs exist.
The intelligent egg rack loaded with the pressure sensor generally has an MCU (micro controller Unit, single-chip microcomputer), and communicates with a refrigerator main control board through a serial port or other communication interfaces.
Disclosure of Invention
The embodiment of the invention provides an egg rack connecting method, an egg rack connecting device, a storage medium and an electronic device, and at least solves the problem that more egg racks cannot be expanded in the related art.
According to an embodiment of the present invention, there is provided an egg rack attaching method including:
acquiring a first characteristic identifier which is sent by a target egg rack and used for identifying the target egg rack;
matching the first feature identification with a pre-recorded historical feature identification;
and sending a wireless connection request to the target egg rack to establish wireless connection with the target egg rack under the condition that the first characteristic identification is determined to be matched with the historical characteristic identification.
In an exemplary embodiment, before the acquiring the first characteristic identifier sent by the target egg rack for identifying the target egg rack, the method includes:
acquiring a pairing broadcast sent by the target egg rack;
sending a pairing request to the target egg rack according to the pairing broadcast;
and under the condition that a pairing success response returned by the target egg rack is obtained, recording a first characteristic identifier of the target egg rack as the historical characteristic identifier.
In an exemplary embodiment, after the sending the wireless connection request to the target egg rack, the method further includes:
acquiring a connection response fed back after the target egg rack is authenticated according to the wireless connection request;
and establishing connection with the target egg rack according to the connection response.
In an exemplary embodiment, after establishing the wireless connection with the target egg rack, the method further comprises:
acquiring active information of the target egg rack, wherein the active information comprises the change frequency of the state of eggs on the target egg rack;
in the event that it is determined that the change frequency is less than a predetermined frequency threshold, disconnecting the wireless connection with the target egg rack;
maintaining a wireless connection with the target egg rack if it is determined that the change frequency is greater than or equal to the predetermined frequency threshold.
In one exemplary embodiment, the method comprises:
acquiring a heartbeat broadcast sent by the target egg rack under the condition that the target egg rack is not in wireless connection with the target egg rack;
and determining the online state of the target egg rack according to the heartbeat broadcast.
In an exemplary embodiment, the sending a wireless connection request to the target egg rack comprises:
encrypting an initial wireless connection request to obtain the wireless connection request;
and sending the wireless connection request to the target egg rack.
In an exemplary embodiment, sending a pairing request to the target egg rack in accordance with the pairing broadcast includes:
determining an initial pairing request to be sent to the target egg rack according to the pairing broadcast;
encrypting the initial pairing request to obtain the pairing request;
and sending the pairing request to the target egg rack.
In an exemplary embodiment, acquiring the pairing broadcast transmitted by the target egg rack includes:
and acquiring the pairing broadcast sent by the target egg rack according to a first preset transmitting power, wherein the first preset transmitting power is smaller than a first power threshold.
In an exemplary embodiment, acquiring that the target egg rack sends a heartbeat broadcast includes:
and acquiring the heartbeat broadcast sent by the target egg rack according to a second preset transmitting power, wherein the second preset transmitting power is smaller than a second power threshold.
According to another embodiment of the present invention, there is provided an egg rack coupling device including:
the first identification acquisition module is used for acquiring a first characteristic identification which is sent by a target egg rack and used for identifying the target egg rack;
the first identifier matching module is used for matching the first feature identifier with a pre-recorded historical feature identifier;
and the wireless connection module is used for sending a wireless connection request to the target egg rack to establish wireless connection with the target egg rack under the condition that the first characteristic identification is determined to be matched with the historical characteristic identification.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the target egg rack is connected in a wireless connection mode, so that the problem that the egg rack cannot be expanded is solved, and the effect of improving the expansion efficiency of the egg rack is achieved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of an egg rack connection method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an egg rack attachment method according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating the construction of an egg holder coupling device according to an embodiment of the present invention;
FIG. 4 is a first flowchart of an embodiment of the present invention;
FIG. 5 is a flow chart two of an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of an egg rack connection method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to an egg rack connection method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, an egg rack connecting method is provided, and fig. 2 is a flowchart of an egg rack connecting method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring a first characteristic identifier which is sent by a target egg rack and used for identifying the target egg rack;
in this embodiment, the first characteristic mark for acquiring the target egg rack is to enable a control main board in the smart home to identify the expanded target egg rack, so that the smart home can record and display egg information on the target egg rack, and further enable a user to acquire the egg information in the smart home in time.
The target egg rack can be (but is not limited to) an egg rack provided with a sensor and a wireless communication module, the sensor can be a gravity sensor, a temperature sensor and other sensors used for detecting and recording egg information, and the wireless communication module is used for transmitting the egg information and the target egg rack information; the first characteristic identifier includes (but is not limited to) information that can identify the target egg rack, such as an Internet Protocol (IP) address of the target egg rack, an equipment number of the target egg rack, and the like, and the first characteristic identifier may correspond to the target egg rack one to one so as to avoid misidentification of the target egg rack; or the egg rack can correspond to a specified number of target egg racks, so that the storage resources are saved; however, the same first feature identifier should be prevented from being installed in the same smart home as much as possible to avoid connection errors; the first characteristic mark can be stored in a data tag mode, a data string mode or other modes; the mode that the target egg rack sends the first feature identification to the control main board can be realized through wireless Bluetooth communication, can also be realized through WIFI communication, and can also be realized through other wireless transmission modes.
It should be noted that the manner in which the control mainboard receives the first feature identifier corresponds to the manner in which the target egg rack sends the first feature identifier, and after the control mainboard receives the first feature identifier, the control mainboard may analyze the first feature identifier, then identify the analyzed first feature identifier, and execute a corresponding processing operation according to the identification result, or directly identify the first feature identifier, and perform a corresponding processing according to the identification result.
Step S204, matching the first characteristic mark with a pre-recorded historical characteristic mark;
in this embodiment, when the first characteristic identifier is matched with the historical characteristic identifier, the first characteristic identifier is determined to be an egg rack which is connected with the control main board or is recorded once, so that false recognition caused by connection of an unauthorized egg rack and the control main board is avoided.
For example, if a first egg rack not installed in the smart home is connected to a control main board in the smart home, the control main board may erroneously record and display the situation of eggs on the first egg rack, so that a user receives incorrect information to cause the wrong operation of the user; and through matching the first characteristic identification of the first egg rack with the historical characteristic identification, the first egg rack can be prevented from being connected with the control mainboard under the condition that the first characteristic identification is not matched with the pre-recorded historical characteristic identification, and therefore misoperation of users is avoided.
The historical characteristic mark can be obtained by being stored in the control main board in advance, or can be obtained by recording the first characteristic mark of the target egg rack by the control main board after the target egg rack is connected with the control main board, or can be obtained by other methods.
It should be noted that, under the condition that the first feature identifier is the same as the historical feature identifier, it is determined that the first feature identifier matches the historical feature identifier; and under the condition that the first characteristic mark is different from the historical characteristic mark, judging that the first characteristic mark is not matched with the historical characteristic mark.
The process of matching the first feature identifier with the historical feature identifier may be that the received first feature identifier is sequentially compared with the historical feature identifiers recorded in advance, or that, when the first feature identifier is a data string, retrieval is sequentially performed according to data in the data string, so as to determine whether the first feature identifier is matched with the historical feature identifier; for example, when the first feature identifier is "001", the history feature identifier with the first digit being "0" is screened out first, then the history feature identifier with the first digit being "0" is screened out, and finally the history feature identifier with the third digit being "1" is screened out, if the history feature identifier with the identifier being "001" can be screened out, the first feature identifier is determined to be matched with the history feature identifier, otherwise, the first feature identifier is determined to be not matched with the history feature identifier, and so on.
And step S206, under the condition that the first characteristic identifier is determined to be matched with the historical characteristic identifier, sending a wireless connection request to the target egg rack so as to establish wireless connection with the target egg rack.
In this embodiment, if the first characteristic identifier matches with the historical characteristic identifier, it indicates that the target egg rack is an authorized egg rack, so as to prevent an unauthorized egg rack from being connected to the control motherboard; wherein, for the security of further guaranteeing to connect, can also judge whether target egg frame accords with the connection requirement, wherein, the connection requirement includes (but not limited to) has installed in intelligent house, communication distance satisfies preset distance, life accords with preset life-span etc..
The wireless connection request may be a data string containing a key, a request signal, or other signal forms.
After receiving the wireless connection request, the target egg rack can directly analyze and identify the wireless connection request, and then the target egg rack judges whether to establish connection according to the identification result so as to determine whether the target egg rack is matched with the smart home or not and avoid the wrong connection between the target egg rack and the smart home; and feeds back a response that the connection is successful if it is determined to establish the connection or a response that the connection is unsuccessful if it is determined not to establish the connection.
Through the steps, the target egg rack is connected in a wireless connection mode, so that the problem that the egg rack cannot be expanded in a wired connection process is solved, and the expansion efficiency of the egg rack is improved.
In an optional embodiment, before acquiring the first characteristic identifier sent by the target egg rack for identifying the target egg rack, the method includes:
step S2002, acquiring a pairing broadcast sent by a target egg rack;
step S2004, sending a pairing request to the target egg rack according to the pairing broadcast;
and step S2006, recording a first characteristic identifier of the target egg rack as a historical characteristic identifier under the condition that a pairing success response returned by the target egg rack is obtained.
In this embodiment, the pairing broadcast sent by the target egg rack is sent after the target egg rack is inserted into a power supply slot in the smart home and the wireless communication device on the target egg rack is powered on, and the sending directions of the pairing broadcast can be multiple, so as to improve the receiving probability of the control mainboard, or can be in the direction of a specified number, so as to save energy; the pairing broadcast can include information such as a first characteristic identifier, an installation position and the like of the target egg rack, so that the control mainboard can accurately send a pairing request to the target egg rack according to the pairing broadcast; the pairing request may (but is not limited to) include an ID, an IP address, location information, and the like of the control main board, so that the target egg rack can quickly identify the main control board.
After the target egg rack is successfully paired with the control mainboard, the target egg rack sends a successful pairing response to the control mainboard, so that the control mainboard can determine the connection state, and then records the first characteristic identifier of the target egg rack, thereby avoiding the historical characteristic identifier error caused by other historical characteristic identifier acquisition modes and improving the pairing success rate of the first characteristic identifier.
In an optional embodiment, after sending the wireless connection request to the target egg rack, the method further comprises:
step S2062, acquiring a connection response fed back after the target egg rack is authenticated according to the wireless connection request;
and step S2064, establishing connection with the target egg rack according to the connection response.
In this embodiment, the target egg rack receives the wireless connection request and then authenticates the wireless connection request to ensure that the control motherboard connected to the target egg rack is the target control motherboard, thereby avoiding erroneous connection between the target cells and the control motherboard.
The process of the target egg rack for performing authentication processing according to the wireless connection request can be that the target egg rack compares information such as an ID (identity) and an IP (Internet protocol) address of a control main board contained in the wireless connection request with related information of the control main board pre-stored in a storage unit of the target egg rack, and under the condition that the information of the control main board contained in the wireless connection request is the same as the information in the storage unit of the target egg rack, the authentication processing is judged to be successful, otherwise, the authentication processing is judged to be unsuccessful; and then sending a connection response to the control main board, so that the control main board establishes wireless connection with the target egg rack according to the connection response.
In an optional embodiment, after establishing the wireless connection with the target egg rack, the method further comprises:
step S2066, acquiring active information of the target egg rack, wherein the active information comprises the change frequency of the state of the eggs on the target egg rack;
step S20682, under the condition that the change frequency is determined to be less than the preset frequency threshold value, the wireless connection with the target egg rack is disconnected;
in step S20684, in the case that the change frequency is determined to be greater than or equal to the predetermined frequency threshold, the wireless connection with the target egg rack is maintained.
In this embodiment, when the change frequency of the egg status on the target egg rack is less than the predetermined frequency threshold, it is determined that the usage frequency of the target egg rack is not high, and thus in order to save energy, the wireless connection with the target egg rack is disconnected; similarly, when the change frequency of the egg status on the target egg rack is greater than or equal to the predetermined frequency threshold, it is determined that the usage frequency of the target egg rack is high, and therefore, in order to avoid the leaving of the egg rack information, the wireless connection with the target egg rack needs to be maintained.
The method for acquiring the active information of the target egg rack may be that the target egg rack sends the change frequency of the state of the eggs stored in the storage unit of the target egg rack to the control main board, or the control main board continuously records the time and the times of the state change of the eggs on the target egg rack, or the active information of the target egg rack is acquired by other methods.
It should be noted that the egg status includes information such as freshness, number, storage position, storage time, storage duration, etc. of eggs, and the active information of the target egg rack may further include connection frequency of the target egg rack and the control mainboard, that is, the number of times that the target egg rack establishes wireless connection with the control mainboard in unit time; the predetermined frequency threshold may be set according to actual usage habits, or may be determined according to other information.
In an optional embodiment, the method further comprises:
step S2082, acquiring heartbeat broadcast sent by the target egg rack under the condition that the wireless connection with the target egg rack is not determined;
and S2084, determining the online state of the target egg rack according to the heartbeat broadcast.
In this embodiment, when the target egg rack is not wirelessly connected to the control motherboard, in order to enable the control motherboard to quickly establish wireless connection with the target egg rack as needed, it is necessary to determine whether the target egg rack is in a normal operating state, and therefore, it is possible to determine whether the target egg rack is in the normal operating state by obtaining a heartbeat broadcast sent by the target egg rack; the normal working state comprises the states of whether the target egg rack is normally powered on, normally connected, in a normal connection range and the like.
And the control mainboard stores the online state of the target egg rack after receiving the heartbeat broadcast of the target egg rack, and then quickly sends a connection request to the target egg rack and establishes wireless connection with the target egg rack when the egg rack needs to be expanded, so that the expansion time of the egg rack is saved, and the expansion efficiency of the egg rack is improved.
In an alternative embodiment, the sending the wireless connection request to the target egg rack comprises:
step S20602 of encrypting the initial wireless connection request to obtain a wireless connection request;
step S20604, a wireless connection request is sent to the target egg rack.
In this embodiment, the encryption processing on the initial wireless connection request is performed to avoid establishing a wireless connection between an unauthorized egg rack and the control motherboard, so as to ensure that the egg rack information acquired by the control motherboard is correct egg rack information.
In an alternative embodiment, sending a pairing request to a target egg rack based on a pairing broadcast includes:
step S20606, determining an initial pairing request which needs to be sent to the target egg rack according to the pairing broadcast;
step S20608, encrypting the initial pairing request to obtain a pairing request;
step S206010 sends a pairing request to the target egg rack.
In this embodiment, the encryption processing is performed on the initial pairing request to avoid establishing wireless connection between an unauthorized egg rack and the control motherboard, so as to ensure that the egg rack information acquired by the control motherboard is correct egg rack information.
In an optional embodiment, acquiring the pairing broadcast sent by the target egg rack comprises:
step S20022, obtaining a pairing broadcast sent by the target egg rack according to a first preset transmitting power, wherein the first preset transmitting power is smaller than a first power threshold.
In this embodiment, the obtaining of the target egg rack and the sending of the pairing broadcast according to the first predetermined transmission power smaller than the first power threshold are to reduce energy consumption and further save energy.
Acquiring heartbeat broadcast sent by a target egg rack comprises the following steps:
step S20024, obtaining heartbeat broadcast sent by the target egg rack according to a second preset transmitting power, wherein the second preset transmitting power is smaller than a second power threshold value.
In this embodiment, the purpose of acquiring the heartbeat broadcast sent by the target egg rack according to the second predetermined transmission power smaller than the second power threshold is to reduce energy consumption and further save energy.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. 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 (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an egg rack connecting device is further provided, and the device is used to implement the above embodiments and preferred embodiments, which have already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram illustrating a structure of an egg holder coupling device according to an embodiment of the present invention, as shown in fig. 3, the device including:
the first identifier obtaining module 32 is configured to obtain a first feature identifier, which is sent by the target egg rack and used for identifying the target egg rack;
a first identifier matching module 34, configured to match the first feature identifier with a pre-recorded historical feature identifier;
and a wireless connection module 36, configured to send a wireless connection request to the target egg rack to establish a wireless connection with the target egg rack if it is determined that the first characteristic identifier matches the historical characteristic identifier.
In an optional embodiment, the apparatus further comprises:
a broadcast obtaining unit 302, configured to obtain a pairing broadcast sent by a target egg rack;
a pairing request unit 304, configured to send a pairing request to a target egg rack according to a pairing broadcast;
and the identifier recording unit 306 is configured to record the first feature identifier of the target egg rack as a historical feature identifier when the pairing success response returned by the target egg rack is obtained.
In an optional embodiment, the apparatus further comprises:
the authentication processing unit 362 is used for acquiring a connection response fed back after the authentication processing is successful, and performing authentication processing on the target egg rack according to the wireless connection request;
a response connection unit 364, configured to establish a connection with the target egg rack according to the connection response.
In an optional embodiment, the apparatus further comprises:
the activity information acquisition unit 366 is configured to acquire activity information of the target egg rack, where the activity information includes a change frequency of a state of an egg on the target egg rack;
an egg rack disconnection unit 3682 for disconnecting a wireless connection with the target egg rack if it is determined that the change frequency is less than a predetermined frequency threshold;
an egg rack connection unit 3684 for maintaining a wireless connection with the target egg rack if it is determined that the change frequency is greater than or equal to the predetermined frequency threshold.
In an optional embodiment, the apparatus further comprises:
the heartbeat acquisition unit 382 is used for acquiring a heartbeat broadcast sent by the target egg rack under the condition that the wireless connection with the target egg rack is determined not to be carried out;
an online determination unit 3847, configured to determine an online status of the target egg rack according to the heartbeat broadcast.
In an alternative embodiment, the wireless connection module 36 includes:
an initial encryption unit 3692 configured to encrypt the initial wireless connection request to obtain a wireless connection request;
the request sending unit 3694 is configured to send a wireless connection request to the target egg rack.
In an alternative embodiment, the pairing request unit 304 includes:
a request determining subunit 3042, configured to determine, according to the pairing broadcast, an initial pairing request that needs to be sent to the target egg rack;
a request encrypting subunit 3044 that encrypts the initial pairing request to obtain a pairing request;
the request sending subunit 3046 sends a pairing request to the target egg rack.
In an alternative embodiment, the broadcast acquiring unit 302 includes:
the broadcast acquiring subunit 3022 is configured to acquire a pairing broadcast sent by the target egg rack according to a first predetermined transmission power, where the first predetermined transmission power is smaller than a first power threshold.
In an alternative embodiment, the heartbeat acquisition unit 382 includes:
the heartbeat acquisition subunit 3822 is configured to acquire a heartbeat broadcast sent by the target egg rack according to a second predetermined transmission power, where the second predetermined transmission power is smaller than a second power threshold.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
The present invention will be described with reference to specific examples.
Referring to fig. 4 and 5, after the target egg rack is inserted into the slot for supplying power to the target egg rack, the target egg rack sends a broadcast while opening a 30-second pairing time window (corresponding to step 1 in fig. 4); meanwhile, the refrigerator electric control board scans the surrounding environment, automatically matches with a new target egg rack under the condition that the new target egg rack is found (corresponding to step 2 in fig. 4), and sends a characteristic identifier of the refrigerator to the target egg rack during matching (corresponding to step 3 in fig. 4); then the target egg rack records the characteristic identification of the refrigerator (corresponding to step 4 in fig. 4), and feeds back a notification of completing pairing to the refrigerator (corresponding to step 5 in fig. 4); when the refrigerator receives the notification of completing the pairing, the refrigerator records information of the egg rack (such as the number of eggs, identification information of the egg rack, and the like) (corresponding to step 6 in fig. 4).
When the refrigerator electric control board searches for the broadcast sent by the target egg rack and finds that the target egg rack is an old egg rack (corresponding to step 8 in fig. 4), the refrigerator electric control board is automatically connected with the target egg rack (corresponding to step 9 in fig. 4), then when the connection is performed, the target egg rack authenticates the refrigerator according to the characteristic identification of the refrigerator (corresponding to step 10 in fig. 4), and if the authentication is passed, the wireless connection is established with the refrigerator (corresponding to step 11 in fig. 4), and then the target egg rack reports all attribute states of the target egg rack to the refrigerator electric control board based on the wireless connection (corresponding to step 12 in fig. 4).
When eggs are added or reduced on the target egg rack (corresponding to step 13 in fig. 4 and step 3.1 in fig. 5), the target egg rack reports the egg rack state (corresponding to step 14 in fig. 4 and step 3.5 in fig. 5) through wireless connection (corresponding to step 1.1 in fig. 5); or when the state of the target egg rack changes (such as the number of eggs and the freshness of the eggs), the target egg rack sends a broadcast to the refrigerator (corresponding to step 3.2 in fig. 5) to notify the refrigerator that the state of the target egg rack changes, and then the main control board of the refrigerator calculates the activity level of the connected target egg rack (corresponding to step 1.2 in fig. 5).
When a certain egg rack x is not in wireless connection with the refrigerator main control board, the egg rack x sends heartbeat broadcast to the refrigerator main control board (corresponding to step 2.1 in fig. 5), and then the refrigerator main control board calculates the online states of all the egg racks (corresponding to step 2.2 in fig. 5); when the egg rack state of an egg rack 1 does not change, the main control board of the refrigerator is disconnected from the egg rack 1 (corresponding to step 3.3 in fig. 5).
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. An egg rack attachment method, comprising:
acquiring a first characteristic identifier which is sent by a target egg rack and used for identifying the target egg rack;
matching the first feature identification with a pre-recorded historical feature identification;
and sending a wireless connection request to the target egg rack to establish wireless connection with the target egg rack under the condition that the first characteristic identification is determined to be matched with the historical characteristic identification.
2. The method of claim 1, wherein prior to acquiring the first signature sent by the target egg rack for identifying the target egg rack, the method comprises:
acquiring a pairing broadcast sent by the target egg rack;
sending a pairing request to the target egg rack according to the pairing broadcast;
and under the condition that a pairing success response returned by the target egg rack is obtained, recording a first characteristic identifier of the target egg rack as the historical characteristic identifier.
3. The method of claim 1, wherein after sending the wireless connection request to the target egg rack, the method further comprises:
acquiring a connection response fed back after the target egg rack is authenticated according to the wireless connection request;
and establishing connection with the target egg rack according to the connection response.
4. The method of claim 1, wherein after establishing the wireless connection with the target egg rack, the method further comprises:
acquiring active information of the target egg rack, wherein the active information comprises the change frequency of the state of eggs on the target egg rack;
in the event that it is determined that the change frequency is less than a predetermined frequency threshold, disconnecting the wireless connection with the target egg rack;
maintaining a wireless connection with the target egg rack if it is determined that the change frequency is greater than or equal to the predetermined frequency threshold.
5. The method according to claim 1, characterized in that it comprises:
acquiring a heartbeat broadcast sent by the target egg rack under the condition that the target egg rack is not in wireless connection with the target egg rack;
and determining the online state of the target egg rack according to the heartbeat broadcast.
6. The method of claim 1, wherein sending a wireless connection request to the target egg rack comprises:
encrypting an initial wireless connection request to obtain the wireless connection request;
and sending the wireless connection request to the target egg rack.
7. The method of claim 2, wherein sending a pairing request to the target egg rack in accordance with the pairing broadcast comprises:
determining an initial pairing request to be sent to the target egg rack according to the pairing broadcast;
encrypting the initial pairing request to obtain the pairing request;
and sending the pairing request to the target egg rack.
8. The method of claim 2, wherein obtaining the pairing broadcast transmitted by the target egg rack comprises:
and acquiring the pairing broadcast sent by the target egg rack according to a first preset transmitting power, wherein the first preset transmitting power is smaller than a first power threshold.
9. The method of claim 5, wherein obtaining the target egg rack to send a heartbeat broadcast comprises:
and acquiring the heartbeat broadcast sent by the target egg rack according to a second preset transmitting power, wherein the second preset transmitting power is smaller than a second power threshold.
10. An egg rack connecting device, comprising:
the first identification acquisition module is used for acquiring a first characteristic identification which is sent by a target egg rack and used for identifying the target egg rack;
the first identifier matching module is used for matching the first feature identifier with a pre-recorded historical feature identifier;
and the wireless connection module is used for sending a wireless connection request to the target egg rack to establish wireless connection with the target egg rack under the condition that the first characteristic identification is determined to be matched with the historical characteristic identification.
11. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 9 when executed.
12. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 9.
CN202011112862.5A 2020-10-16 2020-10-16 Egg frame connection method and device, storage medium and electronic device Active CN114390506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011112862.5A CN114390506B (en) 2020-10-16 2020-10-16 Egg frame connection method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011112862.5A CN114390506B (en) 2020-10-16 2020-10-16 Egg frame connection method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114390506A true CN114390506A (en) 2022-04-22
CN114390506B CN114390506B (en) 2023-10-27

Family

ID=81193932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011112862.5A Active CN114390506B (en) 2020-10-16 2020-10-16 Egg frame connection method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114390506B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120203919A1 (en) * 2011-02-09 2012-08-09 Samsung Electronics Co., Ltd. Method and apparatus for controlling connection between devices
US20140112227A1 (en) * 2012-10-18 2014-04-24 Olympus Corporation Wireless communication terminal, wireless communication system, wireless communication method, and computer program
WO2015172053A1 (en) * 2014-05-08 2015-11-12 Tego, Inc. Flexible rfid tag for mounting on metal surface
CN105743844A (en) * 2014-12-08 2016-07-06 联想(北京)有限公司 Information processing method and electronic device
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connecting method, device, readable storage medium storing program for executing and mobile device
CN109905366A (en) * 2019-01-16 2019-06-18 平安科技(深圳)有限公司 Terminal device safe verification method, device, readable storage medium storing program for executing and terminal device
CN110022618A (en) * 2018-01-08 2019-07-16 佛山市顺德区美的电热电器制造有限公司 A kind of method that establishing connection and server, household electrical appliance, storage medium
WO2019144832A1 (en) * 2018-01-24 2019-08-01 阿里巴巴集团控股有限公司 Device connection method, device and system
CN111148084A (en) * 2019-12-24 2020-05-12 秒针信息技术有限公司 Information transmission method, information transmission device, storage medium, and electronic device
CN111464990A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Information processing method and first device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120203919A1 (en) * 2011-02-09 2012-08-09 Samsung Electronics Co., Ltd. Method and apparatus for controlling connection between devices
US20140112227A1 (en) * 2012-10-18 2014-04-24 Olympus Corporation Wireless communication terminal, wireless communication system, wireless communication method, and computer program
WO2015172053A1 (en) * 2014-05-08 2015-11-12 Tego, Inc. Flexible rfid tag for mounting on metal surface
CN105743844A (en) * 2014-12-08 2016-07-06 联想(北京)有限公司 Information processing method and electronic device
CN110022618A (en) * 2018-01-08 2019-07-16 佛山市顺德区美的电热电器制造有限公司 A kind of method that establishing connection and server, household electrical appliance, storage medium
WO2019144832A1 (en) * 2018-01-24 2019-08-01 阿里巴巴集团控股有限公司 Device connection method, device and system
CN109905366A (en) * 2019-01-16 2019-06-18 平安科技(深圳)有限公司 Terminal device safe verification method, device, readable storage medium storing program for executing and terminal device
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connecting method, device, readable storage medium storing program for executing and mobile device
CN111148084A (en) * 2019-12-24 2020-05-12 秒针信息技术有限公司 Information transmission method, information transmission device, storage medium, and electronic device
CN111464990A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Information processing method and first device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴少博;张延园;陈群;: "基于层次模型的低耦合RFID中间件研究", 科学技术与工程, no. 07 *

Also Published As

Publication number Publication date
CN114390506B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
US9628956B1 (en) Method and system for reporting and monitoring location-related activities of mobile devices
US8855563B2 (en) Communication apparatus and communication method
KR102094951B1 (en) Inventory monitoring and verification system
CN102742256B (en) Communicator, communication means and communication system
US11727360B2 (en) Method and system for reporting and monitoring location-related activities of mobile devices
CN105531729A (en) Information processing device, information processing system, information processing method, and program
WO2017187138A1 (en) Network access control
CN107580132B (en) Information sending method, information sending device, storage medium and electronic equipment
CN112492624A (en) Method and device for reminding use of 5G function, electronic equipment and storage medium
CN107925881B (en) Wireless communication device, wireless communication system, evaluation method, and non-transitory computer-readable medium storing program
CN111555920A (en) Intelligent operation and maintenance method, system, equipment and user side
US20080046750A1 (en) Authentication method
CN114390506A (en) Egg rack connecting method and device, storage medium and electronic device
CN116453247A (en) Intelligent lock control system based on Internet of things technology
CN103458030B (en) welding machine control program upgrading system and upgrading method
CN113965904B (en) Device registration method, device and storage medium
CN110858132A (en) Configuration safety detection method and device for printing equipment
EP1619911A1 (en) Method of obtaining and transmitting user-specific maintenance data related to radio transmission in a wireless network
CN113129478A (en) Control method and system of intelligent door lock
CN110099164A (en) The method and terminal given for change for lost terminal
CN111310130A (en) Authorization authentication processing method, device, storage medium and electronic device
CN110851158B (en) Method and system for upgrading external firmware of intelligent lock
CN110768831B (en) Method and system for acquiring monitoring plug-in
CN116056114A (en) WiFi-based device networking method, wiFi-based device networking device, wiFi-based device networking equipment and storage medium
CN116095683A (en) Network security protection method and device for wireless router

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