CN113794783A - Data processing method, device and storage medium - Google Patents

Data processing method, device and storage medium Download PDF

Info

Publication number
CN113794783A
CN113794783A CN202111359491.5A CN202111359491A CN113794783A CN 113794783 A CN113794783 A CN 113794783A CN 202111359491 A CN202111359491 A CN 202111359491A CN 113794783 A CN113794783 A CN 113794783A
Authority
CN
China
Prior art keywords
type
data frame
control
command
controlled
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.)
Granted
Application number
CN202111359491.5A
Other languages
Chinese (zh)
Other versions
CN113794783B (en
Inventor
程小科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Linptech Co Ltd
Original Assignee
Wuhan Linptech 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 Wuhan Linptech Co Ltd filed Critical Wuhan Linptech Co Ltd
Priority to CN202111359491.5A priority Critical patent/CN113794783B/en
Priority to CN202210080619.2A priority patent/CN114500620A/en
Priority to CN202210082447.2A priority patent/CN114553920B/en
Priority to CN202210080447.9A priority patent/CN114553919B/en
Priority to CN202210080459.1A priority patent/CN114520821A/en
Publication of CN113794783A publication Critical patent/CN113794783A/en
Application granted granted Critical
Publication of CN113794783B publication Critical patent/CN113794783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0023Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the signalling
    • H04L1/0028Formatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0079Formats for control data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0083Formatting with frames or packets; Protocol or part of protocol for error control
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure relates to a data processing method, a data processing device and a storage medium. The method comprises the following steps: acquiring equipment information of control equipment and control information generated by the control equipment; generating a first type data frame according to the equipment information and the control information; the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together. The method and the device can improve the transmission efficiency and accuracy of the data frame, reduce the transmission power consumption of the data frame, prolong the standby time and the like.

Description

Data processing method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data processing method, an apparatus, and a storage medium.
Background
With the rapid development of the internet of things, the number of connected internet of things devices, sensors and actuators will increase continuously. At the edge of the internet of things network, there are a large number of end nodes, and although these individual nodes may all require very low power requirements and do not need to operate continuously (only to start up when needed), the proliferation of the number of nodes results in very high total power consumption. The energy collection technology is to recover and convert energy generated by thermoelectric, vibration, motion, solar energy and the like but not utilized into electric energy to replace a battery to supply power for application, and the energy collection technology is more and more important in the deployment of the internet of things.
The key to realizing the battery-free power supply function of the electronic equipment through energy collection is that the electronic equipment needs to support a low-power consumption technology of an ultra-low-power consumption Wireless protocol, and the Wireless data transmission of the internet of things has standard protocols such as Wireless Fidelity (Wi-Fi), a Wireless internet protocol (Zigbee) of low-speed short-distance transmission, Bluetooth and the like. However, Wi-Fi, bluetooth and the like are designed for mass data transmission, so the biggest problem of applying the electronic device without battery power supply in the field of internet of things is that the consumed power consumption is too high, and the special requirement of connection of personalized objects of the internet of things cannot be met.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a data processing method, apparatus, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, including:
acquiring equipment information of control equipment and control information generated by the control equipment;
generating a first type data frame according to the equipment information and the control information;
the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
In some embodiments, the device information comprises: the source identifier of the control device, the device type of the control device, and the control information includes: controlling parameters;
generating a first type of data frame according to the device information and the control information, including:
generating a first type data frame according to the source identification of the control equipment, the equipment type of the control equipment and the control parameters; wherein the source identifier is used for determining an address field of the first type of data frame; the method further comprises the following steps:
determining a device type of a controlled device;
determining the type of a command for controlling the controlled equipment according to the equipment type of the controlled equipment and the control parameter;
generating a second type data frame according to the equipment type of the controlled equipment and the type of the command;
the data types of data carried by preset bits in the frame control fields of the first type of data frame and the second type of data frame are different; the target identification of the controlled device is used for determining the address field of the second type data frame.
In some embodiments, the second type data frame is formed by an address field of the second type data frame and a payload portion of the second type data frame.
In some embodiments, the byte length corresponding to the payload portion of the second type of data frame is determined by the type of the command.
In some embodiments, when the command is of a first type, the payload portion of the second type of data frame is determined by a device type of the controlled device, the first type, and a first command content;
the first command content is determined by the type of the command.
In some embodiments, when the command is of a first type and the control parameter of the controlling device is null, the payload portion of the second type of data frame is determined by the device type of the controlled device and the first type.
In some embodiments, when the command is of a second type and the command of the second type has the first attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a second command content;
the second command content is determined by the type of the command.
In some embodiments, when the command is of a second type and the command of the second type has a second attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a third command content;
the third command content is determined by a device type of the controlled device and a type of the command in common.
In some embodiments, the method further comprises:
determining a third type data frame according to the second type data frame; the data types of data carried by preset bits in frame control fields of the third type data frame, the first type data frame and the second type data frame are different; the third type data frame comprises: an address field and a payload part, the address field of the third type data frame being determined by the source identification; the load part of the third type data frame is determined by the device type of the controlled device, the type of the command and the content of a fourth command;
the fourth command content is determined by a device type of the controlled device, or by a type of the command, or by both the type of the command and the device type of the controlled device.
In some embodiments, the frame control field of the second type data frame carries forwarding information;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In some embodiments, the payload portion of the second type of data frame carries channel information;
the channel information is used for determining different transmission channels corresponding to different data frames.
In some embodiments, the first type of data frame and/or the second type of data frame carry verification information;
the verification information is used for: dividing the first type of data frame and/or the second type of data frame into a first part and a second part from a preset position, and verifying the first part to obtain a first verification result corresponding to the first part; and checking the second part to obtain a second checking result corresponding to the second part, or checking the first part, the first checking result and the second part to obtain the second checking result.
In some embodiments, the first type of data frame and/or the second type of data frame comprises a header portion, the header portion being determined by protocol version information, the protocol version information being used to determine a data protocol type of data processing.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing method applied to a controlled device, including:
sending the state information of the controlled equipment to an intelligent control center, so that the intelligent control center matches the control equipment with the controlled equipment according to the state information of the controlled equipment and the state information of the control equipment;
receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
and sending the state information to the intelligent control center according to a first time interval in a preset time unit.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
and sending the state information to the intelligent control center according to a second time interval within a preset time length taking the power-on time of the controlled equipment as the starting time.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
and when the controlled equipment is detected to meet the preset triggering condition, sending the state information to the intelligent control center according to a third time interval.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
when the communication connection between the control equipment and the controlled equipment is in a disconnected state, receiving a first trigger instruction sent by the control equipment; the control device is a control device which is connected with a controlled device, or is a control device which is not connected with the controlled device, or is a control device with a preset address;
and responding to the first trigger instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fourth time interval.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
receiving a query instruction from the intelligent control center;
and responding to the query instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fifth time interval.
In some embodiments, the method further comprises:
receiving a control signal from the control device corresponding to the controlled device based on the matching result; wherein the control signal includes a second type data frame generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
generating a response signal according to a third type data frame in response to the control signal; wherein the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
transmitting the response signal to the control device.
In some embodiments, said sending said response signal to said control device comprises:
sending the response signal to the control device through a communication connection with the control device; or sending the response signal to the control equipment through the intelligent control center.
In some embodiments, the method further comprises:
determining the sending direction of the response signal according to the equipment configuration sequence of the control equipment and the intelligent control center;
the sending direction comprises: a direction from the control device to the intelligent control center, or a direction from the intelligent control center to the control device.
In some embodiments, the method further comprises:
carrying out byte order conversion processing on the third type data frame to obtain a third type data frame in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and generating the response signal according to the third type data frame of the preset mode.
In some embodiments, the method further comprises:
forwarding the control signal to other controlled equipment according to forwarding information carried in the control signal;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In some embodiments, the method further comprises:
and stopping sending the response signal when the electric quantity residual quantity of the control equipment is determined to be less than a preset electric quantity threshold value.
According to a third aspect of the embodiments of the present disclosure, there is provided a data processing method applied to a control device, including:
sending the state information of the control equipment to an intelligent control center, so that the intelligent control center matches the control equipment with the controlled equipment according to the state information of the control equipment and the state information of the controlled equipment;
receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
In some embodiments, the method further comprises:
triggering a first trigger instruction based on the detected input operation when the communication connection between the control device and the controlled device is in a disconnected state;
sending the first trigger instruction to the controlled equipment; the first trigger instruction is used for indicating the controlled equipment to send the state information of the controlled equipment to the intelligent control center.
In some embodiments, the method further comprises:
when a preset trigger operation is detected, generating a control signal according to the second-class data frame; wherein the second type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
and sending the control signal to the controlled equipment based on the matching result.
In some embodiments, said sending said control signal to said controlled device comprises:
sending the control signal to the controlled device through a communication connection with the controlled device; or forwarding the control signal to the controlled equipment through the intelligent control center.
In some embodiments, the method further comprises:
determining the sending direction of the control signal according to the equipment configuration sequence of the intelligent control center and the controlled equipment;
the sending direction comprises: a direction from the intelligent control center to the controlled device, or a direction from the controlled device to the intelligent control center.
In some embodiments, the method further comprises:
performing byte order conversion processing on the second type data frame to obtain a second type data frame in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and generating the control signal according to the second type data frame of the preset mode.
In some embodiments, the method further comprises:
receiving a response signal returned by the controlled equipment based on the control signal;
wherein the response signal comprises the third type data frame; the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device.
In some embodiments, the receiving a response signal returned by the controlled device based on the control signal includes:
receiving the response signal through a communication connection with the controlled device; or receiving the response signal through the intelligent control center.
In some embodiments, the method further comprises:
and stopping receiving the response signal when the electric quantity residual quantity of the control equipment is less than a preset electric quantity threshold value.
In some embodiments, the control device is a self-generating power supply device, and the method further comprises:
electric energy is generated through a preset trigger event, and the generated electric energy is used for providing energy for the control equipment to transmit and receive signals.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a data processing apparatus comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is configured to acquire device information of control devices and control information generated by the control devices;
the generating module is configured to generate a first type data frame according to the equipment information and the control information;
the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
In some embodiments, the device information comprises: the source identifier of the control device, the device type of the control device, and the control information includes: controlling parameters;
the generation module is configured to:
generating a first type data frame according to the source identification of the control equipment, the equipment type of the control equipment and the control parameters; wherein the source identifier is used for determining an address field of the first type of data frame; the device further comprises:
a first determination module configured to determine a device type of a controlled device;
a second determination module configured to determine a type of a command for controlling the controlled device according to the device type of the controlled device and the control parameter;
a third determining module configured to generate a second type data frame according to the device type of the controlled device and the type of the command;
the data types of data carried by preset bits in the frame control fields of the first type of data frame and the second type of data frame are different; the target identification of the controlled device is used for determining the address field of the second type data frame.
In some embodiments, the second type data frame is formed by an address field of the second type data frame and a payload portion of the second type data frame.
In some embodiments, the byte length corresponding to the payload portion of the second type of data frame is determined by the type of the command.
In some embodiments, when the command is of a first type, the payload portion of the second type of data frame is determined by a device type of the controlled device, the first type, and a first command content;
the first command content is determined by the type of the command.
In some embodiments, when the command is of a first type and the control parameter of the controlling device is null, the payload portion of the second type of data frame is determined by the device type of the controlled device and the first type.
In some embodiments, when the command is of a second type and the command of the second type has the first attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a second command content;
the second command content is determined by the type of the command.
In some embodiments, when the command is of a second type and the command of the second type has a second attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a third command content;
the third command content is determined by a device type of the controlled device and a type of the command in common.
In some embodiments, the apparatus further comprises:
a fourth determining module configured to determine a third type data frame according to the second type data frame; the data types of data carried by preset bits in frame control fields of the third type data frame, the first type data frame and the second type data frame are different; the third type data frame comprises: an address field and a payload part, the address field of the third type data frame being determined by the source identification; the load part of the third type data frame is determined by the device type of the controlled device, the type of the command and the content of a fourth command;
the fourth command content is determined by a device type of the controlled device, or by a type of the command, or by both the type of the command and the device type of the controlled device.
In some embodiments, the frame control field of the second type data frame carries forwarding information;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In some embodiments, the payload portion of the second type of data frame carries channel information;
the channel information is used for determining different transmission channels corresponding to different data frames.
In some embodiments, the data frame carries verification information;
the verification information is used for: dividing the data frame into a first part and a second part from a preset position, and verifying the first part to obtain a first verification result corresponding to the first part; and checking the second part to obtain a second checking result corresponding to the second part, or checking the first part, the first checking result and the second part to obtain the second checking result.
In some embodiments, the data frame includes a frame header portion, the frame header portion determined by protocol version information, the protocol version information used to determine a data protocol type of the data processing.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a data processing apparatus applied to a controlled device, including:
the sending module is configured to send the state information of the controlled equipment to an intelligent control center, so that the intelligent control center matches the control equipment with the controlled equipment according to the state information of the controlled equipment and the state information of the control equipment;
the receiving module is configured to receive the matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
In some embodiments, the transmitting module is configured to:
and sending the state information to the intelligent control center according to a first time interval in a preset time unit.
In some embodiments, the transmitting module is configured to:
and sending the state information to the intelligent control center according to a second time interval within a preset time length taking the power-on time of the controlled equipment as the starting time.
In some embodiments, the transmitting module is configured to:
and when the controlled equipment is detected to meet the preset triggering condition, sending the state information to the intelligent control center according to a third time interval.
In some embodiments, the transmitting module is configured to:
when the communication connection between the control equipment and the controlled equipment is in a disconnected state, receiving a first trigger instruction sent by the control equipment; the control device is a control device which is connected with a controlled device, or is a control device which is not connected with the controlled device, or is a control device with a preset address;
and responding to the first trigger instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fourth time interval.
In some embodiments, the transmitting module is configured to:
receiving a query instruction from the intelligent control center;
and responding to the query instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fifth time interval.
In some embodiments, the apparatus further comprises:
a matching module configured to receive a control signal from the control device corresponding to the controlled device based on the matching result; wherein the control signal includes a second type data frame generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
a response module configured to generate a response signal according to a third type data frame in response to the control signal; wherein the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
a first transmission module configured to transmit the response signal to the control device.
In some embodiments, the first transmission module is configured to:
sending the response signal to the control device through a communication connection with the control device; or sending the response signal to the control equipment through the intelligent control center.
In some embodiments, the apparatus further comprises:
a fifth determining module, configured to determine a sending direction of the response signal according to the device configuration sequence of the control device and the intelligent control center;
the sending direction comprises: a direction from the control device to the intelligent control center, or a direction from the intelligent control center to the control device.
In some embodiments, the apparatus further comprises:
the conversion module is configured to perform byte order conversion processing on the third type data frames to obtain third type data frames in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and the sixth determining module is configured to generate the response signal according to a third type data frame of a preset mode.
In some embodiments, the apparatus further comprises:
the forwarding module is configured to forward the control signal to other controlled equipment according to forwarding information carried in the control signal;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In some embodiments, the apparatus further comprises:
the first stopping module is configured to stop sending the response signal when the electric quantity residual quantity of the control equipment is determined to be smaller than a preset electric quantity threshold value.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a data processing apparatus applied to a control device, including:
the sending module is configured to send the state information of the control device to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the control device and the state information of the controlled device;
the receiving module is configured to receive the matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
In some embodiments, the apparatus further comprises:
the control device comprises a detection module, a control module and a control module, wherein the detection module is configured to trigger a first trigger instruction based on detected input operation when the communication connection between the control device and the controlled device is in a disconnected state;
the second transmission module is configured to send the first trigger instruction to the controlled equipment; the first trigger instruction is used for indicating the controlled equipment to send the state information of the controlled equipment to the intelligent control center.
In some embodiments, the apparatus further comprises:
a seventh determining module configured to generate a control signal according to the second type data frame when a preset trigger operation is detected; wherein the second type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
a third transmission module configured to transmit the control signal to the controlled device based on the matching result.
In some embodiments, the third transmission module is configured to:
sending the control signal to the controlled device through a communication connection with the controlled device; or forwarding the control signal to the controlled equipment through the intelligent control center.
In some embodiments, the apparatus further comprises:
an eighth determining module, configured to determine a sending direction of the control signal according to a device configuration sequence of the intelligent control center and the controlled device;
the sending direction comprises: a direction from the intelligent control center to the controlled device, or a direction from the controlled device to the intelligent control center.
In some embodiments, the apparatus further comprises:
a ninth determining module, configured to perform byte order conversion processing on the second type data frame to obtain a second type data frame in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and the fourth transmission module is configured to generate the control signal according to the second type of data frame in a preset mode.
In some embodiments, the apparatus further comprises:
a fifth transmission module configured to receive a response signal returned by the controlled device based on the control signal;
wherein the response signal comprises the third type data frame; the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device.
In some embodiments, the fifth transmission module is configured to:
receiving the response signal through a communication connection with the controlled device; or receiving the response signal through the intelligent control center.
In some embodiments, the apparatus further comprises:
and the second stopping module is configured to stop receiving the response signal when the electric quantity residual quantity of the control equipment is smaller than a preset electric quantity threshold value.
In some embodiments, the control device is a self-generating power supply device, and the apparatus further includes:
and the sixth transmission module is configured to generate electric energy through a preset trigger event and provide energy for the control device to transmit and receive signals through the generated electric energy.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a data processing apparatus comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to: when executed, implement the steps in any of the data processing methods of the first, second, or third aspects described above.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a data processing apparatus, enable the apparatus to perform the steps of any one of the above-mentioned data processing methods of the first, second or third aspects.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, device information of a control device and control information generated by the control device can be acquired; generating a first type data frame according to the equipment information and the control information; the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
According to the data frame transmission method and device, the data format of the data frame in the wireless transmission process between the control device and the controlled setting is set, the data frame is inserted with the device information and the control information, the device information and the control information of the control device can be directly carried to the controlled device in the data frame transmission process, and compared with the data transmission by establishing an additional data channel, the data frame transmission efficiency and accuracy can be improved, meanwhile, the transmission power consumption of the data frame can be reduced, the standby time length is increased, and the like.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a first flowchart illustrating a data processing method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a data processing method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a data processing method according to an exemplary embodiment of the present disclosure.
Fig. 4A is a transmission diagram illustrating a wireless data transmission according to an example embodiment of the present disclosure.
Fig. 4B is a diagram illustrating a message data structure according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram of a data processing apparatus shown in accordance with an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram of a data processing apparatus shown in accordance with an exemplary embodiment of the present disclosure.
Fig. 7 is a block diagram of a data processing apparatus shown in accordance with an exemplary embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating a hardware configuration of a data processing apparatus according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a first flowchart of a data processing method according to an exemplary embodiment, as shown in fig. 1, which mainly includes the following steps:
in step 101, acquiring device information of a control device and control information generated by the control device;
in step 102, generating a first type data frame according to the device information and the control information;
the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
Here, the control device (may also be referred to as a transmitter) may be a device capable of generating and transmitting a command and having a wireless transmission function. For example, the device may be a device having radio transmission functions such as radio frequency transceiver, infrared transceiver, bluetooth transceiver, WiFi transceiver, etc. for generating and transmitting commands such as control, management, etc. The control device may include: self-generating switches, battery switches, sensors, etc. The controlled device (also referred to as a receiver) may be a device capable of receiving and executing commands and having a wireless transmission function, for example, a device capable of receiving and executing commands such as control and management and having a wireless transmission function such as radio frequency wireless transceiving, infrared transceiving, bluetooth transceiving, WiFi transceiving, and the like.
In some embodiments, the controlled device may include: wall switch, single-way executor, multi-way executor, electric curtain, lamp, TV set, air conditioner and other equipment. The control device may instruct the controlled device to perform a transition of the operating state or the like by sending a corresponding command, for example: and after the wireless control lamp receives the closing instruction of the wireless control switch, the lamp is switched from the lighting state to the extinguishing state. The control device and the controlled device have a corresponding relationship, for example: one control device may correspond to one controlled device, one control device may correspond to a plurality of controlled devices, a plurality of control devices may correspond to one controlled device, and the like.
The embodiments of the present disclosure may preset the types of the control device and the controlled device, for example: the type of control device may be determined by factors such as the shape of the control device or the number of individual switches. The control device may include: the control device comprises various types of control equipment such as a single-switch self-electricity switch, a double-switch self-electricity switch, a three-switch self-electricity switch, a four-switch self-electricity switch, a round single-key switch, a round double-key switch, a round three-key switch, a passive transmitter and the like. For example: the type of the controlled device may be determined by the number of channels or the purpose of the operation of the controlled device, etc. The controlled device may include: 1-channel receivers, 2-channel receivers,. 8-channel receivers, etc.; wall switches of 1 channel (with gesture sensing function), wall switches of 2 channels (with gesture sensing function), and the like; a wall switch of 1 channel (without gesture sensing function), a wall switch of 2 channels (without gesture sensing function), and the like; the device comprises a single-live-wire wall switch (without a gesture induction function) with 1 channel, a doorbell, a dimmable device, a curtain motor, a double-output curtain motor controller, a dimming control panel and other controlled devices.
The device information of the control device may include at least one of: the device type, the power, the device unique identifier, the device network address, or the installation location of the control device. The control information generated by the control device may include at least one of: the operation information of the user detected by the control device, the device type of the controlled device, the operating state of the controlled device, and the like, for example: if the control device includes a pressure sensor, when the user performs a pressing operation on the control device, the control information may refer to the magnitude of the pressing force detected by the pressure sensor, and the like.
The data frame may refer to a protocol data unit of a data link layer, and may include at least three parts: header, data portion, trailer, etc. The first type data frame at least comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together. The contents of the first and second portions may or may not coincide, and the disclosure is not particularly limited. For example: the address field of the first type data frame may carry a network address of the control device, for example, the network address may be 192.168.101.1.1, or address bits such as 18 bits or 32 bits specified by a protocol, and belongs to device information (i.e., a first portion), and the load portion of the first type data frame may carry device information control information of the controlled device, for example, the device information may be a three-way switch, and the control information may be on or off of a certain one-way switch.
In the embodiment of the disclosure, device information of a control device and control information generated by the control device can be acquired; generating a first type data frame according to the equipment information and the control information; the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together. According to the data frame transmission method and device, the data format of the data frame in the wireless transmission process between the control device and the controlled setting is set, the data frame is inserted with the device information and the control information, the device information and the control information of the control device can be directly carried to the controlled device in the data frame transmission process, and compared with the data transmission by establishing an additional data channel, the data frame transmission efficiency and accuracy can be improved, meanwhile, the transmission power consumption of the data frame can be reduced, the standby time length is increased, and the like.
In some embodiments, the device information comprises: the source identifier of the control device, the device type of the control device, and the control information includes: controlling parameters;
generating a first type of data frame according to the device information and the control information, including:
generating a first type data frame according to the source identification of the control equipment, the equipment type of the control equipment and the control parameters; wherein the source identifier is used for determining an address field of the first type of data frame; the method further comprises the following steps:
determining a device type of a controlled device;
determining the type of a command for controlling the controlled equipment according to the equipment type of the controlled equipment and the control parameter;
generating a second type data frame according to the equipment type of the controlled equipment and the type of the command;
the data types of data carried by preset bits in the frame control fields of the first type of data frame and the second type of data frame are different; the target identification of the controlled device is used for determining the address field of the second type data frame.
In the embodiment of the present disclosure, the device information may include at least a source identifier of the control device and a device type of the control device, and the control information may include at least a control parameter. The Source identifier (Source ID) may refer to a corresponding identifier (such as, but not limited to, an internet protocol address, a device unique number, etc.) of the control device, and the Source identifier may have uniqueness. The method for determining the device type of the controlled device is not particularly limited, and the corresponding control device can be determined according to the source identifier, and the device type of the controlled device can be set in a customized manner in advance. The device type can be a single-switch self-powered switch, a double-switch self-powered switch, a receiver with 1 channel, a receiver with 2 channels and the like, the control device can receive the device type uploaded by a user, then the device type is stored in a preset storage unit, and when a first type of data frame is generated, the device type is read from the preset storage unit.
The control parameters may be determined from user actions detected by the control device, for example: if the control equipment is a single-open switch, when a user converts the open state of the single-open switch into the closed state, the control parameter can be changed from 0 to 1, and the like; if the control device is a pressure sensor, and the user presses the pressure sensor, the control parameter may be generated according to the pressing force detected by the pressure sensor.
The first type data frame can be generated according to the source identifier of the control device, the device type of the control device and the control parameter. For example: the source identifier is used for determining an address field of the first type of data frame, and the device type and the control parameter of the control device may jointly determine a load portion and the like of the first type of data frame. The types of commands for controlling the controlled device may include: commands for data processing, or commands for control (also referred to as device control commands), or commands for management (also referred to as device management commands), and the like. For example: state query, on-off control, brightness control, ring control, travel control and other equipment control commands; the method comprises the steps of configuring a gesture sensing function and an indicator lamp of a wall switch, reading a gesture sensing function and an indicator lamp configuration of the wall switch and other equipment management commands.
The electronic device can determine the type of a command for controlling the controlled device according to the device type of the controlled device and the control parameter, and then the electronic device can generate the second-class data frame according to the device type of the controlled device and the type of the command by determining the device type of the controlled device. For example: the device type of the controlled device and the type of the command may together determine a payload portion of the second type data frame, etc.
The data types of the data carried by the preset bits in the frame control fields of the first type data frame and the second type data frame are different, the data carried by the preset bits can be data with any length or any position in the data frames, the types of the data frames are not limited, and the data frames can be set in a user-defined mode according to actual use requirements. For example: it may refer to a data frame having a value of 00001 of lower 5 bits (b 0, b1,. b4 bits) in the frame control field for the first type of data frame, and may refer to a data frame having a value of 00002 of lower 5 bits in the frame control field for the second type of data frame. In a possible embodiment, the first type of data frame may refer to a data frame sent from a Node side to a Gateway side of a control device, the second type of data frame may refer to a data frame sent from the Gateway side to the Node side, and the like, where the Gateway side may refer to an intelligent control center.
In the embodiment of the disclosure, the second type data frame can be generated according to the device type of the controlled device and the type of the command, so that the data structures of different types of data frames can be accurately determined, the types of the data frames can be refined, and the workload of developers can be reduced.
In the embodiment of the present disclosure, the data frame may be composed of a Header (Header), a Payload (also referred to as a data portion, etc.), a trailer (Footer), and so on. The Frame header may be composed of a Frame Control field (Frame Control), a Frame Sequence Number (Sequence Number), an address field (Addressing Fields), and the like. The frame control domain contains basic frame information, the length is 16bit (bit), the frame sequence number is used for distinguishing data frames which are sent successively, and the address domain is used for determining the transmission direction of the data frames; the length of the load part is variable, and the specific content is determined by the frame type; the end of the frame may be a 16-bit Cyclic Redundancy Check (CRC) value of the header and payload data, etc.
In the embodiment of the present disclosure, the address field of the first type data frame may be determined by the source identifier, and the address field of the second type data frame may be determined by the target identifier. For example: the electronic device determines that the data frame is of the first type, and then determines that the address field in the data frame is written with the source identifier 192.168.102.7 or a number of a particular number of bits, and determines that the data frame is of the second type, and then determines that the address field in the data frame is written with the target identifier 192.168.202.7 or a number of a particular number of bits, etc. The electronic equipment can simply and quickly determine the type or the transmission direction of the data frame and the like through the address field, and the transmission efficiency is improved. The payload part of the first type of data frame may be formed by the device type and the control parameters of the control device together, for example: the control device determines that its device type is a circular double-key switch (corresponding number D2, etc. may be labeled), and the control parameter is 01 (i.e., key a is open, key b is closed, etc.), then the control device may write device type D2 and control parameter 01 into a load portion in the data frame, etc.
In the embodiment of the disclosure, the source identifier may be used to determine an address field of the first type of data frame, the target identifier may be used to determine an address field of the second type of data frame, and the device type and the control parameter of the control device jointly form a load portion of the first type of data frame, so that data structures of different types of data frames can be accurately set, the data frame types can be refined, and the workload of developers can be reduced.
In some embodiments, the second type data frame is formed by an address field of the second type data frame and a payload portion of the second type data frame.
In this embodiment of the present disclosure, the second type data frame is at least formed by an address field of the second type data frame and a load portion of the second type data frame, for example: for example: the device type of the controlled device is a single-channel receiver, the first type is basic state query, the content of the first command is empty, and the like, and the load part is sequentially written in. After determining the address field and the load part of the second-class data frame, the electronic device inserts other parts such as a frame head or a frame tail according to a preset rule to generate a complete second-class data frame. By adopting the above mode, the data structure of different types of data frames can be accurately set, various information such as transmission direction and command type can be determined, transmission efficiency can be improved, and running power consumption can be saved.
In some embodiments, the byte length corresponding to the payload portion of the second type of data frame is determined by the type of the command.
In the embodiment of the present disclosure, the byte length corresponding to the payload part of the second type data frame may be variable, and the byte length may be determined by the type of the command. For example: the command is a command for data processing, and the payload portion of the second type data frame may have a byte length of 5 bytes, the device control command may have a byte length of 7 bytes, the device management command may have a byte length of 9 bytes, and so on. The present disclosure can save transmission resources, and quickly determine the type of a command, etc. by the payload part of the second type data frame of different byte lengths.
In some embodiments, when the command is of a first type, the payload portion of the second type of data frame is determined by a device type of the controlled device, the first type, and a first command content;
the first command content is determined by the type of the command.
In this disclosure, the first type may refer to a device control command, and after the data frame is acquired, it may be determined whether an address field of the data frame is a source identifier or a target identifier to obtain a determination result, and then determine a corresponding data frame type according to the determination result. After the data Type of the data carried by the preset bits in the frame control field of the data frame is determined to be the first Type (i.e., the device control command) carried by the command in the data frame, the first command content (Cmd Date) corresponding to the command of the first Type can be determined according to the Type (Cmd Type) of the command. If the electronic device determines that the type of command is a device control command, the content of the corresponding command may be determined only depending on the type of command, for example: the basic status query corresponds to a command content being null, and the basic Switch controls the corresponding command content to be a first Byte representing Channel information, a second Byte representing switching information, and the like (for example, but not limited to, Byte 1: Channel, Byte 2: Switch). The electronic Device may then determine a Payload portion (Frame Payload) of the second Type of data Frame according to the Device Type (Device Type), the first Type (Cmd Type, 1 Byte) and the first command content (Cmd Date) of the controlled Device. According to the method and the device, the first command content is determined by the type of the command, so that the corresponding command content and the like can be accurately determined.
In some embodiments, when the command is of a first type and the control parameter of the controlling device is null, the payload portion of the second type of data frame is determined by the device type of the controlled device and the first type.
In this embodiment of the disclosure, when the command is of a first type and the control parameter of the control device is null, the load part of the second type data frame may only need to be determined by the device type of the controlled device and the first type, for example: if the device type of the controlled device is the curtain motor and the first type is the basic status query, the load part of the second type data frame can be jointly determined based on the device type being the curtain motor and the first type being the basic status query. By adopting the above mode, the transmission resource can be saved, the transmission efficiency can be improved, and the like.
In some embodiments, when the command is of a second type and the command of the second type has the first attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a second command content;
the second command content is determined by the type of the command.
The properties of a command may refer to the indispensable properties that the command has, such as: encrypted attributes and unencrypted attributes, public attributes and private attributes, common attributes and uncommon attributes, and the like. In the embodiment of the present disclosure, for commands with different attributes, the determination manner of the payload portion of the data frame may be different.
In this embodiment of the present disclosure, the second type may refer to a device management command, and may include: and configuring a gesture sensing function and an indicator light of the wall switch, or reading the gesture sensing function and the indicator light configuration of the wall switch. The first attribute may refer to a public attribute, which may be understood as a limited enumeration of general management commands (e.g., without limitation, switch states, etc.) capable of being applied to the controlled device. When the electronic device determines that the device management command is a public attribute, the second command content (Cmd Date) may be determined only by the Type of command (Cmd Type), for example: when the command type is a device management command and has a public attribute, the second command content may be that the indicator light is turned on or off, and the like.
The electronic Device may then determine a Payload part (Frame Payload) of the second Type Data Frame, etc., according to the Device Type (Device Type), the second Type (Management Cmd Type), and the second command content (Cmd Data) of the controlled Device. For example: the controlled equipment is a 3-way wall switch with a gesture sensing function, a second type of the controlled equipment is a gesture sensing function and an indicator light which are configured with the wall switch, a second command content of the controlled equipment is indicator light starting, and the like, and the controlled equipment is sequentially written into a load part. After determining the address field and the load part of the second-class data frame, the electronic device inserts other parts such as a frame head or a frame tail according to a preset rule to generate a complete second-class data frame.
In this embodiment of the disclosure, when the command is of a second type and the command of the second type has a first attribute, a second command content corresponding to the command of the second type may be determined, a load portion of the data frame of the second type may be determined according to the device type of the controlled device, the second type, and the second command content, and the data frame of the second type may be generated according to an address field of the data frame of the second type and the load portion of the data frame of the second type. By adopting the above mode, the data structure of different types of data frames can be accurately set, various information such as transmission direction and command type can be determined, transmission efficiency can be improved, and running power consumption can be saved.
In some embodiments, when the command is of a second type and the command of the second type has a second attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a third command content;
the third command content is determined by a device type of the controlled device and a type of the command in common.
In this embodiment of the present disclosure, the second type may refer to a device management command, and may include: and configuring a gesture sensing function and an indicator light of the wall switch, or reading the gesture sensing function and the indicator light configuration of the wall switch. The second attribute may refer to a private attribute, which may be understood as a command specific to a certain type of controlled device (e.g., without limitation, detecting facial expressions, etc.). When the electronic Device determines that the Device management command is a private attribute, the third command content (Cmd Date) needs to be determined by the Device Type (Device Type) of the controlled Device and the Type (Cmd Type) of the command, for example: when the command type is a device management command and has a private attribute, the second command content corresponding to the device type a may be an induction distance, and the third command content corresponding to the device type B may be gesture induction control.
The electronic Device may then determine a Payload part (Frame Payload) of the second Type Data Frame, etc. according to the Device Type (Device Type), the second Type (Management Cmd Type), and the third command content (Cmd Data) of the controlled Device. For example: the device type of the controlled device is a light adjustable device with a gesture sensing function, the second type is a gesture sensing function detected by reading the light adjustable device, the third command content is indicating lamp opening and the like, and the light adjustable device with the gesture sensing function, the gesture sensing function detected by reading the light adjustable device and the indicating lamp opening can be sequentially written into the load part. After determining the address field and the load part of the second-class data frame, the electronic device inserts other parts such as a frame head or a frame tail according to a preset rule to generate a complete second-class data frame.
In this embodiment of the disclosure, when the command is of a second type and the command of the second type has a second attribute, determining a third command content corresponding to the command of the second type according to the device type of the controlled device, determining a load portion of the data frame of the second type according to the device type of the controlled device, the second type, and the third command content, and generating the data frame of the second type according to an address field of the data frame of the second type and the load portion of the data frame of the second type. By adopting the above mode, the data structure of different types of data frames can be accurately set, various information such as transmission direction and command type can be determined, transmission efficiency can be improved, and running power consumption can be saved.
In some embodiments, the method further comprises:
determining a third type data frame according to the second type data frame; the data types of data carried by preset bits in frame control fields of the third type data frame, the first type data frame and the second type data frame are different; the third type data frame comprises: an address field and a payload part, the address field of the third type data frame being determined by the source identification; the load part of the third type data frame is determined by the device type of the controlled device, the type of the command and the content of a fourth command;
the fourth command content is determined by a device type of the controlled device, or by a type of the command, or by both the type of the command and the device type of the controlled device.
In this embodiment of the disclosure, the electronic device may determine a third type of data frame according to the second type of data frame, where the third type of data frame may carry information such as an external environment and a current operating state detected by the controlled device, and the third type of data frame may at least include: an address domain and a payload portion. The address field of the third type data frame is determined by the source identification and can be used for determining the corresponding control device, and the load part of the third type data frame is determined by the device type of the controlled device, the type of the command and the content of the fourth command. The third type data frames corresponding to the second type data frames with different generation modes may also be different, for example: when the type of the command is a device control command, the corresponding type of the command can be a first type of third-class data frame; when the type of the command is a device management command, the corresponding type of the command can be a second type of third data frame; when the device management command has the public attribute, the third type data frame of the second type also has the corresponding public attribute, and when the device management command has the private attribute, the third type data frame of the second type also has the corresponding private attribute.
For a third type of data frame of the first type, the fourth command content may be determined only by the device type of the controlled device; for a third type of data frame of a second type having a common attribute, the fourth command content may be determined only by the type of the command; for the third type data frame of the second type having the private attribute, the fourth command content needs to be determined by the type of the command and the device type of the controlled device together.
By adopting the above mode, the data transmission states of the control equipment and the controlled equipment can be accurately and timely determined, and the running power consumption of the electronic equipment is saved.
In some embodiments, the frame control field of the second type data frame carries forwarding information;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In the embodiment of the present disclosure, the forwarding information may include information such as the number of times of forwarding, a forwarding time interval, and the like. The controlled device may have a function of forwarding data so as to increase a transmission distance of a data frame. For example: the electronic device sends the second type of data frame to the controlled device a at the first location, then the controlled device a may send the second type of data frame to the controlled device B at the second location, then the controlled device B may send the second type of data frame to the controlled device C at the third location, and so on. In the process of forwarding data, the controlled devices such as A, B and C may perform both corresponding command contents and forwarding, or may perform only forwarding without performing the corresponding command contents. A. The controlled devices such as B and C may also perform processing such as filtering or inserting new information on the second type data frame, and then perform forwarding, and the like, and the disclosure is not limited in particular.
In the process of forwarding, if the forwarding is performed for an unlimited number of times, the forwarding cannot be stopped or the occupied frequency band is too large, which adversely affects the transmission performance of the wireless transmission system, so that a certain forwarding stop rule can be set. The electronic device may set a FRAME Header (FRAME Header) mode for writing the forwarding times into the data FRAME, and stop forwarding when a certain forwarding time (for example, greater than 2 times) is reached. For example: and when the controlled equipment receives the forwarded second-class data frame and the number of read forwarding times is 3, stopping forwarding to other controlled equipment, and terminating the forwarding process and the like by the controlled equipment. The controlled device a may update the current forwarding number (RC) in the second type data frame received from the intelligent control center from 0 to 1, and then the controlled device B may update the current forwarding number in the second type data frame received from the controlled device a from 1 to 2, until the preset forwarding number is reached 3, and so on. By adopting the above mode, the transmission distance of the data frame can be increased.
In some embodiments, the payload portion of the second type of data frame carries channel information;
the channel information is used for determining different transmission channels corresponding to different data frames.
In the embodiment of the present disclosure, the load part of the second type data frame carries channel information, and the channel information is used to determine different transmission channels corresponding to different data frames. The electronic equipment sends the second type data frame to the controlled equipment, and the method comprises the following steps: determining a target transmission channel corresponding to the equipment type according to the equipment type and a preset mapping relation; the mapping relation is used for representing the association relation between the equipment and the transmission channel; and sending the second type data frame to the controlled equipment through the target transmission channel. For example: the device type of the control device is a square single-key switch, and then the electronic device can transmit a data frame related to the control device through a first Channel (Channel); the device type of the control device is a circular three-key switch, and then the electronic device can transmit data frames related to the control device through the second signal channel. By adopting the above mode, the electronic equipment is facilitated to quickly and accurately transmit the data frame, the condition of disordered transmission of the data frame is avoided, and the transmission efficiency is improved.
In some embodiments, at least one of the data frames of the first type, the second type, and the third type may include a payload portion, and the payload portion or other portions may carry channel information, which is not limited in this disclosure.
In some embodiments, the first type of data frame and/or the second type of data frame carry verification information;
the verification information is used for: dividing the first type of data frame and/or the second type of data frame into a first part and a second part from a preset position, and verifying the first part to obtain a first verification result corresponding to the first part; and checking the second part to obtain a second checking result corresponding to the second part, or checking the first part, the first checking result and the second part to obtain the second checking result.
In some embodiments, at least one of the data frames, such as the first type data frame, the second type data frame, and the third type data frame, may carry check information, and the disclosure is not particularly limited.
In the embodiment of the present disclosure, two checks may be performed on one data frame, and the Check may refer to a Cyclic Redundancy Check (CRC), which is a Cyclic code for short, and is a Check mode with error detection and correction capabilities. The check information may include check codes and other information, and the check information is used for: dividing the data frame into a first part and a second part from a preset position, and verifying the first part to obtain a first verification result corresponding to the first part; and checking the second part to obtain a second checking result corresponding to the second part, or checking the first part, the first checking result and the second part to obtain the second checking result. For example: the length of the data frame is 5 bytes, and the electronic device can insert the check information a (check code a) and the check information B (check code B) after the 1 st byte and the 5 th byte, respectively. The electronic device can perform first verification on the number 1byte according to the verification information A to obtain a verification result a. The electronic device may perform the second verification on the byte number 2-5 according to the verification information B to obtain a verification result B, or the electronic device may perform the second verification on the byte number 1, the byte number 2-5 and the verification result a together according to the verification information B to obtain the verification result B, and the like. This is openly through adopting above-mentioned mode, helps improving check-up efficiency and rate of accuracy etc..
In some embodiments, the first type of data frame and/or the second type of data frame comprises a header portion, the header portion being determined by protocol version information, the protocol version information being used to determine a data protocol type of data processing.
In this embodiment of the present disclosure, any type of data frames in different types of data frames, such as the first type of data frames and/or the second type of data frames, may include a frame header part, where the frame header part may be determined by protocol version information, and the protocol version information is used to determine a data protocol type of data processing, for example: the frame header part corresponding to the 433 protocol is 0001, the frame header part corresponding to the 2.4G protocol is 0010, and the like. Information contained in payload portions or the like of data frames of different protocols (e.g., data frames of a first type, or data frames of a second type, or data frames of a third type, etc.) may be exchanged with each other. By adopting the mode, the generation efficiency of the data frames among different protocols is improved.
In some embodiments, at least one of the data frames of the first type, the second type, and the third type may include a frame header portion, and the disclosure is not limited in particular.
The data processing method in the embodiments of the present disclosure may be applied to a control device, an intelligent control center, a controlled device, and the like, and the present disclosure is not particularly limited with respect to an execution subject of the data processing method.
In the embodiment of the disclosure, device information of a control device and control information generated by the control device can be acquired; generating a first type data frame according to the equipment information and the control information; the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together. According to the method and the device, the data format of the data frame in the wireless transmission process between the control device and the controlled setting and the wireless transmission mode between the control device and the controlled setting are set, so that the transmission efficiency and accuracy of the data frame can be improved, meanwhile, the transmission power consumption of the data frame can be reduced, the standby time is prolonged, and the like.
Fig. 2 is a flowchart ii of a data processing method according to an exemplary embodiment, where as shown in fig. 2, the data processing method is applied to a controlled device and mainly includes the following steps:
in step 201, sending the state information of the controlled device to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the controlled device and the state information of the control device;
in step 202, receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
Here, the controlled device (also referred to as a receiver) may be a device capable of receiving and executing commands and having a wireless transmission function, and for example, may refer to a device for receiving and executing commands such as control and management and having a wireless transmission function such as radio frequency wireless transmission and reception, infrared transmission and reception, bluetooth transmission and reception, and WiFi transmission and reception. In some embodiments, the controlled device may include: wall switch, single-way executor, multi-way executor, electric curtain, lamp, TV set, air conditioner and other equipment.
In the embodiment of the present disclosure, the intelligent control center may include: a terminal device, a gateway device, a cloud server, or the like, for example, a mobile terminal or a fixed terminal. Wherein, the mobile terminal can include: the mobile phone, the tablet computer, the notebook computer or the wearable device may further include a smart home device, for example, a smart sound box. The fixed terminal may include: desktop computers or smart televisions, etc. The intelligent control center may be a relay device or the like for performing matching, filtering, or clipping or other processing on the command during the wireless transmission of the control device and the controlled device. The control device may first send the command to the intelligent control center, and then the intelligent control center forwards the processed command to the controlled device matched with the control device, and the like. Of course, data frame transmission between the controlled device and the control device is also possible.
In a possible embodiment, the intelligent control center may also refer to a module or a chip having an intelligent control function, a component that may be embedded in other devices, and the like, and the representation form of the intelligent control center is not specifically limited in this disclosure. For example: the intelligent control center may refer to one module or unit in the control device, or the intelligent control center may refer to one module or unit in the controlled device, that is, the control device or the controlled device may include functions of the intelligent control center, and the like.
The controlled device may send the state information of the controlled device to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the controlled device and the state information of the control device. The state information of the controlled device may include address identification of the controlled device, motion, brightness, loudness and other state information of the controlled device, and the state information of the control device may include address identification of the control device, opening and closing degree of the control device, detected control parameters and other state information. For example: the intelligent control center matches the control equipment with a certain address identification with the controlled equipment with a certain address identification according to the thought or automatic setting according to a certain rule, and sends the address identification information of the control equipment to the controlled equipment, so that the controlled equipment can directly control the controlled equipment subsequently after storing the address identification information of the control equipment, and once the matching relation is established through the address identification, all control information of the control equipment can be applied to the controlled equipment. For example, if a control switch is pressed on and off, once the switch is matched with the controlled device, the controlled device is opened above the switch and the controlled device is closed below the switch. The intelligent control center determines that the state information of the controlled equipment A is that the loudness is gradually decreased from high to low, the state information of the controlled equipment B is that the brightness is changed from on to off, the state information of the control equipment a is changed from on to off, and the state information of the control equipment B is that the pressing grade is gradually increased. The intelligent control center can obtain a controlled device A matching control device B, a controlled device B matching control device a and the like according to a preset matching strategy.
In the matching, matching may be performed based on common information included in the state information of the controlled device and the state information of the control device. For example: the state information of the controlled device C carries the matching identifier 1, and the state information of the control device D also carries the matching identifier 1, so that it can be determined that the controlled device C is matched with the control device D. In the embodiment of the present disclosure, matching may also be performed according to the device type carried in the state information of the controlled device and the device type carried in the state information of the control device. For example: the device type carried in the state information of the E controlled device is a channel type, the device type carried in the state information of the F control device is a single-switch power type, and the matching of the E controlled device and the F control device is determined through the preset matching of one channel type and the single-switch power type.
After the intelligent control center obtains the matching result, the matching result can be respectively sent to the control equipment and the controlled equipment, so that the control equipment and the controlled equipment can directly transmit signals based on the matching result without passing through the intelligent control center.
The controlled equipment can receive the matching result from the intelligent control center; wherein the matching result is used to establish a communication connection between the control device and the controlled device, for example: communication connection between the controlled device a and the control device B, communication connection between the controlled device B and the control device a, and the like.
In the embodiment of the disclosure, the state information of the controlled device can be sent to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the controlled device and the state information of the control device; receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device. The controlled equipment disclosed by the invention is matched with the control equipment by sending the state information of the controlled equipment, so that the matching efficiency, the matching accuracy and the like between the control equipment and the controlled equipment can be improved.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
and sending the state information to the intelligent control center according to a first time interval in a preset time unit.
In the embodiment of the disclosure, the controlled device may send a plurality of status messages to the intelligent control center at preset time intervals in a preset time unit. The preset time unit may include a power-on time, or a time when a preset key is triggered. In a possible embodiment, the controlled devices may send the status information to the intelligent control center in a preset time unit, and to avoid the situation that an air collision occurs when a plurality of controlled devices send the status information, the first time interval may be a random number. For example: the target identification of the controlled device is used as a random number source, and different time intervals can be generated because the target identification of each controlled device is different. Or, a different identifier may be burned in as a source of random numbers when the controlled device is burning a program, or data read by an analog-to-digital converter without any input may be used as random numbers.
In another embodiment, in order to ensure that the intelligent control center accurately receives the status information, the controlled device may transmit the status information repeatedly for a plurality of times, for example, transmit the status information repeatedly for 3-5 times, etc. The controlled device may adopt a preset time interval or a random number for sending repeated status information each time, and the generation of the random number may be the same as the generation algorithm of the random number, or different calculation methods may be adopted in the program design of the controlled device to ensure that the random numbers generated twice are different, so as to better avoid air collision of data frames and the like. By adopting the above mode, the diversity of the self state information sent by the controlled equipment can be improved, and the matching efficiency is improved.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
and sending the state information to the intelligent control center according to a second time interval within a preset time length taking the power-on time of the controlled equipment as the starting time.
In the embodiment of the disclosure, within a preset time period (e.g., within a seconds) during which the controlled device is powered on, the state information is sent to the intelligent control center, and the number of the state information repeatedly sent within c seconds is d at a second time interval (e.g., c seconds) during which the state information is sent.
In another embodiment, after the controlled device is powered on, a delay may be performed, for example, randomly delaying a preset delay duration (e.g., b seconds), and after b seconds are reached, the number of status information repeatedly sent in c seconds is d. The second time interval for the controlled device to repeatedly send the state information may also be a random number, and a specific random manner is not particularly limited. For example: and the controlled equipment is powered on for 60 seconds, delays for a certain time randomly, sends a response data frame of 4 seconds, repeatedly sends 5 repeated state information within 4 seconds and the like. By adopting the above mode, the diversity of the self state information sent by the controlled equipment can be improved, and the matching efficiency is improved.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
and when the controlled equipment is detected to meet the preset triggering condition, sending the state information to the intelligent control center according to a third time interval.
In this embodiment of the present disclosure, the preset trigger condition may include that various function keys on the controlled device detect and select, and when the controlled device determines that a certain function key is selected, the state information is sent to the intelligent control center according to a third time interval, for example, the third time interval for sending the state information is f seconds, and the number of the state information repeatedly sent in the f seconds is g.
In another embodiment, after the controlled device determines that a certain function key is selected, a delay may be performed, for example, randomly delaying for e seconds, and the time length for sending the status information is f seconds, and the number of status information repeatedly sent in f seconds is g. The time interval for the controlled device to repeatedly send the status information may also be a random number, and the specific random manner is not particularly limited. For example: and the controlled equipment is powered on for 30 seconds, delays for a certain time randomly, sends a response data frame of 5 seconds, repeatedly sends 10 repeated state information within 5 seconds and the like. By adopting the above mode, the diversity of the self state information sent by the controlled equipment can be improved, and the matching efficiency is improved.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
when the communication connection between the control equipment and the controlled equipment is in a disconnected state, receiving a first trigger instruction sent by the control equipment; the control device is a control device which is connected with a controlled device, or is a control device which is not connected with the controlled device, or is a control device with a preset address;
and responding to the first trigger instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fourth time interval.
In the embodiment of the disclosure, each time a control device paired with a controlled device receives a data frame signal of the control device, the control device sends a corresponding data frame to an intelligent control center, m control devices are repeatedly sent each time, and the time interval of the repeated sending is a random number or preset interval time. When the communication connection between the control device and the controlled device is in a disconnected state, that is, when the control device is not paired with the controlled device, the control device may also directly receive a first trigger instruction sent by the control device, and then, in response to the first trigger instruction, send state information of the controlled device to the intelligent control center according to a preset time interval for matching with the control device. The control device may be a control device that has established a connection with a controlled device, or may be a control device that has not established a connection with the controlled device, or may be a control device having a preset address (i.e., a control device having a predetermined special address), and so on. By adopting the above mode, the diversity of the self state information sent by the controlled equipment can be improved, and the matching efficiency is improved.
In some embodiments, the sending the state information of the controlled device to the intelligent control center includes:
receiving a query instruction from the intelligent control center;
and responding to the query instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fifth time interval.
In the embodiment of the present disclosure, the controlled device may send the state information of the controlled device to the intelligent control center according to a preset time interval by receiving an inquiry instruction from the intelligent control center, in response to the inquiry instruction, for matching with the control device, and the like. The inquiry instruction may refer to an instruction for the controlled device to instruct the controlled device to transmit the status information. By adopting the above mode, the diversity of the mode of sending the self state information by the controlled equipment can be improved, the matching efficiency is improved, and the like.
In some embodiments, the method further comprises:
receiving a control signal from the control device corresponding to the controlled device based on the matching result; wherein the control signal includes a second type data frame generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
generating a response signal according to a third type data frame in response to the control signal; wherein the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
transmitting the response signal to the control device.
In the embodiment of the present disclosure, after the controlled device and the control device establish the communication connection based on the matching result, the controlled device and the control device may directly communicate with the control device without passing through an intelligent control center. The control signal may include at least a second type of data frame (such as but not limited to a device control command or a device management command) and the like, and the response signal may include at least a third type of data frame (such as but not limited to a device status report or a device management command reply) and the like. By adopting the above mode, the system can feed back information such as self working state and the like to the control equipment in time, and the stability of the system is improved.
In some embodiments, said sending said response signal to said control device comprises:
sending the response signal to the control device through a communication connection with the control device; or sending the response signal to the control equipment through the intelligent control center.
In the embodiment of the present disclosure, the controlled device may directly send the response signal to the control device through a communication connection with the control device, or send the response signal to the control device through the intelligent control center, or send the response signal to the control device and the intelligent control center at the same time, or the like. This openly can improve signal transmission's stability and flexibility etc. through adopting above-mentioned mode.
In the embodiment of the disclosure, the intelligent control center is used for realizing the equipment matching between the control equipment and the controlled equipment in advance, so that the control equipment and the controlled equipment can be directly interacted even without the intelligent control center, and convenience can be provided for equipment interaction.
In some embodiments, the method further comprises:
determining the sending direction of the response signal according to the equipment configuration sequence of the control equipment and the intelligent control center;
the sending direction comprises: a direction from the control device to the intelligent control center, or a direction from the intelligent control center to the control device.
In the embodiment of the disclosure, since the controlled device, the control device, and the intelligent control center can all communicate with each other, in the implementation process, the sending direction of the response signal can be determined according to the configuration sequence of each device. For example: the controlled device can determine the sending direction of the response signal according to the device configuration sequence of the control device and the intelligent control center; the sending direction comprises: a direction from the control device to the intelligent control center, or a direction from the intelligent control center to the control device. For example: the controlled equipment is firstly configured with the intelligent control center to establish communication connection, then is matched with the control equipment to establish communication connection, and then the sending direction is from the controlled equipment to the intelligent control center and then from the intelligent control center to the control equipment. For example, the controlled device is first matched with the control device to establish a communication connection, and then configured with the intelligent control center to establish a communication connection, where the sending direction is from the controlled device to the control device, and then from the control device to the intelligent control center.
By adopting the above mode, the sending direction and the like can be accurately and effectively determined, and the condition of logic disorder is avoided.
In some embodiments, the method further comprises:
carrying out byte order conversion processing on the third type data frame to obtain a third type data frame in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and generating the response signal according to the third type data frame of the preset mode.
In the embodiment of the present disclosure, the big-end mode may refer to that the high byte of the data is stored in the low address of the memory, and the low byte of the data is stored in the high address of the memory. The little-end mode may refer to the high bytes of data being stored in the high address of the memory and the low bytes of data being stored in the low address of the memory. The controlled device can perform endian conversion processing in the process of generating the response signal. For example: and the controlled equipment generates the response signal according to the third type data frame of the big end mode after setting the unordered third type data frame to the big end mode. By adopting the above mode, the signal transmission efficiency can be improved, and the time for the controlled equipment to analyze the data frame can be reduced.
In some embodiments, the method further comprises:
forwarding the control signal to other controlled equipment according to forwarding information carried in the control signal;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In the embodiment of the present disclosure, the forwarding information may include information such as the number of times of forwarding, a forwarding time interval, and the like. The controlled device may have a function of forwarding data so as to increase a transmission distance of a data frame. For example: the electronic device sends the second type of data frame to the controlled device a at the first location, then the controlled device a may send the second type of data frame to the controlled device B at the second location, then the controlled device B may send the second type of data frame to the controlled device C at the third location, and so on. In the process of forwarding data, the controlled devices such as A, B and C may perform both corresponding command contents and forwarding, or may perform only forwarding without performing the corresponding command contents. A. The controlled devices such as B and C may also perform processing such as filtering or inserting new information on the second type data frame, and then perform forwarding, and the like, and the disclosure is not limited in particular.
In the process of forwarding, if the forwarding is performed for an unlimited number of times, the forwarding cannot be stopped or the occupied frequency band is too large, which adversely affects the transmission performance of the wireless transmission system, so that a certain forwarding stop rule can be set. The electronic device may set a FRAME Header (FRAME Header) mode for writing the forwarding number into the data FRAME, and stop forwarding when a certain forwarding number is reached. For example: and setting the forwarding for 2 times, namely stopping forwarding, and stopping forwarding to other external controlled equipment when the controlled equipment receives the forwarded second-class data frame and the number of read forwarding times is 3, wherein the controlled equipment stops the forwarding process and the like. The controlled device a may update the current forwarding number (RC) in the second type data frame received from the intelligent control center from 0 to 1, and then the controlled device B may update the current forwarding number in the second type data frame received from the controlled device a from 1 to 2, until the preset forwarding number is reached 3, and so on. By adopting the above mode, the transmission distance of the data frame can be increased.
In some embodiments, the method further comprises:
and stopping sending the response signal when the electric quantity residual quantity of the control equipment is determined to be less than a preset electric quantity threshold value.
In the embodiment of the disclosure, the controlled device may determine the power headroom of the control device by sending a current query message to the control device, and then stop sending the response signal when determining that the power headroom of the control device is smaller than a preset power threshold. For example: the controlled device determines that the remaining amount of power of the control device is 10% and is less than a preset power threshold (for example, but not limited to 30%), then even if the controlled device receives the control signal from the control device, the controlled device only needs to execute the control command and the like in the control signal, and may stop generating and transmitting the response signal and the like. By adopting the above mode, the power consumption can be saved, and the control controlled equipment and the standby time of the controlled equipment are prolonged.
In a possible embodiment, the controlled device has a learning function, which may refer to that the working state of the controlled device itself is automatically changed through a preset learning model when the controlled device is in the same scene as the historical control signal by receiving the historical control signal of the control device. For example: the controlled equipment receives the control signal A of the control equipment, then the learning mode is added, namely the control signal, the acquired external environment information, the squeak sound working state and other information are input into the learning model to train the parameters of the learning model, and the controlled equipment can receive the control signal B of the control equipment and exit the learning mode. For example: the controlled device determines that the curtain can be automatically opened at 8 points per day through a learning mode. By adopting the above mode, the intelligence of the controlled equipment can be improved, and the user experience is improved.
In the embodiment of the disclosure, the state information of the controlled device can be sent to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the controlled device and the state information of the control device; receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device. According to the method and the device, the data format of the data frame in the wireless transmission process between the control device and the controlled setting and the wireless transmission mode between the control device and the controlled setting are set, so that the transmission efficiency and accuracy of the data frame can be improved, meanwhile, the transmission power consumption of the data frame can be reduced, the standby time is prolonged, and the like.
Fig. 3 is a flowchart three illustrating a data processing method according to an exemplary embodiment, as shown in fig. 3, which mainly includes the following steps:
in step 301, sending the state information of the control device to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the control device and the state information of the controlled device;
in step 302, receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
Here, the control device (may also be referred to as a transmitter) may be a device capable of generating and transmitting a command and having a wireless transmission function. For example, the present invention may refer to a device having radio transmission functions, such as radio frequency transceiving, infrared transceiving, bluetooth transceiving, and WiFi transceiving, for generating and transmitting commands for control, management, and the like. The control device may include: self-generating switches, battery switches, sensors, etc.
In the embodiment of the present disclosure, the intelligent control center may include: a terminal device, a gateway device, a cloud server, or the like, for example, a mobile terminal or a fixed terminal. Wherein, the mobile terminal can include: the mobile phone, the tablet computer, the notebook computer or the wearable device may further include a smart home device, for example, a smart sound box. The fixed terminal may include: desktop computers or smart televisions, etc. The intelligent control center may be a relay device or the like for performing matching, filtering, or clipping or other processing on the command during the wireless transmission of the control device and the controlled device. The control device may first send the command to the intelligent control center, and then the intelligent control center forwards the processed command to the controlled device matched with the control device, and the like. Of course, data frame transmission between the controlled device and the control device is also possible.
In a possible embodiment, the intelligent control center may also refer to a module or a chip having an intelligent control function, a component that may be embedded in other devices, and the like, and the representation form of the intelligent control center is not specifically limited in this disclosure. For example: the intelligent control center may refer to one module or unit in the control device, or the intelligent control center may refer to one module or unit in the controlled device, that is, the control device or the controlled device may include functions of the intelligent control center, and the like.
The control device may send the state information of the control device to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the control device and the state information of the controlled device. The state information of the control device may include state information such as opening and closing degree of the control device, detected control parameters, and the like, and the state information of the controlled device may include state information such as motion, brightness, loudness, and the like of the controlled device. For example: the intelligent control center determines that the state information of the control device a is from closed to open, the state information of the control device B is that the pressing level is gradually increased, the state information of the controlled device A is that the loudness is gradually decreased, and the state information of the controlled device B is that the brightness is changed from open to closed. The intelligent control center can obtain that the control equipment B is matched with the controlled equipment A, the control equipment a is matched with the controlled equipment B and the like according to a preset matching strategy.
In the matching, matching may be performed based on common information included in the state information of the controlled device and the state information of the control device. For example: the state information of the controlled device C carries the matching identifier 1, and the state information of the control device D also carries the matching identifier 1, so that it can be determined that the controlled device C is matched with the control device D. In the embodiment of the present disclosure, matching may also be performed according to the device type carried in the state information of the controlled device and the device type carried in the state information of the control device. For example: the device type carried in the state information of the E controlled device is a channel type, the device type carried in the state information of the F control device is a single-switch power type, and the matching of the E controlled device and the F control device is determined through the preset matching of one channel type and the single-switch power type.
The control device can receive the matching result from the intelligent control center; wherein the matching result is used to establish a communication connection between the control device and the controlled device, for example: a communication connection between the control device B and the controlled device a, a communication connection between the control device a and the controlled device B, and the like.
In the embodiment of the disclosure, the state information of the control device can be sent to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the control device and the state information of the controlled device; receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device. The controlled equipment disclosed by the invention is matched with the control equipment by sending the state information of the controlled equipment, so that the matching efficiency, the matching accuracy and the like between the control equipment and the controlled equipment can be improved.
In some embodiments, the method further comprises:
triggering a first trigger instruction based on the detected input operation when the communication connection between the control device and the controlled device is in a disconnected state;
sending the first trigger instruction to the controlled equipment; the first trigger instruction is used for indicating the controlled equipment to send the state information of the controlled equipment to the intelligent control center.
In the embodiment of the present disclosure, when the communication connection between the control device and the controlled device is in a disconnected state, that is, when the control device is not paired with the controlled device, the first trigger instruction may be sent to the controlled device; the first trigger instruction is used for indicating the controlled equipment to send the state information of the controlled equipment to the intelligent control center, and therefore matching between the control equipment and the controlled equipment is achieved. The control device may trigger a first trigger instruction based on the detected input operation, for example: the control equipment is provided with corresponding function buttons, and when the control equipment detects that a user triggers the corresponding function buttons, a first trigger instruction is generated; or when the control equipment is powered on, generating a first trigger instruction and the like. By adopting the mode, the matching efficiency between the control equipment and the controlled equipment can be improved.
In some embodiments, the method further comprises:
when a preset trigger operation is detected, generating a control signal according to the second-class data frame; wherein the second type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
and sending the control signal to the controlled equipment based on the matching result.
In the embodiment of the present disclosure, the preset trigger operation may refer to a control operation for the control device, for example: the rotation angle of the rotary button of the control device, the closing state of the switch button, etc. are adjusted. When the control equipment detects a preset trigger operation, generating a control signal according to the second-class data frame; wherein the second type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device. The control device may then transmit the control signal to a controlled device matched with the control device based on the matching result. The number of controlled devices matched with the control device may be one or more, and the present disclosure is not particularly limited. This openly can improve signal transmission's stability and flexibility etc. through adopting above-mentioned mode.
In some embodiments, said sending said control signal to said controlled device comprises:
sending the control signal to the controlled device through a communication connection with the controlled device; or forwarding the control signal to the controlled equipment through the intelligent control center.
In the embodiment of the present disclosure, the method for the control device to send the control signal to the controlled device matched with the control device is various, for example: the control device can directly send the control signal to the controlled device through the communication connection between the control device and the controlled device, or the control device can forward the control signal to the controlled device through the intelligent control center, and the intelligent control center can play the roles of forwarding, filtering or recording and the like in the signal transmission process. By adopting the above mode, the diversity of signal transmission can be increased, and the stability of control signal transmission can be improved.
In some embodiments, the method further comprises:
determining the sending direction of the control signal according to the equipment configuration sequence of the intelligent control center and the controlled equipment;
the sending direction comprises: a direction from the intelligent control center to the controlled device, or a direction from the controlled device to the intelligent control center.
In the embodiment of the present disclosure, since the controlled device, the control device, and the intelligent control center can all communicate with each other, the sending direction of the control signal can be predetermined. For example: the control device can determine the sending direction of the control signal according to the device configuration sequence of the controlled device and the intelligent control center; the sending direction comprises: a direction from the intelligent control center to the controlled device, or a direction from the controlled device to the intelligent control center. For example: the control equipment is firstly configured with the intelligent control center to establish communication connection, then is matched with the controlled equipment to establish communication connection, and then the sending direction is the direction from the intelligent control center to the controlled equipment. By adopting the above mode, the sending direction and the like can be accurately and effectively determined, and the condition of logic disorder is avoided.
In some embodiments, the method further comprises:
performing byte order conversion processing on the second type data frame to obtain a second type data frame in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and generating the control signal according to the second type data frame of the preset mode.
In the embodiment of the present disclosure, the big-end mode may refer to that the high byte of the data is stored in the low address of the memory, and the low byte of the data is stored in the high address of the memory. The little-end mode may refer to the high bytes of data being stored in the high address of the memory and the low bytes of data being stored in the low address of the memory. The control device may perform the endian conversion processing in the process of generating the control signal. For example: the control device generates the control signal and the like according to the second class data frame of the big end mode after setting the unordered second class data frame to the big end mode. By adopting the above mode, the signal transmission efficiency can be improved, and the time for the controlled equipment to analyze the data frame can be reduced.
In some embodiments, the method further comprises:
receiving a response signal returned by the controlled equipment based on the control signal;
wherein the response signal comprises the third type data frame; the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device.
In the embodiment of the present disclosure, after the control device sends the control signal to the controlled device, a response signal returned by the controlled device based on the control signal may be received, where the response signal includes the third type data frame; the third type data frame is generated according to the device type of the controlled device and the type of the command for controlling the controlled device, and is used for feeding back the working state of the controlled device and the like. By adopting the above mode, the information such as the working state of the controlled equipment can be determined in time, and the stability of the system is improved.
In some embodiments, the receiving a response signal returned by the controlled device based on the control signal includes:
receiving the response signal through a communication connection with the controlled device; or receiving the response signal through the intelligent control center.
In the embodiment of the present disclosure, the manner in which the control device receives the response signal returned by the controlled device is various, for example: the control device can directly receive the response signal through a communication connection with the controlled device, or can receive the response signal through the intelligent control center, and the intelligent control center can play a role in forwarding, filtering or recording in the signal transmission process. By adopting the above mode, the diversity of the response signal receiving mode can be increased, and the stability of the system can be improved.
In some embodiments, the method further comprises:
and stopping receiving the response signal when the electric quantity residual quantity of the control equipment is less than a preset electric quantity threshold value.
In the embodiment of the disclosure, the control device may detect the current electric quantity remaining amount stored by itself through a detection circuit or the like, and then stop receiving the response signal when determining that the electric quantity remaining amount of itself is smaller than a preset electric quantity threshold. For example: the control device determines that its remaining power amount is 10% and is less than a preset power threshold (e.g., but not limited to 30%), the control device may stop receiving, interpreting the response signal, and so on. By adopting the above mode, the power consumption can be saved, and the control controlled equipment and the standby time of the controlled equipment are prolonged.
In some embodiments, the control device is a self-generating power supply device, and the method further comprises:
electric energy is generated through a preset trigger event, and the generated electric energy is used for providing energy for the control equipment to transmit and receive signals.
In the embodiment of the present disclosure, the control device is a self-generating power supply device, for example: the control equipment generates electricity and supplies power by means of kinetic energy, light energy, temperature difference energy, vibration energy or wind energy and the like. The preset trigger event may include an event that a user presses the control device, the ambient light intensity is greater than a preset brightness threshold, and the like, and the control device may generate electric energy through the preset trigger event, and provide energy for the control device to receive and transmit signals through the generated electric energy, and the like. This disclosure can save energy etc. through adopting above-mentioned mode.
In the embodiment of the disclosure, the state information of the control device can be sent to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the control device and the state information of the controlled device; receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device. The controlled equipment disclosed by the invention is matched with the control equipment by sending the state information of the controlled equipment, so that the matching efficiency, the matching accuracy and the like between the control equipment and the controlled equipment can be improved.
In the embodiment of the present disclosure, firstly, a user may perform operations in a preset manner (for example, but not limited to, switch closing operations, rotation operations of a rotary switch, and the like) on a control device according to a requirement of the user, and then the control device may generate a first type of data frame, where the first type of data frame may carry a source identifier of the control device as an internet protocol address 192.168.101.1, a device type of the control device is a single-switch electrical switch, a control parameter is a closed state, and the like. Then, the control device sends the first type of data frame to an intelligent control center through a wireless transmission mode (such as, but not limited to, a radio frequency 433 protocol mode), and then the intelligent control center can determine a controlled device corresponding to the control device according to the source identifier. For example: the intelligent control center may broadcast a connection request carrying the source identifier, and then receive a reply message of all the controlled devices responding to the connection request, where the reply message may include information of connection approval or connection rejection, and then may determine that the device carrying the connection approval information is a corresponding controlled device, and the like.
The intelligent control center may obtain information such as an identifier, a device type, and an operation state corresponding to the controlled device by analyzing a reply message from the controlled device, for example: and determining that one controlled device exists, wherein the device type of the controlled device is a wall switch of 2 channels and the like. The intelligent control center may determine a type of a command for controlling the controlled device according to the device type of the controlled device and the control parameter. The intelligent control center may preset a correspondence between the device type of the control device and the control parameter and the type of the command of the controlled device, for example: the equipment type is a wall switch and the control parameter is single click within a preset time length, and corresponds to an equipment control command; the device type is an adjustable optical device, the control parameter is multiple clicks within a preset time duration, the device management command corresponds to the device management command, and the like.
The intelligent control center can generate a second type data frame according to the device type of the controlled device and the type of the command, and then send the second type data frame to the controlled device. For example: the intelligent management device determines that the device type of the controlled device is a wall switch of 2 channels, the type of the command is a device control command and the like, then generates a second type data frame carrying information such as the wall switch of 2 channels (for example, but not limited to, replacing the 10 th bit with a corresponding tag b in the second type data frame, and the like) and the device control command (for example, but not limited to, replacing the 11 th bit with a corresponding tag a in the second type data frame, and the like), and then sends the second type data frame to the controlled device through a wireless transmission mode (for example, but not limited to, a radio frequency 433 protocol mode) so that the controlled device executes the corresponding command.
In one possible embodiment, the present disclosure may be applied to wireless data transmission scenarios, such as: an internet of things equipment control system and the like. The wireless data transmission scenario may include a transmitting apparatus (control device) and a receiving apparatus (controlled device), and the like, and a transmission signal transmitted by the transmitting apparatus may include a preamble, a synchronization word, a data packet (data frame), CRC check information, and the like, where the data frame may include address information (source identifier) of the transmitting apparatus, information (control parameter) acquired by a sensor in the transmitting apparatus, and the like. The receiving device can receive the data message, analyze the data message, execute corresponding functions and the like. The transmitting device has the characteristic of energy saving, the distance energy ratio is greater than 0.2 m/uJ under the wireless transmission frequency of 300MHz-990MHz, the distance energy ratio is greater than 0.1 m/uJ under the wireless transmission frequency of 2GHz-6GHz and the like. The transmitting energy refers to the energy of a power supply system used for completely transmitting at least one data frame, the energy can be a battery or an energy storage capacitor, the distance can be in an open field, the transmitting device and the receiving device are 1 meter high from the ground, wireless transmission is tested for 10 times, and the farthest distance of packet loss is less than or equal to 1 time.
In a possible embodiment, the wireless data transmission scenario may further include an intelligent control center, the intelligent control center is in bidirectional communication with the receiving device, the receiving device may be powered on or powered on at regular time to send data to the receiving device or the intelligent control center, and the transmitting device may receive the data sent by the receiving device after the transmitting device finishes transmitting the data, so as to confirm that the transmission is successful. The transmitting device can also have the characteristics of self-generating power supply, no battery or common power supply energy and the like, and the energy generated by pressing each time in the transmitting device can be used for transmitting signals and receiving wireless signals for returning and confirming success.
As shown in fig. 4A, a transmission diagram of wireless data transmission may be represented. The transmitting device may transmit only signals for power saving without performing additional receiving operations, ensuring that the transmitting device 401 is in an extremely power saving state. The transmitting device 401 may be a self-generating switch, a battery switch, a sensor, etc., and the receiving device 402 may be a wall switch, a single-way actuator, a multi-way actuator, a motorized window shade, a light, etc. The receiving device 402 is of various types, and the receiving device 402 and the smart control center 403 can communicate with each other bidirectionally, acquire data from each other, and transmit control commands and the like. The transmitting device 401, the receiving device 402 and the intelligent control center 403 can all communicate with each other, and the information flow of the whole system has various choices. For example: the transmitting device 401 to the receiving device 402, the receiving device 402 to the intelligent control center 403 may be selected, the transmitting device 401 to the intelligent control center 403, the intelligent control center 403 to the receiving device 402, and the like may be selected. The specific information flow trend can be set by a preset protocol or configured by a user, and the configuration sequence of the user is simulated to execute the sequence of the information flow. For example: if the user configures the smart control center 403 first and then configures the receiving device 402, the information flow direction is from the transmitting device 401 to the smart control center 403 first and then to the receiving device 402, and vice versa.
In a possible embodiment, in the wireless data transmission mode, the corresponding protocol physical layer parameter may be set by a user. For example: the center Frequency may be 300MHz-990MHz, 2GHz-6GHz, the transmission power may be-10 dBm-50 dBm, the reception sensitivity may be arbitrary, the modulation method may be Gaussian Frequency Shift Keying (GFSK), Amplitude Shift Keying (ASK), Frequency Shift Keying (FSK), or the like, and the data transmission rate (air rate) may be 1 kbps-2 Mbps.
As shown in fig. 4B, a message data structure diagram can be represented. The physical layer may be comprised of a preamble (e.g., without limitation, 4 bytes in length), a sync word (e.g., without limitation, 4 bytes in length), and a data link layer frame (e.g., without limitation, custom X bytes in length). For the link layer, the data link layer frame may include information such as a data length (e.g., without limitation, 1byte length), a message (e.g., without limitation, custom Y byte length), and a cyclic redundancy check (CRC check) (e.g., without limitation, 2byte length). For the network layer, the message may include a frame control field (FRAME CTRL) (e.g., without limitation, 1byte length), a SOURCE identification (SOURCE ID) (e.g., without limitation, 4 bytes length), a TYPE of command (TYPE) (e.g., without limitation, 1byte length), a command content (DATA) (e.g., without limitation, custom Z byte length), and the like.
The data length of the command content of the message transmitted by the transmitting device or the intelligent control center or the receiving device can be changed, and different data lengths can be obtained according to different message command types. For example: for a transmitting device, the DATA may be 1Byte in length. The data transmitted by the transmitting device needs a certain triggering condition, and the triggering condition can be that the transmitting device is powered on, can also transmit at fixed time, or the data of the sensor in the transmitting device changes. The transmitting device may load the DATA content based on the signals collected by the sensor, and not load the sensor DATA if the sensor DATA is empty. Then reloads TYPE data defining the TYPE of the emitting device, for example: the transmitting means may be defined as a switch and may also be defined as a type of switch. For example: the switch of the transmitting device is defined to be of a turnover type, and after the switch is pressed each time and the receiving device receives a turnover type message, turnover operation is executed once. It can also be defined that the type of the switch of the transmitting device is fixed, and the receiving device will perform the fixed on or off operation after receiving the message each time.
Other types of the transmitting device or the type of a certain switch can be defined, and the receiving device can execute corresponding actions according to the defined types. FRAME CTRL define the type of transmitted signal, for example: a signal sent by the transmitting device, or a device control command, or a device status report command, or a device management command reply, etc. The SOURCE ID defines the matching information of the transmitted signal, and the receiving device will perform the corresponding function only if the SOURCE identification of the transmitting device matches the destination identification of the receiving device. This information is also the information to be set up for the configuration establishment relationship between the devices. The data length can be 1Byte, which defines the overall length of the transmitted message and provides data length information for the subsequent program to analyze the message, the CRC check is 2Bytes, or 1Byte or other digits, when the CRC check is correct, the message is considered to be an effective message, and if the check is incorrect, the message is an invalid message, etc.
In one possible embodiment, the preset bits in the frame control field of the data frame may refer to the lower 5 bits b0-b4, the first type of data frame may include passive wireless sensor (switch) commands, the second type of data frame may include device control commands and device management commands, and the response data frame may include device status reports, device management command replies, and the like. The data types of the data carried by the preset bits corresponding to the different types of commands may be 0, 0x1F (0 b 111111), 0x1E (0 b 111110), 0x1D (0 b 111101), and 0x1C (0 b 111100), respectively. The b5 and b6 bits in the frame control field may indicate the corresponding number of hops (RC), and the b7 bits may both be set to 0. The representation of the control device in the load section corresponding to the passive wireless sensor (switch) command and the corresponding device type may be, 0x 01: roll-over type switch (currently single-open, double-open), 0x 02: flip-type switch (current quarto, circular switch), 0x 03: K7-HT Hunter custom type, 0x 04: K4R-HT Hunter custom type, 0x 05: K4R-W1, 0x 06: K4R-W2, 0x 07: K4R-W3, 0x03-0x 80: reserve subsequent types, etc. KR, W, HT and the like represent different types of models, are not particularly limited and can be set in a user-defined mode.
The device type, the type of the command, and the command content of the controlled device in the load part corresponding to the device control command may be represented by 0x81 (one-way receiver), 0x01 (basic state query), null, 0x81 (one-way receiver), 0x02 (basic switch control), transition (switch), 0x91/92/93 (1/2/3-way wall switch with gesture sensing function), 0x01 (basic state query), null, 0x91/92/93 (1/2/3-way wall switch with gesture sensing function), 0x02 (basic switch control), switch, 0x9D/9E/9F (single fire line 1/2/3-way wall switch without gesture sensing function), 0x01 (basic state query), null, 0x9D/9E/9F (single fire line 1/2/3-way wall switch without gesture sensing function), or the like, 0x02 (basic switch control), switch, 0xA1 (dimmable device), 0x03 (brightness control), level, 0xA1 (dimmable device), 0x01 (basic status query), null, 0xA0 (G4 doorbell device), 0x04 (ring control), (Byte 1: voice number, Byte 2: voice volume), 0xA2 (curtain motor), 0x01 (basic status query), null, 0xA2 (curtain motor), 0x02 (basic control), (first Byte may represent transmitted channel number, up to 8 channels, 2-3 bytes may represent switch stop and the like, (00: close, 01: open, 02: stop), the lowest 2 bits of the 3 rd Byte may represent channel 1 and the like), 0xA3 (curtain motor), 0x03 (travel control), Byte 1: channel (up to 8 channels), and (Byte 469-stroke value), byte9 is channel 1, etc.
The device Type of the controlled device in the load section corresponding to the device status Report, the Type of the (reply) command (Report Type), and the command content (Report Data) may be expressed as 0x81-0x88: normal receiver, 0x01/0x02/0x81/0x82/0x83, (Byte 1: channel, Byte 2: switch), 0x91-0x93: wall switch (with gesture sensing function), 0x01/0x02/0x81/0x82/0x83/0x86, Byte 1: channel, Byte 2: switch, Byte 3-4: light sensing value, 0x9A-0x9C: wall switch (without sensing), 0x01/0x02/0x 9/0 x 6862/0 x 8269556, Byte 1: channel, 0x 849: 0x 9: 8653: wall switch (without sensing function), 0x01/0x02/0x 639/0 x 6862/0 x 8269556, Byte 3: channel, 0x 843: switch (single function), 0x01/0x02/0x81/0x82/0x83, Byte 1: channel, Byte 3: switch, 0xA 1: adjustable light equipment, 0x01/0x02/0x81/0x82/0x83/0x85, Byte 1: channel =0x01, Byte 2: level, 0xA 0: g4 doorbell device, 0x04/0x83, Byte 1: voice number, Byte 2: voice volume, 0xA2 (curtain motor), 0x01/0x02/0x81/0x85/0x86, Byte 1: channel (8 channels at most), and Byte 2-Byte9 (stroke value 0-100,255 no stroke) Byte9 is channel 1. In the disclosed embodiment, 0x01-7f may represent a command type (Cmd type) received in return, 0x81-8f may represent an event type (event type) actively uploaded, and the like.
The device Type of the controlled device in the load section corresponding to the device Management command, the Type of the (Management) command (Management Cmd Type), and the command content (Cmd Data) may be expressed as, 0x91-93, 0x 81: configuring a gesture sensing function and an indicator light of a wall switch, and performing Byte 1 gesture sensing control: bit <6> gesture response is totally closed, bit <5~3> switch channel, and bit <2~0> channel gesture response is turned on the light and is enabled Byte 2 inductive distance: turning on a 0-64 Byte 3 indicator light: 0 (not on) 1 (on), 0x91-93, 0x 82: reading gesture sensing function of wall switch and configuration, empty, public command of indicator light, limited enumeration of general management command of equipment. The private command may represent specific to a certain class of devices. In the embodiment of the disclosure, for the public command, only the command type is depended on; the private command may depend on the device type and command type of the controlled device, etc.
The device Type, the Type of command (Cmd Type), and the command content (Cmd Data) of the controlled device in the load section corresponding to the device management command response may be expressed as 0x91-93, 0x 81: configuring a gesture sensing function and an indicator light of a wall switch, 0: OK, 1-255 ERR CODE, 0x91-93, 0x 82: reading the gesture sensing function and the indicator light configuration of the wall switch, and performing Byte 1 gesture sensing control: bit <6> gesture response is totally closed, bit <5~3> switch channel, and bit <2~0> channel gesture response is turned on the lamp and is made Byte 2 inductive distance: turning on a 0-64 Byte 3 indicator light: 0 (not on)/1 (on), etc.
In a possible embodiment, the control device may comprise a K2 quad self switch, a K3 circular triple switch, a G2 passive transmitter, a K4R square triple switch, or the like. The controlled device may include a receiver of 1 channel, a receiver of 8 channels, a wall switch of 1 channel (with gesture sensing function), a wall switch of 3 channels (without gesture sensing function), and the like.
In a possible embodiment, the link layer data format may also change the way of checking the CRC check code, and insert the CRC check code into the link layer data, for example, insert the CRC check code into the data message, so that the CRC is calculated once for the first few bytes of the data message, and then calculate the CRC again for the end of the data message. The network layer data may also be unpacked and the number of bits of the SOURCE ID may be increased or decreased, for example, to 22 bits. The data format of the integrated link layer + network layer may be: message 1 (M bytes), CRC check (2 bytes), message 2 (N bytes), CRC check (1 byte), etc.
In one possible embodiment, FRAME CTRL may be set to 0x00, TYPE 0x55, representing the command TYPE as transmitter, and the TYPE of transmitter is a switch, which may include six keys, with DATA being respectively 0 th bit to 5 th bit of DATA, when a key is activated, the DATA corresponding to bit 1, and when not activated, the DATA corresponding to bit 0. When all keys are activated, the DATA is 0x 3F. After the receiver receives the signal, whether the signal is a controlled switch or not is firstly matched, and then the state of the receiving actuator is controlled according to the trigger state of the key.
In one possible embodiment, FRAME CTRL may be set to 0xAA, TYPE to 0xA1, and control command of the single-channel receiving device, the first byte of DATA is the control command, 0x01 represents inquiry status, 0x02 represents a switch that needs to be controlled, the second byte of DATA represents a state that needs to be controlled, 0x01 represents on, and 0x02 represents off.
In one possible embodiment, FRAME CTRL may be set to 0xA5, TYPE to 0xA2, and the device status report command of the one-way receiving apparatus, the first byte of DATA represents the specific device TYPE, the second byte of DATA represents the status of the specific controlled device, or multiple bytes may represent the status of the specific controlled device, depending on the TYPE of the controlled device.
In one possible embodiment, FRAME CTRL may be set to 0xA6, TYPE to 0xA3, for one-way receiver management commands, the first byte of DATA is the specific one-way receiver and function TYPE, and the second byte of DATA is the specific configuration function, or there may be multiple bytes.
In one possible embodiment, FRAMECTRL may be set to 0xA7, TYPE to 0xA4, and the one-way receiver management response command, the first byte of DATA is the specific one-way receiver and function TYPE, and the second byte of DATA is the specific response DATA, or multiple bytes.
In a possible embodiment, a FRAME Header may be added before FRAME CTRL data to identify information such as protocol version number, and of course, FRAME CTRL and the FRAME Header contain information that can be exchanged, as long as the predefined definition is clear. In some applications, the receiving executor is allowed to start the forwarding function to increase the transmission distance, but if the forwarding is performed for an unlimited number of times, the forwarding cannot be stopped or the occupied frequency band is too large, which adversely affects the transmission performance of the wireless system, so it is important to set a certain forwarding stop rule. In the protocol, the forwarding can be stopped when a certain forwarding number is reached. For example, the forwarding is stopped by setting 2 times of forwarding, and when the receiving executor receives the forwarded message but reads the forwarding number to be 3, the outward forwarding is stopped, and the receiving executor terminates the forwarding process.
In a possible embodiment, for the transmitter, the power generation capacity of the electromagnetic transducer is approximately between 100uJ and 1000uJ, the power generation efficiency of the optical energy is approximately 100W/m, the collection utilization rate of the long-distance wireless transmission power generation is lower, therefore, the energy needs to be utilized by optimizing a wireless transmission protocol (data structure of a data frame, and the like), the traditional method for increasing the transmitting power to realize long-distance transmission cannot meet the requirement of micro-energy power generation, the utilization rate of the energy is increased and the energy is saved by optimizing a wireless transmission mode, but the transmission distance can not be reduced due to energy saving, so that the transmission distance is ensured to be far enough, the ratio of the distance to the energy is better, the disclosed embodiment can ensure that the ratio of the distance to the energy is more than 0.2 m/uJ under the wireless transmission frequency of 300MHz-990MHz, is more than 0.1 meter/uJ under the wireless transmission frequency of 2GHz-6 GHz. The embodiment of the disclosure can be applied to a control system of an intelligent home and can be used as products such as an intelligent switch, an electric curtain, a sensor, an intelligent household appliance, a garbage disposer, an intelligent closestool, an electric clothes hanger and the like.
Fig. 5 is a block diagram illustrating a data processing apparatus according to an example embodiment. As shown in fig. 5, the data processing apparatus 500 mainly includes:
an obtaining module 501 configured to obtain device information of a control device and control information generated by the control device;
a generating module 502 configured to generate a first type data frame according to the device information and the control information;
the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
In some embodiments, the device information comprises: the source identifier of the control device, the device type of the control device, and the control information includes: controlling parameters;
the generating module 502 is configured to:
generating a first type data frame according to the source identification of the control equipment, the equipment type of the control equipment and the control parameters; wherein the source identifier is used for determining an address field of the first type of data frame; the device further comprises:
a first determination module configured to determine a device type of a controlled device;
a second determination module configured to determine a type of a command for controlling the controlled device according to the device type of the controlled device and the control parameter;
a third determining module configured to generate a second type data frame according to the device type of the controlled device and the type of the command;
the data types of data carried by preset bits in the frame control fields of the first type of data frame and the second type of data frame are different; the target identification of the controlled device is used for determining the address field of the second type data frame.
In some embodiments, the second type data frame is formed by an address field of the second type data frame and a payload portion of the second type data frame.
In some embodiments, the byte length corresponding to the payload portion of the second type of data frame is determined by the type of the command.
In some embodiments, when the command is of a first type, the payload portion of the second type of data frame is determined by a device type of the controlled device, the first type, and a first command content;
the first command content is determined by the type of the command.
In some embodiments, when the command is of a first type and the control parameter of the controlling device is null, the payload portion of the second type of data frame is determined by the device type of the controlled device and the first type.
In some embodiments, when the command is of a second type and the command of the second type has the first attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a second command content;
the second command content is determined by the type of the command.
In some embodiments, when the command is of a second type and the command of the second type has a second attribute, the payload portion of the second-class data frame is determined by a device type of the controlled device, the second type, and a third command content;
the third command content is determined by a device type of the controlled device and a type of the command in common.
In some embodiments, the apparatus 500 further comprises:
a fourth determining module configured to determine a third type data frame according to the second type data frame; the data types of data carried by preset bits in frame control fields of the third type data frame, the first type data frame and the second type data frame are different; the third type data frame comprises: an address field and a payload part, the address field of the third type data frame being determined by the source identification; the load part of the third type data frame is determined by the device type of the controlled device, the type of the command and the content of a fourth command;
the fourth command content is determined by a device type of the controlled device, or by a type of the command, or by both the type of the command and the device type of the controlled device.
In some embodiments, the frame control field of the second type data frame carries forwarding information;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In some embodiments, a payload portion of the first type of data frame and/or the second type of data frame carries channel information;
the channel information is used for determining different transmission channels corresponding to different data frames.
In some embodiments, the first type of data frame and/or the second type of data frame carry verification information;
the verification information is used for: dividing the first type of data frame and/or the second type of data frame into a first part and a second part from a preset position, and verifying the first part to obtain a first verification result corresponding to the first part; and checking the second part to obtain a second checking result corresponding to the second part, or checking the first part, the first checking result and the second part to obtain the second checking result.
In some embodiments, the first type of data frame and/or the second type of data frame comprises a header portion, the header portion being determined by protocol version information, the protocol version information being used to determine a data protocol type of data processing.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating a second data processing apparatus according to an example embodiment. As shown in fig. 6, the data processing apparatus 600 mainly includes:
a sending module 601, configured to send the state information of the controlled device to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the controlled device and the state information of the control device;
a receiving module 602 configured to receive the matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
In some embodiments, the sending module 601 is configured to:
and sending the state information to the intelligent control center according to a first time interval in a preset time unit.
In some embodiments, the sending module 601 is configured to:
and sending the state information to the intelligent control center according to a second time interval within a preset time length taking the power-on time of the controlled equipment as the starting time.
In some embodiments, the sending module 601 is configured to:
and when the controlled equipment is detected to meet the preset triggering condition, sending the state information to the intelligent control center according to a third time interval.
In some embodiments, the sending module 601 is configured to:
when the communication connection between the control equipment and the controlled equipment is in a disconnected state, receiving a first trigger instruction sent by the control equipment; the control device is a control device which is connected with a controlled device, or is a control device which is not connected with the controlled device, or is a control device with a preset address;
and responding to the first trigger instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fourth time interval.
In some embodiments, the sending module 601 is configured to:
receiving a query instruction from the intelligent control center;
and responding to the query instruction, and sending the state information of the controlled equipment to the intelligent control center according to a fifth time interval.
In some embodiments, the apparatus 600 further comprises:
a matching module configured to receive a control signal from the control device corresponding to the controlled device based on the matching result; wherein the control signal includes a second type data frame generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
a response module configured to generate a response signal according to a third type data frame in response to the control signal; wherein the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
a first transmission module configured to transmit the response signal to the control device.
In some embodiments, the first transmission module is configured to:
sending the response signal to the control device through a communication connection with the control device; or sending the response signal to the control equipment through the intelligent control center.
In some embodiments, the apparatus 600 further comprises:
a fifth determining module, configured to determine a sending direction of the response signal according to the device configuration sequence of the control device and the intelligent control center;
the sending direction comprises: a direction from the control device to the intelligent control center, or a direction from the intelligent control center to the control device.
In some embodiments, the apparatus 600 further comprises:
the conversion module is configured to perform byte order conversion processing on the third type data frames to obtain third type data frames in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and the sixth determining module is configured to generate the response signal according to a third type data frame of a preset mode.
In some embodiments, the apparatus 600 further comprises:
the forwarding module is configured to forward the control signal to other controlled equipment according to forwarding information carried in the control signal;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
In some embodiments, the apparatus 600 further comprises:
the first stopping module is configured to stop sending the response signal when the electric quantity residual quantity of the control equipment is determined to be smaller than a preset electric quantity threshold value.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a data processing apparatus according to an example embodiment. As shown in fig. 7, applied to a control device, the data processing apparatus 700 mainly includes:
a sending module 701, configured to send the state information of the control device to an intelligent control center, so that the intelligent control center matches the control device with the controlled device according to the state information of the control device and the state information of the controlled device;
a receiving module 702 configured to receive the matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
In some embodiments, the apparatus 700 further comprises:
the control device comprises a detection module, a control module and a control module, wherein the detection module is configured to trigger a first trigger instruction based on detected input operation when the communication connection between the control device and the controlled device is in a disconnected state;
the second transmission module is configured to send the first trigger instruction to the controlled equipment; the first trigger instruction is used for indicating the controlled equipment to send the state information of the controlled equipment to the intelligent control center.
In some embodiments, the apparatus 700 further comprises:
a seventh determining module configured to generate a control signal according to the second type data frame when a preset trigger operation is detected; wherein the second type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device;
a third transmission module configured to transmit the control signal to the controlled device based on the matching result.
In some embodiments, the third transmission module is configured to:
sending the control signal to the controlled device through a communication connection with the controlled device; or forwarding the control signal to the controlled equipment through the intelligent control center.
In some embodiments, the apparatus 700 further comprises:
an eighth determining module, configured to determine a sending direction of the control signal according to a device configuration sequence of the intelligent control center and the controlled device;
the sending direction comprises: a direction from the intelligent control center to the controlled device, or a direction from the controlled device to the intelligent control center.
In some embodiments, the apparatus 700 further comprises:
a ninth determining module, configured to perform byte order conversion processing on the second type data frame to obtain a second type data frame in a preset mode; wherein the preset mode comprises: presetting a large terminal mode and a small terminal mode;
and the fourth transmission module is configured to generate the control signal according to the second type of data frame in a preset mode.
In some embodiments, the apparatus 700 further comprises:
a fifth transmission module configured to receive a response signal returned by the controlled device based on the control signal;
wherein the response signal comprises the third type data frame; the third type data frame is generated according to a device type of the controlled device and a type of a command for controlling the controlled device.
In some embodiments, the fifth transmission module is configured to:
receiving the response signal through a communication connection with the controlled device; or receiving the response signal through the intelligent control center.
In some embodiments, the apparatus 700 further comprises:
and the second stopping module is configured to stop receiving the response signal when the electric quantity residual quantity of the control equipment is smaller than a preset electric quantity threshold value.
In some embodiments, the control device is a self-generating power supply device, and the apparatus 700 further includes:
and the sixth transmission module is configured to generate electric energy through the preset trigger event and provide energy for the control device to transmit and receive signals through the generated electric energy.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating a hardware configuration of a data processing apparatus according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The apparatus 800 may access a wireless network based on a communication standard, such as WI-FI, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a data processing apparatus, enable the data processing apparatus to perform a data processing method, comprising:
acquiring equipment information of control equipment and control information generated by the control equipment;
generating a first type data frame according to the equipment information and the control information;
the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
Or comprises the following steps:
sending the state information of the controlled equipment to an intelligent control center, so that the intelligent control center matches the control equipment with the controlled equipment according to the state information of the controlled equipment and the state information of the control equipment;
receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
Or comprises the following steps:
sending the state information of the control equipment to an intelligent control center, so that the intelligent control center matches the control equipment with the controlled equipment according to the state information of the control equipment and the state information of the controlled equipment;
receiving a matching result from the intelligent control center; wherein the matching result is used for establishing communication connection between the control device and the controlled device.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A method of data processing, the method comprising:
acquiring equipment information of control equipment and control information generated by the control equipment;
generating a first type data frame according to the equipment information and the control information;
the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
2. The method of claim 1, wherein the device information comprises: the source identifier of the control device, the device type of the control device, and the control information includes: controlling parameters;
generating a first type of data frame according to the device information and the control information, including:
generating a first type data frame according to the source identification of the control equipment, the equipment type of the control equipment and the control parameters; wherein the source identifier is used for determining an address field of the first type of data frame; the method further comprises the following steps:
determining a device type of a controlled device;
determining the type of a command for controlling the controlled equipment according to the equipment type of the controlled equipment and the control parameter;
generating a second type data frame according to the equipment type of the controlled equipment and the type of the command;
the data types of data carried by preset bits in the frame control fields of the first type of data frame and the second type of data frame are different; the target identification of the controlled device is used for determining the address field of the second type data frame.
3. The method of claim 2, wherein the second type of data frame is formed by an address field of the second type of data frame and a payload portion of the second type of data frame.
4. The method of claim 3, wherein the byte length corresponding to the payload portion of the second type data frame is determined by the type of the command.
5. The method of claim 3, wherein when the command is of a first type, the payload portion of the second type of data frame is determined by a device type of the controlled device, the first type, and a first command content;
the first command content is determined by the type of the command.
6. The method of claim 5, wherein when the command is of a first type and the control parameters of the controlling device are null, the payload portion of the second type of data frame is determined by the device type of the controlled device and the first type.
7. The method of claim 3, wherein when the command is of a second type and the command of the second type has the first attribute, the payload portion of the second type of data frame is determined by a device type of the controlled device, the second type, and a second command content;
the second command content is determined by the type of the command.
8. The method of claim 3, wherein when the command is of a second type and the command of the second type has a second attribute, the payload portion of the second type of data frame is determined by a device type of the controlled device, the second type, and a third command content;
the third command content is determined by a device type of the controlled device and a type of the command in common.
9. The method of claim 3, further comprising:
determining a third type data frame according to the second type data frame; the data types of data carried by preset bits in frame control fields of the third type data frame, the first type data frame and the second type data frame are different; the third type data frame comprises: an address field and a payload part, the address field of the third type data frame being determined by the source identification; the load part of the third type data frame is determined by the device type of the controlled device, the type of the command and the content of a fourth command;
the fourth command content is determined by a device type of the controlled device, or by a type of the command, or by both the type of the command and the device type of the controlled device.
10. The method according to claim 2, wherein the frame control field of the second type data frame carries forwarding information;
the forwarding information is used for triggering the function of the controlled device for forwarding data to other controlled devices.
11. The method of claim 3, wherein the payload portion of the second type data frame carries channel information;
the channel information is used for determining different transmission channels corresponding to different data frames.
12. The method according to claim 2, wherein the first type of data frame and/or the second type of data frame carry check information;
the verification information is used for: dividing the first type of data frame and/or the second type of data frame into a first part and a second part from a preset position, and verifying the first part to obtain a first verification result corresponding to the first part; and checking the second part to obtain a second checking result corresponding to the second part, or checking the first part, the first checking result and the second part to obtain the second checking result.
13. The method according to claim 2, wherein the first type of data frame and/or the second type of data frame comprises a header portion, the header portion being determined by protocol version information, the protocol version information being used to determine a data protocol type of data processing.
14. A data processing apparatus, comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is configured to acquire device information of control devices and control information generated by the control devices;
the generating module is configured to generate a first type data frame according to the equipment information and the control information;
the first type data frame comprises an address field and a load part, a first part in the equipment information forms the address field of the first type data frame, and a second part in the equipment information and the control information form the load part of the first type data frame together.
15. A data processing apparatus, comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to: when executed, implement the steps in a data processing method as claimed in any one of claims 1 to 13.
16. A non-transitory computer readable storage medium having instructions which, when executed by a processor of a data processing apparatus, enable the apparatus to perform the steps of any of the data processing methods of claims 1 to 13.
CN202111359491.5A 2021-11-17 2021-11-17 Data processing method, device and storage medium Active CN113794783B (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN202111359491.5A CN113794783B (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210080619.2A CN114500620A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210082447.2A CN114553920B (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210080447.9A CN114553919B (en) 2021-11-17 Data processing method, device and storage medium
CN202210080459.1A CN114520821A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111359491.5A CN113794783B (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium

Related Child Applications (4)

Application Number Title Priority Date Filing Date
CN202210080447.9A Division CN114553919B (en) 2021-11-17 Data processing method, device and storage medium
CN202210080459.1A Division CN114520821A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210080619.2A Division CN114500620A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210082447.2A Division CN114553920B (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113794783A true CN113794783A (en) 2021-12-14
CN113794783B CN113794783B (en) 2022-02-25

Family

ID=78877293

Family Applications (4)

Application Number Title Priority Date Filing Date
CN202111359491.5A Active CN113794783B (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210082447.2A Active CN114553920B (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210080459.1A Pending CN114520821A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210080619.2A Pending CN114500620A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium

Family Applications After (3)

Application Number Title Priority Date Filing Date
CN202210082447.2A Active CN114553920B (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210080459.1A Pending CN114520821A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium
CN202210080619.2A Pending CN114500620A (en) 2021-11-17 2021-11-17 Data processing method, device and storage medium

Country Status (1)

Country Link
CN (4) CN113794783B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852210A (en) * 2006-05-08 2006-10-25 杭州华为三康技术有限公司 Method for transmitting control message and a station apparatus
US20130024859A1 (en) * 2011-07-18 2013-01-24 Hon Hai Precision Industry Co., Ltd. Control computer and data accessing method
CN103064374A (en) * 2012-12-18 2013-04-24 重庆邮电大学 Household energy consumption monitoring system based on internet of things technology
CN104331053A (en) * 2014-11-10 2015-02-04 重庆邮电大学 6LoWPAN smart home system and method for achieving same
CN104539712A (en) * 2014-12-31 2015-04-22 广东德豪润达电气股份有限公司 Intelligent household appliance data transmission method
CN105635950A (en) * 2016-01-07 2016-06-01 烽火通信科技股份有限公司 Smart home gateway control system and method based on Zigbee
CN106131924A (en) * 2016-06-06 2016-11-16 欧普照明股份有限公司 A kind of control equipment, wireless communications method and system
US20160344815A1 (en) * 2015-05-22 2016-11-24 Samsung Electronics Co., Ltd. Apparatus and method for controlling external device
CN106487988A (en) * 2015-08-25 2017-03-08 中兴通讯股份有限公司 A kind of method and system realizing terminal control
CN106850362A (en) * 2017-01-16 2017-06-13 黄修文 Wireless transmitting system and method based on technology of Internet of things
CN107123253A (en) * 2017-04-28 2017-09-01 环球智达科技(北京)有限公司 Many equipment infrared remote control methods based on user terminal
CN107493211A (en) * 2017-08-29 2017-12-19 海信集团有限公司 The control method and device of intelligent home device
US20180003520A1 (en) * 2014-11-04 2018-01-04 Samsung Electronics Co., Ltd. Method for performing function using sensor data and electronic device for providing same
CN107608225A (en) * 2017-09-29 2018-01-19 深圳市艾特智能科技有限公司 Control method, system, storage medium and the computer equipment of intelligent home device
CN110290061A (en) * 2019-05-31 2019-09-27 北京未来购电子商务有限公司 A kind of Internet of Things communication means and gateway based on gateway
CN111221273A (en) * 2020-01-18 2020-06-02 武汉领普科技有限公司 Control method, system, gateway, wall switch and cloud based on wireless switch
CN112087441A (en) * 2020-09-03 2020-12-15 郑州信大先进技术研究院 Multi-protocol communication method, intelligent home gateway and multi-protocol communication system
CN112104635A (en) * 2020-09-09 2020-12-18 中移(杭州)信息技术有限公司 Communication method, system and network equipment
CN112419693A (en) * 2020-11-03 2021-02-26 深圳Tcl新技术有限公司 Device control method, device, display device and computer readable storage medium
CN112910744A (en) * 2019-12-03 2021-06-04 北京沃东天骏信息技术有限公司 Intelligent device control method and device, storage medium and electronic device
CN113517152A (en) * 2021-05-16 2021-10-19 武汉领普科技有限公司 Switch control method, receiving end control method, self-generating switch and receiving end
CN113517951A (en) * 2021-05-16 2021-10-19 武汉领普科技有限公司 Self-generating switch and processing method thereof, receiver and processing method thereof

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2030123A4 (en) * 2006-05-03 2011-03-02 Cloud Systems Inc System and method for managing, routing, and controlling devices and inter-device connections
US9380354B2 (en) * 2011-05-25 2016-06-28 Lg Electronics Inc. Transmitting/receiving system and method for processing a broadcast signal
CN102314764B (en) * 2011-09-13 2017-11-14 中兴通讯股份有限公司 Remote terminal, method for realizing remote control and system
CN103944679B (en) * 2014-04-21 2017-09-22 华北水利水电大学 Apparatus and method occur for a kind of data frame voice and packet data concurrent service based on VL
US10305959B2 (en) * 2014-12-11 2019-05-28 At&T Intellectual Property I, L.P. Self-organizing network communication
CN104750068B (en) * 2015-02-13 2018-08-21 湖北锐世数字医学影像科技有限公司 A kind of data transmission and control device of multinode sensor network
CN105897309A (en) * 2015-08-17 2016-08-24 乐视致新电子科技(天津)有限公司 Intelligent device matching device and intelligent device
US11277278B2 (en) * 2015-11-24 2022-03-15 Samsung Electronics Co., Ltd. Smart home service server and control method therefor
EP3468258B1 (en) * 2016-06-30 2021-09-22 Huawei Technologies Co., Ltd. Data transmission control method and device
CN106712907B (en) * 2017-02-16 2019-08-20 北京中航通用科技有限公司 Data transmission method and equipment
CN108696926B (en) * 2018-05-09 2021-04-06 河海大学常州校区 Cross-layer reliable data transmission method for underwater wireless sensor network
CN109165116B (en) * 2018-08-15 2021-09-14 西安微电子技术研究所 Application processing interface circuit and method
US10986185B1 (en) * 2018-09-10 2021-04-20 Saltstack, Inc. Managing functionality of multiple devices via a delta proxy
CN112350798A (en) * 2019-08-08 2021-02-09 华为技术有限公司 Packet transmission method and device
CN113038251B (en) * 2019-12-25 2022-10-14 北京奇艺世纪科技有限公司 Control method and control device
CN111273579B (en) * 2020-01-18 2021-03-05 武汉领普科技有限公司 Receiver, processing method and system thereof and control assembly based on self-generating switch
CN112882394A (en) * 2021-01-12 2021-06-01 北京小米松果电子有限公司 Device control method, control apparatus, and readable storage medium
CN113473462A (en) * 2021-06-30 2021-10-01 苏州极目机器人科技有限公司 Matching method between terminal devices
CN113660725B (en) * 2021-10-20 2022-01-04 北京卓建智菡科技有限公司 Positioning anti-cheating method, device and system, computer equipment and storage medium

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852210A (en) * 2006-05-08 2006-10-25 杭州华为三康技术有限公司 Method for transmitting control message and a station apparatus
US20130024859A1 (en) * 2011-07-18 2013-01-24 Hon Hai Precision Industry Co., Ltd. Control computer and data accessing method
CN103064374A (en) * 2012-12-18 2013-04-24 重庆邮电大学 Household energy consumption monitoring system based on internet of things technology
US20180003520A1 (en) * 2014-11-04 2018-01-04 Samsung Electronics Co., Ltd. Method for performing function using sensor data and electronic device for providing same
CN104331053A (en) * 2014-11-10 2015-02-04 重庆邮电大学 6LoWPAN smart home system and method for achieving same
CN104539712A (en) * 2014-12-31 2015-04-22 广东德豪润达电气股份有限公司 Intelligent household appliance data transmission method
US20160344815A1 (en) * 2015-05-22 2016-11-24 Samsung Electronics Co., Ltd. Apparatus and method for controlling external device
CN106487988A (en) * 2015-08-25 2017-03-08 中兴通讯股份有限公司 A kind of method and system realizing terminal control
CN105635950A (en) * 2016-01-07 2016-06-01 烽火通信科技股份有限公司 Smart home gateway control system and method based on Zigbee
CN106131924A (en) * 2016-06-06 2016-11-16 欧普照明股份有限公司 A kind of control equipment, wireless communications method and system
CN106850362A (en) * 2017-01-16 2017-06-13 黄修文 Wireless transmitting system and method based on technology of Internet of things
CN107123253A (en) * 2017-04-28 2017-09-01 环球智达科技(北京)有限公司 Many equipment infrared remote control methods based on user terminal
CN107493211A (en) * 2017-08-29 2017-12-19 海信集团有限公司 The control method and device of intelligent home device
CN107608225A (en) * 2017-09-29 2018-01-19 深圳市艾特智能科技有限公司 Control method, system, storage medium and the computer equipment of intelligent home device
CN110290061A (en) * 2019-05-31 2019-09-27 北京未来购电子商务有限公司 A kind of Internet of Things communication means and gateway based on gateway
CN112910744A (en) * 2019-12-03 2021-06-04 北京沃东天骏信息技术有限公司 Intelligent device control method and device, storage medium and electronic device
CN111221273A (en) * 2020-01-18 2020-06-02 武汉领普科技有限公司 Control method, system, gateway, wall switch and cloud based on wireless switch
CN112087441A (en) * 2020-09-03 2020-12-15 郑州信大先进技术研究院 Multi-protocol communication method, intelligent home gateway and multi-protocol communication system
CN112104635A (en) * 2020-09-09 2020-12-18 中移(杭州)信息技术有限公司 Communication method, system and network equipment
CN112419693A (en) * 2020-11-03 2021-02-26 深圳Tcl新技术有限公司 Device control method, device, display device and computer readable storage medium
CN113517152A (en) * 2021-05-16 2021-10-19 武汉领普科技有限公司 Switch control method, receiving end control method, self-generating switch and receiving end
CN113517951A (en) * 2021-05-16 2021-10-19 武汉领普科技有限公司 Self-generating switch and processing method thereof, receiver and processing method thereof

Also Published As

Publication number Publication date
CN114500620A (en) 2022-05-13
CN114553920B (en) 2024-04-09
CN114553920A (en) 2022-05-27
CN114553919A (en) 2022-05-27
CN114520821A (en) 2022-05-20
CN113794783B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
KR102094505B1 (en) Method and device for broadcasting a ble packet, and method and device for adjusting operation mode of an application processor
RU2662362C2 (en) System, method and apparatus for intelligent device grouping
US10019068B2 (en) Home device control apparatus and control method using wearable device
CN106227055A (en) A kind of control the method for intelligent home device, server and gateway
US11089463B2 (en) Method and device for activating near field communication card
KR20150028008A (en) Method and apparatus for controlling a home device remotely in a home network system
CN105159105A (en) Work method and device of intelligent electric appliance
CN104023434A (en) Intelligent lamp turning-on method, device and system
CN109699065A (en) Power regulating method, device, intelligent switch and storage medium
US20220239718A1 (en) Communication Protocol Switching Method, Apparatus, and System
CN107274660A (en) Long-range control method and system, docking station
CN108234562B (en) Equipment control method, control equipment and controlled equipment
WO2018214744A1 (en) Information processing method and related product
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
KR101499307B1 (en) Wireless personal area network (pan) coordinator implementing power savings by transitioning between active and sleep states
CN113794783B (en) Data processing method, device and storage medium
CN105094966B (en) Control the method and device of PC
CN108282388B (en) Device and method for transmitting data information to household equipment
CN114200848A (en) Remote control method, system and device of household equipment and storage medium
CN107846646B (en) Control method and device of intelligent sound box and readable storage medium
EP3236717B1 (en) Method, device and system for controlling smart light
CN112286122A (en) Intelligent household control method, device, terminal and storage medium
CN114553919B (en) Data processing method, device and storage medium
CN110992544A (en) Infrared induction control method and device for intelligent door lock and storage medium
US10193704B2 (en) Device control method and apparatus in home network system

Legal Events

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