CN105185072B - Multi-channel switch amount transmission method and device - Google Patents

Multi-channel switch amount transmission method and device Download PDF

Info

Publication number
CN105185072B
CN105185072B CN201510370136.6A CN201510370136A CN105185072B CN 105185072 B CN105185072 B CN 105185072B CN 201510370136 A CN201510370136 A CN 201510370136A CN 105185072 B CN105185072 B CN 105185072B
Authority
CN
China
Prior art keywords
switching value
transmission
value information
time slot
data frame
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.)
Active
Application number
CN201510370136.6A
Other languages
Chinese (zh)
Other versions
CN105185072A (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201510370136.6A priority Critical patent/CN105185072B/en
Publication of CN105185072A publication Critical patent/CN105185072A/en
Application granted granted Critical
Publication of CN105185072B publication Critical patent/CN105185072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses multi-channel switch amount transmission method and devices, are related to data communication technology field.A kind of multi-channel switch amount transmission method disclosed by the invention, include: reception data frame, if the data frame that judgement receives includes switching value information, obtains transmission mode from the data frame, wherein, acquired transmission mode accounts for for separate time slots mode or altogether slotted mode;Switching value information is obtained according to acquired transmission mode and preset switching value information and the time slot/bit corresponding relationship for carrying it, the specific location where switching value information determines the transmission channel and corresponding record of switching value information.The invention also discloses the devices of the implementable above method, and another multi-channel switch amount transmission method and its device.Technical scheme, which can be realized, carries out reliable transmission to active switch amount signal collected or passive switch amount signal, and scene is widely used.

Description

Multi-channel switch amount transmission method and device
Technical field
The present invention relates to data communication technology fields, in particular to multi-channel switch amount transmission method and device.
Background technique
In modern industry, the effect of switching value is more and more important, it is usually used in the detection of industrial equipment, for industry Equipment provides control signal.With the continuous development of science and technology, the continuous improvement of the degree of automation, to switch in industrial application The requirement for measuring acquisition and the transmission of signal is also higher and higher.Switch value input interface generally includes two kinds of interface forms, one is Dry contact form, another kind are wet contact forms.Wherein stem grafting point interface refers to that a kind of passive switch, interface itself do not provide Power supply can be used to acquire active switch amount;Wet contact interface refers to a kind of active switch, and interface itself can provide power supply, 2 Polarized between a contact can be used to acquire passive switch amount.In the prior art, for the acquisition of on-off model, letter The interface form of number access device is fixed, that is, equipment interface can only be adapted to a form of switch value input interface form, If the use environment of the access device changes or corresponding switch value input interface mode changes, it usually needs The access device for replacing matched interfaces, is just able to achieve signal acquisition purpose, it can be seen that, access device is for opening in the prior art The versatility that input interface is measured in pass is in urgent need to be improved.
On the other hand, at present access layer equipment be all in most cases as the node device in data communication network, It needs collected data to be carried out in a manner of reliably and efficiently point-to-point or point-to-multipoint transmission.
In conclusion how to provide a kind of switch value input interface, active switch amount signal and passive switch amount can be compatible with The reliable acquisition of signal, and be able to achieve on-off model reliable transmission and be a problem to be solved by those skilled in the art.
Summary of the invention
The technical problem to be solved by the invention is to provide multi-channel switch amount transmission method and devices, to realize to institute The active switch amount signal of acquisition and the reliable transmission of passive switch amount signal.
In order to solve the above-mentioned technical problem, the invention discloses a kind of multi-channel switch amount transmission methods, this method comprises:
Data frame is received, if the data frame that judgement receives includes switching value information, obtains and passes from the data frame Defeated mode, wherein acquired transmission mode is separate time slots mode or accounts for slotted mode altogether;
It is corresponding with the time slot/bit for carrying it according to acquired transmission mode and preset switching value information Relation acquisition switching value information, the specific location where switching value information determine the transmission channel and correspondence of switching value information Record.
Optionally, in the above method, judge that the data frame received includes that the process of switching value information includes:
When a time slot of the data frame received includes scheduled multiframe alignment code, the data frame packet received is judged Switching value information is included, and the time slot is confirmed as first the first time slot of subframe of the data frame.
Optionally, in the above method, the scheduled multiframe alignment code is identified in fixed bit when designing for system Set fixed value in position.
Optionally, in the above method, the process that transmission mode is obtained from the data frame includes:
Received switching value is determined according to the transmission mode indication code that the multiframe alignment code includes in a slot The transmission mode of information.
Optionally, in the above method, the transmission mode indication code is identified in fixed bit position when designing for system In set fixed value, wherein the corresponding transmission mode indication code of separate time slots mode and account for the corresponding biography of slotted mode altogether Defeated mode indication code fixed value set in fixed bit position is different.
Optionally, it in the above method, when transmission mode is separate time slots mode, according to determining transmission mode, presets Switching value information and carry its time slot/bit corresponding relationship obtain switching value information process include:
From the 2nd, 3, setting is used for transmission in the bit of switching value information and obtains switching value letter in the identical time slots of 4 subframes Breath.
Optionally, in the above method, the 2nd, 3, the setting in the identical time slots of 4 subframes be used for transmission the ratio of switching value information Special position is the 2nd, 3, preceding 4 bits of each time slot of 4 subframes.
Optionally, it in the above method, when transmission mode is to account for slotted mode altogether, according to determining transmission mode, presets Switching value information and carry its time slot/bit corresponding relationship obtain switching value information process include:
Setting, which is used for transmission in the bit of switching value information, from first time slot of 2-8 subframe obtains switching value letter Breath.
The invention also discloses a kind of multi-channel switch amount transmission methods, this method comprises:
Multi-channel switch amount is used for when existing in network system according to the instruction judgement for starting transmitting switch amount information When the data frame of information transmission, according to the instruction of the transmission mode of data frame use and preset switching value information and carrying The data frame of switching value information including current channel is passed through time slot and deploys feeding by its time slot/bit corresponding relationship Transmission network;
When the data frame for the transmission of multi-channel switch amount information is not present in network system, in data frame to be sent In, insertion notebook data frame is for starting the instruction of transmitting switch amount information and the instruction of transmission mode, according to the transmission of insertion The transmission mode of the instruction of mode and preset switching value information and the time slot/bit corresponding relationship for carrying it, will wrap The data frame for including the switching value information of current channel is deployed by time slot is sent into transmission network;
Wherein, the transmission mode accounts for for separate time slots mode or altogether slotted mode.
Optionally, in the above method, the instruction judgement that the basis is used to start transmitting switch amount information exists for more The process of data frame of channel switch amount information transmission includes:
When a time slot in the data frame received includes the instruction for starting transmitting switch amount information, net is judged There is the data frame for the transmission of multi-channel switch amount information in network system, and the time slot is confirmed as the of the data frame One the first time slot of subframe.
Optionally, in the above method, for starting the instruction of transmitting switch amount information are as follows: in first subframe of data frame The predetermined multiframe alignment code of fixed bit position insertion in first time slot.
Optionally, in the above method, the transmission mode instruction are as follows: in first subframe of the data frame when system designs First time slot in determined by the transmission mode indication code that is inserted into fixed bit position, wherein separate time slots mode Corresponding transmission mode indication code and account for what the corresponding transmission mode indication code of slotted mode was inserted into fixed bit position altogether Fixed value is different.
Optionally, in the above method, according to the instruction of transmission mode and preset switching value information and carry its when The data frame of switching value information including current channel is passed through corresponding time slot allotment and is sent into biography by gap/bit corresponding relationship The process of defeated network includes:
When transmission mode is designated as separate time slots mode, it is a multi-frame as switching value information using 4 subframes and transmits Unit, the switching value information in the channel determined according to current channel in Design of Network System and the time slot/bit for carrying it The corresponding relationship of position, the sequence of the write instructions channel switch amount information in the fixed bit position in the 2nd, 3,4 subframe time slots Code, and it is sent to transmission network.
Optionally, in the above method, according to the instruction of transmission mode and preset switching value information and carry its when The data frame of switching value information including current channel is passed through corresponding time slot allotment and is sent into biography by gap/bit corresponding relationship The process of defeated network includes:
When transmission mode is designated as accounting for slotted mode altogether, it is a multi-frame as switching value information using 8 subframes and transmits Unit, the switching value information in the channel determined according to current channel in Design of Network System and the time slot/bit for carrying it The corresponding relationship of position, in the sequence code of the fixed bit position write instructions of the affiliated sub first time slot channel switch amount information, and It is sent to transmission network.
The invention also discloses a kind of multi-channel switch amount transmitting device, which includes:
Judging unit is received, data frame is received, and judges whether the data frame received is switching value information, and sentencing When the data frame that disconnecting receives is switching value information, transmission mode is obtained from the data frame, wherein acquired transmission mould Formula is separate time slots mode or accounts for slotted mode altogether;
Switching value information acquisition unit according to acquired transmission mode and preset switching value information and carries it Time slot/bit corresponding relationship obtain switching value information, the specific location where switching value information determines switching value The transmission channel and corresponding record of information.
Optionally, in above-mentioned apparatus, the reception judging unit judges that the data frame received refers to as switching value information:
When first time slot of first subframe of the data frame received includes scheduled multiframe alignment code, judgement is connect The data frame received is switching value information.
Optionally, in above-mentioned apparatus, the scheduled multiframe alignment code is identified in fixed bit when designing for system Set fixed value in position.
Optionally, in above-mentioned apparatus, the reception judging unit obtains transmission mode from the data frame and refers to:
It is connect according to the transmission mode indication code determination for including in first time slot of the first of the data frame subframe The transmission mode of the switching value information received.
Optionally, in above-mentioned apparatus, the transmission mode indication code is identified in fixed bit position when designing for system In set fixed value, wherein the corresponding transmission mode indication code of separate time slots mode, the corresponding biography of He Gongzhan slotted mode Defeated mode indication code, set fixed value is different in fixed bit position.
Optionally, in above-mentioned apparatus, when transmission mode is separate time slots mode, the switching value information acquisition unit, According to determining transmission mode, preset switching value information and the time slot/bit corresponding relationship for carrying it obtain switching value Information refers to:
From the 2nd, 3, setting is used for transmission in the bit of switching value information and obtains switching value letter in the identical time slots of 4 subframes Breath.
Optionally, in above-mentioned apparatus, the 2nd, 3, setting is used for transmission the bit of switching value information in the identical time slots of 4 subframes Position for the 2nd, 3, preceding 4 bits of each time slot of 4 subframes.
Optionally, in above-mentioned apparatus, when transmission mode is to account for slotted mode altogether, the switching value information acquisition unit, According to determining transmission mode, preset switching value information and the time slot/bit corresponding relationship for carrying it obtain switching value Information refers to:
Setting, which is used for transmission in the bit of switching value information, from first time slot of 2-8 subframe obtains switching value letter Breath.
The invention also discloses a kind of multi-channel switch amount transmitting device, which includes:
Indicate information insertion unit, there is no the data frames for the transmission of multi-channel switch amount information in network system When, in data note to be sent, insertion notebook data frame is used to start the instruction and transmission mode of transmitting switch amount information Instruction, wherein the transmission mode is separate time slots mode or accounts for slotted mode altogether;
Switching value information transmission unit, according to the transmission mode and preset of the instruction information insertion unit insertion Switching value information and the time slot/bit corresponding relationship for carrying it, by the data frame of the switching value information including current channel It is sent into transmission network by corresponding time slot allotment, and according to the instruction for starting transmitting switch amount information in network system When there is the data frame for the transmission of multi-channel switch amount information in judgement, the instruction of the transmission mode used according to the data frame with And preset switching value information and its time slot/bit corresponding relationship is carried, by the switching value information including current channel Data frame pass through time slot allotment be sent into transmission network.Optionally, in above-mentioned apparatus, the basis is for starting transmitting switch amount The instruction judgement of information exists to be referred to for the data frame of multi-channel switch amount information transmission:
When a time slot in the data frame received includes the instruction for starting transmitting switch amount information, net is judged There is the data frame for the transmission of multi-channel switch amount information in network system, and the time slot is confirmed as the of the data frame One the first time slot of subframe.
Optionally, in above-mentioned apparatus, for starting the instruction of transmitting switch amount information are as follows: in first subframe of data frame The predetermined multiframe alignment code of fixed bit position insertion in first time slot.
Optionally, in above-mentioned apparatus, the transmission mode instruction are as follows: in first subframe of the data frame when system designs First time slot in determined by the transmission mode indication code that is inserted into fixed bit position, wherein separate time slots mode Corresponding transmission mode indication code, the corresponding transmission mode indication code of He Gongzhan slotted mode, is inserted into fixed bit position Fixed value it is different.
Optionally, in above-mentioned apparatus, the switching value information transmission unit is according to the instruction of transmission mode and preset Switching value information and the time slot/bit corresponding relationship for carrying it, by the data frame of the switching value information including current channel Transmission network is sent by corresponding time slot allotment to refer to:
When transmission mode is designated as separate time slots mode, it is a multi-frame as switching value information using 4 subframes and transmits Unit, the switching value information in the channel determined according to current channel in Design of Network System and the time slot/bit for carrying it The corresponding relationship of position, the sequence of the write instructions channel switch amount information in the fixed bit position in the 2nd, 3,4 subframe time slots Code, and it is sent to transmission network.
Optionally, in above-mentioned apparatus, the switching value information transmission unit is according to the instruction of transmission mode and preset Switching value information and the time slot/bit corresponding relationship for carrying it, by the data frame of the switching value information including current channel Include: by the process that transmission network is sent into corresponding time slot allotment
When transmission mode is designated as accounting for slotted mode altogether, it is a multi-frame as switching value information using 8 subframes and transmits Unit, the switching value information in the channel determined according to current channel in Design of Network System and the time slot/bit for carrying it The corresponding relationship of position, in the sequence code of the fixed bit position write instructions of affiliated the first time slot of the subframe channel switch amount information, And it is sent to transmission network.
The multi-channel switch amount transmission method and device that technical scheme proposes can be realized to collected active On-off model or passive switch amount signal carry out reliable transmission;Scene is widely used, and is supported point-to-point and point-to-multipoint Switch acquisition and remote control application.
Detailed description of the invention
Fig. 1 is switch quantity acquisition circuit schematic diagram in the embodiment of the present invention;
Fig. 2 is separate time slots transmission mode schematic diagram in the embodiment of the present invention;
Fig. 3 (a) is the data frame structure schematic diagram that input terminal uses separate time slots transmission mode in the embodiment of the present invention;
Fig. 3 (b) is the data frame structure schematic diagram that output end uses separate time slots transmission mode in the embodiment of the present invention;
Fig. 4 is to account for slot transmission pattern diagram altogether in the embodiment of the present invention;
Fig. 5 (a) is that input terminal uses the data frame structure schematic diagram for accounting for slot transmission mode altogether in the embodiment of the present invention;·
Fig. 5 (b) is that output end uses the data frame structure schematic diagram for accounting for slot transmission mode altogether in the embodiment of the present invention;
Fig. 6 is receiving end operational flowchart in switching value transmission process in the embodiment of the present invention;
Fig. 7 is transmitting terminal operational flowchart in switching value transmission process in the embodiment of the present invention;
Fig. 8 is point-to-point control mode schematic diagram in the embodiment of the present invention;
Fig. 9 is midpoint of the embodiment of the present invention to multiparty control schematic diagram
Figure 10 (a) is a kind of structural schematic diagram of multi-channel switch amount transmitting device in the embodiment of the present invention;
Figure 10 (b) is the structural schematic diagram of another multi-channel switch amount transmitting device in the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to skill of the present invention Art scheme is described in further detail.It should be noted that in the absence of conflict, in embodiments herein and embodiment Feature can arbitrarily be combined with each other.
Currently, switching value is divided into active switch amount signal and passive switch amount signal, active switch amount signal is referred to "ON" and "off" state are the signals of charged, and the acquisition for this on-off model, switch value input interface is to be not required to Power supply is provided, is occurred usually in the form of dry contact input interface;Passive switch amount signal refers to "ON" and "Off" State is the signal without power supply, and the acquisition switch value input interface of this on-off model is needed to provide power supply, Occur usually in the form of wet contact input interface.It therefore can be by being connect to different switch acquisition modes using different Mouth contact input form, to realize the flexible conversion to active switch amount signal and passive switch amount signal acquisition.
Based on above-mentioned thought, the present embodiment provides a kind of switch acquisition device, compatible active switch amount signal and nothing The acquisition of source switch amount signal includes at least switching mode control circuit and switch quantity acquisition circuit, in which:
Switching mode control circuit receives external signal, and determines switching mode according to external signal;
Switch quantity acquisition circuit, when switching mode control unit determines that switching mode is wet contact switching mode, selection Wet contact switchs transmission channel and acquires on-off model;Determine that switching mode is dry contact switching molding in switching mode control unit When formula, dry contact switch transmission channel is selected to acquire on-off model.
Below by taking Fig. 1 as an example, illustrate the specific implementation of above-mentioned apparatus, in which: switching mode control circuit includes at least: after Electric appliance SW, NPN type triode Q1 and the first divider resistance R3 and the second divider resistance R4.Coil one end of relay SW and letter Number power supply VCC connection, the coil other end of relay SW is connect with the collector of triode Q1, and the contact first of relay SW Free end is connect with interface power VCC_PORT;The first divider resistance R3 being connected in series and the second divider resistance R4 setting is outside If between mode control signal MODE_CTL and signal ground, and the series connection point of the first divider resistance R3 and the second divider resistance R4 with The base stage of triode Q1 connects, the emitter of triode Q1 also be signally connected;
Switch quantity acquisition circuit includes at least: optocoupler U1, the first current-limiting resistance R1 and the second current-limiting resistance R2 and pull-up Resistance R5, first one end current-limiting resistance R1 are connect with first voltage acquisition input terminal PIN1, the other end and switching mode control electricity The second of relay SW free terminal contacts connection in road, second one end current-limiting resistance R2 and second voltage acquisition input terminal PIN2 connect It connects, the other end is connect with input side cathode (light-emitting diode tube cathode) side of optocoupler U1, the input side anode and switch of optocoupler U1 The public terminal contacts connection of relay SW in mode control circuit, the outlet side anode and acquisition output signal AIM_IN of optocoupler U1 Connection, while also being connect by pull-up resistor R5 with external power VDD, connect to the outlet side cathode and external power supply of optocoupler U1 It connects.
In order to be compatible with acquisition active switch amount or passive switch amount, can use has extremely above-mentioned switch acquisition device The connecting terminal of few 3 external pins, wherein 3 pins are respectively connected to first voltage acquisition input terminal PIN1, second voltage is adopted With collecting input terminal PIN2 and interface GND_PORT, when acquire active switch amount, using first voltage acquire input terminal PIN1, Second voltage acquires input terminal PIN2 as signal acquisition input terminal, and due to acquisition is active switch amount, needs the One voltage acquisition input terminal PIN1 is connected with the anode of external interface, and second voltage acquires the negative of input terminal PIN2 and external interface Extremely it is connected;And when acquiring passive switch amount, GND_PORT is as switching value with using second voltage acquisition input terminal PIN2, interface Signal acquisition input terminal, what it is due to acquisition is passive switch amount, so the pin of on-off model acquisition input terminal does not have to distinguish Polarity;Above two mode is to select for the signal acquisition in same channel existing for one, but if is existed in system more If a acquisition channel, different channels can freely be configured.Based on the configuration of above-mentioned external pin, above-mentioned switching mode control The cooperative working process of circuit and switch quantity acquisition circuit processed is as follows:
When acquiring passive switch amount signal, use second voltage acquisition input terminal PIN2, interface GND_PORT as Switching signal acquires input terminal, controls letter according to the peripheral mode of configuration requirement (wet contact) output supply by external control device Number MODE_CTL output high level (typically, 3.3V), is divided by the first divider resistance R3 and the second divider resistance R4, And by dividing point voltage output to triode Q1 base stage, cause triode Q1 saturation conduction, as a result, " signal power source VCC-relay Current path is formed between the coil of device SW-Q1 collector-Q1 emitter-signal ground ", the coil of relay SW has electric current It flows through, the public terminal contacts of relay SW is caused to connect with the first free terminal contacts (normally opened contact);When acquisition passive switch amount Access is formed when the dry contact closure of signal, forms " free terminal contacts-the SW of the first of interface power VCC_PORT-SW as a result, Public terminal contacts-optocoupler U1 input side-second voltage acquisition input terminal PIN2-interface GND_PORT " electric current it is logical Road, the light emitting diode forward conduction inside optocoupler U1 shine, at this time its internal phototriode also will conducting, light as a result, Light-Emitting Diode conducting inside coupling U1, optocoupler U1 output end exports a low level for external circuit as acquisition letter as a result, Number AIM_IN;And when acquiring the dry contact disconnection of passive switch amount signal, the electric current of the LEDs ON inside optocoupler U1 Access no longer exists, and optocoupler U1 output end exports a high level by the effect of pull-up resistor R5 and external power VDD as a result, Signal AIM_IN is used as acquisition signal for external circuit;
When acquiring active switch amount signal, input terminal is acquired using first voltage acquisition input terminal PIN1, second voltage PIN2 acquires input terminal as switching signal, at this time by external control device according to the outer of configuration requirement (dry contact) output supply If mode control signal MODE_CTL exports low level (typically, 0V), triode Q1 is not turned on as a result, relay SW's Coil will not obtain enough electric currents, therefore, the public terminal contacts of relay SW1 and the second free terminal contacts (normally-closed contact) Connection, when acquiring the wet contact closure of active switch amount signal, at this point, being formed, " first voltage acquires input terminal PIN1-the The public terminal contacts of the free terminal contacts-SW of the second of one current-limiting resistance R1-SW-optocoupler U1 input side-second voltage acquisition The current path of input terminal PIN2 ", the light emitting diode forward conduction inside optocoupler U1 shine, at this time its internal photosensitive three pole Pipe will also be connected, as a result, the Light-Emitting Diode conducting inside optocoupler U1, and optocoupler U1 output end exports a low level letter as a result, Number AIM_IN is used as acquisition signal for external circuit, and when the wet contact for acquiring active switch amount signal disconnects, cause optocoupler The current path of LEDs ON inside U1 no longer exists, and optocoupler U1 output end passes through pull-up resistor R5 and outer as a result, If the effect of power vd D exports a high level signal AIM_IN, it is used as acquisition signal for external circuit.
As it can be seen that it can be real by peripheral mode control signal MODE_CTL using a set of hardware by the above-mentioned course of work The selection and switching of existing passive switch amount signal acquisition and active switch amount signal acquisition, the detection by optocoupler to acquisition signal And from on-off model to logically high low level conversion, collection process is simplified, while improving the acquisition of facility switching amount Interface compatibility in the process effectively meets the needs of different scenes application.
In order to make switch acquisition device proposed in above-described embodiment that there is higher reliability, preferably, in institute It states in switching mode control circuit, sustained diode 2 can be set between signal power source VCC and the collector of triode Q1, The cathode of the sustained diode 2 is connect with signal power source VCC;This is because when peripheral mode control signal MODE_CTL output Level by height switch to it is low after, triode Q1 becomes ending from being saturated, and at this moment the coil of relay SW makes it due to effect of inertia Middle electric current loses distribution channel suddenly, if without sustained diode 2 biggish inverse electromotive force will be generated at the coil both ends, Up to tens of volts, this voltage is acted on plus VCC voltage on the collector of triode Q1 to be enough to damage triode voltage value, because This, the effect of sustained diode 2 is to provide discharge loop for inverse electromotive force.
It can be preferably, the coil other end of relay SW passes through the transmitting of a zener diode D3 and triode Q1 Pole connection, to limit when triode Q1 saturation conduction and shutdown cut-off when transistor emitter and collector between voltage it is big It is small, guarantee that triode Q1 is hardly damaged.
In addition, in switch quantity acquisition circuit, it is preferable that the input side cathode of second one end current-limiting resistance R2 and optocoupler U1 Hold-off diode D1 can be set between (light-emitting diode tube cathode) side, the cathode and the second current-limiting resistance of hold-off diode D1 The connection of the one end R2, optocoupler damages caused by hold-off diode D1 can be used for preventing from being reversely connected because of interface power.
By above switch acquisition device, we can be acquired the on-off model in channel, wherein institute The on-off model of acquisition can be active switch amount signal and be also possible to passive switch amount signal, and in data communication network In signals transmission, the signal differentiated of acquisition will not be transmitted in different ways, therefore, although being adopted in on-off model It more preferably can be during collection using above-mentioned switch acquisition device and acquire, but below in relation to on-off model transmission No longer the acquisition mode of signal will be distinguished in description, and be only based on and collected on-off model to describe it How transmission in network system is carried out.
Before the implementation process for illustrating on-off model transmission, the present invention is discussed in detail first and carries out on-off model biography Defeated adoptable two kinds of transmission modes the transmission mode of separate time slots mode and account for the transmission mode of slotted mode altogether, and Corresponding time slot/the bit configuration of both transmission modes:
(1) separate time slots mode
Separate time slots mode refers to that each on-off model occupies an independent time slot respectively and transmitted.
As shown in Fig. 2, the transmission of each way switch amount information independently occupies a time slot under separate time slots mode, The mode is designed using multi-frame structure, with 4 subframes for a multi-frame, wherein bit0~bit6 of every 1 time slot of the 1st subframe is equal Multiframe alignment code " 0000000 " (being used to indicate the data frame for starting transmitting switch amount signal) is transmitted for independent, The fixed transmission transmission mode indication code of bit7 (' 0 ' indicates to account for slotted mode altogether, and ' 1 ' indicates separate time slots mode), the 2nd, 3,4 sons Total 12 bits of preceding 4 bits (bit0~bit3) of each time slot of frame are respectively intended to transmission and represent each way switch amount letter The sequence code of breath, the sequential coding can independently be set in advance, but must need to ensure do not occur and the consistent letter of multiframe alignment code Structure is ceased, such as: it uses " 110110110110 " to indicate ' 1 ', " 101010101010 " is used to indicate ' 0 ', and due to other free time The Filling power of position does not have special recognition reaction, can fix filling ' 1 ' or ' 0 ' in other spare bits, be also possible to other solid Fixed combination or random combine.In this way, multi-frame and its subframe, and root can be distinguished according to multiframe alignment code in opposite end receiving side According to the clear used transmission mode of transmission mode indication code, and then transmitted switching value information can be parsed.In the design In, sequence code indicates the switching value information in each channel, is total to by the fixed bit position in the identical time slot of subframes different in multi-frame With composition, hence it is evident that anti-interference, the bit error rate can be effectively reduced, and length can according to need design, but 12 and be distributed in not It is preferred with the identical time slot of subframe, it is sufficient to guarantee reliable and stable.Certainly, the length setting of sequence code is to guarantee to believe It ceases the reliability of transmission and adds, length can be set as needed, can also be straight actually in application scenes Connect and sequence code be simply set to 1, information transmission is carried out with switching value " 0 " or " 1 ", that is, the 2nd, 3,4 subframes each One " 0 " is only taken up in time slot, or " 1 " shows switch state.
Herein it should also be noted that, can also be based on when carrying out the transmission of switching value information using separate time slots mode Above-mentioned multi-frame design principle, be set in the 2nd, 3, a certain (or certain) in any time slots of 4 subframes bit transmit out Pass measure information, without each subframe, there are switching value information, but at this time obviously can transmitting switch amount port number reduce, but It is by its specific arrangement it is also possible that the safety is improved.
More intuitively illustrate it is shown in Figure 3, under separate time slots mode, 8 way switch amounts need 8 time slots, the 1st~8 tunnel On-off model successively occupies TS0~TS7 time slot, wherein 3 (a) figures describe the up direction of on-off model transmission, i.e., Transmission network will be sent into from the collected on-off state signal of switch value input interface;3 (b) figures describe on-off model The down direction of transmission, i.e., the digital output modul signal parsed from transmission network are exported for control switch amount signal Interface.
(2) slotted mode is accounted for altogether
Slotted mode is accounted for altogether, refers to that multiple switch amount signal occupies the same time slot (TS0) jointly and transmitted, and pass through The form of multi-frame, multi-way switching values signal can carry out bit bit multiplex when transmitting, and for the correctness for guaranteeing transmission signal, may be used also Joined CRC-16 check code;
As shown in figure 4, accounting under slotted mode altogether, it is only necessary to a time slot (TS0) is used, and for including 32 time slots (TS0-TS31) for data frame, other time slots in addition to TS0 still can be used for transmitting other information.Transmitting switch amount Multi-frame structure is used when signal, with 8 subframes for a multi-frame, the fixed transmission multi-frame of bit0-bit6 of the TS0 of the first subframe Alignment code (" 0000000 "), bit7 are that transmission mode indication code (wherein ' 0 ' is expressed as accounting for slotted mode altogether, ' 1 ' indicates independent Slotted mode), the 2nd, 3, the TS0 time slots of 4 subframes be used for transmission switching value information, every frame can transmit the switching value in 7 channels Information, to prevent " 0000000 " the i.e. appearance of multiframe alignment code, the bit6 of every frame fixes insertion data confirmation code ' 1 ', the 5,6,7,8 subframes are used for transmission switching value information and CRC-16 check code, the fixed insertion data confirmation code ' 1 ' of same bit6;Figure In A~H indicate 8 way switch amount information, " X " be that reserved switching value information transmits position, and preferably in order to realize this hair Two kinds of bright transmission modes are in master control website access device to the compatibility of access slave station point, and the 2nd subframe in Fig. 4 The bit7 of TS0 time slot is set as idle, fixed insertion such as ' 1 ' so that system compatibility support 32 way switch amounts to believe (position that shade is identified in figure can transmitting switch amount signal: total 6 (the 2nd subframe)+7*2 (the 3rd, 4 subframes)+3*4 for the transmission of breath (the 5th, 6,7,8 subframes)=32).It certainly, can also be by changing time slot shared by check code in the case where accounting for slot transmission mode altogether Digit and spare bits are not set to increase the transmission quantity of switching value, its in non-1st subframe also can be set in spare bits Its subframe time slot.
It is also required to illustrate herein, it, can also be with when using altogether accounting for slotted mode and carrying out the transmission of switching value information Based on above-mentioned multi-frame design principle, switching value can select the predetermined other subframes or other that can be used for transmitting when transmitting Bit, as long as the related setting for accounting for slotted mode transmitting switch amount altogether before meeting, setting herein are intended merely to Facilitate explanation.
More intuitively illustrate shown in Figure 5, accounts under slotted mode altogether, 8 way switch amounts only need a time slot, preceding 4 tunnel The transmission of switching value information occupies bit0~bit3 of the 2nd subframe of multi-frame, and the transmission of rear 4 way switch amount information occupies multi-frame the 3rd Bit0~bit3 of subframe is transmitted.Wherein Fig. 5 (a) figure describes the up direction of on-off model transmission, i.e., will be from The collected on-off state signal of switch value input interface is sent into transmission network;Fig. 5 (b) figure describes on-off model biography Defeated down direction, i.e., the digital output modul signal parsed from transmission network connect for the output of control switch amount signal Mouthful.
For above two mode carry out the transmission of switching value information time slot configured it should be added that, although It is all multiframe alignment code is set using bit0~bit6 in 1 time slot above, transmission mode indication code is arranged in bit7, but Be in fact, this is not unique, but because only there are two types of transmission modes for the transmission of switching value information, therefore, It only needs to can be carried out distinguishing by 1 bit, and multiframe alignment code is arranged using more bit to be guaranteed to know Bit error probability is reduced under the premise of other property, thus improve data transfer reliability.It, can also be with less in some other occasion Multiframe alignment code is arranged in bit, can also be arranged transmission mode indication code with more bit, be not construed as limiting, only need herein The sum of digit shared by two kinds of identification codes of multiframe alignment code and transmission mode indication code is wanted to be not more than 8bit.
Based on the transmission time slot in switching value message transmitting procedure is arranged above, in network system between each website into Row switching value information transmission, in entire transfers net system, as the previously known each channel switch amount information in receiving end with Its time slot/bit corresponding relationship is carried, and needs known this channel switch amount information as transmitting terminal and carries its Time slot/bit corresponding relationship.
For as the received receiving end of signal, data frame is received, if judging the data frame received as switching value Information then obtains transmission mode from data frame, according still further to acquired transmission mode and preset switching value information with hold Time slot/bit the corresponding relationship for carrying it obtains switching value information, and the specific location determination where switching value information is opened Measure the transmission channel and corresponding record of information in pass.Specifically, the receive process are as shown in fig. 6, execute following steps:
Step 601, whether first time slot for judging first subframe of the data frame received includes scheduled multi-frame Alignment code continues to execute if it is, showing that the data frame to be received is the multi-frame structure for transmitting multi-channel switch amount information Step 602;Otherwise, show that received data frame is non-agreement multi-channel switch amount information, according to its of Design of Network System Its rule process, the present invention are not related to;
In this step, identified when scheduled multiframe alignment code designs for system set in fixed bit to consolidate Definite value (for example, being set as " 0000000 " in bit0-bit6);
It is done here with special instruction, is to show as connecing in the purpose of receiving end, the setting of multiframe alignment code Receiving end will start to receive switching value information, as long as therefore a time slot in the data frame that receives includes multiframe alignment code, Show that the data frame received includes switching value information, and when the time slot is confirmed as the 1st subframe the 1st of the data frame Gap.
Step 602, according to the transmission mode indication code for including in first time slot of the first of the data frame subframe The transmission mode for determining received switching value information executes step 603, works as judgement when being judged as separate time slots transmission When to account for slot transmission altogether, step 604 is executed;
In this step, identified set fixation in fixed bit when transmission mode indication code designs for system Value, accounts for slotted mode for separate time slots mode and altogether, and the fixed value is different (for example, expression accounts for altogether when being set as 0 in bit7 Slotted mode is set as indicating separate time slots mode when 1);
Step 603, the unit read using 4 subframes for a multi-frame as switching value information, from the 2nd, 3,4 subframe Identical time slot in fixed bit position in obtain the sequence code of instruction switching value information, according to specific location where the sequence code It is determined as the switching value information transmitted in which channel and corresponding record;For example, before in the TS0 time slot of the 2nd, 3,4 subframe Sequence code of the 4bit data together as instruction first passage switching value information, preceding 4bit in the TS1 time slot of the 2nd, 3,4 subframe Sequence code ... ... of the data together as instruction second channel switching value information;
Step 604, be a unit that a multi-frame is read as switching value information using 8 subframes, from the 2nd, 3, 4 ... respectively setting is used for transmission acquisition switching value information in the bit of switching value information in the TS0 time slot of subframe, according to this Specific location where switching value information is determined as the switching value information transmitted in which channel and corresponding record;For example, the 2nd subframe TS0 time slot in bit0-bit5 be first passage switching value information-the 6th channel switch amount information, bit7 is the 7th logical Road switching value information, bit0-bit5 in the TS0 time slot of the 3rd subframe are that the 8th channel switch amount triple channel of information-the tenth is opened Measure information ... ... in pass.
Accordingly, for the transmitting terminal sent as signal, this channel is collected using on-off model acquisition device After switching value information, the data frame comprising switching value information is sent, is believed for example, existing in network system for multi-channel switch amount When the data frame of the transmission of breath, according to the transmission mode indicated in this data frame, when the switching value information of current channel is passed through Transmission network is sent into gap allotment;In network system there is no for multi-channel switch amount information transmission data frame when, then to In the data frame of transmission, insertion is used for transmission the instruction of switching value information and the instruction of transmission mode, according to the transmission of insertion The instruction of mode and preset switching value information and the time slot/bit corresponding relationship for carrying it, by opening for current channel It measures information and feeding transmission network is deployed by time slot in pass.Specifically, this process is as shown in fig. 7, comprises following steps:
Step 701, judge the transmitting data frame for multi-channel switch amount information whether is had existed in network system, such as Fruit exists, and thens follow the steps 703, if it does not exist, then executing step 702;
In this step, existing in network system for the transmitting data frame of multi-channel switch amount information is connect by judgement It receives in data frame and whether to include scheduled multiframe alignment code to determine;When not receiving including scheduled multiframe alignment code When data frame, show that there is no the transmitting data frames for multi-channel switch amount information in current network systems;
Step 702, according to system configuration requirements, consolidating in first time slot of first subframe of data frame to be sent Determine bit and is inserted into scheduled multiframe alignment code and transmission mode indication code;Wherein, the multiframe alignment code shows to make at this moment To start to send the data frame including switching value information for transmitting terminal;The transmission mode indication code is directed to and accounts for slotted mode altogether It is set separately with separate time slots mode;Then step 703 is executed;
Step 703, according to transmission mode indicated by transmission mode indication code, the switching value information of current channel is passed through Transmission network is sent into time slot allotment;It is specific:
It is a multi-frame as opening using 4 subframes when the transmission mode indication code is designated as separate time slots mode Information transmission unit is measured in pass, should be in 2,3,4 subframe according to the channel that current channel is determined in Design of Network System The sequence code of the write instructions channel switch amount information in fixed bit position in gap, and it is sent to transmission network;
It is a multi-frame as opening using 8 subframes when the transmission mode indication code is designated as accounting for slotted mode altogether Information transmission unit is measured in pass, should be in affiliated subframe the first according to the channel that current channel is determined in Design of Network System The sequence code of the determination bit write instructions of the gap channel switch amount information, and it is sent to transmission network.
It should be noted that being accounted under time slot and separate time slots mode altogether in the present embodiment, multi-channel switch can be transmitted Measure information, typically 32 tunnels.Due to accounting under slotted mode altogether, 8 way switch amount signals occupy the same time slot, occupy resource It is few, and under separate time slots mode, since every way switch amount signal individually occupies 1 separate time slots, time slot allotment is more flexible, because This, two kinds of switching value transmission modes can flexibly be selected in different networking application occasions, but for whole network system and Speech can at least accomplish choosing of the same hardware system for two kinds of transmission modes using design proposed in the embodiment of the present invention With compatible and automatic identification.In addition, the compatibility of switching value Transmission system is embodied in master control website for controlled in the application Website acquires the compatibility of switching value number, and for main Control point access device, node controlled for two kinds be may be implemented The access of quantity is provided in Transmission system as a result, and both ends be not necessarily to when configuration change, especially transmission mode are changed Master control website access device is modified.It can be seen that enabling to entire switching value to pass using technical scheme Defeated system compatibility on the basis of realizing reliable data transmission further enhances.
Concrete application example
Point-to-point application.
Under point-to-point application model, as shown in figure 8, the On-off signal signal that prosecution website A will test, passes through E1 Transmission network is sent to B end equipment, while the digital output modul signal resolution from B website being come out, for controlling local terminal quilt Control equipment is shown as warning information by display screen;In the same way, the switching value shape that prosecution website B will test State signal is transmitted to A end equipment also by E1 transmission network, while the digital output modul signal resolution from A website being come out, For controlling local terminal controlled device or being shown as warning information by display screen.The transmission mode of this application mode lower switch amount It can be used and account for slotted mode altogether, separate time slots mode also can be used.
Point-to-multipoint application.
As shown in figure 9, having a control site Cotrol Site and 3 controlled website Site A, Site in loop network B and Site C under separate time slots mode then may be implemented that the control respectively to 3 controlled websites of A, B, C is implemented separately. Control Site accesses double switch amount control signal (dotted line), occupies 2 TS time slots by time slot allotment and is sent into transmission network Control signal is sent to Site A by network, and the available information of Site A simultaneously can according to need letter on its display screen Breath carries out display or the open and close for controlling Site A relevant device.Equally, Control Site can also pass through The switch control to such as the Site B, Site C of other websites in ring network is realized in the allotment of time slot, to realize switching value Point-to-multipoint control.In this scenario, after the time slot for determining transmitting switch amount information and other relevant informations determines, if adjusted Any technical solution of realization information insertion time slot in this field can be selected by carrying out information insertion with time slot, not limited herein It is fixed.
In the following, the present embodiment provides a kind of multi-channel switch amount transmitting devices, as shown in Figure 10 (a), it can be placed in and connect Receiving end side mainly includes following each unit:
Judging unit is received, data frame is received, and judges whether the data frame received is switching value information, and sentencing When the data frame that disconnecting receives is switching value information, transmission mode is obtained from data frame, wherein acquired transmission mode is Separate time slots mode accounts for slotted mode altogether;
Specifically, when first time slot of first subframe of the data frame received includes scheduled multiframe alignment code, When i.e. system designs when identified fixed value set in fixed bit position, receiving judging unit can determine whether to receive Data frame be switching value information.Wherein, identified when system designs in fixed bit position may include one or more ratios Special position.
In addition, judging unit is received, according to the transmission mode for including in first time slot of the first of data frame subframe Indication code obtains the transmission mode of switching value information.Specifically, when transmission mode indication code designs for system it is identified Set fixed value in fixed bit position accounts for slotted mode, fixed value difference for separate time slots mode and altogether.For example, The corresponding transmission mode indication code of separate time slots mode is that the value of the fixed bit position of systemic presupposition is fixed value 1, then accounts for altogether The corresponding defeated mode indication code of slotted mode is that the value of the fixed bit position of systemic presupposition is fixed value 2.
Switching value information acquisition unit according to acquired transmission mode and preset switching value information and carries it Time slot/bit corresponding relationship obtain switching value information, the specific location where switching value information determines switching value The transmission channel and corresponding record of information.
Wherein, when transmission mode is separate time slots mode, switching value information acquisition unit, according to determining transmission mould When formula, preset switching value information and the time slot/bit corresponding relationship for carrying it obtain switching value information, be from the 2nd, 3, Setting is used for transmission acquisition switching value information in the bit of switching value information in the identical time slot of 4 subframes.Preferably, it can incite somebody to action 2nd, 3, preceding 4 bits of each time slot of 4 subframes be set for the bit of transmitting switch amount information.
When transmission mode is to account for slotted mode altogether, the switching value information acquisition unit can be from the of 2-8 subframe Setting is used for transmission acquisition switching value information in the bit of switching value information in one time slot.
The present embodiment introduces a kind of multi-channel switch amount transmitting device again, as shown in Figure 10 (b), can be placed in transmitting terminal Side mainly includes following each unit.
Indicate information insertion unit, there is no the data frames for the transmission of multi-channel switch amount information in network system When, in data note to be sent, insertion notebook data frame is used to start the instruction and transmission mode of transmitting switch amount information Instruction;
In the present embodiment, fixed bit position insertion of the unit in first time slot of first subframe of data frame is pre- Fixed multiframe alignment code, this scheduled multiframe alignment code are the instruction for being used to start transmitting switch amount information.It is connect at this point, being placed in The device of receiving end when reading multiframe alignment code from data frame, that is, can determine whether that this data frame is to be used for transmission switching value information 's.Wherein, the fixed bit position for being inserted into multiframe alignment code may include one or more bits.
In addition, instruction information transmission unit, it can also be by solid in first time slot of first subframe in data frame Determine bit insertion transmission mode indication code, the as instruction of transmission mode, wherein the corresponding transmission mode of different transmission mode The value of indication code is different.
Switching value information transmission unit, the transmission mode and preset switch that information insertion unit is inserted into as indicated Time slot/bit the corresponding relationship for measuring the corresponding carrying switching value information of information, by the switching value information including current channel Data frame pass through corresponding time slot allotment and be sent into transmission network;And according to for starting transmitting switch amount letter in network system When indicating that judgement has the data frame for the transmission of multi-channel switch amount information of breath, according to the transmission mode of data frame use Instruction and preset switching value information and carry its time slot/bit corresponding relationship, will include opening for current channel The data frame that information is measured in pass is deployed by time slot is sent into transmission network.
Specifically, when transmission mode is separate time slots mode, the transmission of the switching value information of each paths can divide It is independent to occupy a time slot, such as by taking 4 subframes are a multi-frame as an example, at this point, switching value information transmission unit can be the 2, setting is used for transmission transmission switching value information on the bit of switching value information in the identical time slot of 3,4 subframes.For example, 2, in preceding 4 bits of each time slot of 3,4 subframes the write instructions channel switch amount information sequence code, and be sent to Transmission network.
When transmission mode is to account for slotted mode altogether, the on-off model of each paths can carry out bit when transmitting multiple With, for the correctness for guaranteeing transmission signal, CRC-16 check code can also be joined, such as by taking 8 subframes are a multi-frame as an example, At this point, switching value information transmission unit then can be in fixed bit position write instructions channel of the first time slot of 2-8 subframe The sequence code of switching value information, and it is sent to transmission network.
Switching value transmission is applicable to based on TDM communication network in technical scheme, and occupied bandwidth is few.Pass through clock synchronization Point-to-point switching value, transmission and control can not only may be implemented with flexible networking application in the allotment of gap, can also meet Detection, transmission and the demand for control of on-off model point-to-multipoint, circuit design is simple, convenience flexible in application.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module Formula is realized.The application is not limited to the combination of the hardware and software of any particular form.
The above, preferred embodiments only of the invention, is not intended to limit the scope of the present invention.It is all this Within the spirit and principle of invention, any modification, equivalent substitution, improvement and etc. done should be included in protection model of the invention Within enclosing.

Claims (26)

1. a kind of multi-channel switch amount transmission method, which is characterized in that this method comprises:
Data frame is received, if the data frame that judgement receives includes switching value information, transmission mould is obtained from the data frame Formula, wherein acquired transmission mode is separate time slots mode or accounts for slotted mode altogether;
According to acquired transmission mode and preset switching value information and the time slot/bit corresponding relationship for carrying it Switching value information is obtained, the specific location where switching value information determines the transmission channel of switching value information and corresponding note Record;
It is described to judge that the data frame received includes that the process of switching value information includes:
When a time slot of the data frame received includes scheduled multiframe alignment code, judge that the data frame received includes opening Information is measured in pass, and the time slot is confirmed as first the first time slot of subframe of the data frame.
2. the method as described in claim 1, which is characterized in that the scheduled multiframe alignment code determines when being designed by system Fixed value set in fixed bit position.
3. the method as described in claim 1, which is characterized in that the process of acquisition transmission mode includes: from the data frame
Received switching value information is determined according to the transmission mode indication code that the multiframe alignment code includes in a slot Transmission mode.
4. method as claimed in claim 3, which is characterized in that
The transmission mode indication code identified set fixed value in fixed bit position when being designed for system, wherein The corresponding transmission mode indication code of separate time slots mode and the corresponding transmission mode indication code of slotted mode is accounted for altogether in fixed bit Set fixed value is different in position.
5. such as the described in any item methods of Claims 1-4, which is characterized in that when transmission mode is separate time slots mode, press According to determining transmission mode, preset switching value information and the time slot/bit corresponding relationship for carrying it obtain switching value letter The process of breath includes:
From the 2nd, 3, setting is used for transmission acquisition switching value information in the bit of switching value information in the identical time slots of 4 subframes.
6. method as claimed in claim 5, which is characterized in that the 2nd, 3, the setting in the identical time slots of 4 subframes is used for transmission The bit of switching value information is the 2nd, 3, preceding 4 bits of each time slot of 4 subframes.
7. such as the described in any item methods of Claims 1-4, which is characterized in that when transmission mode is to account for slotted mode altogether, press According to determining transmission mode, preset switching value information and the time slot/bit corresponding relationship for carrying it obtain switching value letter The process of breath includes:
Setting is used for transmission acquisition switching value information in the bit of switching value information from first time slot of 2-8 subframe.
8. a kind of multi-channel switch amount transmission method, which is characterized in that this method comprises:
Multi-channel switch amount information is used for when existing in network system according to the instruction judgement for starting transmitting switch amount information When the data frame of transmission, according to the instruction of the transmission mode of data frame use and preset switching value information and its is carried The data frame of switching value information including current channel is passed through time slot and deploys feeding transmission by time slot/bit corresponding relationship Network;
When the data frame for the transmission of multi-channel switch amount information is not present in network system, in data frame to be sent, Insertion notebook data frame is for starting the instruction of transmitting switch amount information and the instruction of transmission mode, according to the transmission mode of insertion Instruction transmission mode and preset switching value information and carry its time slot/bit corresponding relationship, will include working as The data frame of the switching value information of prepass is deployed by time slot and is sent into transmission network;
Wherein, the transmission mode accounts for for separate time slots mode or altogether slotted mode.
9. method according to claim 8, which is characterized in that the instruction that the basis is used to start transmitting switch amount information is sentenced It is disconnected to include: in the presence of the process for being used for the data frame that multi-channel switch amount information is transmitted
When a time slot in the data frame received includes the instruction for starting transmitting switch amount information, network system is judged There is the data frame for the transmission of multi-channel switch amount information in system, and the time slot is confirmed as the first son of the data frame The first time slot of frame.
10. method as claimed in claim 9, which is characterized in that for starting the instruction of transmitting switch amount information are as follows: in data The predetermined multiframe alignment code of fixed bit position insertion in first time slot of first subframe of frame.
11. method according to claim 8, which is characterized in that
The transmission mode instruction are as follows: identified in first time slot of first subframe of data frame when system designs The transmission mode indication code being inserted into fixed bit position, wherein the corresponding transmission mode indication code of separate time slots mode and It is different that the fixed value that the corresponding transmission mode indication code of slotted mode is inserted into fixed bit position is accounted for altogether.
12. such as the described in any item methods of claim 8 to 11, which is characterized in that according to the instruction of transmission mode, and it is default Switching value information and carry its time slot/bit corresponding relationship, by include current channel switching value information data Frame includes: by the process that transmission network is sent into corresponding time slot allotment
It is a multi-frame as switching value information transmission unit using 4 subframes when transmission mode is designated as separate time slots mode, The switching value information in the channel determined according to current channel in Design of Network System and time slot/bit pair for carrying it It should be related to, the sequence code of the write instructions channel switch amount information in the fixed bit position in the 2nd, 3,4 subframe time slots, concurrently It is sent to transmission network.
13. such as the described in any item methods of claim 8 to 11, which is characterized in that according to the instruction of transmission mode, and it is default Switching value information and carry its time slot/bit corresponding relationship, by include current channel switching value information data Frame includes: by the process that transmission network is sent into corresponding time slot allotment
It is a multi-frame as switching value information transmission unit using 8 subframes when transmission mode is designated as accounting for slotted mode altogether, The switching value information in the channel determined according to current channel in Design of Network System and time slot/bit pair for carrying it It should be related to, in the sequence code of the fixed bit position write instructions of the affiliated sub first time slot channel switch amount information, and be sent to Transmission network.
14. a kind of multi-channel switch amount transmitting device, which is characterized in that the device includes:
Judging unit is received, data frame is received, and judges whether the data frame received is switching value information, and connect in judgement When the data frame received is switching value information, transmission mode is obtained from the data frame, wherein acquired transmission mode is Separate time slots mode accounts for slotted mode altogether;
Switching value information acquisition unit, according to acquired transmission mode and preset switching value information and carry its when Gap/bit corresponding relationship obtains switching value information, and the specific location where switching value information determines switching value information Transmission channel and corresponding record;
The reception judging unit judges that the data frame received refers to as switching value information:
When first time slot of first subframe of the data frame received includes scheduled multiframe alignment code, judgement is received Data frame be switching value information.
15. device as claimed in claim 14, which is characterized in that institute is true when the scheduled multiframe alignment code designs for system Fixed fixed value set in fixed bit position.
16. device as claimed in claim 15, which is characterized in that the reception judging unit is obtained from the data frame Transmission mode refers to:
According to received by the transmission mode indication code determination for including in first time slot of the first of the data frame subframe Switching value information transmission mode.
17. device as claimed in claim 16, which is characterized in that
The transmission mode indication code identified set fixed value in fixed bit position when being designed for system, wherein The corresponding transmission mode indication code of separate time slots mode, the corresponding transmission mode indication code of He Gongzhan slotted mode, in fixed ratio Set fixed value is different in special position.
18. such as the described in any item devices of claim 14 to 17, which is characterized in that when transmission mode is separate time slots mode When, the switching value information acquisition unit, according to determining transmission mode, preset switching value information and carry its time slot/ The corresponding relationship of bit obtains switching value information and refers to:
From the 2nd, 3, setting is used for transmission acquisition switching value information in the bit of switching value information in the identical time slots of 4 subframes.
19. device as claimed in claim 18, which is characterized in that the 2nd, 3, set in the identical time slots of 4 subframes and be used for transmission The bit of switching value information is the 2nd, 3, preceding 4 bits of each time slot of 4 subframes.
20. such as the described in any item devices of claim 14 to 17, which is characterized in that when transmission mode is to account for slotted mode altogether When, the switching value information acquisition unit, according to determining transmission mode, preset switching value information and carry its time slot/ The corresponding relationship of bit obtains switching value information and refers to:
Setting is used for transmission acquisition switching value information in the bit of switching value information from first time slot of 2-8 subframe.
21. a kind of multi-channel switch amount transmitting device, which is characterized in that the device includes:
Indicate information insertion unit, when the data frame for the transmission of multi-channel switch amount information being not present in network system, In data note to be sent, insertion notebook data frame is used to start the instruction of transmitting switch amount information and the instruction of transmission mode, Wherein, the transmission mode accounts for for separate time slots mode or altogether slotted mode;
Switching value information transmission unit, transmission mode and preset switch according to the instruction information insertion unit insertion It measures information and carries its time slot/bit corresponding relationship, the data frame of the switching value information including current channel is passed through Transmission network is sent into corresponding time slot allotment, and according to the instruction judgement for starting transmitting switch amount information in network system When in the presence of the data frame transmitted for multi-channel switch amount information, the instruction of the transmission mode used according to the data frame and pre- If switching value information and carry its time slot/bit corresponding relationship, by include current channel switching value information number It is deployed according to frame by time slot and is sent into transmission network.
22. device as claimed in claim 21, which is characterized in that the basis is used to start the instruction of transmitting switch amount information Judgement exists to be referred to for the data frame of multi-channel switch amount information transmission:
When a time slot in the data frame received includes the instruction for starting transmitting switch amount information, network system is judged There is the data frame for the transmission of multi-channel switch amount information in system, and the time slot is confirmed as the first son of the data frame The first time slot of frame.
23. device as claimed in claim 22, which is characterized in that
For starting the instruction of transmitting switch amount information are as follows: the fixed bit in first time slot of first subframe of data frame The predetermined multiframe alignment code of position insertion.
24. device as claimed in claim 23, which is characterized in that
The transmission mode instruction are as follows: identified in first time slot of first subframe of data frame when system designs The transmission mode indication code being inserted into fixed bit position, wherein the corresponding transmission mode indication code of separate time slots mode, and The corresponding transmission mode indication code of slotted mode is accounted for altogether, and the fixed value being inserted into fixed bit position is different.
25. such as the described in any item devices of claim 21 to 24, which is characterized in that the switching value information transmission unit according to The instruction of transmission mode and preset switching value information and the time slot/bit corresponding relationship for carrying it will include current The data frame of the switching value information in channel is sent into transmission network by corresponding time slot allotment and is referred to:
It is a multi-frame as switching value information transmission unit using 4 subframes when transmission mode is designated as separate time slots mode, The switching value information in the channel determined according to current channel in Design of Network System and time slot/bit pair for carrying it It should be related to, the sequence code of the write instructions channel switch amount information in the fixed bit position in the 2nd, 3,4 subframe time slots, concurrently It is sent to transmission network.
26. such as the described in any item devices of claim 21 to 24, which is characterized in that the switching value information transmission unit according to The instruction of transmission mode and preset switching value information and the time slot/bit corresponding relationship for carrying it will include current The data frame of the switching value information in channel includes: by the process that transmission network is sent into corresponding time slot allotment
It is a multi-frame as switching value information transmission unit using 8 subframes when transmission mode is designated as accounting for slotted mode altogether, The switching value information in the channel determined according to current channel in Design of Network System and time slot/bit pair for carrying it It should be related to, in the sequence code of the fixed bit position write instructions of affiliated the first time slot of the subframe channel switch amount information, and send To transmission network.
CN201510370136.6A 2015-06-29 2015-06-29 Multi-channel switch amount transmission method and device Active CN105185072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510370136.6A CN105185072B (en) 2015-06-29 2015-06-29 Multi-channel switch amount transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510370136.6A CN105185072B (en) 2015-06-29 2015-06-29 Multi-channel switch amount transmission method and device

Publications (2)

Publication Number Publication Date
CN105185072A CN105185072A (en) 2015-12-23
CN105185072B true CN105185072B (en) 2019-06-07

Family

ID=54907115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510370136.6A Active CN105185072B (en) 2015-06-29 2015-06-29 Multi-channel switch amount transmission method and device

Country Status (1)

Country Link
CN (1) CN105185072B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418653B (en) * 2017-02-09 2021-03-05 上海诺基亚贝尔股份有限公司 Method and apparatus for optical fiber communication
CN112992619B (en) * 2021-02-07 2022-06-03 青岛博宁福田智能交通科技发展有限公司 Emergency button switch interface and subway floodgate machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7243367B2 (en) * 2002-01-31 2007-07-10 Brocade Communications Systems, Inc. Method and apparatus for starting up a network or fabric
CN101043282A (en) * 2006-03-24 2007-09-26 中兴通讯股份有限公司 Data storage means for multi-channel voice process
CN201018521Y (en) * 2007-03-09 2008-02-06 杭州中导科技开发有限公司 Environment monitoring device
CN102394719A (en) * 2011-09-21 2012-03-28 浙江铭道通信技术有限公司 Multichannel HDLC data processing method based on FPGA

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7243367B2 (en) * 2002-01-31 2007-07-10 Brocade Communications Systems, Inc. Method and apparatus for starting up a network or fabric
CN101043282A (en) * 2006-03-24 2007-09-26 中兴通讯股份有限公司 Data storage means for multi-channel voice process
CN201018521Y (en) * 2007-03-09 2008-02-06 杭州中导科技开发有限公司 Environment monitoring device
CN102394719A (en) * 2011-09-21 2012-03-28 浙江铭道通信技术有限公司 Multichannel HDLC data processing method based on FPGA

Also Published As

Publication number Publication date
CN105185072A (en) 2015-12-23

Similar Documents

Publication Publication Date Title
CN102572352B (en) HDMI multiplexing method, HDMI, and equipped provided with HDMI
CN102740034B (en) Transmission system and trunking
US20110080269A1 (en) Transceiver
CN102792641B (en) Communication equipment and method to set up
CN105046911B (en) A kind of multi-channel switch amount transmission method and device
CN105185072B (en) Multi-channel switch amount transmission method and device
CN103298152B (en) Based on bus type many illumination collector of wireless telecommunications
KR100766031B1 (en) Two-Wire Interface Having Dynamically Adjustable Data Fields Depending On Operation Code
US6718284B2 (en) Smart module and adapter apparatus
CN109298230B (en) Acquisition device for current transformer
CN101635609B (en) High-reliability control system based on asynchronous serial communication and control method thereof
CN104251536A (en) One-to-many current loop communication method and communication device
CN112566307B (en) Safety display system and safety display method
CN209659302U (en) A kind of interface gating circuit and communication equipment
CN209070716U (en) A kind of tool management system
CN203366514U (en) Bus type multi-illumination collector based on wireless communication
CN104699648A (en) SDI-12 intelligent debugger
CN105553859A (en) System and method for enabling SFP modules to be adaptive to interfaces
CN104268109A (en) Data interface communication method and device
CN210431973U (en) Two-line coding control synchronous LED lamp strip
CN210270888U (en) Single-bus communication circuit
CN108933601A (en) Coding chip and battery monitoring unit
JPH02285748A (en) Transmission controller for optical fiber
CN109360401A (en) A kind of tool management system
CN219269083U (en) Signal transmission 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
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant