CN106294242A - The device of upgrading changed by a kind of embedded device processor that quickly realizes - Google Patents

The device of upgrading changed by a kind of embedded device processor that quickly realizes Download PDF

Info

Publication number
CN106294242A
CN106294242A CN201610636269.8A CN201610636269A CN106294242A CN 106294242 A CN106294242 A CN 106294242A CN 201610636269 A CN201610636269 A CN 201610636269A CN 106294242 A CN106294242 A CN 106294242A
Authority
CN
China
Prior art keywords
usb
processor
module
drives
functional module
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
CN201610636269.8A
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.)
JIANGSU YAAO TECHNOLOGY Co Ltd
Original Assignee
JIANGSU YAAO 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 JIANGSU YAAO TECHNOLOGY Co Ltd filed Critical JIANGSU YAAO TECHNOLOGY Co Ltd
Priority to CN201610636269.8A priority Critical patent/CN106294242A/en
Publication of CN106294242A publication Critical patent/CN106294242A/en
Pending legal-status Critical Current

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/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • 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/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • 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
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3812USB port controller

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

nullThe invention discloses a kind of embedded device processor that quickly realizes and change the device of upgrading,Including processor module and functional module,Processor module end is provided with standard USB interface,Connect cable by USB to be connected with functional module,In functional module,USB connects cable and is connected with the various function devices in functional module,On processor module,Processor is integrated with usb bus controller,Processor includes operating system,Operating system comprises driving module,Usb bus drives and USB function device drives to drive module to include,In an operating system,Usb bus is embodied as tree structure management,The usb bus controller that wherein processor is integrated is embodied as root node,Function device in functional module is embodied as leaf node,Wherein usb bus drives and goes to find and identify USB function device according to standard usb bus specification,And call corresponding USB function device drive go to process corresponding function device.

Description

The device of upgrading changed by a kind of embedded device processor that quickly realizes
Technical field
The invention belongs to electronic technology field, relate in particular to one and quickly realize embedded device processor replacing liter The method and apparatus of level.
Background technology
Existing smart machine design field, most equipment is all embedded device.So-called embedded device, mainly by Flush bonding processor, associated support hardware and embedded software system composition, it is to integrate can work independently of software and hardware " device ".Flush bonding processor is mainly made up of one or more microprocessors (MCU).Associated support hardware includes display Card, storage medium (ROM and RAM etc.), communication apparatus, input-output equipment etc..Embedded system is different from general computer Processing system, it does not possess jumbo storage medium as hard disk, and is used mostly flash memory (Flash Memory) conduct Storage medium.Embedded software includes hardware-related bottom software, operating system, graphical interfaces, communications protocol, data base System, standardization browser and application software etc..
From the above, it can be seen that the calculating core of embedded device is microprocessor.Along with the development of electronics industry, The CPU (central processing unit) of the modern many employings of embedded device 32 or 64 is as microprocessor, such as ARM series CPU, The CPU etc. of Intel series.
Above-mentioned CPU has two features: 1, the disposal ability of CPU and the model of CPU are closely related.2, the update of CPU Speed, general 2-3, the CPU that market is promoted mainly will regenerate.
When designing embedded device, it is contemplated that (pin such as CPU and RAM is more, circuit cloth for above-mentioned factor and cost factor Line is complicated, many uses six layers and the circuit board of eight layers), it will usually processor circuit module is entered as the circuit board of a single channel Row design, other embedded device functional module is designed as other circuit board.Processor circuit board passes through circuit The pin of the design on plate is connected with other functional modules in the way of connecting line or " Hard link ".Such benefit has two: 1, the upgrading of changing of processor circuit module does not affect other functional module.2, adjust due to processor circuit Modular circuit design Try more complicated, once design, can repeatedly be multiplexed into different embedded devices.
As it has been described above, the processor circuit module of embedded device the most all criteria of right and wrong equipment, by designer according to CPU Functional performance and the demand of oneself be designed.And a lot of data communications of oneself must be connect by processor circuit module Mouthful, it is connected with functional module, just such as network interface, USB port, serial ports, WIFI interface, blue tooth interface, digital quantity, analog quantity interface etc. The function of embedded device can be realized.In prior art, it is common that the one or more communication bus interface of designer's self-defining, Complete above-mentioned work, as shown in Figure 5.
Such mode has a following defect:
1, the kind of communication interface, quantity are the most nonstandard.The design of functional module must adapt to the interface of processor circuit module Requirement.
When 2, updating the design of processor circuit module, in order to compatible forward, it is necessary to realize before intactly replicating connects Mouthful.If new CPU does not support a certain interface, it is possible to produce compatible problem.
3, processor circuit module cannot use ready-made, the processor plate of industrialization large-scale production.If or adopted With ready-made, the processor plate of industrialization large-scale production of a certain model, when updating upgrading, in order to keep forward compatibility Property, it is desirable to the processor plate of renewal on communication interface will with before use processor plate consistent.
Summary of the invention
For drawbacks described above, the present invention proposes a kind of method, can efficiently solve the problems referred to above, thus realize rapidly The replacing upgrading of embedded device processor.
In modern CPU, USB interface (Universal Serial Bus, USB (universal serial bus)) is one and obtains universal The interface supported.USB interface has the features such as interface definition standard, general, data transmission bauds is fast.On software, either Embedded device conventional such as operating systems such as Linux, Android, Windows CE, or the software that CPU manufacturer provides drives Dynamic model block, both provides the most perfect support to USB interface.Therefore, the technical scheme that the present invention proposes is:
At the processor module end of embedded device, use the interface of the USB 2.0 or 3.0 of a standard, by USB connecting line Cable, is connected with functional module.
In functional module, following methods can be used as required:
If functional module needs the interface using or providing more, can first place a USB HUB chip, with processor die The USB interface of block end connects, then the interface branched away by USB HUB is connected with other PORT COM in other functional modules (as USB turns network interface, USB turns serial ports, USB turn WIFI, USB turn bluetooth, USB is connected with the USB port of CPU in functional module). On software, utilize the driving module of processor module end operating system or independently developed driving module, it is achieved above-mentioned interface Software function, thus intactly by realize the above-mentioned interface of processor module extension and with the connection of functional module.
Usb bus, as IEEE, is embodied as tree structure management, wherein USB the most in an operating system HUB is embodied as branch node, and generic USB function device is embodied as leaf node, and the integrated usb bus controller of general processor is then It is embodied as root node.Generally in modern operating system, USB device driver system is divided into usb bus to drive and USB function device Driving, bus driver establishing criteria usb bus specification finds to identify USB function device, reads USB function device and comprises manufacturer Coding and product coding describe information at interior standard interface, have then noted according to these standardized information removal search coupling The USB function device of volume drives, and calls respective drive and processes corresponding function device.By traversal whole system usb bus tree, Developer can with concrete USB logic function device each in Exact Location System position on usb bus tree, finally in conjunction with Hardware scheme can position concrete USB physical function equipment easily and connect topology at whole system USB physical bus Position in figure.If functional module needs the interface using or providing single, it is also possible to do not use USB HUB chip, directly The chip interface using simple function realizes the conversion of above-mentioned interface.In software processes identical with foregoing description.
Thus, the present invention proposes a kind of scheme changing upgrading for quickly realizing embedded device processor, specifically For, the technical solution adopted in the present invention is as follows:
The device of upgrading changed by a kind of embedded device processor that quickly realizes, and including processor module and functional module, it is special Levy and be, processor module end is provided with standard USB interface, connect cable by USB and be connected with functional module, Qi Zhong In functional module, USB connects cable and is connected with the various function devices in functional module, on processor module, and processor collection Becoming to have usb bus controller, processor includes operating system, and operating system comprises driving module, drives module to include usb bus Driving and USB function device drives, in an operating system, usb bus is embodied as tree structure management, and wherein processor is integrated Usb bus controller is embodied as root node, and the function device in functional module is embodied as leaf node, and wherein usb bus drives root According to standard usb bus specification go find and identify USB function device, and call corresponding USB function device drive go process phase The function device answered.
Preferably, usb bus drives the step bag removing to find and identify USB function device according to standard usb bus specification Include: usb bus is monitored, it may be judged whether be found that new equipment, without finding that new equipment then continues to monitor, if it find that New equipment is then searched for the device drives of coupling and calls corresponding device drives, at the relevant device driving then called Manage corresponding device events.
It is further preferred that the device drives of search coupling call the step of corresponding device drives and include: read and found The standard interface of equipment describes information, then mates the most chartered relevant device according to these standardized information removal search and drives Move and call relevant device to drive.
Furthermore it is preferred that in functional module, be provided with intermediate module, wherein USB connection cable is connected to this intermediate die Block, is connected with the various function devices in functional module by intermediate module, and the most in an operating system, this intermediate module is behaviour Make system is embodied as the branch node of tree structure management system.Wherein, described intermediate module is USB HUB or monolithic Machine.
The invention have the advantages that and beneficial effect
1, the interface of processor module and functional module is single, standard.Software and hardware is adaptable.The interface of functional module is set Meter requires the simplest.
When 2, changing upgrading processing device module, the either requirement to processor module, or in circuit design, interface The design of part is the most succinct.
3, provide a USB port owing to the connection of processor Yu functional module has only to processor, therefore, set in compatibility On meter, it is the biggest that the selectable range of processor becomes.Either because performance need improve processor parameter select or because of Need to use more cheap processor for cost, can be suitable for.And different processors, mix identical functional module, The retractility of its computing capability also becomes greatly.
4, provide a USB port owing to having only to processor module, various ready-made, industry can be selected the most at leisure Change the processor plate of large-scale production.Or differently configured operating system, software.So, for reducing design cost, raising sets Standby stability, controls the quality of production and cost, and there is benefit clearly at the date of delivery etc. shortening equipment.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of an implementation of assembly of the invention;
Fig. 2 is the schematic diagram of another implementation of assembly of the invention;
Fig. 3 be assembly of the invention realize schematic flow sheet;
Fig. 4 is the structural representation of an embodiment as apparatus of the present invention;
Fig. 5 is the structure chart that prior art processor module is connected with functional module.
Detailed description of the invention
Below in conjunction with the accompanying drawings and detailed description of the invention the present invention will be further described.
The present patent application is a kind of method that is connected with functional module of embedded device processor, uses the USB of standard Mouth and related software, it is achieved embedded device processor module and the connection of functional module, alternate design person's self-defining one Or the mode of multiple communication bus interface.By this method, can be greatly improved embedded device processor compatibility and Selectable range, it is provided that well-equipped performance retractility, reduces the difficulty of embedded device processor module design and corresponding Design, production cost, improve equipment quality and stability, quickly realize embedded device processor and change upgrading.
See Fig. 1 and Fig. 2, it is shown that two examples of embodiments of the present invention.As seen from the figure, core board provides One USB interface, feature board is connected with core board by USB cable.
Respectively illustrate two kinds of situations in fig. 1 and 2.If i.e. functional module needs the interface of use or offer relatively Many, then can be connected with the USB interface of processor module end as it is shown in figure 1, a USB HUB chip can first be placed, then pass through The interface that USB HUB branches away is connected with other PORT COM in other functional modules that (as USB turns network interface, USB turns serial ports, USB Turn that WIFI, USB turn bluetooth, USB is connected with the USB port of CPU in functional module).On software, processor module end is utilized to operate The driving module of system or independently developed driving module, it is achieved the software function of above-mentioned interface, thus intactly by realization The extension of the reason above-mentioned interface of device module and with the connection of functional module.
Usb bus, as IEEE, is embodied as tree structure management, wherein USB the most in an operating system HUB is embodied as branch node, and generic USB function device is embodied as leaf node, and the integrated usb bus controller of general processor is then It is embodied as root node.Generally in modern operating system, USB device driver system is divided into usb bus to drive and USB function device Drive, as it is shown on figure 3, bus driver establishing criteria usb bus specification finds to identify USB function device, read USB function device The standard interface comprising manufacturer's coding and product coding describes information, then according to these standardized information removal search Mate the most chartered USB function device to drive, call respective drive and process corresponding function device.By traversal whole system Usb bus tree, developer can with concrete USB logic function device each in Exact Location System position on usb bus tree, Finally can position concrete USB physical function equipment easily in conjunction with hardware scheme total at whole system USB physics Position in line link topology.
Fig. 4 shows the instantiation of a kind of embodiment using such scheme.As it can be seen, provide on core board USB interface, feature board uses USB HUB as intermediate module, then utilizes the interface of HUB to connect various communication further and connect Mouthful or expand various function, or connect further expansion card, it is achieved various functions.
If functional module needs the interface using or providing single, it is also possible to as in figure 2 it is shown, do not use USB HUB core Sheet, directly uses the chip interface of simple function to realize the conversion of above-mentioned interface.In software processes identical with foregoing description.
Above in conjunction with accompanying drawing, embodiments of the present invention are described in detail, but the invention is not restricted to above-mentioned enforcement Mode, in the ken that art those of ordinary skill is possessed, it is also possible to without departing from present inventive concept Make a variety of changes under premise.

Claims (5)

1. quickly realize embedded device processor and change a device for upgrading, including processor module and functional module, its It is characterised by, processor module end is provided with standard USB interface, connect cable by USB and be connected with functional module, wherein In functional module, USB connects cable and is connected with the various function devices in functional module, on processor module, and processor Being integrated with usb bus controller, processor includes operating system, and operating system comprises driving module, drives module to include that USB is total Line drives and USB function device drives, and in an operating system, usb bus is embodied as tree structure management, and wherein processor is integrated Usb bus controller be embodied as root node, the function device in functional module is embodied as leaf node, wherein usb bus drive According to standard usb bus specification go find and identify USB function device, and call corresponding USB function device drive go process Corresponding function device.
2. quickly realize embedded device processor as claimed in claim 1 and change the device of upgrading, it is characterised in that USB Bus driver goes to find and identify that the step of USB function device includes according to standard usb bus specification: usb bus is monitored, it is judged that Whether it is found that new equipment, without finding that new equipment then continues to monitor, if it find that new equipment is then searched for The device drives joined also calls corresponding device drives, and the relevant device driving then called processes corresponding device events.
3. quickly realize embedded device processor as claimed in claim 2 and change the device of upgrading, it is characterised in that search The device drives mated the step calling corresponding device drives include: the standard interface reading the equipment found describes Information, then drives according to these standardized information removal search the most chartered relevant device of coupling and calls relevant device and drive Dynamic.
4. quickly realize embedded device processor as claimed in claim 1 and change the device of upgrading, it is characterised in that in merit In energy module, being provided with intermediate module, wherein USB connection cable is connected to this intermediate module, by intermediate module and function mould Various function devices on block connect, and the most in an operating system, this intermediate module is embodied as tree structure in an operating system The branch node of management system.
5. quickly realize embedded device processor as claimed in claim 4 and change the device of upgrading, it is characterised in that institute Stating intermediate module is USB HUB or single-chip microcomputer.
CN201610636269.8A 2016-08-05 2016-08-05 The device of upgrading changed by a kind of embedded device processor that quickly realizes Pending CN106294242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610636269.8A CN106294242A (en) 2016-08-05 2016-08-05 The device of upgrading changed by a kind of embedded device processor that quickly realizes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610636269.8A CN106294242A (en) 2016-08-05 2016-08-05 The device of upgrading changed by a kind of embedded device processor that quickly realizes

Publications (1)

Publication Number Publication Date
CN106294242A true CN106294242A (en) 2017-01-04

Family

ID=57665280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610636269.8A Pending CN106294242A (en) 2016-08-05 2016-08-05 The device of upgrading changed by a kind of embedded device processor that quickly realizes

Country Status (1)

Country Link
CN (1) CN106294242A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383621A (en) * 2008-09-08 2009-03-11 北京航空航天大学 Multiple radio frequency interface wireless access device and frequency band regulating method thereof
CN101477636A (en) * 2009-01-15 2009-07-08 电子科技大学 Arm type wearable computer terminal equipment
CN101902491A (en) * 2009-05-26 2010-12-01 深圳市汉普电子技术开发有限公司 Remote management system and control device
CN103237193A (en) * 2013-03-29 2013-08-07 天津大学 Self-adaption mobile network bus video monitoring terminal
CN205353855U (en) * 2015-12-29 2016-06-29 成都英创信息技术有限公司 Embedded computer main board
CN105812444A (en) * 2014-12-29 2016-07-27 朔联科技(上海)有限公司 Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383621A (en) * 2008-09-08 2009-03-11 北京航空航天大学 Multiple radio frequency interface wireless access device and frequency band regulating method thereof
CN101477636A (en) * 2009-01-15 2009-07-08 电子科技大学 Arm type wearable computer terminal equipment
CN101902491A (en) * 2009-05-26 2010-12-01 深圳市汉普电子技术开发有限公司 Remote management system and control device
CN103237193A (en) * 2013-03-29 2013-08-07 天津大学 Self-adaption mobile network bus video monitoring terminal
CN105812444A (en) * 2014-12-29 2016-07-27 朔联科技(上海)有限公司 Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway
CN205353855U (en) * 2015-12-29 2016-06-29 成都英创信息技术有限公司 Embedded computer main board

Similar Documents

Publication Publication Date Title
CN201035568Y (en) USB equipment logical numbering and physical numbering mapping device
CN101110846A (en) Management method and equipment for MAC address table item
CN101996148A (en) Instrument test board configuration method for a plurality of communication protocols
CN104933004A (en) System and method for expanding CPU module by using SPI bus
CN101820460A (en) Module for realizing SPI interface
CN109032062A (en) A kind of PCIE switching chip
CN105607940A (en) Method for transmitting information to UEFI BIOS from BDK in ARM platform
CN107992439A (en) A kind of expansible data interactive method and system
CN102929817A (en) Heterogeneous model information automatic configuring method based on GPIO (general purpose input/output)
CN104115138B (en) The configurable apolegamy plate interface of electricity
CN112118166B (en) Multi-chip networking system, method and application
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN101483546B (en) Method for constructing PLC network based on Profibus protocol
CN102693203A (en) Embedded USB (universal serial bus) host
CN106294242A (en) The device of upgrading changed by a kind of embedded device processor that quickly realizes
CN216057079U (en) Internet of things terminal and internet of things system
CN107636632B (en) Method and system for identifying liquid crystals of different manufacturers
CN108170091A (en) A kind of PLC controller, PLC controller group system
CN106294237A (en) A kind of multiplexing functions method and device of communication interface
CN207882745U (en) A kind of PLC controller, PLC controller group system
CN210986115U (en) High-compatibility isoSPI communication gateway
CN207882728U (en) A kind of control system
CN214177322U (en) Firmware batch upgrading system based on serial interfaces without centers and exchanges
CN109495176A (en) The setting method and system of slot in a kind of machine frame
CN203896362U (en) Universal power supply monitoring communication management module

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: 20170104

RJ01 Rejection of invention patent application after publication