Distribution network binding method of refrigerator, operation control device, refrigerator and storage medium
By using mobile terminals in the refrigerator to access the WiFi module one after another, select modules with excellent signal strength for the first time to distribute the network, and assist other modules in completing the distribution network through this module, solving the complexity of multiple WiFi modules in the refrigerator and The problem of low success rate has achieved an efficient and reliable network distribution process.
Patent Information
- Application Number
- CN202310560004.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-22
AI Technical Summary
When existing refrigerators are equipped with multiple WiFi modules, the distribution network binding process is complicated, time-consuming, and insufficient success rate and reliability. Especially due to the unstable communication between the WiFi module and the mobile terminal, the distribution network failure is often caused.
Through the mobile terminal, access multiple WiFi modules in turn, obtain wireless signal strength, select WiFi modules with the largest signal strength or greater than the preset strength for the first time to allocate the network, and obtain network configuration information through this module to complete other WiFi modules. to avoid distribution network failure caused by instability of communication.
It realizes the distribution network of multiple WiFi modules conveniently and reliably, improves the distribution network success rate and reliability, and avoids distribution network failures due to instability in communication.
Smart Images

Figure CN119012312A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of refrigerators, and in particular to a distribution network binding method for a refrigerator, an operation control device, a refrigerator and a storage medium. Background Art
[0002] WiFi connection is the most commonly used short-range wireless LAN communication technology, with the advantages of high speed, networking, simple and convenient use, and data security. It is widely used in homes, offices, and some industrial sites, complementing mobile communication networks, and has an important technical position and application market. Before WiFi connection, the newly connected device needs to complete authentication. The most important step is to enter the SSID and corresponding password of the target AP before connecting. For embedded hardware devices used in smart homes and the Internet of Things, due to limited interactive resources, it is generally impossible for users to directly filter SSIDs, let alone enter complex passwords. In addition, after the device is connected to the network, the device must be associated with the corresponding user ID to achieve dedicated use or permission management. The existing binding process generally requires the input of device SN code and user ID, etc., which is also very difficult for embedded hardware devices. Therefore, WiFi network configuration and binding is a key and important process for embedded devices with simple structure and limited resources. If it is not specially designed, it will greatly affect the user experience, and even require structural and cost costs to solve.
[0003] At present, for refrigerators equipped with a single WiFi module, there is a method for network binding through a mobile terminal. However, when the refrigerator is equipped with multiple WiFi modules, the network binding method needs to be performed once for each WiFi module, which will lead to a complicated process, a long time consumption, and inconvenience. In addition, there may be a situation where the network binding process fails due to unstable communication between some WiFi modules and mobile terminals, and the network binding success rate and reliability are insufficient. Summary of the invention
[0004] The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, and to provide a refrigerator network binding method, an operation control device, a refrigerator and a storage medium, which can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0005] In a first aspect, an embodiment of the present invention provides a network binding method for a refrigerator, wherein the refrigerator includes a plurality of loads, each of the loads is provided with a WiFi module, and the method includes:
[0006] Controlling a plurality of the WiFi modules to establish connections with mobile terminals respectively, and obtaining network configuration information sent by the mobile terminals;
[0007] Acquire wireless signal strengths of a plurality of routers collected by the WiFi modules, wherein the wireless signal strengths are collected by the WiFi modules according to the network configuration information;
[0008] Determine a first WiFi module from the plurality of WiFi modules according to the plurality of wireless signal strengths;
[0009] Controlling the first WiFi module to connect to the router to complete network configuration;
[0010] The second WiFi module is controlled to obtain the network configuration information through the first WiFi module and connect to the router, wherein the second WiFi module is a WiFi module for which network configuration has not been completed among all WiFi modules.
[0011] The network configuration binding method for a refrigerator provided by an embodiment of the present invention has at least the following beneficial effects: when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which several WiFi modules may be able to successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure. The network configuration binding method for the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0012] According to the network configuration binding method provided by some embodiments of the present invention, the first WiFi module is a WiFi module detected with the largest wireless signal strength among the several WiFi modules, or is a WiFi module detected with a wireless signal strength greater than a preset strength among the several WiFi modules.
[0013] According to the network configuration binding method provided by some embodiments of the present invention, before the plurality of WiFi modules establish a connection with the mobile terminal, they work in AP mode, the network configuration information includes the SSID and password of the wireless signal sent by the router, and the controlling the first WiFi module to connect to the router includes:
[0014] Controlling the first WiFi module to switch from AP mode to STA mode;
[0015] Control the first WiFi module to establish a TCP link with the router according to the SSID and the password.
[0016] According to the network configuration binding method provided by some embodiments of the present invention, the controlling the second WiFi module to obtain the network configuration information through the first WiFi module and connect to the router includes:
[0017] Control the first WiFi module to switch from STA mode to AP mode, and broadcast the SSID and the password;
[0018] Control the second WiFi module to work in STA mode, and establish a TCP link with the first WiFi module to receive the SSID and the password sent by the first WiFi module;
[0019] Control the second WiFi module to establish a TCP link with the router according to the SSID and the password.
[0020] According to some embodiments of the present invention, the network configuration binding method further includes:
[0021] After the WiFi module completes network configuration, the WiFi module is controlled to access the server to complete device binding.
[0022] According to the network configuration binding method provided by some embodiments of the present invention, the first WiFi module broadcasts the device binding information while broadcasting the SSID and the password.
[0023] According to some embodiments of the present invention, the network configuration binding method further includes:
[0024] After all the second WiFi modules complete network configuration, the first WiFi module is controlled to switch from AP mode to STA mode, and a TCP link is established with the router.
[0025] In a second aspect, an embodiment of the present invention provides an operation control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the refrigerator network binding method as described in the embodiment of the first aspect above.
[0026] The operation control device provided by the embodiment of the present invention has at least the following beneficial effects: when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which there may be several WiFi modules that can successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure; the network configuration binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0027] In a third aspect, an embodiment of the present invention provides a refrigerator, comprising a plurality of loads and the operation control device described in the embodiment of the second aspect, each of the loads being provided with a WiFi module, and each of the WiFi modules being connected to the operation control device.
[0028] The refrigerator provided by the embodiment of the present invention has at least the following beneficial effects: when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which several WiFi modules may be able to successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure; the network configuration binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0029] In the refrigerator provided according to some embodiments of the present invention, each of the WiFi modules is provided with a flash memory for storing the SSID and the password.
[0030] In the refrigerator provided according to some embodiments of the present invention, the load is provided with a load driving board, and the WiFi module is arranged on the load driving board, or is connected to the load driving board via a serial port harness.
[0031] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the refrigerator network binding method as described in the embodiment of the first aspect above.
[0032] The computer-readable storage medium provided by the embodiment of the present invention has at least the following beneficial effects: when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which several WiFi modules may be able to successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure; the network configuration binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0033] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0035] The present invention is further described below in conjunction with the accompanying drawings and embodiments;
[0036] Figure 1 is a schematic block diagram of a module of a refrigerator provided by an embodiment of the present invention;
[0037] Figure 2is a flow chart of a distribution network binding method for a refrigerator provided in Embodiment 1 of the present invention;
[0038] Figure 3 is a flow chart of a refrigerator network binding method provided in Embodiment 2 of the present invention;
[0039] Figure 4 is a flow chart of a refrigerator network binding method provided by Embodiment 3 of the present invention;
[0040] Figure 5 It is a flow chart of a refrigerator distribution network binding method provided by a detailed embodiment of the present invention;
[0041] Figure 6 It is a structural schematic diagram of the operation control device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.
[0043] In the description of the embodiments of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, "above", "below", "within", etc. are understood to include the number itself, "at least one" means one or more, "at least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0044] It should be noted that the terms such as setting, installing, and connecting in the embodiments of the present invention should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the embodiments of the present invention in combination with the specific content of the technical solution. For example, the term "connection" can be a mechanical connection, an electrical connection, or mutual communication; it can be directly connected or indirectly connected through an intermediate medium.
[0045] It should be noted that the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0046] WiFi connection is the most commonly used short-range wireless LAN communication technology, with the advantages of high speed, networking, simple and convenient use, and data security. It is widely used in homes, offices, and some industrial sites, complementing mobile communication networks, and has an important technical position and application market. Before WiFi connection, the newly connected device needs to complete authentication. The most important step is to enter the SSID and corresponding password of the target AP before connecting. For embedded hardware devices used in smart homes and the Internet of Things, due to limited interactive resources, it is generally impossible for users to directly filter SSIDs, let alone enter complex passwords. In addition, after the device is connected to the network, the device must be associated with the corresponding user ID to achieve dedicated use or permission management. The existing binding process generally requires the input of device SN code and user ID, etc., which is also very difficult for embedded hardware devices. Therefore, WiFi network configuration and binding is a key and important process for embedded devices with simple structure and limited resources. If it is not specially designed, it will greatly affect the user experience, and even require structural and cost costs to solve.
[0047] At present, for refrigerators equipped with a single WiFi module, there is a method for network binding through a mobile terminal. However, when the refrigerator is equipped with multiple WiFi modules, the network binding method needs to be performed once for each WiFi module, which will lead to a complicated process, a long time consumption, and inconvenience. In addition, there may be a situation where the network binding process fails due to unstable communication between some WiFi modules and mobile terminals, and the network binding success rate and reliability are insufficient.
[0048] Based on this, the embodiment of the present invention provides a network configuration binding method for a refrigerator, an operation control device, a refrigerator and a storage medium. When it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through a mobile terminal, among which there may be several WiFi modules that can successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure. The network configuration binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0049] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0050] Reference Figure 1 , Figure 1 It is a module schematic block diagram of a refrigerator provided in an embodiment of the present invention. The refrigerator includes an operation control device and multiple loads. The multiple loads are located at different positions of the refrigerator. Each load is provided with a WiFi module, that is, each WiFi module is located at a different position of the refrigerator, and each WiFi module is connected to the operation control device.
[0051] Reference Figure 2 The first aspect of the present invention provides a method for binding a refrigerator to a network, the method including but not limited to steps S210 to S250:
[0052] Step S210: controlling a plurality of WiFi modules to establish connections with mobile terminals respectively, and obtaining network configuration information sent by the mobile terminals.
[0053] It should be noted that after the refrigerator is powered on, all WiFi modules work in AP mode by default. Users can access multiple WiFi modules of the refrigerator in turn by opening the APP installed on the mobile terminal. It is foreseeable that since multiple WiFi modules are located in different positions of the refrigerator, some WiFi modules can successfully establish a connection with the mobile terminal, while some WiFi modules may not be able to successfully establish a connection with the mobile terminal, or the communication is unstable after the connection is established with the mobile terminal. After the mobile terminal establishes a connection with the WiFi module, it will send network configuration information through wireless broadcasting. The network configuration information may exemplarily include the SSID and password of the wireless signal sent by the router.
[0054] Step S220: obtaining wireless signal strengths of routers collected by a plurality of WiFi modules, where the wireless signal strengths are collected by the WiFi modules according to network configuration information.
[0055] It can be understood that several WiFi modules that can successfully establish connection with the mobile terminal will successfully receive the network configuration information sent by the mobile terminal, and then collect the wireless signal strength of the wireless signal sent by the router according to the network configuration information, and transmit it to the operation control device of the refrigerator.
[0056] Step S230: determining a first WiFi module from a plurality of WiFi modules according to a plurality of wireless signal strengths.
[0057] The operation control device will compare the wireless signal strengths transmitted by the acquired several WiFi modules and determine the first WiFi module. It can be understood that the number of the first WiFi modules can be one or more. When the number of the first WiFi module is one, the first WiFi module is generally the WiFi module that detects the strongest wireless signal among the several WiFi modules; when the number of the first WiFi modules is multiple, the first WiFi module is the WiFi modules that detect the wireless signal strength greater than the preset strength among the several WiFi modules.
[0058] Step S240: Control the first WiFi module to connect to the router to complete network configuration.
[0059] It can be understood that the first WiFi module is selected from multiple WiFi modules of the refrigerator to preferentially connect to the router to complete network configuration. Under normal circumstances, the network configuration success rate of the first WiFi module is relatively high and the reliability is sufficient.
[0060] Step S250: Control the second WiFi module to obtain network configuration information through the first WiFi module and connect to the router, the second WiFi module being the WiFi module that has not completed network configuration among all WiFi modules.
[0061] According to the network configuration and binding method of the refrigerator provided by the embodiment of the present invention, when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which there may be several WiFi modules that can successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure. The network configuration and binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0062] In the network configuration binding method provided in some embodiments of the present invention, the first WiFi module is a WiFi module detected with the largest wireless signal strength among several WiFi modules, or a WiFi module detected with a wireless signal strength greater than a preset strength among several WiFi modules.
[0063] In this embodiment, a WiFi module that detects the largest wireless signal strength is selected from among several WiFi modules as the first WiFi module, so that the communication connection established between the first WiFi module and the router is the most stable and reliable, and the success rate of successfully completing the network configuration is also the highest; a WiFi module that detects a wireless signal strength greater than a preset strength is selected from among several WiFi modules as the first WiFi module, and a reasonable preset strength can be set to make the communication connection established between the first WiFi module and the router stable and reliable, and the success rate of successfully completing the network configuration is relatively high.
[0064] Reference Figure 3 In the network configuration binding method provided in some embodiments of the present invention, several WiFi modules work in AP mode before establishing a connection with the mobile terminal, and the network configuration information includes the SSID and password of the wireless signal sent by the router. The control of the first WiFi module to connect to the router in step S240 includes but is not limited to steps S310 to S320:
[0065] Step S310: Control the first WiFi module to switch from AP mode to STA mode;
[0066] Step S320: Control the first WiFi module to establish a TCP link with the router according to the SSID and password.
[0067] It can be understood that the multiple WiFi modules of the refrigerator first work in AP mode, provide wireless access services, and allow other wireless devices to access. Therefore, users can access the multiple WiFi modules of the refrigerator in turn by opening the APP installed on the mobile terminal; and when the first WiFi module is configuring the network, it needs to switch to STA mode first, that is, the first WiFi module acts as a wireless terminal at this time, and then establishes a TCP link with the router according to the SSID and password to complete the network configuration.
[0068] Reference Figure 4 In the network configuration binding method provided in some embodiments of the present invention, controlling the second WiFi module to obtain network configuration information through the first WiFi module and connect to the router in step S250 includes but is not limited to steps S410 to S430:
[0069] Step S410: Control the first WiFi module to switch from STA mode to AP mode, and broadcast the SSID and password;
[0070] Step S420: Control the second WiFi module to work in STA mode, and establish a TCP link with the first WiFi module to receive the SSID and password sent by the first WiFi module;
[0071] Step S430: Control the second WiFi module to establish a TCP link with the router according to the SSID and password.
[0072] In this embodiment, after the first WiFi module establishes a connection with the router and completes the network configuration, it switches from STA mode to AP mode to provide wireless access services and allow other WiFi modules to access; the second WiFi module works in STA mode, accesses the first WiFi module as a wireless terminal, and establishes a TCP link with the first WiFi module; the first WiFi module broadcasts network configuration information including the SSID and password of the router; the second WiFi module receives the network configuration information broadcast by the first WiFi module, and finally establishes a TCP link with the router according to the SSID and password of the router, thereby completing the network configuration of the second WiFi module; the first WiFi module switches to AP mode to assist the second WiFi module in network configuration, which is beneficial to improving the success rate and reliability of network configuration of the second WiFi module.
[0073] In the network configuration binding method provided in some embodiments of the present invention, the method further includes:
[0074] After the WiFi module completes the network configuration, control the WiFi module to access the server to complete the device binding.
[0075] It should be noted that, in this embodiment, no matter the first WiFi module or the second WiFi module, after completing the network configuration, both will further access the server to complete the device binding.
[0076] In the network configuration binding method provided by some embodiments of the present invention, in step S410, the first WiFi module broadcasts the device binding information while broadcasting the SSID and password.
[0077] In this embodiment, after the first WiFi module completes network configuration, it will further access the server to complete device binding, so the first WiFi module will store device binding information; then when the first WiFi module switches to AP mode to assist the second WiFi module in network configuration, the stored device binding information will be broadcast along with the SSID and password, which can further assist the second WiFi module in completing device binding and improve the success rate and reliability of device binding.
[0078] In the network configuration binding method provided in some embodiments of the present invention, the method further includes:
[0079] After all second WiFi modules have completed network configuration, the first WiFi module is controlled to switch from AP mode to STA mode and establish a TCP link with the router.
[0080] In this embodiment, after the second WiFi module completes the network configuration, the first WiFi module switches back to the STA mode and acts as a wireless terminal again to establish a TCP link with the router and complete the network configuration again.
[0081] Next, combine Figure 5 , a specific embodiment of the present invention is clearly and detailedly introduced.
[0082] In a specific embodiment of the present invention, a method for binding a refrigerator to a network distribution network includes the following steps:
[0083] (1.1) When the refrigerator is powered on, multiple WiFi modules work in AP mode by default;
[0084] (1.2) Open the APP in the mobile terminal, and the mobile terminal accesses multiple WiFi modules in turn;
[0085] (1.3) The mobile terminal establishes a TCP link with several WiFi modules;
[0086] (1.4) The mobile terminal wirelessly broadcasts network configuration information, which includes the SSID and password of the wireless signal sent by the router;
[0087] (1.5) The WiFi module collects the wireless signal strength of the router according to the SSID and password of the wireless signal sent by the router, and transmits it to the operation control device;
[0088] (1.6) The operation control device compares the strength of each wireless signal and determines a first WiFi module from the plurality of WiFi modules;
[0089] (1.7) The operation control device sends a mode switching instruction to the first WiFi module;
[0090] (1.8) The first WiFi module switches from AP mode to STA mode;
[0091] (1.9) The first WiFi module establishes a TCP link with the router to complete network configuration;
[0092] (1.10) The first WiFi module accesses the server and completes device binding;
[0093] (1.11) The router’s SSID and password, as well as device binding information, are stored in the WiFi module’s flash memory;
[0094] (1.12) The first WiFi module switches from STA mode to AP mode;
[0095] (1.13) The second WiFi module is set to STA mode, where the second WiFi module is the WiFi module that has not completed network configuration among all WiFi modules;
[0096] (2.1) The second WiFi module accesses the AP of the first WiFi module;
[0097] (2.2) The second WiFi module establishes a TCP link with the first WiFi module;
[0098] (2.3) The first WiFi module wirelessly broadcasts the router’s SSID, password, and device binding information;
[0099] (2.4) The second WiFi module receives the wireless broadcast information;
[0100] (2.5) The second WiFi module establishes a TCP link with the router to complete the network configuration;
[0101] (2.6) The second WiFi module accesses the server to complete device binding;
[0102] (2.7) The first WiFi module switches from AP mode to STA mode;
[0103] (2.8) The first WiFi module establishes a TCP link with the router to complete network configuration;
[0104] (2.9) The first WiFi module accesses the server and completes device binding.
[0105] The above embodiment provides a network configuration and binding method for a refrigerator. The refrigerator is configured with multiple WiFi modules. The network configuration and device binding are first completed by controlling the first WiFi module, and then the first WiFi module assists the second WiFi module in network configuration and device binding. The network configuration and device binding of multiple WiFi modules can be completed conveniently and reliably.
[0106] Reference Figure 6 The second aspect of the present invention provides an operation control device 600, including a memory 610, a processor 620, and a computer program stored in the memory 610 and executable on the processor 620. The processor 620 executes the program to implement the network binding method of the refrigerator in the first aspect of the present invention, for example, executing Figure 2 Steps S210 to S250 of the method, Figure 3 Steps S310 to S320 of the method and Figure 4 Method steps S410 to S430.
[0107] According to the operation control device 600 provided by the embodiment of the present invention, when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which there may be several WiFi modules that can successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure. The network configuration binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0108] Reference Figure 1 The third aspect of the present invention provides a refrigerator, comprising a plurality of loads and the operation control device of the second aspect of the present invention, each load is provided with a WiFi module, and each WiFi module is connected to the operation control device.
[0109] According to the refrigerator provided by the embodiment of the present invention, when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which several WiFi modules may be able to successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure. The network configuration binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0110] In the refrigerator provided in some embodiments of the present invention, each WiFi module is provided with a flash memory for storing an SSID and a password.
[0111] In the refrigerator provided in some embodiments of the present invention, the load is provided with a load driving board, and the WiFi module is provided on the load driving board, or is connected to the load driving board through a serial port harness.
[0112] In addition, a fourth aspect of the present invention provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the refrigerator network binding method of the first aspect of the present invention, such as executing Figure 2 Steps S210 to S250 of the method, Figure 3 Steps S310 to S320 of the method and Figure 4 Method steps S410 to S430.
[0113] According to the computer-readable storage medium provided by the embodiment of the present invention, when it is necessary to configure the network for multiple WiFi modules of the refrigerator, the multiple WiFi modules are first accessed in turn through the mobile terminal, among which there may be several WiFi modules that can successfully establish a connection with the mobile terminal, and then the mobile terminal sends network configuration information to the several WiFi modules, so that the several WiFi modules can collect the wireless signal strength of the wireless signal sent by the router, and then determine the first WiFi module according to the wireless signal strength collected by each WiFi module. Since the first WiFi module is selected, the success rate of controlling the first WiFi module to connect to the router to complete the network configuration is high and the reliability is sufficient. After the first WiFi module completes the network configuration, the second WiFi module obtains the network configuration information through the first WiFi module and connects to the router to complete the network configuration, thereby avoiding the situation that the second WiFi module cannot successfully obtain the network configuration information due to unstable communication between the mobile terminal, resulting in network configuration failure. The network configuration binding method of the refrigerator can conveniently and reliably complete the network configuration of multiple WiFi modules.
[0114] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed methods above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium or a non-transitory medium and a communication medium or a temporary medium. As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk DVD or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0115] The embodiments of the present invention are described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.
Claims
1. A method for binding a refrigerator to a distribution network, characterized in that: The refrigerator includes a plurality of loads, each of which is provided with a WiFi module, and the method includes: Controlling a plurality of the WiFi modules to establish connections with mobile terminals respectively, and obtaining network configuration information sent by the mobile terminals; Acquire wireless signal strengths of a plurality of routers collected by the WiFi modules, wherein the wireless signal strengths are collected by the WiFi modules according to the network configuration information; Determine a first WiFi module from the plurality of WiFi modules according to the plurality of wireless signal strengths; Controlling the first WiFi module to connect to the router to complete network configuration; The second WiFi module is controlled to obtain the network configuration information through the first WiFi module and connect to the router, wherein the second WiFi module is a WiFi module for which network configuration has not been completed among all WiFi modules.
2. The distribution network binding method according to claim 1, characterized in that: The first WiFi module is a WiFi module detected with the largest wireless signal strength among the multiple WiFi modules, or is a WiFi module detected with a wireless signal strength greater than a preset strength among the multiple WiFi modules.
3. The distribution network binding method according to claim 1, characterized in that: Before the multiple WiFi modules establish a connection with the mobile terminal, they work in AP mode, the network configuration information includes the SSID and password of the wireless signal sent by the router, and the controlling the first WiFi module to connect with the router includes: Controlling the first WiFi module to switch from AP mode to STA mode; Control the first WiFi module to establish a TCP link with the router according to the SSID and the password.
4. The distribution network binding method according to claim 3, characterized in that: The controlling the second WiFi module to obtain the network configuration information through the first WiFi module and connect to the router includes: Control the first WiFi module to switch from STA mode to AP mode, and broadcast the SSID and the password; Control the second WiFi module to work in STA mode, and establish a TCP link with the first WiFi module to receive the SSID and the password sent by the first WiFi module; Control the second WiFi module to establish a TCP link with the router according to the SSID and the password.
5. The distribution network binding method according to claim 4, characterized in that: The method further comprises: After the WiFi module completes network configuration, the WiFi module is controlled to access the server to complete device binding.
6. The network distribution binding method according to claim 5, characterized in that: The first WiFi module broadcasts the device binding information while broadcasting the SSID and the password.
7. The network distribution binding method according to claim 3, characterized in that: The method further comprises: After all the second WiFi modules complete network configuration, the first WiFi module is controlled to switch from AP mode to STA mode, and a TCP link is established with the router.
8. An operation control device, characterized in that: It comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the network binding method for a refrigerator as described in any one of claims 1 to 7.
9. A refrigerator, characterized in that: It comprises a plurality of loads and the operation control device as claimed in claim 8, each of the loads is provided with a WiFi module, and each of the WiFi modules is connected to the operation control device.
10. The refrigerator according to claim 9, characterized in that: Each of the WiFi modules is provided with a flash memory for storing the SSID and the password.
11. The refrigerator according to claim 9, characterized in that: The load is provided with a load driving board, and the WiFi module is arranged on the load driving board, or is connected to the load driving board through a serial port harness.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the network binding method for a refrigerator as described in any one of claims 1 to 7.
