CN113068261A - Time channel preemption method and device and computer storage medium - Google Patents

Time channel preemption method and device and computer storage medium Download PDF

Info

Publication number
CN113068261A
CN113068261A CN202110313325.5A CN202110313325A CN113068261A CN 113068261 A CN113068261 A CN 113068261A CN 202110313325 A CN202110313325 A CN 202110313325A CN 113068261 A CN113068261 A CN 113068261A
Authority
CN
China
Prior art keywords
time
collector
occupation
gateway
transmitted
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
CN202110313325.5A
Other languages
Chinese (zh)
Other versions
CN113068261B (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.)
Shenzhen Zks Mobile Iot Tech Co ltd
Original Assignee
Shenzhen Zks Mobile Iot Tech 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 Shenzhen Zks Mobile Iot Tech Co ltd filed Critical Shenzhen Zks Mobile Iot Tech Co ltd
Priority to CN202110313325.5A priority Critical patent/CN113068261B/en
Publication of CN113068261A publication Critical patent/CN113068261A/en
Application granted granted Critical
Publication of CN113068261B publication Critical patent/CN113068261B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1221Wireless traffic scheduling based on age of data to be sent
    • 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)

Abstract

The application provides a time channel preemption method, a time channel preemption device and a computer storage medium. The time channel preemption method is applied to a collector, and comprises the following steps: acquiring the size of a data packet to be transmitted and a real-time transmission rate; judging whether the transmission of the data packet to be transmitted can be completed within the self time channel using time; if not, sending an occupation request instruction to the gateway so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction; and continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed. Through the mode, the time channel seizing method can effectively improve the communication efficiency and the utilization rate of the time channel by applying for the gateway to occupy the time channel service time of other collectors.

Description

Time channel preemption method and device and computer storage medium
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a method and an apparatus for preempting a time channel, and a computer storage medium.
Background
Wireless communication systems are widely deployed to provide various types of communication content such as voice, video, packet data, messaging, broadcast, and so on. These systems are capable of supporting communication with multiple users by sharing common system resources (e.g., time, frequency, power, and channel resources).
However, only one time channel is installed in some wireless communication systems, and multiple users use the same time channel to communicate at the same time, and at present, no efficient time channel using method is proposed, which is likely to cause low time channel usage rate and affect communication efficiency.
Disclosure of Invention
The application provides a time channel preemption method, a time channel preemption device and a computer storage medium.
The application provides a time channel preemption method, which is applied to a collector and comprises the following steps:
acquiring the size of a data packet to be transmitted and a real-time transmission rate;
judging whether the transmission of the data packet to be transmitted can be finished within the self time channel using time or not;
if not, sending an occupation request instruction to the gateway so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction;
and continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed.
Wherein the occupancy flag comprises a target instrument address;
the continuing to transmit the data packet to be transmitted based on the occupation mark comprises:
acquiring a target instrument address in the occupation mark;
judging whether the target instrument address is the own instrument address or not;
if not, the preemption fails, and after the self time channel use time is over, the transmission of the data packet to be transmitted is stopped;
if so, the preemption is successful, and the transmission of the transmission data packet is continued after the use time of the time channel of the transmission data packet is ended.
Wherein the stopping of the transmission of the data packet to be transmitted includes:
stopping the data packet to be transmitted and not sending any information to the gateway;
and continuously monitoring the response packet sent by the gateway until the monitored target instrument address in the response packet is consistent with the instrument address of the gateway, and starting the transmission of the data packet to be transmitted.
Wherein, the continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or after the occupation mark is changed comprises:
when the occupation mark is changed, judging whether the transmission of the data packet to be transmitted is finished;
if yes, the transmission is successful;
if not, the transmission is failed, the remaining data to be transmitted which are not transmitted are obtained, and the remaining data to be transmitted which are not transmitted are continuously transmitted in the next time channel using time of the transmission device.
The application also provides another time channel preemption method, which is applied to a time synchronization wireless network, wherein the time synchronization wireless network at least comprises a gateway, a first collector and a second collector, and the gateway is respectively in communication connection with the first collector and the second collector;
the time channel preemption method comprises the following steps:
the first collector obtains the size of a data packet to be transmitted and the real-time transmission rate;
when the first collector judges that the transmission of the data packet to be transmitted cannot be completed within the self time channel use time, an occupation request instruction is sent to the gateway;
the gateway generates a response packet containing an occupation mark based on the occupation request instruction and sends the response packet to the first collector and the second collector;
after the time channel using time of the first collector is over, the first collector continues to transmit the data packet to be transmitted based on the occupation mark within the time channel using time of the second collector;
and after the transmission of the data packet to be transmitted is finished or the occupation mark is changed, the second collector transmits the data packet in the self time channel use time.
Wherein the occupancy flag comprises a target instrument address;
the gateway generates a response packet containing an occupation mark based on the occupation request instruction, and the method comprises the following steps:
the gateway acquires the instrument address of the first collector and the instrument address of the second collector;
the gateway judges whether the occupation request instruction of the first collector is legal or not;
if so, the gateway takes the instrument address of the first collector as the target instrument address, and generates a response packet containing the target instrument address;
if not, after the time channel using time of the first collector is over, the gateway takes the instrument address of the second collector as the target instrument address, and generates a response packet containing the target instrument address.
Wherein, the gateway judges whether the occupation request instruction of the first collector is legal or not, and comprises:
the gateway acquires the time required to be occupied by the first collector based on the occupation request instruction;
the gateway acquires the time of the second collector for transmitting the data packet, and judges whether the difference value between the time channel using time of the second collector and the time for transmitting the data packet is greater than or equal to the time required to be occupied by the first collector or not;
if so, the gateway confirms that the occupation request instruction of the first collector is legal.
The application also provides a communication device, which comprises an acquisition module, an occupation module and a transmission module; wherein the content of the first and second substances,
the acquisition module is used for acquiring the size of a data packet to be transmitted and the real-time transmission rate;
the occupation module is used for sending an occupation request instruction to the gateway when the transmission of the data packet to be transmitted cannot be completed within the using time of the time channel of the occupation module, so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction;
and the transmission module is used for continuously transmitting the data packet to be transmitted based on the occupation mark until the transmission is finished or the occupation mark is changed.
The present application further provides another communication apparatus comprising a memory and a processor, wherein the memory is coupled to the processor;
wherein the memory is configured to store program data and the processor is configured to execute the program data to implement the time channel preemption method as described above.
The present application also provides a computer storage medium for storing program data which, when executed by a processor, is configured to implement the time channel preemption method as described above.
The beneficial effect of this application is: the communication device obtains the size of a data packet to be transmitted and the real-time transmission rate; judging whether the transmission of the data packet to be transmitted can be completed within the self time channel using time; if not, sending an occupation request instruction to the gateway so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction; and continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed. Through the mode, the time channel seizing method can effectively improve the communication efficiency and the utilization rate of the time channel by applying for the gateway to occupy the time channel service time of other collectors.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flowchart of an embodiment of a time channel preemption method provided in the present application;
fig. 2 is a flowchart illustrating a time channel preemption method according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of an embodiment of a communication device provided in the present application;
fig. 4 is a schematic structural diagram of another embodiment of a communication device provided in the present application;
FIG. 5 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The time channel preemption method of the embodiment of the application can be applied to the field of cold chain transportation, and particularly, the gateway and/or the collector mentioned in the time channel preemption method can be installed in a cold chain environment. The collector specifically can be a temperature and humidity detection device, and temperature and humidity detection device can place in the cold chain environment to acquire the temperature information and/or the humidity information of the object to be measured in the cold chain environment. The collector of the embodiment of the application establishes wireless channel connection with the wireless gateways in the preset communication range, wherein one wireless gateway can be in communication connection with a plurality of collectors provided by the application so as to realize one-to-many communication.
The communication module adopted by the wireless gateway and/or the collector adopts a four-code-in-one technology (bar code, two-dimensional code, RFID and Interbow), 2G transmission is promoted to 4G transmission, and NB-IOT transmission can be used.
In the cold chain process, the carrier storing the object to be measured is generally a refrigeration device or a cold chain box. The refrigeration equipment can be a refrigerator, an ice chest, a refrigerating chamber and the like, and is mainly used for storing medicines, vaccines or other articles needing cold chain transportation. For example, a collector may be installed inside or outside the refrigerator for collecting temperature information and/or humidity information of the inside environment or the outside environment of the refrigerator. After the collector collects the temperature information and/or the humidity information of the internal environment or the external environment of the refrigeration equipment, the temperature information and/or the humidity information are sent to the connected wireless gateway, and the temperature information and/or the humidity information are uploaded to the remote server through the wireless gateway.
Based on the basic principle of cold chain transportation, the present application further provides a time channel preemption method, and specifically, referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of the time channel preemption method provided by the present application.
The time channel preemption method is applied to a communication device, wherein the communication device can be a server, a terminal device, or a system formed by the server and the terminal device which are matched with each other. Accordingly, each part, such as each unit, sub-unit, module, and sub-module, included in the electronic device may be all disposed in the server, may be all disposed in the terminal device, and may be disposed in the server and the terminal device, respectively.
Further, the server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules, for example, software or software modules for providing distributed servers, or as a single software or software module, and is not limited herein. In some possible implementations, the time channel preemption method of embodiments of the present application can be implemented by a processor calling computer-readable instructions stored in a memory. Specifically, the communication device of the embodiment of the application can be a collector, such as a temperature and humidity detection device.
As shown in fig. 1, the time channel preemption method in the embodiment of the present application specifically includes the following steps:
step S101: and acquiring the size of the data packet to be transmitted and the real-time transmission rate.
The collector obtains the data size of a data packet to be transmitted in the task queue of the collector and the real-time transmission rate of the time channel. The real-time transmission rate may specifically be a real-time average transmission rate, or may also be a real-time peak transmission rate.
Step S102: and judging whether the transmission of the data packet to be transmitted can be completed within the self time channel using time.
The collector obtains the duration of the self time channel service time, calculates the size of a data packet which can be transmitted in the time channel service time according to the real-time transmission rate and the duration, or calculates the duration required by the transmission of the data packet to be transmitted according to the real-time transmission rate and the data size of the data packet to be transmitted.
The collector can judge whether the transmission of the data packet to be transmitted can be completed within the self time channel using time or not based on any calculation result; if the judgment result is yes, the data packet to be transmitted is transmitted only in the self time channel use time; if the determination result is no, the process proceeds to step S103.
Step S103: and sending an occupation request instruction to the gateway so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction.
The collector sends an occupation request instruction to the gateway, and requests to occupy the time channel service time of the collector corresponding to the next time channel sequence number based on the occupation request instruction.
After receiving the occupation request instruction of the collector, the gateway checks whether the occupation request instruction is reasonable and legal, and particularly can check whether the collector corresponding to the next time channel serial number is occupied or not and complete transmission of the data packet to be transmitted can be completed after the collector corresponding to the next time channel serial number is occupied for part of the service time. If the gateway check result is that the occupation request of the collector is allowed, the gateway can return a response packet comprising occupation marks according to the occupation request instruction, wherein the occupation marks correspond to the instrument marks of the collector one by one.
It should be noted that, after generating the response packet including the occupation flag, the gateway broadcasts the response packet to all the collectors that are successfully connected. And after the collector receives the response packet, the occupation mark in the response packet can be analyzed, and when the occupation mark corresponds to the instrument mark of the collector, the data can be transmitted in the current time channel using time. Because each occupied mark can only correspond to the instrument mark of one collector, only one collector can execute the task of transmitting data at the same time, the data blockage is effectively avoided, and the data loss is prevented. In addition, if the response packet broadcasted by the gateway does not have the occupation mark, the plurality of collectors can execute the task of data transmission one by one according to the sequence of the time channel serial numbers allocated by the gateway in advance.
Specifically, please refer to the following process for the way that the gateway allocates the time channel sequence numbers of the multiple collectors: and after the gateway is successfully connected with the plurality of collectors, acquiring the equipment information of the plurality of collectors, and then distributing the time channel serial number of each collector according to the equipment information of the plurality of collectors. The device information may include a transmission rate of the collector, a connection order with the gateway, and/or a registration order. The device information may be used as a reference factor for the gateway to allocate the time channel sequence numbers, for example, the gateway may determine the time channel interval between collectors of adjacent time channel sequence numbers according to the transmission rate of the collectors, and determine the time channel sequence numbers of multiple collectors according to the connection sequence and/or the registration sequence with the gateway.
It should be noted that, the single chip microcomputer used by the gateway and/or the collector in the embodiment of the present application adopts a 32-bit low-power-consumption high-performance MSP432 as an MCU (Microcontroller Unit), which includes a novel 32-bit processor series based on an armport m4F kernel, and can provide several RTOS solutions. The transmission module adopts CC1310, highly integrates active RF (Radio Frequency) and MCU (microprogrammed control unit) with ultralow current consumption, and in a sensing network, the communication distance of a product can reach more than 10 times of Zigbee, and the power consumption is only 1/5 of Zigbee. In addition, the transmission module can adopt a 433M wireless module, the working frequency of the data transmission module is 315M, the SAW frequency stabilization is adopted, the frequency stability is extremely high, and when the environmental temperature is changed between-25 to +85 ℃, the frequency drift is only 3 ppm/degree. The communication protocol adopts an autonomously designed interBOW protocol for networking, an AES256 encryption coprocessing chip is added, and a secret key system authorized by a national commercial password management office is built in the communication protocol to realize safe transmission. The gateway is internally provided with GPS and LBS dual positioning, so that the accuracy of driving positioning is ensured, and meanwhile, the interBOW protocol is added into an indoor positioning specific algorithm, so that the gateway and the collector are convenient, efficient and real-time to circulate in service use without personnel intervention.
Step S104: and continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed.
The collector detects whether the occupation mark in the response packet corresponds to the instrument mark of the collector, if so, the collector can continue to transmit the data packet to be transmitted after the use time of the time channel of the collector is over until the data packet to be transmitted is transmitted, or monitors that the occupation mark in the latest response packet does not correspond to the instrument mark of the collector.
Specifically, the occupation marker of the embodiment of the present application may include a target instrument address, where the instrument address of the collector represents an equipment address of the collector, the equipment address is a string of numbers used to identify equipment identity, and in the communication system, the equipment address is used to uniquely identify one physical equipment, such as a MAC address in a TCP/IP network, a bluetooth address in a conventional bluetooth, and the like. Therefore, the collector can check whether the target instrument address in the response packet is consistent with the own instrument address; if the data are consistent, the preemption is successful, and the data to be transmitted are allowed to be transmitted continuously; if the time channels are inconsistent with each other, the preemption is not successful, and the collector stops the transmission of the data packet to be transmitted after the use time of the time channels of the collector is over.
In addition, after the preemption fails, the collector stops the data packet to be transmitted on one hand, and on the other hand, the collector does not send any information to the gateway any more, so that the unique occupation of other collectors on the time channel is ensured. The collector of the embodiment of the application can continuously monitor the response packet broadcasted by the gateway until the target instrument address in the response packet is monitored to be consistent with the instrument address of the collector, and then the collector starts to transmit the data packet to be transmitted. Specifically, under the condition that preemption fails, the acquirer may select to continue to transmit the remaining untransmitted data when the next time channel usage time of the acquirer starts, or may select to retransmit the data to be transmitted within the subsequent idle time channel usage time.
In the embodiment of the application, a communication device, namely a collector, acquires the size of a data packet to be transmitted and a real-time transmission rate; judging whether the transmission of the data packet to be transmitted can be completed within the self time channel using time; if not, sending an occupation request instruction to the gateway so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction; and continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed. Through the mode, the time channel seizing method can effectively improve the communication efficiency and the utilization rate of the time channel by applying for the gateway to occupy the time channel service time of other collectors.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a time channel preemption method according to another embodiment of the present application. The time channel preemption method of the embodiment of the application is applied to a time synchronization wireless network, wherein the time synchronization wireless network at least comprises a gateway, a first collector and a second collector, and the gateway establishes wireless communication connection with the first collector and the second collector respectively.
It should be noted that the gateway in the embodiment of the present application may be the wireless gateway described in the above embodiment, and the first collector and the second collector may be the communication device described in the above embodiment, and the number of the first collector and the second collector is not limited herein.
As shown in fig. 2, the time channel preemption method in the embodiment of the present application includes the following steps:
step S201: the first collector obtains the size of a data packet to be transmitted and the real-time transmission rate.
Step S202: and when the first collector judges that the transmission of the data packet to be transmitted cannot be completed within the self time channel use time, the first collector sends an occupation request instruction to the gateway.
The technical contents of steps S201 to S202 are described in detail in the above embodiments, and are not described herein again.
Step S203: and the gateway generates a response packet containing the occupation mark based on the occupation request instruction and sends the response packet to the first collector and the second collector.
After receiving the request instruction for requesting use from the collector, the gateway needs to check whether the request instruction for occupying is reasonable and legal. In this embodiment of the application, the gateway may obtain, based on the occupation request instruction, a size of time that the first collector needs to occupy, for example, obtain, through the occupation request instruction, a size of data that is not transmitted by the first collector, and a real-time transmission rate, so as to calculate the size of time that the first collector needs to occupy. Then, the gateway obtains the time required by the second collector to transmit the self data packet, and judges whether the occupation request instruction is legal or not by calculating the difference value between the time channel using time of the second collector and the time required by transmitting the self data packet and the relation between the difference value and the time required by the first collector.
When the judgment result shows that the occupation request instruction is legal, the gateway can generate an occupation mark according to the equipment information of the first collector, and then broadcast a response packet containing the occupation mark to the first collector and the second collector so as to inform the first collector and the second collector that the first collector successfully occupies the time channel. Specifically, the occupation flag includes a target instrument address, and the gateway acquires the instrument address of the first collector and the instrument address of the second collector in advance. When the judgment result is that the occupation request instruction is legal, the gateway can broadcast the instrument address of the first collector to the first collector and the second collector along with the response packet as the target instrument address.
Step S204: and after the time channel using time of the first collector is over, the first collector continuously transmits the data packet to be transmitted based on the occupation mark in the time channel using time of the second collector.
After the time channel is successfully preempted, the first collector can continue to transmit the data packet after the use time of the time channel of the first collector is ended, namely the time channel use time of the second collector is occupied to execute the transmission task.
Step S205: and after the transmission of the data packet to be transmitted is finished or the occupation mark is changed, the second collector transmits the data packet in the self time channel use time.
When the first collector completes the data packet transmission or the occupation flag in the response packet is updated to correspond to the second collector, the second collector can transmit the data packet within the self time channel use time.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
To implement the time channel preemption method of the foregoing embodiment, the present application provides a communication apparatus, and specifically refer to fig. 3, where fig. 3 is a schematic structural diagram of an embodiment of the communication apparatus provided in the present application.
As shown in fig. 3, the communication device 300 includes an acquisition module 31, an occupation module 32, and a transmission module 33. Wherein the content of the first and second substances,
the obtaining module 31 is configured to obtain a size of a data packet to be transmitted and a real-time transmission rate.
The occupation module 32 is configured to send an occupation request instruction to the gateway when transmission of the data packet to be transmitted cannot be completed within the time channel usage time of the gateway itself, so that the gateway returns a response packet including an occupation flag according to the occupation request instruction.
A transmission module 33, configured to continue to transmit the data packet to be transmitted based on the occupation flag until the transmission is completed or the occupation flag changes.
To implement the time channel preemption method of the foregoing embodiment, the present application further provides another communication apparatus, and specifically please refer to fig. 4, where fig. 4 is a schematic structural diagram of another embodiment of the communication apparatus provided in the present application.
The communication apparatus 400 of the embodiment of the present application includes a processor 41, a memory 42, an input/output device 43, and a bus 44.
The processor 41, the memory 42, and the input/output device 43 are respectively connected to the bus 44, the memory 42 stores program data, and the processor 41 is configured to execute the program data to implement the time channel preemption method described in the above embodiments.
In the present embodiment, the processor 41 may also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip having signal processing capabilities. The processor 41 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor 41 may be any conventional processor or the like.
The present application also provides a computer storage medium, as shown in fig. 5, the computer storage medium 500 is used for storing program data 51, and the program data 51 is used for implementing the time channel preemption method according to the above embodiment when being executed by a processor.
The present application also provides a computer program product, wherein the computer program product comprises a computer program operable to cause a computer to perform the method for time channel preemption as described in the embodiments of the present application. The computer program product may be a software installation package.
The time channel preemption method described in the above embodiments of the present application, when implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a device, such as a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A time channel preemption method is applied to a collector, and comprises the following steps:
acquiring the size of a data packet to be transmitted and a real-time transmission rate;
judging whether the transmission of the data packet to be transmitted can be finished within the self time channel using time or not;
if not, sending an occupation request instruction to the gateway so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction;
and continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed.
2. The method of time channel preemption of claim 1,
the occupancy flag comprises a target instrument address;
the continuing to transmit the data packet to be transmitted based on the occupation mark comprises:
acquiring a target instrument address in the occupation mark;
judging whether the target instrument address is the own instrument address or not;
if not, the preemption fails, and after the self time channel use time is over, the transmission of the data packet to be transmitted is stopped;
if so, the preemption is successful, and the transmission of the transmission data packet is continued after the use time of the time channel of the transmission data packet is ended.
3. The method of time channel preemption of claim 2,
the stopping of the transmission of the data packet to be transmitted includes:
stopping the data packet to be transmitted and not sending any information to the gateway;
and continuously monitoring the response packet sent by the gateway until the monitored target instrument address in the response packet is consistent with the instrument address of the gateway, and starting the transmission of the data packet to be transmitted.
4. The method of time channel preemption of claim 1,
the continuing to transmit the data packet to be transmitted based on the occupation mark until the transmission is completed or after the occupation mark is changed comprises:
when the occupation mark is changed, judging whether the transmission of the data packet to be transmitted is finished;
if yes, the transmission is successful;
if not, the transmission is failed, the remaining data to be transmitted which are not transmitted are obtained, and the remaining data to be transmitted which are not transmitted are continuously transmitted in the next time channel using time of the transmission device.
5. A time channel preemption method is characterized in that the time channel preemption method is applied to a time synchronization wireless network, the time synchronization wireless network at least comprises a gateway, a first collector and a second collector, and the gateway is respectively in communication connection with the first collector and the second collector;
the time channel preemption method comprises the following steps:
the first collector obtains the size of a data packet to be transmitted and the real-time transmission rate;
when the first collector judges that the transmission of the data packet to be transmitted cannot be completed within the self time channel use time, an occupation request instruction is sent to the gateway;
the gateway generates a response packet containing an occupation mark based on the occupation request instruction and sends the response packet to the first collector and the second collector;
after the time channel using time of the first collector is over, the first collector continues to transmit the data packet to be transmitted based on the occupation mark within the time channel using time of the second collector;
and after the transmission of the data packet to be transmitted is finished or the occupation mark is changed, the second collector transmits the data packet in the self time channel use time.
6. The method of time channel preemption of claim 5,
the occupancy flag comprises a target instrument address;
the gateway generates a response packet containing an occupation mark based on the occupation request instruction, and the method comprises the following steps:
the gateway acquires the instrument address of the first collector and the instrument address of the second collector;
the gateway judges whether the occupation request instruction of the first collector is legal or not;
if so, the gateway takes the instrument address of the first collector as the target instrument address, and generates a response packet containing the target instrument address;
if not, after the time channel using time of the first collector is over, the gateway takes the instrument address of the second collector as the target instrument address, and generates a response packet containing the target instrument address.
7. The method of time channel preemption of claim 5,
the gateway judges whether the occupation request instruction of the first collector is legal or not, and the judgment comprises the following steps:
the gateway acquires the time required to be occupied by the first collector based on the occupation request instruction;
the gateway acquires the time of the second collector for transmitting the data packet, and judges whether the difference value between the time channel using time of the second collector and the time for transmitting the data packet is greater than or equal to the time required to be occupied by the first collector or not;
if so, the gateway confirms that the occupation request instruction of the first collector is legal.
8. A communication device is characterized by comprising an acquisition module, an occupation module and a transmission module; wherein the content of the first and second substances,
the acquisition module is used for acquiring the size of a data packet to be transmitted and the real-time transmission rate;
the occupation module is used for sending an occupation request instruction to the gateway when the transmission of the data packet to be transmitted cannot be completed within the using time of the time channel of the occupation module, so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction;
and the transmission module is used for continuously transmitting the data packet to be transmitted based on the occupation mark until the transmission is finished or the occupation mark is changed.
9. A communication device, comprising a memory and a processor, wherein the memory is coupled to the processor;
wherein the memory is used for storing program data, and the processor is used for executing the program data to realize the time channel preemption method of any one of claims 1-4 and 5-7.
10. A computer storage medium for storing program data which, when executed by a processor, is adapted to implement a method of time channel preemption as claimed in any one of claims 1 to 4 and 5 to 7.
CN202110313325.5A 2021-03-24 2021-03-24 Time channel preemption method and device and computer storage medium Active CN113068261B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110313325.5A CN113068261B (en) 2021-03-24 2021-03-24 Time channel preemption method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110313325.5A CN113068261B (en) 2021-03-24 2021-03-24 Time channel preemption method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN113068261A true CN113068261A (en) 2021-07-02
CN113068261B CN113068261B (en) 2023-10-24

Family

ID=76562431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110313325.5A Active CN113068261B (en) 2021-03-24 2021-03-24 Time channel preemption method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN113068261B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059949A1 (en) * 2007-08-29 2009-03-05 Samsung Electronics Co., Ltd. Method and system for data packet communication in wireless communication systems
CN203386238U (en) * 2013-08-20 2014-01-08 重庆布鲁杰科技有限公司 Mobile temperature and humidity on-line monitoring system for cold-chain logistics
CN104320164A (en) * 2014-10-14 2015-01-28 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device
CN206411496U (en) * 2016-12-26 2017-08-15 北京鼎泰通达科技有限公司 The real-time locating and monitoring system of intelligent refrigerated container
WO2017161760A1 (en) * 2016-03-25 2017-09-28 乐视控股(北京)有限公司 Data transmission method and device
CN206892901U (en) * 2017-05-05 2018-01-16 邹顺 A kind of Hospital Drugs cold chain monitoring system
CN107682417A (en) * 2017-09-19 2018-02-09 深圳市盛路物联通讯技术有限公司 The method for allocating tasks and device of a kind of back end
CN209823791U (en) * 2019-05-17 2019-12-20 上海天勍智能科技有限公司 On-line monitoring system for temperature of refrigerating box
CN111836209A (en) * 2019-04-23 2020-10-27 深圳长城开发科技股份有限公司 Method and system for improving LoRa single-channel data transmission efficiency

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059949A1 (en) * 2007-08-29 2009-03-05 Samsung Electronics Co., Ltd. Method and system for data packet communication in wireless communication systems
CN203386238U (en) * 2013-08-20 2014-01-08 重庆布鲁杰科技有限公司 Mobile temperature and humidity on-line monitoring system for cold-chain logistics
CN104320164A (en) * 2014-10-14 2015-01-28 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device
WO2017161760A1 (en) * 2016-03-25 2017-09-28 乐视控股(北京)有限公司 Data transmission method and device
CN206411496U (en) * 2016-12-26 2017-08-15 北京鼎泰通达科技有限公司 The real-time locating and monitoring system of intelligent refrigerated container
CN206892901U (en) * 2017-05-05 2018-01-16 邹顺 A kind of Hospital Drugs cold chain monitoring system
CN107682417A (en) * 2017-09-19 2018-02-09 深圳市盛路物联通讯技术有限公司 The method for allocating tasks and device of a kind of back end
CN111836209A (en) * 2019-04-23 2020-10-27 深圳长城开发科技股份有限公司 Method and system for improving LoRa single-channel data transmission efficiency
CN209823791U (en) * 2019-05-17 2019-12-20 上海天勍智能科技有限公司 On-line monitoring system for temperature of refrigerating box

Also Published As

Publication number Publication date
CN113068261B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US9173196B2 (en) Adaptive multi-channel access for vehicular networks
JP6476477B2 (en) MTC event detection and signaling
US20130070734A1 (en) Network apparatus for accessing channel in contention free period
KR20150013587A (en) Method and device for establishing association between station and access point
JP6238446B2 (en) Method for locating a wireless device in an environment with a wireless network having at least one access point
US11523461B1 (en) Procedures to inform users of incoming 5G/6G messages
Henna et al. An adaptive backoff mechanism for IEEE 802.15. 4 beacon‐enabled wireless body area networks
US10812545B2 (en) Beacon sensor advertisement frame
CN113068261A (en) Time channel preemption method and device and computer storage medium
GB2496384A (en) Placing some of the circuitry for sending and receiving data, in a wireless device, in a low power state and buffering data for a time period
CN112787743B (en) Time synchronization communication method and device and computer storage medium
CN112929979B (en) Communication frequency selection method, device and computer storage medium
WO2020238738A1 (en) Beacon frame communication and base station synchronization methods and apparatuses in communication network
CN115943727A (en) Communication method and device, electronic device and storage medium
US10986646B1 (en) Scheduling virtual preambles for data source reporting
US11909464B2 (en) Time coding for data communication
CN111050401B (en) Communication method and device of terminal and base station
TWI705676B (en) Supporting packet query-response transactions at lower layer
CN111050357A (en) Communication method and device of terminal and base station
CN115474224A (en) Method, device and medium for providing sensing result for response device of sensing process
CN117015990A (en) Communication method, electronic device, and storage medium
CN116634577A (en) Backscatter communication method, apparatus, electronic device, and medium
WO2018014600A1 (en) Data transmission method and apparatus
CN115243200A (en) Method, device and system for executing sensing process and storage medium
CN115777218A (en) Signal processing method and device, electronic device and 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