CN204576489U - A kind of embedded system - Google Patents

A kind of embedded system Download PDF

Info

Publication number
CN204576489U
CN204576489U CN201520258287.8U CN201520258287U CN204576489U CN 204576489 U CN204576489 U CN 204576489U CN 201520258287 U CN201520258287 U CN 201520258287U CN 204576489 U CN204576489 U CN 204576489U
Authority
CN
China
Prior art keywords
host computer
rompaq
computer
embedded system
interface
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.)
Active
Application number
CN201520258287.8U
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.)
Beijing Century Oriental Zhihui Technology Co.,Ltd.
Original Assignee
Beijing Century East China Railway 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 Beijing Century East China Railway Technology Co Ltd filed Critical Beijing Century East China Railway Technology Co Ltd
Priority to CN201520258287.8U priority Critical patent/CN204576489U/en
Application granted granted Critical
Publication of CN204576489U publication Critical patent/CN204576489U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model discloses a kind of embedded system, belong to communication technical field, to solve the technical matters of MCU upgrading inconvenience.This embedded system comprises: host computer, and described host computer is provided with USB (universal serial bus) and serial communication interface; Slave computer, each slave computer connects serial commu-nication interface, by serial communication interface and described upper machine communication.

Description

A kind of embedded system
Technical field
The utility model relates to communication technical field, specifically, relates to a kind of embedded system.
Background technology
Embedded system is widely used in the product in the fields such as communication, Industry Control.Embedded microprocessor (Microcontroller Unit is called for short MCU) is the core of embedded system memory device, in actual applications, often there is the maintenance needs such as such as memory device program upgrade.Traditional MCU program upgrade uses the hardware storage device such as Special programming, PC and download cable to realize usually.In the onsite application situation of circumstance complication, above-mentioned means rely on multiple different hardware, and even needing to carry out dismounting to memory device can realize upgrade maintenance, there is inconvenience and efficiency is lower.
Therefore, along with the progress of science and technology, people begin through and utilize USB (universal serial bus) (Universal SerialBus is called for short USB) interface to connect various memory device (such as USB flash disk) and carry out upgrade maintenance to MCU, make the upgrade maintenance of MCU become comparatively simple.
But inventor finds, in prior art, if want by USB storage device such as USB flash disks for MCU carries out upgrade maintenance, then the controlling functions of the necessary self-carried USB holotype of this MCU, otherwise the communication with USB storage device cannot be realized.Therefore, it is possible to adopt, USB storage device carries out the kind of the MCU of upgrade maintenance, specification is restricted, and still thoroughly cannot solve the problem of MCU upgrading inconvenience.
Utility model content
The purpose of this utility model is to provide a kind of embedded system, to solve the technical matters of MCU upgrading inconvenience.
The utility model provides a kind of embedded system, and this embedded system comprises:
Host computer, described host computer is provided with USB (universal serial bus) and serial communication interface;
Slave computer, each slave computer connects serial commu-nication interface, by serial communication interface and described upper machine communication.
Wherein, when described upper computer detection has memory device to access to described USB (universal serial bus), whether the memory device inside detecting access exists ROMPaq; If detect to there is ROMPaq, according to the rule pre-seted, determine the corresponding objects of this ROMPaq, and after determining this corresponding objects, stop the master routine being used for controlling each slave computer, judge whether to utilize this ROMPaq to carry out upgrade maintenance for its corresponding objects; If so, this ROMPaq is then utilized to carry out upgrade maintenance for its corresponding objects.
Wherein, this embedded system also comprises:
Display device, described display device connects described host computer by display device interface, the state of display host computer and slave computer thereof.
Wherein, whether current host computer and/or the slave computer carrying out upgrade maintenance of described display device display, also show host computer and transmits the speed of ROMPaq from the speed of the memory device acquisition ROMPaq of access, host computer and slave computer and successfully obtain and/or Successful transmissions.
Wherein, slave computer is the micro-control unit with application programming function.
Wherein, described host computer is the industrial control computer being provided with USB (universal serial bus), serial communication interface and display device interface.
Wherein, described host computer is also provided with power interface, audio interface and network interface.
The utility model brings following beneficial effect: the utility model embodiment provides a kind of embedded system, the host computer of this embedded system is provided with USB interface, the cooperation of the memory device accessed by host computer and USB interface thereof, for the upgrade maintenance of slave computer is provided convenience, solve the technical matters of slave computer updating operation inconvenience.
Other features and advantages of the utility model will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the utility model.The purpose of this utility model and other advantages realize by structure specifically noted in instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the utility model embodiment, accompanying drawing required in describing is done simple introduction below to embodiment:
Fig. 1 is the structural representation of the embedded system that the utility model embodiment provides;
Fig. 2 is the schematic flow sheet of the upper pusher side that the utility model embodiment provides;
Fig. 3 is the schematic flow sheet of the next pusher side that the utility model embodiment provides.
Embodiment
Describe embodiment of the present utility model in detail below with reference to drawings and Examples, to the utility model, how application technology means solve technical matters whereby, and the implementation procedure reaching technique effect can fully understand and implement according to this.It should be noted that, only otherwise form conflict, each embodiment in the utility model and each feature in each embodiment can be combined with each other, and the technical scheme formed is all within protection domain of the present utility model.
As shown in Figure 1, in the utility model embodiment, provide a kind of embedded system, this embedded system comprise host computer and one or more can with the slave computer of this upper machine communication (such as slave computer 1 to 4).In general, conceptually, effector and service provider are host computers, are slave computers by effector and attendee.In the utility model embodiment, host computer adopts band serial communication interface (abbreviation serial ports), USB interface, display device (such as liquid crystal indicator (Liquid Crystal Display, be called for short LCD)) industrial control computer of the interface such as interface, the serial ports of host computer is used to each slave computer communication, in order to monitor upgrade maintenance process in real time, be convenient to the operation of staff, this host computer is also connected with display device.In addition, the slave computer of the utility model embodiment adopts the MCU microcontroller with application programming (In Application Programming is called for short IAP) function.
Below, by describe in detail how to utilize this embedded system carry out upgrade maintenance for slave computer, this upgrade maintaining method is conducive to solving the technical matters that in prior art, slave computer (such as MCU) upgrading is inconvenient.
After the memory device (such as USB flash disk) being applicable to USB (universal serial bus) is inserted the corresponding interface of host computer by staff, host computer can scan the memory device of this access, whether there is ROMPaq in the memory device detecting this access.
Concrete, when specific filename being detected, there is ROMPaq in the memory device can knowing this access in each filename of the memory device inside of host computer scanning access.
In general, engineering staff, for the ease of differentiating each ROMPaq, can give each ROMPaq a unique filename, and filename is generally that the host computer corresponding with it or slave computer match.The title of this filename with host computer itself and each slave computer according to the filename of ROMPaq, can be mated, to determine the corresponding objects of this ROMPaq by host computer.
Or, also can store a form or one group of upgrading catalogue in advance in host computer, in form or catalogue, record the corresponding relation of the filename of ROMPaq and host computer, slave computer.In the utility model embodiment, host computer, after getting the filename of ROMPaq, can learn the corresponding objects of this upgrade file by inquiring about this upgrading catalogue.
When after the corresponding objects determining ROMPaq, whether host computer needs to detect this ROMPaq to its corresponding objects is higher version.And now no matter the corresponding objects of ROMPaq be host computer itself or one of them slave computer, all must ensure that the corresponding objects of ROMPaq is in off position, otherwise not only possibly normally cannot upgrade, itself cause irreversible damage also likely to this corresponding objects.Therefore, host computer terminates the master routine controlling each slave computer, and this makes host computer itself also enter off position.
Host computer accesses the corresponding objects of this ROMPaq, obtains the version number of the present procedure of the corresponding objects of this ROMPaq, contrasts with the version number of ROMPaq.If the version number of ROMPaq is comparatively new, then host computer is learnt and this ROMPaq can be utilized to carry out upgrade maintenance operation to its corresponding objects; Otherwise the current state of this corresponding objects is constant by keeping.
After upgrade maintenance operation terminates, host computer reopens its master routine, to realize control to slave computer, driving, recovers normal operating conditions.
Wherein, if the corresponding objects of determined ROMPaq is host computer, and during the version of the version of this ROMPaq higher than the current master routine of host computer, host computer obtains ROMPaq by the memory device of access USB interface, be buffered in internal memory (such as random access memory (Random-Access Memory is called for short RAM)).Obtain successfully, host computer will transfer this ROMPaq to cover current master routine, carries out the upgrade maintenance operation of host computer.
In addition, if the corresponding objects of determined ROMPaq is one of them slave computer, and when the version of this ROMPaq is higher, host computer needs in the memory device of access USB interface, obtain ROMPaq and be buffered in internal memory equally.Obtain successfully, this ROMPaq is sent to corresponding slave computer by host computer, carries out upgrade maintenance operation for slave computer.
Application master routine in slave computer, when the ROMPaq from host computer being detected, is transferred to after carrying out serial ports handshake communication in slave computer default " boot boot ", now can receives this binary ROMPaq with host computer.Due to ROMPaq transmit time, be partitioned into multiple packet, this multiple packet sends in order successively, and slave computer receives these packets successively and is restored to ROMPaq according to the sequencing of each packet.In order to prevent transmitting procedure from makeing mistakes, causing the failure of slave computer upgrade maintenance, in transmitting procedure, cyclic redundancy check (CRC) code (Cyclic Redundancy Check is called for short CRC) need be carried out.This is a kind of error check code the most frequently used in data communication field, it is characterized in that the length of information field and check field can be selected arbitrarily.CRC is a kind of data transmission error-detecting function, and transmitting terminal carries out polynomial computation to data, and is attached to after frame by the result obtained, and receiving end also performs similar algorithm, to ensure the correctness that data are transmitted and integrality.
In addition, in transmitting procedure, slave computer also needs to set up retransmission mechanism.If retransmission mechanism means wherein a certain data packets failure, then will retransfer this packet, until success, just then can transmit other packets according to the order preset afterwards.Can ensure that slave computer can be received sequentially each packet according to what preset like this, ensure that slave computer can restore this ROMPaq smoothly.
Similar, received ROMPaq is put in the middle of the flash memory (FLASH) of the application master routine of self by slave computer, utilizes this ROMPaq to cover current program, to realize the upgrade maintenance to slave computer.
Host computer can process ROMPaq simultaneously, also according to actual conditions, can sequentially process each ROMPaq.In the utility model embodiment, adopt sequentially to the mode that each slave computer is upgraded.
For the ease of operation, the management of engineering staff, display device can show the state of host computer and each slave computer thereof, therefore in whole upgrade maintenance process, whether the host computer that display device also can carry out upgrade maintenance to current or slave computer show, and can show host computer and obtain the speed of ROMPaq from the memory device of access and successfully obtain.Similar, display device also can show speed and the whether Successful transmissions that host computer and slave computer transmit ROMPaq.Whether display device also can show upgrade maintenance operation successful.
Concrete, as shown in Figure 2, for host computer, after it starts startup, will system initialization process be carried out, comprise some necessary parameters of configuration, the process such as each interface are set.Afterwards, host computer enters normal operating conditions.
Now, after the memory device access host computer that the USB interface such as USB flash disk are suitable for by staff, host computer can detect USB flash disk insert action, and whether the USB flash disk of host computer scanning afterwards judges in USB flash disk containing ROMPaq.If host computer does not detect USB flash disk insert action, whether duplicate detection there is USB flash disk insert action.
Then, the upgrading catalogue that host computer inquiry stores learns the corresponding objects of the upgrade file in USB flash disk, and what specifically correspond to host computer itself still corresponds to a certain slave computer.
If determine this ROMPaq corresponding to host computer itself, host computer will stop the master routine of self, and which version number is newer between the two to judge this current master routine and ROMPaq.If the version number of the ROMPaq in USB flash disk is comparatively new, known this ROMPaq that should utilize of host computer carries out upgrade maintenance operation to the master routine of host computer itself; Otherwise host computer can exit the process to this ROMPaq.If also have other ROMPaq in USB flash disk, host computer will go the process performing another ROMPaq.After all ROMPaq in USB flash disk are disposed, upgrade the upgrading catalogue stored, restart host computer master routine, exit the operation of whole upgrade maintenance, enter normal operating conditions.
In order to carry out upgrade maintenance operation to host computer, the ROMPaq (as .app file) in USB flash disk downloads by host computer, stored in internal memory, and this ROMPaq is covered current master routine, completes the upgrade maintenance operation of host computer.Meanwhile, display device demonstrates host computer, represent that current host computer carries out updating operation, also show the downloading process of whole ROMPaq and whether complete upgrade maintenance action.
If determine this ROMPaq corresponding to a certain slave computer, host computer needs the master routine stopping host computer equally, and access this slave computer, the version number of ROMPaq in the version number of the current program of this slave computer and USB flash disk is compared, if the version number of the ROMPaq in USB flash disk is comparatively new, the known master routine of this ROMPaq to this slave computer itself that should utilize of host computer carries out upgrade maintenance operation; Otherwise host computer can exit the process to this ROMPaq.If also have other ROMPaq in USB flash disk, host computer will go the process performing another ROMPaq.After all ROMPaq in USB flash disk are disposed, upgrade the upgrading catalogue stored, restart host computer master routine, exit the operation of whole upgrade maintenance, enter normal operating conditions.
In order to carry out upgrade maintenance operation to this slave computer, this ROMPaq is downloaded and stored in the internal memory of host computer, by serial ports, this ROMPaq is transferred to slave computer by host computer equally.Meanwhile, display device demonstrates this slave computer, represent that current slave computer carries out updating operation, also show the transmitting procedure of whole ROMPaq.
For slave computer, its " application master routine " when the ROMPaq from host computer being detected, is transferred in " boot boot ", now can receive this binary ROMPaq (as .bin file).As shown in Figure 3, open at it and after system initialization, if the ROMPaq that host computer transmits detected, handshake communication will be set up with host computer, starting to receive this binary ROMPaq.Simultaneously in order to ensure the correctness transmitted, in the process of transmission, carrying out CRC check and set up retransmission mechanism.Band EEPROM (Electrically Erasable Programmable Read Only Memo) (Electrically Erasable Programmable Read-Only Memory in slave computer, be called for short EEPROM), the state of this upgrading will be stored down, if upgrade successfully, upgrade maintenance operation can be exited, enter program, slave computer starts normal work; Otherwise if fail to upgrade successfully, slave computer will detect host computer again whether to its transmission ROMPaq.
In addition, if slave computer does not detect that host computer transmits ROMPaq to it, will judge that whether front upgrade maintenance operation is successful by EEPROM, if success, slave computer will enter program, start normally to work, otherwise, whether again detect host computer to its transmission ROMPaq.
For the ease of the use to host computer, operation, improve the man-machine interaction degree of host computer and staff, this host computer also can be provided with power interface for accessing power supply, can connect audio devices for staff provides the audio interface of audio-frequency information, also be provided with the network interface that can be connected to network in addition, be convenient to staff and communicated by network at any time.
In sum, the utility model embodiment provides a kind of embedded system, the host computer of this embedded system is provided with USB interface, the cooperation of the memory device accessed by host computer and USB interface thereof, for the upgrade maintenance of slave computer is provided convenience, solve the technical matters of slave computer updating operation inconvenience.
Although embodiment disclosed in the utility model is as above, the embodiment that described content just adopts for the ease of understanding the utility model, and be not used to limit the utility model.Technician in any the utility model art; under the prerequisite not departing from spirit and scope disclosed in the utility model; any amendment and change can be done what implement in form and in details; but scope of patent protection of the present utility model, the scope that still must define with appending claims is as the criterion.

Claims (7)

1. an embedded system, is characterized in that, comprising:
Host computer, described host computer is provided with USB (universal serial bus) and serial communication interface;
Slave computer, each slave computer connects serial commu-nication interface, by serial communication interface and described upper machine communication.
2. embedded system according to claim 1, is characterized in that,
When described upper computer detection has memory device to access to described USB (universal serial bus), whether the memory device inside detecting access exists ROMPaq; If detect to there is ROMPaq, according to the rule pre-seted, determine the corresponding objects of this ROMPaq, and after determining this corresponding objects, stop the master routine being used for controlling each slave computer, judge whether to utilize this ROMPaq to carry out upgrade maintenance for its corresponding objects; If so, this ROMPaq is then utilized to carry out upgrade maintenance for its corresponding objects.
3. embedded system according to claim 2, is characterized in that, also comprises:
Display device, described display device connects described host computer by display device interface, the state of display host computer and slave computer thereof.
4. embedded system according to claim 3, is characterized in that,
Whether current host computer and/or the slave computer carrying out upgrade maintenance of described display device display, also show host computer and transmits the speed of ROMPaq from the speed of the memory device acquisition ROMPaq of access, host computer and slave computer and successfully obtain and/or Successful transmissions.
5. the embedded system according to any one of Claims 1-4, is characterized in that,
Slave computer is the micro-control unit with application programming function.
6. the embedded system according to any one of Claims 1-4, is characterized in that,
Described host computer is the industrial control computer being provided with USB (universal serial bus), serial communication interface and display device interface.
7. embedded system according to claim 6, is characterized in that,
Described host computer is also provided with power interface, audio interface and network interface.
CN201520258287.8U 2015-04-27 2015-04-27 A kind of embedded system Active CN204576489U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201520258287.8U CN204576489U (en) 2015-04-27 2015-04-27 A kind of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201520258287.8U CN204576489U (en) 2015-04-27 2015-04-27 A kind of embedded system

Publications (1)

Publication Number Publication Date
CN204576489U true CN204576489U (en) 2015-08-19

Family

ID=53869095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201520258287.8U Active CN204576489U (en) 2015-04-27 2015-04-27 A kind of embedded system

Country Status (1)

Country Link
CN (1) CN204576489U (en)

Similar Documents

Publication Publication Date Title
CN104820609A (en) Embedded system and upgrade maintenance method thereof
US9804859B2 (en) Re-enumeration of USB 3.0 compatible devices
CN103246536B (en) The wireless firmware upgrade method of thing connection positioning system
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
CN111008033A (en) Universal DSP (digital signal processor) online upgrading system and upgrading method based on serial port
RU2008116377A (en) DATA RECEIVER, DATA TRANSMITTER AND METHOD FOR PROCESSING INFORMATION AND COMPUTER PROGRAM
CN102902650A (en) Data sharing and transfer systems and methods
CN103631609A (en) Method and system for refreshing vehicle-mounted ECU application program
CN107357595B (en) Bus-based multi-driver firmware online updating system
CN105183515A (en) Cloud deck firmware updating method and device
WO2016173128A1 (en) Method and device for downloading software version, and storage medium
CN107908417A (en) Firmware upgrade method and electronic equipment
CN104360921A (en) Method, device and system for monitoring performance of mobile terminal
CN103092648B (en) A kind of image upgrade method, system and subscriber equipment and personal computer
CN104461589A (en) Single-chip microcomputer updating method and system
CN111756858A (en) Remote development processing system, method and device of embedded equipment
CN204576489U (en) A kind of embedded system
CN112181460B (en) Program firmware upgrading method and device, electronic equipment and storage medium
CN103324587B (en) A kind of Nandflash equipment encryption and decryption realization method and system
CN104809005A (en) Drive installation method and device and computer
CN104750537A (en) Test case execution method and device
CN101982813B (en) Software remote updating method and updating system for train passenger information displays
CN100501710C (en) Peripheral apparatus access state checking method
CN105656980A (en) File processing method, device and system
CN101917395A (en) General upgrading method, device and system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171221

Address after: 102600 Beijing city Daxing District Zhongguancun science and Technology Park Daxing bio pharmaceutical industry base, No. 21 courtyard, Tianrong street, building No. 1

Patentee after: Beijing Century Dongfang Communication Equipment Co., Ltd.

Address before: 100070 Beijing, Fengtai District, South Fourth Ring Road West, No. twelve, district 31, building (Park)

Patentee before: Beijing Century East China Railway Technology Co., Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 102600 Beijing Daxing District Zhongguancun Science and Technology Park Daxing Biomedical Industry Base, No. 1 Building, 21 Tianrong Street

Patentee after: Beijing Century Oriental Zhihui Technology Co.,Ltd.

Address before: 102600 Beijing Daxing District Zhongguancun Science and Technology Park Daxing Biomedical Industry Base, No. 1 Building, 21 Tianrong Street

Patentee before: BEIJING CENTURY DONGFANG COMMUNICATION EQUIPMENT Co.,Ltd.

CP01 Change in the name or title of a patent holder