CN105868142A - Signal processing method and device integrating various protocol communication modes - Google Patents

Signal processing method and device integrating various protocol communication modes Download PDF

Info

Publication number
CN105868142A
CN105868142A CN201610484860.6A CN201610484860A CN105868142A CN 105868142 A CN105868142 A CN 105868142A CN 201610484860 A CN201610484860 A CN 201610484860A CN 105868142 A CN105868142 A CN 105868142A
Authority
CN
China
Prior art keywords
signal
toggle switch
external equipment
data
signal processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610484860.6A
Other languages
Chinese (zh)
Other versions
CN105868142B (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.)
Wuhan Jingce Electronic Technology Co Ltd
Original Assignee
Wuhan Jingce Electronic 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 Wuhan Jingce Electronic Technology Co Ltd filed Critical Wuhan Jingce Electronic Technology Co Ltd
Priority to CN201610484860.6A priority Critical patent/CN105868142B/en
Publication of CN105868142A publication Critical patent/CN105868142A/en
Application granted granted Critical
Publication of CN105868142B publication Critical patent/CN105868142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to a signal processing method and device integrating various protocol communication modes. The device comprises various communication interfaces, an embedded MCU (microprogrammed control unit), a format selection dial switch and a signal output selection dial switch. The method includes following steps: (1), connecting external equipment signals to the signal processing device, and setting a priority sequence of the external equipment signals; (2), analyzing the signals, and setting a receiving flag position; (3), processing the receiving flag position 1 by a priority processing function, and storing external equipment signal data with highest priority; (4), selecting a data format integration mode according to a dial state of the format selection dial switch for format integration processing to acquire integrated signals; (5), according to a dial state of the signal output selection dial switch, sequentially selecting the communication interfaces to output the integrated signals according to the priority sequence. By using the method, data connection among different equipment can be realized, and data format conversion transmission among the equipment can be realized.

Description

A kind of signal processing method integrating polytype protocol mode and device
Technical field
The present invention relates to communication and signal processing technology field, particularly relate to a kind of integration polytype protocol mode Signal processing method and device.
Background technology
Along with the progress of society, the change that science and technology is maked rapid progress, between various equipment, data interaction increasingly tends to agreement Standardization and communication interface mode diversification.Lack one in the market between distinct device, carry out data form and lead to Communication interface mode integrates the equipment of process.
For communication interface between two equipment, different, the different situation of communication data format, repaiies the most mostly Change the communication interface of one of two equipment and data form to meet with another one equipment realizes normal communication, so revise and add Big equipment uses the development progress of process, expense and difficulty.
The patent documentation of Patent No. CN201020102851.4 disclose a kind of high performance communication process and control flat Table apparatus, it by power module, power on configuration module, function expanding module, RS-232 serial interface module, gigabit Ethernet mould The parts compositions such as block, processor control module, co-processor module, pci interface module.It relies on high speed processor control module And second-level cache, fast zoom table and the communication co-processor module of support flexible configuration being internally integrated, it is achieved routing device Control, can support that the interconnection and interflow of multi-protocols multiple communication interface is applied.But the limitation that this patent exists is: 1, range of application It is confined to routing device field;2, the data of transmission can not be carried out format analysis processing;3, can not be to other communication interfaces multiple Signal processes.
Number of patent application be 201510560049.7 patent documentation disclose able to programme to ModBus of a kind of two lines bus Multi-protocol interface transducer.It includes controller, display device, slave mode switching circuit, two line communication circuit and RS485/RS232 interface circuit.This transducer is integrated with two line communication circuit and RS485/RS232 interface circuit, changes Become the conversion regime of single face pattern, supported that two lines bus, RS485, RS232 multiple interfaces and ModBus interface carry out turning Change, improve the integrated level of transducer.But the limitation that this patent exists is: 1, can not realize at the conversion of various communication interfaces Reason;2, the data of transmission can not be carried out format analysis processing.
In view of this, it is necessary to a kind of signal processing method integrating polytype protocol mode and device are provided, To solve the problems referred to above.
Summary of the invention
The deficiency existed for problem pointed in background technology and prior art, it is an object of the invention to provide one Plant signal processing method and the device integrating polytype protocol mode, the equipment electrical connection of distinct interface can be used To realizing communication together, this product can meet more application demand according to predetermined demand integration multiple communication modes, very well Achieve cutting out property of function and application.Meet and the integration of diversification signal and data form processed, with realize design process, Test process and the high efficiency of application process.
To achieve these goals, the technical solution adopted in the present invention is: a kind of integration polytype protocol side The signal processing method of formula, can realize the signal of various communication interfaces type protocol data form as desired and communication modes Mutual with external equipment signal, it is characterised in that use the signal processing apparatus integrating polytype protocol mode, institute State signal processing apparatus and include that polytype communication interface, embedded MCU, form select toggle switch and signal output to select Toggle switch, described signal processing method comprises the steps:
(1) at least one need the external equipment signal carrying out signal integration process be linked into described polytype communication interface On, and the priority orders of at least one external equipment signal described is set in described embedded MCU;
(2) the communication interface type receiver function one to one with every kind of described external equipment signal is provided;Embedded MCU connects Receiving described external equipment signal, and described external equipment signal resolution becomes external equipment signal data, described external equipment is believed Number receiver function corresponding to communication interface type receive this external equipment signal data and mark position 1 will be received;
(3) a priority processing function, described priority processing function is provided according to described priority orders, all communications to be connect The reception flag bit of the receiver function that mouth type is corresponding is scanned, and is set outside the highest to reception mark position 1 and priority Standby signal data preserves;
(4) the dial-up condition selecting data form Integration Mode selecting toggle switch according to described form preserves in step (3) Described external equipment signal data carry out data form integration process obtain integrated signal;
(5) select the dial-up state of toggle switch according to the output of described signal, select communication successively according to described priority orders Interface type exports described integrated signal.
The signal processing method integrating polytype protocol mode as above, it is characterised in that step (1) institute State various communication interfaces include network interface, USB interface, serial ports, parallel port, SPI, I2C, CAN, LIN, AD in DA, GPIO at least two Kind.
The signal processing method integrating polytype protocol mode as above, it is characterised in that step (1) institute Stating preservation priority orders and output priority order that priority orders farther includes to be independently arranged, step (3) is described excellent First level order uses described preservation priority orders, and step (5) described priority orders uses described output priority order.
The signal processing method integrating polytype protocol mode as above, it is characterised in that step (5) is also After comprising the steps: integrated signal output, the receiver function that the communication interface type of described external equipment signal is corresponding Flag bit will be received reset.
The signal processing method integrating polytype protocol mode as above, it is characterised in that described form Selecting toggle switch is 8 toggle switch, and corresponding span is 0 ~ 255, and setting data form most species is 256 kinds.
The signal processing method integrating polytype protocol mode as above, it is characterised in that described signal Output selects toggle switch to be 8 toggle switch, and every kind of corresponding toggle switch of communication interface type, toggle switch pushes " 1 ", then this kind of selected output of communication interface type, toggle switch pushes " 0 ", then this kind of communication interface type is the most selected defeated Go out.
The present invention also provides for a kind of signal processing apparatus integrating polytype protocol mode, it is characterised in that institute State signal processing apparatus and include that various communication interfaces, embedded MCU, form select toggle switch and signal output to select dial-up Switch,
Electrically connecting between described various communication interfaces and embedded MCU, it is whole that various communication interfaces needs to carry out signal for access The external equipment signal that conjunction processes;
Described embedded MCU is responsible for processing the external equipment signal received, and is converted into external equipment signal data, and will Described external equipment signal data preserves according to the priority orders pre-set;The external equipment signal number preserved Carry out Data Integration process according to the form selecting toggle switch to choose according to described form and obtain integrated signal;Defeated according still further to signal Go out the communication interface type selecting toggle switch to choose to be sent by described integrated signal successively with the priority orders pre-set To external equipment;
Described form selects to electrically connect between toggle switch and embedded MCU, the form integrated for setting data;
The output of described signal selects to electrically connect between toggle switch and embedded MCU, is used for setting communication interface type output side Formula.
The signal processing apparatus integrating polytype protocol mode as above, it is characterised in that described multiple Communication interface include network interface, USB interface, serial ports, parallel port, SPI, I2C, CAN, LIN, AD at least two in DA, GPIO.
The signal processing apparatus integrating polytype protocol mode as above, it is characterised in that described form Toggle switch and signal output is selected to select toggle switch to be 8 toggle switch.
A kind of signal processing apparatus integrating polytype protocol mode, it is characterised in that this integration polytype The signal processing apparatus of protocol mode at least includes two integration polytype protocol sides as above connected The signal processing apparatus of formula.
Compared with prior art, the present invention has a following beneficial effect: the integration polytype protocol of the present invention The signal processing method of mode and device:
1, can receive multiple input signal, after process, the mode of optional output has multiple, it is achieved the number between distinct device According to connection.
2, the data form data format requirement with satisfied output reception equipment of input can be revised, it is achieved between equipment Data Format Transform transmission.
3, distinct device, different data between communication modes interface, different data format can be solved according to above 1,2 Alternately, it is to avoid the soft and hardware part of amendment field apparatus.
4, after data can being got out with Based PC or other equipment, the design product is coordinated to send, it is achieved data The function of signal generator, well meets design, test, the use of application process.
5, this product has the advantage that use is simple, low cost, volume are little, practical.
Accompanying drawing explanation
Fig. 1 is the structural representation of the signal processing apparatus integrating polytype protocol mode of the present invention.
Fig. 2 is the first priority processing letter of the signal processing method integrating polytype protocol mode of the present invention Number flow chart.
Fig. 3 is the format analysis processing flow chart of the signal processing method integrating polytype protocol mode of the present invention.
Symbol description in accompanying drawing: 1 network interface communication interface;2 USB communication interfaces;3 serial communication interfaces;4 is embedding Enter formula MCU;5 forms select toggle switch;6 signal outputs select toggle switch.
Detailed description of the invention
In order to be more fully understood that the present invention, it is further elucidated with present disclosure below in conjunction with embodiment, but the present invention Content is not limited solely to the following examples.The present invention can be made various changes or modifications by those skilled in the art, these The equivalent form of value is equally within the scope of claims listed by the application limit.
A kind of signal processing method integrating polytype protocol mode of the embodiment of the present invention, can be by multiple communication It is mutual that the signal of interface type agreement data form as desired and communication modes realize with external equipment signal.Use and integrate The signal processing apparatus of polytype protocol mode, as it is shown in figure 1, described signal processing apparatus includes that multiple communication connects Mouth, embedded MCU 4, form select toggle switch 5 and signal output to select toggle switch 6.Described various communication interfaces can With selected from network interface, USB interface, serial ports, parallel port, SPI, I2C, CAN, LIN, AD at least two in DA, GPIO, can be according to reality Border demand is added selecting to use.The present embodiment to include three kinds of communication interfaces, i.e. network interface communication interface 1, USB communication interface 2, as a example by serial communication interface 3, structure and the main flow of described signal processing method of described signal processing apparatus is introduced.
The signal processing apparatus of described integration polytype protocol mode, network interface communication interface 1, USB communication interface 2, serial communication interface 3 electrically connects with between embedded MCU 4 respectively, and it is whole that various communication interfaces need to carry out signal for access The external equipment signal that conjunction processes.
Described embedded MCU 4 is responsible for processing the external equipment signal received, and is converted into external equipment signal number According to, and described external equipment signal data is preserved according to the priority orders pre-set;The outside preserved sets Standby signal data carries out Data Integration process according to the form that described form selects toggle switch 5 to choose and obtains integrated signal;Again Select the communication interface type chosen of toggle switch 6 with the priority orders that pre-sets successively by described whole according to signal output Close signal and be sent to external equipment.
Described form selects toggle switch 5 to electrically connect between embedded MCU 4, the form integrated for setting data.
The output of described signal selects toggle switch 6 to electrically connect between embedded MCU 4, is used for setting communication interface type The way of output.
Generally speaking, described signal processing method comprises the steps:
(1) at least one need the external equipment signal carrying out signal integration process be linked into described polytype communication interface On, and the priority orders of at least one external equipment signal described is set in described embedded MCU 4;
(2) the communication interface type receiver function one to one with every kind of described external equipment signal is provided;Embedded MCU 4 Receive described external equipment signal, and described external equipment signal resolution is become external equipment signal data, described external equipment The receiver function that the communication interface type of signal is corresponding receives this external equipment signal data and will receive mark position 1;
(3) a priority processing function, described priority processing function is provided according to described priority orders, all communications to be connect The reception flag bit of the receiver function that mouth type is corresponding is scanned, and is set outside the highest to reception mark position 1 and priority Standby signal data preserves;
(4) the dial-up condition selecting data form Integration Mode selecting toggle switch 5 according to described form preserves in step (3) Described external equipment signal data carry out data form integration process obtain integrated signal;
(5) select the dial-up state of toggle switch 6 according to the output of described signal, select communication successively according to described priority orders Interface type exports described integrated signal.
Step (1) described priority orders farther includes the preservation priority orders that is independently arranged and output priority is suitable Sequence, step (3) described priority orders uses described preservation priority orders, and step (5) described priority orders uses described Output priority order.It is to say, priority orders can be unified to be set to one, all adopt in step (3) and step (5) Take this kind of priority orders.Priority orders in step (3) and step (5) can also be independently set to different suitable Sequence, including preserving priority orders and output priority order, then takes both excellent in step (3) and step (5) respectively First level order.
After step (5) also comprises the steps: integrated signal output, the communication interface class of described external equipment signal The receiver function that type is corresponding will receive flag bit and reset.That is, after all end of outputs, system is automatically by clear for all reception flag bits Zero, wait subsequent operation.
Below as a example by specific embodiment, each step of this signal processing method is described in detail.
In the present embodiment, for step (1) and step (2), when external equipment signal accesses via network interface communication interface 1 During this signal processing apparatus, external equipment is electrically connected to this signal processing based on network interface communication protocol signal by standard network interface line On the standard network interface interface of device, when external data is by network interface mode communication, data enter into this via above-mentioned electrical connection On the network interface communication interface 1 of signal processing apparatus, then network interface communication interface 1 is electrically connected to carry inside embedded MCU again In network interface processing module, network interface communication interface 1 processes the external equipment signal that outside input is come in, and carries via embedded MCU Network interface processing module be converted to be capable of identify that inside embedded MCU the external equipment signal data of process, by embedded MCU This external equipment signal data is received by the receiver function of the network interface that portion is corresponding, and corresponding network interface is received mark position 1.
The concrete grammar that arranges of step (2) described reception flag bit comprises the steps of: (2.1) described embedded MCU 4 After power supply initializes, the receiver function of all kinds communication interface such as is constantly at the state to be received;
(2.2) receiving, when embedded MCU, the external equipment signal accessed on network interface communication interface 1, this external equipment is believed Number carrying corresponding network interface processing module via embedded MCU resolves to external equipment signal data, by the reception of corresponding network interface Function receives this external equipment signal data, and the receiver function of network interface is by the reception mark position 1 of network interface, mark record net simultaneously Mouth receives data.
When external equipment signal accesses this signal processing apparatus via USB communication interface 2 or serial communication interface 3, its Handling process is ibid.
Every kind of communication interface has a corresponding receiver function, is provided with the reception flag bit that this communication interface is corresponding. Whether the reception flag bit according to arranging puts 1, and recording is which kind of communication interface receives data.
When various communication interfaces has signal to access simultaneously, the reception letter of embedded MCU each corresponding types communication interface Number all can receive data, in order to avoid multiple data are simultaneously entered, and cannot determine that any data first to carry out at integration Reason, needs according to the first priority processing function within embedded MCU, according to embedded MCU software pre-set preferential Level order selects the data of the receiver function of high priority correspondence communication interface to preserve, and does not preserve low priority communication and connect The data of mouth.Priority orders herein is preservation priority orders.It is pre-that the design method takes priority to come according to numeral First record, numerical value is the least, and priority is the highest, as shown in table 1.
The priority level initializing that table 1 first priority processing function is corresponding
Pre-set priority order can be modified according to the actual requirements herein.
First priority processing function is main according to the preservation priority orders pre-set, and connects each communication interface Receipts flag bit is scanned, and is 1 and receiver function corresponding to the highest communication interface of priority orders connects by receiving flag bit The external equipment signal data received preserves, and the data that receiver function corresponding to the communication interface of low priority receives Will not be saved.
Specific in the present embodiment, this process is:
(3.1) priority orders that described first priority processing function is arranged with step (1) is various types of with scan mode contrast Whether the reception flag bit of type communication interface puts 1, the network interface that the described first first scan priority of priority processing function meeting is the highest Receive flag bit, if 1, then enter the reception flow chart of data processing that network interface is corresponding, the number received by the receiver function of network interface According to preserving;
(3.2) if network interface flag bit does not put 1, then the USB interface that the first priority processing function meeting scan priority is second highest Receive flag bit, if 1, then enter the reception flow chart of data processing that USB interface is corresponding, the receiver function of USB interface is received To data preserve;
(3.3) if network interface and USB interface flag bit the most do not put 1, then the first priority processing function can scan priority Low serial ports receives flag bit, if 1, then enters the reception flow chart of data processing that serial ports is corresponding, by the receiver function of serial ports The data received preserve;Otherwise enter step (3.1), circulate above-mentioned handling process.
After carrying out above-mentioned process, obtain the external equipment signal number of the corresponding communication interface that embedded MCU receives According to, leave the memory block within embedded MCU in.
In step (4), embedded MCU reading format select toggle switch 5 dial-up state, form select toggle switch with Embedded MCU is electrically connected, and can determine whether 8 switch institutes inside toggle switch according to the low and high level of embedded MCU corresponding interface Place's state.It is combined into numerical value after the low and high level of 8 toggle switch selected with the design product is read via embedded MCU Binary system maximum is 11111111=255, i.e. 0 ~ 255, so the 8 bit format toggle switch reasons selected for the design product 256 kinds of data forms can be distinguished on Lun.If the not enough toggle switch that can also add, add one and just can count before According to the selection being multiplied by 256 kinds of data forms on the basis of form.
First embedded MCU reading format selects toggle switch level, selects 8 choosings of toggle switch herein according to form Selecting dial-up, definition is from left to right followed successively by the order of a high position-> low level, when toggle switch One-position switch is dialled as high level, the most embedding Entering formula MCU and read that to record this position be 1, if dialling as low level, then embedded MCU records this position is 0, thus obtains form choosing Select the numerical value that toggle switch is corresponding, thus realize selecting different-format.
After reading the numerical value that form selection toggle switch state is corresponding, it is whole that this value is supplied to data form as parameter Closing function, the external equipment signal data that the receiver function of the corresponding interface that step (3) preserves receives simultaneously also serves as parameter Inputing to data form and integrate function, data form is integrated function and is selected corresponding data form according to the state value of toggle switch Integration Mode carries out data form integration process and obtains integrated signal the external equipment signal data preserved in step (3).Number Can be configured according to practical situations according to form Integration Mode, for this products application, at present the mode of design just like Under several, as shown in table 2.
Table 2 form selects the data form Integration Mode that toggle switch sets
Data form Integration Mode:
For form 1: directly the storage data received are sent.
For form 2: according to the data received, data form is integrated function and is carried out four arithmetic operation process, first basis During external communication, using arrange form select toggle switch be 256 time receive outside data as the parameter carrying out form integration Source (the data format definition table that following 0x5a, 0x5a are corresponding), judges it is to process a number according to parameter value_1 Or total data is processed;Then judge it is which computing in addition subtraction multiplication and division according to parameter value_2;Then root The single several four arithmetic operations carrying out correspondence according to the judgement of first two steps process or the process of total data, thus realize original number According to the change of itself, then data preserve again.
For form 3 ~ 5: select the selection of toggle switch to enter data form according to the data received and form and integrate letter Inside the handling processes that number is corresponding, this be based on initial data on the basis of, re-create an array to preserve interpolation Data head or data tail and initial data, then data are saved in inside the array that this is newly created.
For the narration inside above table, for the initial data received, if unprocessed form data to be changed, base When toggle switch state respective value is 11111111=255, the exogenous data now received is 0x5a, 0x5a ... form is opened Head, when both conditions are satisfied, then the data received are the parameter source carrying out integrating.
For the data format definition such as following table that 0x5a, 0x5a of above-mentioned 5 kinds of modes are corresponding:
Form can be added according to the actual requirements herein.The integration of this data form meets foregoing schemes and issues, It is only 11111111=255 when toggle switch state value, when the data front two being simultaneously received is 0x5a, 0x5a, according to lattice The data that formula issues just can be stored in data form and integrate the memory block of function.
Still can be able to use again to open electricity after power down to meet the parameter of setting, the design can will issue simultaneously Data be stored in the power down that embedded MCU carries and preserve flash district, if there being new parameter to need to re-issue, it is only necessary to Meet above-mentioned two condition, the data of last storage can be updated.
After processing via above-mentioned form integration, external equipment signal data passes through data form integration and processes, and obtains Integrated signal, is ready for sending away to external device.
Formula MCU that is then inserted into reads signal output and selects the state of toggle switch 6, it is judged which kind of communication interface type output Mode is selected, and the design product can select the multi-signal way of output, sets in advance according to embedded MCU software when output The priority orders put successively is ranked output, the second priority processing function within embedded MCU be responsible for process.This The priority orders at place i.e. output priority order.As shown in table 3.
The priority level initializing that table 3 second priority processing function is corresponding
Output priority order can be revised herein, and can be independently arranged between above-mentioned table 1 input processing priority.
The output of described signal selects toggle switch to be 8 toggle switch, every corresponding a kind of communication interface type output side Formula, on off state pushes " 1 ", is i.e. read as high level, then this kind of way of output is selected, and on off state pushes " 0 ", i.e. reads For low level, then this kind of way of output is the most selected.In the present embodiment, specifically arrange as shown in table 4 below.
The output of table 4 signal selects the mode signal output that toggle switch sets
Toggle switch 8 Toggle switch 7 Toggle switch 6 Toggle switch 5 Toggle switch 4 Toggle switch 3 Toggle switch 2 Toggle switch 1
0 Network interface mode does not sends USB mode does not sends Serial mode does not sends Reserved Reserved Reserved Reserved Reserved
1 Network interface mode sends USB mode sends Serial mode sends
First 3 of toggle switch defined in this design is network interface, USB, selection that serial mode is corresponding;Priority network interface-> USB- > serial ports.
In the present embodiment, the handling process of described second priority processing function comprises the steps:
(5.1) described second priority processing function reads signal output and selects first dial-up state of toggle switch, if It is 1, then exports data in network interface mode, after output ED, enter next step;If 0, then it is directly entered next step;
(5.2) described second priority processing function reads signal output and selects the second dial-up state of toggle switch, if It is 1, then exports data with usb mode, after output ED, enter next step;If 0, then it is directly entered next Step
(5.3) described second priority processing function reads signal output and selects the 3rd dial-up state of toggle switch, if It is 1, then exports data with serial mode, after output ED, then terminate flow process;If 0, the most directly terminate flow process.
Can be same for this signal processing apparatus, the external equipment of signal incoming end and the external equipment of signal output part One external equipment, it is also possible to be different external equipments.It is to say, signal accesses and signal output function is outside Device A is carried out.Or signal accesses from external equipment A, and signal exports external equipment B.
When input signal is network interface, the when that output signal also selecting network interface, i.e. input signal is selected with output signal mode Select mutually simultaneously as a network interface only supported by the design device hardware, so the network interface signal acquiescence of output can be sent to provide The equipment of input signal.And if need to be supplied to third party device, this product now can be selected two or more, then root The number of it is believed that output selects toggle switch and form to select the selection of toggle switch to realize the port of input mode to third-party Port is identical.
That is, it is network interface when input signal, the when that output signal also selecting network interface, when signal accesses from external equipment A, Output, to external equipment B, now needs to arrange two these signal processing apparatus: signal processing apparatus A and signal processing apparatus B, and The network interface interface of signal processing apparatus A is connected with external equipment A, by the network interface interface of signal processing apparatus B and external equipment B It is connected.Signal processing apparatus A is connected with serial ports or USB port with signal processing apparatus B.Then select to dial according to signal output The selection of code switch and form selection toggle switch realizes external equipment A and accesses with network interface signal, also exports with network interface signal To external equipment B.

Claims (10)

1. integrate a signal processing method for polytype protocol mode, can be by the letter of various communication interfaces type protocol What number as desired data form and communication modes realized with external equipment signal is mutual, it is characterised in that use integration multiple The signal processing apparatus of type protocol communication modes, described signal processing apparatus includes polytype communication interface, embedded MCU, form select toggle switch and signal output to select toggle switch, and described signal processing method comprises the steps:
(1) at least one need the external equipment signal carrying out signal integration process be linked into described polytype communication interface On, and the priority orders of at least one external equipment signal described is set in described embedded MCU;
(2) the communication interface type receiver function one to one with every kind of described external equipment signal is provided;Embedded MCU connects Receiving described external equipment signal, and described external equipment signal resolution becomes external equipment signal data, described external equipment is believed Number receiver function corresponding to communication interface type receive this external equipment signal data and mark position 1 will be received;
(3) a priority processing function, described priority processing function is provided according to described priority orders, all communications to be connect The reception flag bit of the receiver function that mouth type is corresponding is scanned, and is set outside the highest to reception mark position 1 and priority Standby signal data preserves;
(4) the dial-up condition selecting data form Integration Mode selecting toggle switch according to described form preserves in step (3) Described external equipment signal data carry out data form integration process obtain integrated signal;
(5) select the dial-up state of toggle switch according to the output of described signal, select communication successively according to described priority orders Interface type exports described integrated signal.
The signal processing method of integration polytype protocol mode the most according to claim 1, it is characterised in that step Suddenly (1) described various communication interfaces include network interface, USB interface, serial ports, parallel port, SPI, I2C, CAN, LIN, AD in DA, GPIO At least two.
The signal processing method of integration polytype protocol mode the most according to claim 1, it is characterised in that step Suddenly (1) described priority orders farther includes preservation priority orders and output priority order, the step (3) being independently arranged Described priority orders uses described preservation priority orders, and step (5) described priority orders uses described output priority Sequentially.
The signal processing method of integration polytype protocol mode the most according to claim 1, it is characterised in that step Suddenly after (5) also comprise the steps: integrated signal output, corresponding the connecing of communication interface type of described external equipment signal Receive function and will receive flag bit clearing.
The signal processing method of integration polytype protocol mode the most according to claim 1, it is characterised in that institute Stating form selects toggle switch to be 8 toggle switch, and corresponding span is 0 ~ 255, and setting data form most species is 256 Kind.
The signal processing method of integration polytype protocol mode the most according to claim 1, it is characterised in that institute Stating signal output selects toggle switch to be 8 toggle switch, every kind of corresponding toggle switch of communication interface type, toggle switch Pushing " 1 ", then this kind of selected output of communication interface type, toggle switch pushes " 0 ", then this kind of communication interface type is the most selected Middle output.
7. the signal processing apparatus integrating polytype protocol mode, it is characterised in that described signal processing apparatus Toggle switch and signal output is selected to select toggle switch including various communication interfaces, embedded MCU, form,
Electrically connecting between described various communication interfaces and embedded MCU, it is whole that various communication interfaces needs to carry out signal for access The external equipment signal that conjunction processes;
Described embedded MCU is responsible for processing the external equipment signal received, and is converted into external equipment signal data, and will Described external equipment signal data preserves according to the priority orders pre-set;The external equipment signal number preserved Carry out Data Integration process according to the form selecting toggle switch to choose according to described form and obtain integrated signal;Defeated according still further to signal Go out the communication interface type selecting toggle switch to choose to be sent by described integrated signal successively with the priority orders pre-set To external equipment;
Described form selects to electrically connect between toggle switch and embedded MCU, the form integrated for setting data;
The output of described signal selects to electrically connect between toggle switch and embedded MCU, is used for setting communication interface type output side Formula.
The signal processing apparatus of integration polytype protocol mode the most according to claim 7, it is characterised in that institute State various communication interfaces include network interface, USB interface, serial ports, parallel port, SPI, I2C, CAN, LIN, AD in DA, GPIO at least two Kind.
The signal processing apparatus of integration polytype protocol mode the most according to claim 7, it is characterised in that institute Stating form selects toggle switch and signal output to select toggle switch to be 8 toggle switch.
10. the signal processing apparatus integrating polytype protocol mode, it is characterised in that this integration polytype is assisted The signal processing apparatus of view communication modes at least includes two integration multiple types as described in any one of claim 7-9 connected The signal processing apparatus of type protocol mode.
CN201610484860.6A 2016-06-28 2016-06-28 A kind of signal processing method and device for integrating multiple types protocol mode Active CN105868142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610484860.6A CN105868142B (en) 2016-06-28 2016-06-28 A kind of signal processing method and device for integrating multiple types protocol mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610484860.6A CN105868142B (en) 2016-06-28 2016-06-28 A kind of signal processing method and device for integrating multiple types protocol mode

Publications (2)

Publication Number Publication Date
CN105868142A true CN105868142A (en) 2016-08-17
CN105868142B CN105868142B (en) 2019-01-29

Family

ID=56655748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610484860.6A Active CN105868142B (en) 2016-06-28 2016-06-28 A kind of signal processing method and device for integrating multiple types protocol mode

Country Status (1)

Country Link
CN (1) CN105868142B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647702A (en) * 2016-12-14 2017-05-10 交控科技股份有限公司 Vehicle and vehicle controller interface debugging device
CN109284244A (en) * 2018-01-24 2019-01-29 上海云统信息科技有限公司 A kind of off-line data synchronization storage system
CN109889490A (en) * 2019-01-02 2019-06-14 肇庆奥迪威传感科技有限公司 Protocol conversion device, method, apparatus and storage medium
CN110032137A (en) * 2019-04-26 2019-07-19 深圳市佳运通电子有限公司 Functional cards and its application method for oil field heating furnace management system
CN110442070A (en) * 2019-09-09 2019-11-12 山东理工大学 A kind of signal light control tutoring system of changeable communication mode
CN111030867A (en) * 2019-12-18 2020-04-17 国网山西省电力公司电力科学研究院 Communication acquisition device based on dial switch and communication protocol configuration-free method
CN113138779A (en) * 2021-04-21 2021-07-20 中科亿海微电子科技(苏州)有限公司 FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
CN115223310A (en) * 2022-06-30 2022-10-21 无锡睿勤科技有限公司 OTG priority selection circuit and multichannel charging circuit
WO2023065648A1 (en) * 2021-10-22 2023-04-27 华为云计算技术有限公司 Data processing method and related device
CN116074461A (en) * 2023-03-01 2023-05-05 南京芯驰半导体科技有限公司 Image frame sending and displaying method, device, component and traffic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201699737U (en) * 2010-01-28 2011-01-05 中国电子科技集团公司第五十四研究所 High-performance communication processing and control platform device
CN102932853A (en) * 2012-09-19 2013-02-13 邦讯技术股份有限公司 Method, system and device for ensuring quality of service (QoS) of fusion base station service
EP2928115A1 (en) * 2014-04-04 2015-10-07 Aalto-korkeakoulusäätiö Enhanced mobility management
CN105045743A (en) * 2015-07-27 2015-11-11 燕山大学 Multi-protocol conversion method capable of realizing priority scheduling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201699737U (en) * 2010-01-28 2011-01-05 中国电子科技集团公司第五十四研究所 High-performance communication processing and control platform device
CN102932853A (en) * 2012-09-19 2013-02-13 邦讯技术股份有限公司 Method, system and device for ensuring quality of service (QoS) of fusion base station service
EP2928115A1 (en) * 2014-04-04 2015-10-07 Aalto-korkeakoulusäätiö Enhanced mobility management
CN105045743A (en) * 2015-07-27 2015-11-11 燕山大学 Multi-protocol conversion method capable of realizing priority scheduling

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106647702A (en) * 2016-12-14 2017-05-10 交控科技股份有限公司 Vehicle and vehicle controller interface debugging device
CN106647702B (en) * 2016-12-14 2019-05-24 交控科技股份有限公司 A kind of vehicle and Vehicle Controller interface debugging device
CN109284244A (en) * 2018-01-24 2019-01-29 上海云统信息科技有限公司 A kind of off-line data synchronization storage system
CN109889490B (en) * 2019-01-02 2021-10-22 肇庆奥迪威传感科技有限公司 Protocol conversion device, method, apparatus and storage medium
CN109889490A (en) * 2019-01-02 2019-06-14 肇庆奥迪威传感科技有限公司 Protocol conversion device, method, apparatus and storage medium
CN110032137A (en) * 2019-04-26 2019-07-19 深圳市佳运通电子有限公司 Functional cards and its application method for oil field heating furnace management system
CN110032137B (en) * 2019-04-26 2020-04-24 深圳市佳运通电子有限公司 Functional board card for oil field heating furnace management system and application method thereof
CN110442070A (en) * 2019-09-09 2019-11-12 山东理工大学 A kind of signal light control tutoring system of changeable communication mode
CN111030867A (en) * 2019-12-18 2020-04-17 国网山西省电力公司电力科学研究院 Communication acquisition device based on dial switch and communication protocol configuration-free method
CN113138779A (en) * 2021-04-21 2021-07-20 中科亿海微电子科技(苏州)有限公司 FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
CN113138779B (en) * 2021-04-21 2024-03-15 中科亿海微电子科技(苏州)有限公司 FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
WO2023065648A1 (en) * 2021-10-22 2023-04-27 华为云计算技术有限公司 Data processing method and related device
CN115223310A (en) * 2022-06-30 2022-10-21 无锡睿勤科技有限公司 OTG priority selection circuit and multichannel charging circuit
CN116074461A (en) * 2023-03-01 2023-05-05 南京芯驰半导体科技有限公司 Image frame sending and displaying method, device, component and traffic equipment

Also Published As

Publication number Publication date
CN105868142B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN105868142A (en) Signal processing method and device integrating various protocol communication modes
CN102495353B (en) Radio frequency integrated circuit test system and control method thereof
CN112804128B (en) Bus control system and method supporting multiple protocols
CN103346982B (en) Star structure RapidIO interconnection system and exchange configuration method thereof
CN106326168B (en) Connecting circuit and computer system with same
CN206541145U (en) A kind of multi channel signals synchronous
CN104539502A (en) Method for adding modbus equipment in customized manner
CN107436851B (en) Four-line isolation system of serial peripheral interface and control method thereof
CN108696431B (en) Local area network port configuration method and device, switching chip and route switching equipment
CN114328318B (en) DMA controller for direct equipment interconnection for microcontroller and interconnection control method
CN104461966B (en) A kind of data buffer storage transmission method and its controller based on Nand Flash chips
CN114244909B (en) Protocol conversion circuit and related device
WO2004102411A1 (en) Controller interface
CN108415874B (en) Interface expansion device and method based on EIM bus
CN111079908B (en) Network-on-chip data processing method, storage medium, computer device and apparatus
CN214670200U (en) Conversion module for converting MODBUS TCP into multiple MODBUS slave stations
CN109407574A (en) Output-controlling device and its method may be selected in a kind of multibus
CN109933553B (en) Control system and design method thereof, group of control systems and electronic device
CN105472290A (en) Processing method and device for data transmitting and receiving operation modes
CN114328326B (en) Bus matrix port configurable microcontroller and internal data transmission method thereof
CN111178373B (en) Operation method, device and related product
CN103729326A (en) GPIO expansion method based on shifting registers
JP2001222564A (en) Logic emulation system
CN209248518U (en) A kind of solid state hard disk expansion board clamping and server
CN219811188U (en) Bridge circuit, bridge circuit integrated device and silicon substrate

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: 430070 Hubei City, Hongshan Province, South Lake Road, No. 53, Hongshan Venture Center, building on the 4 floor, No.

Applicant after: Wuhan fine test electronics group Limited by Share Ltd

Address before: 430070 Hubei City, Hongshan Province, South Lake Road, No. 53, Hongshan Venture Center, building on the 4 floor, No.

Applicant before: Wuhan Jingce Electronic Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant