CN110572440A - Method and device for data transmission, household appliance and storage medium - Google Patents
Method and device for data transmission, household appliance and storage medium Download PDFInfo
- Publication number
- CN110572440A CN110572440A CN201910756895.4A CN201910756895A CN110572440A CN 110572440 A CN110572440 A CN 110572440A CN 201910756895 A CN201910756895 A CN 201910756895A CN 110572440 A CN110572440 A CN 110572440A
- Authority
- CN
- China
- Prior art keywords
- transmission rate
- functional component
- response message
- component
- transmission
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application relates to a method for data transmission, which is applied to a first functional component and comprises the following steps: establishing a communication connection with a second functional component at a first transmission rate; sending a test message to a second functional component at a second transmission rate; under the condition that a response message fed back by the second functional component is received at a second transmission rate, carrying out data transmission with the second functional component at the second transmission rate; wherein the second transmission rate is higher than the first transmission rate. The method sends the test message to the second functional component at a higher transmission rate, and checks whether the second functional component can normally receive and send the test message, so that the transmission rate between the second functional component such as a WiFi module and the first functional component such as a control module is improved. The application also relates to a device for data transmission, a household appliance and a computer readable storage medium.
Description
Technical Field
The present application relates to the field of data transmission technologies, and for example, to a method and an apparatus for data transmission, a home appliance device, and a storage medium.
Background
in an intelligent home, a control component in an intelligent home device performs data transmission outwards through a communication component, for example, the control component joins a Wireless network through the communication component (for example, a WiFi (Wireless Fidelity) module), and reports data of the control component (for example, a main control board) to a cloud end through the Wireless network.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
the data transmission between the control component and the communication component adopts the default transmission rate of the control component (for example, the default transmission rate of a Universal Asynchronous Receiver/Transmitter (UART) is 9600 baud rate), and when a large message is transmitted between the control component and the communication component, the transmission efficiency is low and the time consumption is long.
disclosure of Invention
the following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
the embodiment of the disclosure provides a method and a device for data transmission and household electrical appliance equipment, and aims to solve the technical problems that the data transmission between a control component and a communication component adopts the default transmission rate of the control component, and when large messages are transmitted mutually, the transmission efficiency is low and the time consumption is long.
In some embodiments, a method for data transmission is applied to a first functional component, the method comprising:
establishing a communication connection with a second functional component at a first transmission rate;
sending a test message to a second functional component at a second transmission rate;
under the condition that a response message fed back by the second functional component is received at a second transmission rate, carrying out data transmission with the second functional component at the second transmission rate;
wherein the second transmission rate is higher than the first transmission rate.
In some embodiments, a method for data transmission is applied to the second functional component, the method comprising:
Establishing a communication connection with a first functional component at a first transmission rate;
under the condition of receiving the test message sent by the first functional component at the second transmission rate, feeding back a response message to the first functional component at the second transmission rate;
performing data transmission with the first functional component at a second transmission rate;
Wherein the second transmission rate is higher than the first transmission rate.
In some embodiments, an apparatus for data transmission includes a processor and a memory storing program instructions, the processor being configured to, upon execution of the program instructions, perform the aforementioned method for data transmission.
in some embodiments, the household appliance comprises the aforementioned device.
In some embodiments, a computer readable storage medium stores one or more programs, which are executable by one or more processors to implement the aforementioned method for data transmission.
the method, the device and the household appliance for data transmission provided by the embodiment of the disclosure can realize the following technical effects:
When the control component of the household appliance needs to transmit data through the communication component, the communication component and the control component firstly establish communication connection at a first transmission rate. The first transmission rate is typically a default transmission rate of the control component, such as a 9600 baud rate of UART default. In order to transmit data at a higher transmission rate, the first transmission rate is not directly adopted for data transmission, but the communication component transmits a test message to the control component at a higher second transmission rate, whether the control component can normally receive and transmit is checked, and if a response message is received at the second transmission rate, the second transmission rate and the control component are adopted for data transmission; or, the control component sends a test message to the communication component at a higher second transmission rate, checks whether the communication component can normally receive and send the test message, and if the response message is received at the second transmission rate, the second transmission rate and the communication component are adopted to carry out data transmission, so that the transmission rate between the communication component, such as a WiFi module, and the control component is improved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
drawings
one or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
fig. 1 exemplarily shows a flow chart of a method for data transmission;
FIG. 2 schematically shows a flow chart of a method for data transmission;
FIG. 3 schematically shows a flow chart of a method for data transmission;
FIG. 4 schematically shows a flow chart of a method for data transmission;
Fig. 5 is a schematic structural diagram of an apparatus for data transmission provided in an embodiment of the present disclosure;
fig. 6 is a diagram illustrating an exemplary system configuration including a home device and a server.
Reference numerals:
100: a processor; 101: a memory; 102: a communication interface; 103: a bus; 50: a home appliance device; 501: a control component; 502: a communication component; 51: and (4) a server.
Detailed Description
so that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The embodiment of the present disclosure provides a method for data transmission, which is applied to a first functional component, and as shown in fig. 1, the method includes:
step S11: establishing a communication connection with a second functional component at a first transmission rate;
step S12: sending a test message to a second functional component at a second transmission rate;
Step S13: under the condition that a response message fed back by the second functional component is received at a second transmission rate, carrying out data transmission with the second functional component at the second transmission rate;
Wherein the second transmission rate is higher than the first transmission rate.
the first functional component can be a control component, and the second functional component can be a communication component; or the first functional component is a communication component, and the second functional component is a control component. When the control component of the household appliance needs to transmit data through the communication component, the communication component and the control component firstly establish communication connection at a first transmission rate. The first transmission rate is typically a default transmission rate of the control component, such as a 9600 baud rate of UART default. In order to transmit data at a higher transmission rate, the first transmission rate is not directly adopted for data transmission, but the communication component transmits a test message to the control component at a higher second transmission rate, whether the control component can normally receive and transmit is checked, and if a response message is received at the second transmission rate, the second transmission rate and the control component are adopted for data transmission; or, the control component sends a test message to the communication component at a higher second transmission rate, checks whether the communication component can normally receive and send the test message, and if the response message is received at the second transmission rate, the second transmission rate and the communication component are adopted for data transmission, so that the transmission rate between the communication component such as a WiFi module and the control component is improved, when large messages are sent among the communication components, the sending efficiency can be improved, the time consumption can be reduced, and the possibility of transmitting large data information such as images and the like is provided
In some embodiments, the communication component is a wireless communication module, optionally, the wireless communication module is a WiFi module.
In some embodiments, the second transmission rate is the highest transmission rate theoretically achievable by the control component. In this way, the highest transmission rate is firstly established between the control component and the communication component, and if one time of success is achieved, data transmission at the highest transmission rate can be realized at one time, so that the efficiency of changing the transmission rate is improved.
in some embodiments, establishing a communication connection with a second functional component at a first transmission rate comprises:
Initiating a handshake request to the second functional component at a first transmission rate;
And receiving handshake answers fed back by the second functional component at the first transmission rate.
when the first functional component is a communication component and the second functional component is a control component, the communication component initiates a handshake request to the control component and receives a handshake response fed back by the control component, so that communication connection is established; when the first functional assembly is a control assembly and the second functional assembly is a communication assembly, the control assembly initiates a handshake request and receives a handshake response fed back by the communication assembly, so that a communication connection is established.
In some embodiments, the data transfer with the second functional component at the second transfer rate comprises: and sending the test message to the second functional component again at the second transmission rate, and carrying out data transmission with the second functional component at the second transmission rate under the condition of receiving the response message fed back by the second functional component again at the second transmission rate, so that the second functional component can normally receive and send data after the transmission rate is changed.
In some embodiments, the method for data transmission further comprises: under the condition that a response message fed back by the second functional component is not received at the second transmission rate, reducing the transmission rate at least once and sending a test message to the second functional component again at the reduced transmission rate until the response message fed back by the second functional component is received; and transmitting data with the second functional component at the transmission rate of the received response message. When the first functional component is a communication component and the second functional component is a control component, the communication component does not receive a response message fed back by the control component at the second transmission rate, which indicates that the control component cannot normally receive and transmit data at the second transmission rate, and indicates that the second transmission rate is too high for the control component, the transmission rate is reduced at least once, and a test message is retransmitted to the control component at the reduced transmission rate, namely, the transmission rate accepted by the control component is continuously tried until the response message fed back by the control component is received, and since the transmission rate of the response message is the transmission rate which can be realized by the control component, data transmission is performed at the transmission rate of the response message. Attempting to establish a higher transmission rate between the control component and the communication component in order from high to low increases the efficiency of altering the transmission rate.
in some embodiments, the reduced transmission rate is less than the second transmission rate and greater than or equal to the first transmission rate. And starting from the second transmission rate, continuously reducing the transmission rate, sending a test message by the second functional component, trying to determine the data transmission rate higher than the first transmission rate until the transmission rate is reduced to the first transmission rate, wherein the transmission rate higher than the first transmission rate cannot be accepted by the second functional component, and then carrying out data transmission at the first transmission rate.
In some embodiments, the method further comprises: and setting the waiting time of the response message, and determining that the response message cannot be received at the transmission rate of the current test message within the waiting time if the response message fed back by the second functional component is not received. After the test message is sent, if a response message fed back by the second functional component is received within a set waiting time, for example within 2s, determining that the response message fed back by the second functional component is received; if the response message fed back by the second functional component is not received within the set waiting time, for example, within 2s, it is determined that the response message fed back by the second functional component is not received, the transmission rate is reduced, the test message is sent again, and the transmission rate adaptable to the second control component is continuously probed.
in some embodiments, the data transmission at the transmission rate of the received acknowledgement message includes: sending the test message to the second functional assembly again at the transmission rate of the received response message; and under the condition that the response message fed back by the second functional component is received again at the transmission rate of the received response message, carrying out data transmission with the second functional component at the transmission rate of the received response message.
Under normal conditions, the transmission rate of the response message is consistent with the transmission rate of the test message sent last time, in order to ensure that the transmission rate of the response message is the transmission rate at which the second functional component can normally receive and send data, the test message is sent at the transmission rate of the response message again, and if the response message fed back by the second functional component is received again at the transmission rate of the response message, it is determined that the second functional component can normally transmit data at the changed transmission rate. Fig. 2 shows a flowchart of the method in a scenario where the transmission rate of the response packet is consistent with the transmission rate of the last test packet, where the method includes the following steps:
Step S311: the communication component asks at the default transmission rate of the control component whether a handshake can be initiated;
Step S312: the control component responds at a default transmission rate and may initiate a handshake to establish a communication connection with the communication component;
Step S321: the communication component sends the test message at the highest transmission rate which can be theoretically reached by the control component;
step S322: if the response message is not received within 2s, sending the test message at the next highest transmission rate which can be theoretically reached by the control component, and if the response message cannot be received within 2s, reducing the transmission rate again and sending the test message;
Step S323: the control component successfully receives the test message and sends a response message;
Step S331: the communication component sends the test message again at the transmission rate of the response message so as to confirm whether the control component receives the test message normally after changing the transmission rate again;
step S332: the control component responds and receives the normal signal; namely, sending a corresponding response message;
step S341: and the communication component and the control component carry out data transmission at the changed transmission rate.
the method comprises the steps of starting from the highest transmission rate which can be theoretically reached by a control assembly, sequentially sending test messages to the control assembly from high to low, sequentially probing the transmission rate which can be accepted by the control assembly, trying to establish a transmission rate higher than the default transmission rate between the control assembly and a communication assembly until a response message fed back by the control assembly is received, improving the transmission rate between the communication assembly such as a WiFi module and the control assembly, and improving the sending efficiency and reducing the time consumption when large messages are sent among each other, so that the possibility of transmitting large data information such as images is provided.
When the transmission rate of the response packet is not consistent with the transmission rate of the last test packet, for example: the response message corresponding to the transmission rate of the last test message is received only after the test message is sent the last time due to time delay, and at this time, the transmission rate of the last test message is not consistent with the transmission rate of the received response message, and the transmission rate of the response message needs to be confirmed again. Fig. 3 shows a flowchart of the method in a scenario where the transmission rate of the response packet is not consistent with the transmission rate of the last test packet, where the method includes the following steps:
step S411: the communication component asks at the default transmission rate V0 of the control component whether a handshake can be started;
step S412: the control component responds with a default transmission rate V0 and may initiate a handshake to establish a communication connection with the communication component;
Step S421: the communication component sends a test message at the highest transmission rate V1 which can be theoretically reached by the control component;
Step S422: within 2s, if no response message is received, sending a test message at a second highest transmission rate V2 which can be theoretically reached by the control component;
Step S423: the control component successfully receives the test message at the theoretically-achievable highest transmission rate V1 and sends a response message at the theoretically-achievable highest transmission rate V1;
Step S431: the communication assembly sends the test message again at the highest transmission rate V1 which can be theoretically reached by the control assembly so as to confirm whether the control assembly receives the test message normally after changing the transmission rate again;
Step S432: the control component responds and receives the normal signal; namely, sending a corresponding response message;
step S433: the data transmission is carried out between the communication component and the control component at the highest transmission rate V1 that the control component can theoretically reach.
In some embodiments, as shown in fig. 4, a method for data transmission is applied to the second functional component, the method comprising:
Step S21: establishing a communication connection with a first functional component at a first transmission rate;
step S22: under the condition of receiving the test message sent by the first functional component at the second transmission rate, feeding back a response message to the first functional component at the second transmission rate;
step S23: performing data transmission with the first functional component at a second transmission rate;
wherein the second transmission rate is higher than the first transmission rate.
when the control component of the household appliance needs to transmit data through the communication component, the communication component and the control component firstly establish communication connection at a first transmission rate. The first transmission rate is typically a default transmission rate of the control component, such as a 9600 baud rate of UART default. In order to transmit data at a higher transmission rate, the first transmission rate is not directly adopted for data transmission, but the control component receives and feeds back a test message sent by the communication component at a second transmission rate higher than the first transmission rate, informs the communication component of normally receiving the test message and can transmit data at the transmission rate of the test message; or, the communication component receives and feeds back a test message sent by the control component at a second transmission rate higher than the first transmission rate, so as to inform the control component of normally receiving the test message and transmitting data at the transmission rate of the test message.
in some embodiments, before the data transmission with the first functional component at the second transmission rate, the method further includes: and receiving the test message sent by the first functional component again at the second transmission rate, and feeding back a response message to the first functional component again at the second transmission rate, so that the data can be normally received and sent after the transmission rate is determined to be changed.
In some embodiments, the method further comprises: under the condition that the test message sent by the first functional component is not received at the second transmission rate, receiving the test message sent by the first functional component at the reduced transmission rate, and feeding back a response message to the first functional component at the reduced transmission rate; and transmitting data with the first functional component at the transmission rate of the feedback response message.
When the control component does not receive the test message at the second transmission rate, the control component is indicated to be incapable of normally receiving and sending data at the second transmission rate, and the second transmission rate is indicated to be too large for the control component, the test message with the reduced transmission rate is tried to be received, if the test message with the reduced transmission rate is received, the response message is fed back at the reduced transmission rate, the reduced transmission rate is proved to be capable of normally receiving and sending data, and therefore data transmission is carried out at the transmission rate of the feedback response message. Attempting to establish a higher transmission rate between the control component and the communication component in order from high to low increases the efficiency of altering the transmission rate.
In some embodiments, the reduced transmission rate is less than the second transmission rate and greater than or equal to the first transmission rate. And continuously reducing the transmission rate from the second transmission rate to send the test message, and trying to determine the data transmission rate higher than the first transmission rate until the data transmission rate is reduced to the first transmission rate, which indicates that the second functional component cannot accept the transmission rate higher than the first transmission rate, so that the first transmission rate carries out data transmission.
in some embodiments, before performing data transmission with the first functional component at the transmission rate of the feedback response packet, the method further includes: receiving the test message sent by the first functional component again at the transmission rate of the feedback response message; and feeding back the response message to the first functional component again at the transmission rate of the feedback response message.
Under normal conditions, the transmission rate of the response message is consistent with the transmission rate of the test message sent last time, in order to ensure that the transmission rate of the response message is the transmission rate at which the control component can normally receive and send data, the test message is received again at the reduced transmission rate, and if the response message can be fed back again at the reduced transmission rate, the changed transmission rate is confirmed to be capable of normally transmitting data; when the response packet corresponding to the transmission rate of the last test packet is received only after the test packet is sent for the last time due to time delay, the transmission rate of the response packet needs to be confirmed again.
An embodiment of the present disclosure provides an apparatus for data transmission, whose structure is shown in fig. 5, including:
a processor (processor)100 and a memory (memory)101, and may further include a Communication Interface (Communication Interface)102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via a bus 103. The communication interface 102 may be used for information transfer. The processor 100 may invoke logic instructions in the memory 101 to perform the aforementioned method for data transfer.
When the control component of the household appliance needs to transmit data through the communication component, the communication component firstly establishes a communication connection with the control component at a first transmission rate. The first transmission rate is typically a default transmission rate of the control component, such as a 9600 baud rate of UART default. In order to transmit data with the control component at a higher transmission rate, the first transmission rate and the control component are not directly adopted for data transmission, but the test message is sent to the control component at the higher transmission rate, and whether the control component can normally transmit and receive the test message is checked. Optionally, the communication component sends a test message to the control component at a second transmission rate higher than the first transmission rate, and if a response message is received at the second transmission rate, data transmission is performed with the control component at the second transmission rate; therefore, the transmission rate between the communication component, such as the WiFi module, and the control component is improved, when large messages are sent to each other, the sending efficiency can be improved, the time consumption is reduced, and the possibility of transmitting large data information such as images is provided.
in addition, the logic instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 101, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing, i.e. implements the aforementioned method for data transmission, by executing program instructions/modules stored in the memory 101.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
in some embodiments, the means for data transmission is a communication component or a control component.
As shown in fig. 6, the embodiment of the present disclosure provides an electrical home appliance 50, which includes the foregoing communication component 502, and further includes a control component 501, where the control component 501 is connected to the communication component 502. The control component 501 performs data transmission to the outside through the communication component 502, for example, uploads data of the home device 50 to the server 51 through the WiFi module.
when the control component of the household appliance needs to transmit data through the communication component, the communication component firstly establishes a communication connection with the control component at a first transmission rate. The first transmission rate is typically a default transmission rate of the control component, such as a 9600 baud rate of UART default. In order to transmit data with the control component at a higher transmission rate, the first transmission rate and the control component are not directly adopted for data transmission, but the test message is sent to the control component at the higher transmission rate, and whether the control component can normally transmit and receive the test message is checked. Optionally, the communication component sends a test message to the control component at a second transmission rate higher than the first transmission rate, and if a response message is received at the second transmission rate, data transmission is performed with the control component at the second transmission rate; therefore, the transmission rate between the communication component, such as the WiFi module, and the control component is improved, when large messages are sent to each other, the sending efficiency can be improved, the time consumption is reduced, and the possibility of transmitting large data information such as images is provided.
In some embodiments, the communication component is a wireless communication module, optionally, the wireless communication module is a WiFi module.
Embodiments of the present disclosure provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for data transmission.
the computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of the disclosed embodiments includes the full ambit of the claims, as well as all available equivalents of the claims. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend 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 disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Claims (14)
1. A method for data transmission applied to a first functional component, the method comprising:
establishing a communication connection with a second functional component at a first transmission rate;
sending a test message to the second functional component at a second transmission rate;
Under the condition that a response message fed back by the second functional component is received at the second transmission rate, performing data transmission with the second functional component at the second transmission rate;
Wherein the second transmission rate is higher than the first transmission rate.
2. The method of claim 1, wherein transmitting data with the second functional component at the second transmission rate comprises:
Sending the test message to the second functional component again at the second transmission rate;
And under the condition that the response message fed back by the second functional component is received again at the second transmission rate, carrying out data transmission with the second functional component at the second transmission rate.
3. the method of claim 1 or 2, further comprising:
under the condition that the response message fed back by the second functional component is not received at the second transmission rate, reducing the transmission rate at least once and sending the test message to the second functional component again at the reduced transmission rate until the response message fed back by the second functional component is received;
And transmitting data with the second functional component at the transmission rate of receiving the response message.
4. the method of claim 3, wherein the reduced transmission rate is less than the second transmission rate and greater than or equal to the first transmission rate.
5. The method of claim 3, wherein transmitting data with the second functional component at a transmission rate at which the reply message is received comprises:
sending a test message to the second functional component again at the transmission rate of receiving the response message;
And under the condition that the response message fed back by the second functional component is received again at the transmission rate of receiving the response message, carrying out data transmission with the second functional component at the transmission rate of receiving the response message.
6. A method for data transmission applied to a second functional component, the method comprising:
establishing a communication connection with a first functional component at a first transmission rate;
Under the condition that a test message sent by the first functional component is received at a second transmission rate, a response message is fed back to the first functional component at the second transmission rate;
performing data transmission with the first functional component at the second transmission rate;
Wherein the second transmission rate is higher than the first transmission rate.
7. the method of claim 6, wherein prior to transmitting data with the first functional component at the second transmission rate, further comprising:
Receiving the test message sent by the first functional component again at the second transmission rate;
And feeding back a response message to the first functional component again at the second transmission rate.
8. the method of claim 6 or 7, further comprising:
under the condition that the test message sent by the first functional component is not received at the second transmission rate, receiving the test message sent by the first functional component at a reduced transmission rate, and feeding back a response message to the first functional component at the reduced transmission rate;
And transmitting data with the first functional component at the transmission rate of the feedback response message.
9. The method of claim 8, wherein the reduced transmission rate is less than the second transmission rate and greater than or equal to the first transmission rate.
10. the method according to claim 8, wherein before the data transmission with the first functional component at the transmission rate of the feedback reply packet, further comprising:
Receiving the test message sent by the first functional component again at the transmission rate of the feedback response message;
And feeding back the response message to the first functional component again at the transmission rate of feeding back the response message.
11. An apparatus for data transmission comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method of any of claims 1 to 5, or the method of any of claims 6 to 10, when executing the program instructions.
12. The apparatus of claim 11, wherein the means for data transmission is a communication component or a control component.
13. an electrical household appliance comprising the apparatus of claim 11 or claim 12.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the method for data transmission according to any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910756895.4A CN110572440B (en) | 2019-08-16 | 2019-08-16 | Method and device for data transmission, household appliance and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910756895.4A CN110572440B (en) | 2019-08-16 | 2019-08-16 | Method and device for data transmission, household appliance and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110572440A true CN110572440A (en) | 2019-12-13 |
CN110572440B CN110572440B (en) | 2022-03-25 |
Family
ID=68775636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910756895.4A Active CN110572440B (en) | 2019-08-16 | 2019-08-16 | Method and device for data transmission, household appliance and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110572440B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114885372A (en) * | 2022-05-20 | 2022-08-09 | 深圳市银河通信科技有限公司 | Be applied to intelligent control's wifi module |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107800597A (en) * | 2017-09-30 | 2018-03-13 | 广东美的制冷设备有限公司 | Data transmission method, device and the computer-readable recording medium of home appliance |
CN108021471A (en) * | 2016-11-04 | 2018-05-11 | 三星电子株式会社 | The method of data storage device, data handling system and manufaturing data storage device |
CN108540965A (en) * | 2018-03-01 | 2018-09-14 | 北京中油瑞飞信息技术有限责任公司 | Internet of Things communication means, device and storage medium based on LoRa technologies |
CN108616525A (en) * | 2018-04-16 | 2018-10-02 | 深圳市小满科技有限公司 | Website access method and device, electronic equipment and storage medium |
CN109921962A (en) * | 2019-04-16 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Bandwidth Measurement Method, device, computer readable storage medium and computer equipment |
-
2019
- 2019-08-16 CN CN201910756895.4A patent/CN110572440B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108021471A (en) * | 2016-11-04 | 2018-05-11 | 三星电子株式会社 | The method of data storage device, data handling system and manufaturing data storage device |
CN107800597A (en) * | 2017-09-30 | 2018-03-13 | 广东美的制冷设备有限公司 | Data transmission method, device and the computer-readable recording medium of home appliance |
CN108540965A (en) * | 2018-03-01 | 2018-09-14 | 北京中油瑞飞信息技术有限责任公司 | Internet of Things communication means, device and storage medium based on LoRa technologies |
CN108616525A (en) * | 2018-04-16 | 2018-10-02 | 深圳市小满科技有限公司 | Website access method and device, electronic equipment and storage medium |
CN109921962A (en) * | 2019-04-16 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Bandwidth Measurement Method, device, computer readable storage medium and computer equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114885372A (en) * | 2022-05-20 | 2022-08-09 | 深圳市银河通信科技有限公司 | Be applied to intelligent control's wifi module |
CN114885372B (en) * | 2022-05-20 | 2022-12-13 | 深圳市银河通信科技有限公司 | Be applied to intelligent control's wifi module |
Also Published As
Publication number | Publication date |
---|---|
CN110572440B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110611691B (en) | Message pushing method, system and storage medium | |
EP3331197B1 (en) | A method and system for monitoring a connection status of a device | |
CN110808948B (en) | Remote procedure calling method, device and system | |
CN110446196B (en) | Gateway control method and device, gateway working method and device and electronic equipment | |
CN110582998A (en) | Group communication method and device, computer storage medium and computer equipment | |
CN107529229B (en) | Data transmission method, device and system | |
CN113271687B (en) | Data transmission method, service base station and anchor point base station | |
CN110958308B (en) | Method for network distribution, Internet of things equipment and access equipment | |
CN104461978B (en) | Method and device for unidirectional data transmission | |
CN110572440B (en) | Method and device for data transmission, household appliance and storage medium | |
CN106850554B (en) | Method and device for dual-system directional connection | |
CN114884805B (en) | Data transmission method, device, terminal and storage medium | |
EP0336547A2 (en) | Computer network and method for operating it | |
US10356666B2 (en) | Communication device and communication control method | |
CN111726406A (en) | Data transmission method and related equipment | |
CN113573252B (en) | Data transmission method, system, chip, electronic device and storage medium | |
CN110213748A (en) | Data transmission method, device, terminal and system | |
CN106488537B (en) | Sending method, device and mobile terminal | |
CN106060959A (en) | Method and device for preventing resending of network connection message and android system | |
CN105718400A (en) | SPI based communication method | |
CN110890982A (en) | Method for network distribution, access equipment and Internet of things equipment | |
CN105991736B (en) | A kind of long-range control method and equipment | |
CN113079039B (en) | Method and system for multi-host network distribution, communication host and storage medium | |
CN113747206B (en) | Data feedback control method and system, display screen controller and display control card | |
CN111107663B (en) | Data transmission method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |