CN111698336A - Internet of things information transmission method and device and terminal - Google Patents

Internet of things information transmission method and device and terminal Download PDF

Info

Publication number
CN111698336A
CN111698336A CN202010614563.5A CN202010614563A CN111698336A CN 111698336 A CN111698336 A CN 111698336A CN 202010614563 A CN202010614563 A CN 202010614563A CN 111698336 A CN111698336 A CN 111698336A
Authority
CN
China
Prior art keywords
data
information
transmitted
description
internet
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.)
Pending
Application number
CN202010614563.5A
Other languages
Chinese (zh)
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.)
Shenzhen Everbest Machinery Industry Co ltd
Original Assignee
Shenzhen Everbest Machinery Industry 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 Shenzhen Everbest Machinery Industry Co ltd filed Critical Shenzhen Everbest Machinery Industry Co ltd
Priority to CN202010614563.5A priority Critical patent/CN111698336A/en
Publication of CN111698336A publication Critical patent/CN111698336A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is suitable for the technical field of communication of the Internet of things, and provides an information transmission method, device and terminal of the Internet of things, wherein the method comprises the following steps: determining information to be transmitted based on the indication information; generating data elements sequentially comprising a data head domain, a data domain and a data tail domain according to the information to be transmitted; the data field comprises N pieces of description data, the description data is used for describing the information to be transmitted, and N is a positive integer; generating a data set containing the data elements based on the data elements; and sending the data set to a target remote end. The scheme reduces the coupling degree between the information interaction parties in the Internet of things and improves the consistency of information interaction.

Description

Internet of things information transmission method and device and terminal
Technical Field
The application belongs to the technical field of communication of the Internet of things, and particularly relates to an information transmission method, device and terminal of the Internet of things.
Background
The internet of things refers to a huge network formed by combining various information sensing devices, such as a temperature sensor, a humidity sensor, a pressure sensor, an infrared imager, a global positioning system and the like, with the internet. The purpose is to connect all articles with the network, which is convenient for identification and management.
A variety of manageable items in the internet of Things we define as Things (Things). An object is a number of generally visible entities and is used as a medium for processing attributes and characteristics belonging to the object.
In the internet of things, data and information interaction is needed between different object ends or between the object end and the cloud end. However, different object ends in the internet of things have different production manufacturers and different device attributes or device characteristic information, different types of the object ends also have different communication modes, information expression and transmission modes in the object ends are different, and the difference between the object ends enables a large amount of data analysis operations to exist between the object ends and the cloud end during information interaction, so that the coupling degree between information interaction parties in the internet of things is high, and the information interaction is not smooth.
Disclosure of Invention
The embodiment of the application provides an information transmission method, device and terminal of the Internet of things, and aims to solve the problems that in the prior art, due to differences between object ends, a large amount of data analysis operation exists between the object ends and a cloud end when information interaction is carried out, the coupling degree between information interaction parties in the Internet of things is high, and the information interaction is not smooth.
A first aspect of an embodiment of the present application provides an internet of things information transmission method, including:
determining information to be transmitted based on the indication information;
generating data elements sequentially comprising a data head domain, a data domain and a data tail domain according to the information to be transmitted; the data field comprises N pieces of description data, the description data is used for describing the information to be transmitted, and N is a positive integer;
generating a data set containing the data elements based on the data elements;
and sending the data set to a target remote end.
A second aspect of the embodiments of the present application provides an internet of things information transmission device, including:
the acquisition module is used for determining information to be transmitted based on the indication information;
the first generation module is used for generating data elements sequentially comprising a data head domain, a data domain and a data tail domain according to the information to be transmitted; the data field comprises N pieces of description data, the description data is used for describing the information to be transmitted, and N is a positive integer;
a second generation module for generating a data set containing the data elements based on the data elements;
and the sending module is used for sending the data set to the target remote end.
A third aspect of embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the first aspect.
A fifth aspect of the present application provides a computer program product, which, when run on a terminal, causes the terminal to perform the steps of the method of the first aspect described above.
As can be seen from the above, in the embodiment of the present application, information to be transmitted is determined based on indication information, and according to the information to be transmitted, data elements sequentially including a data header field, a data field, and a data trailer field are generated, where the data field includes N description data, and the description data is used to describe the information to be transmitted, generate a data set including the data elements, and send the data set to a target remote end. This process provides a set of structured data exchange format, can realize serialization or serialization transmission of structured data, make data do not receive the difference influence between the thing end when transmitting in the thing end, and can once only transmit a large amount of different data message, realize including thing end and thing end, both sides of communication including thing end and high in the clouds transmit the context according to unified data transmission mode, realize the interchange transmission of data set or data message of both sides of data exchange, reduce the coupling degree between each information interaction side in the thing networking, promote the convenience of information interaction.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a first flowchart of an internet of things information transmission method provided in an embodiment of the present application;
FIG. 2 is an exemplary diagram of a data set provided by an embodiment of the present application;
fig. 3 is a flowchart ii of an internet of things information transmission method provided in the embodiment of the present application;
fig. 4 is a structural diagram of an information transmission device of the internet of things according to an embodiment of the present disclosure;
fig. 5 is a structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a first flowchart of an information transmission method of an internet of things according to an embodiment of the present application. As shown in fig. 1, an information transmission method for internet of things includes the following steps:
step 101, determining information to be transmitted based on the indication information.
The indication information can be triggered and generated locally by a user, or obtained from other remote ends, or automatically generated locally under certain conditions.
The indication information may be information transmission indication information, data configuration indication information, data detection indication information, data acquisition indication information, and the like.
As a specific implementation manner, the determining information to be transmitted based on the indication information includes: acquiring sensing data information from different sensing devices; and determining the information to be transmitted from the sensing data information based on indication information.
Here, the internet of things information transmission method may be specifically applied to an object side in the internet of things. The execution main body of the internet of things information transmission method can be specifically a sensor, a processor or a controller and the like.
When the execution main body of the internet of things information transmission method is a processor or a controller, a plurality of sensors can be connected to the processor or the controller, so that the acquisition of external numerous sensing data can be realized through the sensors. In this case, when determining the information to be transmitted based on the indication information, the sensing data information may be obtained from different sensing devices, and then the information to be transmitted, which needs to be transmitted, may be determined from the sensing data information based on the indication information. The sensing data information is, for example, temperature information, humidity information, brightness information, etc., and all or part of the information can be extracted from the information to be used as information to be transmitted, so as to realize the subsequent information transmission process with the target remote end.
And 102, generating data elements sequentially comprising a data head domain, a data domain and a data tail domain according to the information to be transmitted.
The data field comprises N pieces of description data, the description data is used for describing information to be transmitted, and N is a positive integer.
That is, the data field includes at least one description data, and the at least one description data realizes description and expression of the information to be transferred. The data field is a part of content contained in the data element, and a data head field and a data tail field exist together with the data field, so that the indication of the beginning and the end of one data element is realized.
Specifically, as an optional implementation manner, the N description data include: at least two groups of data description combinations and separators arranged between two adjacent groups of the data description combinations.
When the description data implements the description function of the information to be transferred, the description of the information to be transferred can be implemented by combining a set of data descriptions.
However, in general, the information to be transmitted contains a lot of information contents, which often include information sending objects, information contents, parameter values corresponding to the information contents, and the like, and at this time, at least two sets of data description combinations are required to implement the description of the information to be transmitted.
The partitioning is achieved by a separator between at least two sets of data description combinations. Such as commas, underline, semicolons, spaces, etc. The specific setting can be carried out according to the actual needs, and is not limited specifically here.
As an optional implementation manner, each of the data description combinations includes:
a tag, and a tag value corresponding to the tag.
The tag is used for identifying a data description object in the information to be transmitted, and the tag value is used for describing the data description object.
Specifically, the data description object is an object that needs to be described and defined, and may be a noun in the information to be transferred. For example, if the information to be transmitted is an output native identifier, the tag may be "ID", and the english abbreviation "ID" is used to identify the data description object in the information to be transmitted, that is, the native identifier, and at this time, the tag value is a specific code value of the native identifier, so as to describe the data description object (that is, the native identifier).
Each label should uniquely identify the data description object and reflect the specific meaning of the data description object as much as possible, so that the data description object is easy to understand and remember and is suitable for application in various occasions.
In the process, a set of light and efficient structured data exchange formats is provided in the embodiments of the present application, and the structured data exchange formats can achieve serialization or serialization transmission of structured data, so that data in an object end is not affected by differences between the object ends during transmission, and a large amount of different data information can be transmitted at one time, thereby achieving service independence, language independence, platform independence and content expandability in the data transmission process, and being capable of explicitly expressing information to be transmitted, thereby achieving that two communication parties including the object end and the object end, and the object end and a cloud end transmit context in a unified data transmission manner, achieving mutual exchange transmission of data sets or data information of the two data exchange parties, reducing the coupling degree between information interaction parties in the internet of things, and improving the consistency of information interaction.
Specifically, referring to fig. 2, the structural organization of the data elements includes:
data header field + data field (tag and tag value, …, tag and tag value) + data trailer field.
Further, as an optional implementation, the data element includes: attribute data elements, property data elements, command data elements, configuration data elements, history information data elements, or alarm data elements.
The information to be transmitted corresponding to the attribute data elements is attribute information; the information to be transmitted corresponding to the characteristic data element is characteristic information; the information to be transmitted corresponding to the command data element is command information; the information to be transmitted corresponding to the configuration data element is configuration data information; the information to be transmitted corresponding to the historical information data element is historical record information; and the information to be transmitted corresponding to the alarm data element is alarm information.
Here, the attribute refers to a property that an object has under any condition. For example, motion is an attribute of an object because everything is in motion; mass is a property of an object because mass does not change with shape, temperature, state, position, etc.
In this embodiment, the attribute information may be an equipment identifier, an equipment model, a vendor ID (IDentity, a relatively unique code in a certain system), a product ID, and the like of the object side.
A property is a property that a substance has under certain conditions. Typically, this property changes as conditions change. If the state is a property of the substance, because the state is temperature dependent; the melting point is a characteristic of a crystal because the melting point is related to pressure and the like.
In this embodiment, the characteristics are for various elements (e.g., temperature, humidity, CO) during physical operation2Etc.) of the behavior information. The characteristic information may be, for example, a temperature index (TMP), a humidity index (HUM), a carbon monoxide (CO) index, and a carbon dioxide (CO) index in an indoor environment object in the atmospheric weather station2) Indexes; temperature index (TMP), humidity index (HUM), carbon monoxide (CO) index, and carbon dioxide (CO) index in outdoor environment object2) And (4) indexes.
The command information specifically indicates an instruction for the target remote to perform a certain action. For example, instructing the target end to turn on the power supply, or instructing the target end to stop operating.
The configuration data information is specifically used to bring the target remote to a certain state, typically to make corresponding changes to the characteristic data of the target device. For example, the lowest temperature and the highest temperature of the measurement range of the configured temperature index may be used.
The history information is specifically history data information stored in the local. For example, the data information is locally stored historical measurement data information, specifically, historical indoor temperature, historical indoor humidity, and the like, and relevant information such as time stamps corresponding to the data information.
The alarm information is specifically warning information used for transmitting the current abnormal condition or the occurrence of items needing attention to a remote end. The alarm information may include: alarm event name, alarm event description, alarm event timestamp, alarm event processing suggestion, alarm event level, alarm event related index list and the like.
Further, as an optional implementation, wherein, in a case where the data element includes an attribute data element, the tag includes: the identification characters are respectively used for identifying the attribute information and the attribute objects in the attribute information; the tag value includes: the attribute value of the attribute object.
Specifically, the identification character for identifying the attribute information may be a (attributes), which represents that the current information belongs to the attribute information of the internet of things. The identification characters used for identifying the attribute objects in the attribute information can be converted according to different attribute objects. The identification character for identifying the attribute object in the attribute information may be specifically an acronym of english letters within three of the attribute object, which is not specifically limited herein. The attribute object is a specific attribute in the attribute information, and the specific attribute is used as a data description object, such as an equipment identifier, an equipment model, a vendor ID, a product ID, and the like.
Specifically, the labels are, for example:
and A, the GID is used for identifying that the current information is the attribute information of the object side, and the GID is used for identifying that the current information is the equipment protocol gateway information in the attribute information.
At this time, correspondingly, the data description combination is specifically a.gid:88161275, that is, the current information is attribute information of the object side, and is device protocol gateway information in the attribute information, and the device protocol gateway specific value is 88161275 (the value is a tag value, that is, an attribute value of an attribute object "device protocol gateway information", which implements description of specific content of the device protocol gateway information).
In the case where the data element comprises a property data element, the tag comprises: the identification characters are respectively used for identifying the characteristic information, the characteristic object in the characteristic information, the description index of the characteristic object and the numerical value unit of the description index; the tag value includes: and index values of the description indexes corresponding to the numerical units.
In particular for identifying property informationThe identification character of (2) can be f (features), which represents the characteristic information that the current information belongs to the things in the internet of things. The identification characters used for identifying the property objects in the property information can be transformed according to different property objects. The identification character for identifying the property object in the property information may be specifically an acronym of english letters within three of the property object, such as an indoor environment object (IND) and an outdoor environment Object (OUD) in an aeronautical weather station, which is not limited specifically herein. The identification characters for identifying the description indexes of the property object may be, specifically, capital abbreviations of english letters within three of the description indexes, such as a temperature index (TMP), a humidity index (HUM), a carbon monoxide (CO) index, and a carbon dioxide (CO) index in an indoor environment object in an aeronautical weather station2) Indexes; temperature index (TMP), humidity index (HUM), carbon monoxide (CO) index, and carbon dioxide (CO) index in outdoor environment object2) Indexes, and the like. The identification characters for identifying the numerical units describing the index may be, specifically, capitalized abbreviations of english letters within three of the numerical units, such as RH units, CEL units. The characteristic object is a specific characteristic in the characteristic information, and the specific characteristic and the description index of the specific characteristic are used as data description objects.
Specifically, examples are:
F.IND _ HUM _ RH:52.3, wherein F.IND _ HUM _ RH is a label, and 52.3 is a label value.
The system comprises a monitoring module, a display module, an information processing module and a display module, wherein F is used for identifying that current information is characteristic information of an object end, IND represents an indoor environment characteristic object of equipment, HUM represents a humidity index, and RH represents a humidity unit; and 52.3 is an index value of the humidity index in RH unit of the indoor environment of the equipment measured by the sensor.
Differently, in the case where the data element includes a command data element, the tag includes: an identification character for identifying the command information; the tag value includes: command content characters.
Specifically, the identification character for identifying the property information may be CMD, which represents that the current information belongs to command information in the internet of things. The tag value is specific to the specific command content of the command information. When the instruction information to be transferred is different, the command content character in the tag value is changed accordingly.
For example, the following steps are carried out:
SHT, wherein the CMD is used for marking the current information as command information; the SHT is a character for identifying the schedule command as a shutdown command, and is used to indicate that the target end needs to be closed.
Further, differently, in a case where the data element includes a configuration data element, the tag includes: identification characters respectively used for identifying the configuration objects in the configuration information and the configuration numerical units of the configuration objects; the tag value includes: a configuration value of the configuration object corresponding to the configuration value unit.
Specifically, the identifier for identifying the configuration object in the configuration information may be an acronym of english letters within three of the configuration object, and the identifier for identifying the configuration object in the configuration information may be transformed according to the difference of the configuration object. The configuration object is specifically a specific configuration item in the configuration information, and the specific configuration item is used as a data description object. The identification characters for identifying the configuration value unit of the configuration object may be, specifically, capital abbreviations of english letters within three of the configuration value unit, such as RH unit and CEL unit.
For example, the following steps are carried out:
HUN _ RH:30.0, wherein HUN _ RH is label, and 30.0 is label value.
HUN is configured to identify that the configuration object in the current configuration information is the lowest humidity of the humidity index measurement range, and RH represents a humidity unit; 30.0 is the lowest humidity configuration value in the humidity index measurement range in RH.
HUX _ RH:70.5, wherein HUX _ RH is a label, and 70.5 is a label value.
The HUX is used for identifying that a configuration object in the current configuration information is the highest humidity of a humidity index measurement range, and RH represents a humidity unit; 30.0 is the configured value of the highest humidity of the humidity index measurement range in RH unit.
Further, differently, in the case where the data element includes a history information data element, the tag includes: the identification characters are used for identifying different information contents in the historical record information; the tag value includes: the information content corresponding to the identification character.
Here, the different information contents in the history information may specifically include: a history start time stamp, a history end time stamp, a total number of recorded data, a recorded data list, and the like. The identification characters used for identifying different information contents in the historical record information are multiple, and the multiple identification characters are in one-to-one correspondence with the different information contents.
The label value corresponding to the label is specifically the information content in the history information corresponding to the identification character.
For example:
DAY is 2020-05-18, wherein DAY is a label, 2020-05-18 is a label value, and the information represents all measurement data of the current historical record information on the current DAY 2020-05-18;
1589731201000, wherein BEG is label, 1589731201000 is label value, the information shows that the starting time stamp of the history information is 1589731201000;
1589817599000, wherein END is label, 1589817599000 is label value, the information shows that the END time stamp of the history information is 1589817599000.
The above is merely an exemplary illustration, and the information content may be set and organized according to actual needs, and is not limited thereto.
Further, where the data element comprises an alarm data element, the tag comprises: the identification characters are used for identifying different information contents in the alarm information; the tag value includes: the information content corresponding to the identification character.
Here, the different information contents in the alarm information may specifically include: the alarm event is unique in identification, the name of the alarm event, the description of the alarm event, the related index list of the alarm event, the timestamp of the alarm event, the processing suggestion of the alarm event, the grade of the alarm event and the like. The identification characters used for identifying different information contents in the calendar alarm information are multiple, and the multiple identification characters are in one-to-one correspondence with the different information contents.
The label value corresponding to the label is specifically the information content in the alarm information corresponding to the identification character.
For example:
the NAM is Absormal _ Body _ Temperature _ Alert, wherein the NAM is a label, Absormal _ Body _ Temperature _ Alert is a label value, and the information represents that the time name of the current alarm information is Absormal _ Body _ Temperature _ Alert;
the DES is abstract Body Temperature Alert, wherein DES is a label, abstract Body Temperature Alert is a label value, and the information represents that the alarm time of the current alarm information is described as abstract Body Temperature Alert;
and the REC is the drink more water, wherein the NAM is the label, the drink more water is the label value, and the information shows that the alarm event processing suggestion of the current alarm information is the drink more water.
Based on the data element, a data set containing the data element is generated, step 103.
Specifically, the data set is mainly classified into an attribute data set, a property data set, a command data set, a configuration data set, and the like. The data elements contained in the different data sets correspond to attribute data elements, characteristic data elements, command data elements and configuration data elements in sequence.
One data set contains at least one data element. When a plurality of data elements in one data set are available, the data elements in the data set are encoded by using a small byte order, so that the storage resources are saved.
Step 104, the data set is sent to the target remote end.
The target remote end can be other object ends or a cloud end. The other object terminal is, for example, other processing terminal or information acquisition terminal.
When the data set is sent to the target far end, a data exchange sequence consisting of a plurality of data sets can be sent to the target far end, and data exchange between an object end and an object end in the internet of things or between object end equipment and cloud services in the internet of things is achieved.
In the embodiment of the application, the information to be transmitted is determined based on the indication information, and the data elements sequentially comprising the data head domain, the data domain and the data tail domain are generated according to the information to be transmitted, wherein the data domain comprises N pieces of description data, the description data are used for describing the information to be transmitted, a data set containing the data elements is generated, and the data set is sent to the target far end. This process provides a set of structured data exchange format, can realize serialization or serialization transmission of structured data, make data do not receive the difference influence between the thing end when transmitting in the thing end, and can once only transmit a large amount of different data message, realize including thing end and thing end, both sides of communication including thing end and high in the clouds transmit the context according to unified data transmission mode, realize the interchange transmission of data set or data message of both sides of data exchange, reduce the coupling degree between each information interaction side in the thing networking, promote the interactive uniformity of information.
The embodiment of the application also provides different implementation modes of the Internet of things information transmission method.
Referring to fig. 3, fig. 3 is a second flowchart of an internet of things information transmission method provided in the embodiment of the present application. As shown in fig. 3, an information transmission method for internet of things includes the following steps:
step 301, determining information to be transmitted based on the indication information.
The implementation manner of this step is the same as that of step 101 in the foregoing embodiment, and is not described here again.
Step 302, according to the information to be transmitted, generating data elements sequentially including a data head field, a data field and a data tail field according to the data definition specified in the local data dictionary.
The data field comprises N pieces of description data, the description data is used for describing the information to be transmitted, and N is a positive integer.
Wherein the local data dictionary is the same as the data dictionary stored in the target remote.
Specifically, the data dictionary refers to a complete definition and description of specific contents and features of each basic element (data stream, command, configuration, etc.) in the data exchange recorded in a specific format.
In this embodiment, the generation of the data elements must conform to the definition in the data dictionary to form the digital information expression and data exchange content for an object in the internet of things. And the local data dictionary is the same as the data dictionary stored in the target remote end (other object end or cloud end), so that both data interaction parties use the used data transmission grammar and the same data expression definition, complete consistency of the data composition form and the data definition of the interaction data of the both parties during data interaction of different terminals can be better met, and the smoothness and the consistency of communication interaction in the Internet of things are improved.
Step 303, sorting the M data elements according to a sequence corresponding to the information to be transferred.
Wherein, the number of the data elements is M, and M is a positive integer.
When the information to be transmitted includes a plurality of information contents and different data elements respectively correspond to one information content, the arrangement sequence of the M data elements is the same as the arrangement sequence of the information contents included in the information to be transmitted.
When the number of the information to be transmitted is M and different data elements correspond to one information to be transmitted, the arrangement sequence of the M data elements is the same as the arrangement sequence of the M information to be transmitted.
Or the M data elements may be sorted according to a sequence specified by the user and corresponding to the information to be transferred, which is not limited herein.
Step 304, a data set is generated that contains the sorted M data elements.
As shown in fig. 2, the data set includes a plurality of data elements to implement information transfer.
Step 305, the data set is sent to the target remote.
When the data set including the sorted M data elements is transmitted, the data elements are sequentially sent to the target remote end according to a set transmission order, as shown in the arrow direction in fig. 2.
Other implementation manners of this step are the same as those of step 104 in the foregoing embodiment, and are not described here again.
In the embodiment of the application, the information to be transmitted is determined based on the indication information, and the data elements sequentially comprising the data head domain, the data domain and the data tail domain are generated according to the information to be transmitted, wherein the data domain comprises N pieces of description data, the description data are used for describing the information to be transmitted, a data set containing the data elements is generated, and the data set is sent to the target far end. This process provides a set of structured data exchange format, can realize serialization or serialization transmission of structured data, make data do not receive the difference influence between the thing end when transmitting in the thing end, and can once only transmit a large amount of different data message, realize including thing end and thing end, both sides of communication including thing end and high in the clouds transmit the context according to unified data transmission mode, realize the interchange transmission of data set or data message of both sides of data exchange, reduce the coupling degree between each information interaction side in the thing networking, promote the convenience of information interaction.
Referring to fig. 4, fig. 4 is a structural diagram of an information transmission device of the internet of things according to an embodiment of the present application, and for convenience of description, only a part related to the embodiment of the present application is shown.
The internet of things information transmission apparatus 400 includes:
an obtaining module 401, configured to determine information to be transmitted based on the indication information;
a first generating module 402, configured to generate, according to the information to be transmitted, data elements that sequentially include a data header field, a data field, and a data trailer field; the data field comprises N pieces of description data, the description data is used for describing the information to be transmitted, and N is a positive integer;
a second generating module 403, configured to generate a data set including the data element based on the data element;
a sending module 404, configured to send the data set to the target remote end.
Alternatively, the sending module 404 may be an HTTP (hypertext Transfer Protocol) sending unit, an MQTT (Message queue Telemetry Transport) sending unit, a Long Range Wide Area Network (Long Range Area Network) sending unit, a CoAP (Constrained Application Protocol) sending unit, an NB-IoT (Narrow band internet of Things) sending unit, an OPC-UA (OPC-Unified Architecture) gateway, a Modbus sending unit complying with the Modbus communication Protocol, a CAN (Controller Area Network) sending unit, a ZigBee sending unit of the ZigBee Protocol, an EtherNet/IP sending unit of the industrial EtherNet Protocol, a TCP/UDP (Transmission Control Protocol/User data program) sending unit, or other customized sending units.
The transmitting module can also be embodied as a general transmitting and receiving unit, which can be a certain codec, and encodes a signal to be transmitted, modulates the signal into a certain electrical signal, and transmits the electrical signal through a corresponding carrier.
The first generating module 402 is specifically configured to:
generating data elements sequentially comprising a data head field, a data field and a data tail field according to the information to be transmitted and the data definition specified in the local data dictionary;
wherein the local data dictionary is the same as the data dictionary stored in the target remote.
Wherein the N pieces of description data include:
at least two groups of data description combinations and separators arranged between two adjacent groups of the data description combinations.
Wherein, each group of the data description combination comprises:
a tag, and a tag value corresponding to the tag; the tag is used for identifying a data description object in the information to be transmitted, and the tag value is used for describing the data description object.
Wherein the data element comprises: attribute data elements, characteristic data elements, command data elements, configuration data elements, history information data elements, or alarm data elements;
the information to be transmitted corresponding to the attribute data elements is attribute information; the information to be transmitted corresponding to the characteristic data element is characteristic information; the information to be transmitted corresponding to the command data element is command information; the information to be transmitted corresponding to the configuration data element is configuration data information; the information to be transmitted corresponding to the historical information data element is historical record information; and the information to be transmitted corresponding to the alarm data element is alarm information.
Wherein, in a case where the data element includes an attribute data element, the tag includes: identification characters respectively used for identifying the attribute information and the attribute object in the attribute information; the tag value includes: attribute values of the attribute objects;
in the case where the data element comprises a property data element, the tag comprises: identification characters used for identifying the characteristic information, characteristic objects in the characteristic information, description indexes of the characteristic objects and numerical units of the description indexes respectively; the tag value includes: an index value of the description index corresponding to the numerical unit;
in the case where the data element comprises a command data element, the tag comprises: an identification character for identifying the command information; the tag value includes: a command content character;
in the case where the data element comprises a configuration data element, the tag comprises:
identification characters respectively used for identifying the configuration objects in the configuration information and the configuration numerical units of the configuration objects; the tag value includes: a configuration value of the configuration object corresponding to the configuration value unit;
in a case where the data element includes the history information data element, the tag includes: the identification characters are used for identifying different information contents in the historical record information; the tag value includes: the information content corresponding to the identification character;
in the event that the data element comprises the alarm data element, the tag comprises: the identification characters are used for identifying different information contents in the alarm information; the tag value includes: the information content corresponding to the identification character.
The obtaining module 401 is specifically configured to:
acquiring sensing data information from different sensing devices;
and determining the information to be transmitted from the sensing data information based on indication information.
Wherein the number of the data elements is M, where M is a positive integer, and the second generating module 403 is specifically configured to:
sequencing the M data elements according to a sequence corresponding to the information to be transmitted;
generating a data set containing the ordered M data elements.
The internet of things information transmission device provided by the embodiment of the application can realize each process of the embodiment of the internet of things information transmission method, can achieve the same technical effect, and is not repeated here for avoiding repetition.
Fig. 5 is a structural diagram of a terminal according to an embodiment of the present application. As shown in the figure, the terminal 5 of this embodiment includes: at least one processor 50 (only one shown in fig. 5), a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, the steps of any of the various method embodiments described above being implemented when the computer program 52 is executed by the processor 50.
The terminal 5 may be a desktop computer, a notebook computer, a palm computer, a single chip processing unit, an embedded computing device or a cloud server. The terminal 5 may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 5 is only an example of a terminal 5 and does not constitute a limitation of the terminal 5 and may include more or less components than those shown, or some components in combination, or different components, for example the terminal may also include input output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal 5, such as a hard disk or a memory of the terminal 5. The memory 51 may also be an external storage device of the terminal 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The present application realizes all or part of the processes in the method of the above embodiments, and may also be implemented by a computer program product, when the computer program product runs on a terminal, the steps in the above method embodiments may be implemented when the terminal executes the computer program product.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An information transmission method of the Internet of things is characterized by comprising the following steps:
determining information to be transmitted based on the indication information;
generating data elements sequentially comprising a data head domain, a data domain and a data tail domain according to the information to be transmitted; the data field comprises N pieces of description data, the description data is used for describing the information to be transmitted, and N is a positive integer;
generating a data set containing the data elements based on the data elements;
and sending the data set to a target remote end.
2. The internet of things information transmission method according to claim 1, wherein the generating of data elements sequentially including a data header field, a data field, and a data trailer field according to the information to be transmitted includes:
generating data elements sequentially comprising a data head field, a data field and a data tail field according to the information to be transmitted and the data definition specified in the local data dictionary;
wherein the local data dictionary is the same as the data dictionary stored in the target remote.
3. The internet of things information transmission method according to claim 1, wherein the N pieces of description data include:
at least two groups of data description combinations and separators arranged between two adjacent groups of the data description combinations.
4. The internet of things information transmission method according to claim 3, wherein each group of the data description combination comprises:
a tag, and a tag value corresponding to the tag; the tag is used for identifying a data description object in the information to be transmitted, and the tag value is used for describing the data description object.
5. The Internet of things information transmission method according to claim 4,
the data elements include: attribute data elements, characteristic data elements, command data elements, configuration data elements, history information data elements, or alarm data elements;
the information to be transmitted corresponding to the attribute data elements is attribute information; the information to be transmitted corresponding to the characteristic data element is characteristic information; the information to be transmitted corresponding to the command data element is command information; the information to be transmitted corresponding to the configuration data element is configuration data information; the information to be transmitted corresponding to the historical information data element is historical record information; and the information to be transmitted corresponding to the alarm data element is alarm information.
6. The Internet of things information transmission method according to claim 5,
in the case where the data element includes the attribute data element, the tag includes: identification characters respectively used for identifying the attribute information and the attribute object in the attribute information; the tag value includes: attribute values of the attribute objects;
in the case where the data element includes the characteristic data element, the tag includes: identification characters used for identifying the characteristic information, characteristic objects in the characteristic information, description indexes of the characteristic objects and numerical units of the description indexes respectively; the tag value includes: an index value of the description index corresponding to the numerical unit;
in the case where the data element comprises the command data element, the tag comprises: an identification character for identifying the command information; the tag value includes: a command content character;
in the case where the data element comprises the configuration data element, the tag comprises:
identification characters respectively used for identifying the configuration objects in the configuration information and the configuration numerical units of the configuration objects; the tag value includes: a configuration value of the configuration object corresponding to the configuration value unit;
in a case where the data element includes the history information data element, the tag includes: the identification characters are used for identifying different information contents in the historical record information; the tag value includes: the information content corresponding to the identification character;
in the event that the data element comprises the alarm data element, the tag comprises: the identification characters are used for identifying different information contents in the alarm information; the tag value includes: the information content corresponding to the identification character.
7. The method for transmitting information of the internet of things according to claim 1, wherein the determining the information to be transmitted based on the indication information comprises:
acquiring sensing data information from different sensing devices;
and determining the information to be transmitted from the sensing data information based on indication information.
8. The method for transmitting information of the internet of things according to claim 1, wherein the number of the data elements is M, M is a positive integer, and the generating a data set including the data elements based on the data elements comprises:
sequencing the M data elements according to a sequence corresponding to the information to be transmitted;
generating a data set containing the ordered M data elements.
9. An information transmission device of the internet of things is characterized by comprising:
the acquisition module is used for determining information to be transmitted based on the indication information;
the first generation module is used for generating data elements sequentially comprising a data head domain, a data domain and a data tail domain according to the information to be transmitted; the data field comprises N pieces of description data, the description data is used for describing the information to be transmitted, and N is a positive integer;
a second generation module for generating a data set containing the data elements based on the data elements;
and the sending module is used for sending the data set to the target remote end.
10. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 8 when executing the computer program.
CN202010614563.5A 2020-06-30 2020-06-30 Internet of things information transmission method and device and terminal Pending CN111698336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010614563.5A CN111698336A (en) 2020-06-30 2020-06-30 Internet of things information transmission method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010614563.5A CN111698336A (en) 2020-06-30 2020-06-30 Internet of things information transmission method and device and terminal

Publications (1)

Publication Number Publication Date
CN111698336A true CN111698336A (en) 2020-09-22

Family

ID=72484714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010614563.5A Pending CN111698336A (en) 2020-06-30 2020-06-30 Internet of things information transmission method and device and terminal

Country Status (1)

Country Link
CN (1) CN111698336A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024045468A1 (en) * 2022-08-30 2024-03-07 广东拓斯达科技股份有限公司 Data processing method, apparatus and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375233A (en) * 2015-11-09 2017-02-01 北京智谷技术服务有限公司 Data transmission method and data transmission device
CN107395604A (en) * 2017-07-28 2017-11-24 深圳市盛路物联通讯技术有限公司 A kind of Internet of Things information transferring method and device
CN108476236A (en) * 2015-12-30 2018-08-31 康维达无线有限责任公司 The semantic-based contents norm of Internet of Things data
CN108769109A (en) * 2018-04-13 2018-11-06 西安电子科技大学 Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data
CN108965484A (en) * 2018-09-30 2018-12-07 深圳市酷达通讯有限公司 A kind of transmission method of internet of things data, system and terminal
CN109104300A (en) * 2018-07-12 2018-12-28 华清慧商(北京)科技有限公司 A kind of general sensing data acquisition parsing of software definition reports things system and method
WO2019067645A1 (en) * 2017-09-27 2019-04-04 Johnson Controls Technology Company Building management system with data ingestion into smart entities and interface of smart entities with enterprise applications
CN110674130A (en) * 2019-08-30 2020-01-10 深圳鸿智云创科技有限公司 Data transmission method
CN110708351A (en) * 2019-08-30 2020-01-17 深圳鸿智云创科技有限公司 Data transmission method
CN110995639A (en) * 2019-08-30 2020-04-10 深圳精匠云创科技有限公司 Data transmission method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375233A (en) * 2015-11-09 2017-02-01 北京智谷技术服务有限公司 Data transmission method and data transmission device
CN108476236A (en) * 2015-12-30 2018-08-31 康维达无线有限责任公司 The semantic-based contents norm of Internet of Things data
CN107395604A (en) * 2017-07-28 2017-11-24 深圳市盛路物联通讯技术有限公司 A kind of Internet of Things information transferring method and device
WO2019067645A1 (en) * 2017-09-27 2019-04-04 Johnson Controls Technology Company Building management system with data ingestion into smart entities and interface of smart entities with enterprise applications
CN108769109A (en) * 2018-04-13 2018-11-06 西安电子科技大学 Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data
CN109104300A (en) * 2018-07-12 2018-12-28 华清慧商(北京)科技有限公司 A kind of general sensing data acquisition parsing of software definition reports things system and method
CN108965484A (en) * 2018-09-30 2018-12-07 深圳市酷达通讯有限公司 A kind of transmission method of internet of things data, system and terminal
CN110674130A (en) * 2019-08-30 2020-01-10 深圳鸿智云创科技有限公司 Data transmission method
CN110708351A (en) * 2019-08-30 2020-01-17 深圳鸿智云创科技有限公司 Data transmission method
CN110995639A (en) * 2019-08-30 2020-04-10 深圳精匠云创科技有限公司 Data transmission method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024045468A1 (en) * 2022-08-30 2024-03-07 广东拓斯达科技股份有限公司 Data processing method, apparatus and system

Similar Documents

Publication Publication Date Title
CN104899261B (en) A kind of apparatus and method for building structuring video image information
Varghese et al. An IoT analytics approach for weather forecasting using raspberry Pi 3 model B+
KR20140047677A (en) Electronic price label system and method
CN113422720B (en) Anomaly detection method based on edge computing gateway
CN108063775B (en) Communication protocol compatible method, device and system
CN113159091A (en) Data processing method and device, electronic equipment and storage medium
WO2005098706A3 (en) Container inventory management
CN111295646A (en) Automatic mapping and generation of tags from data strings
CN110995639A (en) Data transmission method
CN111698336A (en) Internet of things information transmission method and device and terminal
US11310353B2 (en) Data transmission method for creating data structure facilitating data transmission and reception
CN109995782B (en) Information processing method, device, system and computer storage medium
CN112330134A (en) Method and system for detecting quality guarantee state of article
CN114124878B (en) Market data issuing method, device, system, equipment and medium
CN116050134A (en) Simulation method, device and equipment for stereoscopic warehouse of automatic instrument detection system
CN102508841A (en) Method for identifying RFID (radio frequency identification) perceiving information of internet of things
CN110399612A (en) The semantic conversion method and middleware of marginal layer in industry internet
CN102075520B (en) Method for transmitting data by applying image information-embedded RFID data format
CN112949258A (en) Data processing method and device, electronic equipment and storage medium
CN113472779A (en) Data processing method and device
CN206133044U (en) Thunder and lightning cloud early warning system based on raspberry group
CN108304227A (en) A kind of online wake-up system, method, terminal and medium
EP2819085A1 (en) Terminal management apparatus and method of controlling the same
CN115314553B (en) Method, device, equipment, system and readable storage medium for data processing
CN214174875U (en) Portable environment real-time monitoring and recording device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200922

RJ01 Rejection of invention patent application after publication