WO2023230891A1 - 通信方法及通信装置 - Google Patents

通信方法及通信装置 Download PDF

Info

Publication number
WO2023230891A1
WO2023230891A1 PCT/CN2022/096388 CN2022096388W WO2023230891A1 WO 2023230891 A1 WO2023230891 A1 WO 2023230891A1 CN 2022096388 W CN2022096388 W CN 2022096388W WO 2023230891 A1 WO2023230891 A1 WO 2023230891A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
time
time period
node
data collection
Prior art date
Application number
PCT/CN2022/096388
Other languages
English (en)
French (fr)
Inventor
熊奇
Original Assignee
展讯半导体(成都)有限公司
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 展讯半导体(成都)有限公司 filed Critical 展讯半导体(成都)有限公司
Priority to PCT/CN2022/096388 priority Critical patent/WO2023230891A1/zh
Publication of WO2023230891A1 publication Critical patent/WO2023230891A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation

Definitions

  • the present application relates to the field of communication technology, and in particular, to a communication method and communication device.
  • data collection nodes can collect data.
  • the data collection nodes can be various environmental monitoring devices to collect environmental data.
  • the data collection node transmits the collected data to the gateway node.
  • the gateway node collects the information of each data collection node and sends it to the cloud server through Ethernet, so that users can perform visual development based on the cloud platform.
  • the current transmission method for data collection nodes to transmit data to gateway nodes is that the data collection node can only send data when the gateway node sends instruction information instructing the data collection node to send data. This method has low transmission efficiency. And a large amount of signaling floods the network and wastes network resources.
  • Embodiments of the present application provide a communication method and communication device, which can improve data transmission efficiency and save network resources.
  • embodiments of the present application provide a communication method, which method includes: when target data needs to be sent to a gateway node, obtaining the first data type to which the target data belongs;
  • the target data is sent to the gateway node in the first time unit.
  • different time periods are allocated to different data types.
  • the first time period corresponding to the first data type is determined.
  • the first time unit allocated to the first data collection node is determined from at least one time unit included in the first time period, so that the target data is sent to the gateway node in the first time unit.
  • This application allocates the time period corresponding to each data type and the time unit corresponding to each data collection node. When the data collection node needs to send data, it will automatically send it in the corresponding time unit, improving data transmission efficiency and reducing network flooding. signaling, saving network resources.
  • the first data type includes one of a non-retransmission regular data type, a retransmission regular data type and a special data type.
  • determining the first time period corresponding to the first data type includes:
  • a first time period corresponding to the first data type is determined in a data transmission cycle.
  • the data transmission cycle includes multiple time periods, one time period corresponds to one data type, and the multiple time periods include the first data type. a period of time.
  • the time period corresponding to the data type can be configured with the data transmission cycle as the granularity, thereby realizing the periodic configuration of the time period corresponding to various types of data.
  • the method further includes:
  • Receive time period allocation information sent by the gateway node where the time period allocation information is used to indicate the time periods corresponding to various data types among multiple data types, and the multiple data types include the first data type;
  • Determining the first time period corresponding to the first data type includes:
  • the first time period corresponding to the first data type is determined according to the time period allocation information.
  • the gateway node can allocate the time period corresponding to the data type, thereby facilitating each data collection node to determine the time period corresponding to various data types.
  • the method further includes:
  • the time unit allocation information is used to indicate the time unit allocated to each data collection node in the time period corresponding to the various data types, and each data collection node includes The first data collection node;
  • Determining the first time unit allocated to the first data collection node in the at least one time unit includes:
  • the first time unit allocated to the first data collection node is determined in the at least one time unit.
  • the gateway node can allocate the time unit corresponding to each data collection node, thereby facilitating each data collection node to determine its corresponding time unit.
  • the method before receiving the time unit allocation information sent by the gateway node, the method further includes:
  • the gateway node allocates time units to the data collection node.
  • the method before receiving the time period allocation information sent by the gateway node, the method further includes:
  • a special data transmission request is sent to the gateway node, where the special data transmission request is used to request the transmission of data of a special data type.
  • time units can be temporarily allocated to special data types, which can not only ensure the transmission requirements of special data, but also avoid the waste of upload resources.
  • the method further includes:
  • the time period adjustment instruction information is used to instruct the second time period corresponding to the special data type to be adjusted to the first time period.
  • the first time period The starting time is before the starting time of the second time period;
  • Determining the first time period corresponding to the first data type includes:
  • the first time period corresponding to the special data type is determined according to the time period adjustment indication information.
  • the time period corresponding to the special data type can be temporarily adjusted forward to meet the early upload of special data.
  • the method further includes:
  • the time unit adjustment information is used to indicate updating the time unit corresponding to each data collection node in the first time period corresponding to the special data type.
  • the data collection node includes the first data collection node;
  • Determining the first time unit allocated to the first data collection node in the at least one time unit includes:
  • a first time unit allocated to the first data collection node is determined in the at least one time unit.
  • the time unit can be updated for each data collection node again, thereby facilitating the data collection nodes with special data transmission needs to upload special types of data as soon as possible.
  • the method further includes:
  • the first data packet sent to the gateway node including the first timestamp of sending the first data packet and the node identification of the first data collection node;
  • the second data packet includes the first timestamp, a second timestamp and a third timestamp.
  • the second timestamp is when the gateway node receives the The timestamp of the first data packet
  • the third timestamp is the timestamp of the gateway node sending the second data packet;
  • the second timestamp, the third timestamp and the fourth timestamp calculate the transmission delay from the first data collection node to the gateway node, and calculate the transmission delay according to the transmission delay Clock synchronization is performed between the first data collection node and the gateway node, and the fourth timestamp is the time stamp when the first data collection node receives the second data packet.
  • clock synchronization is performed between the data collection node and the gateway node, thereby facilitating the accurate determination of the time unit where each data collection node is located.
  • embodiments of the present application provide a communication method, which method includes:
  • Receive target data sent by the first data collection node the target data is sent in a first time unit allocated to the first data collection node in a first time period, the first time period is the target The time period corresponding to the first data type to which the data belongs;
  • the first data type includes one of a non-retransmission regular data type, a retransmission regular data type and a special data type.
  • the method further includes:
  • Send time period allocation information where the time period allocation information is used to indicate time periods corresponding to various data types among multiple data types, and the multiple data types include the first data type.
  • the method further includes:
  • the time unit allocation information is used to indicate the time unit allocated to each data collection node in the time period corresponding to the various data types, and each data collection node includes the first data collection node.
  • the method before sending the time unit allocation information, the method further includes:
  • the sending time unit allocation information includes:
  • the time unit allocation information is sent according to the network access application data packet.
  • the method further includes:
  • the sending time period allocation information includes:
  • the time period allocation information is sent according to the special data transmission request.
  • the method further includes:
  • time period adjustment instruction information to the first data collection node, where the time period adjustment instruction information is used to instruct the second time period corresponding to the special data type to be adjusted to the third time period.
  • a time period, the starting time of the first time period is before the starting time of the second time period.
  • the method further includes:
  • the time unit adjustment information is used to indicate updating the time unit corresponding to each data collection node in the first time period corresponding to the special data type, and each data collection node includes the The first data collection node, the updated time unit of the first data collection node is the first time unit.
  • the method further includes:
  • the second data packet includes the first timestamp, a second timestamp and a third timestamp.
  • the second timestamp is the result of receiving the first time stamp.
  • the timestamp of the data packet, the third timestamp is the time stamp of sending the second data packet.
  • embodiments of the present application provide a communication device, which includes a unit for implementing the method in any possible implementation manner of the first aspect and the second aspect.
  • inventions of the present application provide a communication device.
  • the communication device includes a processor and a memory.
  • the processor and the memory are connected to each other.
  • the memory is used to store a computer program.
  • the computer program includes program instructions.
  • the processor is configured to The program instructions are called to perform the method described in the first aspect, or to perform the method described in the second aspect.
  • embodiments of the present application provide a chip, which includes a processor and an interface, the processor and the interface are coupled; the interface is used to receive or output signals, and the processor is used to execute code instructions to execute as described in the first aspect method, or, perform the method described in the second aspect.
  • embodiments of the present application provide a module device, characterized in that the module device includes a communication module, a power module, a storage module and a chip module, wherein: the power module is used for The module device provides power; the storage module is used to store data and instructions; the communication module is used for internal communication of the module device, or for the module device to communicate with external devices; the chip module is used for execution The method as described in the first aspect, or performing the method as described in the second aspect.
  • embodiments of the present application provide a computer-readable storage medium that stores a computer program.
  • the computer program includes program instructions. When executed by a processor, the program instructions cause the The processor performs the method described in the first aspect, or performs the method described in the second aspect.
  • Figure 1 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • Figure 2 is a schematic flow chart of a communication method provided by an embodiment of the present application.
  • Figure 3 is a schematic flow chart of another communication method provided by an embodiment of the present application.
  • Figure 4a is a specific scenario flow chart of a communication method provided by an embodiment of the present application.
  • Figure 4b is a schematic diagram of a timestamp provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • Figure 7 is a schematic structural diagram of yet another communication device provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a module device provided by an embodiment of the present application.
  • the technical solution of this application can be applied to different communication systems, including but not limited to Long Range (LoRa) system, third generation mobile communication (3th generation, 3G) system, fourth generation mobile communication (45th generation, 4G) system. ) system, it can also be applied to the fifth generation mobile communication (5th generation, 5G) system, which can also be called the New Radio (NR) system, or the sixth generation mobile communication (6th generation, 6G) system or future Other communication systems.
  • LoRa Long Range
  • 3th generation, 3G third generation mobile communication
  • 4G fourth generation mobile communication
  • 5G fifth generation mobile communication
  • NR New Radio
  • 6G sixth generation mobile communication
  • the communication system architecture includes data collection nodes, gateway nodes, and cloud servers.
  • the data collection nodes are used to collect data.
  • the data collection node is an environmental monitoring device, the data collection node can be used to collect the environment.
  • Data for example, temperature data.
  • the data collection node sends the data to the gateway node.
  • the gateway node can be a data distribution center.
  • the gateway node can collect the information of each data collection node and transmit the collected information to the cloud server through Ethernet. Users can perform visual development based on the cloud platform and perform visual operations on data through web pages or mobile terminals. It should be noted that the star structure formed by each node in Figure 1 is only an example, and other network topologies can also be used.
  • data collection nodes may refer to various forms of sensor equipment, user equipment (UE), access terminals, user units, user stations, mobile stations, mobile stations (MS), remote station, remote terminal, mobile device, user terminal, wireless communications device, user agent or user device.
  • the terminal device may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a device with wireless communications Functional handheld devices, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, and wearable devices are not limited in the embodiments of the present application.
  • the gateway node can be a device with wireless transceiver function or a chip that can be installed on the device.
  • the gateway node includes but is not limited to: a concentrator, an evolved node B (eNB), a wireless network Controller (radio network controller, RNC), node B (node B, NB), network equipment controller (base station controller, BSC), network equipment transceiver station (base transceiver station, BTS), home network equipment (for example, home evolved node B, or home node B, HNB), baseband unit (BBU), wireless relay node, wireless backhaul node, transmission point (transmission and reception point, TRP or transmission point, TP), etc.
  • eNB evolved node B
  • RNC wireless network Controller
  • node B node B
  • BSC network equipment controller
  • BTS network equipment transceiver station
  • home network equipment for example, home evolved node B, or home node B, HNB
  • BBU baseband unit
  • wireless relay node wireless backhaul node
  • the data collection node when the data collection node needs to send target data to the gateway node, the data collection node obtains the first data type to which the target data belongs, thereby determining the corresponding data type of the first data type.
  • the first time period includes at least one time unit, and further determines the first time unit allocated to the first data collection node in the at least one time unit, and sends the target to the gateway node in the first time unit. data, so that when the data collection node needs to send data, it can quickly and automatically determine the time unit where the data is sent, thereby improving data transmission efficiency.
  • Figure 2 is a schematic flow chart of a communication method provided by an embodiment of the present application.
  • the communication method can be applied to the communication system shown in Figure 1, and is explained from the perspective of interaction between a data collection node and a gateway node.
  • the communication method includes the following steps:
  • the first data collection node obtains the first data type to which the target data belongs.
  • the first data collection node may be any data collection node in the communication system, and the target data may refer to the data that the first data collection node needs to send to the gateway node.
  • the target data may be collected environmental data, such as ambient temperature, etc. It is understood that the target data may also be other data to be transmitted, which is not limited in this application.
  • the first data collection node obtains the first data type to which the target data belongs.
  • the first data type may include one of a non-retransmission regular data type, a retransmission regular data type, and a special data type.
  • the non-retransmitted regular data type data may include regular data uploaded for the first time
  • the retransmitted regular data type data may include retransmitted regular data, where the regular data may refer to non-abnormal data, such as data Data whose values are within the preset range are non-abnormal data.
  • Data of special data types may include special data uploaded for the first time and/or special data retransmitted.
  • the special data may refer to abnormal data. For example, data whose data value is not within a preset range is abnormal data.
  • the first data collection node determines a first time period corresponding to the first data type, where the first time period includes at least one time unit.
  • the first data collection node determines the first time unit allocated to the first data collection node in at least one time unit.
  • different data types can correspond to different time periods.
  • data of a certain data type can be sent within the corresponding time period.
  • the non-retransmission regular data type corresponds to one time period
  • the retransmission regular data type corresponds to another time period
  • the special data type corresponds to another time period
  • the retransmitted special data can all correspond to the same time period to ensure that the retransmitted special data can also be uploaded in time.
  • Each time period includes at least one time unit.
  • the time unit is a time domain unit used for signal transmission, which may include a radio frame, a subframe, a slot, a mini-slot, or at least one orthogonal frequency division multiplexer (Orthogonal Frequency Division Multiplexing, OFDM) symbol and other time domain units, of course, can also be a newly defined time domain unit, which is not limited in this application.
  • the gateway node can allocate at least one time unit within the time period to each data collection node, and the data collection node transmits data in the allocated time unit.
  • the first data collection node may determine a corresponding first time period according to the first data type to which the target data belongs, and the first time period includes at least one time unit.
  • the first data collection node may determine the first time period corresponding to the first data type in the data transmission cycle.
  • each data transmission cycle is divided into multiple time periods, each time period corresponds to one data type, and the first time period is the time period corresponding to the first data type.
  • the first time period includes at least one time unit.
  • the first data collection node After the first time period corresponding to the first data type determined by the first data collection node, the first data collection node further determines the number allocated to the first data collection node in at least one time unit included in the first time period.
  • the first time unit It can be understood that the first time unit may include one or more time units, which is not limited in this application.
  • the time periods corresponding to various data types in this application may be configured by the gateway node.
  • the gateway node may configure time periods corresponding to various data types among multiple data types through the time period allocation information, where the multiple data types include the first data type.
  • the gateway node can send the time period allocation information through broadcast.
  • the first data collection node determines the first time period corresponding to the first data type based on the time period allocation information.
  • the plurality of data types may include at least one of non-retransmission regular data types, retransmission regular data types, and special data types.
  • the gateway node when the data collection node connects to the network, the gateway node can configure the time periods corresponding to the three data types: non-retransmission regular data type, retransmission regular data type, and special data type.
  • the gateway node You can configure the time periods corresponding to the non-retransmission regular data type and the retransmission regular data type.
  • the gateway node receives a special data transmission request from the data collection node, the gateway node reconfigures the non-retransmission regular data type.
  • each data collection node can also be configured by the gateway node.
  • the gateway node can configure the time units corresponding to each data collection node in each time period through the time unit allocation information.
  • each data collection node includes a first data collection node.
  • the gateway node can send the time unit allocation information through broadcast.
  • the first data collection node determines the first time unit allocated to the first data collection node in at least one time unit included in the first time period based on the time unit allocation information.
  • the data collection node accesses the network, it sends a network access application packet to the gateway node.
  • the network access application packet includes the node identification of the data collection node and the network access flag.
  • the network access flag can be used to determine the network access.
  • the data packet is a network access application packet.
  • the gateway node can allocate time units to each data collection node in each time period based on the node identification of each data collection node, and indicate the allocated time unit number to the data collection node through the time unit allocation information.
  • the gateway node can sequentially allocate the time unit numbers corresponding to each data collection node in the time period according to the order in which it receives the network access application data packets of each data collection node.
  • the above time period allocation information and time unit allocation information may be sent by broadcasting. It can be understood that the above time period allocation information and time unit allocation information may be sent through one message, or the above time period allocation information and time unit allocation information may be sent through different messages respectively, which is not limited by this application.
  • the gateway node can also indicate to each data collection node the start time of the first data transmission cycle, the length of the data cycle, the length of a single time unit, and so on.
  • the first data collection node sends target data to the gateway node in the first time unit.
  • the gateway node receives the target data sent by the first data collection node.
  • the first data collection node After determining the first time unit, the first data collection node can send the target data to the gateway node in the first time unit.
  • the gateway node sends the target data to the cloud server.
  • the gateway node After receiving the target data sent by the first data collection node, the gateway node sends the target data to the cloud server.
  • the user can perform visual operations on the target data through the web page or mobile terminal based on the cloud platform.
  • the method in the embodiment of the present application may also include a clock synchronization process between the gateway node and the data collection node.
  • the clock synchronization process may be understood as the process between the data collection node and the gateway node.
  • the clock alignment allows each data collection node to accurately determine its corresponding time unit. The following is an example of the clock synchronization process between the gateway node and the first data collection node in three steps:
  • Step 1 The first data collection node sends a first data packet to the gateway node.
  • the first data packet includes a first timestamp for sending the first data packet and a node identifier of the first data collection node.
  • the first data packet may be a network access request data packet sent by the first data collection node to the gateway node.
  • the first data packet includes the node identifier of the first data collection node, the network address and the local timestamp T 1 of the first data collection node when sending the first data packet, that is, the first timestamp.
  • the gateway node will receive the first data packet and record the local timestamp T 2 when the gateway node receives the first data packet, that is, the second timestamp. Then the gateway node parses the first data packet and records the node identification, network address and first timestamp T 1 in the first data packet of the first data collection node.
  • the gateway node After a certain period of delay, the gateway node records the local timestamp T 3 , which is the third timestamp, and sends the second data packet carrying the response signal and timestamps T 1 , T 2 , and T 3 to the third time stamp.
  • T 3 the third timestamp
  • Step 2 The first data collection node receives the second data packet sent by the gateway node.
  • the second data packet includes a first timestamp, a second timestamp and a third timestamp.
  • the second timestamp is when the gateway node receives the first time stamp.
  • the timestamp of the data packet, and the third timestamp is the timestamp of the gateway node sending the second data packet.
  • Step 3 Calculate the transmission delay from the first data collection node to the gateway node based on the first time stamp, the second time stamp, the third time stamp, and the fourth time stamp, and conduct communication between the first data collection node and the gateway node based on the transmission delay.
  • the clocks between the two nodes are synchronized, and the fourth timestamp is the timestamp when the first data collection node receives the second data packet.
  • the first data collection node receives the second data packet sent from the gateway node, and records the local timestamp T 4 at this time, which is the fourth timestamp. At this time, the first data collection node has obtained four timestamps, namely T 1 , T 2 , T 3 and T 4 .
  • the first data collection node can be calculated through the timestamps T 1 , T 2 , T 3 and T 4 Transmission delay between node and gateway node. The method of calculating the transmission delay is explained below in conjunction with Figure 4b. As shown in Figure 4b, node B can be called the first data collection node, and node A can be called the gateway node, then:
  • is the clock drift
  • d is the transmission delay
  • T 1 is the first timestamp
  • T 2 is the second timestamp
  • T 3 is the third timestamp
  • T 4 is the fourth timestamp.
  • the transmission delay can be calculated by the following formula:
  • the first data collection node After the first data collection node calculates the transmission delay d, it can add the transmission delay d to the clock of the first data collection node to align with the clock of the gateway node. It is understandable that if the first data collection node and the gateway There is a time difference between nodes, and they need to be converted based on the time difference to align with the gateway node as the standard. All data collection nodes can achieve clock alignment with the gateway node through the above process to complete clock synchronization between the network node and each data collection node.
  • different time periods are allocated to different data types.
  • the first time period corresponding to the first data type is determined, and further in the The first time unit allocated to the first data collection node is determined from at least one time unit included in the first time period, so that the target data is sent to the gateway node in the first time unit.
  • This application allocates the time period corresponding to each data type and the time unit corresponding to each data collection node. When the data collection node needs to send data, it will automatically send it in the corresponding time unit, improving data transmission efficiency and reducing network flooding. signaling, saving network resources.
  • Figure 3 is a schematic flowchart of another communication method provided by an embodiment of the present application. This communication method can be applied to the communication system shown in Figure 1, and is explained from the perspective of the interaction between the data collection node and the gateway node. .
  • the communication method includes the following steps:
  • the first data collection node obtains the first data type to which the target data belongs.
  • the gateway node may allocate corresponding time periods to various data types.
  • the gateway node can allocate corresponding time periods to non-retransmission regular data types, retransmission regular data types and special data types respectively.
  • the time period allocated by the gateway node to special data types is called the second time period. period.
  • the gateway node can divide the data transmission cycle into multiple time periods, and one time period corresponds to one data type. For example, since reallocation is required when transmitting special data, in order to allow more time units to be used for transmitting regular data, the duration of the second time period corresponding to the special data type may be relatively small.
  • step 301 For the specific content of step 301 in the embodiment of this application, reference can be made to step 201 in the embodiment shown in FIG. 2, which will not be described again here.
  • the first data collection node sends a special data transmission request to the gateway node.
  • the special data transmission request is used to request the transmission of data of the special data type.
  • the first data collection node may send a special data transmission request to the gateway node.
  • the special data transmission request is used to request the transmission of data of a special data type.
  • the special data transmission request may also be used to request reallocation of a time period corresponding to a special data type.
  • the first data collection node when the first data type is a special data type and the amount of target data is greater than a preset threshold, the first data collection node sends a special data transmission request to the gateway node to Requests to reallocate the time period corresponding to a special data type. If the first data type is a special data type and the data amount of the target data is less than or equal to the preset threshold, the target data can be transmitted in the pre-allocated second time period. This method can flexibly determine whether to reallocate based on the size of the target data, so as to achieve the effect of flexibly configuring and transmitting special data.
  • the gateway node sends the time period adjustment instruction information to the first data collection node according to the special data transmission request.
  • the time period adjustment instruction information is used to instruct the second time period corresponding to the special data type to be adjusted to the first time period.
  • the first The start time of the time period is before the start time of the second time period.
  • the first data collection node determines the first time period corresponding to the special data type according to the time period adjustment instruction information.
  • the first time period includes at least one time unit.
  • the gateway node can re-allocate time periods to each data type, that is, adjust the time periods corresponding to each data type. For example, the second time period corresponding to the special data type is adjusted to the first time period, and the starting time of the first time period is before the starting time of the second time period, so that the special data collection node of the first data collection node can Data can be transferred in a timely manner.
  • the first time period is longer than the second time period to transmit more special data.
  • the first time period allocated by the gateway node to a special data type is between the 50th and 60th seconds
  • the first time period corresponding to the updated special data type can be the 30th second. seconds to the 60th second.
  • the order of the time periods corresponding to each data type can also be adjusted.
  • the first time period corresponding to the special data type is moved to the front of the data transmission cycle so that the special data can be transmitted in time.
  • the special data can be Some urgent upload data.
  • the gateway node may indicate to the first data collection node the time period corresponding to each updated data type. For example, the gateway node may indicate the time period corresponding to each updated data type through the time period adjustment indication information, including adding special data to the first data collection node. The second time period corresponding to the type is adjusted to the first time period.
  • the first data collection node may determine the first time period corresponding to the special data type according to the time period adjustment indication information.
  • the first data collection node determines the first time unit allocated to the first data collection node in at least one time unit.
  • the first data collection node determines a first time unit allocated to the first data collection node in the first time period.
  • the gateway node can update the time unit corresponding to each data collection node in each adjusted time period, and each data collection node includes the first data collection node.
  • the gateway node can update the time unit of each data collection node in the time period corresponding to various data types through the time unit adjustment information, including updating the time of each data collection node in the first time period corresponding to the special data type.
  • the unit is updated, for example, the time unit corresponding to the first data collection node in the first time period is updated to the first time unit.
  • the first data collection node receives the time unit adjustment information, and determines the first time unit corresponding to the first data collection node according to the time unit adjustment information, that is, the first time unit is allocated to the first data collection node. of.
  • the gateway node may not adjust the time units corresponding to each data collection node in each time period, for example, corresponding to each time unit according to the order of the original data collection nodes.
  • the first data collection node sends the target data to the gateway node in the first time unit.
  • the gateway node sends the target data to the cloud server.
  • steps 306 to 307 of the embodiment of this application please refer to step 204 and step 205 of the embodiment of Figure 2, which will not be described again here.
  • the gateway node can pre-allocate time periods corresponding to multiple data types including special data types. When special data transmission requirements are subsequently stored, the time periods corresponding to each data type can be flexibly re-assigned. Distribution to ensure that the data collection node transmits special data to the gateway node in a timely manner.
  • Figure 4a is a specific scenario flow chart of a communication method provided by an embodiment of the present application.
  • the time unit is a time slot as an example. It can be understood that this scenario flow is only an example and does not constitute a requirement for this application. Limitations of this application.
  • each node including each data collection node and gateway node
  • the data collection node and gateway node will perform initialization operations.
  • the gateway node will send a broadcast signal to all data collection nodes.
  • the networking operation begins.
  • the data collection node applies for network access and applies for time slots.
  • the gateway node allocates time periods to each data type and allocates time slots to each data collection node in each time period. If the time slot allocation is completed, the data collection node will upload regular data in the time slot allocated to the data collection node within the time period corresponding to the non-retransmission regular data type, and enter sleep after uploading the regular data.
  • the data collection node receives acknowledgment information (ACK) for regular data, it parses the ACK. If the data collection node does not receive the ACK, it determines whether the regular data has been retransmitted for 3 times. If so, it ends. If not, it retransmits in the retransmission time slot corresponding to the assigned retransmission regular data type. It can be understood that the retransmission time slot is a time slot allocated to the data collection node. After the data collection node retransmits, it goes to sleep and checks whether an ACK is received.
  • ACK acknowledgment information
  • the data collection node detects whether there is special data transmission. If not, it continues to upload regular data. If so, it applies to the gateway node to adjust the time period, for example, reallocate the time periods corresponding to various data types originally allocated. , and transmit special data in the special (SPEC) time slot within the time period corresponding to the adjusted special data type.
  • the SPEC time slot is allocated for the data collection node. Then the data collection node sleeps and detects whether an ACK is received. If an ACK is received, the ACK is parsed. If no ACK is received, further retransmission is performed in the SPEC time slot within the time period corresponding to the special data type.
  • FIG. 5 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • the device may be the first data collection node, or may be a device in the first data collection node.
  • it may be a chip or chip module in the first data collection node, or may be capable of matching the first data collection node.
  • the first data collection node can be any data collection node.
  • the communication device 500 shown in FIG. 5 may include an acquisition unit 501, a first determination unit 502, a second determination unit 503, and a communication unit 504.
  • the communication unit 504 integrates a receiving unit and a sending unit.
  • the communication unit 504 may also be called a transceiver unit.
  • the communication unit 504 can also be split into a receiving unit and a sending unit. The same applies to the communication unit 504 below, which will not be described again. in:
  • the acquisition unit 501 is configured to acquire the first data type to which the target data belongs when the target data needs to be sent to the gateway node;
  • the first determining unit 502 is used to determine the first time period corresponding to the first data type, where the first time period includes at least one time unit;
  • the second determining unit 503 is configured to determine the first time unit allocated to the first data collection node in the at least one time unit;
  • the communication unit 504 is configured to send the target data to the gateway node in the first time unit.
  • the first data type includes one of a non-retransmission regular data type, a retransmission regular data type and a special data type.
  • the first determining unit 502 is specifically configured to determine the first time period corresponding to the first data type in a data transmission cycle, which includes multiple time periods. , one time period corresponds to one data type, and the multiple time periods include the first time period.
  • the communication unit 504 is also configured to receive time period allocation information sent by the gateway node, where the time period allocation information is used to indicate that each of the multiple data types corresponds to The time period, the plurality of data types includes the first data type;
  • the first determining unit 502 is specifically configured to determine the first time period corresponding to the first data type according to the time period allocation information.
  • the communication unit 504 is also configured to receive time unit allocation information sent by the gateway node, where the time unit allocation information is used to indicate the time periods corresponding to the various data types. is the time unit allocated to each data collection node, and each data collection node includes the first data collection node;
  • the second determining unit 503 is specifically configured to determine the first time unit allocated to the first data collection node in the at least one time unit according to the time unit allocation information.
  • the communication unit 504 is further configured to send a network access application data packet to the gateway node, where the network access application data packet includes the node identification of the first data collection node.
  • the first data type is a special data type
  • the communication unit 504 is also configured to send a special data transmission request to the gateway node, where the special data transmission request is used to request the transmission of data of a special data type.
  • the first data type is a special data type
  • the communication unit 504 is also used to send a special data transmission request to the gateway node, where the special data transmission request is used to request the transmission of data of a special data type;
  • the communication unit 504 is also configured to receive the time period adjustment instruction information sent by the gateway node.
  • the time period adjustment instruction information is used to instruct the second time period corresponding to the special data type to be adjusted to the first time. period, the starting time of the first time period is before the starting time of the second time period;
  • the first determining unit 502 is specifically configured to determine the first time period corresponding to the special data type according to the time period adjustment indication information.
  • the communication unit 504 is further configured to receive time unit adjustment information sent by the gateway node, where the time unit adjustment information is used to indicate the first time unit corresponding to the special data type.
  • the time unit corresponding to each data collection node in a time period is updated, and each data collection node includes the first data collection node;
  • the second determining unit 503 is specifically configured to determine the first time unit allocated to the first data collection node in the at least one time unit according to the time unit adjustment information.
  • the communication unit 504 is also used to send a first data packet to the gateway node, where the first data packet includes a first timestamp for sending the first data packet and The node identifier of the first data collection node;
  • the communication unit 504 is also configured to receive a second data packet sent by the gateway node.
  • the second data packet includes the first timestamp, a second timestamp and a third timestamp.
  • the second timestamp is the timestamp when the gateway node receives the first data packet
  • the third timestamp is the timestamp when the gateway node sends the second data packet;
  • the device also includes:
  • a clock synchronization unit configured to calculate the transmission delay from the first data collection node to the gateway node based on the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp, And perform clock synchronization between the first data collection node and the gateway node according to the transmission delay, and the fourth timestamp is the time stamp when the first data collection node receives the second data packet.
  • FIG. 6 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • the device may be a gateway node, or a device in the gateway node.
  • it may be a chip or chip module in the gateway node, or a device that can be used in conjunction with the gateway node.
  • the communication device 600 shown in FIG. 6 may include a communication unit 601.
  • the communication unit 601 integrates a receiving unit and a sending unit.
  • the communication unit 601 may also be called a transceiver unit.
  • the communication unit 601 can also be split into a receiving unit and a sending unit. in:
  • Communication unit 601 configured to receive target data sent by the first data collection node, where the target data is sent in the first time unit allocated to the first data collection node in the first time period, and the first The time period is the time period corresponding to the first data type to which the target data belongs;
  • the communication unit 601 is also used to send the first data to the cloud server.
  • the first data type includes one of a non-retransmission regular data type, a retransmission regular data type and a special data type.
  • the communication unit 601 is also configured to send time period allocation information, where the time period allocation information is used to indicate the time periods corresponding to various data types among multiple data types.
  • the plurality of data types includes the first data type.
  • the communication unit 601 is also used to send time unit allocation information.
  • the time unit allocation information is used to indicate the time periods corresponding to the various data types for each data collection node.
  • the respective data collection nodes include the first data collection node.
  • the communication unit 601 is also configured to receive a network access application packet sent by the first data collection node, where the network access application packet includes a node identification of the first data collection node. ;
  • the communication unit 601 is also configured to send the time unit allocation information according to the network access application data packet.
  • the first data type is a special data type
  • the communication unit 601 is also configured to receive a special data transmission request sent by the first data collection node, where the special data transmission request is used to request the transmission of data of a special data type;
  • the communication unit 601 is also configured to send the time period allocation information according to the special data transmission request.
  • the communication unit 601 is also configured to receive a special data transmission request sent by the first data collection node, where the special data transmission request is used to request the transmission of data of a special data type;
  • the communication unit 601 is also configured to send time period adjustment indication information to the first data collection node according to the special data transmission request.
  • the time period adjustment indication information is used to instruct the third data corresponding to the special data type to be transferred to the first data collection node.
  • the two time periods are adjusted to the first time period, and the starting time of the first time period is before the starting time of the second time period.
  • the communication unit 601 is also configured to send time unit adjustment information, where the time unit adjustment information is used to indicate each data in the first time period corresponding to the special data type.
  • the time unit corresponding to the collection node is updated, each of the data collection nodes includes the first data collection node, and the updated time unit for the first data collection node is the first time unit.
  • the communication unit 601 is also configured to receive a first data packet sent by the first data collection node, where the first data packet includes the first data packet sent by the first data collection node.
  • the communication unit 601 is also configured to send a second data packet to the first data collection node.
  • the second data packet includes the first timestamp, a second timestamp and a third timestamp.
  • the timestamp is the time stamp of receiving the first data packet
  • the third timestamp is the time stamp of sending the second data packet.
  • Figure 7 is a schematic structural diagram of another communication device provided by an embodiment of the present application, which is used to implement the function of the first data collection node in Figure 2 or Figure 3.
  • the communication device 700 may be a first data collection node or a device for a first data collection node.
  • the device used for the first data collection node may be a chip system or chip within the first data collection node.
  • the chip system can be composed of chips, or can also include chips and other discrete devices.
  • the communication device 700 is used to implement the functions of the gateway node in Figure 2 or Figure 3 described above.
  • the communication device may be a gateway node or a device for a gateway node.
  • the means for the gateway node may be a chip system or chip within the gateway node.
  • the communication device 700 includes at least one processor 720, which is used to implement the data processing function of the first data collection node or gateway node in the method provided by the embodiment of the present application.
  • the device 700 may also include a communication interface 710, which is used to implement the sending and receiving operations of the first data collection node or the gateway node in the method provided by the embodiment of the present application.
  • the processor 720 can be a central processing unit (Central Processing Unit, CPU), and the processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits ( Application Specific Integrated Circuit (ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the communication interface 710 may be a transceiver, a circuit, a bus, a module, or other types of communication interfaces for communicating with other devices through a transmission medium.
  • the communication interface 710 is used for devices in the communication device 700 to communicate with other devices.
  • the processor 720 uses the communication interface 710 to send and receive data, and is used to implement the method described in Figure 2 or Figure 3 of the above method embodiment.
  • Communication device 700 may also include at least one memory 730 for storing program instructions and/or data.
  • Memory 730 and processor 720 are coupled.
  • the coupling in the embodiment of this application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
  • Processor 720 may cooperate with memory 730.
  • Processor 720 may execute program instructions stored in memory 730 . At least one of the at least one memory may be included in the processor.
  • the processor 720 can read the software program in the memory 730, interpret and execute the instructions of the software program, and process the data of the software program.
  • the processor 720 performs baseband processing on the data to be sent, and then outputs the baseband signal to the radio frequency circuit (not shown in the figure).
  • the radio frequency circuit performs radio frequency processing on the baseband signal and then transmits the radio frequency signal through the antenna in the form of electromagnetic waves. Send outward.
  • the radio frequency circuit receives the radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor 720.
  • the processor 720 converts the baseband signal into data and performs processing on the data. deal with.
  • the radio frequency circuit and antenna can be set up independently of the processor 720 that performs baseband processing.
  • the radio frequency circuit and antenna can be set up remotely and independently of the communication device. layout.
  • the embodiment of the present application does not limit the specific connection medium between the communication interface 710, the processor 720 and the memory 730.
  • the memory 730, the processor 720 and the communication interface 710 are connected through a bus 740 in Figure 7.
  • the bus is represented by a thick line in Figure 7.
  • the connection methods between other components are only schematically explained. , is not limited.
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 7, but it does not mean that there is only one bus or one type of bus.
  • the communication interface 710 may output or receive a baseband signal.
  • the communication device 700 is specifically the first data collection node, what the communication interface 710 outputs or receives may be a radio frequency signal.
  • the communication device can perform the relevant steps of the first data collection node or the gateway node in the foregoing method embodiments. For details, please refer to the implementation provided by each of the above steps, which will not be described again here.
  • each module included in them can be implemented in the form of hardware such as circuits.
  • Different modules can be located in the same component (for example, a chip, circuit module, etc.) or in different components in the terminal. , or at least some of the modules can be implemented in the form of a software program, which runs on the processor integrated inside the terminal, and the remaining (if any) modules can be implemented in hardware such as circuits.
  • non-volatile memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • non-volatile memory can be read-only memory (ROM), programmable rom (PROM), erasable programmable read-only memory (erasable prom, EPROM), electrically removable memory.
  • EEPROM electrically programmable read-only memory
  • Volatile memory can be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced synchronous dynamic random access memory
  • Synchronously connect dynamic random access memory switchlink DRAM, SLDRAM
  • direct memory bus random access memory direct rambus RAM, DR RAM
  • An embodiment of the present application provides a chip.
  • the chip includes: processor and memory.
  • the number of processors may be one or more, and the number of memories may be one or more.
  • the processor can execute the above communication method as shown in Figure 2 or Figure 3, as well as the steps performed by related implementations.
  • FIG 8 is a schematic structural diagram of a module device provided by an embodiment of the present application.
  • the module device 800 can perform the relevant steps of the first data collection node or the gateway node in the aforementioned method embodiment.
  • the module device 800 includes: a communication module 801, a power module 802, a storage module 803 and a chip module 804. .
  • the power module 802 is used to provide power for the module device;
  • the storage module 803 is used to store data and instructions;
  • the communication module 801 is used for internal communication of the module device, or for communication between the module device and external devices. ;
  • the chip module 804 can perform the above-mentioned communication method shown in Figure 2 or Figure 3, as well as the steps performed in related implementations.
  • An embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the computer program includes program instructions. When the program instructions are executed by the processor, the communication method shown in Figure 2 or Figure 3 can be executed, as well as the execution of related embodiments. A step of.
  • the computer-readable storage medium may be an internal storage unit of the data collection node or gateway node described in any of the preceding embodiments, such as a hard disk or memory of the device.
  • the computer-readable storage medium may also be an external storage device of the data collection node or gateway node, such as a plug-in hard disk, a smart media card (SMC), or a secure digital device equipped on the device. digital, SD) card, flash card, etc.
  • the computer-readable storage medium may also include both an internal storage unit and an external storage device of the data collection node or gateway node.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the data collection node or gateway node.
  • the computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
  • the computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server or a data center that contains one or more sets of available media.
  • the available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media.
  • the semiconductor medium may be a solid state drive.
  • each device and product described in the above embodiments may be software modules/units or hardware modules/units, or they may be partly software modules/units and partly hardware modules/units.
  • each module/unit included therein can be implemented in the form of hardware such as circuits, or at least some of the modules/units can be implemented in the form of a software program.
  • the software program Running on the processor integrated inside the chip, the remaining (if any) modules/units can be implemented using circuits and other hardware methods; for various devices and products applied to or integrated into the chip module, each module/unit included in it can They are all implemented in the form of hardware such as circuits.
  • Different modules/units can be located in the same component of the chip module (such as chips, circuit modules, etc.) or in different components. Alternatively, at least some modules/units can be implemented in the form of software programs.
  • the software program runs on the processor integrated inside the chip module, and the remaining (if any) modules/units can be implemented using circuits and other hardware methods; for each device and product that is applied to or integrated in the data collection node, it includes Each module/unit can be implemented in the form of hardware such as circuits.
  • Different modules/units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or at least some of the modules/units can use software programs.
  • This software program runs on the processor integrated inside the data acquisition node, and the remaining (if any) modules/units can be implemented using circuits and other hardware methods.
  • the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination.
  • the above-described embodiments may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission by wired or wireless means to another website site, computer, server or data center.
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its functions and internal logic, and should not be used in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed methods, devices and systems can be implemented in other ways.
  • the device embodiments described above are only illustrative; for example, the division of the units is only a logical function division, and there may be other division methods during actual implementation; for example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in various embodiments of the present invention may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium.
  • the above-mentioned software functional unit is stored in a storage medium and includes a number of instructions to cause a computer device (which can be a personal computer, a server, or a gateway node, etc.) to execute some steps of the method described in various embodiments of the present invention.
  • the program can be stored in a computer-readable storage medium.
  • the program can be stored in a computer-readable storage medium.
  • the process may include the processes of the embodiments of each of the above methods.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.

Landscapes

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

Abstract

提供了一种通信方法及通信装置,方法包括:在需要向网关节点发送目标数据的情况下,获取目标数据所属第一数据类型(201);确定第一数据类型对应的第一时间段(202),第一时间段包括至少一个时间单元;在至少一个时间单元中确定为第一数据采集节点分配的第一时间单元(203);在第一时间单元中向网关节点发送目标数据(204)。采用本申请可以提高数据传输效率,节省网络资源。

Description

通信方法及通信装置 技术领域
本申请涉及通信技术领域,尤其涉及一种通信方法及通信装置。
背景技术
在物联网通信技术领域中,数据采集节点可以进行数据采集,例如,数据采集节点可以是各种环境监测设备,收集环境数据。数据采集节点将所采集的数据传输到网关节点,网关节点将各个数据采集节点的信息进行汇集,并通过以太网发送给云服务器,从而用户可以基于云平台进行可视化的开发。目前数据采集节点传输数据到网关节点的传输方式是,网关节点向数据采集节点发送用于指示该数据采集节点发送数据的指示信息时,该数据采集节点才能发送数据,这种方式传输效率低,并且大量信令充斥网络浪费网络资源。
发明内容
本申请实施例提供一种通信方法及通信装置,能够提高数据传输效率,节省网络资源。
第一方面,本申请实施例提供了一种通信方法,该方法包括:在需要向网关节点发送目标数据的情况下,获取所述目标数据所属第一数据类型;
确定所述第一数据类型对应的第一时间段,所述第一时间段包括至少一个时间单元;
在所述至少一个时间单元中确定为第一数据采集节点分配的第一时间单元;
在所述第一时间单元中向所述网关节点发送所述目标数据。
基于第一方面的描述,为不同的数据类型分配不同的时间段,在确定需要发送给网关节点的目标数据的第一数据类型时,确定该第一数据类型对应的第一时间段,进一步在该第一时间段所包含的至少一个时间单元中确定为该第一数据采集节点分配的第一时间单元,从而在第一时间单元中向网关节点发送目标数据。本申请分配了各个数据类型对应的时间段,以及各个数据采集节点所对应的时间单元,在数据采集节点需要发送数据时自动在对应的时间单元发送,提高数据传输效率,并且减少了网络中充斥的信令,节省了网络资源。
在一种可选的实施方式中,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
通过该方式,可以为各种数据类型的配置不同时间段。
在一种可选的实施方式中,所述确定所述第一数据类型对应的第一时间段,包括:
在数据传输周期中确定所述第一数据类型对应的第一时间段,所述数据传输周期中包括多个时间段,一个时间段对应一种数据类型,所述多个时间段包括所述第一时间段。
通过该方式可以是以数据传输周期为粒度进行数据类型对应时间段的配置,实现周期性的各种类型数据对应时间段的配置。
在一种可选的实施方式中,所述方法还包括:
接收所述网关节点发送的时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型;
所述确定所述第一数据类型对应的第一时间段,包括:
根据所述时间段分配信息,确定所述第一数据类型对应的所述第一时间段。
通过该方式,可以实现由网关节点分配数据类型对应的时间段,从而便于各个数据采集节点确定各种数据类型对应的时间段。
在一种可选的实施方式中,所述方法还包括:
接收所述网关节点发送的时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点;
所述在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元,包括:
根据所述时间单元分配信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的所述第一时间单元。
通过该方式,可以实现由网关节点分配各个数据采集节点对应的时间单元,从而便于各个数据采集节点确定自身所对应的时间单元。
在一种可选的实施方式中,所述接收所述网关节点发送的时间单元分配信息之前,还包括:
向所述网关节点发送入网申请数据包,所述入网申请数据包包括所述第一数据采集节点的节点标识。
通过该方式,可以实现在数据采集节点入网时,网关节点为数据采集节点分配时间单元。
在一种可选的实施方式中,若所述第一数据类型为特殊数据类型;所述接收所述网关节点发送的时间段分配信息之前,还包括:
向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据。
通过该方式,在存在特殊数据传输需求时,能够临时为特殊数据类型分配时间单元,既能保证特殊数据的传输需求,又能避免上传资源的浪费
在一种可选的实施方式中,若所述第一数据类型为特殊数据类型;所述确定所述第一数据类型对应的第一时间段之前,还包括:
向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
接收所述网关节点发送的时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前;
所述确定所述第一数据类型对应的第一时间段,包括:
根据所述时间段调整指示信息,确定所述特殊数据类型对应的所述第一时间段。
通过该方式,在存在特殊数据传输需求时,能够临时将特殊数据类型对应的时间段往前调整,从而满足特殊数据的尽早上传。
在一种可选的实施方式中,所述方法还包括:
接收所述网关节点发送的时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点;
所述在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元,包括:
根据所述时间单元调整信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元。
通过该方式,在第一数据采集节点存在特殊数据传输需求时,能够重新为各个数据采集节点更新时间单元,从而便于有特殊数据传输需求的数据采集节点尽早上传特殊类型数据。
在一种可选的实施方式中,所述方法还包括:
向所述网关节点发送的第一数据包,所述第一数据包包括发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
接收所述网关节点发送的第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为所述网关节点接收所述第一数据包的时间戳,所述第三时间戳为所述网关节点发送所述第二数据包的时间戳;
根据所述第一时间戳、所述第二时间戳、所述第三时间戳以及第四时间戳,计算所述第一数据采集节点到所述网关节点的传输延迟,并根据所述传输延迟进行所述第一数据采集节点和所述网关节点之间的时钟同步,所述第四时间戳为所述第一数据采集节点接收到所述第二数据包的时间戳。
通过该方式,数据采集节点和网关节点之间进行时钟同步,从而便于准确的确定各个数据采集节点所在的时间单元。
第二方面,本申请实施例提供了一种通信方法,该方法包括:
接收第一数据采集节点发送的目标数据,所述目标数据是在第一时间段中为所述第一数据采集节点分配的第一时间单元中发送的,所述第一时间段为所述目标数据所属第一数据类型对应的时间段;
将所述第一数据发送给云服务器。
在一种可选的实施方式中,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
在一种可选的实施方式中,所述方法还包括:
发送时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型。
在一种可选的实施方式中,所述方法还包括:
发送时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点。
在一种可选的实施方式中,所述发送时间单元分配信息之前,还包括:
接收所述第一数据采集节点发送的入网申请数据包,所述入网申请数据包包括所述第 一数据采集节点的节点标识;
所述发送时间单元分配信息,包括:
根据所述入网申请数据包,发送所述时间单元分配信息。
在一种可选的实施方式中,若所述第一数据类型为特殊数据类型;所述发送时间段分配信息之前,还包括:
接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
所述发送时间段分配信息,包括:
根据所述特殊数据传输请求,发送所述时间段分配信息。
在一种可选的实施方式中,所述方法还包括:
接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
根据所述特殊数据传输请求,向所述第一数据采集节点发送时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前。
在一种可选的实施方式中,所述方法还包括:
发送时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点,为所述第一数据采集节点更新后的时间单元为所述第一时间单元。
在一种可选的实施方式中,所述方法还包括:
接收所述第一数据采集节点发送的第一数据包,所述第一数据包包括所述第一数据采集节点发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
向所述第一数据采集节点发送第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为接收所述第一数据包的时间戳,所述第三时间戳为发送所述第二数据包的时间戳。
第三方面,本申请实施例提供了一种通信装置,该通信装置包括用于实现上述第一方面和第二方面中任一种可能的实现方式中的方法的单元。
第四方面,本申请实施例提供了一种通信装置,该通信装置包括处理器和存储器,处理器和存储器相互连接,存储器用于存储计算机程序,计算机程序包括程序指令,处理器被配置用于调用该程序指令,以执行如第一方面所述的方法,或者,执行如第二方面所述的方法。
第五方面,本申请实施例提供一种芯片,该芯片包括处理器与接口,处理器和接口耦合;接口用于接收或输出信号,处理器用于执行代码指令,以执行如第一方面所述的方法,或者,执行如第二方面所述的方法。
第六方面,本申请实施例提供一种模组设备,其特征在于,该模组设备包括通信模组、电源模组、存储模组以及芯片模组,其中:该电源模组用于为该模组设备提供电能;该存储模组用于存储数据和指令;该通信模组用于进行模组设备内部通信,或者用于该模组设 备与外部设备进行通信;该芯片模组用于执行如第一方面所述的方法,或者,执行如第二方面所述的方法。
第七方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如第一方面所述的方法,或者,执行如第二方面所述的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种通信系统的结构示意图;
图2是本申请实施例提供的一种通信方法的流程示意图;
图3是本申请实施例提供的另一种通信方法的流程示意图;
图4a是本申请实施例提供的一种通信方法具体场景流程图;
图4b是本申请实施例提供的一种时间戳的示意图;
图5是本申请实施例提供的一种通信装置的结构示意图;
图6是本申请实施例提供的另一种通信装置的结构示意图;
图7是本申请实施例提供的又一种通信装置的结构示意图;
图8是本申请实施例提供的一种模组设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行阐述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。
应当理解,在本文中,术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,表示前后关联对象是一种“或”的关系。
应当理解,在本文中,出现的“多个”是指两个或两个以上。
应当理解,在本文中,出现的第一、第二等描述,仅作示意与区分描述对象之用,没有次序之分,也不表示本申请实施例中对设备个数的特别限定,不能构成对本申请实施例的任何限制。
本申请的技术方案可以适用于不同的通信系统,包括但不限于远距离(Long Range,LoRa)系统、第三代移动通信(3th generation,3G)系统、第四代移动通信(45th generation, 4G)系统,还可以适用于第五代移动通信(5th generation,5G)系统,也可以称为新空口(New Radio,NR)系统,或者第六代移动通信(6th generation,6G)系统或未来的其他通信系统。
本申请的技术方案可以适用于物联网通信系统架构中,可理解,本申请的技术方案也可以适用于其他系统架构中,本申请不作限定,下面以图1所示系统架构作为举例,对本申请所适用的系统结构进行举例说明。如图1所示,该通信系统架构中包括数据采集节点、网关节点、以及云服务器,数据采集节点用于采集数据,比如数据采集节点为环境监测设备,则该数据采集节点可以用于采集环境数据,例如,温度数据。数据采集节点将数据发送给网关节点,网关节点可以是一个数据集散中心,该网关节点可以将各个数据采集节点的信息汇集,并将汇集后的信息通过以太网传输至云服务器。用户可以基于云平台作可视化的开发,通过网页或者移动端对数据进行可视化的操作。需要说明的是,图1中各个节点构成星型结构仅为举例,还可以是其他网络拓扑结构。
本申请实施例中,数据采集节点可以指各种形式的传感器设备、用户设备(user equipment,UE)、接入终端、用户单元、用户站、移动站、移动台(mobile station,MS)、远方站、远程终端、移动设备、用户终端、无线通信设备、用户代理或用户装置。终端设备还可以是蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,本申请实施例对此不做限定。
本申请实施例中,网关节点可为具有无线收发功能的设备或可设置于该设备的芯片,该网关节点包括但不限于:集中器、演进型节点B(evolved node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(node B,NB)、网络设备控制器(base station controller,BSC)、网络设备收发台(base transceiver station,BTS)、家庭网络设备(例如,home evolved node B,或home node B,HNB)、基带单元(baseband unit,BBU),无线中继节点、无线回传节点、传输点(transmission and reception point,TRP或者transmission point,TP)等,还可以为4G、5G、6G等系统中使用的设备等,这里不做限制。
在如图1所示的通信系统中,在数据采集节点需要向网关节点发送目标数据的情况下,该数据采集节点获取该目标数据所属的第一数据类型,从而确定该第一数据类型对应的第一时间段,该第一时间段包括至少一个时间单元,进一步在该至少一个时间单元中确定为第一数据采集节点分配的第一时间单元,并在该第一时间单元向网关节点发送目标数据,从而让数据采集节点在需要发送数据时,能够快速自动确定发送数据所在的时间单元,从而提高数据传输效率。
请参见图2,图2是本申请实施例提供的一种通信方法的流程示意图,该通信方法可应用于如图1所示的通信系统,从数据采集节点和网关节点交互的角度进行阐述。该通信方法包括以下步骤:
201,在需要向网关节点发送目标数据的情况下,第一数据采集节点获取目标数据所 属第一数据类型。
本申请实施例中,第一数据采集节点可以是通信系统中任一个数据采集节点,目标数据可以是指该第一数据采集节点需要向网关节点发送的数据。其中,该目标数据可以是所采集的环境数据,例如环境温度等,可理解该目标数据还可以是其他待传输的数据,本申请不作限定。示例性的,在该第一数据采集节点需要向网关节点发送目标数据的情况下,该第一数据采集节点获取该目标数据所属第一数据类型。
示例性的,该第一数据类型可以包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。其中,非重传常规数据类型的数据可以包括首次上传的常规数据,重传常规数据类型的数据可以包括对常规数据进行重传的数据,其中,常规数据可以是指非异常数据,比如,数据值在预设范围内的数据即为非异常数据。特殊数据类型的数据可以包括首次上传的特殊数据和/或重传的特殊数据,该特殊数据可以是指异常数据,比如,数据值不在预设范围内的数据即为异常数据。
202,第一数据采集节点确定第一数据类型对应的第一时间段,该第一时间段包括至少一个时间单元。
203,第一数据采集节点在至少一个时间单元中确定为第一数据采集节点分配的第一时间单元。
本申请实施例中,不同的数据类型可以对应不同的时间段,换句话说,某种数据类型的数据可在对应的时间段内发送。例如,非重传常规数据类型对应一个时间段,重传常规数据类型对应另一个时间段,特殊数据类型对应又一个时间段等等,其中,对于数据类型为特殊数据类型的首次上传特殊数据和重传特殊数据可以均对应同一个时间段,以保证重传特殊数据也能够及时上传。每个时间段包括至少一个时间单元。时间单元为用于信号传输的时域单元,可包括无线帧(radio frame)、子帧(subframe)、时隙(slot)、微时隙(mini-slot)或至少一个正交频分复用(Orthogonal Frequency Division Multiplexing,OFDM)符号等时域单位,当然也可以是一种新定义的时域单元,本申请不作限定。网关节点可将时间段内的至少一个时间单元分别分配给各个数据采集节点,数据采集节点在所分配的时间单元中传输数据。
具体可选的,第一数据采集节点可根据目标数据所属第一数据类型确定对应的第一时间段,该第一时间段包括至少一个时间单元。在一些可选的实施方式中,第一数据采集节点可在数据传输周期中确定第一数据类型对应的第一时间段。可选的,将每个数据传输周期划分为多个时间段,每个时间段对应一种数据类型,第一时间段即是第一数据类型所对应的时间段。该第一时间段中包括至少一个时间单元。
在第一数据采集节点确定的第一数据类型对应的第一时间段之后,该第一数据采集节点进一步在第一时间段中所包括的至少一个时间单元中确定为第一数据采集节点分配的第一时间单元,可理解,该第一时间单元可包括一个或多个时间单元,本申请不作限定。
在一些可选的实施方式中,本申请中的各种数据类型对应的时间段可以是由网关节点配置的。其中,网关节点可以通过时间段分配信息配置多种数据类型中各种数据类型分别对应的时间段,其中,该多种数据类型包括第一数据类型。网关节点可以通过广播的方式发送该时间段分配信息。第一数据采集节点根据该时间段分配信息确定第一数据类型所对 应的第一时间段。在一种实现方式中,该多种数据类型可包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的至少一项。例如,在数据采集节点入网时,网关节点可以配置非重传常规数据类型、重传常规数据类型以及特殊数据类型三种数据类型分别对应的时间段,或者,在数据采集节点入网时,网关节点可以配置非重传常规数据类型和重传常规数据类型两种数据类型分别对应的时间段,在网关节点接收到数据采集节点的特殊数据传输请求时,网关节点再重新配置非重传常规数据类型、重传常规数据类型以及特殊数据类型三种数据类型分别对应的时间段,即在数据采集节点存在特殊数据传输需求时配置特殊数据类型对应的时间段,以充分利用时域资源传输常规数据。
进一步可选的,在各个时间段中,各个数据采集节点对应的时间单元也可以是由网关节点配置的。其中,网关节点可以通过时间单元分配信息配置各个时间段中各个数据采集节点分别对应的时间单元。可理解,该各个数据采集节点中包括第一数据采集节点。网关节点可以通过广播的方式发送该时间单元分配信息。第一数据采集节点根据该时间单元分配信息确定第一时间段包括的至少一个时间单元中为第一数据采集节点分配的第一时间单元。在一种实现方式中,数据采集节点在入网时,向该网关节点发送入网申请数据包,该入网申请数据包中包括该数据采集节点的节点标识以及入网标志位,通过入网标志位可以确定该数据包为入网申请数据包。网关节点可以根据各个数据采集节点的节点标识,在各个时间段中为各个数据采集节点分配时间单元,并将所分配的时间单元编号通过时间单元分配信息指示给数据采集节点。可选的,网关节点可以根据接收各个数据采集节点的入网申请数据包的顺序,按序分配时间段中各个数据采集节点所对应的时间单元的编号。
上述时间段分配信息和时间单元分配信息可以是通过广播的方式发送。可理解,上述时间段分配信息和时间单元分配信息可以是通过一个消息发送,或者,上述时间段分配信息和时间单元分配信息可以是分别通过不同消息发送,本申请不作限定。在一些可实现的方式中,网关节点还可以向各个数据采集节点指示第一个数据传输周期的开始时间,数据周期的长度,单个时间单元的长度等等。
204,第一数据采集节点在第一时间单元中向网关节点发送目标数据,相应的,网关节点接收第一数据采集节点发送的目标数据。
第一数据采集节点在确定第一时间单元之后,即可在该第一时间单元中向网关节点发送目标数据。
205,网关节点将目标数据发送给云服务器。
网关节点接收到第一数据采集节点发送的目标数据之后,将该目标数据发送给云服务器,用户可以基于云平台通过网页或者移动端对目标数据进行可视化的操作。
在一些可选的实施方式中,在步骤201之前,本申请实施例的方法还可以包括网关节点和数据采集节点之间的时钟同步过程,时钟同步过程可以理解为数据采集节点和网关节点之间的时钟对齐,以让各个数据采集节点准确的确定各自所对应的时间单元,下面以三个步骤举例说明网关节点和第一数据采集节点之间的时钟同步过程:
步骤一,第一数据采集节点向网关节点发送第一数据包,第一数据包包括发送该第一数据包的第一时间戳和该第一数据采集节点的节点标识。
其中,该第一数据包可以是第一数据采集节点向网关节点发送的入网请求数据包。其 中该第一数据包包括第一数据采集节点的节点标识,网络地址和发送该第一数据包时第一数据采集节点的本地时间戳T 1,即第一时间戳。对应的,网关节点会接收该第一数据包,并记录下网关节点接收到该第一数据包的本地时间戳T 2,即第二时间戳。随后网关节点对第一数据包进行解析,并记录下第一数据采集节点的节点标识、网络地址和第一数据包中的第一时间戳T 1。在经过一定时间的延时之后,网关节点记录下本地时间戳T 3,即第三时间戳,并将携带有应答信号和时间戳T 1、T 2、T 3的第二数据包发送给第一数据采集节点。
步骤二,第一数据采集节点接收网关节点发送的第二数据包,该第二数据包包括第一时间戳、第二时间戳以及第三时间戳,该第二时间戳为网关节点接收第一数据包的时间戳,第三时间戳为网关节点发送第二数据包的时间戳。
步骤三,根据第一时间戳、第二时间戳、第三时间戳以及第四时间戳,计算第一数据采集节点到网关节点的传输延迟,并根据传输延迟进行第一数据采集节点和网关节点之间的时钟同步,第四时间戳为第一数据采集节点接收到第二数据包的时间戳。
第一数据采集节点接收到网关节点发送过来的第二数据包,并记录下此时的本地时间戳T 4,即第四时间戳。此时第一数据采集节点便得到了四个时间戳,分别为T 1、T 2、T 3和T 4,通过时间戳T 1、T 2、T 3和T 4可以计算出第一数据采集节点和网关节点之间的传输延迟。下面结合附图4b阐述计算传输延迟的方式,如图4b所示,B节点可以被称为第一数据采集节点,A节点可以被称为网关节点,则:
T 2=T 1+Δ+d
T 4=T 3-Δ+d
其中,Δ为时钟漂移,d为传输延迟,T 1为第一时间戳,T 2为第二时间戳,T 3为第三时间戳,T 4为第四时间戳。
进一步则可以通过以下公式计算传输延迟:
Figure PCTCN2022096388-appb-000001
当第一数据采集节点计算得到传输延迟d之后,便可以在第一数据采集节点的时钟基础上加上传输延迟d,以与网关节点的时钟对齐,可理解,若第一数据采集节点与网关节点之间本身存在时差,还需要先根据该时差进行转换,以与网关节点为标准进行对齐。所有数据采集节点均可以通过上述过程实现与网关节点之间的时钟对齐,以完成网络节点与各个数据采集节点之间的时钟同步。
需要说明的是,该时钟同步过程同样适用于图3所示实施例中。
本申请实施例中,为不同的数据类型分配不同的时间段,在确定需要发送给网关节点的目标数据的第一数据类型时,确定该第一数据类型对应的第一时间段,进一步在该第一时间段所包含的至少一个时间单元中确定为该第一数据采集节点分配的第一时间单元,从而在第一时间单元中向网关节点发送目标数据。本申请分配了各个数据类型对应的时间段,以及各个数据采集节点所对应的时间单元,在数据采集节点需要发送数据时自动在对应的时间单元发送,提高数据传输效率,并且减少了网络中充斥的信令,节省了网络资源。
请参见图3,图3是本申请实施例提供的另一种通信方法的流程示意图,该通信方法可应用于如图1所示的通信系统,从数据采集节点和网关节点交互的角度进行阐述。该通信方法包括以下步骤:
301,在需要向网关节点发送目标数据的情况下,第一数据采集节点获取目标数据所属第一数据类型。
在步骤301之前,网关节点可以给各种数据类型分别分配对应的时间段。示例性的,网关节点可以分别给非重传常规数据类型、重传常规数据类型以及特殊数据类型分配对应的时间段,为描述方便,将网关节点为特殊数据类型分配的时间段称为第二时间段。可选的,网关节点可以是将数据传输周期划分为多个时间段,一个时间段对应一种数据类型。示例性的,由于传输特殊数据时需要重新分配,为让更多时间单元用于传输常规数据,该特殊数据类型对应的第二时间段的时长可以比较小。
本申请实施例步骤301的具体内容可以参照图2所示实施例的步骤201,在此不再赘述。
302,若第一数据类型为特殊数据类型,第一数据采集节点向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据。
当第一数据采集节点需要发送的目标数据为特殊数据类型时,该第一数据采集节点可以向网关节点发送特殊数据传输请求,该特殊数据传输请求用于请求传输特殊数据类型的数据。该特殊数据传输请求也可以是用于请求重新分配特殊数据类型所对应的时间段。
在一些可选的实施方式中,也可以是当第一数据类型为特殊数据类型,且目标数据的数据量大于预设阈值时,该第一数据采集节点向网关节点发送特殊数据传输请求,以请求重新分配特殊数据类型所对应的时间段。若第一数据类型为特殊数据类型,且目标数据的数据量小于或者等于该预设阈值,则可以在预先分配的第二时间段中传输该目标数据。通过该方式可以灵活的根据目标数据的数据量的大小确定是否重新分配,以达到灵活配置和传输特殊数据的效果。
303,网关节点根据特殊数据传输请求,向第一数据采集节点发送时间段调整指示信息,时间段调整指示信息用于指示将特殊数据类型对应的第二时间段调整为第一时间段,第一时间段的起始时间在第二时间段的起始时间之前。
304,第一数据采集节点根据时间段调整指示信息,确定特殊数据类型对应的第一时间段,该第一时间段包括至少一个时间单元。
当网关接收到第一数据采集节点发送的特殊数据传输请求时,该网关节点可以重新为各个数据类型分配时间段,即对各种数据类型对应的时间段进行调整。示例性的,将特殊数据类型对应的第二时间段调整为第一时间段,该第一时间段的起始时间在第二时间段的起始时间之前,以让第一数据采集节点的特殊数据能够及时传输。可选的,该第一时间段的时长大于第二时间段的时长,以传输更多的特殊数据。
例如,一个数据传输周期为60秒,网关节点最先为特殊数据类型分配的时间段是第50秒至第60秒之间,则更新后的特殊数据类型对应的第一时间段可以是第30秒至第60秒。
示例性的,各个数据类型对应时间段的顺序也可以进行调整,比如,将特殊数据类型 对应的第一时间段往数据传输周期的前面调,以让特殊数据能够及时传输,该特殊数据可以是一些紧急上传数据。
网关节点可以向第一数据采集节点指示更新后的各个数据类型所对应的时间段,例如,网关节点可以通过时间段调整指示信息指示更新后的各个数据类型所对应的时间段,包括将特殊数据类型对应的第二时间段调整为第一时间段。相应的,第一数据采集节点可以根据时间段调整指示信息确定特殊数据类型对应的第一时间段。
305,第一数据采集节点在至少一个时间单元中确定为第一数据采集节点分配的第一时间单元。
第一数据采集节点在第一时间段中确定为第一数据采集节点分配的第一时间单元。可选的,网关节点可以对调整后的各个时间段内中的各个数据采集节点对应的时间单元进行更新,该各个数据采集节点包括第一数据采集节点。示例性的,网关节点可以通过时间单元调整信息对各种数据类型对应的时间段中各数据采集节点的时间单元进行更新,包括对特殊数据类型对应的第一时间段中各个数据采集节点的时间单元进行更新,例如,将第一时间段内第一数据采集节点对应的时间单元更新为第一时间单元。相应的,第一数据采集节点接收该时间单元调整信息,并根据该时间单元调整信息确定为第一数据采集节点对应的第一时间单元,即该第一时间单元是为第一数据采集节点分配的。
可理解,在一些可选的实现方式中,网关节点也可以不调整各个时间段内各个数据采集节点所对应的时间单元,比如按照原有数据采集节点的顺序分别对应各个时间单元。
306,第一数据采集节点在第一时间单元中向网关节点发送目标数据。
307,网关节点将目标数据发送给云服务器。
本申请实施例步骤306-步骤307请参照图2实施例步骤204和步骤205,在此不再赘述。
本申请实施例中,网关节点可以预先分配包括特殊数据类型在内的多种数据类型分别对应的时间段,当后续存储特殊数据传输需求时,可以灵活的重新对各数据类型对应的时间段进行分配,以保证数据采集节点及时的将特殊数据传输给网关节点。
请参见图4a,图4a是本申请实施例提供的一种通信方法具体场景流程图,在图4a中以时间单位为时隙作为举例,可理解,该场景流程仅为举例,并不构成对本本申请的限定。
首先,各节点(包括各数据采集节点和网关节点)分别上电,此时数据采集节点和网关节点会进行初始化操作,网关节点会发送一个广播信号给所有的数据采集节点,当网关节点收到数据采集节点的应答信号后便开始进行组网操作。数据采集节点申请入网,并进行时隙申请,网关节点为各个数据类型分配时间段,以及在各个时间段中为各个数据采集节点分配时隙。若时隙分配完成,数据采集节点即在非重传常规数据类型对应的时间段内,在为该数据采集节点分配的时隙内上传常规数据,上传完常规数据后即进入休眠。若数据采集节点接收到针对常规数据的确认信息(Acknowledgement,ACK),则解析该ACK。若数据采集节点未收到ACK,即判断该常规数据是否重传满3次,若是则结束,若否则在所分配的重传常规数据类型对应的时间段内的重传时隙进行重传,可理解该重传时隙是为该数据采集节点分配的时隙。数据采集节点重传后即进入休眠,并检测是否收到ACK。
另外,数据采集节点检测是否存在特殊数据传输,若否,则继续上传常规数据,若是,则向网关节点申请调整时间段,例如,将原有分配的各种数据类型对应的时间段进行重新分配,并在调整后的特殊数据类型对应的时间段内的特殊(special,SPEC)时隙中传特殊数据,该SPEC时隙是为该数据采集节点分配的。然后数据采集节点休眠,并检测是否收到ACK,若接收到ACK,则解析ACK,若没有收到ACK,则进一步在特殊数据类型对应的时间段内的SPEC时隙进行重传。
请参见图5,图5是本申请实施例提供的一种通信装置的结构示意图。该装置可以是第一数据采集节点,也可以是第一数据采集节点中的装置,比如,可以是该第一数据采集节点中的芯片或芯片模组,或者是能够和第一数据采集节点匹配使用的装置,可理解,该第一数据采集节点可以是任意一个数据采集节点。图5所示的通信装置500可以包括获取单元501、第一确定单元502、第二确定单元503以及通信单元504。其中,通信单元504集成有接收单元和发送单元。通信单元504也可以称为收发单元。或者,也可将通信单元504拆分为接收单元和发送单元。下文的通信单元504同理,下文不再赘述。其中:
获取单元501,用于当需要向网关节点发送目标数据的情况下,获取所述目标数据所属第一数据类型;
第一确定单元502,用于确定所述第一数据类型对应的第一时间段,所述第一时间段包括至少一个时间单元;
第二确定单元503,用于在所述至少一个时间单元中确定为第一数据采集节点分配的第一时间单元;
通信单元504,用于在所述第一时间单元中向所述网关节点发送所述目标数据。
在一种可选的实施方式中,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
在一种可选的实施方式中,所述第一确定单元502具体用于在数据传输周期中确定所述第一数据类型对应的第一时间段,所述数据传输周期中包括多个时间段,一个时间段对应一种数据类型,所述多个时间段包括所述第一时间段。
在一种可选的实施方式中,所述通信单元504还用于接收所述网关节点发送的时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型;
所述第一确定单元502具体用于根据所述时间段分配信息,确定所述第一数据类型对应的所述第一时间段。
在一种可选的实施方式中,所述通信单元504还用于接收所述网关节点发送的时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点;
所述第二确定单元503具体用于根据所述时间单元分配信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的所述第一时间单元。
在一种可选的实施方式中,所述通信单元504还用于向所述网关节点发送入网申请数据包,所述入网申请数据包包括所述第一数据采集节点的节点标识。
在一种可选的实施方式中,若所述第一数据类型为特殊数据类型;
所述通信单元504还用于向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据。
在一种可选的实施方式中,若所述第一数据类型为特殊数据类型;
所述通信单元504还用于向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
所述通信单元504还用于接收所述网关节点发送的时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前;
所述第一确定单元502具体用于根据所述时间段调整指示信息,确定所述特殊数据类型对应的所述第一时间段。
在一种可选的实施方式中,所述通信单元504还用于接收所述网关节点发送的时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点;
所述第二确定单元503具体用于根据所述时间单元调整信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元。
在一种可选的实施方式中,所述通信单元504还用于向所述网关节点发送的第一数据包,所述第一数据包包括发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
所述通信单元504还用于接收所述网关节点发送的第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为所述网关节点接收所述第一数据包的时间戳,所述第三时间戳为所述网关节点发送所述第二数据包的时间戳;
所述装置还包括:
时钟同步单元,用于根据所述第一时间戳、所述第二时间戳、所述第三时间戳以及第四时间戳,计算所述第一数据采集节点到所述网关节点的传输延迟,并根据所述传输延迟进行所述第一数据采集节点和所述网关节点之间的时钟同步,所述第四时间戳为所述第一数据采集节点接收到所述第二数据包的时间戳。
其中,该实施方式的相关内容可参见上述方法实施例的相关内容。此处不再详述。
请参见图6,图6是本申请实施例提供的另一种通信装置的结构示意图。该装置可以是网关节点,也可以是网关节点中的装置,比如,可以是该网关节点中的芯片或芯片模组,或者是能够和网关节点匹配使用的装置。图6所示的通信装置600可以包括通信单元601。其中,通信单元601集成有接收单元和发送单元。通信单元601也可以称为收发单元。或者,也可将通信单元601拆分为接收单元和发送单元。其中:
通信单元601,用于接收第一数据采集节点发送的目标数据,所述目标数据是在第一时间段中为所述第一数据采集节点分配的第一时间单元中发送的,所述第一时间段为所述目标数据所属第一数据类型对应的时间段;
所述通信单元601还用于将所述第一数据发送给云服务器。
在一种可选的实施方式中,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
在一种可选的实施方式中,所述通信单元601还用于发送时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型。
在一种可选的实施方式中,所述通信单元601还用于发送时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点。
在一种可选的实施方式中,所述通信单元601还用于接收所述第一数据采集节点发送的入网申请数据包,所述入网申请数据包包括所述第一数据采集节点的节点标识;
所述通信单元601还用于根据所述入网申请数据包,发送所述时间单元分配信息。
在一种可选的实施方式中,若所述第一数据类型为特殊数据类型;
所述通信单元601还用于接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
所述通信单元601还用于根据所述特殊数据传输请求,发送所述时间段分配信息。
在一种可选的实施方式中,所述通信单元601还用于接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
所述通信单元601还用于根据所述特殊数据传输请求,向所述第一数据采集节点发送时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前。
在一种可选的实施方式中,所述通信单元601还用于发送时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点,为所述第一数据采集节点更新后的时间单元为所述第一时间单元。
在一种可选的实施方式中,所述通信单元601还用于接收所述第一数据采集节点发送的第一数据包,所述第一数据包包括所述第一数据采集节点发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
所述通信单元601还用于向所述第一数据采集节点发送第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为接收所述第一数据包的时间戳,所述第三时间戳为发送所述第二数据包的时间戳。
其中,该实施方式的相关内容可参见上述方法实施例的相关内容。此处不再详述。
请参见图7,图7是本申请实施例提供的又一种通信装置的结构示意图,用于实现上述图2或图3中第一数据采集节点的功能。该通信装置700可以是第一数据采集节点或用于第一数据采集节点的装置。用于第一数据采集节点的装置可以为第一数据采集节点内的芯片系统或芯片。其中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
或者,通信装置700,用于实现上述图2或图3中网关节点的功能。该通信装置可以是网关节点或用于网关节点的装置。用于网关节点的装置可以为网关节点内的芯片系统或芯片。
通信装置700包括至少一个处理器720,用于实现本申请实施例提供的方法中第一数据采集节点或网关节点的数据处理功能。装置700还可以包括通信接口710,用于实现本申请实施例提供的方法中第一数据采集节点或网关节点的收发操作。在本申请实施例中,处理器720可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。在本申请实施例中,通信接口710可以是收发器、电路、总线、模块或其它类型的通信接口,用于通过传输介质和其它设备进行通信。例如,通信接口710用于通信装置700中的装置可以和其它设备进行通信。处理器720利用通信接口710收发数据,并用于实现上述方法实施例图2或图3所述的方法。
通信装置700还可以包括至少一个存储器730,用于存储程序指令和/或数据。存储器730和处理器720耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器720可能和存储器730协同操作。处理器720可能执行存储器730中存储的程序指令。所述至少一个存储器中的至少一个可以包括于处理器中。
当通信装置700开机后,处理器720可以读取存储器730中的软件程序,解释并执行软件程序的指令,处理软件程序的数据。当需要通过无线发送数据时,处理器720对待发送的数据进行基带处理后,输出基带信号至射频电路(图未示意),射频电路将基带信号进行射频处理后将射频信号通过天线以电磁波的形式向外发送。当有数据发送到装置700时,射频电路通过天线接收到射频信号,将射频信号转换为基带信号,并将基带信号输出至处理器720,处理器720将基带信号转换为数据并对该数据进行处理。
在另一种实现中,所述的射频电路和天线可以独立于进行基带处理的处理器720而设置,例如在分布式场景中,射频电路和天线可以与独立于通信装置,呈拉远式的布置。
本申请实施例中不限定上述通信接口710、处理器720以及存储器730之间的具体连接介质。本申请实施例在图7中以存储器730、处理器720以及通信接口710之间通过总线740连接,总线在图7中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信装置700具体是用于第一数据采集节点时,例如通信装置700具体是芯片或者芯片系统时,通信接口710所输出或接收的可以是基带信号。通信装置700具体是第一数据采集节点时,通信接口710所输出或接收的可以是射频信号。
需要说明的是,该通信装置可以执行前述方法实施例中第一数据采集节点或网关节点的相关步骤,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。
对于应用于或集成于通信装置的各个装置、产品,其包含的各个模块可以都采用电路等硬件的方式实现,不同的模块可以位于终端内同一组件(例如,芯片、电路模块等)或者不同组件中,或者,至少部分模块可以采用软件程序的方式实现,该软件程序运行于终端内部集成的处理器,剩余的(如果有)部分模块可以采用电路等硬件方式实现。
上述存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable prom,EPROM)、电可擦除可编程只读存储器(electrically eprom,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的随机存取存储器(random access memory,RAM)可用,例如静态随机存取存储器(static ram,SRAM)、动态随机存取存储器(dynamic random access memory,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。
本申请实施例提供一种芯片。该芯片包括:处理器和存储器。其中,处理器的数量可以是一个或多个,存储器的数量可以是一个或多个。处理器通过读取存储器上存储的指令和数据,可执行上述如图2或图3所示的通信方法,以及相关实施方式所执行的步骤。
如图8所示,图8是本申请实施例提供的一种模组设备的结构示意图。该模组设备800可以执行前述方法实施例中第一数据采集节点或网关节点的相关步骤,该模组设备800包括:通信模组801、电源模组802、存储模组803以及芯片模组804。其中,电源模组802用于为模组设备提供电能;存储模组803用于存储数据和指令;通信模组801用于进行模组设备内部通信,或者用于模组设备与外部设备进行通信;芯片模组804可执行上述如图2或图3所示的通信方法,以及相关实施方式所执行的步骤。
本申请实施例中还提供一种计算机可读存储介质。所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,可执行上述图2或图3所示的通信方法,以及相关实施方式所执行的步骤。
所述计算机可读存储介质可以是前述任一实施例所述的数据采集节点或网关节点的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述数据采集节点或网关节点的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(smart media card,SMC),安全数字(secure digital,SD)卡,闪存卡(flash card)等。进一步地,所述计算机可读存储介质还可以既包括所述数据采集节点或网关节点的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述数据采集节点或网关节点所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述 可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质。半导体介质可以是固态硬盘。
关于上述实施例中描述的各个装置、产品包含的各个模块/单元,其可以是软件模块/单元,也可以是硬件模块/单元,或者也可以部分是软件模块/单元,部分是硬件模块/单元。例如,对于应用于或集成于芯片的各个装置、产品,其包含的各个模块/单元可以都采用电路等硬件的方式实现,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于芯片模组的各个装置、产品,其包含的各个模块/单元可以都采用电路等硬件的方式实现,不同的模块/单元可以位于芯片模组的同一组件(例如芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片模组内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于数据采集节点的各个装置、产品,其包含的各个模块/单元可以都采用电路等硬件的方式实现,不同的模块/单元可以位于终端内同一组件(例如,芯片、电路模块等)或者不同组件中,或者,至少部分模块/单元可以采用软件程序的方式实现,该软件程序运行于数据采集节点内部集成的处理器,剩余的(如果有)部分模块/单元可以采用电路等硬件方式实现。
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令或计算机程序。在计算机上加载或执行所述计算机指令或计算机程序时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在本申请所提供的几个实施例中,应该理解到,所揭露的方法、装置和系统,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的;例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既 可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网关节点等)执行本发明各个实施例所述方法的部分步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本申请一种较佳实施例而已,当然不能以此来限定本申请之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本申请权利要求所作的等同变化,仍属于申请所涵盖的范围。

Claims (42)

  1. 一种通信方法,其特征在于,包括:
    在需要向网关节点发送目标数据的情况下,获取所述目标数据所属第一数据类型;
    确定所述第一数据类型对应的第一时间段,所述第一时间段包括至少一个时间单元;
    在所述至少一个时间单元中确定为第一数据采集节点分配的第一时间单元;
    在所述第一时间单元中向所述网关节点发送所述目标数据。
  2. 如权利要求1所述的方法,其特征在于,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
  3. 如权利要求1或2所述的方法,其特征在于,所述确定所述第一数据类型对应的第一时间段,包括:
    在数据传输周期中确定所述第一数据类型对应的第一时间段,所述数据传输周期中包括多个时间段,一个时间段对应一种数据类型,所述多个时间段包括所述第一时间段。
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:
    接收所述网关节点发送的时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型;
    所述确定所述第一数据类型对应的第一时间段,包括:
    根据所述时间段分配信息,确定所述第一数据类型对应的所述第一时间段。
  5. 如权利要求4所述的方法,其特征在于,所述方法还包括:
    接收所述网关节点发送的时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点;
    所述在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元,包括:
    根据所述时间单元分配信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的所述第一时间单元。
  6. 如权利要求5所述的方法,其特征在于,所述接收所述网关节点发送的时间单元分配信息之前,还包括:
    向所述网关节点发送入网申请数据包,所述入网申请数据包包括所述第一数据采集节点的节点标识。
  7. 如权利要求5所述的方法,其特征在于,若所述第一数据类型为特殊数据类型;所述接收所述网关节点发送的时间段分配信息之前,还包括:
    向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据。
  8. 如权利要求1-3任一项所述的方法,其特征在于,若所述第一数据类型为特殊数据类型;所述确定所述第一数据类型对应的第一时间段之前,还包括:
    向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
    接收所述网关节点发送的时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前;
    所述确定所述第一数据类型对应的第一时间段,包括:
    根据所述时间段调整指示信息,确定所述特殊数据类型对应的所述第一时间段。
  9. 如权利要求8所述的方法,其特征在于,所述方法还包括:
    接收所述网关节点发送的时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点;
    所述在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元,包括:
    根据所述时间单元调整信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元。
  10. 如权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:
    向所述网关节点发送的第一数据包,所述第一数据包包括发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
    接收所述网关节点发送的第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为所述网关节点接收所述第一数据包的时间戳,所述第三时间戳为所述网关节点发送所述第二数据包的时间戳;
    根据所述第一时间戳、所述第二时间戳、所述第三时间戳以及第四时间戳,计算所述第一数据采集节点到所述网关节点的传输延迟,并根据所述传输延迟进行所述第一数据采集节点和所述网关节点之间的时钟同步,所述第四时间戳为所述第一数据采集节点接收到所述第二数据包的时间戳。
  11. 一种通信方法,其特征在于,包括:
    接收第一数据采集节点发送的目标数据,所述目标数据是在第一时间段中为所述第一数据采集节点分配的第一时间单元中发送的,所述第一时间段为所述目标数据所属第一数据类型对应的时间段;
    将所述目标数据发送给云服务器。
  12. 如权利要求11所述的方法,其特征在于,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
  13. 如权利要求11或12所述的方法,其特征在于,所述方法还包括:
    发送时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型。
  14. 如权利要求13所述的方法,其特征在于,所述方法还包括:
    发送时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点。
  15. 如权利要求14所述的方法,其特征在于,所述发送时间单元分配信息之前,还包括:
    接收所述第一数据采集节点发送的入网申请数据包,所述入网申请数据包包括所述第一数据采集节点的节点标识;
    所述发送时间单元分配信息,包括:
    根据所述入网申请数据包,发送所述时间单元分配信息。
  16. 如权利要求14所述的方法,其特征在于,若所述第一数据类型为特殊数据类型;所述发送时间段分配信息之前,还包括:
    接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
    所述发送时间段分配信息,包括:
    根据所述特殊数据传输请求,发送所述时间段分配信息。
  17. 如权利要求11或12所述的方法,其特征在于,所述方法还包括:
    接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
    根据所述特殊数据传输请求,向所述第一数据采集节点发送时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前。
  18. 如权利要求17所述的方法,其特征在于,所述方法还包括:
    发送时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点,为所述第一数据采集节点更新后的时间单元为所述第一时间单 元。
  19. 如权利要求11-18任一项所述的方法,其特征在于,所述方法还包括:
    接收所述第一数据采集节点发送的第一数据包,所述第一数据包包括所述第一数据采集节点发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
    向所述第一数据采集节点发送第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为接收所述第一数据包的时间戳,所述第三时间戳为发送所述第二数据包的时间戳。
  20. 一种通信装置,其特征在于,包括:
    获取单元,用于当需要向网关节点发送目标数据的情况下,获取所述目标数据所属第一数据类型;
    第一确定单元,用于确定所述第一数据类型对应的第一时间段,所述第一时间段包括至少一个时间单元;
    第二确定单元,用于在所述至少一个时间单元中确定为第一数据采集节点分配的第一时间单元;
    通信单元,用于在所述第一时间单元中向所述网关节点发送所述目标数据。
  21. 如权利要求20所述的装置,其特征在于,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
  22. 如权利要求20或21所述的装置,其特征在于,所述第一确定单元具体用于在数据传输周期中确定所述第一数据类型对应的第一时间段,所述数据传输周期中包括多个时间段,一个时间段对应一种数据类型,所述多个时间段包括所述第一时间段。
  23. 如权利要求20-22任一项所述的装置,其特征在于,
    所述通信单元还用于接收所述网关节点发送的时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型;
    所述第一确定单元具体用于根据所述时间段分配信息,确定所述第一数据类型对应的所述第一时间段。
  24. 如权利要求23所述的装置,其特征在于,
    所述通信单元还用于接收所述网关节点发送的时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点;
    所述第二确定单元具体用于根据所述时间单元分配信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的所述第一时间单元。
  25. 如权利要求24所述的装置,其特征在于,所述通信单元还用于向所述网关节点发送入网申请数据包,所述入网申请数据包包括所述第一数据采集节点的节点标识。
  26. 如权利要求24所述的装置,其特征在于,若所述第一数据类型为特殊数据类型;
    所述通信单元还用于向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据。
  27. 如权利要求20-22任一项所述的装置,其特征在于,若所述第一数据类型为特殊数据类型;
    所述通信单元还用于向所述网关节点发送特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
    所述通信单元还用于接收所述网关节点发送的时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前;
    所述第一确定单元具体用于根据所述时间段调整指示信息,确定所述特殊数据类型对应的所述第一时间段。
  28. 如权利要求27所述的装置,其特征在于,
    所述通信单元还用于接收所述网关节点发送的时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点;
    所述第二确定单元具体用于根据所述时间单元调整信息,在所述至少一个时间单元中确定为所述第一数据采集节点分配的第一时间单元。
  29. 如权利要求20-28任一项所述的装置,其特征在于,
    所述通信单元还用于向所述网关节点发送的第一数据包,所述第一数据包包括发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
    所述通信单元还用于接收所述网关节点发送的第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为所述网关节点接收所述第一数据包的时间戳,所述第三时间戳为所述网关节点发送所述第二数据包的时间戳;
    所述装置还包括:
    时钟同步单元,用于根据所述第一时间戳、所述第二时间戳、所述第三时间戳以及第四时间戳,计算所述第一数据采集节点到所述网关节点的传输延迟,并根据所述传输延迟进行所述第一数据采集节点和所述网关节点之间的时钟同步,所述第四时间戳为所述第一数据采集节点接收到所述第二数据包的时间戳。
  30. 一种通信装置,其特征在于,包括:
    通信单元,用于接收第一数据采集节点发送的目标数据,所述目标数据是在第一时间段中为所述第一数据采集节点分配的第一时间单元中发送的,所述第一时间段为所述目标数据所属第一数据类型对应的时间段;
    所述通信单元还用于将所述第一数据发送给云服务器。
  31. 如权利要求30所述的装置,其特征在于,所述第一数据类型包括非重传常规数据类型、重传常规数据类型以及特殊数据类型中的一种。
  32. 如权利要求30或31所述的装置,其特征在于,所述通信单元还用于发送时间段分配信息,所述时间段分配信息用于指示多种数据类型中各种数据类型分别对应的时间段,所述多种数据类型包括所述第一数据类型。
  33. 如权利要求32所述的装置,其特征在于,所述通信单元还用于发送时间单元分配信息,所述时间单元分配信息用于指示所述各种数据类型分别对应的时间段中为各个数据采集节点分配的时间单元,所述各个数据采集节点包括所述第一数据采集节点。
  34. 如权利要求33所述的装置,其特征在于,所述通信单元还用于接收所述第一数据采集节点发送的入网申请数据包,所述入网申请数据包包括所述第一数据采集节点的节点标识;
    所述通信单元还用于根据所述入网申请数据包,发送所述时间单元分配信息。
  35. 如权利要求33所述的装置,其特征在于,若所述第一数据类型为特殊数据类型;
    所述通信单元还用于接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
    所述通信单元还用于根据所述特殊数据传输请求,发送所述时间段分配信息。
  36. 如权利要求30或31所述的装置,其特征在于,所述通信单元还用于接收所述第一数据采集节点发送的特殊数据传输请求,所述特殊数据传输请求用于请求传输特殊数据类型的数据;
    所述通信单元还用于根据所述特殊数据传输请求,向所述第一数据采集节点发送时间段调整指示信息,所述时间段调整指示信息用于指示将所述特殊数据类型对应的第二时间段调整为所述第一时间段,所述第一时间段的起始时间在所述第二时间段的起始时间之前。
  37. 如权利要求36所述的装置,其特征在于,所述通信单元还用于发送时间单元调整信息,所述时间单元调整信息用于指示对所述特殊数据类型对应的所述第一时间段中各个数据采集节点对应的时间单元进行更新,所述各个数据采集节点包括所述第一数据采集节点,为所述第一数据采集节点更新后的时间单元为所述第一时间单元。
  38. 如权利要求30-37任一项所述的装置,其特征在于,所述通信单元还用于接收所述第一数据采集节点发送的第一数据包,所述第一数据包包括所述第一数据采集节点发送所述第一数据包的第一时间戳和所述第一数据采集节点的节点标识;
    所述通信单元还用于向所述第一数据采集节点发送第二数据包,所述第二数据包包括所述第一时间戳、第二时间戳以及第三时间戳,所述第二时间戳为接收所述第一数据包的时间戳,所述第三时间戳为发送所述第二数据包的时间戳。
  39. 一种通信装置,其特征在于,所述通信装置包括处理器和存储器,所述处理器和所述存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1至10任一项所述的方法,或者执行如权利要求11至19任一项所述的方法。
  40. 一种芯片,其特征在于,所述芯片包括处理器与接口,所述处理器和所述接口耦合;所述接口用于接收或输出信号,所述处理器用于执行代码指令,以使权利要求1至10中任一项所述的方法被执行,或以使权利要求11至19中任一项所述的方法被执行。
  41. 一种模组设备,其特征在于,所述模组设备包括通信模组、电源模组、存储模组以及芯片模组,其中:
    所述电源模组用于为所述模组设备提供电能;
    所述存储模组用于存储数据和指令;
    所述通信模组用于进行模组设备内部通信,或者用于所述模组设备与外部设备进行通信;
    所述芯片模组用于执行如权利要求1至10任一项所述的方法,或者执行如权利要求11至19任一项所述的方法。
  42. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1至10任一项所述的方法,或者执行如权利要求11至19任一项所述的方法。
PCT/CN2022/096388 2022-05-31 2022-05-31 通信方法及通信装置 WO2023230891A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/096388 WO2023230891A1 (zh) 2022-05-31 2022-05-31 通信方法及通信装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/096388 WO2023230891A1 (zh) 2022-05-31 2022-05-31 通信方法及通信装置

Publications (1)

Publication Number Publication Date
WO2023230891A1 true WO2023230891A1 (zh) 2023-12-07

Family

ID=89026668

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096388 WO2023230891A1 (zh) 2022-05-31 2022-05-31 通信方法及通信装置

Country Status (1)

Country Link
WO (1) WO2023230891A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110085522A1 (en) * 2009-10-13 2011-04-14 Electronics And Telecommunications Research Institute Method for allocating slots for emergency data and method for transmitting emergency data using the same
KR20110067298A (ko) * 2009-12-14 2011-06-22 삼성전기주식회사 데이터 전송 기간의 가변 할당 기능을 갖는 무선 네트워크 장치 및 이의 데이터 전송 기간 할당 방법
CN107332707A (zh) * 2017-07-25 2017-11-07 北京邮电大学 一种sdn网络测量数据的采集方法和装置
CN109362123A (zh) * 2018-09-28 2019-02-19 河南科技大学 基于ieee802.15.6的无线体域网自适应mac协议及其实现方法
CN109362122A (zh) * 2018-09-12 2019-02-19 中国科学院计算技术研究所 一种低功耗广域网内通信数据的传输调度方法和系统
CN111315025A (zh) * 2020-03-19 2020-06-19 华南理工大学 无线人体传感器网络时隙分配方法及无线人体传感器网络
CN111757286A (zh) * 2020-06-04 2020-10-09 华南理工大学 一种基于侦听机制的体域网紧急数据时隙分配方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110085522A1 (en) * 2009-10-13 2011-04-14 Electronics And Telecommunications Research Institute Method for allocating slots for emergency data and method for transmitting emergency data using the same
KR20110067298A (ko) * 2009-12-14 2011-06-22 삼성전기주식회사 데이터 전송 기간의 가변 할당 기능을 갖는 무선 네트워크 장치 및 이의 데이터 전송 기간 할당 방법
CN107332707A (zh) * 2017-07-25 2017-11-07 北京邮电大学 一种sdn网络测量数据的采集方法和装置
CN109362122A (zh) * 2018-09-12 2019-02-19 中国科学院计算技术研究所 一种低功耗广域网内通信数据的传输调度方法和系统
CN109362123A (zh) * 2018-09-28 2019-02-19 河南科技大学 基于ieee802.15.6的无线体域网自适应mac协议及其实现方法
CN111315025A (zh) * 2020-03-19 2020-06-19 华南理工大学 无线人体传感器网络时隙分配方法及无线人体传感器网络
CN111757286A (zh) * 2020-06-04 2020-10-09 华南理工大学 一种基于侦听机制的体域网紧急数据时隙分配方法

Similar Documents

Publication Publication Date Title
WO2020001585A1 (zh) 一种时钟同步的方法和装置
TWI748983B (zh) 業務傳輸的方法和裝置
WO2020221176A1 (zh) 一种发送和接收参考信号集合的方法及装置
WO2020221021A1 (zh) 通信方法和通信装置
WO2019024756A1 (zh) 通信方法、网络设备和中继设备
WO2019024891A1 (zh) Urllc中上行免授权传输的方法、用户侧设备和网络侧设备
CN109391377B (zh) 通信方法、接入网设备和终端
WO2021204293A1 (zh) 定位信号处理方法及装置
WO2019137422A1 (zh) 同步指示方法和设备
WO2023050621A1 (zh) 侧链路通信方法及通信装置
US20220053437A1 (en) Method for obtaining timing advance and apparatus
CN102067502A (zh) 用于在无线通信网络中进行快速测距的方法和系统
WO2019137277A1 (zh) Pucch资源的确定方法及其接收方法、终端设备和网络侧设备
WO2021174394A1 (zh) 同步方法及装置
JP2011160121A (ja) 通信システム、基地局装置、通信端末及び通信制御方法
WO2018014698A1 (zh) 调度方法、接入点和站点
WO2023230891A1 (zh) 通信方法及通信装置
WO2018223872A1 (zh) 一种通信方法及相关设备
WO2023000926A1 (zh) 时钟同步方法及通信装置
WO2022160298A1 (zh) 时间同步方法、装置和系统
WO2021204248A1 (zh) 无线通信方法和通信装置
WO2021027904A1 (zh) 无线通信的方法和装置以及通信设备
WO2020200124A1 (zh) 信息传输方法及相关装置
WO2018188095A1 (zh) 一种通信方法及装置
WO2022077514A1 (zh) 一种通信方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22944228

Country of ref document: EP

Kind code of ref document: A1