CN113068261B - 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
CN113068261B
CN113068261B CN202110313325.5A CN202110313325A CN113068261B CN 113068261 B CN113068261 B CN 113068261B CN 202110313325 A CN202110313325 A CN 202110313325A CN 113068261 B CN113068261 B CN 113068261B
Authority
CN
China
Prior art keywords
collector
time
transmitted
time channel
gateway
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.)
Active
Application number
CN202110313325.5A
Other languages
Chinese (zh)
Other versions
CN113068261A (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

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

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 the real-time transmission rate; judging whether the transmission of the data packet to be transmitted can be completed within the use time of the own time channel; 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 transmitting the data packet to be transmitted based on the occupancy mark until the transmission is completed or the occupancy mark is changed. By the method, the time channel preemption method can effectively improve the communication efficiency and the utilization rate of the time channel by applying the time channel use time of other collectors to the gateway.

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 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 able to support communication with multiple users by sharing common system resources (e.g., time, frequency, power, and channel resources).
However, some wireless communication systems only have one time channel, and a plurality of users use the same time channel to communicate at the same time, so that an efficient time channel use mode is not proposed at present, which easily causes low time channel use rate and affects 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 the real-time transmission rate;
judging whether the transmission of the data packet to be transmitted can be completed within the use time of the own time channel;
if not, sending an occupation request instruction to a 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 transmission is completed or the occupation mark is changed.
Wherein the occupancy indicia includes a target instrument address;
the continuing to transmit the data packet to be transmitted based on the occupation mark comprises the following steps:
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 the transmission of the data packet to be transmitted is stopped after the use time of the self time channel is finished;
if yes, the preemption is successful, and after the use time of the own time channel is finished, the transmission of the transmission data packet is continued.
Wherein the stopping 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 method for continuously transmitting the data packet to be transmitted based on the occupancy flag until transmission is completed or the occupancy flag is changed comprises the following steps:
when the occupation mark is changed, judging whether the data packet to be transmitted is transmitted completely or not;
if yes, the transmission is successful;
if not, the transmission fails, the remaining untransmitted data to be transmitted is obtained, and the remaining untransmitted data to be transmitted is continuously transmitted in the use time of the next time channel of the 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 acquires the size of a data packet to be transmitted and the real-time transmission rate;
the first collector sends an occupation request instruction to the gateway when judging that the transmission of the data packet to be transmitted cannot be completed in the use time of the self time channel;
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 finished, the first collector continues to transmit the data packet to be transmitted based on the occupation mark in the time channel using time of the second collector;
and after the transmission of the data packet to be transmitted is completed or the occupation mark is changed, the second collector transmits the data packet in the use time of the self time channel.
Wherein the occupancy indicia includes a target instrument address;
the gateway generates a response packet containing an occupancy flag based on the occupancy request instruction, including:
the gateway obtains the instrument address of the first collector and the instrument address of the second collector;
the gateway judges whether an occupation request instruction of the first collector is legal or not;
if yes, 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 finished, 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.
The gateway judges whether the occupation request instruction of the first collector is legal or not, and comprises the following steps:
the gateway obtains the time required to be occupied by the first collector based on the occupation request instruction;
the gateway acquires the time of transmitting the data packet of the second collector, and judges whether the difference value between the time channel use time of the second collector and the time of transmitting the data packet is larger than or equal to the time which is required to be occupied by the first collector;
if yes, 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 liquid crystal display device comprises a liquid crystal display device,
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 a gateway when the transmission of the data packet to be transmitted cannot be completed within the use time of the own time channel, 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 completed or the occupation mark is changed.
The present application also provides another communication device comprising a memory and a processor, wherein the memory is coupled to the processor;
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.
The application also provides a computer storage medium for storing program data which, when executed by a processor, is adapted to carry out a time channel preemption method as described above.
The beneficial effects of the application are as follows: the communication device acquires 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 use time of the own time channel; 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 transmitting the data packet to be transmitted based on the occupancy mark until the transmission is completed or the occupancy mark is changed. By the method, the time channel preemption method can effectively improve the communication efficiency and the utilization rate of the time channel by applying the time channel use time of other collectors to the gateway.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a flow chart of an embodiment of a time channel preemption method provided by the present application;
FIG. 2 is a flow chart of another embodiment of a time channel preemption method provided by the present application;
FIG. 3 is a schematic diagram of a communication device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another embodiment of a communication device provided by the present application;
fig. 5 is a schematic structural diagram of an embodiment of a computer storage medium provided by the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the 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 can be a temperature and humidity detection device specifically, and the temperature and humidity detection device can be placed in a cold-chain environment to acquire temperature information and/or humidity information of an object to be detected in the cold-chain environment. The collector of the embodiment of the application establishes wireless channel connection with the wireless gateway 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 and RFID, interbow), 2G transmission is improved 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 refrigerating apparatus or a cold chain case, etc. The refrigerating device can be a refrigerator, a freezer, a refrigerating chamber or 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 or outside environment of the refrigerator. After the temperature information and/or the humidity information of the internal environment or the external environment of the refrigeration equipment are collected by the collector, the temperature information and/or the humidity information is sent to the connected wireless gateway, so that the temperature information and/or the humidity information is uploaded to the remote server through the wireless gateway.
Based on the basic principle of the cold chain transportation, the application further provides a time channel preemption method, and referring to fig. 1 specifically, fig. 1 is a schematic flow chart of an embodiment of the time channel preemption method provided by the application.
The time channel preemption method is applied to a communication device, wherein the communication device can be a server, terminal equipment or a system formed by mutually matching the server and the terminal equipment. Accordingly, each part included in the electronic device, for example, each unit, sub-unit, module, and sub-module, may be all disposed in the server, may be all disposed in the terminal device, or may be disposed in the server and the terminal device, respectively.
Further, the server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of 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 a distributed server, or may be implemented as a single software or software module, which is not specifically limited herein. In some possible implementations, the time channel preemption method of embodiments of the present application can be implemented by a processor invoking computer readable instructions stored in a memory. Specifically, the communication device in the embodiment of the application may 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: the size of a data packet to be transmitted and the real-time transmission rate are obtained.
The collector acquires the data size of a data packet to be transmitted in a task queue of the collector and uses the real-time transmission rate of a time channel. The real-time transmission rate may be specifically a real-time average transmission rate or 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 use time of the own time channel.
The collector acquires the time length of the use time of the time channel of the collector, calculates the size of a data packet which can be transmitted in the use time of the time channel through the real-time transmission rate and the time length, or calculates the time length required by the transmission of the data packet to be transmitted through 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 use time of the time channel of the collector based on any calculation result; if the judgment result is yes, the data packet to be transmitted is only required to be transmitted in the use time of the own time channel; if the determination result is negative, the process proceeds to step S103.
Step S103: and sending an occupancy request instruction to the gateway so that the gateway returns a response packet containing an occupancy mark according to the occupancy request instruction.
The collector sends an occupation request instruction to the gateway, and requests to occupy the time channel use time of the collector corresponding to the next time channel serial 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 can specifically check whether the collector corresponding to the sequence number of the next time channel is used for a part of time, and can also complete transmission of the data packet to be transmitted. If the gateway checking result is the occupation request of the acquirer, 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 acquirer one by one.
After generating the response packet including the occupation mark, the gateway broadcasts the response packet to all successfully connected collectors. After the collector receives the response packet, the occupation mark in the response packet can be resolved, and when the occupation mark corresponds to the instrument mark of the collector, the collector can transmit data in the current time channel using time. Because each occupation 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, thereby effectively avoiding data blockage and preventing data loss. In addition, if no occupation mark is in the response packet broadcast by the gateway, the plurality of collectors can execute the task of transmitting data one by one according to the sequence of the time channel serial numbers allocated in advance by the gateway.
Specifically, the gateway allocates time channel sequence numbers of the plurality of collectors please continue to refer to the following procedure: after the gateway is successfully connected with a 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 above device information may be used as a reference factor for allocating time channel numbers to the gateway, for example, the gateway may determine a time channel interval between collectors of adjacent time channel numbers according to a transmission rate of the collectors, and determine time channel numbers of a plurality of collectors according to a connection sequence and/or a 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 the 32-bit MSP432 with low power consumption and high performance as the MCU (Microcontroller Unit, micro control unit), which includes a new 32-bit processor series based on the armcotex m4F kernel, and can provide solutions with several RTOSs. The transmission module adopts the CC1310, the inside is highly integrated with the active RF (Radio Frequency) and MCU with ultra-low current consumption, in the sensor network, the product communication distance 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 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 ambient temperature changes between-25 and +85 ℃, the frequency drift is only 3 ppm/degree. The communication protocol adopts an autonomous-designed internet BOW protocol for networking, and an AES256 encryption co-processing chip is added, and a key system authorized by a national commercial password management office is built in, so that safe transmission is realized. The gateway is internally provided with the GPS and LBS double positioning, so that the accuracy of driving positioning is ensured, and meanwhile, the inter BOW protocol is added into an indoor positioning special algorithm, so that the gateway and the collector are ensured to be convenient, efficient, real-time and free from personnel intervention in service use.
Step S104: and continuing transmitting the data packet to be transmitted based on the occupancy mark until the transmission is completed or the occupancy mark is changed.
The collector checks whether the occupation mark in the response packet corresponds to the own instrument mark, if so, the collector can continue to transmit the data packet to be transmitted after the use time of the own time channel is finished until the transmission of the data packet to be transmitted is finished, or monitors that the occupation mark in the latest response packet does not correspond to the own instrument mark.
Specifically, the occupancy label according to the embodiment of the present application may include a target instrument address, where the instrument address of the collector represents a device address of the collector, where the device address is a series of numbers for identifying identity of a device, and in the communication system, the device address is used to uniquely identify a physical device, such as a MAC address in a TCP/IP network, a bluetooth address in conventional bluetooth, and so on. Therefore, the collector can check whether the target instrument address in the response packet is consistent with the own instrument address; if the data is consistent, indicating that the preemption is successful, and allowing the data to be transmitted to continue to be transmitted; if the data packets are inconsistent, the preemption fails, and the collector stops transmitting the data packets to be transmitted after the use time of the time channel of the collector is finished.
In addition, after the preemption fails, the collector stops the data packet to be transmitted on one hand, and no any information is sent to the gateway any more on the other hand, 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 broadcast by the gateway until the target instrument address in the response packet is consistent with the instrument address of the collector, and starts the transmission of the data packet to be transmitted. Specifically, under the condition of a preemption failure, the collector can select to continue to transmit the remaining untransmitted data when the next time channel use time of the collector begins, and can also select to retransmit the data to be transmitted in the subsequent idle time channel use time.
In the embodiment of the application, a communication device, namely a collector, acquires 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 use time of the own time channel; 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 transmitting the data packet to be transmitted based on the occupancy mark until the transmission is completed or the occupancy mark is changed. By the method, the time channel preemption method can effectively improve the communication efficiency and the utilization rate of the time channel by applying the time channel use time of other collectors to the gateway.
With continued reference to fig. 2, fig. 2 is a flowchart of another embodiment of a time channel preemption method according to 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 is respectively connected with the first collector and the second collector in a wireless communication way.
It should be noted that, the gateway in the embodiment of the present application may be the wireless gateway described in the foregoing embodiment, and the first collector and the second collector may be the communication devices described in the foregoing 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 acquires 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 in the use time of the time channel of the first collector, the first collector sends an occupation request instruction to the gateway.
The technical content of steps S201 to S202 is described in detail in the above embodiments, and is not described herein.
Step S203: 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 receiving the request instruction of the collector, the gateway needs to check whether the occupation request instruction is reasonable and legal. In the embodiment of the application, the gateway can acquire the time required to be occupied by the first collector based on the occupation request instruction, for example, acquire the data size not transmitted by the first collector and the real-time transmission rate through the occupation request instruction, so as to calculate the time required to be occupied by the first collector. And then, the gateway acquires 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 time difference 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 time difference and the time required by the first collector.
When the judgment result is 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 is successful in occupying the time channel. Specifically, the occupancy label includes a target instrument address, the gateway having previously acquired the instrument address of the first collector, and the instrument address of the second collector. When the judging result is that the occupation request instruction is legal, the gateway can take the instrument address of the first collector as a target instrument address and broadcast the target instrument address to the first collector and the second collector along with the response packet.
Step S204: and after the time channel using time of the first collector is finished, 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 finished, namely, the transmission task is executed by occupying the use time of the time channel of the second collector.
Step S205: and after the transmission of the data packet to be transmitted is completed or the occupation mark is changed, the second collector transmits the data packet in the use time of the time channel of the second collector.
When the first collector finishes data packet transmission or the occupation mark in the response packet is updated to correspond to the second collector, the second collector can transmit the data packet in the use time of the own time channel.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
In order to implement the time channel preemption method of the above embodiment, the present application provides a communication device, and specifically please refer to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of the communication device provided by the present application.
As shown in fig. 3, the communication apparatus 300 includes an acquisition module 31, an occupation module 32, and a transmission module 33. Wherein, the liquid crystal display device comprises a liquid crystal display device,
the acquiring module 31 is configured to acquire a size of a data packet to be transmitted and a real-time transmission rate.
And the occupation module 32 is configured to send an occupation request instruction to a gateway when the transmission of the data packet to be transmitted cannot be completed within the use time of the own time channel, so that the gateway returns a response packet containing an occupation mark according to the occupation request instruction.
And a transmission module 33, configured to continue transmitting the data packet to be transmitted based on the occupancy flag until transmission is completed or the occupancy flag changes.
In order to implement the time channel preemption method of the above embodiment, the present application further provides another communication device, and referring specifically to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of the communication device provided by 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, and 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 embodiment.
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 with signal processing capabilities. The processor 41 may also be a general purpose processor, a digital signal processor (DSP, digital Signal Process), an application specific integrated circuit (ASIC, application SpecificIntegrated Circuit), a field programmable gate array (FPGA, field Programmable Gate Array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The 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, where the computer storage medium 500 is used to store program data 51, and the program data 51, when executed by a processor, is used to implement the time channel preemption method according to the above-mentioned embodiments.
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 a time channel preemption method according to an embodiment of the present application. The computer program product may be a software installation package.
The time channel preemption method according to the above embodiments of the present application may be stored in an apparatus, such as a computer readable storage medium, when implemented in the form of a software functional unit and sold or used as a stand alone product. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the present application.

Claims (9)

1. The time channel preemption method is characterized in that the time channel preemption method is applied to a time synchronization wireless network of the refrigeration equipment during refrigeration transportation, the time synchronization wireless network at least comprises a wireless gateway, a first collector and a second collector, the wireless gateway is respectively in communication connection with the first collector and the second collector, the first collector and the second collector are used for collecting temperature information and/or humidity information of the internal environment or the external environment of the refrigeration equipment, the first collector and the second collector respectively collect the temperature information and/or humidity information of the internal environment or the external environment of the refrigeration equipment, and then the temperature information and/or the humidity information are sent to the connected wireless gateway so as to upload the temperature information and/or the humidity information to a remote server through the wireless gateway, the wireless gateway is internally provided with GPS+LBS double positioning, and meanwhile, an indoor positioning algorithm is added in an indoor positioning protocol, and the time channel preemption method comprises the steps of: acquiring 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 in the use time of the own time channel, comprising: the collector acquires the duration of the use time of the time channel of the collector, calculates the size of a data packet which can be transmitted in the use time of the time channel according to the real-time transmission rate and the time length, 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; if not, the collector sends an occupation request instruction to the wireless gateway, so that the wireless gateway returns a response packet containing an occupation mark according to the occupation request instruction, and requests to occupy the time channel use time of the collector corresponding to the next time channel serial number based on the occupation request instruction; continuously transmitting the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed, wherein the occupation mark corresponds to the instrument mark of the first collector and the instrument mark of the second collector one by one, and the gateway checks whether the occupation request instruction is reasonable and legal after receiving the occupation request instruction of the collectors; after the collector receives the response packet, analyzing an occupied mark in the response packet, and transmitting data in the current time channel using time when the occupied mark corresponds to the own instrument mark, wherein each occupied mark can only correspond to the instrument mark of one collector, so that only one collector can execute the task of transmitting data at the same time; if the response packet broadcast by the gateway does not have an occupied mark, the plurality of collectors can execute the task of transmitting data one by one according to the sequence of the time channel serial numbers distributed in advance by the gateway; the gateway allocates the time channel sequence numbers of the plurality of collectors in the following process: after the gateway is successfully connected with a plurality of collectors, acquiring equipment information of the plurality of collectors, and then distributing a time channel serial number of each collector according to the equipment information of the plurality of collectors; the equipment information comprises the transmission rate of the collector, the connection sequence and/or the registration sequence of the collector and the gateway; after the preemption fails, the collector stops the data packet to be transmitted, which comprises the following steps: stopping the data packet to be transmitted, and not sending any information to the wireless gateway; continuously monitoring the response packet sent by the wireless gateway until the monitored target instrument address in the response packet is consistent with the instrument address of the wireless gateway, and starting the transmission of the data packet to be transmitted; under the condition of preemption failure, the collector can select to continue to transmit the remaining untransmitted data when the next time channel use time of the collector begins, and can also select to retransmit the data to be transmitted in the subsequent idle time channel use time.
2. The time channel preemption method of claim 1, wherein the preemption token comprises a target instrument address; the continuing to transmit the data packet to be transmitted based on the occupation mark comprises the following steps: acquiring a target instrument address in the occupation mark; judging whether the target instrument address is the own instrument address or not; if yes, the preemption is successful, and after the use time of the own time channel is finished, the transmission of the transmission data packet is continued.
3. The time channel preemption method of claim 1, wherein said continuing to transmit said data packet to be transmitted based on said occupancy flag until transmission is complete or after said occupancy flag changes, comprises: when the occupation mark is changed, judging whether the data packet to be transmitted is transmitted completely or not; if yes, the transmission is successful; if not, the transmission fails, the remaining untransmitted data to be transmitted is obtained, and the remaining untransmitted data to be transmitted is continuously transmitted in the use time of the next time channel of the device.
4. The time channel preemption method is characterized in that the time channel preemption method is applied to a time synchronization wireless network of the refrigeration equipment during refrigeration transportation, the time synchronization wireless network at least comprises a wireless gateway, a first collector and a second collector, the wireless gateway is respectively in communication connection with the first collector and the second collector, the first collector and the second collector are used for collecting temperature information and/or humidity information of the internal environment or the external environment of the refrigeration equipment, the first collector and the second collector respectively collect the temperature information and/or humidity information of the internal environment or the external environment of the refrigeration equipment, and then the temperature information and/or the humidity information are sent to the connected wireless gateway so as to upload the temperature information and/or the humidity information to a remote server through the wireless gateway, and the wireless gateway is internally provided with GPS+LBS double positioning and an indoor positioning algorithm is added; the time channel preemption method comprises the following steps: the first collector acquires 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 in the use time of the own time channel, the first collector sends an occupation request instruction to the wireless gateway, and the method comprises the following steps: the collector acquires the duration of the use time of the time channel of the collector, calculates the size of a data packet which can be transmitted in the use time of the time channel according to the real-time transmission rate and the time length, 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 wireless gateway generates a response packet containing an occupation mark based on the occupation request instruction, requests to occupy the time channel use time of the collector corresponding to the next time channel serial number 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 finished, the first collector continues to transmit the data packet to be transmitted based on the occupation mark in the time channel using time of the second collector; after the transmission of the data packet to be transmitted is completed or the occupation mark is changed, the second collector transmits the data packet in the use time of a time channel of the second collector, wherein the occupation mark corresponds to the instrument mark of the first collector and the instrument mark of the second collector one by one, and the gateway checks whether the occupation request instruction is reasonable and legal after receiving the occupation request instruction of the collector; after the collector receives the response packet, analyzing an occupied mark in the response packet, and transmitting data in the current time channel using time when the occupied mark corresponds to the own instrument mark, wherein each occupied mark can only correspond to the instrument mark of one collector, so that only one collector can execute the task of transmitting data at the same time; if the response packet broadcast by the gateway does not have an occupied mark, the plurality of collectors can execute the task of transmitting data one by one according to the sequence of the time channel serial numbers distributed in advance by the gateway; the gateway allocates the time channel sequence numbers of the plurality of collectors in the following process: after the gateway is successfully connected with a plurality of collectors, acquiring equipment information of the plurality of collectors, and then distributing a time channel serial number of each collector according to the equipment information of the plurality of collectors; the equipment information comprises the transmission rate of the collector, the connection sequence and/or the registration sequence of the collector and the gateway; after the preemption fails, the collector stops the data packet to be transmitted, which comprises the following steps: stopping the data packet to be transmitted, and not sending any information to the wireless gateway; continuously monitoring the response packet sent by the wireless gateway until the monitored target instrument address in the response packet is consistent with the instrument address of the wireless gateway, and starting the transmission of the data packet to be transmitted; under the condition of preemption failure, the collector can select to continue to transmit the remaining untransmitted data when the next time channel use time of the collector begins, and can also select to retransmit the data to be transmitted in the subsequent idle time channel use time.
5. The time channel preemption method of claim 4, wherein the occupancy marker comprises a target instrument address; the wireless gateway generates a response packet containing an occupancy flag based on the occupancy request instruction, including: the wireless gateway obtains the instrument address of the first collector and the instrument address of the second collector; the wireless gateway judges whether an occupation request instruction of the first collector is legal or not; if yes, the wireless 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 finished, the wireless gateway takes the instrument address of the second collector as the target instrument address, and generates a response packet containing the target instrument address.
6. The time channel preemption method of claim 4, wherein the wireless gateway determining whether the occupancy request command of the first collector is legal comprises: the wireless gateway obtains the time required to be occupied by the first collector based on the occupation request instruction; the wireless gateway acquires the time of transmitting the data packet of the second collector, and judges whether the difference value between the time channel use time of the second collector and the time of transmitting the data packet is larger than or equal to the time which the first collector needs to occupy; if yes, the wireless gateway confirms that the occupation request instruction of the first collector is legal.
7. The communication device is characterized in that the communication device is applied to a time synchronization wireless network of the refrigeration equipment during refrigeration transportation, the time synchronization wireless network at least comprises a wireless gateway, a first collector and a second collector, the wireless gateway is respectively in communication connection with the first collector and the second collector, the first collector and the second collector are used for collecting temperature information and/or humidity information of the internal environment or the external environment of the refrigeration equipment, the first collector and the second collector respectively collect the temperature information and/or humidity information of the internal environment or the external environment of the refrigeration equipment and then send the temperature information and/or humidity information to the connected wireless gateway so as to upload the temperature information and/or humidity information to a remote server through the wireless gateway, the wireless gateway is internally provided with GPS+LBS double positioning, and meanwhile, an indoor positioning algorithm is added into the wireless gateway through an inter-path protocol, and the communication device comprises an acquisition module, an occupation module and a transmission module; 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 configured to send an occupation request instruction to a wireless gateway when the transmission of the data packet to be transmitted cannot be completed in the use time of the own time channel, and includes: the collector acquires the duration of the time channel using time of the collector, calculates the size of a data packet which can be transmitted in the time channel using time through the real-time transmission rate and the time length, or calculates the duration required by the transmission of the data packet to be transmitted through the real-time transmission rate and the data size of the data packet to be transmitted, so that the wireless gateway returns a response packet containing an occupation mark according to the occupation request instruction, and requests the time channel using time of the collector corresponding to the next time channel serial number to be occupied based on the occupation request instruction; the transmission module is used for continuously transmitting the data packet to be transmitted based on the occupation mark until the transmission is completed or the occupation mark is changed, wherein the occupation mark corresponds to the instrument mark of the first collector and the instrument mark of the second collector one by one respectively, and the gateway checks whether the occupation request instruction is reasonable and legal after receiving the occupation request instruction of the collectors; after the collector receives the response packet, analyzing an occupied mark in the response packet, and transmitting data in the current time channel using time when the occupied mark corresponds to the own instrument mark, wherein each occupied mark can only correspond to the instrument mark of one collector, so that only one collector can execute the task of transmitting data at the same time; if the response packet broadcast by the gateway does not have an occupied mark, the plurality of collectors can execute the task of transmitting data one by one according to the sequence of the time channel serial numbers distributed in advance by the gateway; the gateway allocates the time channel sequence numbers of the plurality of collectors in the following process: after the gateway is successfully connected with a plurality of collectors, acquiring equipment information of the plurality of collectors, and then distributing a time channel serial number of each collector according to the equipment information of the plurality of collectors; the equipment information comprises the transmission rate of the collector, the connection sequence and/or the registration sequence of the collector and the gateway; after the preemption fails, the collector stops the data packet to be transmitted, which comprises the following steps: stopping the data packet to be transmitted, and not sending any information to the wireless gateway; continuously monitoring the response packet sent by the wireless gateway until the monitored target instrument address in the response packet is consistent with the instrument address of the wireless gateway, and starting the transmission of the data packet to be transmitted; under the condition of preemption failure, the collector can select to continue to transmit the remaining untransmitted data when the next time channel use time of the collector begins, and can also select to retransmit the data to be transmitted in the subsequent idle time channel use time.
8. A communication device 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 of any of claims 1-3 and claims 4-6.
9. A computer storage medium for storing program data which, when executed by a processor, is adapted to carry out the time channel preemption method of any of claims 1-3, 4-6.
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 CN113068261A (en) 2021-07-02
CN113068261B true 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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7969921B2 (en) * 2007-08-29 2011-06-28 Samsung Electronics Co., Ltd. Method and system for data packet communication in wireless communication systems

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN113068261A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
US9332376B2 (en) Method and technical equipment for short range data transmission
EP3155447B1 (en) Failure conditions for fine timing measurement (ftm) protocol
US7761532B2 (en) Processing method for sensing data
CN102685203A (en) Method and equipment for data resource transmission
JP6476477B2 (en) MTC event detection and signaling
US20230141919A1 (en) Electronic device for performing ranging through uwb, and operation method of electronic device
TWI785145B (en) Positioning method and system for communication network
CN112671771B (en) Data transmission method, device, electronic equipment and medium
CN109548120B (en) Communication method and device of wireless local area network, station equipment and access point equipment
CN109005509B (en) Terminal positioning method, device, terminal and storage medium
CN113068261B (en) Time channel preemption method and device and computer storage medium
WO2016095323A1 (en) Data transmission method and apparatus based on serial server
CN112602365B (en) Data transmission method, control information sending method and equipment
WO2019237963A1 (en) Server data sending method and apparatus
CN112929979B (en) Communication frequency selection method, device and computer storage medium
CN111294984A (en) Terminal releasing method, positioning server, terminal and network equipment
CN112787743B (en) Time synchronization communication method and device and computer storage medium
WO2020238738A1 (en) Beacon frame communication and base station synchronization methods and apparatuses in communication network
CN109495796B (en) Remote radio terminal control method and concentrator
US20040240388A1 (en) System and method for dynamic assignment of timers in a network transport engine
CN111901072A (en) Method, device, equipment and storage medium for confirming reception of uplink data
CN108633082B (en) Uplink data scheduling request method and device
US11909464B2 (en) Time coding for data communication
CN113411770B (en) Method, device and equipment for selecting periodic resources and storage medium
CN111050401B (en) Communication method and device of terminal and base station

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