CN111162977B - Method and device for accessing terminal of Internet of things to cloud service - Google Patents

Method and device for accessing terminal of Internet of things to cloud service Download PDF

Info

Publication number
CN111162977B
CN111162977B CN201911331016.XA CN201911331016A CN111162977B CN 111162977 B CN111162977 B CN 111162977B CN 201911331016 A CN201911331016 A CN 201911331016A CN 111162977 B CN111162977 B CN 111162977B
Authority
CN
China
Prior art keywords
attribute information
internet
things
cloud server
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911331016.XA
Other languages
Chinese (zh)
Other versions
CN111162977A (en
Inventor
王正凯
张玉霞
肖虹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Juhaolian Technology Co ltd
Original Assignee
Qingdao Juhaolian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Juhaolian Technology Co ltd filed Critical Qingdao Juhaolian Technology Co ltd
Priority to CN201911331016.XA priority Critical patent/CN111162977B/en
Publication of CN111162977A publication Critical patent/CN111162977A/en
Application granted granted Critical
Publication of CN111162977B publication Critical patent/CN111162977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention discloses a method and a device for accessing an Internet of things terminal to a cloud service, wherein the method comprises the following steps: the method comprises the steps of creating product attribute information, sending the product attribute information to a cloud server after the product attribute information is created, generating a terminal application code by the cloud server according to the product attribute information and combining a preset template, and sending the terminal application code to the terminal equipment of the Internet of things, so that the cloud service can quickly generate the terminal application code supporting data interaction between both cloud sides of a terminal, the research and development period is shortened, and the user experience of the cloud service is improved.

Description

Method and device for accessing terminal of Internet of things to cloud service
Technical Field
The invention relates to the field of cloud services, in particular to a method and a device for accessing an Internet of things terminal to a cloud service.
Background
The terminal of the internet of things and the cloud service platform generally perform data interaction in two message formats, namely JSON (Java service connection) or compact binary system. Compared with the JSON format, the compact binary message format is lighter and safer, and especially under the scenes of large data volume, frequent interaction and limited flow, the compact binary message format can play the roles of saving the flow and reducing the power consumption.
When the terminal application and the cloud service use the compact binary message format for data interaction, both communication parties must follow the same data protocol. The terminal and the cloud service must perform binary coding and decoding in sequence according to the protocol, and each attribute data must be consistent with the byte length defined by the protocol. The cloud service can provide services such as data analysis and presentation and command issuing, and the terminal application can also provide functions such as command issuing analysis and data reporting.
The general idea of accessing the cloud service by the existing Internet of things is as follows: the development needs to define the data interaction content and the binary coding format of both cloud sides, namely the data interaction protocol in advance. And the terminal and the cloud service respectively complete binary coding and decoding programs according to the data content and the protocol in sequence. Therefore, the terminal can complete data interaction with the cloud service.
The method has the problems that each product needs to complete the program development of the cloud service and the terminal according to a preset data protocol, and if the product requirements change, the cloud service and the terminal can be developed again, so that a large amount of repeated labor is generated. Meanwhile, the uneven levels of developers may cause problems of low code quality and long development period, which not only increases development cost, but also reduces the experience of cloud service users.
Disclosure of Invention
The embodiment of the invention provides a method and a device for accessing an Internet of things terminal to a cloud service, which are used for the cloud service to quickly generate a terminal application code supporting data interaction between two cloud sides, reduce programming difficulty, shorten a research and development period and increase cloud service user experience.
In a first aspect, an embodiment of the present invention provides a method for accessing a cloud service to a terminal of an internet of things, including:
the cloud server acquires configured product attribute information; the product attribute information comprises product attributes, the number of the product attributes and attribute types; the product attribute information is sent by the front end after the user configures the product attribute information at the front end;
the cloud server generates a terminal application code according to the product attribute information and a preset template;
the cloud server sends the terminal application code to the front end, so that the front end sends the terminal application code to the terminal equipment of the Internet of things.
According to the technical scheme, a user creates product attribute information at a front end according to the requirements of products, the product attribute information is sent to a cloud server after being created, the cloud server generates a terminal application code according to the product attribute information and in combination with a preset template, and the terminal application code is sent to the front end, so that the front end can send the terminal application code to the Internet of things terminal equipment, wherein the product attribute information comprises product attributes, the number of the product attributes and attribute types, and therefore the cloud service can quickly generate the terminal application code supporting data interaction between two cloud sides, the research and development period is shortened, and the cloud service user experience is increased.
Optionally, the cloud server generates a terminal application code according to the product attribute information and a preset template, including:
and the cloud server fills the product attribute information into the preset template, and generates the terminal application code after compiling.
According to the technical scheme, after the user creates the product attribute information from the front end, the product attribute information is stored in the cloud server, and then the cloud server generates the terminal application code according to the latest product attribute information in the database and a preset template, so that the cloud service can quickly generate the terminal application code supporting data interaction between the cloud side and the cloud side.
Optionally, after the cloud server sends the terminal application code to the front end, the method further includes:
the cloud server acquires a control instruction sent by the front end; the control instruction is issued by the user on the data interaction interface of the front end;
the cloud server packages the control instruction into a compact binary message format according to the product attribute information;
the cloud server issues the encapsulated control command to the Internet of things terminal equipment, so that the Internet of things terminal equipment analyzes the encapsulated control command through a command analysis interface to obtain the control command; the instruction analysis interface is obtained by transplanting the terminal application code sent by the front end by the terminal equipment of the internet of things.
In the technical scheme, a user issues a control instruction for the terminal equipment of the internet of things according to the data interaction interface of the front end, so that the cloud server obtains the control instruction issued by the user for the terminal equipment of the internet of things according to the data interaction interface of the front end, encapsulates the control instruction into a compact binary message format according to product attribute information, and then sends the encapsulated control instruction to the terminal equipment of the internet of things, so that the terminal equipment of the internet of things invokes an instruction parsing interface provided according to codes to parse the encapsulated control instruction, and obtains and executes the control instruction, thereby reducing programming difficulty in the process of data interaction between two cloud parties of the end cloud, shortening the research and development period, and increasing the user experience of the cloud service.
Optionally, after the cloud server sends the terminal application code to the front end, the method further includes:
the cloud server acquires data reported by the terminal equipment of the Internet of things, wherein the data is obtained by packaging the equipment state of the terminal equipment of the Internet of things through each attribute packaging interface by the terminal equipment of the Internet of things; each attribute packaging interface is obtained after the terminal equipment of the internet of things transplants a terminal application code sent by the front end;
the cloud server decodes the data in a compact binary message format according to the product attribute information to obtain the equipment state;
and the cloud server sends the equipment state to the front end so that the front end displays the equipment state.
According to the technical scheme, after the cloud server sends the terminal application code to the front end, the user transplants the terminal application code into the terminal equipment of the Internet of things, so that the terminal equipment of the Internet of things calls corresponding attribute packaging interfaces to package the related equipment state of the terminal equipment of the Internet of things into a compact binary message format and reports the compact binary message format to the cloud server, the data processing service in the cloud server sequentially decodes the related equipment state of the terminal equipment of the Internet of things packaged into the compact binary message format in the database, and the decoded data result is presented to the front end in a JSON message format, so that the programming difficulty is reduced in the process of data interaction between two cloud sides of the end and the cloud side, and the cloud service user experience is improved.
Optionally, after the cloud server sends the terminal application code to the front end, the method further includes:
the cloud server acquires modified product attribute information sent by the front end, wherein the modified product attribute information is the product attribute information after the number or the attribute type of the product attribute changes;
the cloud server stores the modified product attribute information, regenerates the terminal application code according to the modified product attribute information, and sends the regenerated terminal application code to the front end, so that the front end sends the regenerated terminal application code to the terminal equipment of the internet of things.
According to the technical scheme, a user modifies product attribute information at the front end according to the requirements of products, the modified product attribute information is sent to the cloud server and stored, the cloud server regenerates terminal application codes according to the modified product attribute information in combination with a preset template and provides the terminal application codes for the front end to download, so that the front end sends the regenerated terminal application codes to the terminal equipment of the Internet of things, the cloud service can quickly generate terminal application codes supporting data interaction between two cloud sides, the research and development period is shortened, and the cloud service user experience is increased.
In a second aspect, an embodiment of the present invention provides an apparatus for accessing a terminal of an internet of things to a cloud service, including:
the acquisition module is used for acquiring configured product attribute information;
and the processing module is used for generating a terminal application code according to the product attribute information and a preset template, and sending the terminal application code to the front end so that the front end sends the terminal application code to the terminal equipment of the Internet of things.
Optionally, the processing module is specifically configured to:
and the cloud server fills the product attribute information into the preset template, and generates the terminal application code after compiling.
Optionally, the processing module is further configured to:
after the cloud server sends the terminal application code to the front end, the cloud server obtains a control instruction sent by the front end, the control instruction is packaged into a compact binary message format according to product attribute information, and the packaged control instruction is sent to the Internet of things terminal equipment, so that the Internet of things terminal equipment analyzes the packaged control instruction through an instruction analysis interface to obtain the control instruction.
Optionally, the processing module is further configured to:
after the cloud server sends the terminal application code to the front end, the cloud server obtains data reported by the terminal equipment of the internet of things, performs compact binary message format decoding on the data according to product attribute information to obtain the equipment state, and sends the equipment state to the front end so that the front end can display the equipment state.
Optionally, the processing module is further configured to:
after the cloud server sends the terminal application code to the front end, the cloud server is controlled to acquire modified product attribute information sent by the front end;
storing the modified product attribute information, regenerating the terminal application code according to the modified product attribute information, and sending the regenerated terminal application code to the front end, so that the front end sends the regenerated terminal application code to the terminal equipment of the internet of things; otherwise, storing the modified product attribute information in a database.
In a third aspect, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the method for the Internet of things terminal to rapidly access the cloud service according to the obtained program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, where the computer-executable instructions are configured to enable a computer to execute the method for quickly accessing a cloud service by a terminal of an internet of things.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system architecture diagram according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for accessing a terminal of the internet of things to a cloud service according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of product attribute information provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of product attribute information provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of product attribute information provided by an embodiment of the present invention;
fig. 6 is a schematic flowchart of a method for accessing a terminal of an internet of things to a cloud service according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device for accessing a terminal of an internet of things to a cloud service according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 exemplarily shows a system architecture diagram applicable to the embodiment of the present invention, where the system architecture includes a front end 100, a cloud server 200, and an internet of things terminal device 300.
The front end 100 is configured to create product attribute information, and provide a terminal application code download service and a data interaction interface for a user.
Cloud server 200, may include code generation service 210, database 220, data processing service 230, and platform access service 240.
The code generation service 210 is configured to generate a terminal application code according to the product attribute information created by the front end 100 and in combination with a preset template.
A database 220 for storing product attribute information created by the front end 100.
The data processing service 230 is configured to process product attribute information sent by the front end 100, a device state of the internet of things terminal device 300 reported by the internet of things terminal device 300 through the platform access service 240, or a control instruction sent by the front end 100 and issued by the cloud server 200 through the platform access service 240.
The platform access service 240 is configured to acquire the device state of the internet of things terminal device 300 reported by the internet of things terminal device 300 or issue a control instruction sent by the front end 100.
The internet of things terminal device 300 is configured to obtain a terminal application code, and report a device state of the internet of things terminal device 300 through the platform access service 240 or receive a control instruction sent by the front end 100 through the platform access service 240.
It should be noted that the system architecture shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 exemplarily shows a flow of a method for accessing a cloud service by a terminal of an internet of things according to an embodiment of the present invention, where the flow may be used in a device for accessing a cloud service by a terminal of an internet of things.
As shown in fig. 2, the steps of the process specifically include:
step 201, the cloud server obtains configured product attribute information.
In the embodiment of the invention, the product attribute information is configured by the user at the front end, and the front end sends the product attribute information to the cloud server after the user configuration is finished. The cloud server acquires configured product attribute information, wherein the product attribute information comprises: the product attributes, the number of the product attributes and the attribute types are shown in fig. 3, for example, the control air conditioner switches and the temperature adjustment in the intelligent air conditioner, and the attribute types are integer type or boolean type.
Step 202, the cloud server generates a terminal application code according to the product attribute information and a preset template.
In the embodiment of the invention, the cloud server fills the product attribute information obtained in the above steps into a preset template, and generates the terminal application code after compiling. The preset template is a code template developed in advance, and the preset templates corresponding to different product attributes are different. It is required to select according to the number of product attributes in the product attribute information.
Step 203, the cloud server sends the terminal application code to the front end, so that the front end sends the terminal application code to the terminal equipment of the internet of things.
After receiving the terminal application code sent by the front end, the terminal equipment of the internet of things can analyze the received data or package the equipment state according to the instruction analysis interface or each attribute packaging interface in the terminal application code.
Further, after the cloud server sends the terminal application code to the front end, the cloud server may further obtain a control instruction sent by the front end, then encapsulate the control instruction into a compact binary message format according to the product attribute information, and then send the encapsulated control instruction to the internet of things terminal device, as shown in fig. 4, for example, binary coding is performed On air conditioner state closing data, OnOff is set to 0, where OnOff is set to 0 for making the air conditioner state be On or Off, and then the encoded control instruction is sent to the terminal device, so that the internet of things terminal device analyzes the encapsulated control instruction through the instruction analysis interface to obtain the control instruction, for example, an air conditioner closing instruction (OnOff is 0), and the air conditioner is closed.
It should be noted that the control instruction is issued by the user on the data interaction interface of the front end, and the instruction analysis interface is obtained by transplanting the terminal application code sent by the front end by the terminal device of the internet of things.
In addition, the cloud server may also obtain data reported by the internet of things terminal device, perform compact binary message format decoding on the data according to the product attribute information to obtain a device state of the internet of things terminal device, and send the device state to the front end, for example: the device may call a corresponding interface to encapsulate the air conditioner on-off state (on) temperature (26 degrees) in a compact binary format and report the encapsulated air conditioner on-off state (on) temperature to the cloud server, so that the front end displays the device state, as shown in fig. 5, for example, displays the current attribute record of the device.
It should be noted that the data is obtained by encapsulating, by the internet of things terminal device, the device state of the internet of things terminal device through each attribute encapsulation interface, and each attribute encapsulation interface is obtained by transplanting, by the internet of things terminal device, a terminal application code sent by the front end.
The user can also modify product attribute information at the front end, the cloud server stores the modified product attribute information after acquiring the modified product attribute information sent by the front end, regenerates the terminal application code according to the modified product attribute information, and sends the regenerated terminal application code to the front end, so that the front end sends the regenerated terminal application code to the internet of things terminal equipment, wherein the modified product attribute information is the product attribute information after the number or the attribute type of the product attribute is changed.
In the embodiment of the invention, a user creates product attribute information at a front end according to the requirements of a product, after the creation is completed, the product attribute information is sent to a cloud server, the cloud server generates a terminal application code according to the product attribute information and in combination with a preset template, and provides the terminal application code for the front end to download, so that the front end sends the generated terminal application code to an internet of things terminal device, and the cloud server can quickly generate the terminal application code for supporting data interaction between the internet of things terminal device and the cloud server, so that the internet of things terminal device and the cloud server perform data interaction, wherein the data interaction of the internet of things terminal device and the cloud server comprises the following processes:
and the terminal equipment of the Internet of things calls corresponding attribute packaging interfaces to package the equipment state of the terminal equipment of the Internet of things into a compact binary message format and report the compact binary message format to the cloud server, the cloud server decodes the equipment state of the terminal equipment of the Internet of things packaged into the compact binary message format in the database in sequence, and a decoded data result is presented at the front end in a JSON message format.
The method comprises the steps that a user issues a control instruction for the terminal equipment of the Internet of things according to a data interaction interface of a front end, so that a cloud server obtains the control instruction issued by the user for the terminal equipment of the Internet of things according to the data interaction interface of the front end, the control instruction is packaged into a compact binary message format according to product attribute information, and then the packaged control instruction is sent to the terminal equipment of the Internet of things, so that the terminal equipment of the Internet of things calls an instruction analysis interface provided according to codes to analyze the packaged control instruction, and the control instruction is obtained.
The method comprises the steps that a user modifies product attribute information at a front end according to the requirements of products, the modified product attribute information is sent to a cloud server and stored, the cloud server regenerates a terminal application code according to the modified product attribute information in combination with a preset template and provides the terminal application code for the front end to download, and therefore the front end sends the regenerated terminal application code to the terminal equipment of the Internet of things.
Based on the same technical concept, fig. 6 exemplarily shows a flow of a method for accessing a terminal of an internet of things to a cloud service, which is provided by an embodiment of the present invention, and the flow can be used for a device for accessing a terminal of an internet of things to a cloud service.
As shown in fig. 6, the steps of the process specifically include:
601. product attribute information is created or modified.
The front end sends the product attribute information to the cloud server, and the cloud server stores the product attribute information in the database.
602. The attributes are stored to a database.
And storing the product attribute information created at the front end in the steps into a database in the cloud server.
603. The storage is successful.
And the cloud server returns a message of successful storage.
604. And inquiring the latest attribute information of the database.
And the cloud server queries the latest product attribute information of the current database in the database.
605. And generating a terminal application code by combining the template.
And the cloud server generates a terminal application code according to the latest product attribute information in the database and in combination with a preset template in the database.
606. The generated terminal application code is provided.
And sending the terminal application code to the front end so that the front end sends the terminal application code to the terminal equipment of the Internet of things.
607. And downloading and transplanting the terminal application codes.
The front end downloads the terminal application codes and transplants the downloaded terminal application codes to the terminal of the Internet of things.
608. And calling an attribute encapsulation interface to encapsulate data.
And the terminal equipment of the Internet of things calls each attribute packaging interface to sequentially encode the attribute numerical values corresponding to the equipment and report the encoded attribute numerical values to the cloud server. For example: the equipment can use the attribute packaging interface to package the on-off state (on) temperature (26 degrees) of the air conditioner in a compact binary format and report the packaged air conditioner to the cloud server.
609. And reporting the compact binary data.
And reporting the compact binary data to a cloud server.
610. And inquiring the latest attribute information of the database.
After the cloud server receives the data, the data processing service acquires each attribute information from the database.
611. And resolving the compact binary system into JSON format data.
And sequentially decoding the reported compact binary data according to the attribute database information through a data processing service.
612. JSON format attribute information is provided.
And the cloud server presents the decoded result to the front end in a JSON format.
613. And presetting a control instruction of the terminal equipment of the Internet of things.
The method includes that a control instruction for presetting the terminal equipment of the internet of things is preset at the front end, for example, when a user wants to turn off an air conditioner, the control instruction for turning off the air conditioner is preset at the front end.
614. And transmitting the JSON format control instruction.
And sending the control instruction to the cloud server in a JSON format by the front end.
615. And inquiring the latest attribute information of the database.
And acquiring each attribute information from the database through a data processing service.
616. A compact binary message is generated.
And encapsulating the control instruction into a corresponding compact binary message format through the data processing service according to the attribute database information.
617. And issuing a compact binary instruction.
And the corresponding compact binary message encapsulated by the control instruction is transmitted to the terminal equipment of the Internet of things through the data processing service.
618. And calling an attribute encapsulation interface analysis instruction.
And after the terminal equipment of the Internet of things receives the information, calling an instruction analysis interface provided by the terminal application code, and sequentially taking out effective numerical values corresponding to the variables. For example: the air conditioner is turned off by an air conditioner off command (OnOff is 0).
In the embodiment of the invention, a user creates product attribute information at a front end according to the requirements of products, the product attribute information is stored in a database in a cloud server after being created, a code generation service in the cloud server acquires the product attribute information in the database, generates a terminal application code by combining a preset template, provides the terminal application code for the front end to download, downloads the generated terminal application code from the front end and transmits the terminal application code to the Internet of things terminal equipment, then the terminal application code is transplanted into the Internet of things terminal equipment so that the Internet of things terminal equipment calls corresponding attribute packaging interfaces to package the equipment state data of the Internet of things terminal equipment into a compact binary message format and reports the compact binary message format to the database in the cloud server, and a data processing service in the cloud server sequentially decodes the relevant equipment state of the Internet of things terminal equipment packaged into the compact binary message format in the database, and displaying the decoded data result on the front end in a JSON message format, issuing a control instruction for the terminal equipment of the Internet of things according to a data interaction interface of the front end so that the cloud server acquires the control instruction issued by the user for the terminal equipment of the Internet of things according to the data interaction interface of the front end, packaging the control instruction into a compact binary message format according to product attribute information, and sending the packaged control instruction to the terminal equipment of the Internet of things so that the terminal equipment of the Internet of things calls an instruction analysis interface provided according to the code to analyze the packaged control instruction so as to obtain and execute the control instruction.
Based on the same technical concept, fig. 7 exemplarily shows an apparatus for accessing a terminal of an internet of things to a cloud service, which may perform a method for accessing a terminal of an internet of things to a cloud service.
As shown in fig. 7, the apparatus specifically includes:
an obtaining module 701, configured to obtain configured product attribute information;
the processing module 702 is configured to generate a terminal application code according to the product attribute information and a preset template, and send the terminal application code to the front end, so that the front end sends the terminal application code to an internet of things terminal device.
Optionally, the processing module 702 is specifically configured to:
and the cloud server fills the product attribute information into the preset template, and generates the terminal application code after compiling.
Optionally, the processing module 702 is further configured to:
after the cloud server sends the terminal application code to the front end, the cloud server obtains a control instruction sent by the front end, the control instruction is packaged into a compact binary message format according to product attribute information, and the packaged control instruction is sent to the Internet of things terminal equipment, so that the Internet of things terminal equipment analyzes the packaged control instruction through an instruction analysis interface to obtain the control instruction.
Optionally, the processing module 702 is further configured to:
after the cloud server sends the terminal application code to the front end, the cloud server obtains data reported by the terminal equipment of the internet of things, performs compact binary message format decoding on the data according to product attribute information to obtain the equipment state, and sends the equipment state to the front end so that the front end can display the equipment state.
Optionally, the processing module 702 is further configured to:
after the cloud server sends the terminal application code to the front end, the cloud server is controlled to acquire modified product attribute information sent by the front end;
storing the modified product attribute information, regenerating the terminal application code according to the modified product attribute information, and sending the regenerated terminal application code to the front end, so that the front end sends the regenerated terminal application code to the terminal equipment of the internet of things; otherwise, storing the modified product attribute information in a database.
Based on the same technical concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the repeated payment prevention method according to the obtained program.
Based on the same technical concept, the embodiment of the invention also provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute the above-mentioned method for preventing repeated payment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (8)

1. A method for accessing a terminal of an Internet of things to a cloud service is characterized by comprising the following steps:
the cloud server acquires configured product attribute information; the product attribute information comprises product attributes, the number of the product attributes and attribute types; the product attribute information is sent by the front end after the user configures the product attribute information at the front end; the attribute type is a data type; the product attribute is a functional attribute of the terminal of the Internet of things;
the cloud server generates a terminal application code according to the product attributes, the number of the product attributes, the attribute types and a preset template; the number of the product attributes corresponds to the preset template;
the cloud server sends the terminal application code to the front end, so that the front end sends the terminal application code to the terminal equipment of the Internet of things;
the cloud server generates a terminal application code according to the product attribute information and a preset template, and the method comprises the following steps:
the cloud server fills the product attribute information into the preset template, and generates the terminal application code after compiling; the preset template is selected according to the number of the product attributes.
2. The method of claim 1, wherein after the cloud server sends the terminal application code to the front end, further comprising:
the cloud server acquires a control instruction sent by the front end; the control instruction is issued by the user on the data interaction interface of the front end;
the cloud server packages the control instruction into a compact binary message format according to the product attribute information;
the cloud server issues the encapsulated control command to the Internet of things terminal equipment, so that the Internet of things terminal equipment analyzes the encapsulated control command through a command analysis interface to obtain the control command; the instruction analysis interface is obtained by transplanting the terminal application code sent by the front end by the terminal equipment of the internet of things.
3. The method of claim 1, wherein after the cloud server sends the terminal application code to the front end, further comprising:
the cloud server acquires data reported by the terminal equipment of the Internet of things, wherein the data is obtained by packaging the equipment state of the terminal equipment of the Internet of things through each attribute packaging interface by the terminal equipment of the Internet of things; each attribute packaging interface is obtained after the terminal equipment of the internet of things transplants a terminal application code sent by the front end;
the cloud server decodes the data in a compact binary message format according to the product attribute information to obtain the equipment state;
and the cloud server sends the equipment state to the front end so that the front end displays the equipment state.
4. The method of any of claims 1 to 3, wherein after the cloud server sends the terminal application code to the front end, further comprising:
the cloud server acquires modified product attribute information sent by the front end, wherein the modified product attribute information is the product attribute information after the number or the attribute type of the product attribute changes;
the cloud server stores the modified product attribute information, regenerates the terminal application code according to the modified product attribute information, and sends the regenerated terminal application code to the front end, so that the front end sends the regenerated terminal application code to the terminal equipment of the internet of things.
5. The utility model provides a device of thing networking terminal access cloud service which characterized in that includes:
the acquisition module is used for acquiring configured product attribute information; the product attribute information comprises product attributes, the number of the product attributes and attribute types; the product attribute information is sent by the front end after the user configures the product attribute information at the front end; the attribute type is a data type; the product attribute is a functional attribute of the terminal of the Internet of things;
the processing module is used for generating a terminal application code according to the product attributes, the number of the product attributes, the attribute types and a preset template; the number of the product attributes corresponds to the preset template;
sending the terminal application code to the front end so that the front end sends the terminal application code to the terminal equipment of the Internet of things;
the processing module is specifically configured to:
the cloud server fills the product attribute information into the preset template, and generates the terminal application code after compiling; the preset template is selected according to the number of the product attributes.
6. The apparatus of claim 5, wherein the processing module is further to:
after the cloud server sends the terminal application code to the front end, the cloud server obtains a control instruction sent by the front end, the control instruction is packaged into a compact binary message format according to product attribute information, and the packaged control instruction is sent to the Internet of things terminal equipment, so that the Internet of things terminal equipment analyzes the packaged control instruction through an instruction analysis interface to obtain the control instruction.
7. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 4 in accordance with the obtained program.
8. A computer storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 1 to 4.
CN201911331016.XA 2019-12-20 2019-12-20 Method and device for accessing terminal of Internet of things to cloud service Active CN111162977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911331016.XA CN111162977B (en) 2019-12-20 2019-12-20 Method and device for accessing terminal of Internet of things to cloud service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911331016.XA CN111162977B (en) 2019-12-20 2019-12-20 Method and device for accessing terminal of Internet of things to cloud service

Publications (2)

Publication Number Publication Date
CN111162977A CN111162977A (en) 2020-05-15
CN111162977B true CN111162977B (en) 2022-04-15

Family

ID=70557682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911331016.XA Active CN111162977B (en) 2019-12-20 2019-12-20 Method and device for accessing terminal of Internet of things to cloud service

Country Status (1)

Country Link
CN (1) CN111162977B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112068817B (en) * 2020-08-19 2024-03-12 天翼物联科技有限公司 Code generation method, system, device and medium for terminal side of Internet of things
CN112286701A (en) * 2020-10-27 2021-01-29 深圳市拓邦软件技术有限公司 Internet of things communication method and system, Internet of things equipment and cloud
CN113014622A (en) * 2021-02-02 2021-06-22 深圳市显控科技股份有限公司 Method and system for accessing Internet of things platform, Internet of things equipment and storage medium
CN113407169A (en) * 2021-06-29 2021-09-17 北京字节跳动网络技术有限公司 Software development method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747004A (en) * 2014-01-19 2014-04-23 樊建 Realizing method of internet of things communication protocol
US10248399B2 (en) * 2014-05-28 2019-04-02 Samsung Electronics Co., Ltd Apparatus and method for controlling Internet of Things devices
CN106648690B (en) * 2016-12-29 2020-04-07 北京恒华伟业科技股份有限公司 Automatic code generation method and device
CN207304622U (en) * 2017-09-21 2018-05-01 青岛众恒信息科技股份有限公司 Industrial Internet of things system based on data cloud platform
CN110134427A (en) * 2018-02-08 2019-08-16 北京京东尚科信息技术有限公司 A kind of method and apparatus generating code file
CN108228166B (en) * 2018-03-15 2020-07-07 贝壳找房(北京)科技有限公司 Template-based back-end code generation method and system
CN108377207B (en) * 2018-05-19 2021-01-12 浪潮集团有限公司 Internet of things platform equipment access and configuration method

Also Published As

Publication number Publication date
CN111162977A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN111162977B (en) Method and device for accessing terminal of Internet of things to cloud service
CN107870821B (en) Cross-platform calling method and system for application program
CN111404883B (en) Method and device for analyzing Internet of things equipment universal protocol
CN112087454B (en) Communication method, device, equipment and storage medium of Internet of things gateway equipment
CN108449409B (en) Animation pushing method, device, equipment and storage medium
US9979611B2 (en) Client-server system for network services and applications for mobile telecommunications terminals
CN101695032A (en) Unified web client, service configuration method and system thereof
CN110580174B (en) Application component generation method, server and terminal
CN107368333A (en) Wearable device collocation method and system and configuration system based on graphical programming
CN105072461A (en) Data processing method and device
CN111158690A (en) Desktop application framework, construction method, desktop application running method and storage medium
CN107517188A (en) A kind of data processing method and device based on Android system
CN109766123B (en) Application program packaging method and device
CN105681823A (en) Method and device for transcoding video file online
CN102255961B (en) Java 2 micro edition (J2ME)-based Web Service interface calling method
CN113132371A (en) Message conversion method, device, computer readable storage medium and processor
CN108804088B (en) Protocol processing method and device
CN109343846B (en) Construction method and construction system of business scene
CN113342738B (en) Method, apparatus, computer program product and medium for modifying controller algorithm
EP3119067B1 (en) Client-server system for network services and applications for mobile telecommunications terminals
CN115437628A (en) apk application program development method, terminal, server and system
CN113204344A (en) Information acquisition method and device for front-end development
CN111782219A (en) TensorFlow-based custom type implementation method and device
CN107070910B (en) Communication method and electronic equipment
CN109299447A (en) Advertisement edit methods, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant