CN117768511A - Data transmission method, device, equipment and storage medium of Internet of things equipment - Google Patents

Data transmission method, device, equipment and storage medium of Internet of things equipment Download PDF

Info

Publication number
CN117768511A
CN117768511A CN202410034370.0A CN202410034370A CN117768511A CN 117768511 A CN117768511 A CN 117768511A CN 202410034370 A CN202410034370 A CN 202410034370A CN 117768511 A CN117768511 A CN 117768511A
Authority
CN
China
Prior art keywords
data
capability
input device
equipment
data packet
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
CN202410034370.0A
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.)
Zhongke Wuqi Nanjing Technology Co ltd
Original Assignee
Zhongke Wuqi Nanjing 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 Zhongke Wuqi Nanjing Technology Co ltd filed Critical Zhongke Wuqi Nanjing Technology Co ltd
Priority to CN202410034370.0A priority Critical patent/CN117768511A/en
Publication of CN117768511A publication Critical patent/CN117768511A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The disclosure provides a data transmission method, a device, equipment and a storage medium of internet of things equipment, wherein the method comprises the following steps: acquiring the capability state of the output equipment; acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types; acquiring a receivable data type of the input device, and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device; and sending the control instruction to the input device. Because the data packet of the output device comprises data values corresponding to various types of data, the input device can select the corresponding data values to process according to the data types supported by the input device under the condition of receiving the data packet, so that communication compatibility among incompatible devices is realized through the data packet constructed by the self-defined data types.

Description

Data transmission method, device, equipment and storage medium of Internet of things equipment
Technical Field
The disclosure relates to the technical field of internet of things, and in particular relates to a data transmission method, a data transmission device, data transmission equipment and a data storage medium of internet of things equipment.
Background
When the Internet of things technology is applied, the technology is widely permeated into aspects of life and work of people, more and more devices and sensors are interconnected and communicated, mass data is formed, and more intelligent life and work environments are provided for people. However, the current internet of things technology cannot realize supporting data transmission between internet of things devices with different data types, so that the development progress of internet of everything is limited.
Disclosure of Invention
In view of this, the present disclosure proposes a data transmission method, apparatus, device and storage medium for an internet of things device, where the method implements communication compatibility between devices that are not compatible by data packets constructed with custom data types.
According to a first aspect of the present disclosure, there is provided a data transmission method of an internet of things device, including:
acquiring the capability state of the output equipment;
acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types;
acquiring a receivable data type of an input device, and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device;
and sending the control instruction to the input device.
In one possible implementation, the preset data type in the data packet includes at least one of boolean type, integer type, character type, floating point type and enumeration type.
In one possible implementation, the data value corresponding to each data type in the data packet is determined based on a user's usual control requirements.
In one possible implementation, when generating the control instruction of the input device based on the data packet, the receivable data type, and the capability of the input device, the method includes:
extracting a data value corresponding to the receivable data type from the data packet;
acquiring a control instruction template for controlling the capability of the input device;
and filling the data value corresponding to the receivable data type into a preset position of the control instruction template to obtain the control instruction of the input device.
In one possible implementation, the data transmission method is implemented based on a data transmission application, wherein the data transmission application is generated based on an imaging internet of things application development tool.
In one possible implementation manner, when the data transmission application program is generated based on the imaging application development tool of the internet of things, the method includes:
according to the triggering of the output equipment and the equipment identification corresponding to the input equipment, rendering an output equipment block and an input equipment block in an application editing area of the Internet of things;
creating an output capability interface on the output device tile according to the configured output device capabilities;
creating an input capability interface on the input device tile according to the configured input device capabilities;
establishing a connection line of the output capability interface and the input capability interface according to connection trigger of the output capability interface and the input capability interface so as to obtain a device topological diagram of the output device and the input device;
and generating the data transmission application program based on the device topological graph.
In one possible implementation, when generating the data transmission application program based on the device topology map, the method includes:
acquiring the block information and the output capability interface information of the output equipment, and determining the capabilities of the output equipment and the output equipment;
generating a first code for acquiring the capability state of the output device and a second code for acquiring a data packet matched with the capability state of the device based on the output device and the capability of the output device;
acquiring the block information and the input capability interface information of the input equipment, and determining the capabilities of the input equipment and the input equipment;
generating a receivable data type of the input device based on the input device and the capability of the input device, and generating a third code of a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device;
generating a fourth code that sends the control instruction to the input device;
and sequentially combining the first code, the second code, the third code and the fourth code to obtain the data transmission application program.
According to a second aspect of the present disclosure, there is provided a data transmission apparatus of an internet of things device, including:
the capacity state acquisition module is used for acquiring the capacity state of the output equipment;
the data packet acquisition module is used for acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types;
the control instruction generation module is used for acquiring the receivable data type of the input device and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device;
and the sending module is used for sending the control instruction to the input equipment.
According to a third aspect of the present disclosure, there is provided a data transmission device of an internet of things device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of the first aspect of the present disclosure.
According to a fourth aspect of the present disclosure there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions when executed by a processor implement the method of the first aspect of the present disclosure.
The data transmission method of the Internet of things equipment comprises the steps of obtaining the capability state of output equipment; acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types; acquiring a receivable data type of the input device, and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device; and sending the control instruction to the input device. Because the data packet of the output device comprises data values corresponding to various types of data, the input device can select the corresponding data values to process according to the data types supported by the input device under the condition of receiving the data packet, so that communication compatibility among incompatible devices is realized through the data packet constructed by the self-defined data types.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features and aspects of the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flowchart of a data transmission method of an internet of things device according to an embodiment of the present disclosure.
FIG. 2 illustrates a development interface presentation diagram of a graphical development tool in accordance with an embodiment of the present disclosure.
FIG. 3 shows a device topology diagram representation according to an embodiment of the present disclosure;
FIG. 4 shows a device topology diagram representation according to another embodiment of the present disclosure;
fig. 5 shows a schematic block diagram of a data transmission apparatus of an internet of things device according to an embodiment of the present disclosure.
Fig. 6 shows a schematic block diagram of a data transmission device of an internet of things device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
< method example >
Fig. 1 shows a flowchart of a data transmission method of an internet of things device according to an embodiment of the present disclosure. As shown in fig. 1, the method includes steps S1100-S1400.
S1100, acquiring the capability state of the output device.
In the application scenario of the internet of things, if the internet of things device a can control the internet of things device B, the internet of things device a is an output device, and the internet of things device B is an input device. For example, the door and window sensor may detect a door and window open/close state, and if the door and window sensor detects that the door and window is in an open state, the door and window sensor will control the floor fan to be closed; when the door and window sensor detects that the door and window is in a closed state, the floor fan is controlled to be opened; the door and window sensor can control the switch state of the floor fan, and the door and window sensor is output equipment, and the floor fan is input equipment.
Device capabilities are functions that the device has. For example, a home light has a switching capability, a brightness capability, and a color temperature capability, and then the home light switching function, the brightness adjustment function, and the color temperature adjustment function are characterized.
The capability status of a device is the functional status of the device. For example, a home light switching capability may have two capability states, on and off, a brightness capability may have three capability states, high, medium, and low, and a color temperature adjustment capability may have three capability states, warm, neutral, and cool.
In this embodiment, the output device and the input device are respectively connected to the cloud platform in a communication manner, and the cloud platform executes the data transmission method of this embodiment, so as to implement data interaction between the output device and the input device.
In one possible implementation, the cloud platform may obtain the capability status of the output device in an active manner. Specifically, the cloud platform may issue an instruction for querying the device state to the output device, so as to detect the capability state of the current output device through the instruction, and further obtain the capability state of the current output device.
In another possible implementation manner, when the capability state of the output device changes, the current capability state is reported to the cloud platform, so that the cloud platform can acquire the capability state of the output device.
S1200, acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types.
In one possible implementation manner, when acquiring the data packet matched with the capability state of the output device, the data packet may be implemented based on a first mapping relation table configured in advance, where the first mapping relation table includes multiple types of internet of things devices, multiple types of device capabilities are configured for each type of internet of things device, multiple types of capability states are configured for each type of device capability, and data packets matched with each type of capability state are configured for each type of capability state, so that after acquiring the capability state of the output device, the data packet matched with the capability state of the output device may be acquired by querying the first mapping relation table.
It should be noted that, the multiple device capabilities configured for each type of internet of things device in the first mapping table covers the capabilities of all the same type of internet of things devices in the market. For example, some home lamps in the market only have the capability of switching, some home lamps have the capability of switching and brightness adjustment, and some home lamps have the capability of switching, brightness adjustment and color temperature condition at the same time, so the device capability configured for the internet of things devices such as the home lamps in the first mapping relation table comprises the capability of switching, brightness and color temperature.
Further, the plurality of capability states configured for each device capability in the first mapping table covers all capability states that the capability may have on the market. For example, if the brightness capability of some home lamps on the market has only one capability state, the brightness capability of other home lamps has two capability states of high capability and low capability states, and the brightness capability of other home lamps has three capability states of high capability state, medium capability state and low capability state, the first mapping relation table is configured with the three capability states of high capability state, medium capability state and low capability state for the brightness capability of the home lamps.
Further, the first mapping relation table is configured with data packets matched with each capability state, that is to say, the first mapping relation table can query data packets corresponding to various capability states of various kinds of Internet of things equipment in the adaptation market, so that the universal usability of the data transmission method is ensured.
In one possible implementation, the predetermined data type in each data packet may include at least one of a boolean type, an integer type, a character type, a floating point type, and an enumeration type. Specifically, the boolean type data type may be denoted as pool, the integer type data type may be denoted as int, the character type data type may be denoted as string, the floating point type data type may be denoted as float, the enumeration type data type may be denoted as enum, based on which the content of the packet may be as shown in table 1.
In one possible implementation manner, the data value corresponding to each data type in the data packet is determined based on the usual control requirement of the user, so that the control of the internet of things device can meet the usual control requirement of the user, and the use experience of the user is improved.
For example, a user may generally expect that a door and window is opened, and may control an indoor floor fan to be closed, where the floor fan has a wind speed of 0, and the working mode is selected to be closed, and the monitoring device may display a "door and window opening" word, and simultaneously expect that the door and window is closed, and may control the indoor floor fan to be opened, and operate at a wind speed 60 with a most comfortable body feeling, and operate with an automatic working model, and the monitoring device may display a "door and window closing" word, where the floor fan is opened typically using a bool type data control, the wind speed is typically using an int type data control, the working model is typically using an enum type data control, the monitoring device display word is typically using a string type data control, and at this time, a data packet of a closed capacity state of a door and window sensor opening capacity may be set in a form of table 1, and a data packet of a separated capacity state of a door and window sensor opening capacity may be set in a form of table 2.
TABLE 1
TABLE 2
S1300, acquiring the receivable data type of the input device, and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device.
In one possible implementation, the receivable data type of the input device is determined based on the capabilities of the input device to be controlled. Specifically, in the first mapping relationship table, for each capability of each type of the internet of things device, a data type that can be supported by a corresponding capability interface is recorded, so that when determining the capability of the input device to be controlled, the data type that can be supported by the capability interface corresponding to the capability of the input device to be controlled can be queried by querying the first mapping relationship table, and the data type is taken as the receivable data type of the input device.
For example, the output device is a door and window sensor, the input device is a floor fan, the switching capacity of the floor fan needs to be controlled by the switching capacity of the door and window sensor, and at this time, in the first mapping table, the data type that can be supported by the capacity interface corresponding to the switching capacity of the floor fan is queried to be a bool type, and the bool type is used as the data type that can be received by the floor fan switching capacity interface.
In one possible implementation, when generating the control instruction of the input device based on the data packet, the receivable data type and the capability of the input device, the method may include the steps of: first, a data value corresponding to a receivable data type is extracted from a data packet. Second, a control instruction template is obtained that controls the capabilities of the input device. And finally, filling the data value corresponding to the receivable data type into a preset position of the control instruction template to obtain the control instruction of the input device.
In a possible implementation manner, when the control instruction template for controlling the capability of the input device is obtained, the control instruction template may be implemented based on a second mapping relation table configured in advance, where the second mapping relation table includes multiple types of internet of things devices, multiple types of device capabilities are configured for each type of internet of things device, and a control instruction template matched with each type of device capability is configured for each type of device capability, so that after the capability of the input device is obtained, the control instruction template matched with the capability of the input device is obtained by querying the second mapping relation table.
Further, the control instruction template includes the capability control parameters to be assigned, so that after the control instruction template for controlling the capability of the input device is obtained, the data value corresponding to the receivable data type can be filled in the capability control parameters to be assigned, so as to obtain the control instruction of the input device.
S1400, sending the control instruction to the input device.
The above steps S1100-S1400 will be further described with specific examples.
Example 1, the switching capacity of a floor fan was controlled by the switching capacity of a door and window sensor.
Specifically, when the cloud platform acquires that the door and window sensor is in a separated state, acquiring a data packet shown in table 1; meanwhile, if the cloud platform acquires that the type of data receivable by the floor fan switch capacity interface is a bool type, extracting a data value False corresponding to the bool type from the data packet in the table 1, and filling the data value False into a control instruction template capable of controlling the floor fan switch to obtain a first control instruction capable of controlling the floor fan to be closed; the first control instruction is sent to a switching capacity interface of the floor fan; the first control instruction is received and executed by the floor fan to enable the floor fan to be turned off.
Similarly, when the cloud platform acquires that the door and window sensor is in a closed state, acquiring a data packet shown in table 2; meanwhile, if the cloud platform acquires that the type of data receivable by the floor fan switch capacity interface is a bool type, extracting a data value True corresponding to the bool type from the data packet in the table 2, and filling the data value True into a control instruction template capable of controlling the floor fan switch to obtain a second control instruction capable of controlling the floor fan to be opened; the second control instruction is sent to a switching capacity interface of the floor fan; the second control instruction is received and executed by the floor fan to enable the floor of the row to be opened.
Example 2 the wind speed capability of a floor fan was controlled by the switching capability of a door and window sensor.
Specifically, when the cloud platform acquires that the door and window sensor is in a separated state, acquiring a data packet shown in table 1; meanwhile, if the cloud platform acquires that the receivable data type of the air speed capability interface of the floor fan is of the int type, extracting a data value 0 corresponding to the int type from the data packet of the table 1, and filling the data value 0 into a control instruction template capable of controlling the air speed of the floor fan to obtain a third control instruction capable of adjusting the air speed of the floor fan to 0; the third control instruction is sent to a wind speed capability interface of the floor fan; and the floor fan receives and executes the third control instruction to adjust the wind speed of the floor fan to 0.
Similarly, when the cloud platform acquires that the door and window sensor is in a closed state, acquiring a data packet shown in table 2; meanwhile, if the cloud platform acquires that the type of data receivable by the air speed capability interface of the floor fan is of the type int, extracting a data value 60 corresponding to the type int from the data packet of the table 2, and filling the data value 60 into a control instruction template capable of controlling the air speed of the floor fan to obtain a fourth control instruction capable of adjusting the air speed of the floor fan to 60; sending the fourth control instruction to a wind speed capability interface of the floor fan; the fourth control instruction is received and executed by the standard fan to adjust the air speed of the standard fan to 60.
Example 3 the operating mode capability of the floor fan was controlled by the switching capability of the door and window sensor.
Specifically, when the cloud platform acquires that the door and window sensor is in a separated state, acquiring a data packet shown in table 1; meanwhile, the cloud platform acquires that the data type receivable by the fan speed working mode capability interface of the floor fan is enum type, then the data value Close corresponding to the enum type is extracted from the data packet in the table 1, and the data value Close is filled into a control instruction template capable of controlling the fan working mode of the floor fan, so that a fifth control instruction capable of controlling the fan working mode of the floor fan is obtained; the fifth control instruction is sent to a working mode capacity interface of the floor fan; the fifth control instruction is received and executed by the standard fan to enable the working mode to be in a closed state.
Similarly, when the cloud platform acquires that the door and window sensor is in a closed state, acquiring a data packet shown in table 2; meanwhile, if the cloud platform acquires that the data type receivable by the floor fan working mode capability interface is enum type, extracting a data value Auto corresponding to the enum type from the data packet of the table 2, and filling the data value Auto into a control instruction template capable of controlling the floor fan working mode to obtain a sixth control instruction capable of adjusting the floor fan working mode to be automatic; the sixth control instruction is sent to a working mode capacity interface of the floor fan; the sixth control instruction is received and executed by the standard fan to set the working mode of the standard fan to be automatic.
Example 4 the monitoring device display capability is controlled by the switching capability of the door and window sensor.
Specifically, when the cloud platform acquires that the door and window sensor is in a separated state, acquiring a data packet shown in table 1; meanwhile, the cloud platform acquires that the type of data receivable by the display capability interface of the monitoring device is string type, extracts a data value door and window opening corresponding to the string type from the data packet of the table 1, and fills the data value door and window opening into a control instruction template capable of controlling the display of the monitoring device to obtain a seventh control instruction capable of controlling the monitoring device to display the door and window opening; transmitting the seventh control instruction to a display capability interface of the monitoring device; the monitoring device receives and executes the seventh control instruction to display the word of door and window opening on the display screen.
Similarly, when the cloud platform acquires that the door and window sensor is in a closed state, acquiring a data packet shown in table 2; meanwhile, the cloud platform acquires that the type of data receivable by the display capability interface of the monitoring device is string type, extracts a data value door and window corresponding to the string type from the data packet of the table 2, closes the data value door and window, and fills the data value door and window into a control instruction template capable of controlling the display of the monitoring device to obtain an eighth control instruction capable of controlling the monitoring device to display the door and window to be closed; transmitting the eighth control instruction to a display capability interface of the monitoring device; the monitoring device receives and executes the eighth control instruction to display the word of 'door and window closing' on the display screen.
In one possible implementation, the data transmission method of the present disclosure is implemented based on a data transmission application, wherein the data transmission application is generated based on an imaging internet of things application development tool.
In one possible implementation, the development interface of the graphical development tool may be as shown in FIG. 2. Specifically, the graphical development interface may at least include a device library, a logical list, and an application editing area of the internet of things. The device identification of the plurality of types of internet of things devices is configured in the device library, and based on the device identification, the corresponding internet of things devices can be rendered in the internet of things application editing area. A plurality of visualized logical block identifications are configured in the logical list, and based on the logical block identifications, corresponding data processing logic can be created in the application editing area of the internet of things.
In one possible implementation manner, when the imaging-based internet of things application development tool generates a data transmission application program, the method may include the following steps:
first, according to the triggering of the device identifiers corresponding to the output device and the input device, the output device block and the input device block are rendered in the application editing area of the Internet of things.
For example, the equipment library may include equipment identifiers of various internet of things equipment such as door and window sensor identifiers, floor fan identifiers, ceiling fan lamp identifiers and the like. When a user needs to generate a data transmission application capable of controlling the opening and closing capability of the floor fan through the opening and closing capability of the door and window sensor, a window sensor identifier can be selected from the equipment library and dragged to an application editing area of the internet of things so as to render a door and window sensor block shown in fig. 3. And selecting a floor fan mark, and dragging the floor fan mark to an application editing area of the Internet of things to render a floor fan block shown in fig. 3.
Second, an output capability interface is created on the output device tile according to the configured output device capabilities.
In one possible implementation, when an output capability interface is created on an output device tile, a control implementation may be created based on the capability interface on the device tile.
Specifically, a device block rendered by the application development tool of the internet of things based on the imaging is provided with an [ + ] button (i.e. a capability interface creation control) as shown in fig. 3, wherein the [ + ] button (i.e. an input capability interface creation control) positioned on the left side of the device block is used for creating an input capability interface, and the [ + ] button (i.e. an output capability interface creation control) positioned on the right side of the device block is used for creating an output capability interface.
In one possible implementation manner, for each internet of things device in the device library, a corresponding device capability list is provided, where the device capability list includes at least two capabilities of the device. The device list may be a set of capabilities that all of the same type of devices on the market have. For example, if some home lamps in the market have only switching capability, some home lamps have both switching capability and brightness adjusting capability, and some home lamps have both switching capability, brightness adjusting capability and color temperature condition capability, the capability list of the home lamps may include switching capability, brightness capability and color temperature capability. Further, custom capability can be set in the capability list, and the device capability can be newly added according to a specific application scene through triggering of the custom capability.
Further, a first mapping relation between various device identifiers and corresponding capability lists is stored in the system, so that when a capability interface creation control on a device image block is triggered, the triggered device identifiers are acquired, the capability list corresponding to the device identifiers is acquired by inquiring the first mapping relation, the acquired capability list is pushed and displayed to a position adjacent to the currently triggered capability interface creation control, and therefore a user can select target capability to be configured in the pushed and displayed capability list, and the system further displays the selected target capability on the triggered capability interface creation control so as to complete creation of the corresponding capability interface.
In the above embodiment, the user needs to create an output capability interface for the window sensor tile, where the output capability interface is used to transmit the open state of the door and window, at this time, the user may trigger the [ + ] button located on the right side of the window sensor tile, at this time, the capability list of the window sensor will be displayed at the adjacent position of the triggered [ + ] button, the user selects the door and window status capability in the capability list of the window sensor, at this time, the system will display the door and window status word on the currently triggered [ + ] button, and the creation of the door and window status output capability interface of the window sensor tile is completed, and the creation result is specifically see 3.
Third, an input capability interface is created on the input device tile according to the configured input device capabilities.
In the above embodiment, the user needs to create an input capability interface for a floor fan block, where the input capability interface is used to control the on state of the floor fan, and at this time, the user may trigger the [ + ] button located on the left side of the floor fan block, at this time, the capability list of the floor fan will be displayed at the adjacent position of the triggered [ + ] button, the user selects the switch capability in the capability list of the floor fan, at this time, the system will display the switch word on the currently triggered [ + ] button, so as to complete the creation of the input capability interface of the floor fan, and the creation result is specifically see fig. 3.
Fourth, according to the connection trigger of the output capability interface and the input capability interface, a connection line of the output capability interface and the input capability interface is established, so as to obtain a device topological diagram of the output device and the input device.
In the embodiment, the user clicks the door and window state output capability interface and the input capability interface of the floor fan on the window sensor block in sequence, and at this time, a connection line is established between the two capability interfaces, so that the construction of the device topology diagram of the window sensor and the floor fan is completed.
Fifth, a data transfer application is generated based on the device topology.
In one possible implementation, when generating a data transmission application based on a device topology graph, the method may include the steps of:
first, output device tile information and output capability interface information are obtained, and output devices and capabilities of the output devices are determined.
Second, based on the output device and the capability of the output device, generating a first code for acquiring the capability state of the output device, and a second code for acquiring a data packet matched with the capability state of the device;
thirdly, acquiring block information and input capability interface information of the input equipment, and determining the capabilities of the input equipment and the input equipment;
fourth, based on the input device and the capability of the input device, generating a third code for acquiring the receivable data type of the input device, and based on the data packet, the receivable data type and the capability of the input device, generating a control instruction of the input device;
fifth, generating a fourth code for transmitting the control instruction to the input device;
sixth, the first code, the second code, the third code and the fourth code are combined in sequence to obtain the data transmission application program.
In one possible implementation manner, after the data transmission application program is generated, the user can be supported to query the data packet matched with the capability state of the output device, so that whether the data value in the default matched data packet meets the current control requirement can be judged, if the data value does not meet the control requirement, a logic editing area can be built on the capability interface connection line of the device topological graph, and the data value in the default data packet can be modified through a visual logic block arranged in the logic editing area.
For example, in an embodiment of controlling the air speed of the floor fan through the door and window states of the door and window sensors, a door and window sensor block and a floor fan block as shown in fig. 4 are respectively rendered in an application editing area of the internet of things, a door and window state capability interface is set for the door and window sensor block, and an air speed capability interface is set for the floor fan block; and then establishing a connecting line between the door and window state capability interface of the door and window sensor block and the wind speed capability interface of the floor fan block. Because the imaging development tool sets a default data packet matched with each internet of things device in the device library according to the state of each capability in the capability list in addition to the corresponding capability list, after the device topology diagram is generated by connecting lines, a first default data packet (such as table 2) corresponding to the closed state of the door and window sensor and a second default data packet (such as table 1) corresponding to the separated state can be queried, the operation at the wind speed 60 of the floor fan can be controlled when the door and window state of the window sensor is closed by the first default data packet, and the operation at the wind speed 0 of the floor fan can be controlled when the door and window state of the window sensor is separated by the second default data packet. If the control of the floor fan to operate at the wind speed 80 is to be realized when the door and window state of the door and window sensor is closed at this time, a logic editing area as shown in fig. 4 can be established at the midpoint of the connection by clicking the midpoint of the connection, an input interface connected with a door and window state capability interface on the logic editing area is configured as A1, and an output interface connected with the wind speed capability interface is configured as B1. Further, by setting the modification logic as shown in fig. 4 in the logic edit area through the visualization logic block, the data value in the first default data packet can be modified from 60 to 80 through the above modification logic.
The data transmission method of the Internet of things equipment comprises the steps of obtaining the capability state of output equipment; acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types; acquiring a receivable data type of the input device, and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device; and sending the control instruction to the input device. Because the data packet of the output device comprises data values corresponding to various types of data, the input device can select the corresponding data values to process according to the data types supported by the input device under the condition of receiving the data packet, so that data transmission among the devices supporting different data types of the Internet of things can be realized. That is, communication compatibility between the incompatible devices is achieved in the present disclosure by data packets structured with custom data types.
< device example >
Fig. 5 shows a schematic block diagram of a data transmission apparatus of an internet of things device according to an embodiment of the present disclosure. As shown in fig. 5, the data transmission apparatus 100 of the internet of things device includes:
a capability status acquisition module 110, configured to acquire a capability status of an output device;
a data packet obtaining module 120, configured to obtain a data packet that matches the capability status, where the data packet includes at least two preset data types and data values corresponding to the data types;
a control instruction generating module 130, configured to obtain a receivable data type of an input device, and generate a control instruction of the input device based on the data packet, the receivable data type, and a capability of the input device;
a sending module 140 for sending the control instruction to the input device
< device example >
Fig. 6 shows a schematic block diagram of a data transmission device of an internet of things device according to an embodiment of the present disclosure. As shown in fig. 6, the data transmission device 200 of the internet of things device includes: processor 210 and memory 220 for storing instructions executable by processor 210. The processor 210 is configured to implement the data transmission method of any of the internet of things devices described above when executing the executable instructions.
Here, it should be noted that the number of processors 210 may be one or more. Meanwhile, in the data transmission device 200 of the internet of things device according to the embodiment of the present disclosure, an input device 230 and an output device 240 may also be included. The processor 210, the memory 220, the input device 230, and the output device 240 may be connected by a bus, or may be connected by other means, which is not specifically limited herein.
The memory 220 is a computer-readable storage medium that can be used to store software programs, computer-executable programs, and various modules, such as: program or module corresponding to the data transmission method of the internet of things equipment in the embodiment of the disclosure. The processor 210 executes various functional applications and data processing of the data transmission device 200 of the internet of things device by running software programs or modules stored in the memory 220.
The input device 230 may be used to receive an input digital or signal. Wherein the signal may be a key signal generated in connection with user settings of the device/terminal/server and function control. The output means 240 may comprise a display device such as a display screen.
< storage Medium embodiment >
According to a fourth aspect of the present disclosure, there is also provided a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by the processor 210, implement a data transmission method of any of the aforementioned devices of the internet of things.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvement of the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. The data transmission method of the Internet of things equipment is characterized by comprising the following steps of:
acquiring the capability state of the output equipment;
acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types;
acquiring a receivable data type of an input device, and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device;
and sending the control instruction to the input device.
2. The method of claim 1, wherein the predetermined data type in the data packet comprises at least one of a boolean type, an integer type, a character type, a floating point type, and an enumeration type.
3. The method of claim 1, wherein the data value for each of the data types in the data packet is determined based on a user's usual control requirements.
4. The method of claim 1, wherein generating control instructions for the input device based on the data packet, the receivable data type, and the capabilities of the input device comprises:
extracting a data value corresponding to the receivable data type from the data packet;
acquiring a control instruction template for controlling the capability of the input device;
and filling the data value corresponding to the receivable data type into a preset position of the control instruction template to obtain the control instruction of the input device.
5. The method of claim 1, wherein the data transmission method is implemented based on a data transmission application, wherein the data transmission application is generated based on an imaged internet of things application development tool.
6. The method of claim 5, wherein when generating the data transfer application based on the imaging internet of things application development tool, comprising:
according to the triggering of the output equipment and the equipment identification corresponding to the input equipment, rendering an output equipment block and an input equipment block in an application editing area of the Internet of things;
creating an output capability interface on the output device tile according to the configured output device capabilities;
creating an input capability interface on the input device tile according to the configured input device capabilities;
establishing a connection line of the output capability interface and the input capability interface according to connection trigger of the output capability interface and the input capability interface so as to obtain a device topological diagram of the output device and the input device;
and generating the data transmission application program based on the device topological graph.
7. The method of claim 6, wherein generating the data transfer application based on the device topology map comprises:
acquiring the block information and the output capability interface information of the output equipment, and determining the capabilities of the output equipment and the output equipment;
generating a first code for acquiring the capability state of the output device and a second code for acquiring a data packet matched with the capability state of the device based on the output device and the capability of the output device;
acquiring the block information and the input capability interface information of the input equipment, and determining the capabilities of the input equipment and the input equipment;
generating a receivable data type of the input device based on the input device and the capability of the input device, and generating a third code of a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device;
generating a fourth code that sends the control instruction to the input device;
and sequentially combining the first code, the second code, the third code and the fourth code to obtain the data transmission application program.
8. The utility model provides a data transmission device of thing networking equipment which characterized in that includes:
the capacity state acquisition module is used for acquiring the capacity state of the output equipment;
the data packet acquisition module is used for acquiring a data packet matched with the capability state, wherein the data packet comprises at least two preset data types and data values corresponding to the data types;
the control instruction generation module is used for acquiring the receivable data type of the input device and generating a control instruction of the input device based on the data packet, the receivable data type and the capability of the input device;
and the sending module is used for sending the control instruction to the input equipment.
9. Data transmission equipment of thing networking device, characterized by, include:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any one of claims 1 to 7 when executing the executable instructions.
10. A non-transitory computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1 to 7.
CN202410034370.0A 2024-01-09 2024-01-09 Data transmission method, device, equipment and storage medium of Internet of things equipment Pending CN117768511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410034370.0A CN117768511A (en) 2024-01-09 2024-01-09 Data transmission method, device, equipment and storage medium of Internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410034370.0A CN117768511A (en) 2024-01-09 2024-01-09 Data transmission method, device, equipment and storage medium of Internet of things equipment

Publications (1)

Publication Number Publication Date
CN117768511A true CN117768511A (en) 2024-03-26

Family

ID=90312491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410034370.0A Pending CN117768511A (en) 2024-01-09 2024-01-09 Data transmission method, device, equipment and storage medium of Internet of things equipment

Country Status (1)

Country Link
CN (1) CN117768511A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406127A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for generating control interface of Internet of Things (IOT) device
US20180213077A1 (en) * 2016-02-02 2018-07-26 Tencent Technology (Shenzhen) Company Limited Method and apparatus for controlling smart device, and computer storage medium
CN110941426A (en) * 2019-12-02 2020-03-31 苏州金蒲芦物联网技术有限公司 NB-IoT terminal-oriented graphical programming system
CN112448989A (en) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 Internet of things equipment control method and system, configuration terminal, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406127A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for generating control interface of Internet of Things (IOT) device
US20180213077A1 (en) * 2016-02-02 2018-07-26 Tencent Technology (Shenzhen) Company Limited Method and apparatus for controlling smart device, and computer storage medium
CN112448989A (en) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 Internet of things equipment control method and system, configuration terminal, equipment and storage medium
CN110941426A (en) * 2019-12-02 2020-03-31 苏州金蒲芦物联网技术有限公司 NB-IoT terminal-oriented graphical programming system

Similar Documents

Publication Publication Date Title
US11061385B2 (en) Method, apparatus and system for controlling device
EP2804393B1 (en) Remote control method, intelligent terminal and intelligent remote control system
CN112180754B (en) Setting method of intelligent control scene and equipment control system
CN113545009B (en) Scene operation method and device, electronic equipment and computer readable medium
CN110196557B (en) Equipment control method, device, mobile terminal and storage medium
CN108156058B (en) Method and device for accessing intelligent gateway equipment and readable storage medium
CN112114527B (en) Device control apparatus, method, and computer-readable storage medium
CN113253625A (en) Intelligent household control method, device, equipment and storage medium
CN109297142A (en) Control method, air conditioner and storage medium
CN113485134A (en) Device control method and apparatus, storage medium, and electronic device
CN108803371B (en) Control method and device for electrical equipment
CN112596406A (en) Control method and device of intelligent equipment, control panel and storage medium
CN114978925B (en) Object model creation method and system
CN113672146A (en) Light control method, device, system, electronic equipment and storage medium
CN111654844A (en) Device pairing method and related device and device
CN110780598A (en) Intelligent device control method and device, electronic device and readable storage medium
US20050131857A1 (en) Information processing method and image processing method
CN117768511A (en) Data transmission method, device, equipment and storage medium of Internet of things equipment
CN110324217B (en) Equipment triggering control method and device, electronic equipment and storage medium
CN116483002A (en) Object interconnection method and electronic equipment
CN117556578B (en) Method, device, equipment and storage medium for graphically generating Internet of things application
CN114217534A (en) Method and device for controlling household appliance and household appliance
KR100605203B1 (en) Network device
CN108880956B (en) Interface display method, terminal device and computer readable storage medium
KR20180010751A (en) Method of mapping illuminating by use of picture displayed on mobile terminal

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