CN113992474A - Code division multiple access coding method and system based on bus - Google Patents

Code division multiple access coding method and system based on bus Download PDF

Info

Publication number
CN113992474A
CN113992474A CN202111633331.5A CN202111633331A CN113992474A CN 113992474 A CN113992474 A CN 113992474A CN 202111633331 A CN202111633331 A CN 202111633331A CN 113992474 A CN113992474 A CN 113992474A
Authority
CN
China
Prior art keywords
data
sequence
signal
signal sequence
bus
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
CN202111633331.5A
Other languages
Chinese (zh)
Other versions
CN113992474B (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 Wanweiyingchuang Technology Co ltd
Original Assignee
Beijing Wanweiyingchuang 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 Wanweiyingchuang Technology Co ltd filed Critical Beijing Wanweiyingchuang Technology Co ltd
Priority to CN202111633331.5A priority Critical patent/CN113992474B/en
Publication of CN113992474A publication Critical patent/CN113992474A/en
Application granted granted Critical
Publication of CN113992474B publication Critical patent/CN113992474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J13/00Code division multiplex systems
    • H04J13/0003Code application, i.e. aspects relating to how codes are applied to form multiplexed channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40195Flexible bus arrangements involving redundancy by using a plurality of nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Dc Digital Transmission (AREA)

Abstract

The embodiment of the invention discloses a code division multiple access coding method and a code division multiple access coding system based on a bus, which comprise the following steps: acquiring a signal sequence and initial sending data of an equipment object in a system, wherein the equipment object has a unique signal sequence; carrying out bitwise coding on the initial sending data by using the signal sequence and the initial sending data to obtain coded data; performing signal superposition on all the coded data on the bus to obtain superposed data; storing the superposed data; and acquiring the superposed data, and decoding the superposed data through the signal sequence to obtain the restored initial sending data. The invention realizes the simultaneous sending and receiving of multi-channel data, simplifies the wiring, improves the real-time property and the confidentiality of transmission, can support various physical carriers and has strong adaptability.

Description

Code division multiple access coding method and system based on bus
Technical Field
The invention relates to the technical field of industrial control, in particular to a code division multiple access coding method and a code division multiple access coding system based on a bus.
Background
In the field of industrial control and communication of instruments and meters, a situation that one controller is connected with a plurality of terminals is often encountered, the terminals are various sensors generally, data generation is random, and the requirements of low power consumption are high. For simplicity of wiring, the communication line supply may even be multiplexed. The following four types of methods are adopted in the prior art:
(1) and (6) bus polling. The terminals are interrogated one by the controller. The problem that the polling cycle is long when the number of the connected terminals is large is solved, the real-time performance of the system is affected, the terminals need to monitor bus communication in real time so as to reply in time, and the low-power-consumption design is not facilitated.
(2) Time division multiplexing. The controller appoints time slices with the terminals, and each time slice is occupied by one terminal. Therefore, the time synchronization between the controller and the terminals is required to be higher, extra cost is increased, and when the number of the terminals is larger, the actual effective bandwidth and the real-time performance of the system are also influenced.
(3) And (4) carrying out star networking. All terminals are connected to the controller through dedicated lines or through gateway devices. The method has the problems of complex circuit, more wiring and high cost, has higher requirement on the number of interfaces of the controller, and increases the cost of the controller.
(4) And (4) cascading. And each stage forwards the data sent from the corresponding lower stage to the upper stage and forwards the data sent from the upper stage to the lower stage by adopting a stage-by-stage forwarding mode. When a certain level of equipment in the middle fails, all lower-level equipment cannot communicate, the stability of the system is influenced, time delay caused by gradual forwarding is obvious, and the real-time performance of the system is influenced.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and system for code division multiple access coding based on a bus.
An embodiment of the present invention provides a code division multiple access coding method based on a bus, including:
acquiring a signal sequence and initial sending data of an equipment object in a system, wherein the equipment object has a unique signal sequence;
carrying out bitwise coding on the initial sending data by utilizing the signal sequence and the initial sending data to obtain coded data;
performing signal superposition on all the coded data on the bus to obtain superposed data;
storing the superposition data;
and acquiring the superposed data, and decoding the superposed data through the signal sequence to obtain the restored initial sending data.
Exemplarily, the equipment objects comprise controllers and terminals, each controller and terminal has a corresponding signal sequence, the signal sequence comprises a dominant signal and a recessive signal, and the signal sequences of all the equipment objects have the same sequence bit number.
Exemplarily, the signal sequence satisfies a first signal sequence condition, a second signal sequence condition and a third signal sequence condition, and the first signal sequence condition is:
Figure 990594DEST_PATH_IMAGE001
wherein, theA i AndA j for the purpose of the signal sequence in question,iandjrefers to each device object.
Exemplarily, the second signal sequence condition requires that any two of the signal sequences are different, and the third signal sequence requires that the sequence number of all the signal sequences is not less than the number of terminals in the system.
Exemplarily, the encoding data is composed of the signal sequence and an implicit signal, and performing bit-by-bit encoding on the initial transmission data by using the signal sequence and the initial transmission data to obtain the encoding data includes:
extracting numerical values of all sequence bits of the initial sending data in sequence;
judging whether the numerical value is a first specific value or not;
if the value is a first specific value, filling the sequence bit corresponding to the value into the signal sequence;
if the number of the sequence bits is not the first specific value, the sequence bits corresponding to the value are filled with the recessive signal, and the number of the filled recessive signal is equal to the number of the sequence bits.
Exemplarily, the signal superposition of all the encoded data on the bus to obtain superimposed data includes:
and carrying out first logic operation on the coded data of the finished coding equipment object bit by bit to obtain superposed data.
Exemplarily, the obtaining the superposition data and decoding the superposition data through the signal sequence to obtain the restored initial transmission data includes:
acquiring the superposed data on the bus;
averagely segmenting the superposed data to obtain a plurality of segments of bytes, wherein the length of each segment of bytes is equal to the sequence bit number of the signal sequence;
performing second logic operation on each section of byte data and the superposed data to decode to obtain the initial sending data;
and adding a device object serial number at the head of the sequence of the initial sending data for a system to read.
Exemplarily, the decoding by performing the second logical operation on each segment of byte data and the superposition data to obtain the initial transmission data includes:
extracting each segment of byte data of the superimposed data in sequence;
and calculating the complement of the equipment object signal sequence, and performing the second logic operation on the complement and each section of byte of the superposed data one by one to obtain the initial sending data.
Exemplarily, the performing the second logical operation on the complement and each byte of the superposition data one by one to obtain the initial transmission data includes:
extracting the numerical values of each section of bytes and each sequence bit of the complement codes in sequence, and carrying out AND operation bit by bit;
judging whether the AND operation result is a second specific value or not;
if the second specific value is the second specific value, filling the second specific value into the sequence bit corresponding to the section of byte;
if not, fill the recessive signal into the sequence bit corresponding to the byte.
Yet another embodiment of the present invention provides a bus-based cdma encoding system, including:
the system comprises a transmission buffer, a data processing module and a data processing module, wherein the transmission buffer is used for acquiring a signal sequence and initial transmission data of an equipment object in the system, and the equipment object has a unique signal sequence;
the encoder is used for carrying out bitwise encoding on the initial sending data by utilizing the signal sequence and the initial sending data to obtain encoded data;
the bus driver is used for carrying out signal superposition on all the coded data on the bus to obtain superposed data;
the receiving buffer is used for storing the superposition data;
and the decoder is used for acquiring the superposed data and decoding the superposed data through the signal sequence to obtain the restored initial sending data.
The embodiment of the invention discloses a code division multiple access coding method and a code division multiple access coding system based on a bus, which comprise the following steps: acquiring a signal sequence and initial sending data of an equipment object in a system, wherein the equipment object has a unique signal sequence; carrying out bitwise coding on the initial sending data by using the signal sequence and the initial sending data to obtain coded data; performing signal superposition on all the coded data on the bus to obtain superposed data; storing the superposed data; and acquiring superposed data, and decoding the superposed data through a signal sequence to obtain restored initial sending data. The invention realizes the simultaneous sending and receiving of multi-channel data, simplifies the wiring, improves the real-time property and the confidentiality of transmission, can support various physical carriers and has strong adaptability.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 shows a system framework diagram of an embodiment of the invention;
FIG. 2 is a flow chart of a method for encoding code division multiple access based on a bus according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method of step S102 according to an embodiment of the present invention;
FIG. 4 is a flow chart of an encoding method according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method of step S105 according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method of step S303 according to an embodiment of the present invention;
FIG. 7 is a flow chart of a decoding method according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a bus-based CDMA encoding system according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a case of an encoding method according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating a case of a decoding method according to an embodiment of the present invention.
Description of the main element symbols:
101-a controller; 102-a terminal; 103-a bus; 201-a transmission buffer; 202-an encoder; 203-a decoder; 204-a receive buffer; 205-bus driver.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
A system framework of an embodiment of the present invention is shown in fig. 1. The controller 101 is connected to a plurality of terminals via the bus 103, and the plurality of terminals 102 can transmit data at the same time, and when the terminals transmit data, the controller can also transmit data at the same time, and both the controller and the terminals can receive data while transmitting data. The controller is distinguished from the terminal in that the controller will send the synchronization signal at a timing such that all communication signals are aligned for decoding. Here, the synchronization signal may be a specific signal string.
Example 1
Referring to fig. 2, a bus-based code division multiple access coding method includes:
step S101, acquiring a signal sequence and initial transmission data of a device object in the system, wherein the device object has a unique signal sequence. Here, the equipment objects include controllers and terminals, each of which has a corresponding signal sequence including a dominant signal and a recessive signal (generally, 0 represents the dominant signal and 1 represents the recessive signal), and the signal sequences of all the equipment objects have the same sequence bit number.
Specifically, 1 signal sequence is first allocated to each of the transceivers of the terminal and the controller, and all the signal sequences are equal in length. The signal sequence of the controller is recorded asA 0 The signal sequences of a plurality of terminals can be recorded asA 1 A 2 A 3 ……A n The above-mentioned all the device signal sequences on the bus need to satisfy three preset conditions at the same time, namely a first signal sequence condition, a second signal sequence condition and a third signal sequence condition, where the first signal sequence condition is:
Figure 901918DEST_PATH_IMAGE002
wherein the content of the first and second substances,A i andA j in order to be a sequence of signals,iandjrefers to each device object. The first signal sequence condition mainly means that the result of bitwise AND operation of the complement of any signal sequence and other signal sequences is not 0. In fact, if the result of this operation is 0, it indicates that this signal sequence can be completely covered by other combinations of signal sequences, which will not be able to resolve whether this sequence is superimposed on the bus.
Wherein the second signal sequence condition requires that any two signal sequences are different, i.e. for anyA i i=0,1,2,3…n. Satisfies the following conditions:
Figure 417213DEST_PATH_IMAGE003
wherein the third signal sequence requires that the number of sequence bits of all signal sequences is not less thanNumber of terminals in the system, for arbitraryA i i=0,1,2,3…n. Satisfies the following conditions:
Figure 742101DEST_PATH_IMAGE004
here, it is required that all signal sequences aremA dimension vector is set to the vector of the dimension,mis larger than the number of terminals in the systemn
Figure 583018DEST_PATH_IMAGE005
The set of m-dimensional vectors with elements in the set S is represented, 0 in the set S represents a dominant signal, 1 represents an implicit signal, and generally, only 0 and 1 elements are contained in a signal sequence.
And step S102, carrying out bitwise coding on the initial sending data by using the signal sequence and the initial sending data to obtain coded data.
Specifically, referring to fig. 3 and 4, the encoding flow of step S102 includes:
in step S201, the values of the sequence bits of the initial transmission data are sequentially extracted. Each time taking 1 bit of the data byte and fetching down in sequence. The obtaining sequence can be predetermined by the sender and the receiver, and the low order is determined to be before or the high order is determined to be before, it should be noted that the sequence here does not affect the sending and receiving, and the coding and decoding sequence is consistent.
In step S202, it is determined whether the value is a first specific value. If the value is the first specific value, step S2031 is executed to fill the sequence bits corresponding to the value with the signal sequence. Otherwise, step S2032 is executed to fill the sequence bits corresponding to the value with the recessive signal, where the number of bits filled with the recessive signal is equal to the number of sequence bits. The first specific value may be 0. If the value of the initial sending data is 0, replacing the sequence bit corresponding to the value with a signal sequence, and if the value is 1, replacing with m recessive signals, where m is the length of the signal sequence and the recessive signal is 1. And replacing the data to be transmitted bit by a signal sequence corresponding to the transceiver according to the same method. The replaced data is formed into m bytes (m is the length of the signal sequence) coded data, and the final coded data is actually formed by the signal sequence and the recessive signal.
And step S103, performing signal superposition on all the coded data on the bus to obtain superposed data.
Specifically, the encoded data of the completed encoding device object is subjected to a first logical operation bit by bit to obtain superimposed data, where the first logical operation mode is a bitwise and operation, and the operation method is as follows:
1 & 1 = 1
1 & 0 = 0
0 & 1 = 0
0 & 0 = 0
this manner of operation can be understood simply as covering the recessive signal with the dominant signal. And (2) carrying out and operation on the m bytes of coded data bit by bit in sequence, carrying out and operation on the result obtained after the operation of the first coded data and the second coded data bit by bit and the third coded data bit by bit, and carrying out and operation on corresponding elements of two same-dimension vectors bit by bit, wherein the result forms the other same-dimension vector. For example, the following steps are carried out: if 3 terminals transmit simultaneously, the data transmission is as follows: (0111011101), (1001111110), (1111001111), then the superposition is: (0001001100). It should be noted that the examples of the embodiments of the present invention are mainly intended to embody the implementation manner of the related method, and those skilled in the art can apply the embodiments without inventive changes in the actual situations. The uncoded initial transmission data is obtained by replacing the uncoded initial transmission data by a signal sequence or a sequence of all 1's bit by bit, and the coded sequence actually superposed on the bus is longer than the original datamAnd (4) doubling. It will be understood that if 1 represents a recessive signal, 0 represents a dominant signal. The encoded data is actually ANDed bit by bit with the signal on the bus. Noting that the actual signal on the bus is B,
Figure 184901DEST_PATH_IMAGE006
then, then
Figure 503887DEST_PATH_IMAGE007
iFor this purpose, the transceiver number of the signal sequence is transmitted.
The case schematic diagram of the encoding method of the embodiment of the invention is 01100110; here, 8 bits and one byte are only examples, and the actual situation considers that the start bit and the stop bit may be longer in length; signal sequence 0111100111, length 10 bits (m = 10);
and step S104, storing the superposition data.
And step S105, acquiring the superposed data, and decoding the superposed data through the signal sequence to obtain the restored initial sending data.
Referring to fig. 5, step S105 includes:
step S301, acquiring superimposed data on the bus;
step S302, averagely segmenting the superposed data to obtain a plurality of segments of bytes, wherein the length of each segment of bytes is equal to the sequence number of bits of the signal sequence;
step S303, performing a second logical operation on each segment of byte data and the superimposed data to perform decoding, thereby obtaining initial transmission data.
In step S304, a device object serial number is added to the sequence header of the initial transmission data for the system to read.
Specifically, step S303 mainly includes sequentially extracting each segment of byte data of the superimposed data, calculating a complement of the device object signal sequence, and performing a second logical operation on the complement and each segment of byte of the superimposed data one by one to obtain initial transmission data. Referring to fig. 6 and 7, the second logical operation method involved in decoding includes:
step S401, extracting the numerical values of each segment of bytes and each sequence bit of the complement codes in sequence, and performing AND operation bit by bit.
Step S402, judging whether the AND operation result is a second specific value; if the second specific value is the second specific value, step S4031 is executed to fill the second specific value into the sequence bits corresponding to the byte; if not, go to step S4032 to fill the recessive signal into the sequence bits corresponding to the byte.
Specifically, first, fetch on busmOne byte of data, will thismOne byte data is divided equally intokThe length of the section is equal to the length of the section,kis byte length, each segment lengthmBits, which can be recorded asB i
Figure 671563DEST_PATH_IMAGE008
. Taking the signal sequence of the transceiver of a terminal on a bus to be receivedA j, Will be provided withBAnd
Figure 683381DEST_PATH_IMAGE009
and performing bitwise AND operation, if the result is {0}, filling 0 into the decoded data, otherwise, filling 1 into the decoded data.iValue from 1-kAnd (6) traversing. Until the current decoding of this byte is completed. Then, add the byte header to the sequence number of the data source transceiver from the current byte(s) ((j) And sending the data to other systems or reading the data by other systems, repeating the steps until the decoding of all the signal source data is completed, and fetching the data again and repeating.
It is understood that the encoding process is to replace 0 in the initial transmission data with a signal sequence; the decoding process actually judges whether the signal sequence is substituted in the segment or not. If it is judged that the section is 0 after being replaced, 1 after not being replaced. When decoding, B and
Figure 506981DEST_PATH_IMAGE009
performing a bitwise AND operation, wherein AjFor the transceiver of a terminal possibly communicating with a receiving data terminal, i.e. signal sequence
Figure 629658DEST_PATH_IMAGE010
Here, there are two cases:
when it comes tojThe original data transmitted by the transceiver is 0, then
Figure 855103DEST_PATH_IMAGE011
In (1),iincludesjNamely:
Figure 834560DEST_PATH_IMAGE012
then, then
Figure 411035DEST_PATH_IMAGE013
When it comes tojThe original data transmitted by the transceiver is 1, then
Figure 337403DEST_PATH_IMAGE011
In (1),ido not containjNamely:
Figure 151775DEST_PATH_IMAGE014
then, then
Figure 567713DEST_PATH_IMAGE015
The first sequence of conditions, from the first sequence of conditions,
Figure 365904DEST_PATH_IMAGE016
from this it can be judgedjRaw data transmitted by the transceiver.
The embodiment of the invention discloses a code division multiple access coding method based on a bus, which comprises the following steps that firstly, a signal sequence and initial sending data of an equipment object in a system are obtained, and the initial sending data are coded bit by bit to obtain coded data; then, signal superposition is carried out on all the coded data on the bus to obtain superposed data; and finally, decoding the superposed data through the signal sequence to obtain the restored initial sending data. The embodiment of the invention can support various physical carriers, avoids the necessary power control for ensuring the signal amplitude by adopting logical operation on the signal section, effectively realizes the simultaneous sending and receiving of multi-channel data on one bus, simplifies wiring, improves the real-time property and confidentiality of transmission, simultaneously adopts different signal sequences to realize coding and decoding so as to distinguish different sources of signals, and has strong applicability.
Example 2
Referring to fig. 8, a bus-based code division multiple access coding system includes:
a transmission buffer 201, configured to obtain a signal sequence and initial transmission data of a device object in the system, where the device object has a unique signal sequence;
an encoder 202, configured to perform bit-by-bit encoding on initial transmission data to obtain encoded data by using the signal sequence and the initial transmission data; here, the encoding method may refer to the method shown in embodiment 1 or fig. 9.
Fig. 9 illustrates an example of an encoding method according to an embodiment of the present invention, and in fig. 9, an example is an 8-bit byte, and the possible lengths of the start bit and the stop bit are considered to be longer in practical cases; signal sequence 0111100111, length 10 bits (m = 10);
the bus driver 205 is configured to superimpose all the encoded data on the bus to obtain superimposed data;
a receiving buffer 204 for storing the superimposed data;
and the decoder 203 is configured to acquire the superposition data, and decode the superposition data through the signal sequence to obtain the restored initial transmission data. Here, the decoding method may refer to the method shown in embodiment 1 or fig. 10.
Specifically, the signals on the bus are divided into a dominant signal (marked as 0) and a recessive signal (marked as 1), and the dominant signal can cover the recessive signal. When the bus is idle, the bus is a recessive signal, when 2 transceivers simultaneously transmit, one of the transceivers transmits the recessive signal and the other one transmits the dominant signal, and what is actually detected on the bus is the dominant signal. The controller and the terminal have built-in transceivers, each of which includes a transmission buffer 201, an encoder 202, a bus driver 205, a reception buffer 204, and a decoder 203. Each transceiver has a unique signal sequence (e.g., 0101010010, etc.), and all signal sequences are of equal length. Where 1 represents an implicit signal and 0 represents an explicit signal. The signals are only recessive and dominant, and are marked as 1 and 0 for convenient calculation.
Data to be transmitted (i.e. initial transmission data) first enters the transmission buffer 201, and after the encoder 202 determines that transmission is started, the data in the transmission buffer is replaced by a signal sequence corresponding to the transceiver bit by bit. If the data bit is 0, the transmission is replaced with the signal sequence, and if the data bit is 1, the transmission is replaced with 1 which is equal to the signal sequence in length. The bus driver 205 superimposes a signal on the bus, with the dominant signal overriding the recessive signal. At the same time, the bus driver 205 listens to the bus signal and sends the received signal to the receive buffer 204 from the start time. The decoder 203 decodes the received signal through the signal sequence, restores the signal to original data, and sends the original data to other systems or is used for other systems to read.
It should be noted that, the system framework mentioned in the embodiment of the present invention may not have a controller, and a fixed delay time may be added after each string sent by all terminals. Before sending, monitoring the bus, and if the idle time exceeds 2 times of delay, starting sending; otherwise, waiting for the previous substring to finish sending, and sending after 1 time delay. The dominant and recessive signals can be high and low level signals, carrier signals or optical signals, and can be freely defined as long as the dominant signal can cover the recessive signal. The bus transceiver can be completely realized by hardware; in addition to the driver portion, software implementations are also possible. The transmission medium of the embodiments of the present invention may be various carriers such as a cable, an optical fiber, and the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A method for code division multiple access coding based on a bus, comprising:
acquiring a signal sequence and initial sending data of an equipment object in a system, wherein the equipment object has a unique signal sequence;
carrying out bitwise coding on the initial sending data by utilizing the signal sequence and the initial sending data to obtain coded data;
performing signal superposition on all the coded data on the bus to obtain superposed data;
storing the superposition data;
and acquiring the superposed data, and decoding the superposed data through the signal sequence to obtain the restored initial sending data.
2. The method of claim 1, wherein the device objects include controllers and terminals, each of the controllers and terminals has a corresponding signal sequence, the signal sequence includes a dominant signal and a recessive signal, and the signal sequences of all the device objects have the same sequence number of bits.
3. The method of claim 2, wherein the signal sequence satisfies a first signal sequence condition, a second signal sequence condition, and a third signal sequence condition, and the first signal sequence condition is:
Figure 168311DEST_PATH_IMAGE001
wherein, theA i AndA j for the purpose of the signal sequence in question,iandjrefers to each device object.
4. The method of claim 3, wherein the second signal sequence condition requires that any two of the signal sequences are different, and the third signal sequence requires that the number of sequence bits of all signal sequences is not less than the number of terminals in the system.
5. The method as claimed in claim 4, wherein the encoded data is composed of the signal sequence and implicit signals, and the bit-by-bit encoding of the initial transmission data by using the signal sequence and the initial transmission data to obtain the encoded data comprises:
extracting numerical values of all sequence bits of the initial sending data in sequence;
judging whether the numerical value is a first specific value or not;
if the value is a first specific value, filling the sequence bit corresponding to the value into the signal sequence;
if the number of the sequence bits is not the first specific value, the sequence bits corresponding to the value are filled with the recessive signal, and the number of the filled recessive signal is equal to the number of the sequence bits.
6. The method as claimed in claim 1, wherein the superimposing of all the encoded data on the bus to obtain the superimposed data comprises:
and carrying out first logic operation on the coded data of the finished coding equipment object bit by bit to obtain superposed data.
7. The method as claimed in claim 6, wherein the obtaining the superposition data and decoding the superposition data by the signal sequence to obtain the restored initial transmission data comprises:
acquiring the superposed data on the bus;
averagely segmenting the superposed data to obtain a plurality of segments of bytes, wherein the length of each segment of bytes is equal to the sequence bit number of the signal sequence;
performing second logic operation on each section of byte data and the superposed data to decode to obtain the initial sending data;
and adding a device object serial number at the head of the sequence of the initial sending data for a system to read.
8. The method as claimed in claim 7, wherein the decoding by the second logical operation of the byte data and the superposition data to obtain the initial transmission data comprises:
extracting each segment of byte data of the superimposed data in sequence;
and calculating the complement of the equipment object signal sequence, and performing the second logic operation on the complement and each section of byte of the superposed data one by one to obtain the initial sending data.
9. The method of claim 8, wherein said performing the second logic operation on the complementary code and each byte of the superposition data one by one to obtain the initial transmission data comprises:
extracting the numerical values of each section of bytes and each sequence bit of the complement codes in sequence, and carrying out AND operation bit by bit;
judging whether the AND operation result is a second specific value or not;
if the second specific value is the second specific value, filling the second specific value into the sequence bit corresponding to the section of byte;
if not, fill the recessive signal into the sequence bit corresponding to the byte.
10. A bus-based code division multiple access coding system, comprising:
the system comprises a transmission buffer, a data processing module and a data processing module, wherein the transmission buffer is used for acquiring a signal sequence and initial transmission data of an equipment object in the system, and the equipment object has a unique signal sequence;
the encoder is used for carrying out bitwise encoding on the initial sending data by utilizing the signal sequence and the initial sending data to obtain encoded data;
the bus driver is used for carrying out signal superposition on all the coded data on the bus to obtain superposed data;
the receiving buffer is used for storing the superposition data;
and the decoder is used for acquiring the superposed data and decoding the superposed data through the signal sequence to obtain the restored initial sending data.
CN202111633331.5A 2021-12-29 2021-12-29 Code division multiple access coding method based on bus Active CN113992474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111633331.5A CN113992474B (en) 2021-12-29 2021-12-29 Code division multiple access coding method based on bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111633331.5A CN113992474B (en) 2021-12-29 2021-12-29 Code division multiple access coding method based on bus

Publications (2)

Publication Number Publication Date
CN113992474A true CN113992474A (en) 2022-01-28
CN113992474B CN113992474B (en) 2022-04-01

Family

ID=79734841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111633331.5A Active CN113992474B (en) 2021-12-29 2021-12-29 Code division multiple access coding method based on bus

Country Status (1)

Country Link
CN (1) CN113992474B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754803A (en) * 1996-06-27 1998-05-19 Interdigital Technology Corporation Parallel packetized intermodule arbitrated high speed control and data bus
US20030214978A1 (en) * 2002-05-20 2003-11-20 Bois Karl Joseph Encoded multi-access bus system and method
US20050265430A1 (en) * 1995-06-30 2005-12-01 Interdigital Technology Corporation System for using rapid acquisition spreading codes for spread-spectrum communications
CN103885913A (en) * 2014-03-26 2014-06-25 中国科学院声学研究所 Bus encoding and decoding device and method thereof
CN104417063A (en) * 2013-08-21 2015-03-18 北大方正集团有限公司 Method and apparatus for reducing influences of sleeving alignment errors
CN105164987A (en) * 2013-09-02 2015-12-16 华为技术有限公司 Method for data transmission, method for data reception, and device
CN106233661A (en) * 2014-04-28 2016-12-14 罗伯特·博世有限公司 For the method generating secret or key in a network
CN108141359A (en) * 2015-10-15 2018-06-08 罗伯特·博世有限公司 For generating common secret method and apparatus
CN108989252A (en) * 2018-07-20 2018-12-11 北京邮电大学 A kind of multiple access method and system
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets
CN110730011A (en) * 2019-09-27 2020-01-24 暨南大学 Recursive grouping Markov superposition coding method based on partial superposition
CN110838958A (en) * 2018-08-16 2020-02-25 成都华迈通信技术有限公司 Composite type security access internet of things gateway and access method
CN111614506A (en) * 2019-02-22 2020-09-01 沃尔沃汽车公司 Monitoring CAN node
WO2021121305A1 (en) * 2019-12-19 2021-06-24 华为技术有限公司 Method for managing smart device, mobile terminal, and communication system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265430A1 (en) * 1995-06-30 2005-12-01 Interdigital Technology Corporation System for using rapid acquisition spreading codes for spread-spectrum communications
US5754803A (en) * 1996-06-27 1998-05-19 Interdigital Technology Corporation Parallel packetized intermodule arbitrated high speed control and data bus
US20030214978A1 (en) * 2002-05-20 2003-11-20 Bois Karl Joseph Encoded multi-access bus system and method
CN104417063A (en) * 2013-08-21 2015-03-18 北大方正集团有限公司 Method and apparatus for reducing influences of sleeving alignment errors
CN105164987A (en) * 2013-09-02 2015-12-16 华为技术有限公司 Method for data transmission, method for data reception, and device
CN103885913A (en) * 2014-03-26 2014-06-25 中国科学院声学研究所 Bus encoding and decoding device and method thereof
CN106233661A (en) * 2014-04-28 2016-12-14 罗伯特·博世有限公司 For the method generating secret or key in a network
CN108141359A (en) * 2015-10-15 2018-06-08 罗伯特·博世有限公司 For generating common secret method and apparatus
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets
CN108989252A (en) * 2018-07-20 2018-12-11 北京邮电大学 A kind of multiple access method and system
CN110838958A (en) * 2018-08-16 2020-02-25 成都华迈通信技术有限公司 Composite type security access internet of things gateway and access method
CN111614506A (en) * 2019-02-22 2020-09-01 沃尔沃汽车公司 Monitoring CAN node
CN110730011A (en) * 2019-09-27 2020-01-24 暨南大学 Recursive grouping Markov superposition coding method based on partial superposition
WO2021121305A1 (en) * 2019-12-19 2021-06-24 华为技术有限公司 Method for managing smart device, mobile terminal, and communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
留奇: """码分多址通信原理"", 《HTTPS://BLOG.CSDN.NET/LQIQIL/ARTICLE/DETAILS/105128878》 *
陈斌: ""CAN工业总线与基于WCDMA的无线传输技术在煤矿安全监控系统中的应用"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Also Published As

Publication number Publication date
CN113992474B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
RU2595962C2 (en) Method and device for adaptation of reliability of data transmission in serial bus system
KR101136706B1 (en) Methods and systems for processing overhead reduction for control channel packets
RU2620989C2 (en) Method and apparatus for increasing throughput capacity in data transmission in serial bus system
RU2597502C2 (en) Method and device for memory size adapted serial data transfer
US8825935B2 (en) Pattern detection for partial networking
CN1922828A (en) Transceiver with automatic configuration based on auto-negotiation
US10282332B2 (en) Subscriber station for a bus system and method for time-optimized data transmission in a bus system
CN101174915B (en) Ethernet transmission apparatus and Ethernet signal transmission method
US20140161442A1 (en) Data sending or receiving method, device, and apparatus used in optical fiber transmission
CN113992474B (en) Code division multiple access coding method based on bus
CN112202530B (en) Channel blind detection method and device, communication device and storage medium
US8175170B2 (en) Transmitter, receiver, method for transmitting, method for receiving, fixed length serial burst data transfer system, semiconductor device, and hybrid semiconductor device
CN112543080B (en) Method and device for detecting error rate
RU2638739C2 (en) Contact wire network for communication between fixed parts of system and at least one moving part of system
KR20230024974A (en) Data transmission methods, devices, transmitters, receivers and storage media
US8175171B2 (en) Transmitter, receiver, transmitting method, receiving method, variable-length serial burst data transfer system, semiconductor device and hybrid semiconductor device
CN115347984B (en) Encoding and decoding system, encoding and decoding method, device, electronic equipment and medium
CN103218476B (en) Method and circuit for transmitting data among modules in chip of integrated circuit by single-wire bus
KR20080094043A (en) Coding scheme for serial data communications
US20140204982A1 (en) Spreading sequence selection
CN108141357B (en) Circuit arrangement for generating a secret in a network
CN107801033B (en) Decoding method and decoding device applied to digital audio and video coding and decoding technical standard system
KR20230120568A (en) Transmission system and method for transition
CN116599630A (en) Novel error correction coding method based on independent unit and unit format
CN115589277A (en) Coding method and device of vehicle-mounted Ethernet and computer equipment

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