[0047] According to an embodiment of the remote monitoring method of the present invention, the first communication module includes a WiFi module, a Bluetooth module or a ZigBee module.
[0048] According to an embodiment of the remote monitoring method of the present invention, the second communication module includes a GPRS module.
[0049] The technical solution provided by the present invention realizes that multiple devices perform intra-LAN networking functions through WiFi modules, and finally establish a connection with a remote cloud server through one device (or a few devices) to realize data reporting. The above solution does not require every device to be connected to the server, saving cloud server resources; in addition, it also solves the dependence of the device to be networked on the router. The device has the function of selecting the network type, so that the network of the device is not affected by the quality of the network environment. The network type selection function refers to the way the device is connected to the network, and there are usually two ways: (1) The WiFi module is connected to the router to establish a connection with the remote cloud. (2) The GPRS module establishes a connection with the remote cloud, which is used when there is no networked router in the environment. Specifically, it detects whether there is a router in the environment. If there is a router in the environment, all WiFi devices will be connected to the router through one device (or a few devices) and then establish a connection with the remote cloud server. Save the traffic cost generated by the GPRS module. If there is no router in the environment, connect to the server through the GPRS module.
[0050] figure 2 It is a working flowchart of a preferred embodiment of the device networking steps of the remote monitoring method provided by the present invention. Such as figure 2 As shown, according to an embodiment of the remote monitoring method of the present invention, the device networking step further includes: step S210, a signal detection step for detecting network hotspots of similar devices through the first communication module provided in the device Step S220, the hotspot name acquisition step, used to obtain the name of the network hotspot of the similar device according to the detected signal of the network hotspot of the similar device, the name of the network hotspot of the device includes a MAC address (Media Access Control, The physical address of the network interface) or the device ID number; step S225, the networking step, is used to network similar devices in the local area network where the device is located according to the obtained names of the network hotspots of the similar devices.
[0051] image 3 It is a working flowchart of another preferred embodiment of the device networking steps of the remote monitoring method provided by the present invention. in image 3 The networking step S225 described in the above is replaced by step S230 and step S240. Such as image 3 As shown, according to an embodiment of the remote monitoring method of the present invention, the networking step S225 includes: step S230, an interception step, for intercepting the acquired last N digits of the names of network hotspots of similar devices, and The last N digits of the name of the network hot spot of the device are used as the networking code of the device, where N is the preset number of digits to be intercepted; step S240, the code networking step, is used to change the network code according to the intercepted networking code Networking of similar equipment in the local area network where the equipment is located.
[0052] Specifically, for example, an application in a large hotel requires multiple devices of the same type (such as washing machines). The WiFi module installed in the washing machine detects the signals of the network hotspots of similar equipment, and automatically searches for similar equipment, that is, finds other washing machines. The names of the network hotspots of similar devices are extracted according to the detected signals of the network hotspots of similar devices, where the name of the network hotspot of the device can be a MAC address or a device ID number preset for each device. In one embodiment, specific rules can be set directly according to the name of the device’s network hotspot for networking (step S225); in another more efficient embodiment, it is only necessary to intercept the last N of the device’s network hotspot name. The digits are used as the networking code, and specific rules are set according to the networking code for networking (step S230 and step S240).
[0053] According to an embodiment of the remote monitoring method of the present invention, the code networking step S240 includes: if the maximum value of all the intercepted networking codes is greater than the networking code of the device itself, then the device itself As a client, establish a connection with the device whose networking code is the maximum; or if the minimum value of all the intercepted networking codes is less than the networking code of the device itself, then the device itself is used as the client and the group The device with the smallest network code establishes a connection; or the device itself is used as a client, and the networking code is larger than the networking code of the device itself, and the difference between the networking code and the networking code of the device itself The device with the smallest value establishes a connection; or the device itself is used as a client, and the networking code is smaller than the networking code of the device itself, and the difference between the networking code and the networking code of the device itself is the smallest The device establishes a connection.
[0054] Specifically, specific rules can be set for networking, for example, the preset number of intercepted digits N can be N=4. Here is still taking the washing machine as an example. The WiFi module of each washing machine sorts the network names of all similar devices found according to the last four digits. Implementation mode 1: Use the last four largest equipment as the server to establish a network connection with it ; Implementation mode 2: You can also set the rule to use the device with the last four smallest digits as the server to establish a network connection with it; Embodiment 3: Each device is closest to the last four digits of its own network name, and is better than its own network The device with the last four digits of the name establishes a connection; Embodiment 4: Each device establishes a connection with the device with the last four digits of its own network name that is closest, and is smaller than the last four digits of its network name.
[0055] Figure 4 It is a working flowchart of another preferred embodiment of the device networking step of the remote monitoring method provided by the present invention. Such as Figure 4 As shown, according to an embodiment of the remote monitoring method of the present invention, after the intercepting step S230 and before the code networking step S240, a step S235 of determining the number of digits is further included for: comparing all the The size of the intercepted networking code; if at least two networking codes in all the intercepted networking codes are the same, then the preset intercepted number N is added to 1 before the code is executed Networking steps. Specifically, the MAC of the WiFi module is usually 8 bits, and the last four bits can be compared during comparison. If there are devices with the same size in the last four bits in the environment, the devices with the same size compare the last five bits of the MAC, and so on. MAC is the physical address of the network interface. When the device leaves the factory, the MAC of each module is a different 8-bit character, and the size must be divided when the 8-bit is compared.
[0056] According to an embodiment of the remote monitoring method of the present invention, the method further includes: after the device establishes a connection, its own network hotspot disappears.
[0057] According to an embodiment of the remote monitoring method of the present invention, in the step of determining the agent, the preset networking rule includes: determining a device that is not a client as a proxy device. For example, in the first embodiment of the above-mentioned setting specific rules for networking, the device with the last four largest digits of the device’s network name is used as the server. If there is only one device with the last four largest digits in the environment, then this device As a proxy device connection route or turn on the GPRS function, connect to the server; in another case, if there are two or more identical devices at the same time as the last four largest devices in the environment, these two or more devices can be used as gateways, connecting routes or Turn on the GPRS function to establish a connection with the remote cloud server.
[0058] According to the above embodiment, when N=4 and the networking rule is that the device with the largest last four digits of the network name of the device serves as the server, if there are devices with the same size of the last four digits in the environment, the following processing methods can be adopted:( 1) In the method executed in step S235, add 1 to the preset number of intercepted digits N and then execute the code networking step; (2) If the two identical devices are the last four digits of the network name in the environment at the same time The largest device, these two devices can simultaneously act as agents to establish a connection with the remote cloud server. In the same way, and so on, when the networking rule is that the device with the smallest four digits after the device's network name is used as a server, the same processing method is applied.
[0059] According to an embodiment of the remote monitoring method of the present invention, it further includes: obtaining the location information of the device through a positioning device provided in the device; and uploading the location information obtained by the positioning device to the server. The positioning device includes a GPS module or a GPRS module. Specifically, in one embodiment, if device positioning is required, a GPS module can be added. When a router is detected in the environment, the device switches to the GPS+WiFi module solution to realize data reporting and device positioning functions, and Wifi module connection The router establishes a connection with the remote cloud; in another embodiment, the GPRS module itself has a positioning function, and the connection is established with the remote cloud through the GPRS module, which is used when there is no networked router in the environment.
[0060] Figure 5 It is a working flowchart of a preferred embodiment of the remote monitoring method provided by the present invention. Such as Figure 5 As shown, according to an embodiment of the remote monitoring method of the present invention, after the step S130 of connecting to the server, the method further includes: step S140, reporting the status data of similar devices in the local area network where the device is located; and/or, step S150, receiving An instruction sent from the server or a terminal connected to the server is configured to perform settings or perform corresponding operation actions according to the received instruction, and the terminal includes a mobile phone or a computer. After the device has established a connection with the remote cloud server, it can report the status of all devices in the local area network, and it can also be centrally controlled through the mobile phone app, such as uniformly setting the device and regularly maintaining the device.
[0061] Image 6 It is a working flow chart of another preferred embodiment of the device networking steps of the remote monitoring method provided by the present invention; Figure 7 It is a schematic diagram of the network topology of the remote monitoring method provided by the present invention. Such as Image 6 with Figure 7 As shown, the technical solution provided by the present invention is applicable to all equipment that may be piled up. As long as the manufacturer has a requirement for remote monitoring of these equipment, the technical solution of the present invention can be used. Taking the shared washing machine as an example, the implementation steps are as follows:
[0062] 1) Each shared washing machine comes with its own WiFi module and GPRS module. The default WiFi networking mode is when power on.
[0063] 2) After power-on, the WiFi module of the washing machine automatically searches for similar devices according to its factory default network name, and detects the same type of hotspots in the environment for 5 seconds. 5s refers to the time to detect the same type of hot spots in the environment. This time is not fixed and can be adjusted as needed.
[0064] 3) The factory default network name of the device can be composed of the manufacturer name + the last few digits of the WiFi module MAC address. Here we take the last four digits of MAC as an example.
[0065] 4) Each washing machine WiFi module sorts the network names of all similar devices found by itself according to the last four digits. The device uses the device with the largest last four digits as the server to establish a network connection with it. If it is the largest, wait for other devices to establish a connection with it. See Figure 7 , Suppose there are 10 washing machines in the environment, and the hotspot names are 1231, 1232, 1233, 1234, 1235, 1236, 1237, 1238, 1239, 123a, which are convenient for description, and they are labeled 1-10 devices. Then the final search results are as follows: No. 1 device establishes a connection with No. 5; No. 2 device establishes a connection with No. 8; No. 3, 4, 5, and 6 devices establish a connection with No. 9; No. 7, 8 devices establish a connection with No. 10; The 9th device establishes a connection with the 10th device; the 10th device itself is the largest, and it waits for other devices to establish a connection with it.
[0066] 5) After each washing machine executes the above process, there is a device in the environment that does not actively connect to other devices as a client, that is Image 6 with Figure 7 No. 10 device in the middle, this device automatically turns on the GPRS function at this time, establishes a connection with the manufacturer’s cloud, and reports the status of all devices in the range.
[0067] 6) At the same time, the app of this type of equipment can be used for long- and short-range centralized control. For example, in a large hotel that needs to use multiple washing machines at the same time, the multiple washing machines are networked and used for centralized control using a mobile phone app, which avoids setting one by one and reduces the workload.
[0068] Another aspect of the present invention provides a remote monitoring device. Figure 8 It is the overall frame diagram of the remote monitoring device provided by the present invention. Such as Figure 8 As shown, the remote monitoring device of the present invention includes: a device networking unit 100, configured to: network similar devices in the local area network where the device is located through a first communication module provided in the device; determining the agent unit 200, configured to: The networking rules determine that at least one device in the local area network where the device is located is a proxy device; the connection server unit 300 is used to: detect whether the proxy device is connected to a router, and if so, the proxy device connects to the server through the router; The proxy device is connected to the server through a second communication module provided on the proxy device.
[0069] According to an embodiment of the remote monitoring device of the present invention, the first communication module includes a WiFi module, a Bluetooth module or a ZigBee module; and/or, the second communication module includes a GPRS module.
[0070] Picture 9 It is a schematic structural diagram of a preferred embodiment of the remote monitoring device provided by the present invention. Such as Picture 9 As shown, according to an embodiment of the remote monitoring device of the present invention, the device networking unit 100 further includes: a signal detection subunit 110 for detecting network hotspots of similar devices through the first communication module provided in the device The hotspot name acquisition subunit 120 is used to obtain the name of the network hotspot of the similar device according to the detected signal of the network hotspot of the similar device, and the name of the network hotspot of the device includes a MAC address or a device ID number; The networking sub-unit 150 is configured to network similar devices in the local area network where the devices are located according to the acquired names of network hotspots of similar devices.
[0071] Picture 10 It is a schematic structural diagram of another preferred embodiment of the remote monitoring device provided by the present invention. Such as Picture 10 As shown, according to an embodiment of the remote monitoring device of the present invention, the networking subunit 150 includes: an intercepting subunit 130 for intercepting the acquired last N digits of the names of network hotspots of similar devices, and The last N digits of the name of the network hotspot of the device are used as the networking code of the device, where N is the preset number of intercepted digits; the code networking sub-unit 140 is used to connect the device according to the intercepted networking code Networking of similar equipment in the local area network.
[0072] According to an embodiment of the remote monitoring device of the present invention, the code networking subunit 140 is further configured to: if the maximum value of all the intercepted networking codes is greater than the networking code of the device itself, then The device itself is used as a client to establish a connection with the device whose networking code is the maximum; or if the minimum value of all the intercepted networking codes is less than the networking code of the device itself, the device itself is regarded as the client The terminal establishes a connection with the device with the smallest networking code; or the device itself is used as a client, and the networking code is larger than the networking code of the device itself, and the networking code is connected to the networking code of the device itself The device with the smallest code difference establishes a connection; or the device itself is used as a client, and the networking code is smaller than the networking code of the device itself, and the difference between the networking code and the networking code of the device itself The device with the smallest value establishes a connection.
[0073] Picture 11 It is a schematic structural diagram of another preferred embodiment of the remote monitoring device provided by the present invention. Such as Picture 11 As shown, according to an embodiment of the remote monitoring device of the present invention, the networking sub-unit 150 further includes a digital digit determination sub-unit 135 for: comparing the sizes of all the intercepted networking codes; In the case that at least two networking codes in the intercepted networking codes are equal, the preset intercepted number N is added to 1, and then the function executed by the code networking subunit is executed.
[0074] According to an embodiment of the remote monitoring device of the present invention, it further includes: after the device establishes a connection, its own network hotspot disappears.
[0075] According to an embodiment of the remote monitoring apparatus of the present invention, in the determining agent unit 200, the preset networking rule includes: determining a device that is not a client as a proxy device.
[0076] According to an embodiment of the remote monitoring device of the present invention, it further includes a positioning device 400 provided in the device for obtaining location information of the device; the connection server unit is also used for uploading the location information obtained by the positioning device To the server.
[0077] According to an embodiment of the remote monitoring device of the present invention, the positioning device includes a GPS module or a GPRS module.
[0078] According to an embodiment of the remote monitoring device of the present invention, it further includes: a data reporting unit 500 for reporting status data of similar devices in the local area network where the device is located; and/or an execution unit 600 for receiving data from the server or An instruction sent from a terminal connected to the server is configured to perform settings or perform corresponding operation actions according to the received instruction, and the terminal includes a mobile phone or a computer.
[0079] In yet another aspect of the present invention, there is provided a device having any of the above-mentioned devices. According to an embodiment of the device of the present invention, the device includes a washing machine or an air conditioner.
[0080] Another aspect of the present invention provides a device including a processor, a memory, and a computer program stored in the memory and running on the processor. When the processor executes the program, it implements any of the above methods. step. According to an embodiment of the device of the present invention, the device includes a washing machine or an air conditioner.
[0081] Another aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any of the above methods are realized.