System and method for communication between industrial screen devices and cloud servers

The QR code-based system for industrial screens allows efficient and secure communication with cloud servers, addressing the inefficiencies of traditional manual login methods by ensuring rapid, reliable data exchange and seamless device management.

CN115334116BActive Publication Date: 2025-07-15HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210962768.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-11
Publication Date
2025-07-15
Estimated Expiration
2042-08-11

AI Technical Summary

Technical Problem

Traditional industrial screen devices require manual login when interacting with cloud servers, resulting in inconvenient operation and unstable equipment connections, affecting production efficiency.

Method used

The code scanning operation and OAuth2.0 protocol are adopted to realize automatic binding and data transmission between industrial screen equipment and cloud servers, and the mqtt protocol is used to ensure the stability and timeliness of data transmission, and the equipment status is monitored through the communication protocol service device.

Benefits of technology

Simplifies the equipment deployment and upgrade process, improves production efficiency, ensures the rapid and reliable data transmission, and reduces equipment downtime.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115334116B_ABST
    Figure CN115334116B_ABST
Patent Text Reader

Abstract

The present application provides a system and method for communication between industrial screen devices and a cloud server. The system includes: An application program package for interacting with the cloud server is configured in the industrial screen device, which is used to receive a registration code and device information corresponding to the industrial screen device; A front-end application device interacts with the industrial screen device and the cloud server, which is used to identify the registration code, generate service binding information corresponding to the industrial screen device, and save it to the cloud server; The industrial screen device is used to connect to a communication protocol service device according to the device information and obtain data pushed by the cloud server through the communication protocol service device. The method includes: The industrial screen device sends device information to interact with the cloud server; Receive the device information sent by the cloud server according to the device information; Connect to the communication protocol service device according to the device information; Obtain the data sent by the cloud server through the communication protocol service device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technologies, and in particular, to a system and method for communication between industrial screen devices and a cloud server. Background Art

[0002] Today, with the increasing maturity of informatization and industrialization, using the Internet to achieve industrial platformization has become a trend. Digitalization is one of the remarkable features of industrialization. A relatively serious difficulty in the transformation of traditional industries into industrialization is how to quickly and effectively implement the service configuration of a large number of networked devices and cloud servers.

[0003] In the face of the business model of factory transformation and increasing business volume, establishing an interaction between industrial screen devices and a cloud server is an effective technical means to solve data transmission and data retention. To establish an interaction between traditional industrial screen devices and a cloud server, after each manual login, the industrial screen device can obtain user information to achieve the interaction between the industrial screen device and the cloud server, complete the transfer of data, and display the data on the industrial screen device.

[0004] However, there are a large number of factory devices, and it is not convenient to connect external input devices and the operation is not convenient: if manual login is required each time, it will cause a lot of time-consuming repetitive work for workshop operators. One connection of the industrial screen device can allow the machine to work continuously without stopping; however, if there are intermittent operation events such as machine failures and plant power outages, it will be necessary to log in again, and the upgrade and redeployment configuration are troublesome.

[0005] The above information disclosed in the background art section is only used to enhance the understanding of the background of the present application, and therefore it may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0006] The present application provides a system and method for communication between industrial screen devices and a cloud server, which enables convenient QR code scanning operation, can quickly realize the deployment and upgrade of a large number of devices, and improves the implementation efficiency. The factory only needs to focus on the deployment of industrial screen devices, simplifies the operation through QR code scanning operation to improve the implementation efficiency. Subsequent upgrades of the cloud server do not affect the normal use of the devices.

[0007] According to a first aspect of the present application, a system for communication between industrial screen devices and a cloud server is provided. The system includes a communication protocol service device, a cloud server, an industrial screen device, and a front-end application device, wherein:

[0008] An application program package for interacting with the cloud server is configured in the industrial screen device, and is used to receive a registration code and device information corresponding to the industrial screen device;

[0009] The front-end application device interacts with the industrial screen device and the cloud server, is used to identify the registration code, and generate service binding information corresponding to the industrial screen device, and save it to the cloud server;

[0010] The industrial screen device is used to connect to the communication protocol service device according to the device information and obtain the data pushed by the cloud server through the communication protocol service device.

[0011] According to some embodiments, the service binding information includes factory, workshop, production line and work station.

[0012] According to some embodiments, the industrial screen device includes a kernel, the service binding information is stored in the kernel, and the service binding information is encrypted.

[0013] According to some embodiments, the cloud server authenticates whether the industrial screen device can communicate with the communication protocol service device through the service binding information and timestamp, and obtains the data pushed by the cloud server through the communication protocol service device.

[0014] According to some embodiments, the communication protocol service device is further used to monitor the status of the industrial screen device; when the industrial screen device is offline, the communication protocol service device reports the offline situation of the industrial screen device to the cloud server to maintain the system.

[0015] According to a second aspect of the present application, a method for communication between an industrial screen device and a cloud server is provided. The method includes:

[0016] The industrial screen device sends device information to interact with the cloud server;

[0017] Receive the device information sent by the cloud server according to the device information;

[0018] Connect to the communication protocol service device according to the device information;

[0019] Obtain the data sent by the cloud server through the communication protocol service device.

[0020] According to some embodiments, the method further includes:

[0021] When the industrial screen device does not have device information, the industrial screen device receives the registration code sent by the cloud server.

[0022] According to some embodiments, the method further includes:

[0023] When the front-end application device provides the device information according to the recognized registration code and saves the device information to the cloud server, the industrial screen device obtains the device information from the cloud server in a polling manner.

[0024] According to some embodiments, the method further includes:

[0025] When the cloud server modifies the data reported by the industrial screen device through the communication protocol service device, the industrial screen device receives the modified data sent by the cloud server through the communication protocol service device.

[0026] According to a third aspect of the present application, there is provided a non-transitory computer storage medium storing a computer program, which when executed by a plurality of processors, causes the processors to execute the method described in any one of the second aspects.

[0027] According to some embodiments, the present application provides a system for communicating between an industrial screen device and a cloud server. The cloud server and the industrial screen device achieve two-way communication between the device and the cloud server through the MQTT protocol, ensuring the stability and timeliness of data update; using the high-performance MQTT protocol to complete an interaction between the cloud server and the industrial screen device within milliseconds, ensuring the rapidity of data transmission; the MQTT protocol strictly follows the MQTT protocol standard whether it is for reconnection after disconnection or retransmission of lost packets.

[0028] According to some embodiments, the present application provides a method for communicating between an industrial screen device and a cloud server. After the first deployment of the industrial screen device logs in, subsequent use and update are convenient and fast. The method for communicating between the industrial screen device and the cloud server based on OAuth2.0 can ensure that after the user's first deployment and login, there is no need to log in again subsequently, simplifying the practical operation difficulty.

[0029] According to some embodiments, the method for communicating between the industrial screen device and the cloud server based on OAuth2.0 can, according to the actual scenario, perform interactions of other data such as replacing the device binding business relationship, and can also re-register by deleting the unique identifier stored in the device kernel through special permissions. This modification method can be changed in real time according to business requirements, modifying the device and binding content to achieve more convenient and fast updates.

[0030] According to some embodiments, the method for communicating between the industrial screen device and the cloud server based on OAuth2.0 is very stable whether it is receiving or sending in the test of a large amount of data, and is also very stable in high-frequency tests, ensuring the reliability of data transmission, and realizing the combination of the Internet and traditional industries, with stable data transmission and rapid interconnection.

[0031] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] By referring to the drawings and describing in detail its exemplary embodiments, the above and other objectives, features, and advantages of this application will become more apparent. The drawings described below are only some embodiments of this application and do not limit this application.

[0033] Figure 1 A schematic diagram of a system for an industrial screen device to communicate with a cloud server showing an exemplary embodiment;

[0034] Figure 2 A flowchart of a method for an industrial screen device to communicate with a cloud server showing an exemplary embodiment;

[0035] Figure 3 A flowchart of an industrial screen device obtaining device information showing an exemplary embodiment;

[0036] Figure 4 A structural diagram of an electronic device provided by this application is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0037] Exemplary embodiments will now be described more fully with reference to the drawings. However, the exemplary embodiments can be implemented in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. Identical reference numerals in the figures denote identical or similar parts, and thus their repetitive description will be omitted.

[0038] The features, structures, or characteristics described can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of this disclosure. However, those skilled in the art will realize that the technical solutions of this disclosure can be practiced without one or more of these specific details, or can be implemented in other ways, components, materials, devices, etc. In these cases, well-known structures, methods, devices, implementations, materials, or operations will not be shown or described in detail.

[0039] The flowcharts shown in the drawings are only exemplary illustrations and do not necessarily include all the content and operations / steps, nor are they necessarily executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.

[0040] In the description and claims of this application and the above-mentioned drawings, terms such as "first" and "second" are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or devices.

[0041] Those skilled in the art can understand that the drawings are only schematic diagrams of exemplary embodiments, and the modules or processes in the drawings are not necessarily essential for implementing this application, so they cannot be used to limit the protection scope of this application.

[0042] The device embodiments of this application are described below, which can be used to execute the method embodiments of this application. For details not disclosed in the device embodiments of this application, reference can be made to the method embodiments of this application.

[0043] Figure 1 A schematic diagram of a system for an industrial screen device to communicate with a cloud server is shown for an exemplary embodiment.

[0044] As Figure 1 shown, the system for an industrial screen device to communicate with a cloud server includes: a communication protocol service device 101, a cloud server 103, an industrial screen device 105, and a front-end application device 107.

[0045] According to an exemplary embodiment, an application program package for interacting with the cloud server 103 is configured in the industrial screen device 105, and is used to receive a registration code and device information corresponding to the industrial screen device 105.

[0046] The front-end application device 107 interacts with the industrial screen device 105 and the cloud server 103, and is used to identify the registration code, generate business binding information corresponding to the industrial screen device 105, and save it to the cloud server 103.

[0047] According to some embodiments, the device information includes an account ID and a device key.

[0048] According to some embodiments, the business binding information includes business information that the system needs to bind, including a factory, a workshop, a production line, and a work station.

[0049] According to some embodiments, the registration code is a readable bar code for recording information, including a bar code or a QR code.

[0050] According to an exemplary embodiment, the industrial screen device 105 interacts with the cloud server 103 in a polling manner to obtain service binding information. The industrial screen device 105 interacts with the cloud server 103 according to the service binding information to obtain the device information corresponding to the industrial screen device 105 from the cloud server 103.

[0051] The industrial screen device 105 is used to interact with the communication protocol service device 101 according to the device information. The communication protocol service device 101 interacts with the cloud server 103 to obtain the data pushed by the cloud server 103 through the communication protocol service device; the cloud server 103 issues a message through the communication protocol service device 101 to push the data to the industrial screen device 105, and the industrial screen device 105 subscribes to the required content by connecting to the communication protocol service device 101.

[0052] According to some embodiments, the cloud server 103 authenticates whether the industrial screen device 105 can communicate with the communication protocol service device 101 through the service binding information and the timestamp, and obtains the data pushed by the cloud server 103 through the communication protocol service device 101.

[0053] According to an exemplary embodiment, when data of the industrial screen device 105 is reported to the cloud server 103 through the communication protocol service device 101, the cloud server 103 can parse and determine whether it is necessary to change the existing service data to modify the device data. In the case of modification, the cloud server 103 issues the modified device data to the industrial screen device 105 through the communication protocol service device 101.

[0054] According to an exemplary embodiment, the present application realizes the complete and real-time push of the overall data through the four-terminal interaction of the communication protocol service device 101, the cloud server 103, the industrial screen device 105, and the front-end application device 107.

[0055] According to some embodiments, the communication protocol service device 101 is further used to monitor the running state of the industrial screen device for easy maintenance. By monitoring the online / offline state of the industrial screen device 105 and through an alarm mechanism, it is reported to the cloud server 103 in real time to notify the factory, facilitating the maintenance of the industrial screen device.

[0056] Figure 2 A flowchart of a method for communicating between an industrial screen device and a cloud server showing an exemplary embodiment is shown.

[0057] S201, obtain service binding information and interact with the cloud server.

[0058] According to an exemplary embodiment, an industrial screen device 105 installs an application package apk (Android application package) for interacting with a communication protocol service device 101 and a cloud server 103; the industrial screen device 105 includes a kernel for storing service binding information and device information.

[0059] According to an exemplary embodiment, the industrial screen device 105 starts, and the industrial screen device 105 interacts with the cloud server 103 through the apk.

[0060] S202, the industrial screen device obtains device information.

[0061] According to an exemplary embodiment, the industrial screen device 105 interacts with the cloud server 103 according to the service binding information, obtains device information from the cloud server 103, and is used to connect to the communication protocol service device 101.

[0062] According to some embodiments, the cloud server 103 authenticates whether the mqtt connection information of the communication protocol service device 101 obtained by the industrial screen device 105 is a valid request by encrypting the service binding information and the current timestamp.

[0063] According to some embodiments, the cloud server 103 issues a secret key to the industrial screen device 105, one device one key, to improve security and ensure the security of data content; the industrial screen device 105 connects to the cloud server 103 for authentication through the OAuth2.0 method to ensure data security. This method greatly facilitates the practical operation of the factory, improves the production efficiency of the factory, and accelerates the transformation of the factory from a traditional model to industrialization and informatization.

[0064] S203, the industrial screen device interacts with the cloud server through the communication protocol service device.

[0065] According to an exemplary embodiment, when the cloud server 103 receives a service and needs to push corresponding data to the industrial screen device 105, the cloud server 103 can send a message through the communication protocol service device 101 to push the data to the industrial screen device 105, and the industrial screen device 105 subscribes to the required content by connecting to the communication protocol service device 101.

[0066] According to an exemplary embodiment, when the industrial screen device 105 has data reported to the cloud server 103 through the communication protocol service device 101, the cloud server 103 can parse and determine whether it is necessary to change the existing service data to change the device data. In the case of modification, the cloud server 103 sends the modified device data to the industrial screen device 105 through the communication protocol service device 101.

[0067] According to the exemplary embodiment, the cloud server and the industrial screen devices achieve two-way communication between the devices and the cloud server through the MQTT protocol, ensuring the stability and timeliness of data updates; using the high-performance MQTT protocol to complete the interaction between the cloud server and the industrial screen devices at the millisecond level, ensuring the rapidity of data transmission; whether it is reconnection after disconnection or retransmission of lost packets, the MQTT protocol strictly follows the MQTT protocol standard.

[0068] According to the exemplary embodiment, after the industrial screen devices are logged in for the first deployment, subsequent use and updates can be achieved conveniently and quickly. The method for realizing the communication between the industrial screen devices and the cloud server based on OAuth2.0 can ensure that after the user logs in for the first deployment, there is no need to log in again subsequently, simplifying the actual operation difficulty.

[0069] According to some embodiments, the method for realizing the communication between the industrial screen devices and the cloud server based on OAuth2.0 can, according to the actual scenario, perform the interaction of other data such as replacing the device binding business relationship, and can also re-register by deleting the unique identifier stored in the device kernel through special permissions. This modification method can be changed in real time according to the business requirements, modifying the device and the binding content to achieve more convenient and quick updates.

[0070] According to some embodiments, the method for realizing the communication between the industrial screen devices and the cloud server based on OAuth2.0 is very stable whether receiving or sending in the test of a large amount of data, and is also very stable in high-frequency tests, ensuring the reliability of data transmission, and realizing the combination of the Internet and traditional industries, with stable data transmission and rapid interconnection.

[0071] Figure 3 The flowchart of an industrial screen device obtaining device information showing an exemplary embodiment.

[0072] S301, the industrial screen device detects whether there is business binding information.

[0073] According to the exemplary embodiment, the industrial screen device 105 starts, and the industrial screen device 105 detects whether there is business binding information; if not, it proceeds to S302.

[0074] S302, the cloud server generates a registration code.

[0075] According to the exemplary embodiment, if there is no business binding information, the cloud server 103 generates a registration code and sends it to the industrial screen device 105.

[0076] S303, the front-end application device registers the business binding information.

[0077] According to the exemplary embodiment, the cloud server 103 generates a registration code and forwards it to the industrial screen device 105. After the industrial screen device 105 displays the registration code, the front-end application device 107 recognizes the registration code and generates service binding information corresponding to the industrial screen device 105, which is saved to the cloud server 103.

[0078] According to the exemplary embodiment, the convenient QR code scanning operation can quickly realize the deployment and upgrade of a large number of devices, improving the implementation efficiency. The factory only needs to focus on the deployment of the industrial screen devices, and simplifies the operation through the QR code scanning operation method to improve the implementation efficiency. Subsequent upgrades of the cloud server will not affect the normal use of the industrial screen devices.

[0079] S304, the industrial screen device obtains the service binding information.

[0080] According to the exemplary embodiment, the front-end application device 107 fills in the service binding information, communicates with the cloud server 103, saves the service binding information in the cloud server 103, and the industrial screen device 105 carries the registration code through polling, interacts with the cloud server 103 to obtain the service binding information, and stores the service binding information in the kernel of the industrial screen device.

[0081] According to the exemplary embodiment, the industrial screen device 105 stores the service binding information in the MMKV manner, and AES is used for encryption inside MMKV to ensure the security of the stored service binding information.

[0082] Figure 4 The structure diagram of an electronic device provided by the present application is shown.

[0083] Refer to Figure 4 , Figure 4 An electronic device is provided, including a processor and a memory. The memory stores computer instructions, and when the computer instructions are executed by the processor, the processor executes the computer instructions to implement the methods and refinement solutions as shown in Figure 2 and / or Figure 3 shown.

[0084] It should be understood that the above device embodiments are illustrative only, and the devices disclosed in the present invention can also be implemented in other ways. For example, the division of the above-mentioned units / modules is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0085] In addition, unless otherwise specified, in each embodiment of the present invention, each functional unit / module can be integrated into one unit / module, or each unit / module can exist physically alone, or two or more units / modules can be integrated together. The above integrated unit / module can be implemented in the form of hardware or in the form of a software program module.

[0086] When the above integrated unit / module is implemented in the form of hardware, the hardware can be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless otherwise specified, the processor or chip can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the on-chip cache, off-chip memory, and memory can be any suitable magnetic storage medium or magneto-optical storage medium, such as resistive random access memory (RRAM), dynamic random access memory (DRAM), static random access memory (SRAM), enhanced dynamic random access memory (EDRAM), high-bandwidth memory (HBM), hybrid memory cube (HMC), etc.

[0087] When the above integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of this disclosure. And the aforementioned memory includes: various media that can store program codes, such as USB flash drives, read-only memory (ROM), random access memory (RAM), mobile hard disks, magnetic disks, or optical discs.

[0088] The embodiments of this application also provide a non-transitory computer storage medium storing a computer program. When the computer program is executed by multiple processors, the processors are caused to execute as Figure 2 and / or Figure 3The method and refinement scheme shown.

[0089] It should be clearly understood that this application describes how to form and use specific examples, but this application is not limited to any details of these examples. On the contrary, based on the teachings of the content disclosed in this application, these principles can be applied to many other embodiments.

[0090] In addition, it should be noted that the above drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of this application, rather than for limiting purposes. It is easy to understand that the processes shown in the above drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easy to understand that these processes can be executed, for example, synchronously or asynchronously in multiple modules.

[0091] The exemplary embodiments of this application have been specifically shown and described above. It should be understood that this application is not limited to the detailed structures, settings, or implementation methods described here; on the contrary, this application is intended to cover various modifications and equivalent settings included within the spirit and scope of the appended claims.

Claims

1. A system for communication between industrial screen devices and cloud servers, characterized in that The system includes a communication protocol service device, a cloud server, industrial screen devices, and a front-end application device, where: An application program package for interacting with the cloud server is configured in the industrial screen devices, which is used to receive a registration code and device information corresponding to the industrial screen devices. The cloud server and the industrial screen devices achieve two-way communication through the MQTT protocol, and the industrial screen devices are connected to the cloud server for authentication through the OAuth2.0 method. The industrial screen devices include: A kernel, where the service binding information is stored and encrypted. The front-end application device interacts with the industrial screen devices and the cloud server, which is used to identify the registration code, generate the service binding information corresponding to the industrial screen devices, and save it to the cloud server. In the case that the industrial screen devices do not have the service binding information, the industrial screen devices are used to receive the registration code sent by the cloud server. The front-end application device provides the device information according to the identified registration code and saves the device information to the cloud server. The industrial screen devices obtain the device information from the cloud server through a polling method. The industrial screen devices are used to connect to the communication protocol service device according to the device information and obtain the data pushed by the cloud server through the communication protocol service device. The communication protocol service device is also used to monitor the status of the industrial screen devices. In the case that the industrial screen devices are offline, the communication protocol service device reports the offline situation of the industrial screen devices to the cloud server to maintain the system.

2. The system according to claim 1, wherein The service binding information includes a factory, a workshop, a production line, and a work station.

3. The system according to claim 1, wherein The cloud server authenticates whether the industrial screen devices can communicate with the communication protocol service device through the service binding information and a timestamp, and obtains the data pushed by the cloud server through the communication protocol service device.

4. A method for communication between industrial screen devices and cloud servers, characterized in that, Executed by the industrial screen devices in the system according to any one of claims 1-3, the method includes: The industrial screen devices send service binding information to interact with the cloud server. Receive the device information sent by the cloud server according to the service binding information. Connect to the communication protocol service device according to the device information. Obtain the data sent by the cloud server through the communication protocol service device. In the case that the industrial screen devices do not have service binding information, the industrial screen devices receive the registration code sent by the cloud server. In the case that the front-end application device provides the device information according to the identified registration code and saves the device information to the cloud server, the industrial screen devices obtain the device information from the cloud server through a polling method.

5. The method according to claim 4, characterized in that, The method further includes: In the case that the cloud server modifies the data reported by the industrial screen devices through the communication protocol service device, the industrial screen devices receive the modified data sent by the cloud server through the communication protocol service device.

6. A non-transitory computer storage medium storing a computer program which, when executed by a plurality of processors, causes the processors to perform the method according to claim 4 or 5.

Citation Information

Patent Citations

  • Multi-terminal binding method, binding server, terminal and multi-terminal binding system

    CN104426962A

  • Device registration method and device registration device

    CN106713518A

  • Binding and verification method applied to Internet of Things system and Internet of Things system

    CN113067837A