Device 3G or 4G network configuration method, system, device end and APP end

The 3G or 4G network configuration method simplifies network setup for smart devices, ensuring stable outdoor use and overcoming WiFi range limitations by using a 3/4G module and cloud service ends to determine and reconfigure network states.

CN114339839BActive Publication Date: 2024-12-06SHENZHEN HUA XIN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210005533.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-05
Publication Date
2024-12-06
Estimated Expiration
2042-01-05

AI Technical Summary

Technical Problem

Smart home devices are limited to indoor use due to the limited coverage of WiFi, which decays with distance, and WiFi network configuration is complex, reducing efficiency.

Method used

A 3G or 4G network configuration method and system using a device end with a 3/4G module, an APP end, and cloud service ends to simplify network configuration, ensuring stable outdoor use with a 3/4G module, and includes a method to determine network configuration states and reconfigure if necessary.

Benefits of technology

The method simplifies network configuration, provides stable signals, and enables outdoor use with strong anti-interference capabilities, overcoming the limitations of WiFi range and complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339839B_ABST
    Figure CN114339839B_ABST
Patent Text Reader

Abstract

The present invention provides a device 3G or 4G network configuration method, system, device end and APP end, and adopts 3 / 4G module to perform network configuration on the device end, which not only has simple network configuration and low learning cost, but also has stable signal and will not be attenuated with the movement of the machine; in addition, it has strong anti-interference ability and can be suitable for outdoor or outdoor environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a device 3G or 4G network configuration method, system, device end and APP end. Background Art

[0002] Currently, smart home devices have become an indispensable part of people's lives. Since there is generally a home wifi environment indoors, in order to save costs, smart home devices usually use wifi modules for network connection; however, due to the limited coverage of wifi, smart home devices can generally only be used indoors, which greatly limits the use environment of the equipment; and the wifi signal will decay proportionally with the increase of distance, so it cannot be connected in the case of long distance; in addition, the wifi network configuration is relatively complicated and requires multiple steps, which greatly reduces the efficiency of network configuration. Summary of the invention

[0003] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a device 3G or 4G network configuration method, system, device end and APP end, so as to solve the above technical problems.

[0004] To achieve the above-mentioned purpose and other related purposes, the present invention provides a device 3G or 4G network configuration method, which is applied to a device 3G or 4G network configuration system, comprising: a device end applied to an SDK client and having a 3 / 4G module, an APP end, a first cloud service end and a second cloud service end, the method comprising: the SDK client initiates an https request to the connected first cloud service end; the first cloud service end returns corresponding connection information based on the SDK unique identifier corresponding to the SDK client; the SDK client connects to the corresponding second cloud service end based on the connection information received and returned by the first cloud service end; the SDK client transmits the corresponding device information to the second cloud service end; the APP end connects to the second cloud service end according to the user registration area; when the second cloud service end receives the corresponding information of preparing to enter the network configuration state informed by the device end through the 3 / 4G module after turning on the network configuration state, it enters the network configuration waiting; the APP end obtains Device binding identifier; the APP side sends the https request information including the user login information and the device binding identifier to the second cloud server; the second cloud server determines whether the current device side is in the network configuration state based on the https request information, and sends the corresponding binding information judged to be in the network configuration state or the corresponding unconfigured network information judged not to be in the network configuration state; if the APP side receives the corresponding binding success message sent by the second cloud server, the APP side connects to the MQTT server and writes the qrcode information into the topic subscribed by the SDK client to inform the SDK client of the successful binding; if the APP side receives the corresponding binding failure message sent by the second cloud server, the APP side sends the modification information to the first cloud server; the first cloud server modifies the SDK unique identifier and the regional information of the APP side based on the modification information to be consistent, so that the device side can re-configure the network.

[0005] In an embodiment of the present invention, the connection information includes: connection domain name information and long connection information.

[0006] In one embodiment of the present invention, the method in which the APP end obtains the device binding identifier includes: the APP end obtains the device binding identifier by scanning a QR code corresponding to the SDK client.

[0007] In one embodiment of the present invention, the second cloud server determines whether the current device is in a network configuration state based on the https request information, and sends binding information corresponding to the judgment that it is in a network configuration state or unconfigured information corresponding to the judgment that it is not in a network configuration state. The method includes: the second cloud server determines whether the current device is in a network configuration state based on the https request information; if it is judged to be in a network configuration state, the user corresponding to the user login information is bound to the device; if the binding is successful, the binding information corresponding to the successful binding is sent; otherwise, the binding information corresponding to the failed binding due to the fact that the device and the APP are not in the same area is sent; if it is judged that it is not in a network configuration state, the unconfigured information corresponding to the device not being in a network configuration state is sent to the device.

[0008] In one embodiment of the present invention, the first cloud server modifies the SDK unique identifier to be consistent with the regional information where the APP is located, so that the device can re-configure the network, including: the first cloud server modifies the SDK unique identifier to be consistent with the regional information where the APP is located based on the modification information, and informs the APP, so that the SDK client of the device can re-initiate an https request to the connected first cloud server.

[0009] In one embodiment of the present invention, the modification information includes: a unique identifier of the SDK and the region information where the APP terminal is located.

[0010] To achieve the above-mentioned purpose and other related purposes, the present invention provides a device 3G or 4G network configuration system, the system comprising: a device end applied to an SDK client and having a 3 / 4G module, an APP end, a first cloud service end and a second cloud service end; wherein the SDK client is used to initiate an https request to the first cloud service end connected; the first cloud service end is used to return corresponding connection information based on the SDK unique identifier corresponding to the SDK client; the SDK client is also used to connect to the corresponding second cloud service end based on the connection information received and returned by the first cloud service end, and transmit the corresponding device information to the second cloud service end; the APP end is used to connect to the second cloud service end according to the user registration area; the second cloud service end is also used to enter the network configuration waiting when receiving the corresponding information of preparing to enter the network configuration state informed by the device end through the 3 / 4G module after turning on the network configuration state; the APP end is also used to Used to obtain the device binding identifier, and send the https request information including the user login information and the device binding identifier to the second cloud server; the second cloud server is also used to determine whether the current device is in a network configuration state based on the https request information, and send the corresponding binding information determined to be in a network configuration state or the corresponding unconfigured network information determined to be not in a network configuration state; the APP is also used to connect to the MQTT server and write the qrcode information into the topic subscribed by the SDK client when receiving a binding message corresponding to a successful binding sent by the second cloud server, so as to inform the client that the binding is successful; if a binding message corresponding to a failed binding is received from the second cloud server, the modification information is sent to the first cloud server; the first cloud server is also used to modify the SDK unique identifier to be consistent with the regional information of the APP based on the modification information, so that the device can re-configure the network.

[0011] In one embodiment of the present invention, judging whether the current device end is in a network configuration state based on the https request information, and sending binding information corresponding to the judgment of being in a network configuration state or unconfigured network information corresponding to the judgment of not being in a network configuration state includes: judging whether the current device end is in a network configuration state based on the https request information; if it is judged to be in a network configuration state, binding the user corresponding to the user login information to the device end; if the binding is successful, sending binding information corresponding to the successful binding; otherwise, sending binding information corresponding to the binding failure due to the fact that the device end and the APP end are not in the same area; if it is judged to be not in a network configuration state, sending unconfigured network information corresponding to the device end not being in a network configuration state to the device end.

[0012] To achieve the above-mentioned purpose and other related purposes, the present invention provides a device end, including: a 3 / 4G module and an SDK client; wherein the SDK client includes: a first cloud server SDK communication module, used to establish a connection with the first cloud server, and initiate an https request to the first cloud server; receive the corresponding connection information returned by the first cloud server based on the SDK unique identifier corresponding to the SDK client; a second cloud server SDK communication module, connected to the first cloud server SDK communication module, used to connect to the corresponding second cloud server based on the connection information, and transmit the corresponding device information to the second cloud server; an MQTT server SDK communication module, used to establish a connection with the MQTT server, and subscribe to the topic of the qrcode information written by the APP segment to the MQTT server to obtain the successful binding; the 3 / 4G module is used to inform the second cloud server of the corresponding information of preparing to enter the network configuration state after the network configuration state is turned on at the device end.

[0013] To achieve the above-mentioned purpose and other related purposes, the present invention provides an APP end, including: a second cloud server APP communication module, used to connect to the second cloud server according to the user registration area; a device binding identification module, connected to the second cloud server APP communication module, used to obtain the device binding identification; the second cloud server APP communication module is also used to send the https request information including the user login information and the device binding identification to the second cloud server; receive the corresponding binding message of successful binding or the corresponding binding message of failed binding sent by the second cloud server; an MQTT server APP communication module, connected to the second cloud server APP communication module, used to connect the MQTT server and write the qrcode information into the topic subscribed by the SDK client if the corresponding binding message of successful binding sent by the second cloud server is received, so as to inform the SDK client of the successful binding; a first cloud server APP communication module, connected to the second cloud server APP communication module, used to send the modification information to the first cloud server if the corresponding binding message of failed binding sent by the second cloud server is received, so that the first cloud server can modify the SDK unique identification to be consistent with the regional information of the APP end.

[0014] As described above, the present invention is a device 3G or 4G network configuration method, system, device end and APP end, which has the following beneficial effects: the present invention adopts a 3 / 4G module to perform network configuration on the device end, which not only has simple network configuration and low learning cost; but also has stable signal and will not attenuate with the movement of the machine; in addition, it has strong anti-interference ability and can be used in outdoor or outdoor environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 Shown is a structural schematic diagram of a device 3G or 4G network configuration system in one embodiment of the present invention.

[0016] Figure 2 Shown is a flowchart of a method for configuring a 3G or 4G network for a device in an embodiment of the present invention.

[0017] Figure 3 Shown is a schematic diagram of the structure of a device end in one embodiment of the present invention.

[0018] Figure 4 Shown is a schematic diagram of the structure of the APP end in one embodiment of the present invention.

[0019] Figure 5 Shown is a flowchart of a method for configuring a 3G or 4G network for a device in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0021] It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present invention. It should be understood that other embodiments may also be used, and that mechanical composition, structural, electrical and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present invention is limited only by the claims of the published patents. The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.

[0022] Throughout the specification, when a part is said to be "connected" to another part, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a part is said to "include" a certain constituent element, unless otherwise stated, it does not exclude other constituent elements, but means that other constituent elements may be included.

[0023] The terms first, second and third mentioned herein are used to describe various parts, components, regions, layers and / or segments, but are not limited thereto. These terms are only used to distinguish a certain part, component, region, layer or segment from other parts, components, regions, layers or segments. Therefore, the first part, component, region, layer or segment described below may refer to the second part, component, region, layer or segment within the scope of the present invention.

[0024] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.

[0025] A method for configuring a 3G or 4G network for a device is provided in an embodiment of the present invention. The present invention uses a 3 / 4G module to perform network configuration on the device side, which not only simplifies the network configuration and has a low learning cost, but also has a stable signal that will not attenuate with the movement of the machine. In addition, it has strong anti-interference capability and can be used in outdoor or outdoor environments.

[0026] The following is a detailed description of the embodiments of the present invention with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention. The present invention can be embodied in many different forms and is not limited to the embodiments described herein.

[0027] like Figure 1 As shown, a schematic diagram of the structure of the device 3G or 4G network configuration system in an embodiment of the present application is shown.

[0028] A device end 10 applied to an SDK client 11 and having a 3 / 4G module 12, an APP end 13, a first cloud service end 14 and a second cloud service end 15;

[0029] In this embodiment, the device end 10 and the APP end 13 can be applied to a terminal, and the terminal can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture E interface display perts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture E interface display perts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) players, laptop computers and desktop computers, etc.

[0030] The SDK client 11 is used to initiate an https request to the first cloud server 14 connected; the first cloud server 14 is used to return the corresponding connection information based on the SDK unique identifier corresponding to the SDK client 11; the SDK client 11 is also used to connect to the corresponding second cloud server 15 based on the connection information received and returned by the first cloud server 14, and transmit the corresponding device information to the second cloud server 15; the APP end 13 is used to connect to the second cloud server 15 according to the user registration area; the second cloud server 15 is also used to enter the network configuration waiting when receiving the corresponding information of preparing to enter the network configuration state informed by the device end 10 through the 3 / 4G module 12 after the network configuration state is turned on; the APP end 13 is also used to obtain the device binding identifier, and send the https request information including the user login information and the device binding identifier Send to the second cloud server 15; the second cloud server 15 is also used to determine whether the current device end 10 is in a network configuration state based on the https request information, and send the corresponding binding information judged to be in a network configuration state or the corresponding unconfigured network information judged not to be in a network configuration state; the APP end 13 is also used to connect to the MQTT server and write the qrcode information into the topic subscribed by the SDK client 11 if a binding message corresponding to a successful binding is received from the second cloud server 15, so as to inform the client that the binding is successful; if a binding message corresponding to a failed binding is received from the second cloud server 15, the modification information is sent to the first cloud server 14; the first cloud server 14 is also used to modify the SDK unique identifier to be consistent with the regional information of the APP end based on the modification information, so that the device end 10 can re-configure the network.

[0031] In one embodiment, the second cloud service end 15 is also used to determine whether the current device end is in a network configuration state based on the https request information, and send binding information corresponding to the determination that it is in a network configuration state or non-network configuration information corresponding to the determination that it is not in a network configuration state. The method includes: determining whether the current device end is in a network configuration state based on the https request information; if it is determined to be in a network configuration state, binding the user corresponding to the user login information to the device end 10; if the binding is successful, sending the binding information corresponding to the successful binding; otherwise, sending the binding information corresponding to the binding failure due to the fact that the device end 10 and the APP end 13 are not in the same area; if it is determined that it is not in a network configuration state, sending the non-network configuration information corresponding to the device end not being in a network configuration state to the device end 10.

[0032] Similar to the principle of the above embodiment, the present invention provides a method for configuring a 3G or 4G network of a device.

[0033] The following provides specific embodiments in conjunction with the accompanying drawings:

[0034] like Figure 2 A schematic diagram showing a flow chart of a method for configuring a 3G or 4G network for a device in an embodiment of the present invention.

[0035] A device end, an APP end, a first cloud service end, and a second cloud service end applied to an SDK client and having a 3 / 4G module, the method includes:

[0036] Step S21: The SDK client establishes a connection with the first cloud server.

[0037] Step S22: The SDK client initiates an https request to the connected first cloud server.

[0038] Optionally, the https request includes: a unique SDK unique identifier (UUID information) corresponding to the SDK client.

[0039] Step S23: The first cloud server returns corresponding connection information based on the SDK unique identifier corresponding to the SDK client.

[0040] Optionally, the first cloud server searches for corresponding connection information according to the SDK unique identifier and returns it to the SDK client; wherein the connection information includes: a connection domain name.

[0041] Optionally, the connection information includes: connection domain name information and long connection information.

[0042] Step S24: the SDK client connects to the corresponding second cloud server based on the connection information received and returned by the first cloud server.

[0043] Optionally, the SDK client connects to the corresponding second cloud server according to the received domain name information.

[0044] Step S25: The SDK client transmits the corresponding device information to the second cloud server.

[0045] Step S26: The APP terminal connects to the second cloud service terminal according to the user registration area.

[0046] Optionally, the APP connects to the second cloud server according to the user registration area of ​​the corresponding user.

[0047] Step S27: When the second cloud service end receives the information corresponding to the preparation to enter the network configuration state notified by the device end through the 3 / 4G module after the network configuration state is turned on, it enters the network configuration waiting state.

[0048] Optionally, the device side enters the network configuration mode, and the device side informs the second cloud server side through the 3 / 4G module that it is ready to enter the network configuration mode. After receiving the information, the second cloud server side enters the network configuration mode and waits for the countdown.

[0049] Step S28: The APP obtains the device binding identifier.

[0050] Optionally, the APP obtains the device binding identifier by scanning a QR code corresponding to the SDK client.

[0051] Step S29: The APP sends the https request information including the user login information and the device binding identifier to the second cloud service end.

[0052] Step S210: The second cloud service end determines whether the current device end is in a network configuration state based on the https request information, and sends binding information corresponding to the judgment that it is in a network configuration state or unconfigured network information corresponding to the judgment that it is not in a network configuration state.

[0053] Optionally, step S210 includes:

[0054] The second cloud service end determines whether the current device end is in a network configuration state based on the https request information;

[0055] If it is determined that the network is in the distribution state, the user corresponding to the user login information is bound to the device end; if the binding is successful, the binding information corresponding to the successful binding is sent to the APP end; otherwise, the binding information corresponding to the failed binding due to the device end and the APP end being not in the same area is sent to the APP end;

[0056] If it is determined that the device is not in the network configuration state, non-network configuration information corresponding to the device being not in the network configuration state is sent to the device end, so that the device end can reopen the network configuration state.

[0057] Step S2101: If the APP receives a binding message corresponding to a successful binding sent by the second cloud server, the APP connects to the MQTT server and writes the qrcode information into the topic subscribed by the SDK client to inform the SDK client of the successful binding.

[0058] Optionally, if the APP receives a corresponding binding message of successful binding sent by the second cloud server, the APP connects to the MQTT server; writes the qrcode information into the topic subscribed by the SDK client; when the SDK client subscribes to the topic to the MQTT server, it is learned that the binding has been successful.

[0059] Step S2102: If the APP receives a binding message corresponding to a binding failure sent by the second cloud server, the APP sends modification information to the first cloud server.

[0060] Optionally, if the APP receives a binding message corresponding to a binding failure sent by the second cloud server, the APP sends the corresponding UUID information and the area information where the APP is located to the first cloud server.

[0061] Step 211: The first cloud service end modifies the SDK unique identifier and the regional information where the APP end is located to be consistent based on the modification information, so that the device end can reconfigure the network.

[0062] Optionally, the first cloud service end modifies the UUID information to be consistent with the area information where the APP end is located based on the modification information, so that the device end can reconfigure the network.

[0063] Optionally, step S211 includes: the first cloud server modifies the SDK unique identifier to be consistent with the regional information of the APP end based on the modification information, and informs the APP end, so that the SDK client on the device end re-initiates an https request to the connected first cloud server end;

[0064] Specifically, the first cloud server modifies the UUID information to be consistent with the area information of the APP based on the modification information, and informs the APP so that the SDK client on the device can re-initiate an https request to the connected first cloud server and continue with subsequent network configuration steps.

[0065] Optionally, the first cloud server modifies the UUID information to be consistent with the regional information of the APP based on the UUID information corresponding to the APP and the regional information of the APP, and informs the APP so that the SDK client on the device can re-initiate an https request to the connected first cloud server and continue with subsequent network configuration steps.

[0066] like Figure 3 A schematic diagram showing the structure of a device end in an embodiment of the present invention is shown.

[0067] The device side includes:

[0068] 3 / 4G module 31 and SDK client 32;

[0069] The SDK client 32 includes: a first cloud server SDK communication module 321, which is used to establish a connection with the first cloud server and initiate an https request to the first cloud server; receive the corresponding connection information returned by the first cloud server based on the SDK unique identifier corresponding to the SDK client; a second cloud server SDK communication module 322, which is connected to the first cloud server SDK communication module, and is used to connect to the corresponding second cloud server based on the connection information, and transmit the corresponding device information to the second cloud server; an MQTT server SDK communication module 323, which is used to establish a connection with the MQTT server and subscribe to the topic of the qrcode information written by the APP segment to the MQTT server to obtain the successful binding;

[0070] The 3 / 4G module 31 is used to inform the second cloud server of the corresponding information of preparing to enter the network configuration state after the device end starts the network configuration state.

[0071] Since the implementation principle of the device side has been described in the aforementioned embodiment, it will not be repeated here.

[0072] like Figure 4 A schematic diagram showing the structure of an APP terminal in an embodiment of the present invention is shown.

[0073] The APP end includes: a first cloud server APP communication module 41, a second cloud server APP communication module 42, a device binding identification module 43 and an MQTT server APP communication module 44;

[0074] Among them, the second cloud server APP communication module 42 is used to connect to the second cloud server according to the user registration area; the device binding identification module 43 is connected to the second cloud server APP communication module 42 to obtain the device binding identification; the second cloud server APP communication module 42 is also used to send the https request information including the user login information and the device binding identification to the second cloud server; receive the corresponding binding message of successful binding or the corresponding binding message of failed binding sent by the second cloud server; the MQTT server APP communication module 44 is connected to the second cloud server APP communication module 42, and is used for if the corresponding binding message of successful binding sent by the second cloud server is received, the APP end connects to the MQTT server and writes the qrcode information into the topic subscribed by the SDK client to inform the SDK client of the successful binding; the first cloud server APP communication module 41 is connected to the second cloud server APP communication module 42, and is used for if the corresponding binding message of failed binding sent by the second cloud server is received, the modification information is sent to the first cloud server, so that the first cloud server can modify the SDK unique identification to be consistent with the regional information of the APP end.

[0075] Since the implementation principle of the APP end has been described in the aforementioned embodiment, it will not be repeated here.

[0076] In order to better describe the device 3G or 4G network configuration method, the following specific embodiments are provided for illustration;

[0077] Embodiment 1: A method for configuring a 3G or 4G network of a device; Figure 5 3G or 4G network configuration method of the device in this embodiment.

[0078] The specific implementation principle is as follows:

[0079] 1.Device SDK connects to the cloud server:

[0080] ①The SDK client initiates an https request to Server1 and searches for the corresponding domain name to connect to the server.

[0081] ②Server1 returns the connection domain name, long connection and other information to the SDK client based on the SDK unique identifier.

[0082] ③The SDK client connects to the cloud corresponding to Server2 according to the connection domain name returned by Server1, and transmits the client information to the cloud.

[0083] 2. APP network configuration operation:

[0084] ① APP connects to Server2 corresponding to the cloud server according to the user registration area;

[0085] ② Long press one or several buttons on the device to make the device enter the network configuration mode. The device informs Server2 through the 3 / 4G module that it is ready to enter the network configuration mode. After receiving this information, Server2 enters the network configuration and waits for the countdown.

[0086] ③The APP obtains the unique device binding identifier by scanning the QR code of the SDK client;

[0087] ④The APP will carry the user login information and the unique identification message obtained by scanning the code, and initiate a request to Server2 through https.

[0088] ⑤Server2 determines whether the current device is in the network configuration state based on the https request sent by the APP;

[0089] a. If it is determined to be in the network configuration state: bind the user to the corresponding device. If the binding is successful, return the binding success information to the APP. Otherwise, return that the device and the APP are not in the same area.

[0090] b. If it is judged to be not in: Return device is not in network configuration state, please follow the instructions.

[0091] ⑥After receiving the successful binding, the APP connects to MQTT and writes the qrcode information into the topic subscribed by the SDK client, telling the client that the binding is successful.

[0092] ⑦After receiving the binding failure message, APP connects to the cloud domain name corresponding to Server1 and transmits the UUID and the area information where APP is located to Server1. After receiving the modification information, the cloud corresponding to Server1 modifies the UUID information to be consistent with the area where APP is located and tells APP. At this time, the SDK client repeats step 1 until the binding is successful.

[0093] When the APP and the device-side SDK cannot perform long connection information interaction, the device 3G or 4G network configuration method in this embodiment can be used to implement the binding of the device and the APP user using the mobile 3 / 4G module.

[0094] In summary, the 3G or 4G network configuration method, system, device end and APP end of the present invention use 3 / 4G module to configure the network of the device end, which is not only simple to configure, but also has low learning cost; and the signal is stable and will not be attenuated with the movement of the machine; in addition, the anti-interference ability is strong and can be applied to outdoor or outdoor environments. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0095] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A device 3G or 4G network configuration method, characterized in that: Applied to a device 3G or 4G network configuration system, it includes: a device end including a 3 / 4G module and an SDK client, an APP end, a first cloud service end, and a second cloud service end, and the method includes: The SDK client initiates an https request to the first cloud server to which it is connected; The first cloud server returns corresponding connection information based on the SDK unique identifier corresponding to the SDK client; The SDK client connects to the corresponding second cloud server based on the connection information received and returned by the first cloud server; The SDK client transmits the corresponding device information to the second cloud service end; The APP terminal connects to the second cloud service terminal according to the user registration area; When the second cloud service end receives the information corresponding to the preparation to enter the network configuration state informed by the device end through the 3 / 4G module after the network configuration state is turned on, the second cloud service end enters the network configuration waiting state; The APP end obtains the device binding identifier; The APP sends the https request information including the user login information and the device binding identifier to the second cloud service end; The second cloud service end determines whether the current device end is in a network configuration state based on the https request information, and sends binding information corresponding to the judgment that the device end is in a network configuration state or unconfigured network information corresponding to the judgment that the device end is not in a network configuration state; If the APP receives a binding message corresponding to a successful binding sent by the second cloud server, the APP connects to the MQTT server and writes the qrcode information into the topic subscribed by the SDK client to inform the SDK client of a successful binding; If the APP receives a binding message corresponding to a binding failure sent by the second cloud server, the APP sends modification information to the first cloud server; The first cloud service end modifies the SDK unique identifier and the regional information where the APP end is located to be consistent based on the modification information, so that the device end can reconfigure the network.

2. The device 3G or 4G network configuration method according to claim 1, characterized in that: The connection information includes: connection domain name information and long connection information.

3. The device 3G or 4G network configuration method according to claim 1, characterized in that: The method for the APP to obtain the device binding identifier includes: The APP obtains the device binding identifier by scanning the QR code corresponding to the SDK client.

4. The device 3G or 4G network configuration method according to claim 1, characterized in that: The second cloud service end determines whether the current device end is in a network configuration state based on the https request information, and sends binding information corresponding to the state of being in a network configuration state or unconfigured network information corresponding to the state of not being in a network configuration state, including: The second cloud service end determines whether the current device end is in a network configuration state based on the https request information; If it is determined that the network is in the distribution state, the user corresponding to the user login information is bound to the device end; if the binding is successful, the binding information corresponding to the successful binding is sent; otherwise, the binding information corresponding to the failed binding due to the device end and the APP end being in different areas is sent; If it is determined that the device is not in the network configuration state, non-network configuration information corresponding to the device being not in the network configuration state is sent to the device.

5. The device 3G or 4G network configuration method according to claim 1, characterized in that: The first cloud service end modifies the SDK unique identifier to be consistent with the regional information of the APP end so that the device end can reconfigure the network, including: The first cloud server modifies the SDK unique identifier to be consistent with the regional information of the APP based on the modification information, and informs the APP so that the SDK client on the device can re-initiate an https request to the connected first cloud server.

6. The device 3G or 4G network configuration method according to claim 1 or 5, characterized in that: The modification information includes: the SDK unique identifier and the region information where the APP is located.

7. A device 3G or 4G network configuration system, characterized in that: The system comprises: Including 3 / 4G module and SDK client device, APP, first cloud server and second cloud server; Among them, the SDK client is used to initiate an https request to the first cloud server that is connected; the first cloud server is used to return the corresponding connection information based on the SDK unique identifier corresponding to the SDK client; the SDK client is also used to connect to the corresponding second cloud server based on the connection information received and returned by the first cloud server, and transmit the corresponding device information to the second cloud server; the APP end is used to connect to the second cloud server according to the user registration area; the second cloud server is also used to enter the network configuration waiting when receiving the corresponding information about preparing to enter the network configuration state informed by the device end through the 3 / 4G module after the network configuration state is turned on; the APP end is also used to obtain the device binding identifier, and send the https request information including the user login information and the device binding identifier to the first The second cloud server is used to determine whether the current device is in a network configuration state based on the https request information, and to send binding information corresponding to the state of being in a network configuration state or unconfigured information corresponding to the state of not being in a network configuration state; the APP is also used to connect to the MQTT server and write the qrcode information into the topic subscribed by the SDK client if a binding message corresponding to a successful binding is received from the second cloud server, so as to inform the SDK client that the binding is successful; if a binding message corresponding to a failed binding is received from the second cloud server, the modification information is sent to the first cloud server; the first cloud server is also used to modify the SDK unique identifier to be consistent with the regional information of the APP based on the modification information, so that the device can re-configure the network.

8. The device 3G or 4G network configuration system according to claim 7, characterized in that: The determining whether the current device is in a network configuration state based on the https request information, and sending the binding information corresponding to the determination that the device is in a network configuration state or the unconfigured network information corresponding to the determination that the device is not in a network configuration state includes: Determine whether the current device is in a network configuration state based on the https request information; If it is determined that the network is in the distribution state, the user corresponding to the user login information is bound to the device end; if the binding is successful, the binding information corresponding to the successful binding is sent; otherwise, the binding information corresponding to the failed binding due to the device end and the APP end being in different areas is sent; If it is determined that the device is not in the network configuration state, non-network configuration information corresponding to the device being not in the network configuration state is sent to the device.

9. A device end, characterized in that: include: 3 / 4G module and SDK client; Wherein, the SDK client includes: The first cloud server SDK communication module is used to establish a connection with the first cloud server and initiate an https request to the first cloud server; receive corresponding connection information returned by the first cloud server based on the SDK unique identifier corresponding to the SDK client; A second cloud server SDK communication module, connected to the first cloud server SDK communication module, for connecting to the corresponding second cloud server based on the connection information, and transmitting the corresponding device information to the second cloud server; MQTT server SDK communication module, used to establish a connection with the MQTT server and subscribe to the topic of the qrcode information written by the APP to the MQTT server to learn that the binding is successful; The 3 / 4G module is used to inform the second cloud server of the corresponding information of preparing to enter the network configuration state after the device end starts the network configuration state.

10. An APP terminal, characterized in that: include: The second cloud server APP communication module is used to connect to the second cloud server according to the user registration area; A device binding identification module, connected to the second cloud server APP communication module, for obtaining a device binding identification; The second cloud server APP communication module is also used to send the https request information including the user login information and the device binding identifier to the second cloud server; receive the binding message corresponding to the successful binding or the binding message corresponding to the failed binding sent by the second cloud server; The MQTT server APP communication module is connected to the second cloud server APP communication module, and is used for, if a binding message corresponding to a successful binding is received from the second cloud server, the APP connects to the MQTT server and writes the qrcode information into the topic subscribed by the SDK client, so as to inform the SDK client that the binding is successful; The first cloud server APP communication module is connected to the second cloud server APP communication module, and is used to send modification information to the first cloud server if a binding message corresponding to a binding failure is received from the second cloud server, so that the first cloud server can modify the SDK unique identifier to be consistent with the regional information where the APP is located.