[go: up one dir, main page]

CN102195946A - Intelligent communication controller based on ARM (Advanced RISC Machines) technology - Google Patents

Intelligent communication controller based on ARM (Advanced RISC Machines) technology Download PDF

Info

Publication number
CN102195946A
CN102195946A CN2010101256182A CN201010125618A CN102195946A CN 102195946 A CN102195946 A CN 102195946A CN 2010101256182 A CN2010101256182 A CN 2010101256182A CN 201010125618 A CN201010125618 A CN 201010125618A CN 102195946 A CN102195946 A CN 102195946A
Authority
CN
China
Prior art keywords
communication
arm
controller based
communication controller
ethernet
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
Application number
CN2010101256182A
Other languages
Chinese (zh)
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.)
SHANGHAI COMMUNICATIONS TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
SHANGHAI COMMUNICATIONS TECHNOLOGY DEVELOPMENT 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 SHANGHAI COMMUNICATIONS TECHNOLOGY DEVELOPMENT Co Ltd filed Critical SHANGHAI COMMUNICATIONS TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN2010101256182A priority Critical patent/CN102195946A/en
Publication of CN102195946A publication Critical patent/CN102195946A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an intelligent communication controller based on an ARM (Advanced RISC Machines) technology, and in particular relates to an intellectualized interconnected communication controller which can meet the conventional major communication modes: a TCP/IP (Transmission Control Protocol/Internet Protocol) Ethernet, a MODBUS (Macro-block Mode for B-blocks) industrial communication standard protocol, a PROFIBUS (Process Field Bus) industrial communication standard protocol and a CAN (Controller Area Network) bus communication protocol, belonging to the technical field of communication. The intelligent communication controller takes an ARM-7 chip as a core processor and is provided with configurations such as an Ethernet MAC (Media Access Control) communication processor, an asynchronous communication processor, a CAN communication processor, a timer, a counter, an AD (Analog to Digital) converter and the like; and a UCOS/II (Uprange Computer Output System/II) embedded operating system is adopted for a hardware part, and good interconnection and conversion functions are realized in various communication modes by using the perfect real-time multi-task and multi-thread management function of the operating system. The intelligent communication controller has the advantages of high programming flexibility, high response speed, low bit error rate, high communication efficiency and compatibility with a plurality of mainstream communication modes.

Description

Intelligence communication controller based on the ARM technology
Technical field
The present invention relates to communication technical field, specifically refer to embedded ARM processor, embedded real-time operating system UCOS/II and tcp/ip communication protocol analysis, the parsing of MODBUS communication protocol, the configuration of PROFIBUS communication chip and protocol analysis and CAN communication protocol are resolved, realize multiple main flow communication mode compatibility, good interconnected and translation function.
Background technology
Remain at prior art MODBUS, PROFIBUS, CAN under the main communication mode situation of all multi-control apparatus, signal collecting device, and Ethernet is that available network interface is realized this function with the speed PC fast, that the error rate is low, communication device configured is convenient and general of communication, and does not need to increase special conversion equipment again and become present popular communication mode.So above-mentioned communication is communicated by letter with Industrial Ethernet to be become gradually in present multiple communication mode and period of depositing.But, when a supervisory control system relates to multiple communication mode, often bring inconvenience, such as in a system with tcp/ip communication, if lower floor's equipment is a PLC (Programmable Logic Controller) who has only the MODBUS communication interface, at this moment PLC to be inserted the TCP/IP network and just be difficult to accomplish.Present method increases the server that an Ethernet changes serial ports often, but this pattern can reduce communication speed greatly, be that host computer still will be considered as PLC an equipment that has only serial ports, if this equipment more than one will reduce the communication efficiency of system greatly.And to really realize Industrial Ethernet communication, the PLC upgrade cost of Zeng Jiaing will increase substantially so, if this PLC is an equipment of only controlling a few signals, will bring very big waste.
Summary of the invention
The objective of the invention is to overcome above-mentioned prior art and have the communication of realization Industrial Ethernet, the PLC upgrade cost of Zeng Jiaing will increase substantially so, if this PLC is an equipment of only controlling a few signals, will bring the disappearance of very big waste, propose a kind of based on embedded ARM processor, embedded real-time operating system UCOS/II, based on the tcp/ip communication protocol analysis, MODBUS communication protocol is resolved, configuration of PROFIBUS communication chip and protocol analysis and CAN communication protocol are resolved, the system of the function that the application on Ethernet and realizing needs.
The present invention is based on the intelligence communication controller of ARM technology, comprising:
Employing makes ethernet physical layer can adapt to the PHY chip, prevents that the network transformer of the destruction of causing because of phenomenons such as static and thunders and lightnings from isolating.
The RS485 communication link adopts the insulation blocking of optocoupler realization to this equipment.
The CAN communication link adopts the insulation blocking of optocoupler realization to this equipment.
Adopt the PHY chip to communicate by letter with the MAC communication controler, this is the key component of hardware designs.The distance that will pay special attention to TX+/TX-, RX+/RX-in wiring process can not surpass 2mm, will surpass 3mm between two pairs of lines.Cabling adopts the circular arc cabling can make communication function reach reasonable effect.
To carry out repeatedly experiment to the size of each terminal resistance and position during hardware designs, stable in the hope of the ethernet communication performance.
Software section adopts: UCOS/II operating system by UCOS/II elements such as utilization multitask, semaphores, can realize software each several part function more efficiently.
Embedded CRC check in software makes the user can ignore CRC check in ethernet communication.
Realize that in software TCP/IP resolves, realize the special communication processs of TCP communication such as connection, monitoring, binding automatically.
PROFIBUS communication adopts the SPC3 chip of specialty to resolve device as PROFIBUS communication protocol.This SPC3 device is similar to the PROFIBUS communication function chip of Siemens Company, and friendly more underlying protocol support is arranged.In addition, the special bottom document that adopts a C file to be used for PROFIBUS communication in the software of this equipment.This is owing to the complicated more reason of PROFIBUS communication (with respect to MODBUS communication).
It also comprises the several steps of taking:
1, creates 500 bytes of reception buffering area;
2, setting this IP address of equipment and port numbers, is 192.168.25.201 as the IP address, and port numbers is 4000;
3, create a socket SOCKET;
4, binding IP and port are to SOCKET;
5, the maximum number of monitoring is set, as 3;
6, wait for that client computer connects;
7, after the successful connection, come into effect communication protocol and resolve;
8, handle corresponding message according to the MODBUS function code of Content of Communication, in time reply MODBUS message under the corresponding Ethernet;
9, send corresponding message information by serial ports, whether decision adds CRC check information as required;
10, wait for the answer of receiving terminal serial equipment, and judge mistake; If right, then this is communicated by letter successfully, if wrong, then last time, Content of Communication was retransmitted, if continuous three communications are wrong, then reports the serial communication fault.
In sum, the communication of employing Industrial Ethernet, MODBUS communication, it is the communication mode of equality separately that PROFIBUS communication is communicated by letter in this intelligence communication controller with CAN, there is no principal and subordinate's branch, the user can be according to the practical use of oneself, a kind of communication mode wherein can be made as main communication mode by the simple software setting, other three kinds of communication modes can be chosen one to three kind of conduct wantonly from communication mode, this function can so that this controller in Industry Control, communication engineering and intelligent transportation etc. need relate to the different communication mode, and the field that upper computer software is made every effort to unified is widely used.
Description of drawings
Fig. 1 is the connection block diagram of controller of the present invention;
Fig. 2 is the controller workflow diagram of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described
A kind of intelligence communication controller (as shown in Figure 1) based on the ARM technology of the present invention comprising:
The employing network transformer is isolated, and makes ethernet physical layer can adapt to various PHY chips, and can prevent the destruction that phenomenons such as static and thunder and lightning cause.
Adopt suitable PHY chip to communicate by letter with the MAC communication controler, this is the key component of hardware designs.The distance that will pay special attention to TX+/TX-, RX+/RX-in wiring process can not surpass 2mm, will surpass 3mm between two pairs of lines.Cabling adopts the circular arc cabling can make communication function reach reasonable effect.
To carry out repeatedly experiment to the size of each terminal resistance and position during hardware designs, stable in the hope of the ethernet communication performance.
Software section adopts: UCOS/II operating system by UCOS/II elements such as utilization multitask, semaphores, can realize software each several part function more efficiently.
The RS485 communication link adopts the insulation blocking of optocoupler realization to this equipment.
The CAN communication link adopts the insulation blocking of optocoupler realization to this equipment.
Embedded CRC check in software makes the user can ignore CRC check in ethernet communication.
Realize that in software TCP/IP resolves, realize the special communication processs of TCP communication such as connection, monitoring, binding automatically.
PROFIBUS communication adopts the SPC3 chip of specialty to resolve device as PROFIBUS communication protocol.This SPC3 device is similar to the PROFIBUS communication function chip of Siemens Company, but there is friendly more underlying protocol support in this chip producer.In addition, the special bottom document that adopts a C file to be used for PROFIBUS communication in the software of this equipment.This is owing to the complicated more reason of PROFIBUS communication (with respect to MODBUS communication).
Because the rate request of ethernet communication is the fastest, so the task level of ethernet communication is made as the limit priority task.
Below be to be that TCP/MODBUS server and MODBUS main website are that example illustrates with this equipment
This equipment is realized
Below be that MODBUS ON TCP and MODBUS serial port protocol hierarchical mode compare:
Figure GSA00000059447800061
In sum, the communication of employing Industrial Ethernet, MODBUS communication, it is the communication mode of equality separately that PROFIBUS communication is communicated by letter in this intelligence communication controller with CAN, there is no principal and subordinate's branch, the user can be according to the practical use of oneself, a kind of communication mode wherein can be made as main communication mode by the simple software setting, other three kinds of communication modes can be chosen one to three kind of conduct wantonly from communication mode, this function can so that this controller in Industry Control, communication engineering and intelligent transportation etc. need relate to the different communication mode, and the field that upper computer software is made every effort to unified is widely used.

Claims (5)

1. intelligence communication controller based on the ARM technology is characterized in that: an ARM microprocessor is set, by light-coupled isolation, isolating transformer and power supply communicate by letter with Ethernet or MODBUS PROFIBUS communicates by letter or CAN any one do being connected of the signal of telecommunication.
2. the intelligence communication controller based on the ARM technology as claimed in claim 1 is characterized in that: adopt the PHY chip that ethernet signal is connected with the MAC communication controler;
RS485 Tong letter Lian Lu Longitude optocoupler is connected with the ARM microprocessor;
CAN Tong letter Lian Lu Longitude optocoupler is connected with the ARM controller; Wherein, PROFIBUS communication protocol resolver is a SPC3 chip.
3. the intelligence communication controller based on the ARM technology as claimed in claim 1 is characterized in that: with the operation system of software of UCOS/II as the mutual commentaries on classics of above-mentioned communication mode.
4. the intelligence communication controller based on the ARM technology as claimed in claim 3 is characterized in that: with the task priority among the UCOS/II above-mentioned communication mode is required to be provided with respectively communication task priority according to traffic rate and importance; Adopt a C file to be used for the bottom document of PROFIBUS communication.
5. the intelligence communication controller based on the ARM technology as claimed in claim 1 is characterized in that: comprise following step:
A. create and receive 500 bytes of buffering area;
B. setting this IP address of equipment and port numbers, is 192.168.25.201 as the IP address, and port numbers is 4000;
C. create a socket SOCKET;
D. binding IP and port are to SOCKET;
E., the maximum number of monitoring is set, as 3;
F. wait for that client computer connects;
G. after the successful connection, come into effect communication protocol and resolve;
H. handle corresponding message according to the MODBUS function code of Content of Communication, in time reply MODBUS message under the corresponding Ethernet;
I. send corresponding message information by serial ports, whether decision adds CRC check information as required;
J. wait for the answer of receiving terminal serial equipment, and judge mistake; If right, then this is communicated by letter successfully, if wrong, then last time, Content of Communication was retransmitted, if continuous three communications are wrong, then reports the serial communication fault.
CN2010101256182A 2010-03-16 2010-03-16 Intelligent communication controller based on ARM (Advanced RISC Machines) technology Pending CN102195946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101256182A CN102195946A (en) 2010-03-16 2010-03-16 Intelligent communication controller based on ARM (Advanced RISC Machines) technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101256182A CN102195946A (en) 2010-03-16 2010-03-16 Intelligent communication controller based on ARM (Advanced RISC Machines) technology

Publications (1)

Publication Number Publication Date
CN102195946A true CN102195946A (en) 2011-09-21

Family

ID=44603341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101256182A Pending CN102195946A (en) 2010-03-16 2010-03-16 Intelligent communication controller based on ARM (Advanced RISC Machines) technology

Country Status (1)

Country Link
CN (1) CN102195946A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316113A (en) * 2011-09-22 2012-01-11 大连交通大学 POWERLINK and HDLC protocol conversion equipment and realization method thereof
CN102497355A (en) * 2011-11-22 2012-06-13 天津工业大学 Method for realizing pure electric car door window electronic control unit CANopen protocol
CN102736605A (en) * 2012-06-30 2012-10-17 李钢 Modbus communication concentrator
CN103036755A (en) * 2012-12-11 2013-04-10 蓝盾信息安全技术股份有限公司 Method of achieving distributed system real-time communication among devices by using controller area network (CAN) bus
CN104243294A (en) * 2014-08-21 2014-12-24 周原 PROFIBUS embedded type Web gateway with security mechanism
CN106292472A (en) * 2016-10-20 2017-01-04 哈尔滨工业大学 A kind of motion control method and device
CN106789183A (en) * 2016-12-03 2017-05-31 易泰帝传动技术(烟台)有限公司 It is a kind of to communicate the method that configuration data is parsed automatically
CN106941396A (en) * 2017-04-11 2017-07-11 深圳易能电气技术股份有限公司 A kind of method of test Modbus communication qualities and slave station response performance
CN109104181A (en) * 2018-08-21 2018-12-28 深圳市雷赛控制技术有限公司 A kind of RS485 circuit
CN109922088A (en) * 2019-04-28 2019-06-21 赛思特(北京)自动化科技有限公司 Industrial communication unification of three nets device and its working method
CN112894827A (en) * 2021-02-25 2021-06-04 中国科学院长春光学精密机械与物理研究所 Mechanical arm motion control method, system and device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201134105Y (en) * 2007-03-30 2008-10-15 北京华大恒泰科技有限责任公司 A radio frequency identification reader
CN101340404A (en) * 2008-08-14 2009-01-07 山东大学 Embedded gateway for protocol conversion between WiFi and ZigBee wireless network
US20090083843A1 (en) * 2007-09-25 2009-03-26 Rockwell Automation Technologies, Inc. Unique identification of entities of an industrial control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201134105Y (en) * 2007-03-30 2008-10-15 北京华大恒泰科技有限责任公司 A radio frequency identification reader
US20090083843A1 (en) * 2007-09-25 2009-03-26 Rockwell Automation Technologies, Inc. Unique identification of entities of an industrial control system
CN101340404A (en) * 2008-08-14 2009-01-07 山东大学 Embedded gateway for protocol conversion between WiFi and ZigBee wireless network

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316113A (en) * 2011-09-22 2012-01-11 大连交通大学 POWERLINK and HDLC protocol conversion equipment and realization method thereof
CN102316113B (en) * 2011-09-22 2014-01-22 大连交通大学 POWERLINK and HDLC protocol conversion equipment and realization method thereof
CN102497355A (en) * 2011-11-22 2012-06-13 天津工业大学 Method for realizing pure electric car door window electronic control unit CANopen protocol
CN102736605A (en) * 2012-06-30 2012-10-17 李钢 Modbus communication concentrator
CN103036755A (en) * 2012-12-11 2013-04-10 蓝盾信息安全技术股份有限公司 Method of achieving distributed system real-time communication among devices by using controller area network (CAN) bus
CN104243294A (en) * 2014-08-21 2014-12-24 周原 PROFIBUS embedded type Web gateway with security mechanism
CN106292472A (en) * 2016-10-20 2017-01-04 哈尔滨工业大学 A kind of motion control method and device
CN106292472B (en) * 2016-10-20 2017-07-07 哈尔滨工业大学 A kind of motion control method and device
CN106789183A (en) * 2016-12-03 2017-05-31 易泰帝传动技术(烟台)有限公司 It is a kind of to communicate the method that configuration data is parsed automatically
CN106941396A (en) * 2017-04-11 2017-07-11 深圳易能电气技术股份有限公司 A kind of method of test Modbus communication qualities and slave station response performance
CN109104181A (en) * 2018-08-21 2018-12-28 深圳市雷赛控制技术有限公司 A kind of RS485 circuit
CN109922088A (en) * 2019-04-28 2019-06-21 赛思特(北京)自动化科技有限公司 Industrial communication unification of three nets device and its working method
CN112894827A (en) * 2021-02-25 2021-06-04 中国科学院长春光学精密机械与物理研究所 Mechanical arm motion control method, system and device and readable storage medium

Similar Documents

Publication Publication Date Title
CN102195946A (en) Intelligent communication controller based on ARM (Advanced RISC Machines) technology
CN101262473B (en) EPA industrial Ethernet and HART field bus interconnection method
CN101109951B (en) Transforming plant intelligent electronic equipment access system
CN204046641U (en) A kind of Secure isolation gateway supporting multi-protocol data acquisition
CN102833112A (en) Communication management machine having looped network function
CN104620184B (en) Main intelligent electronic device for high-level application
US9019959B2 (en) Node, switch, and system
CN102053935A (en) MODBUS serial communication protocol-based communication method
CN103647782B (en) Method for conversion between elevator communication protocol and elevator internet-of-things collection and communication protocol
CN103078895A (en) Industrial Ethernet multi-functional double-serial-port server based on MCF52233 (magnetic card file) chip
CN102541038A (en) Control method for multiple heterogeneous inverters based on RS485 serial communication network
CN107547475A (en) A kind of data processing equipment and its system for supporting more communication protocol conversions
CN103645714A (en) Method for realizing MODBUS asynchronous serial communication protocol by using DSP
CN1216475C (en) Embedded gate for realizing interconnection between networks with different structures
Hui et al. Design and application of communication gateway of EPA and MODBUS on electric power system
CN206922798U (en) A kind of Multi-protocol converter, data transmitting equipment and communication system
CN201163782Y (en) Smart Gateway for EPA/HART Interconnection
CN103368908B (en) Communication means, gateway device and electrical apparatus controlling system
CN101753486A (en) Industrial automation field bus gateway equipment
CN201145905Y (en) scanner terminal
CN202197299U (en) Household Internet of Things gateway
CN109283901A (en) Integrated smart home system
CN201197150Y (en) Intelligent home network system based on wireless transmission and central processing unit
CN108462684A (en) A kind of IEC61850 stipulations conversion module and conversion method
CN204291526U (en) A kind of gateway

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110921