CN102014037B - Transmission method and device for realizing 9-bit data byte in store and forward device - Google Patents

Transmission method and device for realizing 9-bit data byte in store and forward device Download PDF

Info

Publication number
CN102014037B
CN102014037B CN2010105769905A CN201010576990A CN102014037B CN 102014037 B CN102014037 B CN 102014037B CN 2010105769905 A CN2010105769905 A CN 2010105769905A CN 201010576990 A CN201010576990 A CN 201010576990A CN 102014037 B CN102014037 B CN 102014037B
Authority
CN
China
Prior art keywords
data
bytes
store
byte
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.)
Expired - Fee Related
Application number
CN2010105769905A
Other languages
Chinese (zh)
Other versions
CN102014037A (en
Inventor
李安涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Pufang Science & Technology Co Ltd
Original Assignee
Shenzhen Pufang Science & 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 Shenzhen Pufang Science & Technology Co Ltd filed Critical Shenzhen Pufang Science & Technology Co Ltd
Priority to CN2010105769905A priority Critical patent/CN102014037B/en
Publication of CN102014037A publication Critical patent/CN102014037A/en
Application granted granted Critical
Publication of CN102014037B publication Critical patent/CN102014037B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention relates to a transmission method for realizing a 9-bit data byte in a store and forward device, comprising the following steps of: orderly storing each received or generated 9-bit data byte by two 8-bit bytes; taking the 8-bit bytes which are used for setting values and indicating a plurality of 9-bit data bytes as a data block, and converting into the 8-bit bytes the number of which is less than the 8-bit bytes for setting the values, or continuous data strings, and orderly sending the converted bytes or the data strings; orderly receiving the sent bytes or the data strings, converting the data of one received data block into the condition that the 9-bit data byte is expressed by two 8-bit bytes, and storing the 8-bit bytes. The invention further relates to a transmission device for realizing the 9-bit data bytes in the store and forward device. Implementation of the transmission method and the device for realizing the 9-bit data bytes in the store and forward device has the advantages of being capable of converting 9-bits asynchronous transmission to synchronous transmission in the conventional processing manner of the 8-bit data in each byte.

Description

Realize transmission method and the device of 9 bit data bytes in the store-and-forward unit
Technical field
The present invention relates to data storage and transmission field, more particularly, relate to transmission method and the device of realizing 9 bit data bytes in a kind of store-and-forward unit.
Background technology
In the storage forwarding communication equipment (such as wireless digital broadcasting station) that adopts the asynchronous serial interface to mix with synchronous transmission, adopt asynchronous serial transmission between transmission equipment and the terminal equipment, channel adopts synchronous transmission.Just easily storage and transmission of data structure for 8 of every bytes or 7.The every byte of asynchronous serial port is comprised of start bit, 8 or 7 bit data positions, check bit sum position of rest, and stored data bit during storage, channel are packed according to predetermined format during with synchronous transmission, and data are transmitted take 8 bit data as a byte.The form of every byte 7 bit data if modulator-demodulator bitwise transmits, can be the unit transmission according to 7 bit data in the synchronous transmission of channel, also can adopt the transmission of 8 bit data position units for making things convenient for CPU to process; If modulator transmits take byte as unit, be unit transmission according to 8 bit data just, wherein one meaningless.But, in three remote systems, data acquistion and control system, the situation to every byte 9 bit data commonly used.The application of the chip microcontroller serial ports multi-computer communication of ATMEL is exactly typical example, and it is by the 9th bit data digit separator address byte and data byte.In this application, the processing mode of traditional every byte 8 bit data just can't be tackled the problem that asynchronous transmission turns synchronous transmission.
Summary of the invention
The technical problem to be solved in the present invention is, processing mode for above-mentioned traditional every byte 8 bit data of prior art can't be tackled the defective that asynchronous transmission turns synchronous transmission, provides a kind of processing mode in above-mentioned traditional every byte 8 bit data to realize that asynchronous transmission turns transmission method and the device of realizing 9 bit data bytes in the store-and-forward unit of synchronous transmission.
The technical solution adopted for the present invention to solve the technical problems is: construct the transmission method of realizing 9 bit data bytes in a kind of store-and-forward unit, comprise the steps:
A) with each 9 bit data bytes of two octets successively storing received or generation;
B) will set octets numerical value, a plurality of 9 bit data bytes of expression as a data block, and described data block will be converted to the octet that is less than described setting numerical value number or continuous serial data, and send successively byte or serial data after the described conversion;
C) receive successively byte or the serial data of described transmission, the data in the described data block that receives are converted to two octets represent 9 bit data bytes and store described octet.
In a kind of store-and-forward unit of the present invention, realize in the transmission method of 9 bit data bytes described steps A) in further comprise:
A1) front 8 with described 9 bit data bytes are stored in first octet, are the first store byte of described 9 bit data bytes;
A2) the 9th with described 9 bit data bytes is stored in second octet, is the second store byte of described 9 bit data bytes.
In a kind of store-and-forward unit of the present invention, realize in the transmission method of 9 bit data bytes described step B) further comprise:
B1) the whole of the first store byte and the significant data bit of the second store byte are arranged as 9 bit data;
B2) 9 bit data after will arranging join end to end in order, obtain the serial data that a plurality of 9 bit data form;
B3) such as synchronous transmission take byte as unit, then when last octet less than 8 bit data, supply 8 with nonsignificant data;
B4) take the position as unit such as synchronous transmission, then send one by one B2 by data bit successively) serial data that obtains; Such as synchronous transmission take byte as unit, then by byte forwarding step B3 one by one) a plurality of octets of obtaining.
In a kind of store-and-forward unit of the present invention, realize in the transmission method of 9 bit data bytes described step C) further comprise:
C1) the receiving step B4) data of described transmission, and deposit successively buffer memory in;
C2) take the position as unit such as synchronous transmission, carry out B2) inverse transformation of process; Take byte as unit, carry out B3 such as synchronous transmission) inverse transformation of process; In buffer memory, each 9 bit data is stored in two octets;
C3) repeating step C2), until total data receive and be disposed.
In a kind of store-and-forward unit of the present invention, realize in the transmission method of 9 bit data bytes described step B) further comprise:
B1') with 16 store bytes as a data block, if 16 store bytes of less than are then supplied as 16 bytes take meaningless number; Be arranged in order odd number store byte wherein, thereby obtain 8 octets;
B2') a significant data bit in the even bytes of 16 store byte data blocks of taking-up is inserted by the sequencing of its place store byte in the corresponding data position of the 9th byte, thereby is obtained 1 octet;
B3') send above-mentioned B1') and the serial data that forms of 9 octets that B2') obtain;
B4') repeating step B1') ~ B3'), until process and sent whole data.
In a kind of store-and-forward unit of the present invention, realize in the transmission method of 9 bit data bytes described step C) further comprise:
C1') receive described 98 bit data bytes, and deposit buffer memory in;
C2') front 88 bit data bytes with described reception are stored as respectively respectively first store byte of 9 bit data bytes;
C3') data value on each in described the 9th octet of taking-up expands to a byte with it, deposits respectively the second store byte of 9 corresponding bit data bytes in by its data bit numbering;
C4') repeating step C1') ~ C3'), until receive and handle total data.
The invention still further relates to the transmitting device of realizing 9 bit data bytes in a kind of store-and-forward unit, comprising:
Memory module: each 9 bit data bytes that is used for receiving or producing will be stored successively with two octets;
Data block forms and sending module: the data transformation that is used for storage is the continuous data string, and sends successively the serial data after the described conversion;
Data block receives and memory module: be used for receiving successively the serial data of described transmission, the described serial data that receives carried out the inverse transformation opposite with transmission, become each 9 bit data and take 2 bytes store.
Realize that in a kind of store-and-forward unit of the present invention described memory module comprises in the transmitting device of 9 bit data bytes:
The first store byte forms the unit: front 8 that are used for described 9 bit data bytes are stored in first octet, form the first store byte of described 9 bit data bytes;
The second store byte forms the unit: be used for the 9th bit data of described 9 bit data bytes is expanded to a byte, be stored in second octet, form the second store byte of described 9 bit data bytes.
Realize that in a kind of store-and-forward unit of the present invention described data block forms and sending module further comprises in the transmitting device of 9 bit data bytes:
Converter unit: be used for the first store byte, the second store byte are transformed to 9 bit data strings, and with every group of new serial data of the end to end composition of 9 bit data;
Transmitting element: be used for sending successively the serial data after the described conversion.
Realize that in a kind of store-and-forward unit of the present invention described data block forms and sending module further comprises in the transmitting device of 9 bit data bytes:
Data block forms the unit: being used for per 16 store bytes of described data block is a data block, odd bytes forms 8 octets of data block, the valid data position of even bytes is inserted by the sequencing of its storage in each data bit of the 9th octet becomes 1 byte, so obtain the serial data that 9 octets form;
Transmitting element: be used for above-mentioned 98 bit data are sent successively.
Implement to realize in the store-and-forward unit of the present invention transmission method and the device of 9 bit data bytes, has following beneficial effect: because 9 data byte is converted to the storage of 8 bit data bytes and transmission, also according to the transmitting terminal of data data are stored at the receiving terminal of data simultaneously, so, also data can be returned to 9 bit bytes at data receiver.Therefore, can realize that in the processing mode of traditional every byte 8 bit data the asynchronous transmission of 9 bit data bytes turns synchronous transmission.
Description of drawings
Fig. 1 realizes the transmission method of 9 bit data bytes and installs method flow diagram among the first embodiment in the store-and-forward unit of the present invention;
Fig. 2 is the particular flow sheet that data block forms, sends and receive among described the first embodiment;
Fig. 3 is the structural representation that installs among described the first embodiment;
Fig. 4 realizes the transmission method of 9 bit data bytes and installs the particular flow sheet that data block forms, sends and receive among the second embodiment in the store-and-forward unit of the present invention;
Fig. 5 is the structural representation that installs among described the second embodiment.
Embodiment
Embodiments of the present invention is further illustrated below in conjunction with accompanying drawing.
As shown in Figure 1, in store-and-forward unit of the present invention, realize the transmission method of 9 bit data bytes and install among the first embodiment that the method for this 9 bit data bytes transmission comprises the steps:
Step S1 deposits front 8 of each 9 bit data bytes in first store byte, the 9th deposits the second store byte in, and successively storage: 9 bit data bytes that in this step, will obtain (comprise producing or receiving and obtain) are stored according to common octet, are convenient to next step processing.Particularly, be exactly that with 9 bit data bytes front 8 and expand to 8 bit data bytes as the second store byte with the 9th bit data as the first store byte, and store successively respectively above-mentioned the first store byte and the second store byte.It is worth mentioning that, in the present embodiment, in storage 9 bit data bytes, its 8 store bytes put in order be the first store byte of first 9 bit data bytes, the second store byte of first 9 bit data bytes, the first store byte of second 9 bit data bytes, the second store byte of second 9 bit data bytes, the 3rd 9 bit data bytes the first store byte ... Deng, by that analogy.
Step S2 specifies 8 store bytes of numerical value expression 9 bit data bytes to be set to a data block, and will be converted to the octet that is less than above-mentioned appointment numerical value or continuous serial data: in this step, a plurality of store bytes of above-mentioned expression 9 bit data bytes are divided into data block, to specify numerical value (for example having represented 16 octets of 89 bit data bytes) 8 store bytes (comprising the first store byte and the second store byte) to be divided into a data block, then, again 16 octets in the data block are converted to 9 octets or a continuous serial data, for the purpose of difference, with unconverted, the octet of 9 bit data bytes of per two expressions is called store byte, and the octet after will changing is called the transmission byte.Why 16 8 store bytes can be converted to 98 in this step and send byte, be that it is significant that a data bit is only arranged because in above-mentioned the second store byte, and other data bit all is insignificant.
Step S3 transmits resulting octet or serial data: in this step, the 9(that obtains in the transmission above-mentioned steps is 16 o'clock at appointment numerical value) individual octet or above-mentioned continuous serial data, these bytes are transmission bytes recited above.
Step S4 receives octet or the serial data that transmits: in this step, receive successively the transmission byte or the serial data that transmit in the above-mentioned steps.
Step S3 is converted to the octet of arranging according to the first store byte, the second store byte with the data of 9 bit data bytes of expression in the octet that receives or the serial data, and store above-mentioned octet: in this step, 98 transmission bytes that receive are carried out the inverse transformation of step S2, obtain 16 8 store bytes, these store bytes represent respectively 89 bit data bytes, 8 the first store bytes are wherein arranged, 8 the second store bytes; In when storage, be equally according to first 9 bit data bytes, second 9 bit data bytes ..., arranged sequentially, and in each 9 bit data bytes, the order according to the first store byte, the second store byte is arranged in order again, has 16 octets.It is worth mentioning that above-mentioned byte number obtains when specifying numerical value take 16, if above-mentioned appointment numerical value is not 16, the numeral of above-mentioned each byte may be inappropriate.
As shown in Figure 2, in first embodiment of the invention, the concrete steps that the data block in the above-mentioned steps forms, sends and receives can further be decomposed into again:
Step S21 arranges the first memory cell and the second memory cell in the data block: in this step, arrange in the above-mentioned data block each and represent the store byte of 9 bit data bytes, in the first embodiment, the order of this arrangements of steps is: first 9 bit data bytes, second 9 bit data bytes, the 3rd 9 bit data bytes ... (above-mentioned appointment numerical value is 16 until the 8th 9 bit data bytes are arranged sequentially, expression has 89 bit data bytes, totally 16 8 store bytes), and in each 9 bit data bytes, again according to the first store byte, the order of the second store byte is arranged in order.It is worth mentioning that in the first embodiment, above-mentioned appointment numerical value can change, concrete condition can be decided according to the situation of processor or buffer memory, for example, can be the even number octet that 16,8 or buffer memory allow.Why being the even number octet, is because each 9 bit data bytes is represented, stored by 2 octets.
Step S22 displacement, make that data join end to end successively in the described memory cell, obtain transmission byte or serial data 8, that fill up data: in this step, data in the store byte after the above-mentioned arrangement are shifted, this displacement is unidirectional, shift forward in the present embodiment, so that no matter be data in which 9 bit data bytes, after through displacement all with on data in 9 bit data bytes join end to end, such result is that the data in the whole data block become one and join end to end, and obtains 98 of filling up data and sends bytes.At step S21) after the array data, it is idle, insignificant in the second store byte in per 28 store byte of 9 bit data bytes of expression 7 data bit being arranged; In this step, exactly with (this 9 bit data is distributed in 2 octets equally or/and significant 9 bit data are shifted in 9 bit data bytes and next 9 bit data bytes between 9 data in 9 bit data bytes (being stored in respectively in two octets), its the second store byte has the data bit of 7 free time equally) so that data are filled up each store byte of 8 or are obtained an end to end continuous data string of order; In this step, be that step-by-step is carried out if send, then only need proceed to significant last position of serial data and get final product, send successively this serial data during transmission; If can only send by octet when sending, the situation that last octet is not filled after the above-mentioned displacement then may appear, when the situation of discontented 8 of last byte occurring, need to it be filled to full 8 bit data with insignificant data, obtain a complete octet.
Step S23 sends above-mentioned byte or serial data: in this step, the byte or the serial data that obtain in the transmission above-mentioned steps, these bytes are to be 9 (byte that the needs that obtain send is certainly less than above-mentioned appointment numerical value) in 16 the situation specifying numerical value, when data trailer, also may occur a data block be less than 16 store bytes situation, the byte that need to send this moment also may less than 9.In the situation of processor and modulator permission, can step-by-step send one by one, also can send one by one by byte.
Step S24 receives above-mentioned byte or serial data, and deposits successively buffer memory in: in this step, receive above-mentioned transmitting element, and according to the sequencing that receives, deposit successively above-mentioned data bit in buffer memory.
Step S25 taking-up front 8 bit data obtain the first store byte, take out the 9th is the second store byte: in this step, from above-mentioned buffer memory, take out successively 8 data bit, deposit successively it in octet, obtain representing the first store byte of 9 bit data bytes; Take out the 9th bit data position, expand to an octet, obtain representing the second store byte of this 9 bit data bytes.
9 of the data cached reaches of step S26: in this step, the data in the buffer memory are shifted forward 9, replenish data removed among the step S25.
Step S27 judges whether the processing of notebook data piece is finished; In this way, execution in step S28; Otherwise, jump to step S25; In the present embodiment, 16 8 store bytes are arranged in the data block, represent 89 bit data bytes, judge that a data block is exactly the number according to these store bytes; If the situation of discontented 16 8 store bytes occurred at the afterbody of transfer of data, it judges that data block processes the whether invalid data bit of appearance in byte of foundation of whether finishing.It is worth mentioning that set in the above-mentioned steps that 16 8 bit data are arranged in the data block is in order to narrate conveniently fully, in fact, the byte number in the above-mentioned data block can be set for example 4 or 16 according to the concrete condition of system.
Step S28 withdraws from: in this step, withdraw from the processing of notebook data piece, prepare to enter the processing of next data block.
Also relate to the device of realizing the transmission of 9 bit data bytes in a kind of store-and-forward unit among the first embodiment, as shown in Figure 3, the device of this 9 bit data bytes transmission comprises: memory module 1, data block form and sending module 2 and data block reception and memory module 3.Wherein, memory module 1 will be stored with two octets successively for each 9 bit data bytes that receives or produce; Per 16 octets that data block forms and sending module 2 is used for storing are converted to 9 octets, and send successively the octet after the described conversion as a data block; Data block reception and memory module 3 are used for receiving successively serial data or the byte of described transmission, the described serial data that receives are carried out the inverse transformation opposite with transmission, become each 9 bit data and take 2 bytes store.
In the first embodiment, memory module 1 also comprises: front 8 that are used for 9 bit data bytes are stored in first octet and form unit 11 with the first store byte of the first store byte of forming this 9 bit data bytes; Be used for the 9th the second store byte that is stored in the second store byte of second this 9 bit data bytes of this formation of octet of 9 bit data bytes formed unit 12.In the first embodiment, the 9th bit data is stored in the second store byte.And data block forms and sending module 2 further comprises:: be used for the first store byte, the second store byte are transformed to 9 bit data strings, and the converter unit 21 of the serial data that every group of end to end composition of 9 bit data is new; Be used for sending successively the serial data of above-mentioned converter unit 21 outputs or the transmitting element 23 of octet.
It is worth mentioning that, as function mutually each other the data block of the other side's inverse process form and sending module 2 and data block receive and memory module 3, the functional module that in data block formation and sending module 2, has, also have the module of these data being carried out reverse process in data block reception and the memory module 3, do not repeat them here.
Fig. 4, Fig. 5 illustrate respectively in data block formation in the present invention's the second enforcement, the particular flow sheet that sends and receive and the store-and-forward unit and realize the apparatus structure schematic diagram that 9 bit data bytes are transmitted.As shown in Figure 4, in second embodiment of the invention, the concrete steps that the data block in the above-mentioned steps forms, sends and receives can further be decomposed into again:
Step S41 will represent that 16 8 store bytes of 89 bit data bytes are as a data block, be arranged in order wherein 8 the first store bytes: in this step, data block is 16 octets fixing, and it can only be 16, these 16 octets are obtained by 89 bit data bytes, have namely comprised 8 the first store bytes and 8 the second store bytes; If existing above-mentioned 89 bit data bytes of data deficiencies that will transmit, the part that then lacks no matter be its first store byte or the second store byte, all use insignificant data bit to fill, so that still comprise 16 octets in a data block.Arrange in the above-mentioned data block each and represent the store byte of 9 bit data bytes, in a second embodiment, the order of this arrangements of steps is: the first store byte of the first store byte of first 9 bit data bytes, second 9 bit data bytes, the 3rd 9 bit data bytes the first store byte ..., until the 8th 9 bit data bytes the first store byte is arranged sequentially.It is the odd bytes in above-mentioned 16 octets arranged sequentially.
Step S42 inserts an octet successively with the data in the second store byte in each 9 bit data bytes, obtain the 9th byte: in this step, owing to only have on the data bit meaningful in the second store byte of each 9 bit data bytes of expression, and other data bit all is insignificant, so, data in the second memory cell of 89 bit data bytes are combined, just can obtain the 9th transmission byte of filling up.In merging process, data in the second store byte of first 9 bit data bytes be put into the 7th (item is 6) that data in the second store byte of the 8th (item is 7) of the 9th transmitting element, second 9 bit data bytes are put into the 9th transmitting element ..., the rest may be inferred.It is worth mentioning that (usually appearing at the afterbody of transfer of data) is take insignificant data stuffing as 9 bytes when 9 bytes of data deficiencies.
Step S43 sends above-mentioned 9 bytes: in this step, send successively 9 of obtaining in the above-mentioned steps and fill up bytes data, 8.
Step S44 receives above-mentioned 9 bytes, and deposits successively buffer memory in: in this step, receive above-mentioned 9 and send byte, and put into successively buffer memory by byte.
Step S45 stores front 8 octets respectively as the first store byte of 89 bit data bytes: in this step, 8 of fronts in 9 bytes that receive are assigned as respectively the 1st the first store byte to the 8th 9 bit data bytes in the notebook data piece.
Step S46 expands to the second store byte that a byte also deposits respectively 89 bit data bytes in each data bit of the 9th byte: in this step, according to the rule of putting into the 9th transmission byte among the step S42, each data bit in the 9th byte is expanded to respectively an octet, as the second store byte of 9 bit data bytes of correspondence, until the data in the 9th byte are all distributed; Store above-mentioned the first store byte and the second store byte, finish the processing of notebook data piece.
Also relate to the device of realizing the transmission of 9 bit data bytes in a kind of store-and-forward unit among the second embodiment, as shown in Figure 4, the device of this 9 bit data bytes transmission comprises: memory module 1, data block form and sending module 2 and data block reception and memory module 3.Wherein, memory module 1 will be stored with two octets successively for each 9 bit data bytes that receives or produce; Per 16 octets that data block forms and sending module 2 is used for storing are converted to 9 octets, and send successively the octet after the described conversion as a data block; Data block receives and memory module 3 is used for receiving successively the octet of described transmission, and 9 octets of a described data block that receives are converted to 16 octets and storage.
In a second embodiment, memory module 1 also comprises: front 8 that are used for 9 bit data bytes are stored in first octet and form unit 11 with the first store byte that forms this 9 bit data bytes; Be used for the 9th the second store byte that is stored in second this 9 bit data bytes of this formation of octet of 9 bit data bytes formed unit 12.In a second embodiment, the 9th bit data expands to an octet and is stored in the second store byte.And data block forms and sending module 2 further comprises: being used for per 16 store bytes of described data block is a data block, odd bytes forms 8 octets of data block, the valid data position of even bytes is inserted by the sequencing of its storage in each data bit of the 9th octet becomes 1 byte, and the data block that obtains the serial data that 9 octets form forms unit 24; For the transmitting element 23 that above-mentioned 98 bit data are sent successively.
In a word, by the description of above-mentioned two embodiment, when adopting special chip to realize modulation and demodulation, often running into unit of transfer is the situation of byte, and transmission must be that 8 bit data are as unit of transfer take byte.Can realize efficient transmission by two kinds of methods.To be transmit leg reconfigure 9 bit data streams by displacement a kind of method is the data flow of 8 bit data units, namely the 1st byte of storage becomes the 1st byte of synchronous transmission, the 2nd byte conversion of storage is 1 wherein 7 the 2nd byte of form transmitting with the 3rd byte of storage, the 4th byte conversion of 1 of the residue of the 3rd byte of storage, storage is 1, wherein 6 the 3rd bytes that form transmission of the 5th byte of storage, the like, 16 bytes of storage are transformed to 9 bytes of transmission.The recipient carries out inverse transformation, is stored as two bytes after being reduced to 9 bit data.The advantage of this way is that conversion is on one side transmitted on one side, and data delay is little, and afterbody does not have the transmission of unnecessary byte simultaneously, and channel transport efficiency is high, and is complicated when shortcoming is processing.Another kind method is will store first data take 16 bytes as a data block, transmits after it is transformed to the data block of 9 bytes.Wherein 8 bytes are the 1st, 3,5,7,9,11,13,15 bytes of storing, and another byte is a byte (each store byte is transformed to) that forms after the 2nd, 4,6,8,10,12,14, the 16 byte conversion of storage.The recipient carries out inverse transformation.The advantage of this way is that conversion process is simpler, and shortcoming is just can carry out inverse transformation after the recipient will receive 9 bytes, has increased data delay, and afterbody on average increases the hash of 4.5 bytes, and the front a kind of mode of channel service efficiency is low.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (3)

1. realize the transmission method of 9 bit data bytes in the store-and-forward unit, it is characterized in that, comprise the steps:
A) with each 9 bit data bytes of two octets successively storing received or generation;
B) will set octets numerical value, a plurality of 9 bit data bytes of expression as a data block, and described data block will be converted to the octet that is less than described setting numerical value number or continuous serial data, and send successively byte or serial data after the described conversion;
C) receive successively byte or the serial data of described transmission, the data in the described data block that receives are converted to two octets represent 9 bit data bytes and store described octet;
Described steps A) further comprise in:
A1) front 8 with described 9 bit data bytes are stored in first octet, are the first store byte of described 9 bit data bytes;
A2) the 9th with described 9 bit data bytes is stored in second octet, is the second store byte of described 9 bit data bytes; It is idle in described the second store byte 7 data bit being arranged;
Described step B) further comprise:
B1') with 16 store bytes as a data block, if 16 store bytes of less than are then supplied as 16 bytes take meaningless number; Be arranged in order odd number store byte wherein, thereby obtain 8 octets;
B2') a significant data bit in the even bytes of 16 store byte data blocks of taking-up is inserted by the sequencing of its place store byte in the corresponding data position of the 9th byte, thereby is obtained 1 octet;
B3') send above-mentioned B1') and the serial data that forms of 9 octets that B2') obtain;
B4') repeating step B1') ~ B3'), until process and sent whole data.
2. realize the transmission method of 9 bit data bytes in the store-and-forward unit according to claim 1, it is characterized in that described step C) further comprise:
C1') receive described 98 bit data bytes, and deposit buffer memory in;
C2') front 88 bit data bytes with described reception are stored as respectively respectively first store byte of 9 bit data bytes;
C3') data value on each in described the 9th octet of taking-up expands to a byte with it, deposits respectively the second store byte of 9 corresponding bit data bytes in by its data bit numbering;
C4') repeating step C1') ~ C3'), until receive and handle total data.
3. realize the device that 9 bit data bytes are transmitted in a store-and-forward unit, it is characterized in that, comprising:
Memory module: each 9 bit data bytes that is used for receiving or producing will be stored successively with two octets;
Data block forms and sending module: the data transformation that is used for storage is the continuous data string, and sends successively the serial data after the described conversion;
Data block receives and memory module: be used for receiving successively the serial data of described transmission, the described serial data that receives carried out the inverse transformation opposite with transmission, become each 9 bit data and take 2 bytes store;
Described memory module comprises:
The first store byte forms the unit: front 8 that are used for described 9 bit data bytes are stored in first octet, form the first store byte of described 9 bit data bytes;
The second store byte forms the unit: be used for the 9th bit data of described 9 bit data bytes is expanded to a byte, be stored in second octet, form the second store byte of described 9 bit data bytes; It is idle in described the second store byte 7 data bit being arranged;
Described data block forms and sending module further comprises:
Data block forms the unit: being used for per 16 store bytes of described data block is a data block, odd bytes forms 8 octets of data block, the valid data position of even bytes is inserted by the sequencing of its storage in each data bit of the 9th octet becomes 1 byte, obtains the serial data that 9 octets form;
Transmitting element: be used for above-mentioned 98 bit data are sent successively.
CN2010105769905A 2010-12-07 2010-12-07 Transmission method and device for realizing 9-bit data byte in store and forward device Expired - Fee Related CN102014037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105769905A CN102014037B (en) 2010-12-07 2010-12-07 Transmission method and device for realizing 9-bit data byte in store and forward device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105769905A CN102014037B (en) 2010-12-07 2010-12-07 Transmission method and device for realizing 9-bit data byte in store and forward device

Publications (2)

Publication Number Publication Date
CN102014037A CN102014037A (en) 2011-04-13
CN102014037B true CN102014037B (en) 2013-05-01

Family

ID=43844063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105769905A Expired - Fee Related CN102014037B (en) 2010-12-07 2010-12-07 Transmission method and device for realizing 9-bit data byte in store and forward device

Country Status (1)

Country Link
CN (1) CN102014037B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572530B (en) * 2013-10-09 2019-07-19 上海市计算技术研究所 A kind of slave computer, host computer and data transmission method
CN109165001B (en) 2018-08-24 2020-07-10 京东方科技集团股份有限公司 Encoding method, device and display device
CN111597239B (en) * 2020-04-10 2021-08-31 中科驭数(北京)科技有限公司 Data alignment method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR950004424B1 (en) * 1992-04-13 1995-04-28 대우통신주식회사 Time division multiplexing switching apparatus
CN1822191A (en) * 1999-07-05 2006-08-23 日本先锋公司 Block forming method and apparatus of digital bit stream
CN1842057A (en) * 2005-04-01 2006-10-04 华为技术有限公司 Signal disconnection and combination method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR950004424B1 (en) * 1992-04-13 1995-04-28 대우통신주식회사 Time division multiplexing switching apparatus
CN1822191A (en) * 1999-07-05 2006-08-23 日本先锋公司 Block forming method and apparatus of digital bit stream
CN1842057A (en) * 2005-04-01 2006-10-04 华为技术有限公司 Signal disconnection and combination method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周月霞等.DS1820传感器及其测温方法的改进.《石油仪器》.2002,第16卷(第01期),36-38. *

Also Published As

Publication number Publication date
CN102014037A (en) 2011-04-13

Similar Documents

Publication Publication Date Title
CN106411454B (en) Method, transmitter and receiver for data transmission
WO2021103928A1 (en) Data transmission method and apparatus, terminal device and storage medium
CN100477642C (en) Ethernet access device and access method thereof
WO2015035618A1 (en) Data transmission method and apparatus
CN102065231B (en) Multipath data fusion device, realization method thereof and multipath audio data processing system
CN102014037B (en) Transmission method and device for realizing 9-bit data byte in store and forward device
CN104967570B (en) A kind of intelligence Big Dipper router
CN109743136A (en) Transmitting message transfer approach, method of reseptance and processing unit
CN103124292B (en) Data dispatching method in a kind of P2P stream media system and device thereof
CN1728629A (en) Transmission set of multiplexing multiplepath interface in physical layer
CN104169903B (en) A kind of method and system realizing multi-channel synchronous parallel transmission
CN109462532B (en) Communication method of communication system
US7586950B1 (en) Remote management interface
CN101860738A (en) Ethernet-based transmitting and receiving method of uncompressed video
CN101072141B (en) Ethernet accessing converting device, multiplexing gateway device and accessing converting method
CN103326808A (en) Method, device and system for data transmission
CN103684651A (en) Constant-bit-rate interface data receiving method and device for optical transport network mixed services
CN109818704A (en) Data transmission method and equipment
CN102468915B (en) Serial port 802.11n wireless network card chip sending path realization method
CN101252415A (en) Complete package data transmission method and transmission system
JP3131863B2 (en) Data rate converter
CN109246021B (en) FPGA-based point-to-point data reliable transmission system and method
CN101841744A (en) Transmitting method and device of hundred gigabit Ethernet in optical transmission network
CN103460664A (en) MPDU structure and related methods for use in a wireless communications protocol
CN101640796B (en) Processing method of frame structure based on FPGA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130501

Termination date: 20171207