CN112788662A - Data transmitting and receiving method and device - Google Patents

Data transmitting and receiving method and device Download PDF

Info

Publication number
CN112788662A
CN112788662A CN201911115557.9A CN201911115557A CN112788662A CN 112788662 A CN112788662 A CN 112788662A CN 201911115557 A CN201911115557 A CN 201911115557A CN 112788662 A CN112788662 A CN 112788662A
Authority
CN
China
Prior art keywords
terminal
selection information
terminal selection
data
data frame
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
CN201911115557.9A
Other languages
Chinese (zh)
Other versions
CN112788662B (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.)
Suzhou Kilometer Electronic Technology Co ltd
Original Assignee
Suzhou Kilometer Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Kilometer Electronic Technology Co ltd filed Critical Suzhou Kilometer Electronic Technology Co ltd
Publication of CN112788662A publication Critical patent/CN112788662A/en
Application granted granted Critical
Publication of CN112788662B publication Critical patent/CN112788662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The data sending and receiving method and device provided by the embodiment of the invention determine a data frame to be sent, wherein the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal; and sending the data frame to the target Internet of things terminal. Therefore, the data frame to be sent is set as two parts of terminal selection information and content information, and the terminal selection information set in the frame header enables the receiving terminal to determine whether the data frame corresponds to the terminal as soon as possible, so that the non-target terminal does not need to receive the whole data frame, the flexibility of receiving and sending is improved, and the power consumption and the cost of the system are reduced.

Description

Data transmitting and receiving method and device
Technical Field
The embodiment of the invention relates to the field of the Internet of things, in particular to a method and a device for transmitting and receiving data.
Background
In many applications of the existing internet of things, a terminal can determine whether the terminal needs to execute a task only after receiving and analyzing a complete data packet; in a network with many terminals, if a specific terminal is frequently designated to perform a task, all terminals are required to receive broadcast data of the designated terminal each time, and for unselected terminals, much energy is wasted for ineffective data reception.
Disclosure of Invention
The data sending and receiving method and device provided by the embodiment of the invention mainly solve the technical problem of resource waste of the Internet of things system in the related technology.
In order to solve the above technical problem, an embodiment of the present invention provides a data sending method, including:
determining a data frame to be sent, wherein the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal;
and sending the data frame to the target Internet of things terminal.
Optionally, the terminal selection information includes:
an ID of the terminal, an index, or other characteristic information uniquely bound to the terminal.
Optionally, the terminal selection information includes at least two fields, and each field corresponds to a sub-selection information of a corresponding type.
Optionally, according to the size of the distinctiveness of the sub-selection information corresponding to different terminals, corresponding fields are set in the terminal selection information according to the order from the large to the small of the distinctiveness.
Optionally, each field in the terminal selection information is separately encoded.
Optionally, the field is encoded by an error correction code or an orthogonal code.
The embodiment of the invention also provides a data receiving method, which comprises the following steps:
receiving data frames, and sequentially analyzing and acquiring terminal selection information in the data frames according to a receiving sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal;
when the terminal selection information is not matched with the terminal of the Internet of things, exiting from the current data frame receiving state;
and when the terminal selection information is matched with the terminal of the Internet of things, receiving the complete data frame.
Optionally, the terminal selection information includes at least two fields, and each field corresponds to a sub-selection information of a corresponding type.
An embodiment of the present invention further provides a data sending apparatus, including:
the data determining module is used for determining a data frame to be sent, wherein the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target terminal;
and the sending module is used for sending the data frame to the target terminal.
An embodiment of the present invention further provides a data receiving apparatus, including:
the receiving module is used for receiving the data frames and sequentially analyzing and acquiring the terminal selection information in the data frames according to the receiving sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal;
the processing module is used for exiting the current data frame receiving state when the terminal selection information is not matched with the terminal of the Internet of things;
and when the terminal selection information is matched with the terminal of the Internet of things, receiving the complete data frame.
The invention has the beneficial effects that:
according to the data sending and receiving method and device provided by the embodiment of the invention, a data frame to be sent is determined, the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal; and sending the data frame to the target Internet of things terminal. Therefore, the data frame to be sent is set as two parts of terminal selection information and content information, and the terminal selection information arranged in the frame header enables the receiving terminal to determine whether the data frame corresponds to the terminal as soon as possible, so that the non-target terminal does not need to receive the whole data frame, the flexibility of receiving and sending is improved, and the consumption of system resources is reduced.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of a data transmission method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a data frame structure according to an embodiment of the present invention;
fig. 3 is a flowchart of a data receiving method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a data transmission apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a data receiving apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
the present embodiment provides a data transmission method, please refer to fig. 1, where the method includes:
s101, determining a data frame to be sent, wherein the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal;
and S102, sending the data frame to a target Internet of things terminal.
In this embodiment, the data sending method changes a data frame structure of the current internet of things application, and is mainly embodied in that a frame header part of the data frame structure in this embodiment is provided with terminal selection information. Because the data frames are transmitted and received in sequence, the terminal selection information arranged at the frame header can be preferentially acquired by other Internet of things terminals, so that the other Internet of things terminals can quickly determine whether the terminals are target terminals according to the terminal selection information, and the current receiving flow is immediately stopped once the non-target terminals are detected, thereby saving system resources.
The structure of the data frame includes at least two parts, which are the aforementioned terminal selection information and content information, respectively, from beginning to end. The content information is the main content of the data frame transmission, and includes but is not limited to status information, command information, data, and the like. The interaction between the terminals of the internet of things, i.e. through the content information, please refer to fig. 2.
During the process of transmitting and receiving data frames, encoding and encryption operations are required. In order to further improve the transceiving efficiency and the identification of the terminal selection information, the terminal selection information and the content information are separately coded, so that the content information is not decoded together because the terminal selection information is decoded during decoding; the coding means of the terminal selection information can also be set to be relatively simple, after all, the coding means does not contain the actually interactive content data, but only is used for identifying the destination terminal, and the simple but fast coding and decoding means is more reasonable.
In some embodiments, the terminal selection information may include:
at least one of an ID, an index, or other characteristic information uniquely bound to the terminal, such as a MAC address. The ID of a terminal is also the identity of the terminal, and each terminal corresponds to an identity; the index may be an index corresponding to location information of the terminal, and may be geographical location information, network location information, or the like; the MAC Address is a Media Access Control Address, which is translated into a MAC Address, also called a local area network Address (LAN Address), a MAC Address, an Ethernet Address (Ethernet Address) or a Physical Address (Physical Address), and is an Address for confirming the location of the network device. Most of the access ways to the Internet are to organize the hosts together through a local area network, and then connect with the Internet through a device such as a switch or a router. Therefore, the problem of how to distinguish specific users and prevent the IP address from being stolen occurs. Since the IP address is only a logical identification, anyone can modify it at will, and therefore cannot be used to specifically identify a user. The MAC address is not, but it is fixed inside the network card. Theoretically, hardware, i.e., network cards, cannot generally be impersonated unless stolen. Based on this characteristic of the MAC address, the local area network adopts a method of identifying a specific user by using the MAC address. In this embodiment, only a part of the terminal selection information is listed, and when a person skilled in the art encounters the technical solutions in this application, other feature information may be adopted as the terminal selection information, which is not limited in this embodiment.
In some embodiments, the terminal selection information may include at least two fields, each field corresponding to a respective type of sub-selection information. The terminal selection information corresponding to one terminal may correspond to a plurality of different types of sub-selection information. Each piece of sub-selection information is embodied as a field in the terminal selection information, the length of the field is indefinite, the sizes of the fields of various pieces of sub-selection information are not necessarily equal, and this embodiment does not limit this.
In some embodiments, corresponding fields are set in the terminal selection information in order of the discriminativity from large to small, according to the magnitude of the discriminativity of the sub-selection information corresponding to different terminals. In order to improve the efficiency of distinguishing whether the data frame corresponds to the terminal from the terminal selection information of the terminal of the internet of things, the data frame is arranged from large to small according to the distinguishing size corresponding to each piece of sub-selection information. That is, more differentiated data is placed in the front of the terminal selection information, and less differentiated data is placed in the rear of the terminal selection information. For example, when a plurality of internet of things terminals in a system are divided into 3 rows and 10 columns, and the sub-selection information is coordinates, the column coordinates can be placed in front of the row coordinates, so that 9 columns of the 10 columns can be excluded as soon as possible, and the efficiency is improved.
In some embodiments, the various fields in the terminal selection information may be encoded separately. When the terminal selection information includes a plurality of fields, each field may be encoded in a different manner, for example, the fields may be encoded by an error correction code or an orthogonal code, so that it may be ensured that correct field data may be received even under certain interference, and reliability of the fields may be enhanced by encoding.
The embodiment provides a data sending method, which includes determining a data frame to be sent, where the data frame at least sequentially includes terminal selection information and content information, the terminal selection information and the content information are separately encoded, and the terminal selection information corresponds to a target internet of things terminal; and sending the data frame to the target Internet of things terminal. Therefore, the data frame to be sent is set as two parts of terminal selection information and content information, and the terminal selection information arranged in the frame header enables the receiving terminal to determine whether the data frame corresponds to the terminal as soon as possible, so that the non-target terminal does not need to receive the whole data frame, the flexibility of receiving and sending is improved, and the consumption of system resources is reduced.
Example two
The present embodiment provides a data receiving method, please refer to fig. 3, which includes:
s301, receiving the data frames, and sequentially analyzing and acquiring terminal selection information in the data frames according to a receiving sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to the target Internet of things terminal;
s302, when the terminal selection information is not matched with the terminal of the Internet of things, exiting from the current data frame receiving state;
and S303, receiving a complete data frame when the terminal selection information is matched with the terminal of the Internet of things.
In this embodiment, the data receiving method changes a data frame structure of the current internet of things application, and is mainly embodied in that a frame header part of the data frame structure in this embodiment is provided with terminal selection information. Because the data frames are transmitted and received in sequence, the terminal selection information arranged at the frame header can be preferentially acquired by the terminal of the Internet of things, so that whether the terminal is a target terminal can be quickly determined according to the terminal selection information, and once the non-target terminal is detected, the current receiving flow is immediately stopped, so that system resources are saved.
The structure of the data frame includes at least two parts, which are the aforementioned terminal selection information and content information, respectively, from beginning to end. The content information is the main content received by the data frame, and includes but is not limited to status information, command information, data, and the like. The interaction between the terminals of the internet of things is carried out through the content information. However, once the terminal is identified as a non-target terminal, the receiving process of the content information is not performed.
During the process of transmitting and receiving data frames, encoding and encryption operations are required. In order to further improve the transceiving efficiency and the identification of the terminal selection information, the terminal selection information and the content information are separately coded, so that the content information is not decoded together because the terminal selection information is decoded during decoding; the coding means of the terminal selection information can also be set to be relatively simple, after all, the coding means does not contain the actually interactive content data, but only is used for identifying the destination terminal, and the simple but fast coding and decoding means is more reasonable.
In some embodiments, the terminal selection information may include at least two fields, each field corresponding to a respective type of sub-selection information. The terminal selection information corresponding to one terminal may correspond to a plurality of different types of sub-selection information. Each piece of sub-selection information is embodied as a field in the terminal selection information, the length of the field is indefinite, the sizes of the fields of various pieces of sub-selection information are not necessarily equal, and this embodiment does not limit this.
In some embodiments, corresponding fields are set in the terminal selection information in order of the discriminativity from large to small, according to the magnitude of the discriminativity of the sub-selection information corresponding to different terminals. In order to improve the efficiency of distinguishing whether the data frame corresponds to the terminal from the terminal selection information, the data frame is arranged from large to small according to the distinguishing size corresponding to each sub-selection information. That is, more differentiated data is placed in the front of the terminal selection information, and less differentiated data is placed in the rear of the terminal selection information.
In some embodiments, the various fields in the terminal selection information may be encoded separately. When the terminal selection information includes a plurality of fields, each field may be encoded in a different manner, for example, the field may be encoded by an error correction code, which may ensure that correct field data may be received even under certain interference.
The embodiment provides a data receiving method, which receives a data frame and sequentially analyzes and acquires terminal selection information in the data frame according to a time sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to the target Internet of things terminal; when the terminal selection information is not matched with the terminal of the Internet of things, exiting from the receiving state of the current data frame; and when the terminal selection information is matched with the terminal of the Internet of things, receiving a complete data frame. Therefore, the data frame is set as the terminal selection information and the content information, and the terminal selection information set in the frame header enables the terminal to determine whether the data frame corresponds to the terminal as soon as possible when the data frame is received, so that the non-target terminal does not need to receive the whole data frame, the receiving and transmitting flexibility is improved, and the system resource consumption is reduced.
EXAMPLE III
The present embodiment provides a data sending apparatus, please refer to fig. 4, including:
a data determining module 41, configured to determine a data frame to be sent, where the data frame at least sequentially includes terminal selection information and content information, the terminal selection information and the content information are separately encoded, and the terminal selection information corresponds to a target terminal;
and a sending module 42, configured to send the data frame to the target terminal.
In this embodiment, a data frame structure received and transmitted by the current application of the internet of things is changed, and mainly embodied in that a frame header part of the data frame structure in this embodiment is provided with terminal selection information. Because the data frames are transmitted and received in sequence, the terminal selection information arranged at the frame header can be preferentially acquired by other Internet of things terminals, so that the other Internet of things terminals can quickly determine whether the terminals are target terminals according to the terminal selection information, and the current receiving flow is immediately stopped once the non-target terminals are detected, thereby saving system resources.
The structure of the data frame includes at least two parts, which are the aforementioned terminal selection information and content information, respectively, from beginning to end. The content information is the main content of the data frame transmission, and includes but is not limited to status information, command information, data, and the like. The interaction between the terminals of the internet of things is carried out through the content information.
During the process of transmitting and receiving data frames, encoding and encryption operations are required. In order to further improve the transceiving efficiency and the identification of the terminal selection information, the terminal selection information and the content information are separately coded, so that the content information is not decoded together because the terminal selection information is decoded during decoding; the coding means of the terminal selection information can also be set to be relatively simple, after all, the coding means does not contain the actually interactive content data, but only is used for identifying the destination terminal, and the simple but fast coding and decoding means is more reasonable.
In some embodiments, the terminal selection information may include:
at least one of ID, index and MAC address of the terminal. The ID of a terminal is also the identity of the terminal, and each terminal corresponds to an identity; the index may be an index corresponding to location information of the terminal, and may be geographical location information, network location information, or the like; the MAC Address is a Media Access Control Address (MAC Address) translated into a MAC Address, also called local area network Address (lan Address), MAC Address, Ethernet Address or Physical Address (Physical Address), which is an Address used to confirm the location of the network device. Most of the access ways to the Internet are to organize the hosts together through a local area network, and then connect with the Internet through a device such as a switch or a router. Therefore, the problem of how to distinguish specific users and prevent the IP address from being stolen occurs. Since the IP address is only a logical identification, anyone can modify it at will, and therefore cannot be used to specifically identify a user. The MAC address is not, but it is fixed inside the network card. Theoretically, hardware, i.e., network cards, cannot generally be impersonated unless stolen. Based on this characteristic of the MAC address, the local area network adopts a method of identifying a specific user by using the MAC address.
In some embodiments, the terminal selection information may include at least two fields, each field corresponding to a respective type of sub-selection information. The terminal selection information corresponding to one terminal may correspond to a plurality of different types of sub-selection information. Each piece of sub-selection information is embodied as a field in the terminal selection information, the length of the field is indefinite, the sizes of the fields of various pieces of sub-selection information are not necessarily equal, and this embodiment does not limit this.
In some embodiments, corresponding fields are set in the terminal selection information in order of the discriminativity from large to small, according to the magnitude of the discriminativity of the sub-selection information corresponding to different terminals. In order to improve the efficiency of distinguishing whether the data frame corresponds to the terminal from the terminal selection information of the terminal of the internet of things, the data frame is arranged from large to small according to the distinguishing size corresponding to each piece of sub-selection information. That is, more differentiated data is placed in the front of the terminal selection information, and less differentiated data is placed in the rear of the terminal selection information. For example, when a plurality of internet of things terminals in a system are divided into 3 rows and 10 columns, and the sub-selection information is coordinates, the column coordinates can be placed in front of the row coordinates, so that 9 columns of the 10 columns can be excluded as soon as possible, and the efficiency is improved.
In some embodiments, the various fields in the terminal selection information may be encoded separately. When the terminal selection information includes a plurality of fields, each field may be encoded in a different manner, for example, the field may be encoded by an error correction code, which may ensure that correct field data may be received even under certain interference.
Example four
The present embodiment provides a data receiving apparatus, please refer to fig. 5, which includes:
a receiving module 51, configured to receive the data frame, and sequentially analyze and acquire terminal selection information in the data frame according to a receiving sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to the target Internet of things terminal;
the processing module 52 is configured to exit from the current receiving state of the data frame when the terminal selection information is not matched with the terminal of the internet of things;
and when the terminal selection information is matched with the terminal of the Internet of things, receiving a complete data frame.
In this embodiment, a data frame structure received and transmitted by the current application of the internet of things is changed, and mainly embodied in that a frame header part of the data frame structure in this embodiment is provided with terminal selection information. Because the data frames are transmitted and received in sequence, the terminal selection information arranged at the frame header can be preferentially acquired by the terminal of the Internet of things, so that whether the terminal is a target terminal can be quickly determined according to the terminal selection information, and once the non-target terminal is detected, the current receiving flow is immediately stopped, so that system resources are saved.
The structure of the data frame includes at least two parts, which are the aforementioned terminal selection information and content information, respectively, from beginning to end. The content information is the main content received by the data frame, and includes but is not limited to status information, command information, data, and the like. The interaction between the terminals of the internet of things is carried out through the content information. However, once the terminal is identified as a non-target terminal, the receiving process of the content information is not performed.
During the process of transmitting and receiving data frames, encoding and encryption operations are required. In order to further improve the transceiving efficiency and the identification of the terminal selection information, the terminal selection information and the content information are separately coded, so that the content information is not decoded together because the terminal selection information is decoded during decoding; the coding means of the terminal selection information can also be set to be relatively simple, after all, the coding means does not contain the actually interactive content data, but only is used for identifying the destination terminal, and the simple but fast coding and decoding means is more reasonable.
In some embodiments, the terminal selection information may include at least two fields, each field corresponding to a respective type of sub-selection information. The terminal selection information corresponding to one terminal may correspond to a plurality of different types of sub-selection information. Each piece of sub-selection information is embodied as a field in the terminal selection information, the length of the field is indefinite, the sizes of the fields of various pieces of sub-selection information are not necessarily equal, and this embodiment does not limit this.
In some embodiments, corresponding fields are set in the terminal selection information in order of the discriminativity from large to small, according to the magnitude of the discriminativity of the sub-selection information corresponding to different terminals. In order to improve the efficiency of distinguishing whether the data frame corresponds to the terminal from the terminal selection information, the data frame is arranged from large to small according to the distinguishing size corresponding to each sub-selection information. That is, more differentiated data is placed in the front of the terminal selection information, and less differentiated data is placed in the rear of the terminal selection information.
In some embodiments, the various fields in the terminal selection information may be encoded separately. When the terminal selection information includes a plurality of fields, each field may be encoded in a different manner, for example, the field may be encoded by an error correction code, which may ensure that correct field data may be received even under certain interference.
The embodiment provides a data receiving method, which receives a data frame and sequentially analyzes and acquires terminal selection information in the data frame according to a time sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to the target Internet of things terminal; when the terminal selection information is not matched with the terminal of the Internet of things, exiting from the receiving state of the current data frame; and when the terminal selection information is matched with the terminal of the Internet of things, receiving a complete data frame. Therefore, the data frame is set as the terminal selection information and the content information, and the terminal selection information set in the frame header enables the terminal to determine whether the data frame corresponds to the terminal as soon as possible when the data frame is received, so that the non-target terminal does not need to receive the whole data frame, the receiving and transmitting flexibility is improved, and the system resource consumption is reduced.
The present embodiments also provide a computer-readable storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage terminals, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The computer-readable storage medium in this embodiment may be used to store one or more computer programs, and the stored one or more computer programs may be executed by a processor to implement at least one step of the data transmission method and the data reception method in the foregoing embodiments.
The present embodiment also provides a computer program (or computer software), which can be distributed on a computer readable medium and executed by a computing terminal to implement at least one step of the data transmission method and the data reception method in the foregoing embodiments.
The present embodiment also provides a computer program product comprising a computer readable terminal having stored thereon a computer program as shown above. The computer-readable terminal in this embodiment may include a computer-readable storage medium as shown above.
It will be apparent to those skilled in the art that all or some of the steps of the methods disclosed above, the terminals, the functional modules/units in the terminals, may be implemented as software (which may be implemented in computer program code executable by a computing terminal), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A data transmission method, comprising:
determining a data frame to be sent, wherein the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal;
and sending the data frame to the target Internet of things terminal.
2. The data transmission method of claim 1, wherein the terminal selection information comprises:
an ID of the terminal, an index, or other characteristic information uniquely bound to the terminal.
3. The data transmission method according to claim 1 or 2, wherein the terminal selection information includes at least two fields, each field corresponding to a corresponding type of sub-selection information.
4. The data transmission method according to claim 3, wherein corresponding fields are set in the terminal selection information in the order of the discriminativity from large to small according to the magnitude of the discriminativity of the sub-selection information corresponding to different terminals.
5. The data transmission method of claim 4, wherein each field in the terminal selection information is separately encoded.
6. The data transmission method of claim 4, further comprising: the field is encoded by an error correction code or an orthogonal code.
7. A data receiving method, comprising:
receiving data frames, and sequentially analyzing and acquiring terminal selection information in the data frames according to a receiving sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal;
when the terminal selection information is not matched with the terminal of the Internet of things, exiting from the current data frame receiving state;
and when the terminal selection information is matched with the terminal of the Internet of things, receiving the complete data frame.
8. The data receiving method as claimed in claim 7, wherein the terminal selection information includes at least two fields, each field corresponding to a corresponding type of sub-selection information.
9. A data transmission apparatus, comprising:
the data determining module is used for determining a data frame to be sent, wherein the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target terminal;
and the sending module is used for sending the data frame to the target terminal.
10. A data receiving device, comprising:
the receiving module is used for receiving the data frames and sequentially analyzing and acquiring the terminal selection information in the data frames according to the receiving sequence; the data frame at least sequentially comprises terminal selection information and content information, the terminal selection information and the content information are separately coded, and the terminal selection information corresponds to a target Internet of things terminal;
the processing module is used for exiting the current data frame receiving state when the terminal selection information is not matched with the terminal of the Internet of things;
and when the terminal selection information is matched with the terminal of the Internet of things, receiving the complete data frame.
CN201911115557.9A 2019-11-01 2019-11-14 Data sending and receiving method and device Active CN112788662B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911060184 2019-11-01
CN201911060184X 2019-11-01

Publications (2)

Publication Number Publication Date
CN112788662A true CN112788662A (en) 2021-05-11
CN112788662B CN112788662B (en) 2022-07-15

Family

ID=75749110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911115557.9A Active CN112788662B (en) 2019-11-01 2019-11-14 Data sending and receiving method and device

Country Status (1)

Country Link
CN (1) CN112788662B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754041A (en) * 2015-03-11 2015-07-01 酷派软件技术(深圳)有限公司 Internet of things communication method and related devices
WO2017148419A1 (en) * 2016-03-03 2017-09-08 华为技术有限公司 Data transmission method and server
CN110213870A (en) * 2019-06-27 2019-09-06 江苏宜达新材料科技股份有限公司 A kind of lamp light control method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754041A (en) * 2015-03-11 2015-07-01 酷派软件技术(深圳)有限公司 Internet of things communication method and related devices
WO2017148419A1 (en) * 2016-03-03 2017-09-08 华为技术有限公司 Data transmission method and server
CN110213870A (en) * 2019-06-27 2019-09-06 江苏宜达新材料科技股份有限公司 A kind of lamp light control method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112788662B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
US20190004781A1 (en) Application push method, and a service device
US10943010B2 (en) Generation of a random value for a child process
CN111402570B (en) Infrared remote control signal receiving method, receiving system, receiving device and storage medium
US11316925B2 (en) Video data storage method and device in cloud storage system
CN113301568A (en) Network distribution method and device and intelligent household equipment
CN111181698B (en) Data processing method, device, equipment and medium
CN106878970B (en) Method and device for identifying service request for changing mobile phone number
CN107969003B (en) Wireless access authentication method
CN108965112A (en) The method and device of file transmission is carried out using instant message applications
CN112788662B (en) Data sending and receiving method and device
US9876644B2 (en) Authenticating data packet based on hash image of the data packet in erasure coding-based data transmission
CN113596832A (en) Network connection establishing method and device, storage medium and electronic device
US10348387B2 (en) Spreading method, spreading control method, and apparatus thereof
US20150172371A1 (en) Method and device for providing communication connection for a plurality of candidate applications in a mobile device
CN109951255A (en) A kind of data transmission method based on TCP, system, source device and target device
EP3585034B1 (en) Big data-based method for learning and protecting service logic and device for learning and protection
CN109067622A (en) State detection method, apparatus and network server
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
CN112188562B (en) Multicast scheduling method and device for relay base station, storage medium and electronic device
US20170169239A1 (en) Method for file synchronization, the receiver equipment and systems
CN108833018B (en) Networking communication system and method
CN102341784A (en) Method for quick map recovery in case of error in moca
CN104134052A (en) RFID anti-collision method based on self-adaptive dividing mechanism
CN113839826B (en) Method and device for detecting windows terminal and computer readable storage medium
CN112788778B (en) Data sending method and 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