CN112672425A - Data transmission method and device and computer equipment - Google Patents

Data transmission method and device and computer equipment Download PDF

Info

Publication number
CN112672425A
CN112672425A CN202110278537.4A CN202110278537A CN112672425A CN 112672425 A CN112672425 A CN 112672425A CN 202110278537 A CN202110278537 A CN 202110278537A CN 112672425 A CN112672425 A CN 112672425A
Authority
CN
China
Prior art keywords
time slot
time
data information
duration
determining
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
CN202110278537.4A
Other languages
Chinese (zh)
Other versions
CN112672425B (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.)
Beijing Orion Star Technology Co Ltd
Original Assignee
Beijing Orion Star 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 Beijing Orion Star Technology Co Ltd filed Critical Beijing Orion Star Technology Co Ltd
Priority to CN202110278537.4A priority Critical patent/CN112672425B/en
Publication of CN112672425A publication Critical patent/CN112672425A/en
Application granted granted Critical
Publication of CN112672425B publication Critical patent/CN112672425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a data transmission method, a data transmission device and computer equipment, wherein the method comprises the following steps: the method comprises the steps of monitoring data information, determining a first time slot occupied by sending equipment of the data information and a second time slot occupied by target equipment from a configured time slot period if the data information is monitored within a set monitoring time duration, determining a time period belonging to the second time slot according to an interval time duration between the first time slot and the second time slot, and sending data in the time period belonging to the second time slot.

Description

Data transmission method and device and computer equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method and apparatus, and a computer device.
Background
Nowadays, in more and more places, intelligent robots are used to serve people's daily life. Due to the increasingly complex application environments and functions to be implemented, interaction or cooperation of multiple robots may exist in the same scene, for example, mutual avoidance, cooperative task completion, and the like, and when multiple robots interact and cooperate, communication between the multiple robots is inevitable. Therefore, a reliable communication method is required.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present application is to provide a data transmission method, in which a time period corresponding to a time slot occupied by a target device is determined according to a determined time slot occupied by a sending device and a time slot interval relationship between devices, so as to avoid collision of sending moments of multiple devices and improve reliability of communication.
A second object of the present application is to provide a data transmission device.
A third object of the present application is to propose a computer device.
A fourth object of the present application is to propose a non-transitory computer-readable storage medium.
A fifth object of the present application is to propose a computer program product.
To achieve the above object, an embodiment of a first aspect of the present application provides a data transmission method, including:
monitoring data information;
if the data information is monitored in the set monitoring duration, determining a first time slot occupied by sending equipment of the data information and a second time slot occupied by the target equipment from a configured time slot period;
and determining the time interval belonging to the second time slot according to the interval duration between the first time slot and the second time slot, and transmitting data in the time interval belonging to the second time slot.
In a possible implementation manner, the determining, according to the interval duration between the first time slot and the second time slot, a period belonging to the second time slot includes:
determining an interval duration between the first time slot and the second time slot;
delaying the interval duration from the time when the data information is received;
and determining the starting time of the second time slot according to the ending time of the interval duration.
In one possible embodiment, the method further comprises:
if any data information is not monitored in the set monitoring time length, delaying the randomly set delay time length from the end time of the monitoring time length;
and determining the starting time of the second time slot according to the ending time of the delay time length.
In a possible implementation manner, the set monitoring duration is determined according to the number of devices and a time slot duration corresponding to each device.
In a possible implementation, the determining, from the configured slot cycle, a first slot occupied by the sending device of the data information includes:
acquiring the node number of the sending equipment from the monitored data information;
and determining the time slot corresponding to the node number in the time slot cycle as the first time slot occupied by the sending equipment.
In a possible implementation manner, the time slot duration of each time slot in the time slot cycle is greater than a threshold time duration; wherein the threshold duration is determined according to the transmission delay of the data information.
In a possible implementation, each time slot in the time slot cycle corresponds to one device in a plurality of devices, and the corresponding device is used for sending the data information; wherein the plurality of devices includes the target device and the transmitting device.
In order to achieve the above object, a second embodiment of the present application provides a data transmission apparatus, including:
the monitoring module is used for monitoring data information;
the processing module is used for determining a first time slot occupied by sending equipment of the data information and a second time slot occupied by target equipment from a configured time slot cycle if the data information is monitored within a set monitoring duration;
and the determining module is used for determining the time interval belonging to the second time slot according to the interval duration between the first time slot and the second time slot, and transmitting data in the time interval belonging to the second time slot.
In a possible implementation manner, the determining module is specifically configured to:
determining an interval duration between the first time slot and the second time slot;
delaying the interval duration from the time when the data information is received;
and determining the starting time of the second time slot according to the ending time of the interval duration.
In a possible implementation manner, the processing module is further configured to delay a randomly set delay duration from an end time of the monitoring duration if any data information is not monitored within the set monitoring duration.
The determining module is further configured to determine a starting time of the second time slot according to the ending time of the delay duration.
In a possible implementation manner, the set monitoring duration is determined according to the number of devices and a time slot duration corresponding to each device.
In a possible implementation manner, the processing module is specifically configured to:
acquiring the node number of the sending equipment from the monitored data information;
and determining the time slot corresponding to the node number in the time slot cycle as the first time slot occupied by the sending equipment.
In a possible implementation manner, the time slot duration of each time slot in the time slot cycle is greater than a threshold time duration; wherein the threshold duration is determined according to the transmission delay of the data information.
In a possible implementation, each time slot in the time slot cycle corresponds to one device in a plurality of devices, and the corresponding device is used for sending the data information; wherein the plurality of devices includes the target device and the transmitting device.
To achieve the above object, a third aspect of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the method according to the first aspect.
In order to achieve the above object, a fourth aspect of the present application proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method according to the first aspect.
To achieve the above object, an embodiment of a fifth aspect of the present application provides a computer program product, wherein when instructions of the computer program product are executed by a processor, the method according to the first aspect is performed.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
the method comprises the steps of monitoring data information, determining a first time slot occupied by sending equipment of the data information and a second time slot occupied by target equipment from a configured time slot period if the data information is monitored within a set monitoring time duration, determining a time period belonging to the second time slot according to an interval time duration between the first time slot and the second time slot, and sending data in the time period belonging to the second time slot.
Additional aspects and advantages of the present application 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 present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another data transmission method according to an embodiment of the present application;
fig. 3 is a schematic view of a data transmission scenario provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
FIG. 5 is a block diagram of an exemplary computer device of an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The data transmission method, apparatus, and computer device of the embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application.
As shown in fig. 1, the method comprises the steps of:
step 101, data information is monitored.
The data transmission method of the present embodiment is executed by the target device.
Step 102, if the data information is monitored in the set monitoring duration, determining a first time slot occupied by the sending equipment of the data information and a second time slot occupied by the target equipment from the configured time slot period.
The present embodiment includes a plurality of devices, each of which can send and receive data information, the plurality of devices includes a target device and a sending device, any device in the plurality of devices can be the target device, and the target device can be one or more devices. As one implementation manner, the sending device sends the data information in a broadcast manner, so that all devices except the sending device in the plurality of devices can receive the data information sent by the sending device. The transmitting device may listen to data information transmitted by other devices in time slots other than the first time slot.
As an implementation manner of this embodiment, a Long Range Radio (Lora) modulation module, for example, an Lora modulation module operating in a 400MHz frequency band, is disposed in a plurality of devices, and the devices transmit and receive data information through the Lora modulation module, where the module in each device may be regarded as a communication node, so as to implement coordination operation among the devices. Wherein the plurality of devices may be robots, but are not limited to robots. In an implementation manner of this embodiment, the node numbers, for example, the node numbers R1 and R2 … RN, may be preset by a plurality of devices. Wherein, the device and the node number are in one-to-one correspondence. In an implementation manner of this embodiment, the data information sent by the sending device may be sent in a data packet, and the data packet may include at least one field of a data identification code, a packet sequence number, a device node number, a data type, a data length, data, a check, and the like. The data identification code indicates the initial position of the transmitted data packets, and the packet sequence number indicates the sequence of the data packets, wherein the sequence of the data packets indicates the sequence among the data packets transmitted by each transmitting device; the device node number indicates the device that sent the packet.
In this embodiment, the monitoring duration is set for the target device to monitor data sent by other devices, so as to determine whether any device is sending data information. The set monitoring duration can be preset according to the requirements of the application scene.
As a possible implementation manner, the set monitoring duration may be a preset duration.
As another possible implementation manner, in order to improve the reliability of monitoring, other devices existing around the target device are determined to ensure the timing sequence of data information transmission of the target device, and the set monitoring duration may be determined according to the number of devices and the time slot duration corresponding to each device, for example, the number of devices is 4, the time slot duration corresponding to each device is 20 milliseconds, and the set monitoring duration is at least 80 milliseconds.
In this embodiment, a slot cycle includes multiple slots (slots), where the multiple slots in the slot cycle correspond to multiple devices one to one, so that the multiple devices can determine occupied slots according to the slot cycle, where the slots occupied by the devices are used by the corresponding devices to send data information in the slots. For convenience of distinction, in this embodiment, a time slot occupied by the sending device corresponding to the monitored data information is referred to as a first time slot, and a time slot occupied by the target device is referred to as a second time slot.
It should be noted that, in each configured time slot cycle, only one device is allowed to send data information, but multiple devices listen to the data information at the same time, that is, in the corresponding time slot, one device that sends the data information is a sending device, and one or more devices that listen to the data information are target devices. The time slot duration of each time slot in the time slot cycle is greater than a threshold time duration, wherein the threshold time duration is determined according to the transmission delay of the data information, namely the threshold time duration refers to the time duration required by the sending equipment for sending the data information to the target equipment for receiving the data information, and is marked as td.
As an implementation manner, the target device may obtain a node number of the sending device according to the monitored data information, and determine a time slot corresponding to the node number in the time slot cycle as a first time slot occupied by the sending device. Meanwhile, the target device can also determine a second time slot occupied by the target device according to the corresponding relationship between the device and the occupied time slot.
And 103, determining the time interval belonging to the second time slot according to the interval duration between the first time slot and the second time slot, and transmitting data in the time interval belonging to the second time slot.
In an implementation manner of this embodiment, an interval duration between a first time slot and a second time slot is determined, the interval duration is delayed from a time when data information is received, and if the first time slot and the second time slot are adjacent time slots, the interval duration between the first time slot and the second time slot is a transmission margin of the first time slot; if the first time slot and the second time slot are non-adjacent time slots, the interval duration between the first time slot and the second time slot is the product of the number of the time slots between the first time slot and the second time slot and the time slot duration, and then a transmission margin is superimposed, for example, if the interval duration between the first time slot and the second time slot is one time slot, the time slot duration is t2, and the transmission margin is ta, the interval duration = t2+ ta. Furthermore, the starting time of the second time slot is determined according to the ending time of the interval duration, and the starting time of the second time slot of the target device is determined in the embodiment without complex time calibration and alignment modes, so that the time alignment mode is simple and reliable.
In another implementation manner of this embodiment, adjacent time slots exist in the time slot cycle, and in order to avoid data collision caused by transmission delay due to transmission abnormality when data transmission is performed between the adjacent time slots in the device, a time margin may be set between the adjacent time slots, so as to improve reliability of data transmission. Furthermore, the interval duration between the first time slot and the second time slot is determined according to the transmission margin, the interval time slot duration and the time margin, which will be exemplified in the detailed following embodiments. Furthermore, according to the determined start time of the second time slot and the duration of the second time slot, the time period belonging to the second time slot is determined, that is, the time period corresponding to the start time and the end time belonging to the second time slot is determined, so that the target device sends the data information in the time period belonging to the second time slot, the way of time alignment is simplified, the signal collision caused by disordered data receiving and sending time sequence of a plurality of devices is avoided, the reliability of communication is improved, meanwhile, the capacity expansion of the device can be realized, that is, because in the application, the duration occupied by data receiving and sending of the device is set for the corresponding time slot cycle according to the number of the devices under the corresponding scene, any time slot in the time slot cycle is set, one device in the devices is allowed to send the data information, and other devices in the devices monitor the data information, and then according to the determined time slot occupied by the sending equipment and the time slot interval relation among the equipment, the time period of the time slot occupied by each equipment is determined, the complexity of network communication is simplified, and the equipment can be flexibly added according to the scene requirements.
In the data transmission method of this embodiment, data information is monitored, if the data information is monitored within a set monitoring duration, a first time slot occupied by a sending device of the data information and a second time slot occupied by a target device are determined from a configured time slot cycle, a time period belonging to the second time slot is determined according to an interval duration between the first time slot and the second time slot, and data transmission is performed in the time period belonging to the second time slot.
Based on the previous embodiment, this embodiment provides another data transmission method, which illustrates how to determine the time period that each target device occupies the second time slot before each device starts up in an initial stage, that is, before each device does not determine the time corresponding to the corresponding time slot, and fig. 2 is a schematic flow chart of another data transmission method provided in this embodiment.
As shown in fig. 2, the method may include the steps of:
step 201, data information is monitored.
In this embodiment, if the data message is monitored, step 202 is executed, and if the data message is not monitored within the set monitoring duration, step 204 is executed.
Step 202, if the data information is monitored within the set monitoring duration, determining a first time slot occupied by the sending equipment of the data information and a second time slot occupied by the target equipment from the configured time slot period.
In this embodiment, as shown in fig. 3, taking 3 devices as an example, the node numbers of the devices are R1, R2, and R3, and the slots included in the slot cycle are slot1, slot2, and slot3, which respectively represent dedicated transmission slots of the R1, R2, and R3 devices.
The devices and the time slots in the occupied time slot cycle are shown in table 1 below.
TABLE 1
Device node numbering Sending data information-number of data packet Occupied time slot
R1 D1 slot1
R2 D2 slot2
R3 D3 slot3
The set monitoring time length is determined according to the number of the devices and the time slot time length corresponding to each device, and each time slot in the time slot period corresponds to one device in the multiple devices, so that the set monitoring time length can be determined according to the number of the time slots in the time slot period and the time slot time length of each time slot, wherein the set monitoring time length is used for the target device to monitor other devices so as to determine whether the devices transmit data information or not.
In this embodiment, in the device start phase, the start times of a plurality of devices are different, and in this embodiment, the devices are taken as device R1, device R2, and device R3 as examples, for example, as shown in fig. 3, R2 starts first, R3 starts second, R1 starts last, after R2 starts, since R3 and R1 have not started yet, in order to determine other peripheral started devices by receiving data information transmitted by other transmitting devices, and avoid collision of transmission time caused by synchronous transmission of data information, in this embodiment, the set monitoring duration is set to be the sum of the slot durations corresponding to 3 devices, and is marked as T (instant slot cycle), that is, R2 continuously monitors the set duration T to determine whether data information transmitted by a transmitting device can be monitored, and if data information is monitored within the set monitoring duration T, determines the first slot occupied by the transmitting device of data information from the configured slot cycle, and a second time slot occupied by the target device R2.
As an example, if the target device is R3, as shown in fig. 3, after R3 is started, within a set duration of R3 listening, R2 is already started and transmits data information in a slot2, so that, within the set duration of listening, R3 can listen to data information D2 broadcast by R2, since the device node number indicated in the data information D2 is R2, it can be determined that the transmitting device is R2, and according to the correspondence between each device and each slot in the slot cycle, the first slot occupied by the transmitting device R2 is slot2, and the second slot occupied by the target device R3 is slot 3. Similarly, after R1 is started, since R2 and R3 are both started, and R3 transmits data information in an occupied time Slot, R1 and R3 both monitor data information, and R1 can monitor data information transmitted by R3 within a set time length of monitoring, it can be determined that the time Slot occupied by R1 is Slot 1.
Step 203, determining the time interval belonging to the second time slot according to the interval duration between the first time slot and the second time slot.
In the present embodiment, the description is made based on table 1 and fig. 3. The device R1, the device R2, and the device R3 sequentially send data information as R2, R3, and R1, and if the target device is R1, it is determined that the sending device currently sending data information is the device R2, and then the first slot2 occupied by the sending device and the second slot1 occupied by the target device R1 are non-adjacent slots. If the target device is R1, it is determined that the transmitting device currently transmitting the data information is device R3, and the first slot2 and the second slot3 are adjacent slots.
In order to avoid the conflict of data information transmission between devices occupying adjacent time slots due to unexpected delay in the process of transmitting data information by the devices, a time margin may be set between adjacent time slots, and the time margin may be flexibly set according to requirements, and may be 0 or not, which is not limited in this embodiment.
For convenience of explanation, in this embodiment, the time margin set between adjacent slots is taken as 0 ms for example. Thus, as an implementation manner, if it is determined that the interval duration between the first slot2 and the second slot1 is the duration corresponding to 1 slot3, for example, the duration corresponding to one slot is s, when the target device data information is received completely, the time t1 at which the receiving is completed can be determined, the interval duration s is delayed from the time t1, and then the end time of the interval duration is obtained, for example, the time t1 is 100 milliseconds, the interval duration s is 30 milliseconds, the end time of the interval duration is 130 milliseconds, that is, the start time of the second slot is 130 milliseconds.
As another implementation manner, in order to improve the success rate of data information transmission, in this embodiment, the time length of a timeslot of each timeslot in a timeslot period is greater than a threshold time length, where the threshold time length is determined according to the transmission delay of the data information, that is, the threshold time length is a time length required by a transmitting device to receive the data information from the transmitting device to a target device, so as to improve the accuracy of determining the start time of the second timeslot, on the basis of the end time of the determined interval time length, a difference time length between the first timeslot and the threshold time length, that is, a transmission margin, for example, the transmission margin time length is 5 milliseconds, so as to obtain that the start time of the second timeslot is 135 milliseconds, and to accurately determine the start time of the second timeslot.
It should be noted that the time duration of each time slot in this embodiment may be the same or different, and the time duration of each time slot is greater than the threshold time duration.
It should be noted that, when a time margin exists between adjacent time slots, the time margin is only required to be superimposed when determining the time interval to determine the time interval between the time slots, and the principle is the same, and is not described again in this embodiment.
It should be understood that the data listed in the present embodiment are only for illustration and are not to be construed as limiting the present embodiment.
It should be understood that, in the process of sending the data information, each device monitors other devices, and therefore any device monitoring the data information can determine the time corresponding to the time slot occupied by the corresponding device according to the above-mentioned manner of determining the time slot of the target device.
And 204, if the data information is not monitored in the set monitoring time length, determining the starting time of the second time slot according to the ending time of the monitoring time length.
In another implementation manner of this embodiment, if the data information is not monitored within the set monitoring duration, the end time of the monitoring duration is determined, and the start time of the second time slot is determined according to the end time of the monitoring duration.
In another implementation manner of this embodiment, if the data information is not monitored within the set monitoring duration, a randomly set delay duration is delayed from the end time of the monitoring duration, and the start time of the second time slot is determined according to the end time of the delay duration.
For example, as shown in fig. 3, if the number of devices is 3 and the number of slots included in the corresponding slot cycle is 3, the listening duration T = duration of slot1 + duration of slot 2+ duration of slot3 is set. The set monitoring duration indicates the total duration occupied by the multiple devices to sequentially send the data information. If the target device does not monitor the data information within the set monitoring duration, taking the target device as R2 as an example, as shown in fig. 3, after R2 is started, R2 does not monitor the data information sent by R3 and R1, and if no data information is monitored within the set monitoring duration T indicated by a, it indicates that no device sends the data information, R2 can be used as a first device to send the data information, so that the data information can be sent directly into a second time slot occupied by the target device, and the end time of the monitoring duration can be used as the start time of the second time slot to determine the time period of the second time slot, thereby avoiding time alignment in a complex manner, improving efficiency and reliability.
Further, in the present application, in order to improve the reliability of data information monitoring and avoid the conflict of the transmission time caused by that at least 2 devices cannot receive the data information transmitted by any transmitting device within the set monitoring time period T, and at least 2 devices all transmit the data information as the first device, a delay time period may be set, namely, the randomly set delay time length is delayed from the end time of the monitoring time length, and then the starting time of the target device corresponding to the second time slot is determined according to the end time of the delay time length, so that when the data information of the device cannot be received, the starting time of the time slot corresponding to the target equipment can be accurately determined based on the set ending time of the monitoring time and the randomly set delay time, so that time alignment in a complex mode is avoided, and meanwhile, the reliability is improved.
It should be noted that the randomly set delay duration may be one or more time slot durations, and may be flexibly set by a person skilled in the art according to a requirement, which is not limited in this embodiment.
Step 205, determining the time interval belonging to the second time slot according to the starting time of the second time slot.
And step 206, transmitting data in the time interval belonging to the second time slot.
In this embodiment, the target device determines the time period belonging to the second time slot according to the determined starting time of the second time slot and the duration occupied by the second time slot, so that the target device transmits data in the time period belonging to the second time slot.
In the data transmission method of this embodiment, when the data information of the device is monitored within the set monitoring duration, the first time slot occupied by the sending device of the data information and the second time slot occupied by the target device are determined from the configured time slot cycle, and the time period belonging to the second time slot is determined according to the interval duration between the first time slot and the second time slot, so that the time alignment manner is simplified, signal collision caused by a disordered data receiving and transmitting time sequence of multiple devices is avoided, the reliability of communication is improved, and meanwhile, the capacity expansion of the device can be realized. And when the data information of the equipment can not be received, the starting time of the time slot corresponding to the target equipment can be determined based on the set end time of the monitoring time and the randomly set delay time, so that time alignment in a complex mode is avoided, the efficiency and the reliability are improved, meanwhile, in the data transmission mode, the time slot corresponding to each equipment and the time period belonging to the corresponding time slot are determined based on the set time slot cycle, so that each equipment can carry out data transmission in the corresponding time slot time period, a self-defined protocol is realized, the communication efficiency is improved, and meanwhile, the maintenance steps are simplified.
In the above embodiment, how to determine the time interval of the second time slot occupied by the target device at the initial stage of device start is described, further, after the time interval of the second time slot occupied by the target device is determined, that is, after a plurality of devices perform periodic data transceiving according to the time slot cycle, the target device simultaneously monitors the data information in the process of sending the data information by the sending device, if the sending device is abnormal, the sending and receiving of the data information are not successfully realized within the time slot duration of the time slot occupied by the sending device, so that the target device receives the data information overtime, that is, the finishing time of the data information received by the target device is delayed, and the target device can update the starting time of the second time slot occupied by the target device according to the finishing time of the received data information and the interval duration between the first time slot and the second time slot occupied by the sending device with the transmission delay, the method and the device realize timely update and accuracy of the starting time of the second time slot occupied by the target device, avoid overlapping conflict between the time of the time slot occupied by the subsequent device due to overtime of the data information sent by the sending device, and improve the reliability of communication.
In order to implement the above embodiments, the present application further provides a data transmission device.
Fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
As shown in fig. 4, the apparatus includes: a listening module 41, a processing module 42 and a determining module 43.
And the monitoring module 41 is used for monitoring data information.
And the processing module 42 is configured to determine, from the configured time slot cycle, a first time slot occupied by the sending device of the data information and a second time slot occupied by the target device if the data information is monitored within the set monitoring duration.
And a determining module 43, configured to determine a time period belonging to the second time slot according to an interval duration between the first time slot and the second time slot, and perform data transmission in the time period belonging to the second time slot.
Further, in a possible implementation manner of the embodiment of the present application, the determining module 43 is specifically configured to:
determining an interval duration between the first time slot and the second time slot; delaying the interval duration from the time when the data information is received; and determining the starting time of the second time slot according to the ending time of the interval duration.
In a possible implementation manner of the embodiment of the present application, the processing module 42 is further configured to delay a randomly set delay duration from an end time of the monitoring duration if any data information is not monitored in the set monitoring duration.
The determining module 43 is further configured to determine the starting time of the second time slot according to the ending time of the delay duration.
In a possible implementation manner of the embodiment of the present application, the set monitoring duration is determined according to the number of devices and a time slot duration corresponding to each device.
In a possible implementation manner of the embodiment of the present application, the processing module 42 is specifically configured to:
acquiring the node number of the sending equipment from the monitored data information; and determining the time slot corresponding to the node number in the time slot cycle as the first time slot occupied by the sending equipment.
In a possible implementation manner of the embodiment of the present application, a time slot duration of each time slot in a time slot cycle is greater than a threshold duration; wherein the threshold duration is determined according to the transmission delay of the data information.
In a possible implementation manner of the embodiment of the present application, each time slot in the time slot cycle corresponds to one device of the multiple devices, and is used for the corresponding device to send the data information; wherein the plurality of devices includes the target device and the transmitting device.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of this embodiment, and is not repeated herein.
In the data transmission apparatus provided in the embodiment of the present application, data information is monitored, if the data information is monitored within a set monitoring duration, a first time slot occupied by a sending device of the data information and a second time slot occupied by a target device are determined from a configured time slot cycle, a time period belonging to the second time slot is determined according to an interval duration between the first time slot and the second time slot, and data transmission is performed in the time period belonging to the second time slot.
In order to implement the foregoing embodiments, the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer device implements the method according to the foregoing method embodiments.
In order to implement the above embodiments, a fourth aspect of the present application proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method according to the foregoing method embodiments.
In order to implement the foregoing embodiments, an embodiment of a fifth aspect of the present application provides a computer program product, where instructions of the computer program product, when executed by a processor, perform the method according to the foregoing method embodiments.
To implement the above embodiments, fig. 5 is a block diagram of an exemplary computer device according to an embodiment of the present application. The computer device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present application.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk read Only Memory (CD-ROM), a Digital versatile disk read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via Network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, for example, implementing the methods mentioned in the foregoing embodiments, by executing programs stored in the system memory 28.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (16)

1. A data transmission method is applied to a target device and comprises the following steps:
monitoring data information;
if the data information is monitored in the set monitoring duration, determining a first time slot occupied by sending equipment of the data information and a second time slot occupied by the target equipment from a configured time slot period;
and determining the time interval belonging to the second time slot according to the interval duration between the first time slot and the second time slot, and transmitting data in the time interval belonging to the second time slot.
2. The method of claim 1, wherein the determining the period belonging to the second time slot according to the interval duration between the first time slot and the second time slot comprises:
determining an interval duration between the first time slot and the second time slot;
delaying the interval duration from the time when the data information is received;
and determining the starting time of the second time slot according to the ending time of the interval duration.
3. The method of claim 1, further comprising:
if any data information is not monitored in the set monitoring time length, delaying the randomly set delay time length from the end time of the monitoring time length;
and determining the starting time of the second time slot according to the ending time of the delay time length.
4. The method of claim 3,
the set monitoring time length is determined according to the number of the devices and the time slot time length corresponding to each device.
5. The method according to any of claims 1-4, wherein the determining the first time slot occupied by the transmitting device of the data information from the configured slot cycle comprises:
acquiring the node number of the sending equipment from the monitored data information;
and determining the time slot corresponding to the node number in the time slot cycle as the first time slot occupied by the sending equipment.
6. The method of any of claims 1-4, wherein a slot duration of each of said slots in said slot cycle is greater than a threshold duration;
wherein the threshold duration is determined according to the transmission delay of the data information.
7. The method of any of claims 1-4, wherein each of the slot cycles corresponds to one of a plurality of devices for the corresponding device to transmit the data information; wherein the plurality of devices includes the target device and the transmitting device.
8. A data transmission apparatus, comprising:
the monitoring module is used for monitoring data information;
the processing module is used for determining a first time slot occupied by sending equipment of the data information and a second time slot occupied by target equipment from a configured time slot cycle if the data information is monitored within a set monitoring duration;
and the determining module is used for determining the time interval belonging to the second time slot according to the interval duration between the first time slot and the second time slot, and transmitting data in the time interval belonging to the second time slot.
9. The apparatus of claim 8, wherein the determining module is specifically configured to:
determining an interval duration between the first time slot and the second time slot;
delaying the interval duration from the time when the data information is received;
and determining the starting time of the second time slot according to the ending time of the interval duration.
10. The apparatus of claim 8,
the processing module is further configured to delay a randomly set delay duration from an end time of the monitoring duration if any data information is not monitored within the set monitoring duration;
the determining module is further configured to determine a starting time of the second time slot according to the ending time of the delay duration.
11. The apparatus of claim 10,
the set monitoring time length is determined according to the number of the devices and the time slot time length corresponding to each device.
12. The apparatus according to any one of claims 8 to 11, wherein the processing module is specifically configured to:
acquiring the node number of the sending equipment from the monitored data information;
and determining the time slot corresponding to the node number in the time slot cycle as the first time slot occupied by the sending equipment.
13. The apparatus of any of claims 8-11, wherein a slot duration of each of the slots in the slot cycle is greater than a threshold duration;
wherein the threshold duration is determined according to the transmission delay of the data information.
14. The apparatus according to any of claims 8-11, wherein each of the slot cycles corresponds to one of a plurality of devices for the corresponding device to transmit the data information;
wherein the plurality of devices includes the target device and the transmitting device.
15. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method according to any one of claims 1-7 when executing the program.
16. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method of any one of claims 1-7.
CN202110278537.4A 2021-03-16 2021-03-16 Data transmission method and device and computer equipment Active CN112672425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110278537.4A CN112672425B (en) 2021-03-16 2021-03-16 Data transmission method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110278537.4A CN112672425B (en) 2021-03-16 2021-03-16 Data transmission method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN112672425A true CN112672425A (en) 2021-04-16
CN112672425B CN112672425B (en) 2021-06-22

Family

ID=75399466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110278537.4A Active CN112672425B (en) 2021-03-16 2021-03-16 Data transmission method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112672425B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726493A (en) * 2021-07-26 2021-11-30 新华三信息安全技术有限公司 Cell scheduling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567820A (en) * 2008-04-24 2009-10-28 魏昕 Energy-saving medium access control method in underwater acoustic network
CN102316518A (en) * 2010-07-08 2012-01-11 北京邮电大学 Improved request-to-send (RTS)/clear-to-send (CTS) communication control method
US20180109857A1 (en) * 2016-10-17 2018-04-19 Electronics And Telecommunications Research Institute Packet-based optical signal switching control method and apparatus
CN109982421A (en) * 2019-05-13 2019-07-05 深圳格林帕科技有限公司 A kind of low-power consumption narrowband radio network information channel cut-in method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567820A (en) * 2008-04-24 2009-10-28 魏昕 Energy-saving medium access control method in underwater acoustic network
CN102316518A (en) * 2010-07-08 2012-01-11 北京邮电大学 Improved request-to-send (RTS)/clear-to-send (CTS) communication control method
US20180109857A1 (en) * 2016-10-17 2018-04-19 Electronics And Telecommunications Research Institute Packet-based optical signal switching control method and apparatus
CN109982421A (en) * 2019-05-13 2019-07-05 深圳格林帕科技有限公司 A kind of low-power consumption narrowband radio network information channel cut-in method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726493A (en) * 2021-07-26 2021-11-30 新华三信息安全技术有限公司 Cell scheduling method and device
CN113726493B (en) * 2021-07-26 2023-03-31 新华三信息安全技术有限公司 Cell scheduling method and device

Also Published As

Publication number Publication date
CN112672425B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
US11381990B2 (en) Fine timing measurement FTM method and communications device
EP3264685B1 (en) Data transmitting and receiving method, data transmitting and receiving system, master device, and slave device
US9974035B2 (en) Synchronization between low energy end point devices and parent devices in a time slotted channel hopping network
US20210068146A1 (en) Information processing method, device and equipment
CN108809617B (en) Time delay compensation method and terminal
CN112672425B (en) Data transmission method and device and computer equipment
CN110231612B (en) Method, equipment and device for tag ranging and radio frequency signal sending
CN113114545B (en) Equipment ad hoc network method and device and air conditioning system
AU2013219865B2 (en) Wireless scan and advertisement in electronic devices background
BR112017003297B1 (en) BROADCASTING SYSTEM AND BASE STATION
CN113812184A (en) Wake signaling handling in discontinuous reception
KR102258309B1 (en) Wakeup radio systems and methods based on backscatter wakeup radio
CN112598895A (en) System and method for preventing multi-channel conflict during electric energy meter verification
EP0886412B1 (en) Device for monitoring periodicity of messages sent over a multiplexed transmission network with a CAN-type formation
CN113271662B (en) Time-frequency resource configuration method, system, electronic equipment and medium of reference signal
CN105406955A (en) Data output control method and system
CN115277284A (en) Communication method, communication device, communication system, and computer-readable storage medium
US20050026639A1 (en) System operable to transmit and receive messages
CN111262757A (en) Network diagnosis parameter display method, device, motor driver, system and medium
JP2023524869A (en) Time determination method, device, terminal and network equipment
US20020003848A1 (en) Synchronous network
JPH11136266A (en) Constant period token passing transmission control method
CN111324569A (en) Multi-machine communication synchronization system, multi-machine communication synchronization method and electric appliance
CN115277285B (en) Communication method, communication device, communication system, and computer-readable storage medium
CN117651022B (en) Data transmission method, device, main equipment and computer readable storage medium

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