CN117254887A - Channel locking method, device and system and computer storage medium - Google Patents

Channel locking method, device and system and computer storage medium Download PDF

Info

Publication number
CN117254887A
CN117254887A CN202311546585.2A CN202311546585A CN117254887A CN 117254887 A CN117254887 A CN 117254887A CN 202311546585 A CN202311546585 A CN 202311546585A CN 117254887 A CN117254887 A CN 117254887A
Authority
CN
China
Prior art keywords
data
channel
receiving
sub
bit
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
CN202311546585.2A
Other languages
Chinese (zh)
Other versions
CN117254887B (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.)
Suzhou Lianxun Instrument Co ltd
Original Assignee
Suzhou Lianxun Instrument 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 Suzhou Lianxun Instrument Co ltd filed Critical Suzhou Lianxun Instrument Co ltd
Priority to CN202311546585.2A priority Critical patent/CN117254887B/en
Publication of CN117254887A publication Critical patent/CN117254887A/en
Application granted granted Critical
Publication of CN117254887B publication Critical patent/CN117254887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0033Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses a channel locking method, a device, a system and a computer storage medium, which relate to the field of channel locking, and when any receiving channel in receiving equipment receives data sent by sending equipment through a sending channel, bit slipping splitting is carried out on the data to obtain a plurality of sub-data; then, consistency comparison is carried out on the identification code of each receiving channel in the receiving equipment and each sub data, and the receiving channel with the consistent comparison result is used as the correct receiving channel of the time; and circularly judging a plurality of periods until a plurality of continuous periods are the same correct receiving channel, and determining that the channel is locked with the sending channel. The initial position of the transmitted data can be accurately determined through bit slipping splitting; through multi-cycle comparison, the corresponding relation between the receiving channels and the sending channels can be accurately determined, so that the relation between each receiving channel and the sending channel is locked, and the receiving equipment can acquire the data sent by the sending channel from the correct receiving channel.

Description

Channel locking method, device and system and computer storage medium
Technical Field
The present invention relates to the field of channel locking, and in particular, to a channel locking method, device, system, and computer storage medium.
Background
As the demand for data traffic by server applications increases, greater transmission bandwidth is required to support data transmission between servers. At present, the transmission technology of multichannel PAM4 (4 Pulse Amplitude Modulation, fourth pulse amplitude modulation) solves the problem of mass data transmission, the servers serving as the sending end and the servers serving as the receiving end are respectively provided with the same number of data transmission channels, all channels of the sending equipment are in one-to-one correspondence with all channels of the receiving equipment, and in practical application, the sending equipment transmits data to the corresponding channels of the receiving end through the channels.
However, the path arrangement order of the channels of the transmitting apparatus and the path arrangement order of the channels of the receiving apparatus are different, and when the transmitting apparatus transmits data to the receiving apparatus through a certain channel, the receiving apparatus may be caused to receive the data from a receiving channel that does not correspond to the transmitting channel, thereby affecting the subsequent service.
Therefore, how to lock each receiving channel with the corresponding transmitting channel, so as to transmit data to the correct receiving channel is a technical problem to be solved at present.
Disclosure of Invention
The invention aims to provide a channel locking method, a device, a system and a computer storage medium, which can accurately determine the corresponding relation between a receiving channel and a sending channel, thereby locking the relation between each receiving channel and the sending channel and enabling receiving equipment to acquire data sent by the sending channel from the correct receiving channel.
In order to solve the above technical problems, the present invention provides a channel locking method, including:
when any receiving channel in the receiving device receives data sent by the sending device through the sending channel, carrying out bit slipping splitting on the data to obtain a plurality of sub-data with the same number as the number of bits of the data and M bits, wherein M is a positive integer not greater than the number of bits of the data;
among all receiving channels of the receiving device, the receiving channel with the same identification code as one of all the sub-data is used as the correct receiving channel corresponding to the transmitting channel;
returning to the step of performing bit-slip splitting on the data when any one of the receiving channels acquires the data transmitted by the transmitting device through the transmitting channel next time, so as to determine a new correct receiving channel corresponding to the transmitting channel;
and when the corresponding correct receiving channels of the sending channels in the continuous X periods are the same channel, determining the correct receiving channels as locking channels of the sending channels.
In one aspect, before performing the bit-slip splitting on the data, the method further includes:
merging the data received by the receiving equipment this time into the data received by the receiving equipment last time to obtain merged data with the bit number which is 2 times that of the data;
performing bit-slip splitting on the data, including:
and carrying out bit shifting splitting on the combined data to obtain a plurality of sub-data with the same number as the number of bits of the data and M bits.
In one aspect, performing bit-shifting splitting on the combined data includes:
and respectively acquiring the ith bit to the (i+M-1) th bit of the combined data as the ith sub data, wherein i is any integer not greater than the bit number of the data.
In one aspect, after the receiving channel with the same identification code as one of all the sub-data is used as the correct receiving channel corresponding to the sending channel, the method further includes:
establishing received data of the correct receiving channel, wherein the bit number of the received data is equal to the bit number of the data;
taking the j-th bit data of the sub data consistent with the identification code of the correct receiving channel as the j-th bit data of the receiving data, wherein j is any integer not more than M;
acquiring 1 st to kth bit data positioned after the last bit data of the sub data in the merged data as M+1 th to last bit data of the received data respectively, wherein k is any integer between M+2 and the total bit number of the data;
after determining the correct receiving channel as the locking channel of the transmitting channel, further comprising:
and sending the received data to the locking channel so that the receiving equipment receives the received data through the locking channel.
In one aspect, the method further comprises:
s21: sorting the identification codes of the receiving channels according to a preset sequence;
s22: taking a first identification code as a comparison code;
s23: beginning to record the detection duration;
s24: judging whether the received data are generated in a preset time length; if yes, triggering S25; if not, triggering S26;
s25: resetting the detection duration, and keeping the comparison code unchanged;
s26: resetting the detection duration, taking the next identification code as the new comparison code, and returning to S23; when the identification code is the last identification code, the first identification code is used as the new comparison code;
among all receiving channels of the receiving device, the receiving channel with the same identification code as one of all the sub-data is used as the correct receiving channel corresponding to the transmitting channel, and the method comprises the following steps:
judging whether the comparison code is identical with one sub-data in all the sub-data;
if yes, entering the step of establishing the received data of the correct receiving channel.
In one aspect, the receiving channel, in which the identification code of the receiving channel is the same as one of all the sub-data, is used as the correct receiving channel corresponding to the sending channel, and includes:
comparing a designated N-bit identification code in M-bit identification codes of the receiving channels with each sub-data for any receiving channel, wherein M is an integer not smaller than N;
and taking a receiving channel with the appointed N-bit identification code in the M-bit identification code completely consistent with one sub-data in all the sub-data as the correct receiving channel.
In one aspect, after determining the correct receiving channel as the locking channel of the transmitting channel, the method further includes:
when the correct receiving channel corresponding to the transmitting channel is detected not to be the locking channel, unlocking the locking channel and the transmitting channel, and returning to the step of carrying out bit slipping splitting on the data when any receiving channel in the receiving device acquires the data transmitted by the transmitting device through the transmitting channel next time.
The present application also provides a channel locking device comprising:
a memory for storing a computer program;
and a processor for implementing the steps of the channel locking method as described above when executing the computer program.
The present application also provides a channel locking system comprising:
a sub-data obtaining unit, configured to, when any one of receiving channels of the receiving device receives data sent by a sending device through a sending channel, perform bit slipping splitting on the data to obtain a plurality of sub-data having the same number as the number of bits of the data and M bits, where M is a positive integer not greater than the number of bits of the data;
a comparing unit, configured to use, among all receiving channels of the receiving device, the receiving channel having the same identification code as one of all the sub-data as the correct receiving channel corresponding to the sending channel;
a circulation unit, configured to, when any one of the receiving devices acquires data sent by the sending device through a sending channel next time, re-trigger the sub-data acquisition unit, so as to determine a new correct receiving channel corresponding to the sending channel;
and the locking unit is used for determining the correct receiving channel as the locking channel of the sending channel when the corresponding correct receiving channel of the sending channel in the continuous X periods is the same channel.
The present application also provides a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the channel locking method as described above.
The beneficial effects of this application lie in: a channel locking method, a device, a system and a computer storage medium are provided, which relate to the field of channel locking, and when any receiving channel in receiving equipment receives data sent by sending equipment through a sending channel, bit slipping splitting is carried out on the data to obtain a plurality of sub-data; then, consistency comparison is carried out on the identification code of each receiving channel in the receiving equipment and each sub data, and the receiving channel with the consistent comparison result is used as the correct receiving channel of the time; and circularly judging a plurality of periods until a plurality of continuous periods are the same correct receiving channel, and determining that the channel is locked with the sending channel. The initial position of the transmitted data can be accurately determined through bit slipping splitting; through multi-cycle comparison, the corresponding relation between the receiving channels and the sending channels can be accurately determined, so that the relation between each receiving channel and the sending channel is locked, and the receiving equipment can acquire the data sent by the sending channel from the correct receiving channel.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a channel locking method provided in the present application;
FIG. 2 is a schematic view of a channel locking device according to the present disclosure;
fig. 3 is a schematic structural view of a channel locking system provided in the present application.
Detailed Description
The core of the invention is to provide a channel locking method, a device, a system and a computer storage medium, which can accurately determine the corresponding relation between a receiving channel and a sending channel, thereby locking the relation between each receiving channel and the sending channel, and enabling a receiving device to acquire data sent by the sending channel from the correct receiving channel.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Cloud computing, VR (Virtual Reality), AR (Augmented Reality ), AI (Artificial Intelligence, artificial intelligence), 5G and other applications have very large traffic demands, requiring higher bandwidth to support traffic transport; to support the application of these technologies, 400G optical network communications are gradually replacing the original 100G communications.
The 400G optical network communication uses 8 single-channel PAM4 transmissions with 50G, and the multi-channel PAM4 modulation transmission solves the problem of traffic of large-flow data transmission, but the order of the receiving channels cannot be in one-to-one correspondence with the sending channels, so that the receiving channels may receive the data sent by the non-corresponding sending channels. As a simple example, assume that the order of 8 transmission channels is A, B, c.h. and the order of 8 reception channels is H, G, f.h. a, the transmission channel a needs to transmit data to the reception channel a when transmitting data, but because of the channel order problem, data is actually transmitted to the reception channel H, resulting in a problem for subsequent traffic.
According to the 16 virtual channels specified by the IEEE 802.3 protocol, each channel has a fixed code block (AM code), locking can be achieved by the fixed AM codes of the different channels. However, at the receiving end, since the data received by the receiving channel is data interleaved or PAM4 modulated, it is difficult to determine the AM code of the transmitting channel transmitting the data.
Referring to fig. 1, fig. 1 is a flowchart of a channel locking method provided in the present application, including:
s1: when any receiving channel in the receiving device receives the data sent by the sending device through the sending channel, carrying out bit slipping splitting on the data to obtain a plurality of sub-data with the same number as the number of bits of the data and M bits, wherein M is a positive integer not greater than the number of bits of the data;
when the transmitting device transmits data to the receiving device, considering that the situation that clock periods are not synchronous between the two devices possibly exists, a certain delay exists in the receiving device when the receiving device receives the data (the situation that the transmitting device still transmits the last data which is not transmitted yet when the clock of the receiving device is overturned possibly exists), in order to accurately determine the data which is transmitted to the receiving device by the transmitting device, when the receiving device detects the data from the transmitting device or in each clock period, sliding bit shift processing is carried out on the data received in the clock period, the data is slid by a preset sliding window, a new data is generated when one bit is slid, and finally a plurality of sub-data are obtained, so that only one data representing the start bit of the data which is transmitted by the transmitting device is found in the sub-data. It will be appreciated that when the above-described situation of reception delay exists, the transmitting device is still transmitting the latter content of the last piece of data in the former period of the present clock cycle, and the former content of the new piece of data will be transmitted in the latter period of the present clock cycle.
S2: among all receiving channels of the receiving device, the receiving channel with the same identification code as one of all sub-data is used as the correct receiving channel corresponding to the transmitting channel;
from the above, each channel is set with a fixed AM code, i.e. an identification code; when transmitting data, the transmitting device typically includes an AM code that prevents the data from being preceded by actual data, in addition to the data that is actually to be transmitted to the receiving device; thus, by sliding the bit shift, a plurality of sub-data are obtained, each of which contains contents that are substantially equal to an AM code or a partial AM code.
After the sliding bit shift, each piece of sub-data needs to compare its own data content with the identification code of each receiving channel of the receiving device, because the sub-data is a transmitting channel from the transmitting device, according to the AM code fixing of each channel, only one piece of sub-data is consistent with the identification code of one receiving channel, the sub-data is equal to the initial data of the data actually transmitted by the transmitting device through the transmitting channel, and the receiving channel with the identification code consistent with the sub-data can be primarily regarded as the channel corresponding to the transmitting channel.
S3: returning to S1 when any receiving channel in the receiving equipment acquires the data sent by the sending equipment through the sending channel next time, so as to determine a new correct receiving channel corresponding to the sending channel;
in order to further verify the correspondence between the sending channel and the receiving channel, considering that the situations of equipment state change, interference in the communication process, abnormal data receiving and transmitting, etc. may exist in the practical application, the comparison flow just relying on the step S2 is insufficient to directly lock the channel, so when the receiving channel receives the data next time, the steps S1 and S2 are re-executed to verify whether the data sent to the receiving device by the same sending channel corresponds to the same correct receiving channel. In practice, this step is actually returned to S1 at the beginning of the next cycle, since the transmitting device will continuously transmit data to each receiving channel.
S4: when the corresponding correct receiving channel of the transmitting channel is the same channel in the continuous X periods, the correct receiving channel is determined as the locking channel of the transmitting channel.
If the data sent by the same sending channel to the same receiving channel corresponds to the same correct receiving channel in a plurality of continuous periods, the correct receiving channel and the sending channel can be considered to be in a correct corresponding relation, the correct receiving channel can be further locked to be used as a receiving path of the sending channel, and when the data from the sending channel is received subsequently, the data can be directly reordered into the locking channel, so that the receiving device can conveniently acquire the data sent by the correct sending channel from the correct receiving channel.
For simplicity of description, the above examples are presented herein as illustrations: assuming that the order of 8 transmission channels is A, B, c..h, and the order of 8 reception channels is H, G, f..a..a, the transmission channel a needs to transmit data to the reception channel a when transmitting the data, but the data is actually transmitted to the reception channel H because of the order problem, after the steps S1 and S2, it can be determined that the reception channel a is the correct reception channel of the transmission channel a; based on this, judgment of a plurality of consecutive periods is performed, and if the data transmitted to the reception apparatus by the transmission channel a for X consecutive periods corresponds to the reception channel a, the transmission channel a and the reception channel a can be locked.
It should be noted that, in practical application, the transmitting device may send data to the receiving device through all the transmitting channels at the same time, that is, each receiving channel may obtain data from a different transmitting channel, and in order to reorder the sending data into the correct receiving channel, the data of each transmitting channel needs to participate in the flow of the present application.
In summary, when any one of the receiving channels of the receiving device receives the data sent by the sending device through the sending channel, performing bit slipping splitting on the data to obtain a plurality of sub-data with the same number as the number of bits of the data and M bits; consistency comparison is carried out on the identification code of each receiving channel in the receiving equipment and each sub data, and the receiving channel with the consistent comparison result is taken as a correct receiving channel corresponding to the transmitting channel; and circularly judging a plurality of periods until the correct receiving channel corresponding to the transmitting channel in the continuous X periods is the same channel, and determining the correct receiving channel as a locking channel of the transmitting channel. Accurately determining the starting position of the transmitted data by a bit slipping splitting mode; by comparing the sub-data with the identification code through multi-period execution, a single sending channel is locked with a correct receiving channel consistent with continuous multi-period comparison, and the corresponding relation between each receiving channel and each sending channel can be accurately determined, so that the locking realizes channel locking, and the receiving equipment can acquire the data sent by the sending channel from the correct receiving channel.
Based on the above embodiments:
in some embodiments, before the bit-slip splitting of the data, further comprising:
combining the data received by the receiving equipment this time with the data received by the receiving equipment last time to obtain combined data with the bit number of 2 times of the data;
performing bit-shifting splitting on data, comprising:
and carrying out bit shifting splitting on the combined data to obtain a plurality of sub-data with the same number as the number of bits of the data and M bits.
In order to accurately determine the start bit of the data sent by the sending device, according to the above embodiment, it is known that a certain clock delay may exist between the sending device and the receiving device, so that the receiving device may actually receive the data sent by the sending device after a period of time elapses after the current period starts. It will be appreciated that if the clock delay is long, the situation that the current period ends but the transmitting device is still transmitting the data, and the later part of the data transmitted this time needs to be delayed to the next clock period, which is the influence of the clock delay.
Based on this, in order to determine the sub-data of the current period (that is, the start bit of the data transmitted by the transmitting device in the current period), the data content acquired in the current period is first reserved, and the data in two adjacent periods is reconstructed into one combined data with the new bit width being 2 times that of the data transmitted in a single time through the step of delaying the data by one beat (delaying one period); when the bit slipping is performed, the sub data is extracted by regarding the merged data as a whole.
Specifically, in some embodiments, performing bit-slip splitting on the combined data includes:
and respectively acquiring the ith bit to the (i+M-1) th bit data of the combined data as the ith sub data, wherein i is any integer which is not more than the bit number of the data.
When the bit slipping splitting is carried out, M is used as a sliding window, a designated bit number in the combined data is used as an initial bit of the sliding window, data from the initial bit to the number of the initial bit plus M-1 bit is obtained in the combined data and used as first sub-data, then the sliding window is shifted backwards to the combined data by a certain bit number, the data in the window after the shifting is obtained and used as second sub-data, and the sub-data with the same number as single data are obtained by the similar method.
As a specific example, assuming that M is 24 and the bit width of the single data is 64 bits, the combined data is recorded as new_data <127:0>, the first 64 bits of the combined data are the last received data, and the last 64 bits are the current received data; the combined data new_data is subjected to sliding bit shifting, and 64 sub data search_data <63:0> <23:0> of 24 bits can be obtained. Among the sub data, the first bit of the combined data is used as the initial bit of the sliding window, the sliding window is shifted one bit after the sub data is acquired, and then the next sub data is fetched, and the method comprises the following steps:
search_data <0> =new_data <23:0>, i.e., the first sub data is equal to the 0 th to 23 rd bit data in the merged data;
search_data <1> =new_data <24:1>, i.e., the second sub data is equal to the 1 st to 24 th data in the merged data;
search_data <2> =new_data <25:2>, i.e., the third sub data is equal to the 2 nd to 25 th data in the merged data;
and so on untilI.e., the ith sub data is equal to the ith to (i+23) th data in the merged data.
In addition, the number of bits per movement of the sliding window and the specific length of the sub data are not limited in the present application.
In some embodiments, after the receiving channel having the same identification code as one of all the sub-data is used as the correct receiving channel corresponding to the transmitting channel, the method further includes:
establishing received data of a correct receiving channel, wherein the bit number of the received data is equal to the bit number of the data;
taking the j-th bit data of the sub data consistent with the identification code of the correct receiving channel as the j-th bit data of the receiving data, wherein j is any integer not more than M;
acquiring 1 st bit data to kth bit data positioned after the last bit data of the sub data in the combined data as M+1 th to last bit data of the received data respectively, wherein k is any integer between M+2 and the total bit number of the data;
after determining the correct receiving channel as the locking channel of the transmitting channel, further comprising:
the received data is sent to the lock channel so that the receiving device receives the received data through the lock channel.
In order to determine the data that the transmitting device transmits this time, in this application, in combination with the above embodiment, it is known that the sub-data corresponds to a frame header of the data, and the data content that the transmitting device actually needs to transmit to the receiving device is located after the frame header data, that is, after the sub-data. After each piece of sub data is compared with the identification code of each receiving channel, the correct receiving channel and the sub data consistent with the identification code of the channel are determined, the sub data is the frame head part of the data transmitted by the transmitting equipment at this time, therefore, the bit number M of the sub data is subtracted from the total bit number of the data transmitted at one time to obtain the bit number A of the actual data content, and finally the A-bit data after the last bit of the sub data is obtained in the combined data to be used as the actual data content; and finally, merging the actual data content into the sub data to obtain the complete data sent by the sending equipment.
By way of example in the above embodiment, the single data is 64 bits, the bits of the sub data (24 bits) in the merged data are <23+i:0+i >, and the bits are assumed to be <25:2>, and the <65:26> bit data in the merged data needs to be taken as the actual data content; the actual data content is merged after the sub data, and the sub data is always placed at the lower 24 bits, so that 64-bit complete data <63:0> is obtained.
In some embodiments, further comprising:
s21: ordering the identification codes of all the receiving channels according to a preset sequence;
s22: taking the first identification code as a comparison code;
s23: beginning to record the detection duration;
s24: judging whether received data are generated in a preset time length; if yes, triggering S25; if not, triggering S26;
s25: resetting the detection duration, and keeping the comparison code unchanged;
s26: resetting the detection duration, taking the next identification code as a new comparison code, and returning to S23; when the identification code is the last identification code, the first identification code is used as a new comparison code;
among all receiving channels of the receiving device, a receiving channel with the same identification code as one of all sub data is used as a correct receiving channel corresponding to the transmitting channel, and the method comprises the following steps:
judging whether the comparison code is identical with one sub-data in all sub-data;
if yes, the step of establishing the received data of the correct receiving channel is entered.
In order to realize the comparison of the identification codes, in the application, a comparison code AM_sync is set in the receiving equipment, the receiving equipment periodically outputs the identification codes of different channels to the AM_sync after being electrified, and if the received data is detected in a certain period, the output identification code is continuously output; if no received data is detected in one period, the identification code of the next channel is polled and outputted as the identification code.
That is, even if the transmitting device does not transmit data to the receiving device, the receiving device outputs an identification code as the comparison code am_sync at intervals, and switches to the next identification code output when no received data generation is detected during the period, and the comparison can be performed immediately when data is transmitted by means of polling, thereby improving efficiency. The identification codes may be sorted in the order of the channels, or may be sorted in the order of the priority of the channels, which is not limited in this application.
Therefore, when comparing each sub-data with the identification code of each channel, in fact, each sub-data is compared with one comparison code, that is, the identification code of a certain channel output in the period, if none of the sub-data is consistent with the identification code of the period, the identification code of another channel is output as the comparison code at the beginning of the next period, so that each sub-data is compared with the new comparison code again until the comparison code of the certain period is consistent with the certain sub-data, the receiving channel corresponding to the comparison code (identification code) is taken as the correct receiving channel, and the receiving data is established by utilizing the sub-data consistent with the comparison code and the combined data. After the received data is established, the fact that the correct sub-data is found is indicated, the output identification code is the identification code of the correct receiving channel, the identification code of the correct receiving channel needs to be kept to be output continuously for a period of time, and the execution of subsequent steps is facilitated.
For the two preset durations, the preset duration is only required to be set longer than one data transmission period, and the length of the preset durations is not limited in the application.
In some embodiments, the receiving channel with the same identification code as one of all the sub-data is used as the correct receiving channel corresponding to the sending channel, and the method includes:
for any receiving channel, comparing a designated N-bit identification code in M-bit identification codes of the receiving channel with each piece of sub data, wherein M is an integer not smaller than N;
and taking the receiving channel of which the designated N-bit identification code in the M-bit identification code is completely consistent with one piece of sub-data in all pieces of sub-data as a correct receiving channel.
For simple comparison, in the application, considering that the number of data bits of the identification code of the receiving channel is relatively long, the identification code of each channel has relatively obvious difference in each data bit number, so that when the sub-data is acquired by bit slipping, the complete frame head part of the data sent by the sending device is not required to be acquired, and only part of the data can be intercepted to serve as the sub-data; meanwhile, when the sub data and the identification code are compared to be consistent, whether the M digits of the sub data are completely consistent with certain M digits in the N-bit identification code is only needed, and the M digits are not required to be completely consistent with the N-bit identification code.
As a specific example, assume that the receiving apparatus has a total of 16 receiving channels, and the identification codes of these 16 receiving channels are shown in the following table:
table 1: 16-channel identification code table
According to the above table, only some bits of the identification code of each channel have the same condition, and most bits have obvious differences, so that data with obvious differences in some bits can be compared with sub-data. Assume that two pieces of data, UM0 and UM1, are taken for comparison with the sub-data, and the following are adopted:
if the sub data= {0x01,0x71}, then corresponding to 1 channel;
if the sub data= {0x5a,0xde }, then the corresponding channel is 2;
if the sub data= {0x3e,0xf3}, then corresponding to 3 channels;
if the sub data= {0x86,0x80}, then corresponding to 4 channels;
if the sub data= {0x2a,0x51}, then corresponding to 5 channels;
if the sub data= {0x12,0x4f }, then corresponding to 6 channels;
if the sub data= {0x42,0x9c }, then corresponding to 7 channels;
if the sub data= {0xd6,0x76}, then corresponding to 8 channels;
if the sub data= {0xe1,0x73}, then corresponding to 9 channels;
if the sub data= {0x71,0xc4}, then 10 channels are corresponding;
if the sub data= {0x95,0xeb }, then the corresponding 11 channels;
if the sub data= {0x22,0x66}, then the corresponding 12 channels;
if the sub data= {0xa2,0xf6}, then corresponding to 13 channels;
if the sub data= {0x31,0x97}, then the corresponding 14 channels;
if the sub data= {0xca,0xfb }, then corresponding to 15 channels;
if the sub data= {0xba,0×79}, then 16 lanes are corresponding.
Based on the above, the comparison of the sub data and the identification code can be simply and effectively realized.
In some embodiments, after determining the correct receive channel as the lock channel of the transmit channel, further comprising:
determining a communication signal quality of each of the reception channels in the reception apparatus;
and returning to the step of performing bit slip splitting on the data when the communication signal quality of any one of the receiving channels is lower than the preset quality.
In order to lock again in time, in the present application, when a certain receiving channel is locked with a certain sending channel and then in a subsequent data transmission service, when a receiving device receives data sent by the sending channel from any one channel, only a frame header (or sub data/identification code) in the data sent by the sending channel needs to be acquired, so that a corresponding receiving channel can be determined, and then the data is rearranged to a correct receiving channel and then received.
Considering that in the practical application scene, the situation that the communication quality is reduced due to the fact that interference possibly exists, when the communication quality is reduced, the data sent by the sending equipment is possibly wrong, so that a correct receiving channel cannot be determined, and unlocking is caused; therefore, while the subsequent data transmission service is performed, it is also necessary to continuously detect the communication quality of the device, so as to detect to determine whether each channel is always in a locked state, and to re-perform from step S1 to re-lock when any one channel is detected as out-of-lock.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a channel locking device provided in the present application, including:
a memory 21 for storing a computer program;
a processor 22 for implementing the steps of the channel locking method as described above when executing a computer program.
For a detailed description of the channel locking device provided in the present application, please refer to the embodiment of the channel locking method, and the detailed description is omitted herein.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a channel locking system provided in the present application, including:
a sub-data obtaining unit 31, configured to, when any one of the receiving channels of the receiving device receives the data sent by the sending device through the sending channel, perform bit slipping splitting on the data to obtain a plurality of sub-data having the same number of bits as the data and M bits, where M is a positive integer not greater than the number of bits of the data;
a comparing unit 32, configured to use, among all receiving channels of the receiving device, a receiving channel in which an identification code of the receiving channel is identical to one of all sub-data, as a correct receiving channel corresponding to the transmitting channel;
a circulation unit 33, configured to, when any one of the receiving devices acquires the data sent by the sending device through the sending channel next time, re-trigger the sub-data acquisition unit, so as to determine a new correct receiving channel corresponding to the sending channel;
and a locking unit 34 for determining the correct reception channel as a locking channel of the transmission channel when the corresponding correct reception channel of the transmission channel is the same channel in consecutive X periods.
For a detailed description of the channel locking system provided in the present application, please refer to the embodiment of the channel locking method, and the detailed description is omitted herein.
The present application also provides a computer storage medium having a computer program stored thereon, which when executed by a processor implements the steps of the channel locking method as described above.
For a detailed description of the computer storage medium provided in the present application, please refer to the embodiment of the channel locking method, which is not described herein.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of channel locking comprising:
when any receiving channel in the receiving device receives data sent by the sending device through the sending channel, carrying out bit slipping splitting on the data to obtain a plurality of sub-data with the same number as the number of bits of the data and M bits, wherein M is a positive integer not greater than the number of bits of the data;
among all receiving channels of the receiving device, the receiving channel with the same identification code as one of all the sub-data is used as the correct receiving channel corresponding to the transmitting channel;
returning to the step of performing bit-slip splitting on the data when any one of the receiving channels acquires the data transmitted by the transmitting device through the transmitting channel next time, so as to determine a new correct receiving channel corresponding to the transmitting channel;
and when the corresponding correct receiving channels of the sending channels in the continuous X periods are the same channel, determining the correct receiving channels as locking channels of the sending channels, wherein X is an integer not less than 2.
2. The channel locking method of claim 1, further comprising, prior to bit-shifting splitting the data:
merging the data received by the receiving equipment this time into the data received by the receiving equipment last time to obtain merged data with the bit number which is 2 times that of the data;
performing bit-slip splitting on the data, including:
and carrying out bit shifting splitting on the combined data to obtain a plurality of sub-data with the same number as the number of bits of the data and M bits.
3. The channel locking method of claim 2, wherein performing bit-slip splitting on the merged data comprises:
and respectively acquiring the ith bit to the (i+M-1) th bit of the combined data as the ith sub data, wherein i is any integer not greater than the bit number of the data.
4. The channel locking method according to claim 2, further comprising, after the reception channel having the same identification code of the reception channel as one of all the sub data is taken as the correct reception channel corresponding to the transmission channel:
establishing received data of the correct receiving channel, wherein the bit number of the received data is equal to the bit number of the data;
taking the j-th bit data of the sub data consistent with the identification code of the correct receiving channel as the j-th bit data of the receiving data, wherein j is any integer not more than M;
acquiring 1 st to kth bit data positioned after the last bit data of the sub data in the merged data as M+1 th to last bit data of the received data respectively, wherein k is any integer between M+2 and the total bit number of the data;
after determining the correct receiving channel as the locking channel of the transmitting channel, further comprising:
and sending the received data to the locking channel so that the receiving equipment receives the received data through the locking channel.
5. The channel locking method of claim 4, further comprising:
s21: sorting the identification codes of the receiving channels according to a preset sequence;
s22: taking a first identification code as a comparison code;
s23: beginning to record the detection duration;
s24: judging whether the received data are generated in a preset time length; if yes, triggering S25; if not, triggering S26;
s25: resetting the detection duration, and keeping the comparison code unchanged;
s26: resetting the detection duration, taking the next identification code as the new comparison code, and returning to S23; when the identification code is the last identification code, the first identification code is used as the new comparison code;
among all receiving channels of the receiving device, the receiving channel with the same identification code as one of all the sub-data is used as the correct receiving channel corresponding to the transmitting channel, and the method comprises the following steps:
judging whether the comparison code is identical with one sub-data in all the sub-data;
if yes, entering the step of establishing the received data of the correct receiving channel.
6. The channel locking method according to claim 1, wherein the reception channel, in which the identification code of the reception channel is identical to one of all the sub data, is used as the correct reception channel corresponding to the transmission channel, comprising:
comparing a designated N-bit identification code in M-bit identification codes of the receiving channels with each sub-data for any receiving channel, wherein M is an integer not smaller than N;
and taking a receiving channel with the appointed N-bit identification code in the M-bit identification code completely consistent with one sub-data in all the sub-data as the correct receiving channel.
7. The channel locking method according to any one of claims 1 to 6, characterized by further comprising, after determining the correct reception channel as a locking channel of the transmission channel:
when the correct receiving channel corresponding to the transmitting channel is detected not to be the locking channel, unlocking the locking channel and the transmitting channel, and returning to the step of carrying out bit slipping splitting on the data when any receiving channel in the receiving device acquires the data transmitted by the transmitting device through the transmitting channel next time.
8. A channel locking device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the channel locking method according to any of claims 1 to 7 when executing said computer program.
9. A channel locking system, comprising:
a sub-data obtaining unit, configured to, when any one of receiving channels of the receiving device receives data sent by a sending device through a sending channel, perform bit slipping splitting on the data to obtain a plurality of sub-data having the same number as the number of bits of the data and M bits, where M is a positive integer not greater than the number of bits of the data;
a comparing unit, configured to use, among all receiving channels of the receiving device, the receiving channel having the same identification code as one of all the sub-data as the correct receiving channel corresponding to the sending channel;
a circulation unit, configured to, when any one of the receiving devices acquires data sent by the sending device through a sending channel next time, re-trigger the sub-data acquisition unit, so as to determine a new correct receiving channel corresponding to the sending channel;
and the locking unit is used for determining the correct receiving channel as the locking channel of the sending channel when the corresponding correct receiving channel of the sending channel in the continuous X periods is the same channel.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the channel locking method according to any of claims 1 to 7.
CN202311546585.2A 2023-11-20 2023-11-20 Channel locking method, device and system and computer storage medium Active CN117254887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311546585.2A CN117254887B (en) 2023-11-20 2023-11-20 Channel locking method, device and system and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311546585.2A CN117254887B (en) 2023-11-20 2023-11-20 Channel locking method, device and system and computer storage medium

Publications (2)

Publication Number Publication Date
CN117254887A true CN117254887A (en) 2023-12-19
CN117254887B CN117254887B (en) 2024-04-09

Family

ID=89131803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311546585.2A Active CN117254887B (en) 2023-11-20 2023-11-20 Channel locking method, device and system and computer storage medium

Country Status (1)

Country Link
CN (1) CN117254887B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714022A (en) * 2024-02-05 2024-03-15 苏州联讯仪器股份有限公司 Multichannel bit offset calculation method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109152061A (en) * 2018-09-28 2019-01-04 彩讯科技股份有限公司 Channel agility method, apparatus, server and storage medium
CN114422079A (en) * 2021-12-15 2022-04-29 广州市玄武无线科技股份有限公司 Data transmission method and device, computer equipment and storage medium
CN117082054A (en) * 2023-08-29 2023-11-17 中国银行股份有限公司 Data transmission method, device, system and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109152061A (en) * 2018-09-28 2019-01-04 彩讯科技股份有限公司 Channel agility method, apparatus, server and storage medium
CN114422079A (en) * 2021-12-15 2022-04-29 广州市玄武无线科技股份有限公司 Data transmission method and device, computer equipment and storage medium
CN117082054A (en) * 2023-08-29 2023-11-17 中国银行股份有限公司 Data transmission method, device, system and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714022A (en) * 2024-02-05 2024-03-15 苏州联讯仪器股份有限公司 Multichannel bit offset calculation method, device, equipment and medium

Also Published As

Publication number Publication date
CN117254887B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN117254887B (en) Channel locking method, device and system and computer storage medium
US7554966B2 (en) Method for combining multiple frames of data into a single medium access
US20140169186A1 (en) Adaptive channel reuse mechanism in communication networks
CA2010144C (en) Network clock synchronisation
CN105897330A (en) Signal synchronization method used for UWB high-precision positioning system
EP2775648B1 (en) Data sender, data receiver and frame synchronization method
CN112532371A (en) Parallel frame synchronization method, sending end, receiving end and low-earth-orbit satellite communication system
JP2002521917A (en) High-speed serial data communication system
US5220582A (en) Optical bus transmission method and transmitting-side encoder and receiving-side decoder therefor
JP2008085970A (en) Optical receiver, optical transmitter, optical communication system, and block synchronization method
US10797852B2 (en) Frame synchronization
US4438520A (en) System for regenerating a data word on a communications ring
JP5528257B2 (en) System and method for detecting multiple timing masters in a network
US5274673A (en) Optical bus transmission method and transmitting-side encoder and receiving-side decoder therefor
US20230224110A1 (en) Data transmission method and apparatus, transmitter, receiver, and storage medium
EP0384795A1 (en) Method and device for transmitting information between stations of a communication network, especially for a motor vehicle
JP3178612B2 (en) Phase synchronous clock extraction circuit
US11979193B2 (en) Communication method and device in optical camera communication system
CN112073151B (en) Telemetry PCM decoding and frame synchronization method based on FPGA
CN117714022A (en) Multichannel bit offset calculation method, device, equipment and medium
UA153803U (en) METHOD OF CYCLIC SYNCHRONIZATION
JPH0425743B2 (en)
JPH0320181B2 (en)
SU1300484A1 (en) System for collecting data
JP2023513878A (en) METHOD FOR SYMBOL TIME RECOVERY BY A RECEIVING DEVICE

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