[go: up one dir, main page]

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
time slot
transmission
data frame
mode
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)

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.一种多通道开关量传输方法,其特征在于,该方法包括:1. a multi-channel switch quantity transmission method, is characterized in that, the method comprises: 接收数据帧,若判断接收到的数据帧包括开关量信息时,从所述数据帧中获取传输模式,其中,所获取的传输模式为独立时隙模式或者共占时隙模式;Receive a data frame, if it is judged that the received data frame includes switching information, obtain a transmission mode from the data frame, wherein the obtained transmission mode is an independent time slot mode or a shared time slot mode; 按照所获取的传输模式,以及预设的开关量信息与承载其的时隙/比特位的对应关系获取开关量信息,根据开关量信息所在的具体位置确定开关量信息的传输通道并对应记录;Obtain the digital information according to the acquired transmission mode and the corresponding relationship between the preset digital information and the time slot/bit that carries it, and determine the transmission channel of the digital information according to the specific location of the digital information and record it accordingly; 所述判断接收到的数据帧包括开关量信息的过程包括:The process of judging that the received data frame includes switch quantity information includes: 当接收到的数据帧的一个时隙包括预定的复帧定位码时,判断接收到的数据帧包括开关量信息,并且该时隙被确定为所述数据帧的第一子帧第一时隙。When a time slot of the received data frame includes a predetermined multiframe positioning code, it is judged that the received data frame includes switching information, and the time slot is determined as the first time slot of the first subframe of the data frame . 2.如权利要求1所述的方法,其特征在于,所述预定的复帧定位码为系统设计时所确定的在固定比特位中所设定的固定值。2 . The method of claim 1 , wherein the predetermined multiframe positioning code is a fixed value set in a fixed bit determined during system design. 3 . 3.如权利要求1所述的方法,其特征在于,从所述数据帧中获取传输模式的过程包括:3. The method of claim 1, wherein the process of obtaining the transmission mode from the data frame comprises: 根据所述复帧定位码所在时隙中包括的传输模式指示码确定所接收到的开关量信息的传输模式。The transmission mode of the received switching quantity information is determined according to the transmission mode indication code included in the time slot where the multiframe positioning code is located. 4.如权利要求3所述的方法,其特征在于,4. The method of claim 3, wherein 所述传输模式指示码为系统设计时所确定的在固定比特位中所设定的固定值,其中,独立时隙模式对应的传输模式指示码和共占时隙模式对应的传输模式指示码在固定比特位中所设定的固定值不同。The transmission mode indicator code is a fixed value set in the fixed bits determined during system design, wherein the transmission mode indicator code corresponding to the independent time slot mode and the transmission mode indicator code corresponding to the shared time slot mode are in the The fixed values set in the fixed bits are different. 5.如权利要求1至4任一项所述的方法,其特征在于,当传输模式为独立时隙模式时,按照确定的传输模式,预设的开关量信息与承载其的时隙/比特位的对应关系获取开关量信息的过程包括:5. The method according to any one of claims 1 to 4, wherein, when the transmission mode is an independent time slot mode, according to the determined transmission mode, the preset switch information and the time slot/bit carrying it The process of obtaining the switch quantity information by the corresponding relationship of the bits includes: 从第2、3、4子帧的相同时隙中设定用于传输开关量信息的比特位中获取开关量信息。The switch quantity information is acquired from the bits set for transmitting switch quantity information in the same time slot of the 2nd, 3rd and 4th subframes. 6.如权利要求5所述的方法,其特征在于,第2、3、4子帧的相同时隙中的设定用于传输开关量信息的比特位为第2、3、4子帧的每一个时隙的前4个比特位。6 . The method according to claim 5 , wherein in the same time slot of the 2nd, 3rd, and 4th subframes, the bits set for transmitting switching information are the bits of the 2nd, 3rd, and 4th subframes. 7 . The first 4 bits of each slot. 7.如权利要求1至4任一项所述的方法,其特征在于,当传输模式为共占时隙模式时,按照确定的传输模式,预设的开关量信息与承载其的时隙/比特位的对应关系获取开关量信息的过程包括:7. The method according to any one of claims 1 to 4, wherein when the transmission mode is a co-occupying time slot mode, according to the determined transmission mode, the preset switch quantity information and the time slot/ The process of obtaining the switch quantity information according to the corresponding relationship of the bits includes: 从第2-8子帧的第一个时隙中设定用于传输开关量信息的比特位中获取开关量信息。The switch quantity information is acquired from the bits set for transmitting switch quantity information in the first time slot of the 2nd to 8th subframes. 8.一种多通道开关量传输方法,其特征在于,该方法包括:8. A method for multi-channel switching value transmission, characterized in that the method comprises: 当网络系统中根据用于开始传输开关量信息的指示判断存在用于多通道开关量信息传输的数据帧时,按照该数据帧采用的传输模式的指示以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过时隙调配送入传输网络;When it is determined in the network system that there is a data frame for multi-channel digital information transmission according to the instruction for starting the transmission of digital information, according to the indication of the transmission mode adopted by the data frame and the preset digital information and the data frame carrying the data frame The corresponding relationship between time slots and bits, the data frame including the switching information of the current channel is dispatched into the transmission network through the time slot; 当网络系统中不存在用于多通道开关量信息传输的数据帧时,在待发送的数据帧中,插入本数据帧用于开始传输开关量信息的指示以及传输模式的指示,按照插入的传输模式的指示的传输模式以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过时隙调配送入传输网络;When there is no data frame for multi-channel switching information transmission in the network system, in the data frame to be sent, insert this data frame to start the transmission of switching information and the instruction of the transmission mode, according to the inserted transmission The indicated transmission mode of the mode and the corresponding relationship between the preset switch quantity information and the time slot/bit that carries it, the data frame including the switch quantity information of the current channel is dispatched into the transmission network through the time slot; 其中,所述传输模式为独立时隙模式或者共占时隙模式。Wherein, the transmission mode is an independent slot mode or a shared slot mode. 9.如权利要求8所述的方法,其特征在于,所述根据用于开始传输开关量信息的指示判断存在用于多通道开关量信息传输的数据帧的过程包括:9. The method according to claim 8, wherein the process of judging that there is a data frame for multi-channel digital information transmission according to the instruction for starting the transmission of digital information comprises: 当接收到的数据帧中的一个时隙包括用于开始传输开关量信息的指示时,判断网络系统中存在用于多通道开关量信息传输的数据帧,且所述时隙被确定为所述数据帧的第一子帧第一时隙。When a time slot in the received data frame includes an indication for starting to transmit digital information, it is judged that there is a data frame for multi-channel digital information transmission in the network system, and the time slot is determined as the The first time slot of the first subframe of the data frame. 10.如权利要求9所述的方法,其特征在于,用于开始传输开关量信息的指示为:在数据帧第一个子帧的第一个时隙内的固定比特位插入的预定复帧定位码。10 . The method according to claim 9 , wherein the indication for starting the transmission of switching information is: a predetermined multi-frame with fixed bits inserted in the first time slot of the first subframe of the data frame. 11 . location code. 11.如权利要求8所述的方法,其特征在于,11. The method of claim 8, wherein 所述传输模式指示为:系统设计时在所述数据帧第一个子帧的第一个时隙内所确定的在固定比特位中所插入的传输模式指示码,其中,独立时隙模式对应的传输模式指示码和共占时隙模式对应的传输模式指示码在固定比特位中所插入的固定值不同。The transmission mode indication is: the transmission mode indication code inserted in the fixed bits determined in the first time slot of the first subframe of the data frame during system design, wherein the independent time slot mode corresponds to The fixed value inserted in the fixed bits is different between the transmission mode indication code of , and the transmission mode indication code corresponding to the co-occupancy slot mode. 12.如权利要求8至11任一项所述的方法,其特征在于,按照传输模式的指示,以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过对应时隙调配送入传输网络的过程包括:12. The method according to any one of claims 8 to 11, characterized in that, according to the instruction of the transmission mode, and the corresponding relationship between the preset switch quantity information and the time slot/bit that bears it, the current channel will be included The process of dispatching the data frame of the switch quantity information into the transmission network through the corresponding time slot includes: 当传输模式指示为独立时隙模式时,以4个子帧为一个复帧作为开关量信息传输单元,根据当前通道在网络系统设计时确定的该通道的开关量信息与承载其的时隙/比特位的对应关系,在第2、3、4子帧时隙中的固定比特位中写入指示该通道开关量信息的序列码,并发送到传输网络。When the transmission mode is indicated as independent time slot mode, 4 subframes are used as a multiframe as the switching information transmission unit, according to the switching information of the channel determined during the network system design of the current channel and the time slot/bit that carries it. The corresponding relationship between the bits is written in the fixed bits in the 2nd, 3rd, and 4th subframe time slots, and the sequence code indicating the switching quantity information of the channel is written and sent to the transmission network. 13.如权利要求8至11任一项所述的方法,其特征在于,按照传输模式的指示,以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过对应时隙调配送入传输网络的过程包括:13. The method according to any one of claims 8 to 11, characterized in that, according to the indication of the transmission mode, and the corresponding relationship between the preset switch information and the time slot/bit that carries it, the current channel will be included The process of dispatching the data frame of the switch quantity information into the transmission network through the corresponding time slot includes: 当传输模式指示为共占时隙模式时,以8个子帧为一个复帧作为开关量信息传输单元,根据当前通道在网络系统设计时确定的该通道的开关量信息与承载其的时隙/比特位的对应关系,在所属子第一时隙的固定比特位写入指示该通道开关量信息的序列码,并发送到传输网络。When the transmission mode is indicated as the shared time slot mode, 8 subframes are used as a multiframe as the switching quantity information transmission unit. According to the switching quantity information of the channel and the time slot/ The corresponding relationship between the bits is to write a sequence code indicating the switch quantity information of the channel in the fixed bit of the sub-first time slot to which it belongs, and send it to the transmission network. 14.一种多通道开关量传输装置,其特征在于,该装置包括:14. A multi-channel switch quantity transmission device, characterized in that the device comprises: 接收判断单元,接收数据帧,并判断接收到的数据帧是否为开关量信息,以及在判断接收到的数据帧为开关量信息时,从所述数据帧中获取传输模式,其中,所获取的传输模式为独立时隙模式或者共占时隙模式;The receiving judging unit receives the data frame, and judges whether the received data frame is switch quantity information, and when judging that the received data frame is switch quantity information, obtains the transmission mode from the data frame, wherein the obtained The transmission mode is independent time slot mode or shared time slot mode; 开关量信息获取单元,按照所获取的传输模式,以及预设的开关量信息与承载其的时隙/比特位的对应关系获取开关量信息,根据开关量信息所在的具体位置确定开关量信息的传输通道并对应记录;The switch quantity information acquisition unit obtains switch quantity information according to the acquired transmission mode and the corresponding relationship between the preset switch quantity information and the time slot/bit that carries it, and determines the amount of switch quantity information according to the specific position of the switch quantity information. Transmission channel and corresponding record; 所述接收判断单元,判断接收到的数据帧为开关量信息指:The receiving judgment unit, judging that the received data frame is switch quantity information refers to: 当接收到的数据帧的第一个子帧的第一个时隙包括预定的复帧定位码时,判断接收到的数据帧为开关量信息。When the first time slot of the first subframe of the received data frame includes a predetermined multiframe positioning code, it is determined that the received data frame is switch quantity information. 15.如权利要求14所述的装置,其特征在于,所述预定的复帧定位码为系统设计时所确定的在固定比特位中所设定的固定值。15. The apparatus of claim 14, wherein the predetermined multiframe positioning code is a fixed value set in a fixed bit determined during system design. 16.如权利要求15所述的装置,其特征在于,所述接收判断单元,从所述数据帧中获取传输模式指:16. The apparatus according to claim 15, wherein the receiving determination unit, acquiring the transmission mode from the data frame means: 根据所述数据帧的第一个子帧的第一个时隙中包括的传输模式指示码确定所接收到的开关量信息的传输模式。The transmission mode of the received switch quantity information is determined according to the transmission mode indication code included in the first time slot of the first subframe of the data frame. 17.如权利要求16所述的装置,其特征在于,17. The apparatus of claim 16, wherein 所述传输模式指示码为系统设计时所确定的在固定比特位中所设定的固定值,其中,独立时隙模式对应的传输模式指示码,和共占时隙模式对应的传输模式指示码,在固定比特位中所设定的固定值不同。The transmission mode indicator code is a fixed value set in the fixed bits determined during system design, wherein the transmission mode indicator code corresponding to the independent time slot mode and the transmission mode indicator code corresponding to the shared time slot mode , the fixed values set in the fixed bits are different. 18.如权利要求14至17任一项所述的装置,其特征在于,当传输模式为独立时隙模式时,所述开关量信息获取单元,按照确定的传输模式,预设的开关量信息与承载其的时隙/比特位的对应关系获取开关量信息指:18. The device according to any one of claims 14 to 17, wherein when the transmission mode is an independent time slot mode, the switch quantity information acquisition unit, according to the determined transmission mode, presets the switch quantity information The corresponding relationship with the time slot/bit that carries it to obtain the switch quantity information refers to: 从第2、3、4子帧的相同时隙中设定用于传输开关量信息的比特位中获取开关量信息。The switch quantity information is acquired from the bits set for transmitting switch quantity information in the same time slot of the 2nd, 3rd and 4th subframes. 19.如权利要求18所述的装置,其特征在于,第2、3、4子帧的相同时隙中设定用于传输开关量信息的比特位为第2、3、4子帧的每一个时隙的前4个比特位。19 . The apparatus of claim 18 , wherein in the same time slot of the 2nd, 3rd, and 4th subframes, the bits used for transmitting switching information are set to be in each of the 2nd, 3rd, and 4th subframes. 20 . The first 4 bits of a slot. 20.如权利要求14至17任一项所述的装置,其特征在于,当传输模式为共占时隙模式时,所述开关量信息获取单元,按照确定的传输模式,预设的开关量信息与承载其的时隙/比特位的对应关系获取开关量信息指:20. The device according to any one of claims 14 to 17, wherein when the transmission mode is a shared timeslot mode, the switch quantity information acquisition unit, according to the determined transmission mode, presets the switch quantity The corresponding relationship between the information and the time slot/bit that carries it. Obtaining switch information refers to: 从第2-8子帧的第一个时隙中设定用于传输开关量信息的比特位中获取开关量信息。The switch quantity information is acquired from the bits set for transmitting switch quantity information in the first time slot of the 2nd to 8th subframes. 21.一种多通道开关量传输装置,其特征在于,该装置包括:21. A multi-channel switch quantity transmission device, characterized in that the device comprises: 指示信息插入单元,在网络系统中不存在用于多通道开关量信息传输的数据帧时,在待发送的数据帖中,插入本数据帧用于开始传输开关量信息的指示以及传输模式的指示,其中,所述传输模式为独立时隙模式或者共占时隙模式;The instruction information insertion unit, when there is no data frame for multi-channel switching information transmission in the network system, insert this data frame into the data frame to be sent to start transmitting the switching information and the transmission mode. , wherein the transmission mode is an independent timeslot mode or a shared timeslot mode; 开关量信息传输单元,按照所述指示信息插入单元插入的传输模式,以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过对应时隙调配送入传输网络,以及在网络系统中根据用于开始传输开关量信息的指示判断存在用于多通道开关量信息传输的数据帧时,按照该数据帧采用的传输模式的指示以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过时隙调配送入传输网络。The switch quantity information transmission unit, according to the transmission mode inserted by the instruction information inserting unit, and the corresponding relationship between the preset switch quantity information and the time slot/bit that carries the switch quantity information, pass the data frame including the switch quantity information of the current channel through The corresponding time slot is dispatched into the transmission network, and when it is judged that there is a data frame for multi-channel switching information transmission according to the instruction for starting the transmission of switching information in the network system, according to the instruction of the transmission mode adopted by the data frame and The corresponding relationship between the preset switch quantity information and the time slot/bit that carries it, the data frame including the switch quantity information of the current channel is dispatched and sent to the transmission network through the time slot. 22.如权利要求21所述的装置,其特征在于,所述根据用于开始传输开关量信息的指示判断存在用于多通道开关量信息传输的数据帧指:22. The apparatus according to claim 21, wherein the judging that there is a data frame for multi-channel digital information transmission according to the instruction for starting the transmission of digital information refers to: 当接收到的数据帧中的一个时隙包括用于开始传输开关量信息的指示时,判断网络系统中存在用于多通道开关量信息传输的数据帧,且所述时隙被确定为所述数据帧的第一子帧第一时隙。When a time slot in the received data frame includes an indication for starting to transmit digital information, it is judged that there is a data frame for multi-channel digital information transmission in the network system, and the time slot is determined as the The first time slot of the first subframe of the data frame. 23.如权利要求22所述的装置,其特征在于,23. The apparatus of claim 22, wherein 用于开始传输开关量信息的指示为:在数据帧第一个子帧的第一个时隙内的固定比特位插入的预定复帧定位码。The indication for starting the transmission of switching information is: a predetermined multiframe positioning code inserted in a fixed bit in the first time slot of the first subframe of the data frame. 24.如权利要求23所述的装置,其特征在于,24. The apparatus of claim 23, wherein 所述传输模式指示为:系统设计时在所述数据帧第一个子帧的第一个时隙内所确定的在固定比特位中所插入的传输模式指示码,其中,独立时隙模式对应的传输模式指示码,和共占时隙模式对应的传输模式指示码,在固定比特位中所插入的固定值不同。The transmission mode indication is: the transmission mode indication code inserted in the fixed bits determined in the first time slot of the first subframe of the data frame during system design, wherein the independent time slot mode corresponds to The transmission mode indicator code of , and the transmission mode indicator code corresponding to the co-occupancy slot mode have different fixed values inserted in the fixed bits. 25.如权利要求21至24任一项所述的装置,其特征在于,所述开关量信息传输单元按照传输模式的指示,以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过对应时隙调配送入传输网络指:25. The device according to any one of claims 21 to 24, wherein the switch quantity information transmission unit is in accordance with the instruction of the transmission mode, and the preset switch quantity information and the time slot/bit carrying the switch quantity information. Corresponding relationship, dispatching the data frame including the switching information of the current channel into the transmission network through the corresponding time slot means: 当传输模式指示为独立时隙模式时,以4个子帧为一个复帧作为开关量信息传输单元,根据当前通道在网络系统设计时确定的该通道的开关量信息与承载其的时隙/比特位的对应关系,在第2、3、4子帧时隙中的固定比特位中写入指示该通道开关量信息的序列码,并发送到传输网络。When the transmission mode is indicated as independent time slot mode, 4 subframes are used as a multiframe as the switching information transmission unit, according to the switching information of the channel determined during the network system design of the current channel and the time slot/bit that carries it. The corresponding relationship between the bits is written in the fixed bits in the 2nd, 3rd, and 4th subframe time slots, and the sequence code indicating the switching quantity information of the channel is written and sent to the transmission network. 26.如权利要求21至24任一项所述的装置,其特征在于,所述开关量信息传输单元按照传输模式的指示,以及预设的开关量信息与承载其的时隙/比特位的对应关系,将包括当前通道的开关量信息的数据帧通过对应时隙调配送入传输网络的过程包括:26. The device according to any one of claims 21 to 24, wherein the switching quantity information transmission unit is in accordance with the instruction of the transmission mode, and the preset switching quantity information and the time slot/bit carrying it. Corresponding relationship, the process of dispatching the data frame including the switch quantity information of the current channel into the transmission network through the corresponding time slot includes: 当传输模式指示为共占时隙模式时,以8个子帧为一个复帧作为开关量信息传输单元,根据当前通道在网络系统设计时确定的该通道的开关量信息与承载其的时隙/比特位的对应关系,在所属子帧第一时隙的固定比特位写入指示该通道开关量信息的序列码,并发送到传输网络。When the transmission mode is indicated as the shared time slot mode, 8 subframes are used as a multiframe as the switching quantity information transmission unit. According to the switching quantity information of the channel and the time slot/ The corresponding relationship between the bits is to write a sequence code indicating the switch quantity information of the channel in the fixed bit of the first time slot of the subframe to which it belongs, and send it to the transmission network.
CN201510370136.6A 2015-06-29 2015-06-29 Multi-channel switch amount transmission method and device Expired - Fee Related 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 Expired - Fee Related 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 杭州中导科技开发有限公司 Environmental 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 杭州中导科技开发有限公司 Environmental 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
US8823498B2 (en) Transceiver
CN102572352B (en) HDMI multiplexing method, HDMI, and equipped provided with HDMI
CN105046911B (en) A kind of multi-channel switch amount transmission method and device
CN115378419B (en) Control circuit for trimming fuse
CN105185072B (en) Multi-channel switch amount transmission method and device
KR100766031B1 (en) Two-Wire Interface Having Dynamically Adjustable Data Fields Depending On Operation Code
CN103298152B (en) Based on bus type many illumination collector of wireless telecommunications
US20030144817A1 (en) Smart module and adapter apparatus
CN103064329A (en) Photovoltaic device data collection system and implementation method based on singlechip
CN109298230B (en) Acquisition device for current transformer
CN102385563A (en) USB (universal serial bus) port reading and writing device and method of 1-wire bus
CN112566307A (en) Safety display system and safety display method
CN101635609B (en) High-reliability control system based on asynchronous serial communication and control method thereof
CN210270888U (en) Single-bus communication circuit
CN107993357A (en) A kind of intelligent gas meter system that data are read easy to data center
CN203366514U (en) Bus type multi-illumination collector based on wireless communication
CN105553859A (en) System and method for enabling SFP modules to be adaptive to interfaces
CN203554492U (en) Controller LAN bus intelligent interface device and satellite
CN116901781A (en) CAN network, CAN network control method and energy storage equipment
CN208781216U (en) Intelligent information managing device and system
CN210431973U (en) Two-line coding control synchronous LED lamp strip
CN208113030U (en) A DMX512 decoder and a communication system using the decoder
CN201600578U (en) Multi-machine synchronous self-calibration bell controller
CN109298980B (en) A kind of IIC memory chip shared circuit, electronic device and backup circuit switching method thereof
CN222169809U (en) Power line communication circuit, power line communication system and electronic equipment

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
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 Co.,Ltd.

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

Applicant before: RAISECOM TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190607