CN103713549A - Relay control card for controlling interaction system - Google Patents

Relay control card for controlling interaction system Download PDF

Info

Publication number
CN103713549A
CN103713549A CN201310711889.XA CN201310711889A CN103713549A CN 103713549 A CN103713549 A CN 103713549A CN 201310711889 A CN201310711889 A CN 201310711889A CN 103713549 A CN103713549 A CN 103713549A
Authority
CN
China
Prior art keywords
packet
microprocessor
control
equipment
control card
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
CN201310711889.XA
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.)
Jilin University
Original Assignee
Jilin University
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 Jilin University filed Critical Jilin University
Priority to CN201310711889.XA priority Critical patent/CN103713549A/en
Publication of CN103713549A publication Critical patent/CN103713549A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a relay control card for controlling an interaction system and belongs to the field of an embedded system. A universal serial bus is utilized to communicate with a host processor and microprocessor of a high-performance embedded system; procedure codes of the device fixedly receive a superior microprocessor signal and a program for response; and the device is provided with development library comprising serial port driving information and control signal information. According to the control card, hardware drive layer development and software algorithm layer development are separated, so that development speed can be accelerated, the embedded device system is clearer in layer and easier to design; and the new method helps to reduce development period and reduce development difficulty for the large-scale complex embedded system design field. The working mode of serial bus communication is utilized; an upper computer can not only be the embedded system equipped with the high-performance microprocessor and can also be a general computer system; and one system can be equipped with the plurality of devices without changing an original software structure.

Description

Control interactive system relay and control card
Technical field
The present invention relates to a kind of control interactive system relay and control card, belong to embedded system field.
Background technology
High performance embedded system generally comprises man-machine interactive system, arithmetic processing system and control (comprising signals collecting) system three parts.The application high speed microprocessor of general high performance system carries out calculation process as core and connects mutual and control peripheral components, microcontroller with in addition both can be directly actuated mode (being that a microcontroller works in system in theory) wherein, also can be indirect mode, microcontroller by other microprocessor controls another both.In front a kind of mode, microprocessor is directly connected with peripherals, and equipment is controlled peripheral hardware by microcontroller hardware operation, and code is all in the program of microprocessor.In the second way, need to design the program of peripheral microcontroller and the logic connected mode of each processor controller, microprocessor is responsible for providing control signal, microcontroller concrete operations peripherals.
In such scheme, generally can complete design task, but all there is obvious shortcoming: first kind of way consumption is compared with resources such as the GPIO mouth of multimicroprocessor, system times, and microprocessor work is easily interfered.Simultaneity factor circuit design is very complicated, and system power dissipation is very large.Second way design is complicated, and a lot of programs need to be understood the use of each peripheral microcontroller and need to be familiar with each peripheral hardware, and simultaneously such design logic is very complicated, easily occurs mistake.
Summary of the invention
The object of the present invention is to provide a kind of control interactive system relay and control card, this control card can with the high performance embedded system interface of main flow, by development library and primary system program, carry out unitized overall development, jointly realize systemic-function, thereby make up the defect of high-performance processor on system is controlled or reduce the complicacy of multilevel system.
To achieve these goals, technical scheme of the present invention is as follows.
A kind of control interactive system relay and control card, use USB (universal serial bus) and high performance embedded system primary processor and microprocessor communication, the program that the program code of equipment is fixedly accepted higher level's microprocessor signals and made a response, equipment is furnished with a development library that includes serial port drive information and control signal message.Like this, when exploitation microcontroller relative program, main microprocessor program and this equipment card program can be used as to an integral body develops.
Described control signal is the fixing packet of form, carries following information: the address (or title) of the explanation of action type, the register that will control, the operation instructions of wanting this register to carry out, operate fixedly beginning and the trailer field of relevant operand, message to this.Wherein, being illustrated as of described action type read a certain register data and by the universal serial bus value of beaming back or revise the value of a certain register.The described operation instructions that register is carried out comprise read, write, compare, revise a part wherein one or more.The operand that described operation is relevant is to want the data that write or want cumulative data.
The said equipment workflow is: during high-performance microprocessor program development, use the development library of this coordinative composition of equipments, development library provides the method for using serial bus interface to send packet, and required information and the method for generated data bag; When high-performance microprocessor program is controlled this equipment in work to needs, first the packet that calling data bag generation method and Information generation need to send, after packet generates, use method that serial bus interface sends packet by Packet Generation to this equipment, this equipment is analyzed its correctness after receiving packet, for correct under normal circumstances this equipment of packet, the requirement according in packet is carried out to work, after having worked, return to as requested settling signal or the required data of higher level's high-performance microcontroller.
In above-mentioned control card, primary processor is ARM7, ARM9, ARM11, ARM Cortex-A, ARM Cortex-R Series of MCU, and wherein ARM Cortex-R series processors adopts its high-performance part; Microprocessor is any one microcontroller in ARM, AVR, 80C51, STM8 kernel.
This beneficial effect of the invention is:
(1) the separated exploitation of hardware driving layer and the exploitation of software algorithm layer of embedded system, can Speeding up development speed, make embedded device system level clearer and more definite, more easily design is a kind of new method that shortens the construction cycle, reduces development difficulty of bringing to large-scale, complex embedded system design field.
(2) only need be on high-performance microprocessor coding, but can use the resource on high-performance microprocessor and this equipment simultaneously, in the situation that not increasing system development complexity, can, in conjunction with strong, the resourceful advantage of microprocessor controls ability on high-performance microprocessor fast operation and this equipment, make entire system can evade high-performance microprocessor in conventional scheme simultaneously and drive bottom hardware easily to occur disturbing and unsettled problem.The large-scale embedded system of design can provide better serviceability in fields such as commercial unit, national defense applications, scientific research instrument like this.
(3) use the mode of serial bus communication to work, host computer can be not only the embedded system of being furnished with high-performance microprocessor, can be also general computer system, and a system can be equipped with a plurality of equipment and not change original software configuration.That such change makes is large-scale, complex embedded system can allow stronger data-handling capacity and control ability, also make embedded system development more towards programmed algorithm, and less control bottom, thereby increased development mode, made more technician can enter the work of embedded development field.
Accompanying drawing explanation
Fig. 1 is the implementation process functional block diagram of control card in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described, to better understand the present invention.
Embodiment
Specifically take and use the technical program to complete apparatus for production line control system as example.The design objective of system is to use an overhead control embedded system to control a plurality of electromechanical equipments and signal detection apparatus on a production line, system according to workman's operation open, stop, the basic operation such as reset, operating room's system judges according to the signal of signal detection apparatus monitoring, thereby control electromechanical equipment work, completes production.
A kind of control interactive system relay and control card, system hardware forms: (1) using the master system that high speed microprocessor is core: use Samsung ARM116430 microprocessor as central processing unit, processor drives signal by serial ports (USART serial ports 1,2,3,4) output drive signal, this part is equipped with VGA and drives chip on VGA display, to show output, connects USB keyboard input by usb bus.(2) take the driving chip that STM32F103ZET6 microcontroller is each equipment.
System software logic: 6430 master systems are used Qt to complete the UI for man-machine interaction, comprises that state display part divides and instruction importation.First calling data bag maker when software need to be controlled STM32F103ZET6 microcontroller, packet definitions is as follows: operation name (read/write), operation address (thinking the memory address of operation), operand (the number that will write, under read states, be 00000000), every part is all 8bit.Then routine call serial port drive program sends packet to microcontroller, and microcontroller sends answer signal after receiving complete data packet, then decoded data packets execution.If data return data bag is prepared in read operation, after being ready to complete, by serial port drive, beam back the processing of decoding of upper microcomputer.
By such read-write control operation, can complete and comprise the functions such as register is controlled, and register data reads, and data are temporary, so just can realize the control of bottom electromechanical equipment or reading sensing data.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (7)

1. control interactive system relay and control card for one kind, it is characterized in that: use USB (universal serial bus) and high performance embedded system primary processor and microprocessor communication, the program that the program code of equipment is fixedly accepted higher level's microprocessor signals and made a response, equipment is furnished with a development library that includes serial port drive information and control signal message; Described control signal is the fixing packet of form, carries following information: the address (or title) of the explanation of action type, the register that will control, the operation instructions of wanting this register to carry out, operate fixedly beginning and the trailer field of relevant operand, message to this.
2. control interactive system relay and control card according to claim 1, it is characterized in that: described equipment workflow is: the development library that uses this coordinative composition of equipments during high-performance microprocessor program development, development library provides the method for using serial bus interface to send packet, and required information and the method for generated data bag; When high-performance microprocessor program is controlled this equipment in work to needs, first the packet that calling data bag generation method and Information generation need to send, after packet generates, use method that serial bus interface sends packet by Packet Generation to this equipment, this equipment is analyzed its correctness after receiving packet, for correct under normal circumstances this equipment of packet, the requirement according in packet is carried out to work, after having worked, return to as requested settling signal or the required data of higher level's high-performance microcontroller.
3. control interactive system relay and control card according to claim 1, it is characterized in that: described primary processor is ARM7, ARM9, ARM11, ARM Cortex-A, ARM Cortex-R Series of MCU, and wherein ARM Cortex-R series processors adopts its high-performance part; Microprocessor is any one microcontroller in ARM, AVR, 80C51, STM8 kernel.
4. control interactive system relay and control card according to claim 1, is characterized in that: being illustrated as of described action type read a certain register data and by the universal serial bus value of beaming back or revise the value of a certain register.
5. control interactive system relay and control card according to claim 1, is characterized in that: the described operation instructions that register is carried out comprise read, write, compare, revise a part wherein one or more.
6. control interactive system relay and control card according to claim 1, is characterized in that: the operand that described operation is relevant is to want the data that write or want cumulative data.
7. according to the control interactive system relay and control card described in claims 1 to 3, it is characterized in that: described system hardware consists of: (1) using the master system that high speed microprocessor is core: use Samsung ARM116430 microprocessor as central processing unit, processor drives signal by serial ports (USART serial ports 1,2,3,4) output drive signal, this part is equipped with VGA and drives chip on VGA display, to show output, connects USB keyboard input by usb bus; (2) take the driving chip that STM32F103ZET6 microcontroller is each equipment;
System software logic: 6430 master systems are used Qt to complete the UI for man-machine interaction, comprises that state display part divides and instruction importation; First calling data bag maker when software need to be controlled STM32F103ZET6 microcontroller, packet definitions is as follows: operation name (read/write), operation address (thinking the memory address of operation), operand (the number that will write, under read states, be 00000000), every part is all 8bit; Then routine call serial port drive program sends packet to microcontroller, and microcontroller sends answer signal after receiving complete data packet, then decoded data packets execution; If data return data bag is prepared in read operation, after being ready to complete, by serial port drive, beam back the processing of decoding of upper microcomputer.
CN201310711889.XA 2013-12-17 2013-12-17 Relay control card for controlling interaction system Pending CN103713549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310711889.XA CN103713549A (en) 2013-12-17 2013-12-17 Relay control card for controlling interaction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310711889.XA CN103713549A (en) 2013-12-17 2013-12-17 Relay control card for controlling interaction system

Publications (1)

Publication Number Publication Date
CN103713549A true CN103713549A (en) 2014-04-09

Family

ID=50406605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310711889.XA Pending CN103713549A (en) 2013-12-17 2013-12-17 Relay control card for controlling interaction system

Country Status (1)

Country Link
CN (1) CN103713549A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193118A (en) * 2007-07-25 2008-06-04 中兴通讯股份有限公司 A communication method between upper device and lower device
CN101406002A (en) * 2006-03-17 2009-04-08 阿尔卡特朗讯公司 Apparatus for detecting errors in a communication system
CN102323796A (en) * 2011-05-12 2012-01-18 东莞市诗玛电子有限公司 Automatic control method and system
CN102591244A (en) * 2012-03-26 2012-07-18 中国科学院自动化研究所 Bus-based input/output (IO) acquisition and control extending device
CN202351638U (en) * 2011-11-19 2012-07-25 长安大学 Data acquisition device based on controller area network (CAN) bus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101406002A (en) * 2006-03-17 2009-04-08 阿尔卡特朗讯公司 Apparatus for detecting errors in a communication system
CN101193118A (en) * 2007-07-25 2008-06-04 中兴通讯股份有限公司 A communication method between upper device and lower device
CN102323796A (en) * 2011-05-12 2012-01-18 东莞市诗玛电子有限公司 Automatic control method and system
CN202351638U (en) * 2011-11-19 2012-07-25 长安大学 Data acquisition device based on controller area network (CAN) bus
CN102591244A (en) * 2012-03-26 2012-07-18 中国科学院自动化研究所 Bus-based input/output (IO) acquisition and control extending device

Similar Documents

Publication Publication Date Title
US8896560B2 (en) Offloading touch processing to a graphics processor
CN210954874U (en) Domestic computer mainboard based on Shenwei SW421 treater
CN103064805A (en) Serial Peripheral Interface (SPI) controller and communication method
CN103440216A (en) Chip and method for debugging MCU through I2C slave unit
CN104598308A (en) Mode switching control method and device
CN108701101A (en) The serialization based on moderator of processor system management interrupt event
CN103077140A (en) Communication method and communication device for motion control card of robot and host
CN113849238B (en) Data communication method, device, electronic equipment and readable storage medium
CN117278890B (en) Optical module access method, device and system, electronic equipment and readable storage medium
RU2016121724A (en) Parallel Computing System Architecture
CN108769381A (en) Display control method and device
CN101515436B (en) Embedded LED display screen control system
CN200990087Y (en) Eight-bit simple instruction set micro-controller
CN102708079B (en) Be applied to the method and system of the control data transmission of microcontroller
CN100474266C (en) Debugging system used for digital signal processor and debug method thereof
CN201444301U (en) Device capable of unifying interfaces of multi-peripheral units to be one USB interface
CN103389893A (en) Read-write method and device for configuration register
CN103713549A (en) Relay control card for controlling interaction system
US20160291995A1 (en) Facilitation of guest application display from host operating system
CN206133556U (en) A computer central processing unit for teaching experiment
US20210034364A1 (en) Processing unit, processor, processing system, electronic device and processing method
CN110109849B (en) CAN equipment driving device and method based on PCI bus
CN102542872A (en) Driving system based on embedded development platform
CN102043755B (en) Reconfigurable processing device and system
CN103645865A (en) Command timeout processing method

Legal Events

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

Application publication date: 20140409

RJ01 Rejection of invention patent application after publication