CN115189719A - Data transmission method, data transmission system, and computer-readable storage medium - Google Patents

Data transmission method, data transmission system, and computer-readable storage medium Download PDF

Info

Publication number
CN115189719A
CN115189719A CN202211102318.1A CN202211102318A CN115189719A CN 115189719 A CN115189719 A CN 115189719A CN 202211102318 A CN202211102318 A CN 202211102318A CN 115189719 A CN115189719 A CN 115189719A
Authority
CN
China
Prior art keywords
data
channel
data channel
message
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211102318.1A
Other languages
Chinese (zh)
Other versions
CN115189719B (en
Inventor
裴富余
武占侠
罗丹
徐鲲鹏
肖德勇
李铮
张谦
陈品
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
Beijing Smartchip Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Smartchip Microelectronics Technology Co Ltd filed Critical Beijing Smartchip Microelectronics Technology Co Ltd
Priority to CN202211102318.1A priority Critical patent/CN115189719B/en
Publication of CN115189719A publication Critical patent/CN115189719A/en
Application granted granted Critical
Publication of CN115189719B publication Critical patent/CN115189719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/544Setting up communications; Call and signalling arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority

Abstract

The invention discloses a data transmission method, a data transmission system and a computer readable storage medium. The data transmission method comprises the following steps: under the condition that one of the first data channel and the second data channel is determined to be in an idle state, acquiring a first data message and a second data message, wherein the first data message is the data message with the highest priority in the data channel in the idle state, the second data message is the unselected data message with the highest priority in the other data channel, and the data transmission rate of the first data channel is greater than that of the second data channel; and under the condition that one of the first data message and the second data message is determined as the priority data message, transmitting the priority data message through one of the first data channel and the second data channel. The data transmission method can fully utilize the dual-mode communication channel, improve the communication stability and reduce the communication time delay.

Description

Data transmission method, data transmission system, and computer-readable storage medium
Technical Field
The present invention relates to the field of power line carrier communication technologies, and in particular, to a data transmission method, a data transmission system, and a computer-readable storage medium.
Background
Since high-speed power line carrier communication (HPLC), narrowband plc, micropower wireless, narrowband dual-mode (HPLC + micropower wireless), broadband dual-mode (HPLC + HRF) communication technologies are widely applied to power grids, it is important to use the communication thereof to perform power grid billing, multirepresentation, and the like. In practical use, it is difficult to control the communication delay to a small range due to the limitations of conditions such as the use environment and the installation location. In a narrow-band dual-mode and a broadband dual-mode, the communication characteristics are that one communication technology is utilized for communication, the characteristics of dual-mode dual-channels are not fully utilized to a great extent, and the communication efficiency is reduced.
Disclosure of Invention
The invention provides a data transmission method, a data transmission system and a computer readable storage medium.
The data transmission method provided by the embodiment of the invention comprises the following steps:
under the condition that one of a first data channel and a second data channel is determined to be in an idle state, acquiring a first data message and a second data message, wherein the first data message is the data message with the highest priority in the data channel in the idle state, the second data message is the data message which has the highest priority in the other data channel and is not selected, and the data transmission rate of the first data channel is greater than that of the second data channel;
and sending the priority data message through one of the first data channel and the second data channel under the condition that one of the first data message and the second data message is determined as the priority data message.
According to the data transmission method, dual-mode communication is formed through the first data channel and the second data channel, when the data message is sent, the priority data message can be determined in the data message with the highest priority in the two data channels, and the priority data message is sent through one of the first data channel and the second data channel, so that the dual-mode communication channel can be fully utilized, the communication stability is improved, and the communication delay is reduced.
In some embodiments, the data transmission method comprises:
determining one of the first data packet and the second data packet with a higher priority order as the priority data packet; or
And under the condition that the priority order of the first data message is equal to that of the second data message, determining the earlier enqueue time of the first data message and the second data message as the priority data message, wherein the enqueue time of the first data message is the time for the first data message to be sent into the first data channel to wait for sending, and the enqueue time of the second data message is the time for the second data message to be sent into the second data channel to wait for sending. Therefore, the priority data message can be conveniently determined.
In some embodiments, sending the priority data packet through one of the first data channel and the second data channel includes:
under the condition that the first data channel fails to send the priority data message, the priority data message is sent through the second data channel, and the first data channel skips over the priority data message for sending;
deleting the priority data message of the first data channel under the condition that the second data channel fails to send the priority data message;
or
Sending the priority data packet through one of the first data channel and the second data channel, including:
under the condition that the second data channel fails to send the priority data message, the priority data message is sent through the first data channel, and the second data channel skips over the priority data message for sending;
and deleting the priority data message of the second data channel under the condition that the first data channel fails to send the priority data message. Therefore, the specific scheme of sending the data message by the dual-mode dual-channel can be realized.
In some embodiments, the data transmission method comprises:
after the priority data message is sent, determining that a first signal frame is not received, or under the condition that the receiving is determined to be failed according to the received first signal frame, retransmitting the priority data message for multiple times by a first sending frequency in a data channel for sending the priority data message;
and determining that the sending of the priority data message fails under the condition of determining no response to overtime after finishing the repeated sending of the priority data message. Thus, whether the data message fails to be sent can be determined by constructing a corresponding retransmission mechanism.
In some embodiments, the data transmission method comprises:
and determining the first sending times according to the communication success rate and the signal-to-noise ratio. In this way, the retransmission mechanism can be adjusted according to the specific communication condition to adapt to the communication condition.
In some embodiments, the data transmission method comprises:
backing up the data message to the first data channel and the second data channel;
deleting the data packet in the first data channel under the condition that the number of times of sending the data packet through the first data channel is greater than the second sending number of times, or
And deleting the data message in the second data channel under the condition that the number of times of sending the data message through the second data channel is greater than the second sending number of times. Therefore, the success rate of sending the data message can be improved.
In some embodiments, the data transmission method comprises:
adding the data packet to the first data channel, or
And adding the data message to the second data channel when the identifier corresponding to the data message is determined to correspond to the second data channel. Therefore, the data channel suitable for sending the data message can be conveniently determined.
In some embodiments, the data transmission method comprises:
determining a channel available mark of the first data channel and a channel available mark of the second data channel according to the success rate of uplink and downlink communication of the data channels;
and sending the data message positioned in the first data channel through the second data channel under the condition that the channel available mark of the first data channel is determined to be unavailable and the channel available mark of the second data channel is determined to be available. Therefore, the meter reading success rate can be improved, and the communication time delay can be reduced.
In some embodiments, the data transmission method comprises:
receiving corresponding data messages through the first data channel and the second data channel respectively;
when the data message received through the second data channel is processed and the data message sent by the first data channel is received, the data message received through the first data channel is processed preferentially. Therefore, the loss of the data message can be avoided.
A data transmission system according to an embodiment of the present invention includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the data transmission method according to any one of the above embodiments when executing the computer program.
According to the data transmission system, dual-mode communication is formed through the first data channel and the second data channel, when data messages are sent, the priority data messages can be determined in the data messages with the highest priority in the two data channels, and the priority data messages are sent through one of the first data channel and the second data channel, so that the dual-mode communication channel can be fully utilized, the communication stability is improved, and the communication delay is reduced.
The embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the data transmission method described in any one of the above embodiments.
According to the computer readable storage medium, dual-mode communication is formed through the first data channel and the second data channel, when data messages are sent, the priority data messages can be determined in the data messages with the highest priority in the two data channels, and the priority data messages are sent through one of the first data channel and the second data channel, so that the dual-mode communication channel can be fully utilized, the communication stability is improved, and the communication delay is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a data transmission method of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data transmission system according to an embodiment of the present invention;
FIGS. 3 and 4 are schematic diagrams of steps of a data transmission method according to an embodiment of the present invention;
fig. 5 is a block diagram of a data transmission system according to an embodiment of the present invention.
Description of the main element symbols:
a data transmission system 100;
a master node 110, a child node 120;
memory 210, processor 220.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Referring to fig. 1, a data transmission method according to an embodiment of the present invention includes:
01: under the condition that one of a first data channel and a second data channel is determined to be in an idle state, a first data message and a second data message are obtained, wherein the first data message is the data message with the highest priority in the data channel in the idle state, the second data message is the data message which has the highest priority in the other data channel and is not selected, and the data transmission rate of the first data channel is greater than that of the second data channel;
02: and under the condition that one of the first data message and the second data message is determined as the priority data message, transmitting the priority data message through one of the first data channel and the second data channel.
The data transmission method according to the embodiment of the present invention may be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 includes a plurality of transmission nodes. The data transmission system 100 is configured to: under the condition that one of a first data channel and a second data channel is determined to be in an idle state, a first data message and a second data message are obtained, wherein the first data message is the data message with the highest priority in the data channel in the idle state, the second data message is the data message which has the highest priority in the other data channel and is not selected, and the data transmission rate of the first data channel is greater than that of the second data channel; and under the condition that one of the first data message and the second data message is determined as the priority data message, transmitting the priority data message through one of the first data channel and the second data channel.
In the data transmission method and the data transmission system 100, dual-mode communication is formed through the first data channel and the second data channel, when data messages are sent, priority data messages can be determined in data messages with the highest priority in the two data channels, and the priority data messages are sent through one of the first data channel and the second data channel, so that the dual-mode communication channel can be fully utilized, the communication stability is improved, and the communication delay is reduced.
Specifically, in fig. 2, the plurality of transmission nodes may include a main node 110 and a plurality of sub-nodes 120. The master node 110 is denoted as "CCO". The child node 120 is denoted as "STA". The main node 110 may perform data communication with a part of the sub-nodes 120 (STA 1, STA2, and STA 3), so as to send data packets to the sub-nodes 120 (STA 1, STA2, and STA 3). For STA1, STA2, STA3, each may communicate with a corresponding further portion of sub-nodes 120 (STA 4, STA5, STA6, STA7, STA8, STA 9). STA1 may communicate with STA4, STA5, STA2 may communicate with STA6, STA7, and STA3 may communicate with STA8, STA 9. For two transmission nodes capable of communicating, the data packet may be transmitted through the first data channel, or the data packet may be transmitted through the second data channel. The first data channel may be HPLC (high speed power line carrier communication). The second data channel may be an HRF.
For the transmission of the data message, the data message can be put into a corresponding data channel by setting a transmission queue. In some embodiments, the first data channel and the second data channel are each provided with one data queue. Referring to fig. 2, for the master node 110, one of the first data channel and the second data channel is used as a master link, and the generated application layer packet may be placed in a data queue of the master link. It can be understood that, since each data channel has a corresponding data queue, when a data channel needs to perform VCS (Virtual Carrier Sensing) backoff, the network maintenance packet can be sent through the corresponding data queue, which can reduce the maintenance cost and is beneficial to maintenance. The data queue may be a sof queue.
The data channel is in an idle state, may be in a backoff state where the data channel is not currently in the VCS, may be in a data transmission state, and may be in a wait for selection acknowledgement frame (sack frame) state.
In some embodiments, a data transmission method comprises:
determining one of the first data message and the second data message with a higher priority order as a priority data message; or
And under the condition that the priority order of the first data message is equal to that of the second data message, determining the earlier enqueue time of the first data message and the second data message as the priority data message, wherein the enqueue time of the first data message is the time for the first data message to be sent into the first data channel to wait for sending, and the enqueue time of the second data message is the time for the second data message Wen Songru to wait for sending.
The data transmission method according to the embodiment of the present invention may be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: determining one of the first data message and the second data message with a higher priority order as a priority data message; or under the condition that the priority order of the first data message is equal to that of the second data message, determining the earlier enqueue time of the first data message and the second data message as the priority data message, wherein the enqueue time of the first data message is the time for the first data message to be sent into the first data channel to wait for sending, and the enqueue time of the second data message is the time for the second data message Wen Songru to wait for sending.
Therefore, the priority data message can be conveniently determined.
Specifically, for some important or urgent data packets, the corresponding priority order is greater. Some data packets that are relatively unimportant or do not require urgent processing will have a smaller corresponding priority order. The respective data queues of the two data channels can be preset with a same set of a plurality of different priority orders. By determining the respective priority order of the data packets in the two data queues, one of the first data packet and the second data packet having a higher priority to be sent may be determined and used as the priority data packet.
In one embodiment, multiple data packets may be placed in the data queue of each data channel. The data messages have the sequence of being put into the data queue and the corresponding enqueue time. As time increases, the time that a data packet that is first put into the data queue stays in the queue also increases. In some cases, the priority order of the first data packet and the priority order of the second data packet may be the same, and by determining the enqueue time of the first data packet in the data queue corresponding to the first data channel and determining the enqueue time of the second data packet in the data queue corresponding to the second data channel, one of the first data packet and the second data packet that is enqueued earlier to wait for transmission can be determined and used as a priority data packet, so that the problem that the data packet stays in the data queue all the time and cannot be transmitted can be prevented.
In some embodiments, step 02 (sending the priority data packet via one of the first data channel and the second data channel) includes:
under the condition that the first data channel fails to send the priority data message, sending the priority data message through the second data channel, and skipping over the priority data message by the first data channel for sending;
deleting the priority data message of the first data channel under the condition that the second data channel fails to send the priority data message;
or, step 02 (sending the priority data packet through one of the first data channel and the second data channel) includes:
under the condition that the second data channel fails to send the priority data message, the priority data message is sent through the first data channel, and the second data channel skips the priority data message for sending;
and deleting the priority data message of the second data channel under the condition that the first data channel fails to send the priority data message.
The data transmission method according to the embodiment of the present invention can be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: under the condition that the first data channel fails to send the priority data message, sending the priority data message through the second data channel, and skipping over the priority data message by the first data channel for sending; and deleting the priority data message of the first data channel under the condition that the second data channel fails to send the priority data message. Or, the data transmission system 100 is configured to: under the condition that the second data channel fails to send the priority data message, sending the priority data message through the first data channel, and sending the priority data message by skipping the second data channel; and deleting the priority data message of the second data channel under the condition that the first data channel fails to send the priority data message.
Therefore, the specific scheme of sending the data message by the dual-mode dual-channel can be realized.
In particular, in some embodiments, each transport node may be provided with one routing table information. The routing table information may record a proxy primary path. The proxy main path may describe a transmission path with data packets. Referring to fig. 2, for the master node 110, the data packet generated by the master node needs to be sent to the STA5, the data packet needs to be sent to the STA1 by the master node 110, and the STA1 sends the data packet to the STA5 after receiving the data packet. The CCO, STA1, and STA5 may form a transmission path of the data packet, and obtain next hop routing information by combining with a Terminal Equipment Identifier (TEI) corresponding to a transmission node on the transmission path.
In some embodiments, a used channel flag may be set for a data message. In the event that a priority data packet fails to be sent over a data channel, the data channel may be marked to generate a portion of the used channel flags. In one embodiment, the used tunnel flag may be represented as "0x000" in the case where no data packet is sent. After a failure of a data message to be sent through the first data channel, the 0 th bit of the used channel flag may be marked as "1" so that the used channel flag may be represented as "0x001". After the data packet fails to be sent through the second data channel, the 1 st bit of the used channel flag may be marked as "1", so that the used channel flag may be denoted as "0x011" or "0x03". The used channel mark can determine which data channels the data message has attempted to be sent through, and can determine that all data channels cannot send the data message under the condition that the used channel mark can be represented as "0x011" or "0x03", so that the data message in the data queue can be deleted.
In addition, the data packet can be divided into a unicast data packet and a broadcast data packet. The unicast data message has a corresponding original destination TEI so that the data frame of the data message can be sent to the transmission node receiving the data message. The broadcast data packet does not have the corresponding original destination TEI, so that the data frame of the data packet cannot be sent to the transmission node receiving the data packet.
In some embodiments, a data transmission method comprises:
after the priority data message is sent, determining that a waiting selection confirmation frame is not received or determining that the receiving is failed according to the received waiting selection confirmation frame, and retransmitting the priority data message for multiple times by a first sending time in a data channel for sending the priority data message;
and determining that the sending of the priority data message fails under the condition of determining no response to overtime after finishing repeated sending of the priority data message.
The data transmission method according to the embodiment of the present invention can be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: after the priority data message is sent, determining that a waiting selection confirmation frame is not received or determining that the receiving is failed according to the received waiting selection confirmation frame, and retransmitting the priority data message for multiple times by a first sending time in a data channel for sending the priority data message; and determining that the sending of the priority data message fails under the condition of determining no response to overtime after finishing repeated sending of the priority data message.
Thus, whether the data message fails to be sent can be determined by constructing a corresponding retransmission mechanism.
In some embodiments, a data transmission method comprises:
and determining the first sending times according to the communication success rate and the signal-to-noise ratio.
The data transmission method according to the embodiment of the present invention can be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: and determining the first sending times according to the communication success rate and the signal-to-noise ratio.
In this way, the retransmission mechanism can be adjusted correspondingly according to the specific communication condition to adapt to the communication condition.
In one embodiment, in the case where the communication success rate is greater than 50% and the signal-to-noise ratio is greater than 10, the first number of transmissions may be set to 5, and in other cases, the first number of transmissions may be set to 10.
In some embodiments, a data transmission method comprises:
backing up the data message to a first data channel and a second data channel;
deleting the data message in the first data channel under the condition that the number of times of sending the data message through the first data channel is greater than the second number of times of sending the data message, or
And deleting the data message in the second data channel under the condition that the number of times of sending the data message through the second data channel is greater than the second sending number of times.
The data transmission method according to the embodiment of the present invention may be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: backing up the data message to a first data channel and a second data channel; and deleting the data message in the first data channel under the condition that the number of times of sending the data message through the first data channel is greater than the second number of times of sending the data message through the second data channel, or deleting the data message in the second data channel under the condition that the number of times of sending the data message through the second data channel is greater than the second number of times of sending the data message through the second data channel.
Therefore, the success rate of sending the data message can be improved.
In one embodiment, the second number of transmissions is 5. The data message may be a broadcast data message. Under the condition of reporting a power failure event or performing broadcast timing, if the number of times of sending the corresponding broadcast data message through one data channel is more than 5, deleting the broadcast data message in the data channel.
In some embodiments, a data transmission method comprises:
adding the data message to the first data channel in case it is determined that the identifier corresponding to the data message corresponds to the first data channel, or
And adding the data message to the second data channel under the condition that the identifier corresponding to the data message is determined to correspond to the second data channel.
The data transmission method according to the embodiment of the present invention can be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: and adding the data message to the first data channel under the condition that the identifier corresponding to the data message corresponds to the first data channel, or adding the data message to the second data channel under the condition that the identifier corresponding to the data message corresponds to the second data channel.
Therefore, the data channel suitable for sending the data message can be conveniently determined.
Specifically, please refer to fig. 2, in an embodiment, when the master node 110 receives a data packet of an application layer, a next-hop TEI may be searched in the routing table information according to a destination TEI of the corresponding data packet. And if the next-hop TEI corresponds to the first data channel, adding the data message to a data queue in the first data channel, and if the next-hop TEI corresponds to the second data channel, adding the data message to a data queue in the second data channel.
In another embodiment, in the case that the sub-node 120 processes the data packet, the next-hop TEI is obtained according to the original destination TEI of the data frame of the data packet. And if the next hop corresponds to the second data channel, adding the data message into a data queue in the second data channel, and if the next hop corresponds to the first data channel, adding the data message into a data queue in the first data channel.
In some embodiments, a data transmission method comprises:
determining a channel available mark of a first data channel and a channel available mark of a second data channel according to the success rate of uplink and downlink communication of the data channels;
and sending the data message positioned in the first data channel through the second data channel under the condition that the channel available mark of the first data channel is determined to be unavailable and the channel available mark of the second data channel is determined to be available.
The data transmission method according to the embodiment of the present invention may be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: determining a channel available mark of a first data channel and a channel available mark of a second data channel according to the success rate of uplink and downlink communication of the data channels; and sending the data message positioned in the first data channel through the second data channel under the condition that the channel available mark of the first data channel is determined to be unavailable and the channel available mark of the second data channel is determined to be available.
Therefore, the meter reading success rate can be improved, and the communication time delay can be reduced.
Specifically, referring to fig. 2, for each transmitting node, a neighbor list may be set. The channel available flag of the first data channel and the channel available flag of the second data channel may be included in a neighbor list. The neighbor list may be used to characterize the availability of all data channels with other transmitting nodes capable of communicating. In one embodiment, in the case that one transmission node transmits a data packet of an application layer, whether a first data channel and a second data channel between the transmission node and the transmission node receiving the data packet of the application layer are available may be determined through a neighbor list. When the first data channel is determined to be available by the channel availability flag of the first data channel, the data packet may be sent directly through the first data channel. And when the channel available mark of the first data channel determines that the first data channel is unavailable and the channel available mark of the second data channel determines that the second data channel is available, sending the data message through the second data channel. The data channel is not available, may be that the data channel is currently busy, or the data channel is unstable. The data channel is currently busy, and may be VCS backed off or waiting for a data acknowledgement frame (sack frame) for the data channel.
In addition, in one embodiment, in the case that the success rate of uplink and downlink communication of the data channel is greater than the threshold, it may be determined that the data channel is available, and the channel available flag of the data channel may be denoted as "1". In the case where the success rate of the up-down communication of the data channel is less than or equal to the threshold value, it may be determined that the data channel is unavailable, and the channel available flag of the data channel may be represented as "0".
In some embodiments, a data transmission method comprises:
respectively receiving corresponding data messages through a first data channel and a second data channel;
when the data message received through the second data channel is processed, the data message received through the first data channel is processed preferentially under the condition that the data message sent through the first data channel is received.
The data transmission method according to the embodiment of the present invention can be implemented by the data transmission system 100 according to the embodiment of the present invention. Specifically, referring to fig. 2, the data transmission system 100 is configured to: respectively receiving corresponding data messages through a first data channel and a second data channel; when the data message received through the second data channel is processed, the data message received through the first data channel is processed preferentially under the condition that the data message sent through the first data channel is received.
Therefore, the loss of the data message can be avoided.
Specifically, the processing of the data packet received through the data channel may be to respond to the data packet to perform interrupt processing. In some embodiments, the first data channel and the second data channel belong to different physical layers, thereby facilitating corresponding to two different interrupt processes. Because the communication rate of the first data channel is greater than that of the second data channel, the data message sent by the first data channel needs to be processed preferentially, so that data loss caused by untimely processing is prevented. In response to the interrupt processing of the data packet transmitted through the second data channel, if the data packet transmitted through the first data channel is received, the interrupt processing of the data packet transmitted through the second data channel is interrupted due to the higher interrupt priority of the datagram stationery transmitted through the first data channel, and the data packet received through the first data channel is preferentially processed. In addition, under the condition of responding to the interrupt processing of the data message sent through the first data channel, if the data message sent through the second data channel is received, the interrupt processing of the data message sent through the first data channel is not interrupted due to the fact that the datagram transmitted through the second data channel has lower interrupt priority, and the data message received through the first data channel is continuously processed. Interrupt nesting can be supported under the condition of carrying out interrupt processing on a plurality of data messages.
In addition, in some embodiments, the data packets sent by the first data channel and the second data channel may be buffered by setting two corresponding data queues.
In addition, in some embodiments, when the PHR is conveniently received through the first data channel and the second data channel, the back-off processing may be performed according to a frame length time carried in the frame control, and the corresponding multi-frame parsing may be performed after the data packet is received. In one embodiment, multi-frame parsing may include parsing beacon frames, sack frames, and sof frames.
Specifically, when a waiting data acknowledgement frame (sack frame) is received through the first data channel, since the sack frame corresponds to a unicast data packet, for the transmission node, it is necessary to delete the previously sent data packet, and then process the data packet according to the reception result carried by the sack frame. If the receiving result is failure, the transmission node sending the data message needs to perform retransmission processing according to a retransmission mechanism. If the receiving result is successful, the data message needs to be deleted, if the data message sent by the current first data channel is from the data queue of the first data channel, the data message is deleted in the data queue of the first data channel, and if the data message sent by the current first data channel is from the data queue of the second data channel, the data message is deleted in the data queue of the second data channel.
And processing according to a receiving result carried by the pack frame when the waiting data confirmation frame (pack frame) is received through the second data channel. If the receiving result is failure, the transmission node sending the data message needs to perform retransmission processing according to a retransmission mechanism. If the receiving result is successful, the data message needs to be deleted, if the data message sent by the current second data channel is from the data queue of the second data channel, the data message is deleted in the data queue of the second data channel, and if the data message sent by the current second data channel is from the data queue of the first data channel, the data message is deleted in the data queue of the first data channel.
In addition, the data transmission method according to the embodiment of the present invention can be described with reference to fig. 3 and 4, where the first data channel is represented by "HPLC", the second data channel is represented by "HPR", the data queue is represented by "sof queue", the first data packet and the second data packet when the priority data packet is determined for the first time are represented by "data D1" and "data D2", respectively, and the first data packet and the second data packet when the priority data packet is determined for the second time are represented by "data D4" and "data D3", respectively. Specifically, the method comprises the following steps:
step 1: judging whether the HPLC channel is idle, if so, performing the step 2, otherwise, performing the step 10;
step 2: selecting data D1 which has the highest priority, is not selected and sent by an HPLC channel before and is not selected by an HRF (high resolution factor) currently in an Sof queue of the HPLC;
and step 3: selecting data D2 with the highest priority, which is not selected by an HPLC channel before and is not selected by the HRF currently, from a sof queue of the HRF;
and 4, step 4: if the data D2 is application layer data and the HRF channel corresponding to the data is available, performing step 5, otherwise, performing step 6;
and 5: comparing the priorities of the data D1 and the data D2, if the priority of the data D1 is high, the data D1 is selected to be sent by an HPLC channel, if the priorities are the same, the queuing time is compared, if the queuing time of the data D1 is small, the data D1 is selected to be sent by the HPLC channel, and performing step 6; if the queue entry time of the data D2 is short, the data is selected to be sent by the HRF channel, and the step 8 is carried out;
step 6: judging whether the data D1 is unicast data, if so, starting a receiving sack overtime timer T1 after sending the data, and executing step 7; if not, directly sending the data, judging whether the data sending times reach the maximum sending times after the data is successful, if so, deleting the data in a sof queue of the HPLC and executing the step 10, otherwise, continuing to send the data;
and 7: if the sack frame is received before the overtime timer T1, the sack frame is processed, the sack frame is judged to carry the receiving result, if the receiving is successful, the data is deleted in the sof queue of the HPLC; if the receiving fails, retransmitting the data, judging whether the retransmission times exceed the limit, marking that the data is tried to be transmitted on an HPLC channel if the retransmission times exceed the limit, deleting the data in a sof queue of the HPLC if the data is tried to be transmitted on two channels, and executing the step 10;
and 8: judging whether the data D2 is unicast data, if so, starting a receiving sack overtime timer T2 after sending the data, and executing step 8; otherwise, directly sending the data, after the data is successful, judging whether the data sending times reach the maximum sending times, if so, deleting the data in the sof queue of the HRF and executing the step 10, otherwise, continuing to send the data;
and step 9: if the sack frame is received before the overtime timer T2, the sack frame is processed, the sack frame is judged to carry the receiving result, if the receiving is successful, the data is deleted in the sof queue of the HRF; if the receiving fails, retransmitting the data, judging whether the retransmission times exceed the limit, marking that the data is tried to be transmitted on an HPLC channel if the retransmission times exceed the limit, deleting the data in a sof queue of the HRF if the data is tried to be transmitted on two channels, and executing the step 10;
step 10: judging whether the HRF channel is idle, if so, performing step 11, otherwise, performing step 19;
step 11: selecting data D3 which has the highest priority, is not selected by the HRF to be sent before and is not selected by the non-HPLC currently in a sof queue of the HRF;
step 12: selecting data D4 which has the highest priority, is not selected by HRF before and is not selected by HPLC currently in a sof queue of HPLC;
step 13: if the data D4 is application layer data and the HPLC channel corresponding to the data is available, performing step 14, otherwise, performing step 15;
step 14: comparing the priorities of the data D3 and the data D4, if the priority of the data D3 is high, the data D3 is selected to be sent by an HPLC channel, if the priorities are the same, the queuing time is compared, if the queuing time of the data D3 is small, the data D3 is selected to be sent by the HPLC channel, and the step 15 is carried out; if the queue entry time of the data D2 is small, the data is selected to be sent by the HRF channel, and the step 17 is carried out;
step 15: judging whether the data D1 is unicast data, if so, starting a receiving sack overtime timer T3 after sending the data, and executing step 16; otherwise, directly sending the data, after the data is successful, judging whether the data sending times reach the maximum sending times, if so, deleting the data in the sof queue of the HRF and executing the step 19, otherwise, continuing to send;
step 16: if the sack frame is received before the overtime timer T3, the sack frame is processed, the sack frame is judged to carry the receiving result, if the receiving is successful, the data is deleted in the sof queue of the HRF; if the receiving fails, the data is retransmitted, whether the retransmission times exceed the limit is judged, if the retransmission times exceed the limit, the data is marked to be tried to be transmitted on an HPLC channel, if the data is tried to be transmitted on two channels, the data is deleted in a sof queue of the HRF, and if not, the data is retransmitted continuously. Step 19 is executed;
and step 17: judging whether the data D4 is unicast data, if so, starting a receiving sack overtime timer T4 after sending the data;
step 18: if the sack frame is received before the overtime timer T4, the sack frame is processed, the sack frame is judged to carry the receiving result, if the receiving is successful, the data is deleted in the sof queue of the HPLC; if the receiving fails, retransmitting the data, judging whether the retransmission times exceed the limit, if the retransmission times exceed the limit, marking that the data is tried to be transmitted on an HPLC channel, if the data is tried to be transmitted on two channels, deleting the data in a sof queue of the HPLC, otherwise, continuously retransmitting the data, and executing a step 19;
step 19: and exiting the data processing flow.
Referring to fig. 5, a data transmission system 100 according to an embodiment of the present invention includes a memory 210 and a processor 220. The memory 210 stores a computer program. The processor 220, when executing the computer program, implements the steps of the data transmission method of any of the above embodiments.
For example, in the case of a computer program being executed, the following steps may be implemented:
01: under the condition that one of a first data channel and a second data channel is determined to be in an idle state, a first data message and a second data message are obtained, wherein the first data message is the data message with the highest priority in the data channel in the idle state, the second data message is the data message which has the highest priority in the other data channel and is not selected, and the data transmission rate of the first data channel is greater than that of the second data channel;
02: and under the condition that one of the first data message and the second data message is determined as the priority data message, transmitting the priority data message through one of the first data channel and the second data channel.
According to the data transmission method, dual-mode communication is formed through the first data channel and the second data channel, when the data message is sent, the priority data message can be determined in the data message with the highest priority in the two data channels, and the priority data message is sent through one of the first data channel and the second data channel, so that the dual-mode communication channel can be fully utilized, the communication stability is improved, and the communication delay is reduced.
A computer-readable storage medium of an embodiment of the present invention has a computer program stored thereon. The computer program, when executed by a processor, implements the steps of the data transmission method of any of the above embodiments.
For example, in the case of a computer program being executed, the following steps may be implemented:
01: under the condition that one of a first data channel and a second data channel is determined to be in an idle state, a first data message and a second data message are obtained, wherein the first data message is the data message with the highest priority in the data channel in the idle state, the second data message is the data message which has the highest priority in the other data channel and is not selected, and the data transmission rate of the first data channel is greater than that of the second data channel;
02: and under the condition that one of the first data message and the second data message is determined as the priority data message, transmitting the priority data message through one of the first data channel and the second data channel.
According to the computer readable storage medium, dual-mode communication is formed through the first data channel and the second data channel, when data messages are sent, the priority data messages can be determined in the data messages with the highest priority in the two data channels, and the priority data messages are sent through one of the first data channel and the second data channel, so that the dual-mode communication channel can be fully utilized, the communication stability is improved, and the communication delay is reduced.
The computer-readable storage medium may be provided in the data transmission system 100, or may be provided in another terminal, and the data transmission system 100 may communicate with the other terminal to obtain the corresponding program.
It is understood that the computer-readable storage medium may include: any entity or device capable of carrying a computer program, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), software distribution medium, and the like. The computer program includes computer program code. The computer program code may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), and software distribution medium.
In some embodiments of the present invention, the transmission node may be a single chip integrated with a processor, a memory, a communication module, and the like. The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (11)

1. A data transmission method, characterized in that the data transmission method comprises:
under the condition that one of a first data channel and a second data channel is determined to be in an idle state, acquiring a first data message and a second data message, wherein the first data message is the data message with the highest priority in the data channel in the idle state, the second data message is the data message which has the highest priority in the other data channel and is not selected, and the data transmission rate of the first data channel is greater than that of the second data channel;
and sending the priority data message through one of the first data channel and the second data channel under the condition that one of the first data message and the second data message is determined as the priority data message.
2. The data transmission method according to claim 1, wherein the data transmission method comprises:
determining one of the first data packet and the second data packet with a higher priority order as the priority data packet; or
And determining the earlier enqueue time of the first data packet and the second data packet as the priority data packet when the priority order of the first data packet is equal to the priority order of the second data packet, wherein the enqueue time of the first data packet is the time for the first data packet to be sent into the first data channel to wait for sending, and the enqueue time of the second data packet is the time for the second data packet to be sent into the second data channel to wait for sending.
3. The data transmission method according to claim 1, wherein sending the priority data packet via one of the first data channel and the second data channel comprises:
under the condition that the first data channel fails to send the priority data message, the priority data message is sent through the second data channel, and the first data channel skips over the priority data message for sending;
deleting the priority data message of the first data channel under the condition that the second data channel fails to send the priority data message;
or
Sending the priority data packet through one of the first data channel and the second data channel, including:
under the condition that the second data channel fails to send the priority data message, the priority data message is sent through the first data channel, and the second data channel skips over the priority data message for sending;
and deleting the priority data message of the second data channel under the condition that the first data channel fails to send the priority data message.
4. The data transmission method according to claim 3, wherein the data transmission method comprises:
after the priority data message is sent, determining that a first signal frame is not received, or under the condition that the receiving is determined to be failed according to the received first signal frame, retransmitting the priority data message for multiple times by a first sending frequency in a data channel for sending the priority data message;
and determining that the sending of the priority data message fails under the condition of determining no response to overtime after finishing the repeated sending of the priority data message.
5. The data transmission method according to claim 4, wherein the data transmission method comprises:
and determining the first sending times according to the communication success rate and the signal-to-noise ratio.
6. The data transmission method according to claim 1, wherein the data transmission method comprises:
backing up the data message to the first data channel and the second data channel;
deleting the data packet in the first data channel under the condition that the number of times of sending the data packet through the first data channel is greater than the second sending number of times, or
And deleting the data message in the second data channel under the condition that the number of times of sending the data message through the second data channel is greater than the second sending number of times.
7. The data transmission method according to claim 1, wherein the data transmission method comprises:
adding the data packet to the first data channel, or
And adding the data message to the second data channel when the identifier corresponding to the data message is determined to correspond to the second data channel.
8. The data transmission method according to claim 1, wherein the data transmission method comprises:
determining a channel available mark of the first data channel and a channel available mark of the second data channel according to the uplink and downlink communication success rate of the data channel;
and sending the data message positioned in the first data channel through the second data channel under the condition that the channel available mark of the first data channel is determined to be unavailable and the channel available mark of the second data channel is determined to be available.
9. The data transmission method according to claim 1, wherein the data transmission method comprises:
receiving corresponding data messages through the first data channel and the second data channel respectively;
when the data message received through the second data channel is processed, the data message received through the first data channel is preferentially processed under the condition that the data message sent through the first data channel is received.
10. A data transmission system comprising a memory storing a computer program and a processor which, when executing the computer program, carries out the steps of the data transmission method according to any one of claims 1 to 9.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the data transmission method according to any one of claims 1 to 9.
CN202211102318.1A 2022-09-09 2022-09-09 Data transmission method, data transmission system, and computer-readable storage medium Active CN115189719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211102318.1A CN115189719B (en) 2022-09-09 2022-09-09 Data transmission method, data transmission system, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211102318.1A CN115189719B (en) 2022-09-09 2022-09-09 Data transmission method, data transmission system, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN115189719A true CN115189719A (en) 2022-10-14
CN115189719B CN115189719B (en) 2023-01-24

Family

ID=83524229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211102318.1A Active CN115189719B (en) 2022-09-09 2022-09-09 Data transmission method, data transmission system, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115189719B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110286381A1 (en) * 2010-05-18 2011-11-24 Interdigital Patent Holdings, Inc. Method and apparatus for dynamic spectrum management
CN107689928A (en) * 2017-08-15 2018-02-13 中国联合网络通信集团有限公司 Data service handling method and device
CN111465068A (en) * 2020-03-18 2020-07-28 深圳市力合微电子股份有限公司 Communication method for power line carrier and wireless dual-mode fusion
CN113260047A (en) * 2021-06-23 2021-08-13 国网信息通信产业集团有限公司 Dual-mode system, station and central coordinator combining HPLC and wireless communication
CN114760373A (en) * 2022-06-13 2022-07-15 北京智芯微电子科技有限公司 Data transmission method and device, computer readable storage medium and convergence terminal
CN114915394A (en) * 2022-04-08 2022-08-16 深圳市国电科技通信有限公司 Dual-mode communication device, dual-mode communication method, and storage medium
CN114979826A (en) * 2022-05-16 2022-08-30 北京智芯微电子科技有限公司 Power consumption control method, system, equipment and chip of multimode communication equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110286381A1 (en) * 2010-05-18 2011-11-24 Interdigital Patent Holdings, Inc. Method and apparatus for dynamic spectrum management
CN107689928A (en) * 2017-08-15 2018-02-13 中国联合网络通信集团有限公司 Data service handling method and device
CN111465068A (en) * 2020-03-18 2020-07-28 深圳市力合微电子股份有限公司 Communication method for power line carrier and wireless dual-mode fusion
CN113260047A (en) * 2021-06-23 2021-08-13 国网信息通信产业集团有限公司 Dual-mode system, station and central coordinator combining HPLC and wireless communication
CN114915394A (en) * 2022-04-08 2022-08-16 深圳市国电科技通信有限公司 Dual-mode communication device, dual-mode communication method, and storage medium
CN114979826A (en) * 2022-05-16 2022-08-30 北京智芯微电子科技有限公司 Power consumption control method, system, equipment and chip of multimode communication equipment
CN114760373A (en) * 2022-06-13 2022-07-15 北京智芯微电子科技有限公司 Data transmission method and device, computer readable storage medium and convergence terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
付志达等: "高速电力线载波和微功率无线双模通信在配电台区的应用", 《电力信息与通信技术》 *
林大朋, 毛珊珊, 武占侠, 陆欣, 王春, 洪海敏, 刘飞飞: "HPLC 与无线双模混合组网关键技术研究", 《第三届智能电网会议论文集》 *
王贤辉,王立城,宋彦斌,王东山: "基于信噪比优选的电力线载波和无线通信物理层融合方法", 《电力信息与通信技术》 *

Also Published As

Publication number Publication date
CN115189719B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
JP4012172B2 (en) Wireless communication apparatus and wireless communication method
US8989108B2 (en) Wireless packet communication method and wireless packet communication apparatus
KR100678223B1 (en) Method and apparatus for packet transmitting in a communication system
CN102771060B (en) Recover to transmit the method for failed frame for the wireless communication system based on multi-user's multiple-input and multiple-output
JP3914558B2 (en) Wireless packet communication method
CN102026297B (en) Method, system and node for channel negotiation
US20060209712A1 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and computer program
CN102362520A (en) Signaling mechanisms for network-relay interface with reduced overhead
JP2005252980A (en) Communication system, communication method and base station
JP2006352896A (en) Wireless communication apparatus
CN112019239B (en) Method, node and storage medium for transmitting data
US11962413B2 (en) Wireless communication device and method
WO2019137487A1 (en) Method and device for determining transmission opportunity, storage medium, and electronic device
JP4772553B2 (en) Data transmitting / receiving apparatus and data transmitting / receiving method
EP0235254A1 (en) Packet switched local network with priority random splitting and conflict detection
CN104303459A (en) Method and apparatus for implementing traffic flags for large service groups
CN115189719B (en) Data transmission method, data transmission system, and computer-readable storage medium
US11196676B2 (en) Encapsulation of data packets
CN114173383A (en) Channel bandwidth adjusting method, device and node
JP2008263511A (en) Data transmitter-receiver
JP2001211145A (en) System and method for transmission
CN101989896B (en) Feedback method and device for ARQ connection
JP2010028284A (en) Wireless communication device and wireless communication method
CN113727453B (en) Method, device, system and storage medium for resource scheduling
JPH11298477A (en) Transmission control method and transmission controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant