CN114401298A - Data transmission method, equipment and system - Google Patents

Data transmission method, equipment and system Download PDF

Info

Publication number
CN114401298A
CN114401298A CN202111544212.2A CN202111544212A CN114401298A CN 114401298 A CN114401298 A CN 114401298A CN 202111544212 A CN202111544212 A CN 202111544212A CN 114401298 A CN114401298 A CN 114401298A
Authority
CN
China
Prior art keywords
data
instruction
identifier
router
control instruction
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
CN202111544212.2A
Other languages
Chinese (zh)
Other versions
CN114401298B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111544212.2A priority Critical patent/CN114401298B/en
Publication of CN114401298A publication Critical patent/CN114401298A/en
Application granted granted Critical
Publication of CN114401298B publication Critical patent/CN114401298B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/281Exchanging configuration information on appliance services in a home automation network indicating a format for calling an appliance service function in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides a data transmission method, equipment and a system, and relates to the technical field of intelligent control. In the scheme, the terminal device constructs a control instruction according to user operation, blocks the control instruction to obtain a blocking instruction under the condition that the length of the control instruction is long, and adds a device identifier for uniquely identifying the terminal device to each blocking instruction. And after receiving the blocking instruction, the router continuously forwards the blocking instruction with the same identifier to the intelligent equipment. The intelligent equipment receives the blocking instructions block by block, then splices the instructions into a complete control instruction, and then executes the processing action corresponding to the control instruction. According to the scheme, the cooperative processing capacity among the terminal equipment, the router and the intelligent equipment is fully utilized, the control instruction with large data volume is split into the plurality of block instructions and is sent in blocks for multiple times, the problem that the intelligent equipment with limited resources is difficult to receive large data is solved, and the intelligent equipment is controlled.

Description

Data transmission method, equipment and system
Technical Field
The present application relates to the field of intelligent control technologies, and in particular, to a data transmission method, device, and system.
Background
Along with the rapid development of communication technology, the types of intelligent equipment are richer, and the functions are more complex.
Generally, a terminal device such as a mobile phone can be used to control the smart device. Taking the smart home system as an example, a user can operate a mobile phone to trigger and display a control interface of the smart home system, and the control interface provides operation options of smart devices such as an air conditioner, a washing machine, an access control device, a heating device, a lighting device, an audio/video device, a monitoring device and the like, so that the user can trigger the terminal device to send a control instruction to the smart device through the operation of the control interface to remotely control the smart device to execute a corresponding processing action.
However, when the terminal device sends the control instruction to the smart device, if the memory space of the smart device is limited and the data size of the control instruction is large, all or part of the control instruction may be lost, so that the smart device cannot be controlled.
Disclosure of Invention
The application provides a data transmission method, equipment and a system, and solves the problem that a control instruction sent to an intelligent device by a terminal device is large in data volume, so that the control of the intelligent device cannot be realized.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a router, and the method includes:
receiving instruction data sent by terminal equipment;
under the condition that the instruction data is the block data, sequentially sending each block data containing the equipment identifier to the intelligent equipment according to the equipment identifier contained in the block data;
each block data is data obtained by blocking a control instruction by the terminal equipment and adding the equipment identifier respectively, the equipment identifier is used for identifying the terminal equipment, and the control instruction is used for controlling the intelligent equipment to execute corresponding processing actions.
By the scheme, in the case that the data packet received by the router contains the blocking instruction, the router can group the block data according to the device identifier and continuously forward the block data with the same device identifier to the intelligent device, so that the block data with the same device identifier can be uniformly transmitted to the intelligent device.
In some embodiments, the method further comprises:
and in the case that the instruction data contains a control instruction, sending the instruction data to the intelligent device.
In some embodiments, the instruction data further includes a priority identifier; the method further comprises the following steps:
under the condition that instruction data containing different equipment identifiers are received at the same time or in the same time period, sequentially sending each group of instruction data to the intelligent equipment according to the priority identifiers contained in each group of instruction data;
wherein a set of instruction data consists of at least one instruction data comprising the same priority identifier, the same device identifier, the priority identifier being used to indicate the forwarding priority of the instruction data.
In some embodiments, sequentially sending each set of instruction data to the intelligent device according to the priority identifier included in each set of instruction data includes:
determining the forwarding priority of each group of instruction data according to the priority identifier contained in each group of instruction data;
and sequentially sending each group of instruction data to the intelligent equipment according to the sequence of the forwarding priority from high to low.
In some embodiments, sequentially sending each set of instruction data to the smart device includes:
for each group of instruction data, if one group of instruction data is one instruction data, the one instruction data is sent to the intelligent equipment; or if the group of instruction data consists of a plurality of instruction data, sequentially sending each instruction data of the plurality of instruction data to the intelligent device according to the receiving sequence of the plurality of instruction data.
In some embodiments, the type of priority identifier comprises at least one of:
controlling an attribute write type;
controlling an attribute reading type;
an action execution type;
a parameter upgrade type.
In some embodiments, sequentially sending each block data containing the device identifier to the smart device according to the device identifier contained in the block data comprises:
the method comprises the steps that the time when first block data containing equipment identifiers is received is taken as a starting time, and after each block data containing the equipment identifiers is received, each block data containing the equipment identifiers is sent to the intelligent equipment;
alternatively, the first and second electrodes may be,
sequentially sending the block data containing the equipment identifier to the intelligent equipment according to the receiving sequence of the block data containing the equipment identifier by taking the time of receiving the last block data containing the equipment identifier as the starting time;
alternatively, the first and second electrodes may be,
sequentially sending the block data containing the equipment identifier to the intelligent equipment according to the receiving sequence of the block data containing the equipment identifier by taking the forwarding time of other instruction data as the starting time; the data block containing the equipment identifier is data received in the process of sending other instruction data, or data which is received at the same time or the same time period with other instruction data and has lower forwarding priority than other instruction data;
alternatively, the first and second electrodes may be,
if the block data containing the other equipment identifiers is not received within the preset time length after the first block data containing the equipment identifier is received, the block data containing the equipment identifier is sequentially sent to the intelligent equipment according to the receiving sequence of the block data containing the equipment identifier after the preset time length is reached.
In some embodiments, the method further comprises:
receiving a request message sent by the intelligent equipment, wherein the request message is used for requesting to send other instruction data;
responding to the request message, and sending other instruction data to the intelligent equipment; or sending a response message to the intelligent device, wherein the response message is used for indicating that no other instruction data is stored in the router.
In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a terminal device, and the method includes:
responding to user operation, and generating a control instruction;
under the condition that the length of the control instruction is larger than the preset length, splitting the control instruction into a plurality of block instructions, and adding a target identifier in each block instruction to obtain a plurality of block data;
sequentially sending each block data of the plurality of block data to the router;
wherein the target identifier comprises a device identifier, or the target identifier comprises a device identifier and a priority identifier; the device identifier is used for identifying the terminal device; the priority identifier is used for indicating the forwarding priority of the control instruction; the control instruction is used for controlling the intelligent equipment to execute corresponding processing actions through the router.
Through the scheme, the terminal equipment splits the control command into the plurality of block commands and sends the block commands for multiple times under the condition that the length of the control command is larger than the preset length, so that the problem of control command loss caused by overlong length of the control command can be avoided. In addition, by adding the device identifier in the blocking instruction, the router area can conveniently group the control instructions from different terminal devices according to the device identifier, and uniformly send the control instruction of each terminal device.
In some embodiments, the method further comprises:
adding a target identifier in the control instruction under the condition that the length of the control instruction is smaller than or equal to the preset length to obtain instruction data containing the control instruction and the target identifier;
the instruction data is sent to the router.
In some embodiments, the type of priority identifier comprises at least one of:
controlling an attribute write type;
controlling an attribute reading type;
an action execution type;
a parameter upgrade type.
In a third aspect, an embodiment of the present application provides a data transmission method, which is applied to an intelligent device, and the method includes:
receiving instruction data sent by a router;
storing each received block data block by block under the condition that the instruction data is block data;
after the last block data is received, splicing all the block data to obtain a control instruction;
and executing the processing action corresponding to the control command.
According to the scheme, under the condition that the intelligent device receives the block data from the same terminal device, the block data are spliced to obtain a complete control instruction, so that the processing action corresponding to the control instruction is executed, and the control of the terminal device on the intelligent device is further realized.
In some embodiments, the method further comprises:
when the instruction data includes one control instruction, a processing operation corresponding to the control instruction is executed.
In some embodiments, the smart device includes a memory for storing individual tile data;
after executing the processing action corresponding to the control instruction, the method further comprises:
sending a request message to the router, wherein the request message is used for requesting to send other instruction data;
receiving instruction data sent by a router; alternatively, the first and second electrodes may be,
and receiving a response message sent by the router, wherein the response message is used for indicating that no other instruction data is stored in the router, and releasing the occupied resources of the memory.
In a fourth aspect, an embodiment of the present application provides a data transmission system, where the system includes a terminal device, a router, and an intelligent device;
the terminal equipment is used for responding to user operation and generating a control instruction; under the condition that the length of the control instruction is larger than the preset length, splitting the control instruction into a plurality of block instructions, and adding a device identifier in each block instruction to obtain a plurality of block data, wherein the device identifier is used for identifying terminal equipment; and sequentially sending each of the plurality of block data to the router;
the router is used for receiving instruction data sent by the terminal equipment; under the condition that the instruction data is the block data, sequentially sending each block data containing the equipment identifier to the intelligent equipment according to the equipment identifier contained in the block data;
the intelligent equipment is used for receiving the instruction data sent by the router; storing each received block data block by block under the condition that the instruction data is block data; after the last block data is received, all the block data are spliced to obtain the control instruction; and executing the processing action corresponding to the control command.
In some embodiments, the terminal device is further configured to add a target identifier to the control instruction to obtain instruction data including the control instruction and the target identifier, when the length of the control instruction is less than or equal to a preset length; and sends instruction data containing the control instruction and the destination identifier to the router.
The router is also used for sending the instruction data to the intelligent equipment under the condition that the instruction data contains the control instruction;
and the intelligent device is also used for executing the processing action corresponding to the control command when the command data contains the control command.
In some embodiments, the router is further configured to, when instruction data including different device identifiers are received at the same time or in the same time period, determine a forwarding priority of each group of instruction data according to a priority identifier included in each group of instruction data; sequentially sending each group of instruction data to the intelligent equipment according to the sequence of the forwarding priority from high to low;
wherein a group of instruction data is composed of at least one instruction data containing the same priority identifier, the same device identifier, the priority identifier being used to indicate the forwarding priority of the instruction data.
In some embodiments, the smart device includes a memory for storing individual tile data;
the intelligent device is also used for sending a request message to the router after executing the processing action corresponding to the control instruction, wherein the request message is used for requesting to send other instruction data;
the router is also used for responding to the request message and sending other instruction data to the intelligent equipment; or sending a response message to the intelligent device, wherein the response message is used for indicating that no other instruction data is stored in the router.
The intelligent equipment is also used for receiving the other instruction data; or, the occupied resources of the memory are released according to the response message.
In a fifth aspect, an embodiment of the present application provides a router, including a processor, coupled with a memory, and configured to execute a computer program or instructions stored in the memory, so as to enable the router to implement the data transmission method according to any one of the first aspect.
In a sixth aspect, an embodiment of the present application provides a terminal device, which includes a processor, where the processor is coupled with a memory, and the processor is configured to execute a computer program or instructions stored in the memory, so as to enable the terminal device to implement the data transmission method according to any one of the second aspects.
In a seventh aspect, an embodiment of the present application provides an intelligent device, including a processor, coupled with a memory, and configured to execute a computer program or instructions stored in the memory, so as to enable the intelligent device to implement the data transmission method according to any one of the third aspects.
In an eighth aspect, an embodiment of the present application provides a chip system, where the chip system is coupled with a memory, and the chip system is configured to read and execute a computer program stored in the memory, so as to implement the data transmission method according to any one of the first to third aspects.
In a ninth aspect, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and when the computer program runs on an electronic device, causes the electronic device to execute the data transmission method according to any one of the first to third aspects. The electronic equipment is a router, terminal equipment or intelligent equipment.
In a tenth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to execute the data transmission method according to any one of the first to third aspects.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a communication system according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of a communication system according to another embodiment of the present application;
fig. 4 is a schematic architecture diagram of a communication system according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 6 is an operation schematic diagram of an intelligent home management system APP provided in the embodiment of the present application;
FIG. 7 is an interactive schematic diagram of a mobile phone, a router and a washing machine provided in an embodiment of the present application;
fig. 8 is a schematic flowchart of a data transmission method according to another embodiment of the present application;
fig. 9 is a schematic diagram of adding a device identifier and a priority identifier in a protocol header according to an embodiment of the present application;
fig. 10 is a schematic view of a scene in which a mobile phone a and a mobile phone B are used to control an intelligent air conditioner according to an embodiment of the present application;
fig. 11 is a scene schematic diagram of a vehicle-mounted terminal C and a vehicle-mounted terminal D acquiring status information of a traffic light according to an embodiment of the present application;
fig. 12 is a schematic block diagram of a terminal device, a router, and an intelligent device provided in an embodiment of the present application;
fig. 13 is a module interaction timing diagram of a data transmission method according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a router according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In the description of the present application, "/" indicates an OR meaning, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. Also, in the description of the present application, "a plurality" means two or more than two unless otherwise specified. In addition, for convenience of clearly describing the technical solutions of the embodiments of the present application, "first" and "second" in the embodiments of the present application are used to distinguish different objects or to distinguish different processes on the same object, and are not used to describe a specific order of the objects.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Some of the nouns or terms referred to in this application are explained below.
An intelligent home system (smart home system) is a system which is based on the Internet of things and connects various subsystems related to home life, such as a security system, a light control system, a curtain control system, a gas valve control system, a refrigeration system, a heating system, a security system and the like, together in a networking way to realize comprehensive intelligent control and management.
An intelligent device (intelligent device/intelligent equipment) refers to a device, an instrument, a machine, or the like having computing processing capability. Generally, a smart device with complete functions has sensitive and accurate sensing functions, correct thinking and judging functions, and effective execution functions. Under the control of the terminal equipment, the intelligent equipment can complete corresponding functions.
It should be noted that the smart device in this embodiment of the application may refer to a device of a smart home system, for example, the smart air conditioner shown in fig. 1, or a television, an oven, a microwave oven, a refrigerator, a washing machine, an air purifier, an access control device, an intelligent socket, a smart curtain, a heating device, a lighting device, an audio/video device, a smart weight scale, a smoke detector, a smart alarm, and the like. The intelligent device can also be a device of an office system, such as a ventilation device, a lighting device, an attendance machine, a conference device, a projector, a printer, a water dispenser, an entrance guard device and the like. The intelligent device may also be a device disposed on the road side of an intelligent transportation system, such as a sensor for telemetering road conditions, a variable traffic sign (e.g., a traffic light), a wind/wind direction detector, a camera, a lidar, and the like. Of course, the intelligent device may also be a device of any other possible system, and may be determined according to actual use requirements, and the type of the intelligent device is not limited in the embodiment of the present application.
Generally, a touch panel, a physical key and other control devices are arranged on the intelligent device, and a user can control the intelligent device through manual operation of the control devices. For example, an oven temperature, a fire power, a timing period, an operating period, and the like are set by an operation of a touch panel of the oven. However, sometimes it may be inconvenient for the user to walk beside the smart device, or the smart device is installed in a location where the user is inconvenient to manually operate. In this case, the terminal device may be used to remotely control the smart device.
Taking the smart home system as an example, a user can operate a mobile phone to trigger and display a control interface of the smart home system, and the control interface provides operation options of smart devices such as an air conditioner, a television, a washing machine, an access control device, a heating device, a lighting device, an audio/video device, a monitoring device and the like, so that the user can trigger the mobile phone to send a control instruction to the smart devices through the operation of the control interface. The intelligent device is internally provided with a memory chip and a processor. After the intelligent device receives the control instruction, the control instruction is stored in the memory chip, and then the processor executes the processing action corresponding to the control instruction according to the control instruction in the memory chip.
In the control scenario of the smart home system, since the memory chip of the smart device has the capability of storing the control instruction, the processor can smoothly complete the corresponding processing operation according to the control instruction. However, the memory chip of some smart devices is small, which results in limited resources such as memory space and receiving capability, and when receiving the control command sent by the terminal device, the following problems may occur:
problem 1, if the data size of the control instruction sent by the terminal device is large, and the resource of the intelligent device is limited, the control instruction may be lost, and the terminal device may fail to control the intelligent device.
Particularly, when a plurality of terminal devices simultaneously send a control instruction with a large data volume to an intelligent device with limited resources, because the intelligent device may not open up a plurality of memories simultaneously for receiving a plurality of control instructions from the plurality of terminal devices, all or part of the control instructions may be lost, and then at least one of the plurality of terminal devices may fail to control the intelligent device.
Problem 2, suppose that the smart device starts to receive all control instructions from multiple terminal devices at the same time, because the resources of the smart device are limited, the receiving time of each instruction is prolonged, so that the time for the smart device to feed back information to each terminal device is prolonged, the control interface response of each terminal device is slowed, and the operation experience of a user is affected. The feedback information may be used to indicate the execution result of the control command, such as whether the air conditioner completes temperature adjustment.
Problem 3, as an optional control strategy, after the terminal device sends the control instruction to the smart device, and before the terminal device receives the feedback information of the smart device, in order to ensure that the smart device can successfully receive the control instruction, the terminal device may repeatedly send the control instruction many times, which increases the processing load of the smart device. Particularly, when none of the plurality of terminal devices receives the feedback information of the smart device, if the plurality of terminal devices repeatedly send the control command, the processing load of the smart device is further increased.
Due to the limitations of the geographical locations of the terminal device and the intelligent device, the device protocol, and other reasons, in most cases, the terminal device will transmit the control instruction to the router, and then the router forwards the control instruction to the intelligent device. In view of the above problems in the process of controlling the intelligent device by the terminal device, the embodiments of the present application improve the terminal device, the router and the intelligent device in software, and provide a data transmission scheme:
after the terminal device receives the user operation, the terminal device constructs a control instruction according to the user operation, blocks the control instruction to obtain a blocking instruction under the condition that the length of the control instruction is long, and adds a device identifier for uniquely identifying the terminal device to each blocking instruction. And after receiving the blocking instruction, the router continuously forwards the blocking instruction with the same identifier to the intelligent equipment. And the intelligent equipment receives and stores the block commands block by block, splices the block commands into a complete control command and executes a processing action corresponding to the control command. Therefore, when the terminal equipment sends the control instruction with large data volume, the cooperative processing capacity among the terminal equipment, the router and the intelligent equipment is fully utilized, the control instruction is split into a plurality of block instructions and is sent in blocks for multiple times, the problem that the intelligent equipment with limited resources is difficult to receive large data is solved, and the control on the intelligent equipment is successfully realized.
Fig. 1 shows a schematic diagram of a communication system to which various exemplary embodiments of the present application relate. As shown in fig. 1, the communication system 10 may include a terminal device 11, a router 12, and a smart device 13. The terminal device 11 may maintain a connection with the router 12 through a wireless communication technology or a wired communication technology. The router 12 may maintain a connection with the smart device 13 through wireless communication technology or wired communication technology.
The terminal device 11 is a device that remotely controls the smart device 13 to perform some processing action through the router 12, and therefore, the terminal device 11 may also be referred to as a control device. Specifically, after receiving the user operation, the terminal device 11 may construct a control instruction according to the user operation, and forward the control instruction to the smart device 13 through the router 12, so as to control the smart device 13 to execute a processing action corresponding to the control instruction. In some scenarios, if the length of the constructed control instruction is short, the terminal device 11 may directly add a device identifier for uniquely identifying the terminal device 11 to the control instruction, and send the control instruction after adding the device identifier to the router 12. In other scenarios, if the length of the constructed control instruction is long, the terminal device 11 may obtain a blocking instruction for blocking the control instruction, add a device identifier for uniquely identifying the terminal device 11 to each blocking instruction, and send the blocking instruction after adding the device identifier to the router 12.
In this embodiment, the terminal device may be a mobile terminal or a non-mobile terminal. Illustratively, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC) teller machine or a kiosk, and the like, and the embodiment of the present application is not particularly limited.
The router 12 acts as a gateway between the terminal device 11 and the smart device 13 and is therefore also referred to as a gateway device. The router 12 may be configured to forward the control instructions received from the terminal device 11 to the intelligent device 13. Specifically, if the router 12 receives a complete control instruction, the router 12 will directly forward the control instruction to the smart device 13; if the router 12 receives the blocking command after adding the device identifier, the router 12 classifies the control command according to the identifier and continuously forwards the blocking command with the same identifier to the intelligent device 13.
Furthermore, the router 12 may also be used to forward corresponding information received from the smart device 13 to the terminal device 11. For example, when the intelligent device is an intelligent alarm, if the intelligent alarm collects alarm information, the intelligent alarm sends the alarm information to the router 12, and then the router 12 sends the alarm information to the terminal device 11, so that the terminal device 11 can timely remind the user of some dangers.
The smart device 13 may be configured to receive a control instruction of the terminal device 11 and perform a corresponding processing action in response to the control instruction. Specifically, if the smart device 13 receives a complete control instruction, the processing action corresponding to the control instruction may be directly executed; if the intelligent device 13 receives the blocking instruction, the blocking instruction is stored block by block, and after the last blocking instruction is received, all the blocking instructions are spliced into a complete control instruction, and then a processing action corresponding to the control instruction is executed.
It should be noted that fig. 1 illustrates an example of a terminal device, a router, and an intelligent device, and does not limit the embodiments of the present application. The number of the terminal devices, the routers and the intelligent devices can be multiple. In addition, besides the router, other devices, such as a server, a base station, a gateway, and the like, may be arranged between the terminal device and the intelligent device, and may be determined according to actual usage requirements.
In other embodiments, the communication system may include a plurality of terminal devices.
Illustratively, as shown in FIG. 2, communication system 10 may include a terminal device 11-a, a terminal device 11-b, a router 12, and a smart device 13. Terminal device 11-a and terminal device 11-b may simultaneously maintain a connection with router 12 via wireless communication techniques and/or wired communication techniques. The router 12 may maintain a connection with the smart device 13 through wireless communication technology or wired communication technology. In this communication system, the terminal device 11-a and the terminal device 11-b may send the same or different control commands to the smart device 13 through the router 12 at the same time or at different times.
For example, the intelligent device 13 is an intelligent air conditioner as shown in fig. 2, and the terminal device 11-a and the terminal device 11-b simultaneously send control commands to the intelligent device 13 through the router 12. At time 12:00, terminal device 11-a sends control instruction 1 for adjusting the temperature to 24 ° to smart air conditioner 13 via router 12, where control instruction 1 includes priority identification 1. At time 12:00, the terminal device 11-b sends a control instruction for acquiring the indoor temperature to the smart air conditioner 13 through the router 12, where the control instruction 2 includes the priority identification 2. The priority identifier 1 and the priority identifier 2 may be determined according to the type of the request transaction of the control instruction. After receiving the control instruction 1 and the control instruction 2 at the same time or the same time period, the router 12 may read the priority identifier 1 from the control instruction 1 and read the priority identifier 2 from the control instruction 2. Assuming that the priority indicated by the priority label 1 is higher than the priority indicated by the priority label 2, the router may preferentially transmit the control instruction 1 to the smart air conditioner 13. In this way, the intelligent air conditioner 13 receives the control instruction 1, adjusts the temperature to 24 ° according to the control instruction 1, and feeds back information of successful temperature adjustment to the terminal device 11-a through the router 12. Then, the smart air conditioner 13 receives the control instruction 2 forwarded by the router 12, obtains an indoor temperature of 24 ° according to the control instruction 2, and feeds back the indoor temperature of 24 ° to the terminal device 11-b through the router 12.
It is understood that the above fig. 2 is illustrated by taking two terminal devices as an example. In practical implementation, the communication system may further include more than two terminal devices, and the operation principle of each device of the communication system is similar to that of each device described in the above embodiments, and is not described herein again. The types of the plurality of terminal apparatuses may be the same or different, and the types of the request items included in the control command transmitted by the plurality of terminal apparatuses may be the same or different.
In other embodiments, the communication system may include a plurality of routers.
Illustratively, as shown in FIG. 3, communication system 10 may include a terminal device 11, a router 12-a, a router 12-b, and a smart device 13. Terminal device 11 may remain connected to router 12-a through wireless communication techniques or wired communication techniques. The router 12-a may remain connected to the router 12-b via wireless communication techniques or wired communication techniques. The router 12-b may maintain a connection with the smart device 13 through wireless communication technology or wired communication technology.
In this communication system, after the terminal device 11 receives the user operation, the terminal device 11 may construct a control instruction according to the user operation and then transmit the control instruction to the router 12-a.
Router 12-a may be configured to forward control instructions received from end device 11 to router 12-b. Specifically, if router 12-a receives a complete control instruction, router 12-a forwards the control instruction directly to router 12-b; if router 12-a receives the blocking command after adding the device identifier, router 12-a classifies the control command according to the device identifier and then forwards the blocking command with the same device identifier to router 12-b.
The router 12-b may be configured to forward control instructions received from the router 12-a to the smart device 13. Specifically, if the router 12-b receives the complete control instruction, the router 12-b directly forwards the control instruction to the intelligent device 13; if the router 12-b receives the blocking command after adding the device identifier, the router 12-b classifies the control command according to the device identifier and continuously forwards the blocking command with the same device identifier to the intelligent device 13. In this way, the smart device 13 may be configured to perform a processing action corresponding thereto in response to the received control instruction.
It can be understood that fig. 3 illustrates two routers as an example, and in practical implementation, the communication system may further include more than two routers, and an operation principle of each device in the communication system is similar to that of each device described in the foregoing embodiments, and is not described herein again. In addition, a server, a gateway, a relay, or other devices may be connected to the communication system, and the embodiments of the present application are not limited thereto.
It should be noted that, for a scenario in which a plurality of intelligent devices are controlled by at least one terminal device, the scenario is similar to a scenario in which one intelligent device is controlled by at least one terminal device, so the following embodiments are all exemplified by a scenario in which one intelligent device is controlled by at least one terminal device, and the scenario in which a plurality of intelligent devices are controlled by at least one terminal device is not described in detail.
In the communication systems provided in fig. 1 to fig. 3, the communication network of the terminal device, the router and the intelligent device may be a Local Area Network (LAN) or a Wide Area Network (WAN). The communication network may be implemented using any known network communication protocol or communication technology, such as ethernet, Universal Serial Bus (USB), firewire (fire wire), global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), WCDMA, TD-SCDMA, long term evolution (long term evolution, Internet), bluetooth (bluetooth, BT), wireless fidelity (WiFi), near field communication (near field communication), Internet protocol (NFC), voice over Internet protocol (VoIP), TCP), Internet Protocol (IP), User Datagram Protocol (UDP), hypertext transfer protocol (HTTP), restricted application protocol (CoAP), message queue telemetry transport protocol (MQTT), Radio Frequency Identification (RFID), zigbee long range (long range), narrow Internet of Things (narrow Internet of Things, NB-IoT), a communication protocol supporting a network slice architecture, any other suitable communication protocol or technology.
In addition, the communication network between the terminal device and the router, and the communication network between the router and the smart device may be the same, for example, both networks are WiFi networks; the communication network between the terminal device and the router, and the communication network between the router and the smart device may also be different, for example, the former is a TCP/IP network, and the latter is a WiFi network.
Fig. 4 shows an architectural diagram of a communication system to which various exemplary embodiments of the present application relate.
The application layer of the terminal equipment comprises a control module and a transmission module. Wherein the control module may be to: responding to the operation of a user on the control interface, and generating a control instruction; judging whether the length of the control instruction is greater than a preset length or not; adding a device identifier for uniquely identifying the terminal device and a priority identifier for identifying the forwarding priority of the control instruction for the control instruction under the condition that the length of the control instruction is less than or equal to the preset length; under the condition that the length of the control instruction is larger than the preset length, the control instruction is firstly blocked, and an equipment identifier and a priority identifier are added to each blocking instruction. The transmission module may be configured to: and sending the control instruction or the block instruction added with the equipment identifier and the priority identifier to the router.
The router includes a routing processor on a control plane and at least one input port, at least one output port, and a switch fabric on a data plane. The routing processor includes a routing protocol (routing protocol) and a routing table (forwarding table), and the packet processing module of the switch fabric includes a forwarding information base. The task of the routing protocol is to provide the routers with mutually shared routing information needed to establish the best path through the mesh network. The routing table is a spreadsheet or class database of paths storing topology information of the network periphery, which contains information of destination addresses, subnet masks, protocols, protocol priorities, protocol overhead, next hops, etc. for deciding routing. The forwarding table is a table generated from the routing table and used to forward the packet. The difference between the routing table and the forwarding table is that the routing table may have a condition that a next hop is not directly connected, and the forwarding table iterates through the next hop, so that the condition that the next hop is not directly connected can be avoided.
In the embodiment of the application, after receiving the instruction data through the input port of the router, the forwarding table may determine whether the instruction data is blocked data. If the command data contains a complete control command, the forwarding table may forward the command data directly to the intelligent device via the output port. If the instruction data is block data, the forwarding table may forward the block data having the same device identifier to the smart device successively through the output port.
The application layer of the intelligent device comprises a processing module and a receiving module. Wherein, the receiving module is used for: and receiving the data forwarded by the router. The processing module is used for: and judging whether the data is the block data. In the case where the data contains a complete control instruction, the processing action corresponding to the control instruction may be directly performed. And under the condition that the data is the block data, the block data is received by the developed memory block by block, after the last block data is received, the block data is spliced to obtain a complete control instruction, and the processing action corresponding to the control instruction is executed.
In addition, the underlying transmission protocols of the terminal device and the intelligent device include an IEEE 802.11 protocol and a Bluetooth Low Energy (BLE) protocol. Among them, the IEEE 802.11 protocol is a wireless communication protocol, such as a WiFi protocol. In some cases, the end device and the smart device may transmit data using a BLE protocol. In other cases, the end devices and the smart devices may transmit data using the IEEE 802.11 protocol. It should be noted that, in the embodiment of the present application, an architecture based on a terminal device, a router, and an intelligent device is improved in software, and a data transmission scheme is provided, so that the embodiment mainly relates to an IEEE 802.11 protocol.
It should be noted that fig. 4 only shows the contents related to the embodiment of the present application. In practical applications, the terminal device, the router and the smart device may also include other structures. In addition, for convenience of logic description, fig. 4 only illustrates the business logic relationship in a schematic block diagram, and does not strictly express the specific location of the technical architecture where each structure is located.
The data transmission scheme provided by the embodiment of the application can be applied to a local control scene, for example, a terminal device, a router and an intelligent device are devices in the same local area network; the method can also be applied to a remote control scene, for example, the router and the intelligent device are devices in the same local area network, and the terminal device accesses the router of the local area network through a TCP/IP network, so as to realize the control of the intelligent device.
Fig. 5 is a schematic flowchart of a data transmission method according to an embodiment of the present application. Referring to fig. 5, the method may include: S501-S506 are processes of constructing and sending instructions by the terminal equipment, S507-S510 are processes of receiving and forwarding the instructions by the router, and S511-S516 are processes of receiving and executing the instructions by the intelligent equipment.
The method comprises the following steps of firstly, constructing and sending instructions by the terminal equipment:
s501, the terminal equipment responds to the operation of the user on the control interface and generates a control instruction.
The terminal equipment can be provided with an APP for controlling the intelligent equipment. The user can trigger the terminal equipment to generate a control instruction through the operation of the APP, and the control instruction is sent to the intelligent equipment, so that the intelligent equipment is controlled.
The control instructions may include both protocol headers and protocol data portions. The protocol header may include a protocol type, an IP address (destination address) of the smart device, an IP address (source address) of the terminal device, etc.; the protocol data may include a protocol version number, a request method, a list of control instruction attributes, and the like.
The protocol type may be used to indicate the type of communication protocol used between the terminal device, the router, and the smart device. Accordingly, the protocol version number may be used to indicate the version number of the communication protocol employed between the terminal device, the router and the smart device.
The request method may be used to indicate the type of request transaction for the control instruction. The request items of the generated control instruction are different according to different operations of the user on the control interface. For example, the request method may include, but is not limited to: a write request transaction type, a read request transaction type, an execute request transaction type, a parameter upgrade transaction type, and the like. When the request method is used for indicating the type of the requested writing item, the intelligent device executes a writing action, such as controlling a bulb to be turned on or off, controlling an air conditioner to be turned on, adjusting the working mode of the refrigerator and the like. When the request method is used for indicating the type of the request reading item, the intelligent device executes the reading action and immediately returns the reading result to the terminal device, for example, controls an air conditioner to obtain the indoor temperature and immediately returns the indoor temperature to the terminal device, and for example, controls an air purifier to detect the air quality and immediately returns the air quality detection result to the terminal device. Unlike the request for writing the item type and the request for reading the item type, when the request method is used to indicate the request for executing the item type, it is more focused on controlling the smart device to execute a certain task at regular time, for example, controlling the washing machine to start washing clothes at regular time and returning the execution result after completing the washing task. When the request method is used for indicating the type of the request parameter upgrading item, the intelligent equipment is controlled to upgrade the embedded firmware so as to repair the loophole of the intelligent equipment, perfect the function of the intelligent equipment and increase the stability of the intelligent equipment.
The control instruction attribute list may be used to indicate a specific request transaction for the control instruction. The control instruction attribute list may only include a control attribute, for example, the control attribute is to turn on or turn off a function; alternatively, the control instruction attribute list may include a control attribute and a numerical value corresponding to the control attribute, for example, the control attribute is volume, and the corresponding numerical value is 20.
Exemplarily, it is assumed that a smart home management system APP is installed in a mobile phone. The user can realize the intelligent control of each intelligent device in the intelligent home management system through the operation of the APP. As shown in fig. 6 (a), the control interface of the smart home management system includes icons of smart devices such as an air conditioner, a purifier, a washing machine, a light bulb, a smart curtain, a fan, a bread maker, a smart socket, an electric cooker, a refrigerator, a toilet, and a bathtub. If the user wants to adjust the temperature of the air conditioner, the user can click on the icon 61 of the air conditioner, so that the mobile phone is switched from the control interface of the smart home management system to the control interface of the air conditioner as shown in (b) of fig. 6. The control interface of the air conditioner includes a display area 62 for indicating the current state of the air conditioner, and controls for mode, on/off, 24 °, wind speed, adjustment, timing, sleep, power, setting, swing, cancel, etc. Assuming that the user clicks the hibernation control 63, the cellular phone may generate a control instruction for adjusting the air conditioner to the hibernation mode in response to the clicking operation. Wherein, the protocol head of the control command comprises protocol type WiFi and address 127.0.0.1 of the air conditioner; the protocol data of the control instruction comprises a protocol version number of 1.0.0.0, the request method is to request the writing of an item type, and the attribute list of the control instruction is to start a hibernation mode.
S502, the terminal equipment judges whether the length of the control instruction is larger than a preset length.
Because the resources of the intelligent device are limited, in order to avoid that the terminal device directly sends a control instruction to the intelligent device through the router to cause the loss of the control instruction, the terminal device can firstly judge whether the length of the control instruction is greater than the preset length, and then adopts different strategies to send the control instruction to the intelligent device through the router. Specifically, in the case where the length of the control instruction is less than or equal to the preset length, although the resources of the smart device are limited, the control instruction is not lost by directly sending the control instruction to the smart device through the router, and therefore the terminal device may add a device identifier for uniquely identifying the terminal device to the control instruction and send instruction data to the router, that is, perform S503 and S504 described below. Under the condition that the length of the control instruction is greater than the preset length, because the resource of the intelligent device is limited, the terminal device directly sends the control instruction to the intelligent device through the router, and the control instruction may be lost, so the terminal device may firstly block the control instruction, add a device identifier for uniquely identifying the terminal device to each block instruction, and then send the block data to the router in sequence, that is, execute the following steps S505 and S506.
One preset length is an instruction length corresponding to one smart device. The preset length may be equal to or less than the maximum length of the data allowed to be received by the smart device.
Optionally, the preset length may be determined according to a chip memory size of the smart device, a communication protocol used between the smart device and the router, and the like. It can be understood that chip memories of different intelligent devices may have differences, and thus the preset lengths corresponding to different intelligent devices may be different; the communication protocols used between different intelligent devices and the router may also differ, and thus the preset lengths corresponding to the intelligent devices may also differ.
Alternatively, the terminal device may acquire and store a preset length corresponding to the smart device in advance.
For example, the preset length is determined according to the chip memory size of the smart device. It is assumed that the maximum length of data allowed to be received is stored in advance in a pre-set manner in the smart device before shipment. When the intelligent equipment is added to the intelligent home system for the first time, after the intelligent equipment establishes communication connection with the mobile phone through the router, the intelligent equipment can send the maximum length to the mobile phone. Therefore, the mobile phone can store the maximum length and take the maximum length as a preset length. In this way, when the control instruction is constructed according to the user operation, whether the length of the control instruction is greater than the preset length is judged.
For another example, the preset length is determined according to a communication protocol and the like adopted between the intelligent device and the router. The mobile phone, the router and the intelligent device are assumed to be devices in the same local area network. When the intelligent device and the router are initially established with communication connection, a communication protocol between the intelligent device and the router is agreed. The communication protocol defines the maximum allowed length of data to be transmitted. When the mobile phone is connected with the router, the length can be obtained, the length is determined as the preset length, and the preset length is stored.
S503, the terminal device adds the device identifier to the control command. The device identifier is used to identify the terminal device.
S504, the terminal device sends the data packet to the router. The data packet contains the control instruction after the device identifier is added.
In the embodiment of the application, after the device identifier is added to a complete control instruction, the terminal device may perform packet processing and the like on the control instruction to obtain a data packet, and then send the data packet to the router.
One device identifier is used to uniquely identify one terminal device, i.e. the device identifiers of different terminal devices are different. For example, the device identifier may be a product Serial Number (SN), a Unique Device Identifier (UDID), a Universal Unique Identifier (UUID), an international mobile equipment identifier (international mobile equipment identifier, IMEI), an advertisement Identifier (IDFA), an open anonymous device identifier (OAID), a developer anonymous device identifier (VAID), an application anonymous device identifier (AAID), or other identifiers.
For example, in the case where the length of the control instruction is less than or equal to the preset length, the terminal device may add the device identifier of the terminal device in the protocol header of the control instruction. Illustratively, one way is that the protocol header of the control instruction has free bits or fields into which the device identifier may be written. In another mode, no free bit or free field exists in the protocol header of the control instruction, a new bit or a new field may be added to the protocol header, and the device identifier may be written into the new bit or the new field, where the position of the new bit or the new field in the protocol header may be preset, specified by the protocol, or configured by the terminal device.
And S505, the terminal equipment splits the control instruction into a plurality of block instructions, and adds an equipment identifier in each block instruction to obtain a plurality of block data packets. A block packet contains a block instruction after adding the device identifier. The length of each block data packet is less than or equal to a preset length.
S506, the terminal equipment sequentially sends the block data packets to the router.
The protocol header of each block command not only includes the contents of the protocol header of the original control command, such as the protocol type, the IP address of the intelligent device, the IP address of the terminal device, and the like, but also can add the device identifier of the terminal device in each block command. It is understood that by adding the device identifier of the terminal device to each blocking instruction, the router can be made to distinguish control instructions from different terminal devices according to the device identifier.
The protocol data of each block instruction comprises partial protocol data of the original control instruction. It is understood that the protocol data of all the block instructions are combined to obtain the whole protocol data of the original control instruction.
Optionally, when the original control instruction is split into a plurality of blocking instructions, the terminal device may further add an identifier for indicating the splitting order and the rule to each blocking instruction according to the splitting order and the rule of the blocking instruction. For example, a complete control instruction is sequentially split into a blocking instruction 1, a blocking instruction 2, and a blocking instruction 3, so that after receiving all block data packets, the intelligent device can recombine the blocking instructions into a complete control instruction according to the splitting order and the rule identifier carried by each block data packet by adding a splitting order and a rule identifier to each blocking instruction.
Optionally, in order to facilitate the router to distinguish whether the received data packet contains a complete control command or a block command, the terminal device may add an identifier for distinguishing the command data type to the command. For example, if the control command is a complete control command, the terminal device may add the identifier a to the control command; if the instruction is a blocking instruction, the terminal device may add the identifier b to the blocking instruction.
It should be understood that, when the length of the control instruction is greater than the preset length, the control instruction is split into a plurality of block instructions and sent for multiple times, so that the problem of control instruction loss caused by the overlong length of the control instruction can be avoided. In addition, by adding a device identifier to the instruction, the router can be facilitated to distinguish control instructions from different terminal devices. In addition, the identifier for distinguishing the type of the instruction data is added in the instruction, so that the router can distinguish whether the received data contains a complete control instruction or a block instruction.
Secondly, the flow of receiving and forwarding the instruction by the router is as follows:
the router is used as a bridge for transmitting data between the terminal equipment and the intelligent equipment, and can receive the instruction data from the terminal equipment and forward the instruction data to the intelligent equipment; or receiving feedback data from the intelligent device and forwarding the feedback data to the terminal device. How the router forwards the instruction data from the terminal device to the intelligent device will be described below.
And S507, the router receives the data packet.
S508, the router judges whether the data packet contains a blocking instruction.
After a router receives a packet from a terminal device, the packet may be parsed. Then, the router determines which terminal device the instruction data comes from according to the device identifier obtained by analysis; determining whether the command is a blocking command or not according to the mark for distinguishing the command data type obtained by analysis; and determining the intelligent equipment to which the intelligent equipment is forwarded according to the IP address of the intelligent equipment obtained by analysis.
After the router parses the packet, if the packet contains a complete control command, the router may directly forward the packet to the smart device, i.e., execute the following S509. If the data packet contains a blocking instruction, the router will continuously forward the blocking data packets with the same device identifier to the smart device, i.e. the following S510 is performed.
And S509, the router forwards the data packet to the intelligent device.
Specifically, in the case that the data packet received by the router contains a complete control instruction, the router may forward the instruction data to the intelligent device according to the IP address of the intelligent device in the control instruction.
And S510, sequentially and continuously forwarding the block data packets with the same equipment identifier to the intelligent equipment by the router.
It should be noted that "sequentially and continuously forwarding" in this embodiment of the present application means that, according to the receiving order of the block data packets, after a block data packet is successfully received by the intelligent device, the router sends a next block data packet with the same device identifier to the intelligent device. During the transmission of the two block data packets, the router does not transmit the block data packets with the other device identifiers to the smart device, i.e., the router does not transmit the control instructions generated by the other terminal devices to the smart device.
The "one block data packet is successfully received by the intelligent device" may include the following two ways: in the mode 1, within a preset time length after the router sends one block data packet to the intelligent device, if the router does not receive the block data packet reception failure message fed back by the intelligent device, the router determines that the block data packet reception is successful, the router continues to send the next block data packet to the intelligent device. In the mode 2, after the intelligent device successfully receives the block data packet, the intelligent device returns a response message of successfully receiving the block data packet to the router. For example, assume that a complete control instruction is split into a block instruction 1 and a block instruction 2. The router sends a blocking instruction 1 to the intelligent equipment, and after the intelligent equipment successfully receives the blocking instruction 1, the intelligent equipment returns a response message of successfully receiving the blocking instruction 1 to the router; and then, the router sends the blocking instruction 2 to the intelligent device, and after the intelligent device successfully receives the blocking instruction 2, the intelligent device returns a response message that the blocking instruction 2 is successfully received to the router.
A router may receive data packets from different end devices, and in particular, packet data packets from different end devices. For example, some of the packets carry the device identifier 1 of the terminal device 1 and some of the packets carry the device identifier 2 of the terminal device 2. Since the block data packets with the same device identifier are obtained by splitting a complete control command, after the router receives the block data packets from different terminal devices, the data packets can be grouped according to the device identifiers, and the data packets with the same device identifier are divided into a group. The router may then forward the packet data packets having the same device identifier to the intelligent device based on the IP address of the intelligent device in several ways, as described below.
The first mode is that the time of receiving the first block data packet containing the target device identifier is taken as the starting time, and after each block data packet containing the target device identifier is received, each block data packet containing the device identifier is immediately sent to the intelligent device.
And secondly, continuously forwarding each block data packet to the intelligent equipment in sequence according to the receiving sequence of the block data packets containing the target equipment identifier by taking the time of receiving the last block data packet containing the target equipment identifier as the starting time.
And thirdly, continuously forwarding each block data packet to the intelligent equipment in sequence according to the receiving sequence of the block data packets containing the target equipment identifier by taking the forwarding time of the router to other data packets as the starting time. The block data packet is a data packet received in the process of sending other data packets; or, the block data packet and other data packets are received at the same time or in the same time period, but the forwarding priority of the other data packets is higher than that of the block data packet.
And if the data packets containing the identifiers of other devices are not received within the preset time length after the first block data packet containing the identifier of the target device is received, sequentially and continuously forwarding the block data packets to the intelligent device according to the receiving sequence of the block data packets after the preset time length is reached.
It should be understood that, in the case where the data packet received by the router contains a blocking instruction, the router may group the block data packets according to the device identifier and continuously forward the block data packets having the same device identifier to the smart device, so that the block data packets having the same device identifier are uniformly transmitted to the smart device.
Thirdly, the intelligent device receives and executes the instruction flow:
and S511, the intelligent equipment receives the data packet.
S512, the intelligent device judges whether the data packet contains a blocking instruction.
According to the description in the above embodiment, when the terminal device generates a packet, an identifier for distinguishing the type of instruction data is added to the instruction data. Therefore, after the intelligent device receives the data packet, the data packet can be analyzed, and whether the data packet contains the blocking instruction or not can be determined according to the identification.
In the case where the data packet received by the smart device contains a complete control command, the smart device may directly process the data packet, i.e., perform S513 described below. Under the condition that the data packet received by the intelligent device contains a blocking instruction, the intelligent device opens up a memory to receive the blocking data packets block by block, and after the last blocking data packet containing the same device identifier is received, all the blocking instructions are spliced, namely the following S514-S516 are executed.
S513, the smart device directly executes the processing action corresponding to the control command.
The intelligent device can also obtain a request method and a control instruction attribute list by analyzing the protocol data of the control instruction. According to the request method and the control instruction attribute list, the intelligent device can determine the processing action indicated by the control instruction, such as controlling the anti-locking of the access control device, controlling the lighting device to be turned off, adjusting the temperature of the air conditioner and the like.
And S514, the intelligent equipment stores the received block data packets block by block. For example, memory is opened up in the memory of the smart device and received packet data packets are stored block by block.
And S515, after receiving the last block data packet containing the same device identifier, splicing all the block instructions by the intelligent device to obtain a control instruction.
And S516, the intelligent equipment executes the processing action corresponding to the control command.
The smart device may determine whether it is the last packet of data in the following manner:
one way is that according to the description in the above embodiment, the terminal device adds an identifier for indicating the splitting order and rule in the control instruction, so that the intelligent device can determine whether the packet is the last packet according to the identifier. If the last block data packet is received, the intelligent device can splice the block commands of all the block data packets containing the same device identifier to obtain a complete control command. And then, the intelligent equipment executes the processing action corresponding to the control command.
Alternatively, when generating the last packet, the terminal device may specifically add an identifier indicating that the packet is the last packet to the packet. Therefore, the intelligent device can determine the last block data packet according to the identifier, and splice the block commands of all the block data packets containing the same device identifier to obtain a complete control command. And then, the intelligent device executes the processing action corresponding to the complete control instruction.
Optionally, the intelligent device may further obtain the device identifier and the source address by parsing the data packet to determine from which terminal device the instruction data comes. In this way, the smart device can send feedback information or the like to the terminal device through the router according to the device identifier and the source address.
Illustratively, as shown in fig. 7 (a), when a 9:00 user operates a mobile phone 71, in a region 70 of a washing machine control interface of the smart home management system, a timing task is set: washing, timing: 11: 00. thereafter, the mobile phone 71 sends a control command of 11:00 to the washing machine 73 through the router 72 to start the washing process. Upon receiving the control command, the washing machine 73 analyzes and stores the control command. The washing machine 73 starts the washing process at 11:00 and completes the washing task at 11: 50. Thereafter, the washing machine 73 may send feedback information of the completed washing task to the mobile phone 71 through the router 72 according to the source address of the mobile phone 71, for example, display "reminder: laundry task "74 has been completed.
In the embodiment of the application, after the terminal device receives the user operation, the terminal device constructs a control instruction according to the user operation, and under the condition that the length of the control instruction is long, blocks the control instruction to obtain a blocking instruction, and adds a device identifier for uniquely identifying the terminal device to each blocking instruction. And after receiving the blocking instruction, the router continuously forwards the blocking instruction with the same identifier to the intelligent equipment. The intelligent device develops a memory to receive the block commands block by block, splices the received block commands into complete control commands, and executes processing actions corresponding to the control commands. Therefore, when the terminal equipment sends the control instruction with large data volume, the cooperative processing capacity among the terminal equipment, the router and the intelligent equipment is fully utilized, the control instruction is split into a plurality of block instructions and is sent in blocks for multiple times, the problem that the intelligent equipment with limited resources is difficult to receive large data is solved, and the control on the intelligent equipment is successfully realized.
In other embodiments, the router may receive instruction data from different terminal devices at the same time or within the same time period, and the instruction data is used for controlling the intelligent device. If the intelligent device starts to receive all the control instructions from the plurality of terminal devices at the same time, the receiving time of each instruction is prolonged due to limited memory space of the intelligent device, so that the time for the intelligent device to feed back information to each terminal device is prolonged, and the response of the control interface of each terminal device is slowed. In order to solve the technical problem, the terminal device may add a priority to the control instruction, so that the router may preferentially forward the control instruction with a higher priority according to the priority of the control instruction after receiving the control instruction from different terminal devices at the same time or within the same time period.
Exemplarily, fig. 8 is a schematic flowchart of a data transmission method according to another embodiment of the present application. Referring to fig. 8, the method may include: the method comprises the steps of S801-S806 terminal equipment a constructing and sending instructions, S807-S811 router receiving and forwarding instructions, and S812-S817 intelligent equipment receiving and executing instructions.
S801, the terminal device a responds to the operation of the user on the control interface and generates a control instruction.
S802, the terminal device a judges whether the length of the control instruction is larger than a preset length.
In the case where the length of the control instruction is less than or equal to the preset length, the terminal device a may perform S803 and S804 described below. In the case where the length of the control instruction is greater than the preset length, the terminal device a may perform S805 and S806 described below.
S803, the terminal device a adds the device identifier and the priority identifier to the control command. The device identifier may be used to identify the terminal device, and the priority identifier may be used to indicate a forwarding priority of the control instruction.
S804, the terminal device a sends a data packet to the router. The data packet contains the control command added with the device identifier and the priority identifier.
S805, the terminal device a splits the control command into a plurality of block commands, and adds a device identifier and a priority identifier to each block command to obtain a plurality of block data packets. A block packet contains a block instruction with the addition of a device identifier and a priority identifier. The length of each block data packet is less than or equal to a preset length.
S806, the terminal device a sends the block data packets to the router in sequence.
According to the description in the above embodiments, the request method in the protocol data may be used for the type of the request transaction. Theoretically, the forwarding priority can be determined according to the request method, but since the request method is generally complicated, the router does not determine the forwarding priority according to the request method. The embodiment of the application provides a scheme for adding a priority identifier in a protocol header.
Alternatively, in the case where the length of the control instruction is less than or equal to the preset length, the terminal device a may add the priority identifier directly in the protocol header of the control instruction. In the case where the length of the control instruction is greater than the preset length, the terminal device a may add a priority identifier in the protocol header of each blocking instruction. For example, as shown in fig. 9, an add device identifier and a priority identifier may be added to the header of the control instruction.
In particular, if there are free bits or fields in the protocol header of the control instruction, the priority identifier may be written to the free bits or fields. If there are no free bits or fields in the protocol header of the control instruction, new bits or fields may be added to the protocol header and the priority identifier may be written to the new bits or fields, where the position of the new bits or fields in the protocol header may be predetermined, protocol specified, or terminal device configured.
TABLE 1
Figure BDA0003415365030000161
Table 1 is a correspondence table between priority identifiers and examples provided in the embodiment of the present application. Wherein, the priority identifier 00 may be used to indicate that the control instruction is a control attribute write type; priority identifier 01 may be used to indicate that the control instruction is a control attribute read type; the priority identifier 10 may be used to indicate that the control instruction is of an action execution type; the priority identifier 11 may be used to indicate the parameter upgrade type.
In the embodiment of the application, the forwarding priorities corresponding to different types of control instructions are different. It should be noted that, in the embodiment of the present application, the type of the control instruction and the priority of each type of control instruction are not specifically limited, and may be set according to actual use requirements. For example, the forwarding priority is, in order from high to low: a control attribute write type, a control attribute read type, an action execution type, and a parameter upgrade type. For another example, the forwarding priority is, in order from high to low: a parameter upgrade type, a control attribute write type, a control attribute read type, and an action execution type.
S807, the router receives the packet from the terminal device a and starts timing.
And S808, after the timing duration reaches the preset duration, judging whether the router receives data packets from other terminal equipment or not.
After the timer duration reaches the preset duration, if the data packet from the other terminal device is not received, the router may forward the data packet of the terminal device a only, that is, execute S809 described below. If data packets from other terminal devices, for example, data packet from terminal device b, are received, the router may forward the data packets with higher priority according to the priority identifier in each data packet, i.e., perform S810-S811 described below.
And S809, forwarding the data packet of the terminal device a by the router.
Specifically, the router first determines whether the packet of the terminal device a contains a blocking instruction. If the data packet contains a complete control instruction, the data packet can be forwarded directly to the intelligent device. If the data packet contains a blocking instruction, the router forwards the blocking data packets with the device identifier of the terminal device a to the intelligent device sequentially and continuously according to the receiving sequence of the blocking data packets.
S810, the router determines the forwarding priority corresponding to the data packet of each terminal device according to the priority identifier.
S811, the router sends the data packets of each terminal device to the intelligent device in sequence according to the sequence from high to low of the forwarding priority. In the embodiment of the application, each data packet from one terminal device includes the device identifier of the terminal device and the same priority identifier, and therefore can be regarded as a group of instruction data, and the router can sequentially send each group of instruction data to the intelligent device according to the forwarding priority indicated by the priority identifier in each group of instruction data from high to low.
A data packet of a terminal device may contain a complete control command or may contain only blocking commands. For the method for forwarding the data packet of each terminal device by the router, reference may be made to the description of the above embodiments, which is not described herein again.
It should be noted that, when the router sequentially sends data packets to the intelligent device according to the sequence from the high forwarding priority to the low forwarding priority, if a packet data packet is to be sent, the device identifier may be recorded after forwarding one packet data packet, and the device identifier for forwarding the next packet data packet needs to be the same as the recorded device identifier until all the packet data packets are completely forwarded.
And S812, the intelligent device receives the data packet.
S813, the intelligent device judges whether the data packet contains a blocking instruction.
In the case where the data packet contains a complete control instruction, the smart device may perform S814 described below. In the case where the packet contains a blocking instruction, the smart device may perform S815 described below.
And S814, the intelligent device directly executes the processing action corresponding to the control command.
And S815, storing the received block data packets block by the intelligent equipment.
And S816, after the last block data is received and packaged, splicing the block instructions containing the same equipment identifier by the intelligent equipment to obtain a control instruction.
And S817, the intelligent equipment executes the processing action corresponding to the control command.
For the above S801 to 817, reference may be made to the description of S501 to 516 in the above embodiments, which are not repeated herein.
In the embodiment of the present application, the difference between the scheme shown in fig. 8 and the scheme shown in fig. 5 is that each terminal device in the scheme shown in fig. 8 may further add a priority to the control instruction, so that after the router receives the control instructions from different terminal devices at the same time or in the same time period, the router may forward the control instruction with a higher priority and then forward the control instruction with a lower priority according to the priority of the control instruction. Therefore, the intelligent device can receive the control instruction with higher priority and execute the processing action corresponding to the control instruction, and the execution speed of the control instruction with high priority is ensured.
In other embodiments, after the smart device performs a processing action corresponding to one control instruction, the smart device may request the router for the next packet. For example, as shown in fig. 5 and 8, the data transmission method provided in the embodiment of the present application may further include S51-S55 described below.
And S51, the intelligent device sends a message for requesting the next data packet to the router. Such as sending a GetMore request message.
S52, the router checks whether there is other data packet in the buffer queue. If there are other packets, the following step S53 is executed; otherwise, the following S54 and S55 are performed. Wherein the other data packets comprise complete control instructions and/or block instructions.
And S53, the router continuously sends the data packet to the intelligent device.
In the case that the router checks that there are other data packets in the buffer queue, the router may send the data packets to the intelligent device according to the method provided in the above-mentioned S507 to 510 and S807 to 811. The smart device may receive and process the data packets in the same manner as provided in S511 to 516, S812 to 817 described above. Reference may be made to the description of the above embodiments, which are not repeated here.
And S54, the router sends a response message without other data packets to the intelligent device. Such as sending a nondata response message.
S55, the intelligent device releases occupied resources of the memory.
In the embodiment of the application, after the intelligent device executes the processing action corresponding to one control instruction, the router is requested for a next data packet, the data packet can be continuously processed under the condition that other data packets exist, and the occupied resources of the memory are released under the condition that other data packets do not exist, so that the intelligent device can conveniently process other tasks, such as waiting for receiving next data.
The data transmission method provided by the embodiment of the present application is exemplarily described below through several scenarios.
Scene one:
a scenario in which the smart air conditioner is controlled by using the mobile phone a and the mobile phone B is described with reference to fig. 10. Supposing that the mobile phone A and the mobile phone B are both pre-installed with apps for controlling and managing the intelligent air conditioner, the control instruction generated by the mobile phone A is a parameter upgrading type, the control instruction generated by the mobile phone B is a control attribute writing type, and the priority of the parameter upgrading type is higher than that of the control attribute writing type. Since the control command of the parameter upgrade type includes more configuration parameters or upgrade parameters, if the router simultaneously sends the control commands of the mobile phone a and the mobile phone B, the receiving time of each command is prolonged.
It should be noted that, this scenario is described by taking an example that the priority of the parameter upgrade type is higher than the priority of the control attribute write type, and this scenario does not limit the embodiments of the present application. In actual implementation, the priority of the parameter upgrade type may be lower than the priority of the control attribute write type, and may be set according to actual use requirements.
The application scenario of the control instruction generated by the mobile phone a is as follows: when the manufacturer of the smart air conditioner 13 updates the firmware, the background server 10 sends a push message to the app for managing the smart air conditioner in the mobile phone a, where the message content of the push message includes configuration parameters, upgrade parameters, and the like. After the mobile phone A receives the push message, the mobile phone A can directly generate a control instruction A according to the message content of the push message; alternatively, the mobile phone a may display the prompt message 14 of the push message as shown in fig. 10, and if the mobile phone a receives the operation of "yes" from the user, the mobile phone a generates the control instruction a according to the message content of the push message. Wherein, the control instruction A contains configuration parameters or upgrading parameters.
The control instruction A is as follows:
protocol header:
protocol type: the WiFi is a wireless communication device having a WiFi,
IP address: 127.0.0.1,// IP Address of Intelligent air conditioner
FLAG: 111111111,// cell-A udid number
Pro: 11// priority identification of Mobile A (parameter upgrade type)
Protocol data:
Figure BDA0003415365030000181
the data of the control command A generated by the mobile phone A is large, and the control command A needs to be sent for many times. For example, the handset a divides the control instruction a into 10 blocks, and adds the device identifier 111111111 and the priority identifier 11 to each block instruction. Thereafter, handset a may send the block data to router 12 in sequence.
The application scenario of the control instruction generated by the mobile phone B is as follows: the user operates the air conditioning management interface of the mobile phone B to set the temperature in the area 15 to 32 °. In this way, the mobile phone B generates a control instruction B for adjusting the temperature of the air conditioner in response to a user operation.
The control instruction B is as follows:
protocol header:
protocol type: the WiFi is a wireless communication device having a WiFi,
IP address: 127.0.0.1,// IP Address of Intelligent air conditioner
FLAG: 222222222,// cell phone B's udid number
Pro: 00// priority identification of Mobile A (control Attribute write type)
Protocol data:
Figure BDA0003415365030000191
the data of the control command B generated by the mobile phone B is small, so that the control command B is not required to be sent for many times. Therefore, the handset B can directly add the priority identifier 00 for the device identifier 222222222 to the control instruction B. Thereafter, handset B may send the block data to router 12 in sequence.
Optionally, a receiving window with a preset duration may be set in the router, and when the router receives data from different handsets in the receiving window, the router may regard the data as being received at the same time. For data received at the same time, the router may forward the data using any of the following possible implementations.
One possible implementation is:
after the router 12 receives the first block data sent by the mobile phone a, a receiving window with a preset time of 20 milliseconds is started. If the block data of handset B is received within 20 milliseconds, the block data may be saved to the message queue. Since the priority indicated by the priority identifier 00 is lower than the priority indicated by the priority identifier 11, the router 12 can preferentially transmit the block data of the handset a.
The smart air conditioner 13 receives the block data of the mobile phone a block by block. After receiving the last block data, the intelligent air conditioner 13 splices all the block data to obtain a control instruction a. Then, the smart air conditioner 13 performs firmware upgrade according to the upgrade parameters included in the control instruction a.
The router 12 then starts forwarding the control instruction B of the handset B.
After the intelligent air conditioner 13 receives the control command B, the intelligent air conditioner 13 adjusts the temperature to 32 °.
And finishing the forwarding of the routing data and finishing the control.
It will be appreciated that in this possible implementation, if the priority indicated by the priority identifier 00 is higher than the priority indicated by the priority identifier 11, the router 12 will send the instruction data of the handset B with priority before sending the block data of the handset a.
Another possible implementation is:
after the router 12 receives the first block data sent by the mobile phone a, a receiving window with a preset time of 20 milliseconds is started. If the tile data for handset B is not received within 20 milliseconds, router 12 begins to continuously forward the tile data for handset a after 20 milliseconds have been reached. And if the block data generated by the mobile phone B is received in the process of sending the block data of the mobile phone A, storing the block data to a message queue. In this case, since the forwarding of the block data of the mobile phone a has already been started, the router 12 continues to forward the block data of the mobile phone a regardless of which of the priorities indicated by the priority identifier 00 and the priority identifier 11 is higher or lower.
The smart air conditioner 13 receives the block data of the mobile phone a block by block. After receiving the last block data, the intelligent air conditioner 13 splices all the block data to obtain a control instruction a. Then, the smart air conditioner 13 performs firmware upgrade according to the upgrade parameters included in the control instruction a.
The router 12 then starts forwarding the control instruction B of the handset B.
After the intelligent air conditioner 13 receives the control command B, the intelligent air conditioner 13 adjusts the temperature to 32 °.
And finishing the forwarding of the routing data and finishing the control.
It can be understood that if the block data generated by the mobile phone a is received in the process of sending the instruction data of the mobile phone B, although the priority of the block data generated by the mobile phone a is higher than the priority of the instruction data of the mobile phone B, since the forwarding of the instruction data of the mobile phone B has already been started, the router 12 will continue to forward the instruction data of the mobile phone B no matter which priority is higher or lower than the priority indicated by the priority identifier 00 and the priority identifier 11.
In the above scenario, since the priority of the parameter upgrade type is higher than the priority of the control attribute write-in type, after the router receives the control instructions from the mobile phone a and the mobile phone B at the same time or in the same time period, the router can preferentially forward the control instruction of the mobile phone a and then forward the control instruction of the mobile phone B, thereby ensuring that the control instruction with high priority can be executed earlier.
Scene two:
in an intelligent traffic scene, a plurality of road side base stations are arranged on the road edge side (one road side base station is regarded as one router). The road side base station can access intelligent equipment such as a sensor for telemetering and measuring road surface conditions, a variable traffic signboard (such as a traffic signal lamp), a wind power/wind direction detector, a camera, a laser radar and the like in a wired or wireless communication mode. When the vehicle is in a driving state, the road side base station can be accessed through the vehicle-mounted terminal, and then the information of the intelligent equipment is obtained through the road side base station. In a road section with a large traffic flow, tens or hundreds of vehicle-mounted terminals may request to obtain information of the same intelligent device through a control command. However, due to the limited memory space of the smart device, all or part of the control instructions may be lost, and thus at least one vehicle-mounted terminal fails to acquire information.
A scenario in which the in-vehicle terminal C and the in-vehicle terminal D acquire the state information of the same traffic signal is described below with reference to fig. 11. The application scenarios of the control instructions generated by the vehicle-mounted terminal C and the vehicle-mounted terminal D are as follows: when the vehicle runs to a section corresponding to the road side base station E, the vehicle-mounted terminal C and the vehicle-mounted terminal D respectively generate signal lamp state information used for acquiring a traffic signal lamp F connected with the road side base station E.
The control command C generated by the in-vehicle terminal C is as follows:
protocol header:
protocol type: the pressure of the liquid crystal material V2X,
IP address: 127.1.1.1,// IP Address of traffic Signal F
FLAG: 3333,// SN number of in-vehicle terminal C
Pro: 01,// priority identification of vehicle terminal C (control attribute read type)
Protocol data:
Figure BDA0003415365030000211
the control command D generated by the vehicle-mounted terminal D is as follows:
protocol header:
protocol type: the pressure of the liquid crystal material V2X,
IP address: 127.1.1.1,// IP Address of traffic Signal F
FLAG: 4444,// SN number of in-vehicle terminal D
Pro: 01,// priority identification of vehicle terminal C (control attribute read type)
Protocol data:
Figure BDA0003415365030000212
because the data of the control commands generated by the vehicle-mounted terminal C and the vehicle-mounted terminal D are small and do not need to be sent for many times, the vehicle-mounted terminal C and the vehicle-mounted terminal D respectively add the equipment identifier and the priority identification in the control commands.
Optionally, a receiving window with a preset duration may be set in the roadside base station, and when the roadside base station receives data from different vehicle-mounted terminals in the receiving window, the roadside base station may regard the data as being received at the same time. For data received at the same time, the road side base station may forward the data using any one of the following possible implementations.
One possible implementation is:
after the roadside base station E receives the instruction data of the vehicle-mounted terminal C, a receiving window with the preset time of 20 milliseconds is started. If the instruction data of the in-vehicle terminal D is received within 20 milliseconds, the instruction data of the in-vehicle terminal D may be saved to the message queue. Since the priority of the instruction data of the in-vehicle terminal C is equal to the priority of the instruction data of the in-vehicle terminal D, but the roadside base station E receives the instruction data of the in-vehicle terminal C earlier, the roadside base station E can preferentially transmit the instruction data of the in-vehicle terminal C after 20 milliseconds.
And the traffic signal lamp F receives the instruction data of the vehicle-mounted terminal C and acquires the signal lamp state information according to the instruction data of the vehicle-mounted terminal C. Then, the traffic signal lamp F feeds back the signal lamp state information to the vehicle-mounted terminal C through the road side base station E.
Then, the roadside base station E starts to forward the instruction data of the in-vehicle terminal D.
And the traffic signal lamp F receives the instruction data of the vehicle-mounted terminal D and acquires the signal lamp state information according to the instruction data of the vehicle-mounted terminal D. Then, the traffic signal lamp F feeds back the signal lamp state information to the vehicle-mounted terminal D through the road side base station E.
Another possible implementation is:
after the roadside base station E receives the instruction data of the vehicle-mounted terminal C, a receiving window with the preset time of 20 milliseconds is started. If the instruction data of the in-vehicle terminal D is not received within 20 milliseconds, the roadside base station E starts transmitting the instruction data of the in-vehicle terminal C after reaching 20 milliseconds. And if the instruction data generated by the vehicle-mounted terminal D is received in the process of sending the instruction data of the vehicle-mounted terminal C, storing the instruction data generated by the vehicle-mounted terminal D to the message queue. In this case, since the transfer of the command data of the in-vehicle terminal C has already started, the roadside base station E continues to transfer the command data of the in-vehicle terminal C.
And the traffic signal lamp F receives the instruction data of the vehicle-mounted terminal C and acquires the signal lamp state information according to the instruction data of the vehicle-mounted terminal C. Then, the traffic signal lamp F feeds back the signal lamp state information to the vehicle-mounted terminal C through the road side base station E.
Then, the roadside base station E starts to forward the instruction data of the in-vehicle terminal D.
And the traffic signal lamp F receives the instruction data of the vehicle-mounted terminal D and acquires the signal lamp state information according to the instruction data of the vehicle-mounted terminal D. Then, the traffic signal lamp F feeds back the signal lamp state information to the vehicle-mounted terminal D through the road side base station E.
In the above scenario, since the priorities of the control instructions of the in-vehicle terminal C and the in-vehicle terminal D are the same, but the router receives the control instruction of the in-vehicle terminal C earlier, the router preferentially forwards the control instruction of the in-vehicle terminal C received earlier, thereby ensuring that the control instruction received earlier can be executed earlier.
It is to be understood that the methods and operations implemented by the respective apparatuses in the respective method embodiments described above may also be implemented by components (e.g., chips or circuits) that can be used for the respective apparatuses.
Embodiments of the methods provided herein are described above, and embodiments of the apparatus provided herein are described below. It should be understood that the description of the apparatus embodiments corresponds to the description of the method embodiments, and therefore, for brevity, details are not repeated here, since the details that are not described in detail may be referred to the above method embodiments.
The solutions provided by the embodiments of the present application have been described above primarily in terms of method steps. It is understood that in order to implement the above functions, each device implementing the method includes corresponding hardware structures and/or software modules for performing each function. Those of skill in the art would appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 12 is a schematic block diagram of a terminal device, a router, and an intelligent device according to an embodiment of the present application. As shown in fig. 12, the terminal device 31 includes a control module 32 and a transmission module 33; the router 41 includes a packet processing module 42 and a transmission module 43; the smart device 51 includes a control module 52, a transmission module 53, and a memory 54. Correspondingly, fig. 13 is a module interaction timing diagram of the data transmission method according to the embodiment of the present application.
S1, the control module 32 generates a control command in response to a user operating the control interface.
S2, the control module 32 determines whether the length of the control command is greater than a predetermined length.
In the case where the length of the control command is less than or equal to the preset length, the control module 32 may perform S3 and S4 described below. In the case where the length of the control instruction is greater than the preset length, the control module 32 may perform S5 and S6 described below.
S3, the control module 32 adds the device identifier and the priority identifier to the control command. The device identifier may be used to identify the terminal device, and the priority identifier may be used to indicate a forwarding priority of the control instruction.
S4, the control module 32 sends the data packet to the transmission module 43 through the transmission module 33. The data packet contains the control command added with the device identifier and the priority identifier.
S5, the control module 32 splits the control command into a plurality of block commands, and adds a device identifier and a priority identifier to each block command to obtain a plurality of block packets. A block packet contains a block instruction with the addition of a device identifier and a priority identifier. The length of each block data packet is less than or equal to a preset length.
S6, the control module 32 sends the block data packets to the transmission module 43 in sequence through the transmission module 33.
S7, the transmission module 43 receives the data packet from the transmission module 33, and the packet processing module 42 starts timing.
S8, after the timing duration reaches the preset duration, the packet processing module 42 determines whether to receive the data packet from other terminal device.
After the counted time period reaches the preset time period, if no data packet is received from the other terminal device, S9 described below may be executed. If a packet from another terminal device, for example, a packet from terminal device b is received, the control command with higher priority may be forwarded preferentially according to the priority identifier of each control command, i.e., the following S10-S11 is performed.
S9, the transmission module 43 forwards the data packet of the terminal device a.
Specifically, the packet processing module 42 first determines whether the packet contains a blocking instruction. If the data packet contains a complete control command, the transmission module 43 may forward the data packet directly to the smart device. If the data packet contains a blocking instruction, the transmission module 43 will continuously forward the blocking data packet with the device identifier of the terminal device a to the smart device.
S10, the processing module 42 determines the forwarding priority corresponding to the packet of each terminal device according to the priority identifier.
S11, the transmission module 43 sends the data packets of each terminal device to the transmission module 53 in sequence according to the order of the forwarding priority from high to low.
S12, the transmission module 53 receives the data packet.
S13, the control module 52 determines whether the data packet contains a blocking command.
In the case where the data packet contains a complete control instruction, the control module 52 may perform S14 described below. In the case where one of the received data is tile data, the control module 52 may perform S15-S17 described below.
S14, the control module 52 directly executes the processing operation corresponding to the control command.
S15, the control module 52 controls the memory 54 to store the received packet data packets block by block.
S16, after the transmission module 53 receives the last packet data, the control module 52 splices the blocking commands of all the packet data containing the same device identifier to obtain command data.
S17 and the control module 52 executes the processing operation corresponding to the control command.
S18, the control module 52 sends a message requesting a next packet to the packet processing module 42 through the transmission module 53 and the transmission module 43.
S19, the packet processing module 42 checks whether there is any other data packet in the buffer queue. If there are other packets, the following step S20 is executed; otherwise, the following S21 and S22 are performed.
S20, the packet processing module 42 continues to send the data packet to the control module 52 through the transmission module 43 and the transmission module 53.
S21, the packet processing module 42 sends a response message without other data packet to the control module 52 through the transmission module 43 and the transmission module 53.
S22, the control module 52 controls the memory 54 to release the occupied resource.
For the above-mentioned S1 to S22, reference may be made to the detailed description of the above-mentioned embodiments, which are not repeated herein.
The terminal device, the router, and the intelligent device according to the embodiments of the present application may correspondingly execute the method described in the embodiments of the present application, and the above and other operations and/or functions of the units in the terminal device, the router, and the intelligent device are respectively for implementing corresponding flows of the method, and are not described herein again for brevity.
Fig. 14 is a schematic structural diagram of a router according to an embodiment of the present application. As shown in fig. 14, the router 140 may include a processor 141, a WAN interface 142, a LAN interface 143, a reset module 144, a memory 145, a power supply module 146, and a wireless communication module 147.
The processor 141 may be configured to analyze the received data packet, and determine whether the data packet includes a blocking instruction; if the data packet contains a complete control instruction, the instruction data can be forwarded to the intelligent device according to the destination IP; if the data packet contains a blocking instruction, data with the same device identifier is continuously forwarded to the intelligent device according to the destination IP.
Further, the processor 141 may be further configured to transmit feedback information received from the smart device to the terminal device.
The WAN interface 142 is a connection port to a switch. The extranet is accessible through a WAN interface.
The LAN interface 143 is a connection port to the smart device. The respective devices within the local area network can be connected through the LAN interface.
The reset module 144 may be configured to restore factory settings of the router.
Memory 145 may be used to store received data packets. For example, after the router receives the first packet sent by the mobile phone a, the router may store the packet of the mobile phone a and start a receiving window with a preset time of 20 ms. The memory 145 may store the block packet data of the handset B to the message queue if the block packet data of the handset B is received within 20 msec.
And a power module 146, which may be used to provide operating power for the router.
The wireless communication module 147 may be an integrated transmitting device and receiving device. The receiving device may receive the electromagnetic wave via the antenna, frequency modulate and filter the electromagnetic wave signal, and send the processed signal to the processor 141, for example, the receiving device sends the data packet received from the terminal device to the processor 141. The transmitting device may receive a signal to be transmitted from the processor 141, perform frequency modulation and amplification on the signal, convert the signal into electromagnetic waves through the antenna, and radiate the electromagnetic waves, for example, transmit a data packet processed by the processor to the smart device through the transmitting device and the antenna.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the router. In other embodiments of the present application, a router may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Fig. 15 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 15, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a neural center and a command center of the terminal device 100, among others. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In this embodiment, the processor 110 may be configured to generate a control instruction in response to an operation of a user on the control interface; judging whether the length of the control instruction is greater than a preset length or not; and adding a device identifier and a priority identifier for uniquely identifying the terminal device to the control instruction and sending instruction data to the router when the length of the control instruction is less than or equal to the preset length. Under the condition that the length of the control instruction is larger than the preset length, the control instruction is blocked, a device identifier and a priority identifier for uniquely identifying the terminal device are added to each blocking instruction, and then block data are sequentially sent to the router.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Optionally, in some embodiments, the present application provides a chip coupled with a memory, and configured to read and execute a computer program or instructions stored in the memory to perform the method in the above embodiments.
Optionally, in some embodiments, the present application provides an electronic device comprising a chip for reading and executing a computer program or instructions stored by a memory, such that the methods in the embodiments are performed. The electronic device may be a terminal device, a router, or a smart device.
Optionally, in some embodiments, the present application further provides a computer-readable storage medium storing program code, which, when executed on a computer, causes the computer to perform the method in the foregoing embodiments.
Optionally, in some embodiments, the present application further provides a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the foregoing embodiments.
In the embodiment of the present application, each device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer may include hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a memory (also referred to as a main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer may include applications such as a browser, an address book, word processing software, and instant messaging software.
The embodiment of the present application does not particularly limit a specific structure of an execution subject of the method provided by the embodiment of the present application, as long as communication can be performed by the method provided by the embodiment of the present application by running a program in which codes of the method provided by the embodiment of the present application are recorded. For example, an execution subject of the method provided by the embodiment of the present application may be a device, or a functional module in the device, which is capable of calling a program and executing the program.
Various aspects or features of the disclosure may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term "article of manufacture" as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. For example, computer-readable media may include, but are not limited to: magnetic storage devices (e.g., hard disk, floppy disk, or magnetic tape), optical disks (e.g., Compact Disk (CD), Digital Versatile Disk (DVD), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROM), card, stick, or key drive, etc.).
Various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, but is not limited to: wireless channels and various other media capable of storing, containing, and/or carrying instruction(s) and/or data.
It should be understood that the processor mentioned in the embodiments of the present application may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory referred to in the embodiments of the application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM). For example, RAM can be used as external cache memory. By way of example and not limitation, RAM may include the following forms: static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct bus RAM (DR RAM).
It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (memory module) may be integrated into the processor.
It should also be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
Those of ordinary skill in the art will appreciate that the various illustrative elements and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. Furthermore, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, or portions thereof, may be embodied in the form of a computer software product stored in a storage medium, the computer software product including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage media may include, but are not limited to: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (24)

1. A data transmission method, applied to a router, the method comprising:
receiving instruction data sent by terminal equipment;
under the condition that the instruction data are block data, sequentially sending each block data containing the equipment identifier to the intelligent equipment according to the equipment identifier contained in the block data;
each block data is data obtained after the terminal device blocks a control instruction and adds the device identifier respectively, the device identifier is used for identifying the terminal device, and the control instruction is used for controlling the intelligent device to execute a corresponding processing action.
2. The method of claim 1, further comprising:
and sending the instruction data to the intelligent equipment under the condition that the instruction data contains a control instruction.
3. The method according to claim 1 or 2, characterized in that the instruction data further comprises a priority identifier; the method further comprises the following steps:
under the condition that instruction data containing different equipment identifiers are received at the same time or in the same time period, sequentially sending each group of instruction data to the intelligent equipment according to the priority identifiers contained in each group of instruction data;
wherein a set of instruction data consists of at least one instruction data comprising the same priority identifier, the same device identifier, the priority identifier being used to indicate the forwarding priority of the instruction data.
4. The method according to claim 3, wherein the sequentially sending each group of instruction data to the intelligent device according to the priority identifier included in each group of instruction data comprises:
determining the forwarding priority of each group of instruction data according to the priority identifier contained in each group of instruction data;
and sequentially sending each group of instruction data to the intelligent equipment according to the sequence of the forwarding priority from high to low.
5. The method according to claim 3 or 4, wherein the sending each set of instruction data to the smart device in turn comprises:
for each group of instruction data, if one group of instruction data is one instruction data, sending the one instruction data to the intelligent equipment; or if the group of instruction data consists of a plurality of instruction data, sequentially sending each instruction data of the plurality of instruction data to the intelligent device according to the receiving sequence of the plurality of instruction data.
6. The method according to any of claims 3 to 5, wherein the type of the priority identifier comprises at least one of:
controlling an attribute write type;
controlling an attribute reading type;
an action execution type;
a parameter upgrade type.
7. The method according to any one of claims 1 to 6, wherein the sequentially sending each block data containing the device identifier to the smart device according to the device identifier contained in the block data comprises:
taking the time of receiving the first block data containing the equipment identifier as a starting time, and after receiving each block data containing the equipment identifier, sending each block data containing the equipment identifier to the intelligent equipment;
alternatively, the first and second electrodes may be,
sequentially sending the block data containing the equipment identifier to the intelligent equipment according to the receiving sequence of the block data containing the equipment identifier by taking the time of receiving the last block data containing the equipment identifier as the starting time;
alternatively, the first and second electrodes may be,
sequentially sending the block data containing the equipment identifier to the intelligent equipment according to the receiving sequence of the block data containing the equipment identifier by taking the forwarding time of other instruction data as the starting time; the block data containing the device identifier is data received in the process of sending the other instruction data, or data which is received at the same time or the same time period as the other instruction data and has lower forwarding priority than the other instruction data;
alternatively, the first and second electrodes may be,
if the block data containing other equipment identifiers is not received within the preset time length after the first block data containing the equipment identifier is received, the block data containing the equipment identifier is sequentially sent to the intelligent equipment according to the receiving sequence of the block data containing the equipment identifier after the preset time length is reached.
8. The method according to any one of claims 1 to 7, further comprising:
receiving a request message sent by the intelligent equipment, wherein the request message is used for requesting to send other instruction data;
responding to the request message, and sending other instruction data to the intelligent equipment; or sending a response message to the intelligent device, wherein the response message is used for indicating that no other instruction data is stored in the router.
9. A data transmission method is applied to a terminal device, and the method comprises the following steps:
responding to user operation, and generating a control instruction;
under the condition that the length of the control instruction is larger than the preset length, splitting the control instruction into a plurality of block instructions, and adding a target identifier in each block instruction to obtain a plurality of block data;
sequentially sending each block data of the plurality of block data to a router;
wherein the target identifier comprises a device identifier, or the target identifier comprises a device identifier and a priority identifier; the device identifier is used for identifying the terminal device; the priority identifier is used for indicating the forwarding priority of the control instruction; the control instruction is used for controlling the intelligent equipment to execute corresponding processing actions through the router.
10. The method of claim 8, further comprising:
adding the target identifier in the control instruction under the condition that the length of the control instruction is smaller than or equal to the preset length to obtain instruction data containing the control instruction and the target identifier;
and sending the instruction data to the router.
11. The method according to claim 8 or 9, wherein the type of the priority identifier comprises at least one of:
controlling an attribute write type;
controlling an attribute reading type;
an action execution type;
a parameter upgrade type.
12. A data transmission method is applied to intelligent equipment, and the method comprises the following steps:
receiving instruction data sent by a router;
storing each received block data block by block under the condition that the instruction data is block data;
after the last block data is received, splicing all the block data to obtain a control instruction;
and executing the processing action corresponding to the control instruction.
13. The method of claim 12, further comprising:
and executing a processing action corresponding to the control instruction when the instruction data contains one control instruction.
14. The method of claim 12 or 13, wherein the smart device comprises a memory for storing the respective tile data;
after performing the processing action corresponding to the control instruction, the method further comprises:
sending a request message to the router, wherein the request message is used for requesting to send other instruction data;
receiving other instruction data sent by the router; alternatively, the first and second electrodes may be,
and receiving a response message sent by the router, and releasing the occupied resources of the memory, wherein the response message is used for indicating that no other instruction data is stored in the router.
15. A data transmission system is characterized in that the system comprises terminal equipment, a router and intelligent equipment;
the terminal equipment is used for responding to user operation and generating a control instruction; under the condition that the length of the control instruction is larger than the preset length, splitting the control instruction into a plurality of block instructions, and adding a device identifier in each block instruction to obtain a plurality of block data, wherein the device identifier is used for identifying the terminal device; and sequentially sending each of the plurality of block data to the router;
the router is used for receiving the instruction data sent by the terminal equipment; under the condition that the instruction data are block data, sequentially sending each block data containing the equipment identifier to the intelligent equipment according to the equipment identifier contained in the block data;
the intelligent device is used for receiving the instruction data sent by the router; storing each received block data block by block under the condition that the instruction data is block data; after the last block data is received, splicing all the block data to obtain the control instruction; and executing a processing action corresponding to the control instruction.
16. The data transmission system of claim 15,
the terminal device is further configured to add the target identifier to the control instruction to obtain instruction data including the control instruction and the target identifier when the length of the control instruction is less than or equal to the preset length; and sending the instruction data to the router;
the router is further used for sending the instruction data to the intelligent device under the condition that the instruction data contain the control instruction;
the intelligent device is further configured to execute a processing action corresponding to the control instruction when the instruction data includes the control instruction.
17. The data transmission system according to claim 15 or 16,
the router is further configured to determine a forwarding priority of each group of instruction data according to a priority identifier included in each group of instruction data when instruction data including different device identifiers are received at the same time or at the same time interval; sequentially sending each group of instruction data to the intelligent equipment according to the sequence of the forwarding priority from high to low;
wherein a set of instruction data consists of at least one instruction data comprising the same priority identifier, the same device identifier, the priority identifier being used to indicate the forwarding priority of the instruction data.
18. The data transmission system of any one of claims 15 to 17, wherein the smart device comprises a memory for storing the respective block data;
the intelligent device is further used for sending a request message to the router after executing the processing action corresponding to the control instruction, wherein the request message is used for requesting to send other instruction data;
the router is further used for responding to the request message and sending other instruction data to the intelligent equipment; or sending a response message to the intelligent device, wherein the response message is used for indicating that other instruction data are not stored in the router;
the intelligent equipment is also used for receiving the other instruction data; or releasing the occupied resources of the memory according to the response message.
19. A router comprising a processor coupled with a memory, the processor being configured to execute computer programs or instructions stored in the memory to cause the router to implement the data transmission method of any one of claims 1 to 8.
20. A terminal device, comprising a processor coupled with a memory, the processor being configured to execute a computer program or instructions stored in the memory to cause the terminal device to implement the data transmission method according to any one of claims 9 to 11.
21. A smart device comprising a processor coupled with a memory, the processor being configured to execute computer programs or instructions stored in the memory to cause the smart device to implement the data transmission method of any of claims 12 to 14.
22. A chip system, wherein the chip system is coupled with a memory, and the chip system is configured to read and execute a computer program stored in the memory to implement the data transmission method according to any one of claims 1 to 14.
23. A computer-readable storage medium, characterized in that it stores a computer program which, when run on an electronic device, causes the electronic device to perform the data transmission method according to any one of claims 1 to 14.
24. A computer program product, characterized in that it causes a computer to carry out the data transmission method according to any one of claims 1 to 14, when said computer program product is run on the computer.
CN202111544212.2A 2021-12-16 2021-12-16 Data transmission method, router, device, system and storage medium Active CN114401298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111544212.2A CN114401298B (en) 2021-12-16 2021-12-16 Data transmission method, router, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111544212.2A CN114401298B (en) 2021-12-16 2021-12-16 Data transmission method, router, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN114401298A true CN114401298A (en) 2022-04-26
CN114401298B CN114401298B (en) 2023-03-21

Family

ID=81226339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111544212.2A Active CN114401298B (en) 2021-12-16 2021-12-16 Data transmission method, router, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN114401298B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436781A (en) * 2011-11-04 2012-05-02 杭州中天微系统有限公司 Microprocessor order split device based on implicit relevance and implicit bypass
CN105871995A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Method for controlling intelligent device by router and the router
CN108917283A (en) * 2018-07-12 2018-11-30 四川虹美智能科技有限公司 A kind of intelligent refrigerator control method, system, intelligent refrigerator and cloud server
CN111143061A (en) * 2019-12-18 2020-05-12 海尔优家智能科技(北京)有限公司 Multi-device linkage control method and device and storage medium
CN111597057A (en) * 2020-04-08 2020-08-28 视联动力信息技术股份有限公司 Data processing method, device and computer readable storage medium
CN113597583A (en) * 2021-06-15 2021-11-02 华为技术有限公司 Vehicle-mounted equipment control method, device and system and vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436781A (en) * 2011-11-04 2012-05-02 杭州中天微系统有限公司 Microprocessor order split device based on implicit relevance and implicit bypass
CN105871995A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Method for controlling intelligent device by router and the router
CN108917283A (en) * 2018-07-12 2018-11-30 四川虹美智能科技有限公司 A kind of intelligent refrigerator control method, system, intelligent refrigerator and cloud server
CN111143061A (en) * 2019-12-18 2020-05-12 海尔优家智能科技(北京)有限公司 Multi-device linkage control method and device and storage medium
CN111597057A (en) * 2020-04-08 2020-08-28 视联动力信息技术股份有限公司 Data processing method, device and computer readable storage medium
CN113597583A (en) * 2021-06-15 2021-11-02 华为技术有限公司 Vehicle-mounted equipment control method, device and system and vehicle

Also Published As

Publication number Publication date
CN114401298B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
US10462260B2 (en) Context-aware and proximity-aware service layer connectivity management
US10582451B2 (en) Direct link wireless devices with power savings
US7982585B2 (en) Method and apparatus for active RFID network
KR102399798B1 (en) Adaptive communication method and apparatus
ES2692269T3 (en) Procedures and devices to improve mechanisms for updating NFC parameters
KR102512364B1 (en) Low power wide area internet protocol communication
KR101668289B1 (en) Method for controlling lighting apparatus based on wireless mesh network using mobile terminal and computer readable record medium on which a program therefor is recorded
US20230262467A1 (en) Method and apparatus by which electronic device performs secure ranging
CN105191412A (en) Delegating WIFI network discovery and traffic monitoring
CN108234562B (en) Equipment control method, control equipment and controlled equipment
JP5431584B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
WO2017219519A1 (en) Method, apparatus, and system for controlling device
KR101294695B1 (en) Short range wireless communication accessing enabling apparatus, portable terminal for discovering short range wireless communication accessing apparatus and short range wireless communication system
CN114401298B (en) Data transmission method, router, device, system and storage medium
KR20140030736A (en) Terminal apparatus and method for transmitting and receiving data
CN113132958B (en) Fusion networking method, device, system and computer readable storage medium
KR102402853B1 (en) Apparatus for providing standalone automatic execution service and standalone simultaneous execution service, and method thereof
CN104205951B (en) It is used for transmission synchronous method and apparatus
US10555217B2 (en) Terminal device, terminal-device control method, and terminal-device control program
Kaur et al. Internet of things: Vision, challenges and future scope
CN113965607A (en) NB-IOT-based equipment intelligent control method, IOT control platform and system
US11902161B1 (en) Virtual network for virtual phone applications
JP6376497B2 (en) Control system
JP6146477B2 (en) Terminal, communication processing method, and communication processing program
CN115002797B (en) Network quality detection method and related electronic equipment

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