[go: up one dir, main page]

CN112416618A - Application layer data transmission method and device, storage medium and electronic device - Google Patents

Application layer data transmission method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112416618A
CN112416618A CN202011308451.3A CN202011308451A CN112416618A CN 112416618 A CN112416618 A CN 112416618A CN 202011308451 A CN202011308451 A CN 202011308451A CN 112416618 A CN112416618 A CN 112416618A
Authority
CN
China
Prior art keywords
application layer
data
layer data
backplane
converter
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
CN202011308451.3A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011308451.3A priority Critical patent/CN112416618A/en
Publication of CN112416618A publication Critical patent/CN112416618A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a transmission method and device of application layer data, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps that a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device; the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm; determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer. By adopting the technical scheme, the problems that data conversion between the bottom plate and the application layer can not be processed uniformly, the maintenance cost is increased and the like in the related technology are solved.

Description

Application layer data transmission method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for transmitting application layer data, a storage medium, and an electronic apparatus.
Background
When the device defines the protocol, the data (display value) of the upper application control device is inconsistent with the data (issued value) issued to the device bottom plate if a transmission mode of a negative number is not defined; and the data (reported value) reported by the device backplane is inconsistent with the data (displayed value) displayed on the device or the upper layer application, namely the application layer uses one set of data and the backplane uses one set of data. These inconsistencies limit the applications to which the device is connected after it is connected to the cloud.
Aiming at the problems that in the related art, data conversion between a bottom plate and an application layer cannot be processed uniformly, maintenance cost is increased and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a transmission method and device of application layer data, a storage medium and an electronic device, and aims to solve the problems that data conversion between a bottom plate and an application layer cannot be processed uniformly, maintenance cost is increased and the like in the related technology.
According to an embodiment of the present invention, there is provided a method for transmitting application layer data, including: the method comprises the steps that a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device; the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm; determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer.
Optionally, the converting, by the converter, the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, where the converting includes: the converter converts the backplane data to the application layer data according to the following formula: and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
Optionally, determining whether the application layer data meets a preset condition to determine whether to transmit the application layer data to the application layer includes: under the condition that the application layer data are determined to meet the preset condition, converting the application layer data into bottom plate data corresponding to second equipment according to the preset algorithm, wherein the preset condition is used for indicating the operation mode of the second equipment under the condition that the application layer data corresponding to the first equipment are larger than or smaller than a preset threshold value; and the converter sends the bottom plate data corresponding to the second equipment so as to instruct the second equipment to operate the second equipment according to the bottom plate data corresponding to the second equipment.
Optionally, determining whether the application layer data meets a preset condition to determine whether to transmit the application layer data to the application layer includes: and under the condition that the application layer data is determined not to meet the preset condition, directly sending the application layer data to the application layer.
According to an embodiment of the present invention, there is also provided a transmission method for issuing a command, including: the converter receives a device control command issued by an application layer, wherein the device control command comprises: application layer data displayed on an application layer corresponding to the first device; the converter converts the application layer data into bottom plate data on a bottom plate of the first device according to a preset algorithm; the converter transmits a down-sending command to the first device, wherein the down-sending command comprises: the backplane data.
Optionally, the converting, by the converter, the application layer data into backplane data on a backplane of the first device according to a preset algorithm, includes: the converter converts the application layer data to the backplane data according to the following equation: and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
According to another embodiment of the present invention, there is also provided an apparatus for transmitting application layer data, including: the first receiving module is used for receiving the backplane data transmitted by the first device by the converter, wherein the backplane data is used for indicating the value of the parameter of the first device on the backplane of the first device; the first conversion module is used for converting the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm by the converter; the first transmission module is used for determining whether the application layer data meets preset conditions so as to determine whether the application layer data is transmitted to the application layer.
According to another embodiment of the present invention, there is also provided a transmission device for issuing a command, including: a second receiving module, configured to receive, by the converter, a device control command issued by the application layer, where the device control command includes: application layer data displayed on an application layer corresponding to the first device; the second conversion module is used for converting the application layer data into the bottom plate data on the bottom plate of the first device according to a preset algorithm by the converter; a second transmission module, configured to transmit, by the converter, an issued command to the first device, where the issued command includes: the backplane data.
According to yet another embodiment of the invention, there is also provided a computer-readable storage medium comprising a stored program, wherein the program when executed performs the method described in any of the above.
According to yet another embodiment of the present invention, there is also provided an electronic apparatus comprising a memory having a computer program stored therein and a processor arranged to perform the method described in any one of the above by means of the computer program.
By the invention, a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device; the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm; determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer. That is to say, the converter receives backplane data transmitted by the first device, then converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, and transmits the application layer data to the application layer when the application layer data meets a preset condition. By adopting the technical scheme, the problem that data conversion between the bottom plate and the application layer can not be processed uniformly in the related technology is solved, the maintenance cost is increased, and the like, so that the development of various applications after the equipment is connected to a cloud end is facilitated.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a converter of a transmission method of application layer data according to an embodiment of the present invention;
fig. 2 is a flowchart (one) of a method for transmitting application layer data according to an embodiment of the present invention;
FIG. 3 is a flow chart of a transmission method for issuing commands according to an embodiment of the present invention;
FIG. 4 is a flow diagram of data conversion between an application layer and a device backplane according to an embodiment of the invention;
FIG. 5 is a flow diagram of data conversion between devices according to an embodiment of the present invention;
fig. 6 is a block diagram (one) of a transmission apparatus of application layer data according to an embodiment of the present invention;
fig. 7 is a block diagram of a transmitting device for issuing a command according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be implemented in a converter, or similar computing device. Taking the example of the application running on the converter, fig. 1 is a block diagram of a hardware structure of the converter of the transmission method of the application layer data according to the embodiment of the present invention. As shown in fig. 1, the converter may include one or more processors 102 (only one is shown in fig. 1), where the processors 102 may include, but are not limited to, a Microprocessor (MPU) or a Programmable Logic Device (PLD), and a memory 104 for storing data, and in an exemplary embodiment, the converter may further include a transmission device 106 for communication function and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is merely illustrative and is not intended to limit the structure of the converter described above. For example, the converter may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the method for determining the transmission method of the application layer data in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned methods. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the converter over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the converter. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a transmission method of application layer data is provided, which is applied to the converter, and fig. 2 is a flow chart (one) of a transmission method of application layer data according to an embodiment of the present invention, where the flow chart includes the following steps:
step S202: the method comprises the steps that a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device;
step S204: the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm;
step S206: determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer.
By the invention, a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device; the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm; determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer. That is to say, the converter receives backplane data transmitted by the first device, then converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, and transmits the application layer data to the application layer when the application layer data meets a preset condition. By adopting the technical scheme, the problems that data conversion between the bottom plate and the application layer can not be processed in a unified manner and the maintenance cost is increased in the related technology are solved, so that the development of various applications after the equipment is connected to the cloud end is facilitated.
After the converter receives the backplane data transmitted by the first device, the converter converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, which may be implemented by the following scheme: the converter converts the backplane data to the application layer data according to the following formula: and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
It should be noted that, the k and c users can set themselves according to specific situations. The application layer data is data used on the APP client and displayed on the client, and the backplane data is backplane data transmitted on the device, that is, device bottom layer data and used inside the device, and the user cannot see the part of data. For example, taking a refrigerator as an example, the device bottom plate data is 5, the refrigerating temperature of the refrigerator is 5 degrees, and the bottom plate data is converted into an application display value through a conversion algorithm to be applied to: the refrigerator refrigeration temperature was set at-3 degrees, where k is 1 and c is 8. Since the user sees a negative number in degrees celsius but the backplane data is not negative, the application layer data is not consistent with the backplane data. By adopting the technical means, the problem that data conversion between the bottom plate and the application layer can not be processed uniformly in the related technology is solved.
After the converter converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, determining whether the application layer data meets a preset condition to determine whether to transmit the application layer data to the application layer, including: under the condition that the application layer data are determined to meet the preset condition, converting the application layer data into bottom plate data corresponding to second equipment according to the preset algorithm, wherein the preset condition is used for indicating the operation mode of the second equipment under the condition that the application layer data corresponding to the first equipment are larger than or smaller than a preset threshold value; and the converter sends the bottom plate data corresponding to the second equipment so as to instruct the second equipment to operate the second equipment according to the bottom plate data corresponding to the second equipment.
It should be noted that, when it is determined that the application layer data meets the preset condition, the application layer data is converted into backplane data corresponding to the second device according to the preset algorithm, where y is kx + c, y is the application layer data, x is the backplane data, and the k and c users may set themselves according to specific situations. The application layer data meets a preset condition, after the application layer data is converted into the bottom plate data corresponding to the second equipment, the converter sends the bottom plate data corresponding to the second equipment so as to instruct the second equipment to operate the second equipment according to the bottom plate data corresponding to the second equipment. For example, when the indoor PM2.5 is greater than 500 micrograms per cubic meter, the air purifier is turned on. In the application scenario, the first device is a PM2.5 measuring instrument, the second device is an air purifier, and the air purifier is turned on when the preset condition is that the PM2.5 is greater than 500 micrograms per cubic meter. If the PM2.5 is 600 micrograms per cubic meter, the specific process of the whole task is as follows: PM2.5 is 600 micrograms per cubic meter, the first device transmits the backplane data to the converter, the converter converts the backplane data into application layer data, the converter transmits the data to the task processing module. And the task processing module determines that the application layer data meets a preset condition and determines to transmit the application layer data to the air purifier. According to preset algorithm y is kx + c, will application layer data conversion is the bottom plate data that air purifier corresponds, the converter sends air purifier's corresponding bottom plate data to air purifier, and air purifier opens. For example, a PM2.5 of 600 micrograms per cubic meter would require both the air purifier to be turned on and the application would also show a PM2.5 of 600 micrograms per cubic meter.
It should be noted that the application layer data meets the preset condition, and the application layer data is converted into backplane data corresponding to the second device and then sent to the second device. At this time, the application layer data also needs to be sent to the application layer.
After the converter converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, determining whether the application layer data meets a preset condition to determine whether to transmit the application layer data to the application layer, including: and under the condition that the application layer data is determined not to meet the preset condition, directly sending the application layer data to the application layer.
It should be noted that, in the case that it is determined that the application layer data does not satisfy the preset condition, the application layer data is directly sent to the application layer. For example, when the indoor PM2.5 is greater than 500 micrograms per cubic meter, the air purifier is turned on. Wherein the first device is a PM2.5 measurement instrument, the second device is an air purifier, and the preset condition is that the air purifier is turned on when the PM2.5 is greater than 500 micrograms per cubic meter. If the PM2.5 is 400 micrograms per cubic meter, the whole task specific flow is: PM2.5 is 400 micrograms per cubic meter, determining that the application layer data does not meet the preset condition, and determining to transmit the application layer data to the application layer. The converter transmits the application layer data to an application layer. It should be noted that, when the application layer data does not satisfy the preset condition, the data is already the application layer data, so that the data does not need to be converted by a converter and is directly sent to the application layer.
In another embodiment, a transmission method of a down command is provided, which is applied to the converter, and fig. 3 is a flowchart (ii) of a transmission method of a down command according to an embodiment of the present invention, where the flowchart includes the following steps:
step S302: the converter receives a device control command issued by an application layer, wherein the device control command comprises: application layer data displayed on an application layer corresponding to the first device;
step S304: the converter converts the application layer data into bottom plate data on a bottom plate of the first device according to a preset algorithm;
step S306: the converter transmits a down-sending command to the first device, wherein the down-sending command comprises: the backplane data.
By the invention, a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device; the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm; determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer. That is to say, the converter receives backplane data transmitted by the first device, then converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, and transmits the application layer data to the application layer when the application layer data meets a preset condition. By adopting the technical scheme, the problems that data conversion between the bottom plate and the application layer can not be processed uniformly and the maintenance cost is increased in the related technology are solved, so that the development of various applications after the equipment is connected to the cloud end is facilitated.
After the converter receives a device control command issued by an application layer, the converter converts the application layer data into backplane data on a backplane of a first device according to a preset algorithm, and the method comprises the following steps: the converter converts the application layer data to the backplane data according to the following equation: and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
It should be noted that, the k and c users can set themselves according to specific situations. The application layer data is data used on APP, and the k and c users can set themselves according to specific conditions. The application layer data is data used on the APP client and displayed on the client, and the backplane data is backplane data transmitted on the device, that is, device bottom layer data and used inside the device, and the user cannot see the part of data. For example, taking a refrigerator as an example, the application layer data is-3, the refrigerating temperature of the refrigerator is set to-3 degrees, and the display value is converted into the bottom plate data to the device bottom plate such as: the refrigerator refrigeration temperature is converted to 5 degrees, where k is 1 and c is 8. Since the user sees a negative number in degrees celsius, but the floor data is not negative, the application layer data is not consistent with the floor data. By adopting the technical means, the problem that data conversion between the bottom plate and the application cannot be processed uniformly in the related technology is solved.
In order to better understand the above technical solution, the following alternative flow charts are used for explaining the data conversion between the application layer and the device, and between the devices.
Fig. 4 is a flow chart of data conversion between an application layer and a device backplane according to an embodiment of the present invention, as shown in fig. 4:
s402: the application layer sends a device control command to the converter;
s404: the converter converts the application layer data into equipment bottom plate data, namely the converter converts the equipment control command into an issued command, and then the converter transmits the issued command to the first equipment;
s406: the first equipment reports the state of the first equipment to the converter;
s408: the converter converts the device backplane data into application layer data, that is, converts the content reported by the device into application layer content corresponding to the application layer, and then reports the application layer content to the application layer, and the application layer displays the state of the first device.
Fig. 5 is a flowchart of data conversion between devices according to an embodiment of the present invention, as shown in fig. 5, including:
s502: the first equipment reports the state of the first equipment to the converter;
s504: the converter reports the content reported by the first device to a service processing module, and the service processing module judges whether the content is transmitted to an application layer;
s506: the judgment of the business processing module is transmitted to the application layer, and the judgment of the business processing module is transmitted to the application layer
S508: and the service processing module judges and transmits the judgment to the second equipment, and the service processing module transmits the judgment to the second equipment.
By the invention, a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device; the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm; determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer. That is to say, the converter receives backplane data transmitted by the first device, and then converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, and transmits the application layer data to the application layer when the application layer data meets a preset condition. By adopting the technical scheme, the problems that data conversion between the bottom plate and the application layer can not be processed in a unified manner and the maintenance cost is increased in the related technology are solved, so that the development of various applications after the equipment is connected to the cloud end is facilitated.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for transmitting application layer data is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram (one) of a transmission apparatus of application layer data according to an embodiment of the present invention; as shown in fig. 6, includes:
the first receiving module 60 is configured to send query information to a third-party server, where the query information is used to request to obtain an online status of a first cloud device whose cloud device status time exceeds a preset threshold, where the online status at least includes one of: online and offline, wherein the cloud equipment state time is used for indicating the maintaining time of the cloud equipment in the online state;
a first conversion module 62, configured to receive the online status of the first cloud device fed back by the third-party server;
a first transmission module 64, configured to determine whether the application layer data meets a preset condition, so as to determine whether to transmit the application layer data to the application layer.
By the invention, a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device; the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm; determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer. That is to say, the converter receives backplane data transmitted by the first device, and then converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm, and transmits the application layer data to the application layer when the application layer data meets a preset condition. By adopting the technical scheme, the problem that data conversion between the bottom plate and the application layer can not be processed uniformly in the related technology is solved, the maintenance cost is increased, and the like, so that the development of various applications after the equipment is connected to a cloud end is facilitated.
Optionally, the first conversion module 62 is further configured to convert the backplane data into the application layer data according to the following formula: and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
It should be noted that the first conversion module 62 is further configured to convert the backplane data into the application layer data according to the following formula: and y is kx + c, wherein the application layer data is data used on the APP client and is data displayed on the client as seen by a user, and the backplane data is backplane data transmitted on the device, that is, device bottom layer data and is data used inside the device, and the part of the data is invisible by the user. For example, taking a refrigerator as an example, the device bottom plate data is 5, the refrigerating temperature of the refrigerator is 5 degrees, and the bottom plate data is converted into an application display value through a conversion algorithm to be applied to: the refrigerator refrigeration temperature was set at-3 degrees, where k is 1 and c is 8. Since the user sees a negative number in degrees celsius, but the floor data is not negative, the application layer data is not consistent with the floor data. By adopting the technical means, the problem that data conversion between the bottom plate and the application cannot be processed uniformly in the related technology is solved.
Optionally, the first transmission module 64 is further configured to, when it is determined that the application layer data meets the preset condition, convert the application layer data into backplane data corresponding to a second device according to the preset algorithm, where the preset condition is used to indicate that the application layer data corresponding to the first device is greater than or less than a preset threshold, and the second device operates in a running mode; and the converter sends the bottom plate data corresponding to the second equipment so as to instruct the second equipment to operate the second equipment according to the bottom plate data corresponding to the second equipment.
It should be noted that, the k and c users can set themselves according to specific situations. The application layer data meets a preset condition, after the application layer data is converted into the bottom plate data corresponding to the second equipment, the converter sends the bottom plate data corresponding to the second equipment so as to instruct the second equipment to operate the second equipment according to the bottom plate data corresponding to the second equipment. For example, when the indoor PM2.5 is greater than 500 micrograms per cubic meter, the air purifier is turned on. Wherein the first device is a PM2.5 measurement instrument, the second device is an air purifier, and the preset condition is that the air purifier is turned on when the PM2.5 is greater than 500 micrograms per cubic meter. If the PM2.5 is 600, the specific process of the whole task is as follows: PM2.5 is 600 micrograms per cubic meter, the first device transmits the backplane data to the converter, the converter converts the backplane data into application layer data, the converter transmits the data to the task processing module. And the task processing module determines that the application layer data meets a preset condition and determines to transmit the application layer data to the air purifier. According to preset algorithm y is kx + c, will application layer data conversion is the bottom plate data that air purifier corresponds, the converter sends air purifier's corresponding bottom plate data to air purifier, and air purifier opens. For example, a PM2.5 of 600 micrograms per cubic meter would require both the air purifier to be turned on and the application would also show a PM2.5 of 600 micrograms per cubic meter.
It should be noted that the application layer data meets the preset condition, and the application layer data is converted into backplane data corresponding to the second device and then sent to the second device. At this time, the application layer data also needs to be sent to the application layer.
Optionally, the first transmission module 64 is configured to directly send the application layer data to the application layer when it is determined that the application layer data does not satisfy the preset condition.
It should be noted that, in the case that it is determined that the application layer data does not satisfy the preset condition, the application layer data is directly sent to the application layer. For example, when the indoor PM2.5 is greater than 500 micrograms per cubic meter, the air purifier is turned on. Wherein the first device is a PM2.5 measurement instrument, the second device is an air purifier, and the preset condition is that the air purifier is turned on when the PM2.5 is greater than 500 micrograms per cubic meter. If the PM2.5 is 400 micrograms per cubic meter, the whole task specific flow is: PM2.5 is 400 micrograms per cubic meter, determining that the application layer data does not meet the preset condition, and determining to transmit the application layer data to the application layer. The converter transmits the application layer data to an application layer. It should be noted that, when the application layer data does not satisfy the preset condition, the data is already the application layer data, so that the data does not need to be converted by a converter and is directly sent to the application layer.
FIG. 7 is a block diagram of a transmitting device for issuing commands according to an embodiment of the present invention; as shown in fig. 7, includes:
a second receiving module 70, configured to receive, by the converter, a device control command issued by the application layer, where the device control command includes: application layer data displayed on an application layer corresponding to the first device;
a second conversion module 72, configured to convert the application layer data into backplane data on a backplane of the first device according to a preset algorithm;
a second transmission module 74, configured to transmit, by the converter, an issued command to the first device, where the issued command includes: the backplane data.
Optionally, the second conversion module 72 is further configured to convert the application layer data into the backplane data according to the following formula: and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
It should be noted that the second conversion module 72 is further configured to convert the application layer data into backplane data on the backplane of the first device according to a preset algorithm: and y is kx + c, wherein the application layer data is data used on the APP client and is data displayed on the client as seen by a user, and the backplane data is backplane data transmitted on the device, that is, device bottom layer data and is data used inside the device, and the part of the data is invisible by the user. For example, taking a refrigerator as an example, the application layer data is-3, the refrigerating temperature of the refrigerator is set to-3 degrees, and the display value is converted into the bottom plate data to the device bottom plate such as: the refrigerator refrigeration temperature is converted to 5 degrees, where k is 1 and c is 8. Since the user sees a negative number in degrees celsius, but the floor data is not negative, the application layer data is not consistent with the floor data. By adopting the technical means, the problem that data conversion between the bottom plate and the application cannot be processed uniformly in the related technology is solved.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device;
s2, the converter converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm;
s3, determining whether the application layer data meets preset conditions so as to determine whether to transmit the application layer data to the application layer.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device;
s2, the converter converts the backplane data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm;
s3, determining whether the application layer data meets preset conditions so as to determine whether to transmit the application layer data to the application layer.
Optionally, in this option, the specific examples in this embodiment may refer to the examples described in the foregoing embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for transmitting application layer data, comprising:
the method comprises the steps that a converter receives backplane data transmitted by a first device, wherein the backplane data is used for indicating the value of a parameter of the first device on a backplane of the first device;
the converter converts the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm;
determining whether the application layer data meets a preset condition so as to determine whether to transmit the application layer data to the application layer.
2. The method of claim 1, wherein the converting the backplane data into the application layer data displayed on the application layer corresponding to the first device according to a preset algorithm comprises:
the converter converts the backplane data to the application layer data according to the following formula:
and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
3. The method of claim 1, wherein determining whether the application layer data meets a preset condition to determine whether to transmit the application layer data to the application layer comprises:
under the condition that the application layer data are determined to meet the preset condition, converting the application layer data into bottom plate data corresponding to second equipment according to the preset algorithm, wherein the preset condition is used for indicating the operation mode of the second equipment under the condition that the application layer data corresponding to the first equipment are larger than or smaller than a preset threshold value;
and the converter sends the bottom plate data corresponding to the second equipment so as to instruct the second equipment to operate the second equipment according to the bottom plate data corresponding to the second equipment.
4. The method of claim 1, wherein determining whether the application layer data meets a preset condition to determine whether to transmit the application layer data to the application layer comprises:
and under the condition that the application layer data is determined not to meet the preset condition, directly sending the application layer data to the application layer.
5. A transmission method for issuing commands is characterized by comprising the following steps:
the converter receives a device control command issued by an application layer, wherein the device control command comprises: application layer data displayed on an application layer corresponding to the first device;
the converter converts the application layer data into bottom plate data on a bottom plate of the first device according to a preset algorithm;
the converter transmits a down-sending command to the first device, wherein the down-sending command comprises: the backplane data.
6. The method of claim 5, wherein the converter converts the application layer data into backplane data on a backplane of the first device according to a predetermined algorithm, comprising:
the converter converts the application layer data to the backplane data according to the following equation:
and y is kx + c, wherein y is the application layer data, x is the backplane data, and k and c are preset values.
7. An apparatus for transmitting application layer data, comprising:
the first receiving module is used for receiving the backplane data transmitted by the first device by the converter, wherein the backplane data is used for indicating the value of the parameter of the first device on the backplane of the first device;
the first conversion module is used for converting the bottom plate data into application layer data displayed on an application layer corresponding to the first device according to a preset algorithm by the converter;
the first transmission module is used for determining whether the application layer data meets preset conditions so as to determine whether the application layer data is transmitted to the application layer.
8. A transmission device for issuing commands, comprising:
a second receiving module, configured to receive, by the converter, a device control command issued by the application layer, where the device control command includes: application layer data displayed on an application layer corresponding to the first device;
the second conversion module is used for converting the application layer data into the bottom plate data on the bottom plate of the first device according to a preset algorithm by the converter;
a second transmission module, configured to transmit, by the converter, an issued command to the first device, where the issued command includes: the backplane data.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any of claims 1 to 4, or the method of any of claims 5 to 6.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the method of any of claims 1 to 4, or the method of any of claims 5 to 6, by means of the computer program.
CN202011308451.3A 2020-11-19 2020-11-19 Application layer data transmission method and device, storage medium and electronic device Pending CN112416618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011308451.3A CN112416618A (en) 2020-11-19 2020-11-19 Application layer data transmission method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011308451.3A CN112416618A (en) 2020-11-19 2020-11-19 Application layer data transmission method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112416618A true CN112416618A (en) 2021-02-26

Family

ID=74773213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011308451.3A Pending CN112416618A (en) 2020-11-19 2020-11-19 Application layer data transmission method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112416618A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064946A (en) * 2021-03-19 2021-07-02 青岛海尔科技有限公司 Data processing method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281251A (en) * 2010-06-09 2011-12-14 中兴通讯股份有限公司 Device, system and method for realizing intelligent household application
CN104898434A (en) * 2015-04-03 2015-09-09 联想(北京)有限公司 Smart household equipment linkage rule setting method and smart household equipment linkage rule setting device
US20160036369A1 (en) * 2013-09-27 2016-02-04 Fuji Electric Co., Ltd. Drive device
CN107547314A (en) * 2016-06-24 2018-01-05 夏普株式会社 System and method for smart home service
US20190028294A1 (en) * 2016-01-11 2019-01-24 Carrier Corporation Improvements in communication systems for remote device control
CN110793166A (en) * 2018-08-01 2020-02-14 珠海格力电器股份有限公司 Configuration parameter determination method and device for air purifier
US20200159527A1 (en) * 2018-02-13 2020-05-21 Shanghai Cambricon Information Technology Co., Ltd Computing device and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281251A (en) * 2010-06-09 2011-12-14 中兴通讯股份有限公司 Device, system and method for realizing intelligent household application
US20160036369A1 (en) * 2013-09-27 2016-02-04 Fuji Electric Co., Ltd. Drive device
CN104898434A (en) * 2015-04-03 2015-09-09 联想(北京)有限公司 Smart household equipment linkage rule setting method and smart household equipment linkage rule setting device
US20190028294A1 (en) * 2016-01-11 2019-01-24 Carrier Corporation Improvements in communication systems for remote device control
CN107547314A (en) * 2016-06-24 2018-01-05 夏普株式会社 System and method for smart home service
US20200159527A1 (en) * 2018-02-13 2020-05-21 Shanghai Cambricon Information Technology Co., Ltd Computing device and method
CN110793166A (en) * 2018-08-01 2020-02-14 珠海格力电器股份有限公司 Configuration parameter determination method and device for air purifier

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064946A (en) * 2021-03-19 2021-07-02 青岛海尔科技有限公司 Data processing method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US11071013B2 (en) Method and system for group communication, group server, and group member device
CN110198275B (en) Flow control method, system, server and storage medium
KR102415845B1 (en) Internet of Things Resource Subscription Methods, Devices, and Systems
CN114143270B (en) Bandwidth adjustment method and device
CN113467832A (en) Equipment control processing method, device, storage medium and electronic device
CN111585817B (en) Power-saving mode switching method and device
CN113467965A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN114629729B (en) Multi-meter centralized reading system and method, electronic equipment and storage medium
US12218842B2 (en) Data communication method, server device, client device and medium
CN112416618A (en) Application layer data transmission method and device, storage medium and electronic device
TW201635760A (en) Home control gateway and home control method thereof
CN110913362A (en) Method and device for realizing wireless signal test through client and test equipment
CN105490885A (en) Method and device of environment monitoring
US20150188747A1 (en) Cloud-based data center infrastructure management system and method
US9775069B1 (en) System for configuring distributed audio output using a designated audio device
CN111127706B (en) Intelligent lock control method, intelligent lock, cloud server and computing equipment
CN104483880A (en) Data acquisition method and data acquisition server
CN118427220A (en) Data processing method and device, electronic equipment and storage medium
CN111314108B (en) Data transmission method, device, equipment, storage medium and front-end system
CN110704128B (en) Identification allocation method and device, identification allocation equipment and storage medium
CN108512864B (en) Network request scheduling method and device
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
US20190306073A1 (en) Method and device for enhancing the throughput between smart meter and server
CN116266845B (en) Data transmission method and device
CN114125750B (en) A DRX automatic configuration method and device based on LoRa

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

Application publication date: 20210226