CN101330354B - Method for transmitting data through E1 - Google Patents
Method for transmitting data through E1 Download PDFInfo
- Publication number
- CN101330354B CN101330354B CN2008101170502A CN200810117050A CN101330354B CN 101330354 B CN101330354 B CN 101330354B CN 2008101170502 A CN2008101170502 A CN 2008101170502A CN 200810117050 A CN200810117050 A CN 200810117050A CN 101330354 B CN101330354 B CN 101330354B
- Authority
- CN
- China
- Prior art keywords
- data
- time slot
- sign
- state
- forward direction
- 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
Links
Images
Abstract
The invention discloses a method for sending data through E1, and belongs to the data communication field. The principle of the method is as follows: a CPU uses a parallel-serial converter to convert parallel data into serial data and sends the serial data to E1; two bits are used as a forward mark and a backward mark respectively to control the sending and the receiving of the data; a valid payload has 6 bits or 6 plus n*8 bits; the protocol overhead has 2 bits; a receiving terminal converts the serial data into parallel data through a serial-parallel converter and receives the data sent by a sender after adding control information; and the protocol is simple to control and can realize stable and reliable data communication by only occupying less resource of the CPU.
Description
Technical field
The invention belongs to communication technique field, particularly a kind of method by E1 transmission data.
Background technology
E1 is the transmission standard that China telecommunication transmission net primary group uses, and the E1 Application of Interface of China is comparatively extensive, thus utilize existing E1 channel to transmit data fully, not only convenient but also can save a large amount of transmission costs.In order to monitor and manage the equipment of far-end, often need to transmit some a spot of data, the transmission means that between the application scenario equipment that has, may not have other, adopt hdlc controller can increase the complexity and the cost of equipment again, so be necessary to find a kind of not only simple but also practical transmission method.The transmission rate of E1 is 2.048Mbit/S, the bandwidth of each Time Slot Occupancy 64Kbit, though CPU can export data to certain time slot by massage pattern, but because E1 itself is suitable for transmission (individual 8 bits of 8K each second continuously, i.e. time slot) data flow, can't confirm the starting and ending of data, so the direct data of transmission farming of E1.This method is invented under this background just.
Summary of the invention
The purpose of this invention is to provide a kind of method, comprise for realizing described purpose the technical solution adopted in the present invention by E1 transmission data:
A kind of method by E1 transmission data, step comprises:
1) transmitting apparatus at first carries out initialization before sending data, with the zero clearing of forward direction sign and preserve current state; Read the state of back, and preserve, enter state ready for data to sign;
2) data that will send export data on the E1 to by parallel-serial converter, then with the upset of forward direction sign, are about to write after the local state negate of preserving, and the expression data are sent;
3) start timer, read the back and compare to sign and the local state of preserving of negate heel, if equate, illustrate that then the recipient has received data, this sends successfully, upgrades local preserve back and finishes behind the sign state; If unequal, illustrate that then the recipient does not receive data, this sends failure, repeats above-mentioned action, if still unequal behind the timer expiry, then this sends failure, prepares to send after the execution initialization action next time.If repeatedly sending still failure then might be that recipient's fault or E1 link disconnect, this state is reported to webmaster handle.
A kind of method by E1 reception data, step comprises:
1) receiving equipment at first carries out initialization before receiving data, and the back to the sign zero clearing, is read the state of forward direction sign, and preserved, and enters the reception data ready;
2) read forward direction sign and compare, if equate then expression does not have data to need to receive with the local state of preserving; If unequal then explanation has new data to need to receive, upgrade by the serial-parallel converter reading of data and with the forward direction sign of this locality, be about to write after the local state negate of preserving, receiving course is finished.
This method uses certain or certain several time slots of E1 as transmission channel, utilizes wherein two bits as control, adds the transmission-receiving function that simple control protocol just can be finished data; This method control is simple, takies the less resource of CPU and can realize reliable and stable data communication.
Description of drawings
Fig. 1 receives and dispatches schematic diagram;
Fig. 2 transmission flow figure;
Fig. 3 receives flow chart.
Embodiment
The invention provides a kind of method by E1 transmission data, the present invention is further detailed explanation below in conjunction with accompanying drawing.
For convenience, suppose to have two equipment first and second, the equipment first sends data to equipment second by time slot N (N is any one time slot between 1 to 31, does not comprise time slot 16 when the E1 link is in CAS pattern following time).The bit7 of time slot N is the forward direction sign, is that the equipment first is carried out write operation by transmit leg, and the recipient is that equipment second is carried out read operation; The bit0 of time slot N be the back to sign, carry out read operation by transmit leg, equipment second is carried out write operation, the transmitting-receiving schematic diagram as shown in Figure 1.
The flow chart that the transmitting apparatus first sends data as shown in Figure 2, step comprises:
1. the equipment first is at first carried out initialization before sending data, with the zero clearing of forward direction sign and preserve current state; Read the state of back, and preserve, enter state ready for data to sign.
2. the data that will send export bit1~bit6 on the E1 to by parallel-serial converter, and with the upset of forward direction sign (writing after the state negate with this locality preservation), the expression data are sent then.
3. start 100ms timer (can suitably adjust) according to the disposal ability of CPU, read the back and compare,, illustrate that then the recipient has received data if equate to sign and the local state of preserving of negate heel, this sends successfully, upgrades local preserve back and finishes behind the sign state; If unequal, illustrate that then the recipient does not receive data, this sends failure, repeats above-mentioned action, if still unequal behind the timer expiry, then this sends failure, prepares to send after the execution initialization action next time.If repeatedly sending still failure then might be that recipient's fault or E1 link disconnect, this state can be reported to webmaster and handle.
The flow chart of receiving equipment second transmission data step as shown in Figure 3 comprises:
1. equipment second is at first carried out initialization before receiving data, and the back to the sign zero clearing, is read the state of forward direction sign, and preserved, and enters the reception data ready.
2. read the forward direction sign and compare, if equate then expression does not have data to need to receive with the local state of preserving; If unequal then explanation has new data to need to receive, after reading bit1~bit6 and the forward direction sign of this locality is upgraded (writing after the state negate that this locality is preserved) by serial-parallel converter, receiving course is finished.
" payload " is that (bit1~bit6) and " expense " are that flag bit uses same time slot to transmit to data bit generally speaking.Two bits are arranged in this case as " expense ", have only six as the bit of " payload ".
Consider the requirement of communication bandwidth, if " payload " can use other time slot when not enough, promptly any a plurality of time slots in the time slot 1 to 31 (under the CAS pattern except the time slot 16) transmit, and this moment " payload " is the individual bit of 6+n*8 (1≤n≤29).The bit0 of 1 time slot and bit7 position as a token of for example, whole (bit0~of the bit1~bit6 of 1 time slot and 2 time slots bit7) as data bit.
Above embodiment is for the usefulness of understanding the present invention; be not to be limitation of the present invention, the technical staff in relevant field is on the basis of the described technical scheme of claim; can also make multiple variation or distortion, variation that all are equal to or change provisional capital should be within protection scope of the present invention.
Claims (4)
1. method that sends data by E1, it is characterized in that transmitting apparatus sends data to receiving equipment by a time slot N between 1 to 31 time slot of E1 link as data channel, the bit7 of described time slot N is the forward direction sign, carry out write operation by transmit leg, the recipient carries out read operation; The bit0 of time slot N be the back to sign, carry out read operation by transmit leg, the recipient carries out write operation; Bit1~bit6 of described time slot N is a data bit; Its step comprises:
1) transmitting apparatus at first carries out initialization before sending data, with the zero clearing of forward direction sign and preserve current state; Read the state of back, and preserve, enter state ready for data to sign;
2) data that will send export data on the E1 to by parallel-serial converter, then with the upset of forward direction sign, are about to write after the local state negate of preserving, and the expression data are sent;
3) start timer, read the back and compare to sign and the local state of preserving of negate heel, if equate, illustrate that then the recipient has received data, this sends successfully, upgrades local preserve back and finishes behind the sign state; If unequal, illustrate that then the recipient does not receive data, this sends failure, repeats above-mentioned action, if still unequal behind the timer expiry, then this sends failure, prepares to send after the execution initialization action next time; If repeatedly sending still failure then might be that recipient's fault or E1 link disconnect, this state is reported to webmaster handle.
2. method according to claim 1 is characterized in that, described timer is the 100ms timer, and can suitably adjust according to the disposal ability of CPU.
3. method that receives data by E1, it is characterized in that transmitting apparatus sends data to receiving equipment by a time slot N between 1 to 31 time slot of E1 link as data channel, the bit7 of described time slot N is the forward direction sign, carry out write operation by transmit leg, the recipient carries out read operation; The bit0 of time slot N be the back to sign, carry out read operation by transmit leg, the recipient carries out write operation; Bit1~bit6 of described time slot N is a data bit; Its step comprises:
1) receiving equipment at first carries out initialization before receiving data, and the back to the sign zero clearing, is read the state of forward direction sign, and preserved, and enters the reception data ready;
2) read forward direction sign and compare, if equate then expression does not have data to need to receive with the local state of preserving; If unequal then explanation has new data to need to receive, upgrade by the serial-parallel converter reading of data and with the forward direction sign of this locality, be about to write after the local state negate of preserving, receiving course is finished.
4. according to claim 1 or 3 described methods, it is characterized in that transmitting apparatus also combines with other a plurality of time slots by described time slot N and sends data to receiving equipment as data channel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101170502A CN101330354B (en) | 2008-07-23 | 2008-07-23 | Method for transmitting data through E1 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101170502A CN101330354B (en) | 2008-07-23 | 2008-07-23 | Method for transmitting data through E1 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101330354A CN101330354A (en) | 2008-12-24 |
CN101330354B true CN101330354B (en) | 2011-05-18 |
Family
ID=40205974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101170502A Expired - Fee Related CN101330354B (en) | 2008-07-23 | 2008-07-23 | Method for transmitting data through E1 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101330354B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113204438B (en) * | 2021-03-24 | 2023-08-01 | 深圳震有科技股份有限公司 | Inter-core communication method and system of AMP (analog to digital) system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100321126B1 (en) * | 1998-04-29 | 2002-07-02 | 유태로 | Apparatus for converting synchronous clock information of t1/e1 signal |
CN1501640A (en) * | 2002-11-14 | 2004-06-02 | 北京润光泰力科技发展有限公司 | Method and system for transmitting Ethernet data using multiple E1 lines |
CN1538680A (en) * | 2003-04-16 | 2004-10-20 | 浙江工业大学 | Programmable telecommunication network interface |
-
2008
- 2008-07-23 CN CN2008101170502A patent/CN101330354B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100321126B1 (en) * | 1998-04-29 | 2002-07-02 | 유태로 | Apparatus for converting synchronous clock information of t1/e1 signal |
CN1501640A (en) * | 2002-11-14 | 2004-06-02 | 北京润光泰力科技发展有限公司 | Method and system for transmitting Ethernet data using multiple E1 lines |
CN1538680A (en) * | 2003-04-16 | 2004-10-20 | 浙江工业大学 | Programmable telecommunication network interface |
Also Published As
Publication number | Publication date |
---|---|
CN101330354A (en) | 2008-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2001059977A3 (en) | Intelligent data network | |
EP2237440A3 (en) | Method and apparatus for measuring channel state information | |
CN101369972B (en) | Service data transmission method, system and equipment | |
RU2003110976A (en) | POWERFUL EFFICIENCY PLANNING OF CHANNELS IN A WIRELESS NETWORK | |
CN102742227A (en) | Method for transmitting and receiving Ethernet data between digital unit and RF unit and apparatus thereof | |
CA2423621A1 (en) | Power efficient channel scheduling in a wireless network | |
CN1996993B (en) | A method and system for improving the utilization ratio of back board service bus | |
CN106781360A (en) | Data transmission method and repeater based on LORA radio communications | |
CN101847135B (en) | Series-connected communication system and communication method thereof | |
CN101330354B (en) | Method for transmitting data through E1 | |
CN201623716U (en) | Unidirectional transmission system with feedback function | |
CN108599806A (en) | Full duplex Internet of Things base station based on half-duplex baseband chip | |
CN104040979B (en) | Method, base station, and user equipment for activating or deactivating carrier | |
CN101754391B (en) | Transmission method and device for absolute grant channel information of enhanced dedicated channel | |
CN106899337A (en) | A kind of extensive MIMO relay system multi-user power distribution method using mixing ADC | |
CN101754273A (en) | A signal transmission method and device | |
CN201528430U (en) | Indoor coverage system of digital repeater | |
CN101170419B (en) | Realization method, system and interface device for Ethernet electric interface compatibility | |
CN103209041A (en) | Data collection method for GSM-R (Global System for Mobile for Railways) network interface | |
CN102832972A (en) | Power line communication system and method | |
CN203722617U (en) | General radio station data transmission module and adapter | |
CN101425970B (en) | Method, apparatus and system for implementing remote loop | |
CN214675488U (en) | Radio frequency coupling access double-carrier distributed base station system | |
CN218473413U (en) | High-sensitivity gateway supporting AM-FSK based on software radio | |
CN203590295U (en) | Multipath voice communication and data communication system |
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 |
Granted publication date: 20110518 Termination date: 20160723 |
|
CF01 | Termination of patent right due to non-payment of annual fee |