CN104158793A - Method and apparatus for intelligent control of conversion of data protocols - Google Patents
Method and apparatus for intelligent control of conversion of data protocols Download PDFInfo
- Publication number
- CN104158793A CN104158793A CN201310192799.4A CN201310192799A CN104158793A CN 104158793 A CN104158793 A CN 104158793A CN 201310192799 A CN201310192799 A CN 201310192799A CN 104158793 A CN104158793 A CN 104158793A
- Authority
- CN
- China
- Prior art keywords
- interface
- conversion
- data
- program
- spi
- 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.)
- Pending
Links
Landscapes
- Computer And Data Communications (AREA)
- Communication Control (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to an intelligent data protocol conversion method and apparatus. The invention provides a data protocol conversion method which employs an interconnection type ARM processor provided with a DSP module to carry out software conversion, and provides an intelligent data protocol conversion apparatus. The apparatus comprises a master control unit, an upper layer interface unit and a lower layer interface unit. The master control unit can perform data protocol conversion according to mode needs. When an upper layer interface conversion mode works, data protocols among upper layer interfaces can be rapidly converted, such as conversion of a USB to an RS-232, conversion of the USB to an Ethernet interface, and the like; when a lower layer interface conversion mode works, data protocols among lower layer interfaces can be converted rapidly, such as conversion of I2C to SPI, conversion of the SPI to a parallel interface, and the like; and when the upper layer interface conversion mode and the lower layer interface conversion mode work, protocols of the upper layer interfaces and the lower layer interfaces can be interchanged rapidly, such as conversion of the USB to the SPI, conversion of a serial port to the SPI, control over on-off of a relay by an Ethernet, and the like. The ARM chip in the master control unit is provided with the DSP module, can rapidly carry out data processing, and ensures a high rate and a low error rate of data protocol conversion.
Description
Technical field
The invention belongs to intelligent data conversion and transmission field, particularly relate to a kind of method and apparatus of intelligent data protocol conversion.
Background technology
Along with the development of the universal and internet of things equipment of intelligent equipment in people life, electronic equipment miscellaneous is successively incorporated to internet, when equipment is incorporated to network interconnection intercommunication, data acquisition be converted into a various interface device difficult problem to be solved, host-host protocol miscellaneous has been applied to this field, but the protocol conversion between various device becomes a difficult problem.A kind of Based Intelligent Control data protocol conversion method and device have been invented in this case, have solved a difficult problem for nothing unified standard between various data acquisitions, host-host protocol, can be applicable on various data acquisitions, forward node.
Summary of the invention
The defect that the present invention exists in order to overcome prior art, has proposed a kind of data interactive method and interface arrangement with expansibility, maintainability, and the zero-clearance of realizing equipment room is interconnected.The present invention has changed the drawback of legacy device interface complexity, poor compatibility, and new information data interactive mode is provided.
Object of the present invention can be realized by following technical scheme:
Main control unit adopts the interconnection type ARM chip with DSP function, is suitable as the main control chip of the web-transporting device of data processing, and has abundant interface resource, is convenient to carry out interface data collection and transmission.
High-level interface adopts popular main flow interface in existing equipment, as USB, serial line interface, Ethernet interface, WiFi, blue tooth interface, ZigBee interface etc.Utilize high-level interface to realize this device and the data communication of host computer, by upper computer software client to equipment be configured, data transmission etc.
Lower layer interface is divided into analog quantity I/O mouth, digital quantity I/O mouth.Analog quantity I/O comprises A/D acquisition interface, D/A output interface.Digital quantity interface comprises switching value input/output interface, USART interface, I
2c interface, SPI interface, parallel data coffret, PWM output interface etc.Utilize data acquisition and the control of lower floor's Interface realization equipment to the equipment such as household electrical appliances, lathe, as break-make of the data acquisition to temperature simulation amount, control relay etc.
Brief description of the drawings
Figure mono-is the basic block diagram of intelligent data translation-protocol device provided by the invention
Specific embodiments
Below in conjunction with the invention will be further described.
As shown in the figure, intelligent data conversion equipment, comprises main control unit, high-level interface unit, lower floor's interface unit, described main control unit has variety of protocol interface controller, and be connected to human-computer interaction module, as TFT LCD touch-screen, button key circuit etc., can set device transmission mode.
Described high-level interface unit all links together with main control unit, and wherein said usb interface module is connected with host computer and adopts USB2.0 agreement; Described serial port module is connected with host computer and adopts RS-232 agreement; Described ethernet module and host computer and internet communication adopt ICP/IP protocol; Described WiFi module is connected with host computer and adopts IEEE802.11 agreement, the described bluetooth BlueTooth module employing IEEE802.15 agreement that is connected with host computer; Described ZigBee module is communicated by letter with host computer and is adopted IEEE802.15.4 agreement.
Described lower floor's interface unit can be connected with various transducers, controller, interface chip etc., and wherein said analog quantity I/O main circuit will comprise A/D collector and D/A controller; Wherein said switching value I/O main circuit will comprise pulse signal input and relay on-off output circuit; Described USART module is the serial line interface of Transistor-Transistor Logic level; Described I
2c interface adopts I
2c agreement and external chip carry out data interaction; Described spi bus interface mainly adopts SPI agreement to realize the data interaction between module; Described parallel interface mainly adopts parallel bus mode and outside equipment fast to carry out data interaction.
After the first start of system, first initialization apparatus, and enter the state of setting, and equipment operating state of living in is set as required, described operating state comprises that the pattern of setting, high-level interface turn lower floor's interface modes, high-level interface exchange model, lower layer interface exchange model etc.
The protocol conversion process program of utilizing main control unit realizes the mutual conversion between interface.The inner DSP module at a high speed that adopts realizes rapidly the conversion between protocol data, and main control unit inside is with various interface controller, convert rapidly level mode corresponding to each agreement to, guaranteed two-forty and the low error rate of data protocol conversion between each interface.
Claims (5)
1. Data Transport Protocol conversion method and a converting interface device, is characterized in that at least comprising main control unit, high-level interface unit and lower floor's interface unit.
2. the main control unit described in adopts the interconnection type ARM chip of DSP function, chip FLASH storage protocol conversion program, and following program: control GPIO interface routine, A/D capture program, D/A control program, serial ports program, ethernet controller program, USB program etc.
3. the high-level interface unit described in mainly contains USB interface, serial ports, Ethernet interface, WiFi interface, blue tooth interface and ZigBee interface etc., high-level interface unit is mainly realized and host computer data communication, described host computer mainly refers to computer, also refers to the MCU controller of upper level.
4. the lower floor's interface unit described in mainly contains analog quantity A/D and D/A interface, digital data acquisition and switch control interface, SPI interface, I
2c interface, USART interface, parallel interface etc., lower floor's interface unit is mainly used to carry out data interaction between controlled device or transducer, and described controlled device refers to relay and adopts various modules or the chip of above-mentioned interface protocol.
5. exploitation has host computer client software, is mainly used in equipment interface configuration and data transfer mode and selects, and host computer client software adopts C++ exploitation, has abundant human-computer interaction interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310192799.4A CN104158793A (en) | 2013-05-14 | 2013-05-14 | Method and apparatus for intelligent control of conversion of data protocols |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310192799.4A CN104158793A (en) | 2013-05-14 | 2013-05-14 | Method and apparatus for intelligent control of conversion of data protocols |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104158793A true CN104158793A (en) | 2014-11-19 |
Family
ID=51884199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310192799.4A Pending CN104158793A (en) | 2013-05-14 | 2013-05-14 | Method and apparatus for intelligent control of conversion of data protocols |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104158793A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106817368A (en) * | 2017-01-06 | 2017-06-09 | 杰克缝纫机股份有限公司 | Method for converting protocol/system/device and industrial sewing machine |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789557A (en) * | 2010-01-29 | 2010-07-28 | 上海微小卫星工程中心 | Multifunctional interface conversion device |
CN102368754A (en) * | 2011-10-13 | 2012-03-07 | 无锡大麦创意设计有限公司 | S3C6410-based embedded gateway |
-
2013
- 2013-05-14 CN CN201310192799.4A patent/CN104158793A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789557A (en) * | 2010-01-29 | 2010-07-28 | 上海微小卫星工程中心 | Multifunctional interface conversion device |
CN102368754A (en) * | 2011-10-13 | 2012-03-07 | 无锡大麦创意设计有限公司 | S3C6410-based embedded gateway |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106817368A (en) * | 2017-01-06 | 2017-06-09 | 杰克缝纫机股份有限公司 | Method for converting protocol/system/device and industrial sewing machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105785958B (en) | Multi-functional data collector, acquisition system and method based on wisdom factory | |
CN105373079B (en) | A kind of motion controller and servo-driver cooperative control system | |
CN103516669A (en) | Adaptive multi-protocol converter | |
CN205563260U (en) | Multi -functional data collection station and collection system based on wisdom mill | |
CN103901814B (en) | A kind of multiaxial motion digital control system | |
CN201186683Y (en) | Intelligent electric steering engine based on RS232 bus communication | |
CN101377677A (en) | Projector network control system | |
CN204178172U (en) | A kind of universal embedded bus control equipment based on DSP and FPGA | |
CN203092570U (en) | Measurement and control circuit of robot teleoperation hand controller with seven-degree of freedom force feedback | |
CN201909987U (en) | Constant-current supply networking system on basis of serial bus | |
CN112936276B (en) | Multi-stage control device and method for joint of humanoid robot based on ROS system | |
CN101718985B (en) | EPA bus and Profibus-DP bus conversion adapter | |
CN104158793A (en) | Method and apparatus for intelligent control of conversion of data protocols | |
CN202918326U (en) | Intelligent multi-serial switch | |
CN201127024Y (en) | Two-way CAN bus and RS-232 serial communication interface | |
CN203217563U (en) | CAN (controller area network) bus control and transmit-receive system with high isolation performance | |
CN204423022U (en) | Can general purpose transducer opertaing device and system | |
CN201673401U (en) | Control equipment and control device based on bus | |
CN201698418U (en) | Can bus conversion card | |
CN201186684Y (en) | Intelligent electric steering engine based on RS485 bus communication | |
CN204155117U (en) | A kind of big-power transducer control system | |
CN107508737A (en) | Radio communication device and its communication means based on EtherCAT | |
CN204206217U (en) | A kind of Intelligent communication module of PROFIBUS-DP interface | |
CN206331281U (en) | A kind of kinematic system controls circuit | |
CN201242683Y (en) | Network control system for projector |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141119 |
|
WD01 | Invention patent application deemed withdrawn after publication |