[go: up one dir, main page]

CN107656513A - The mode switching method and embedded device of embedded device - Google Patents

The mode switching method and embedded device of embedded device Download PDF

Info

Publication number
CN107656513A
CN107656513A CN201710742556.1A CN201710742556A CN107656513A CN 107656513 A CN107656513 A CN 107656513A CN 201710742556 A CN201710742556 A CN 201710742556A CN 107656513 A CN107656513 A CN 107656513A
Authority
CN
China
Prior art keywords
interface
circuit
mode
equipment
switched
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
CN201710742556.1A
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.)
Goertek Dynaudio Co Ltd
Original Assignee
Goertek Dynaudio 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 Goertek Dynaudio Co Ltd filed Critical Goertek Dynaudio Co Ltd
Priority to CN201710742556.1A priority Critical patent/CN107656513A/en
Priority to PCT/CN2017/102761 priority patent/WO2019037188A1/en
Publication of CN107656513A publication Critical patent/CN107656513A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses the mode switching method of embedded device and embedded device.The equipment includes first interface, the second interface exposed to device external, the on-off circuit being connected with embeded processor, and first interface is identical with the type of second interface;Mode flags position setup module, for the order in response to switching to engineering mode/switch to user model, mode flags position is arranged to engineering mode mark/user model mark;Pattern switching control module, for being arranged to engineering mode mark in response to mode flags position, equipment is switched into engineering mode and on-off circuit is switched to the debugging interface of connection second interface and embeded processor, it is arranged to user model mark in response to mode flags position, equipment is switched into user model and on-off circuit is switched into connection first interface and second interface.Method and apparatus provided by the invention can be used for the switching of engineering mode and user model.

Description

The mode switching method and embedded device of embedded device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of mode switching method of embedded device and one kind it is embedding Enter formula equipment.
Background technology
With the arrival of intellectualization times, embedded system is widely applied in every field.Use embedded system The personnel of system are broadly divided into two classes, and one kind is exploitation test maintaining personnel, and one kind is domestic consumer.The former needs to enter engineering Pattern, the pattern allow the Debugging message for the system of checking and carry out comprehensive functional configuration test.The latter need not be to system Develop debugging function, it is only necessary into user model.
In the prior art, only there is user model after embedded device complete machine assembles, for the tune of embedded system Mouth of trying has been enclosed, if the follow-up debugging demand having to embedded system, it usually needs take embedded device apart, very It is inconvenient.Therefore, it is necessary to a kind of pattern switching scheme is provided for embedded device, it is convenient to develop test maintaining personnel to The embedded device assembled through complete machine carries out debugging test.
The content of the invention
The purpose of the present invention is to provide a kind of pattern switching scheme for embedded device, convenient to develop test maintaining personnel Debugging test is carried out to the embedded device that complete machine assembles.
According to the first aspect of the invention, there is provided a kind of mode switching method of embedded device, the equipment include The first interface that is connected with the embeded processor of the equipment, second interface and on-off circuit exposed to device external, The first interface and the second interface are same type of interfaces;It the described method comprises the following steps:
Order in response to switching to engineering mode, mode flags position is arranged to engineering mode mark;
Be arranged to engineering mode mark in response to the mode flags position, by the equipment switch to engineering mode and The on-off circuit is switched to the debugging interface for connecting the second interface and the embeded processor;
And/or
Order in response to switching to user model, mode flags position is arranged to user model mark;
Be arranged to user model mark in response to the mode flags position, by the equipment switch to user model and The on-off circuit is switched to and connects the first interface and the second interface.
Alternatively, methods described is further comprising the steps of:
Starting logo position is initialized as starting shooting when the equipment starts and does not complete mark, mode flags position is initialized as User model mark;Wherein, the equipment is configured as in the state of not completing mark in the starting logo position for start, is prohibited Only the mode flags position is arranged to engineering mode mark;And
During the equipment start completion, the starting logo position is arranged to complement mark of starting shooting.
Alternatively, the on-off circuit includes first switch circuit and second switch circuit, the first interface and described Second interface is USB interface;
The first end of the first switch circuit is connected with the D+ pins of the second interface, the second switch circuit First end is connected with the D- pins of the second interface;
It is described that the on-off circuit is switched to the debugging interface for connecting the second interface and the embeded processor, Including:Second end of the first switch circuit is switched to and connected with the debugging output/input interface of the embeded processor Connect, the second end of the second switch circuit is switched to and is connected with the debugging input/output interface of the embeded processor;
Described switch to the on-off circuit connects the first interface and the second interface, including:By described Second end of one on-off circuit switches to be connected with the D+ pins of the first interface, by the second end of the second switch circuit Switch to and be connected with the D- pins of the first interface.
Alternatively, the on-off circuit includes first switch circuit and second switch circuit, the first interface and described Second interface is audio input interface;
The first end of the first switch circuit is connected with the left channel pin of the second interface, the second switch electricity The first end on road is connected with the right channel pin of the second interface;
It is described that the on-off circuit is switched to the debugging interface for connecting the second interface and the embeded processor, Including:Second end of the first switch circuit is switched to and connected with the debugging output/input interface of the embeded processor Connect, the second end of the second switch circuit is switched to and is connected with the debugging input/output interface of the embeded processor;
Described switch to the on-off circuit connects the first interface and the second interface, including:By described Second end of one on-off circuit switches to the left channel pin with the first interface to be connected, by the of the second switch circuit Two ends switch to the right channel pin with the first interface to be connected.
Alternatively, the order for switching to engineering mode and/or the order for switching to user model are by outer Portion's keypad is inputted to the equipment;Or the equipment described in the infrared remote receiver reception of itself by switching to stage die The order of formula and/or the order for switching to user model;Or the order for switching to engineering mode and/or described The order for switching to user model is the audio stream of particular form, and the equipment passes through described in the audio input interface reception of itself Switch to the order and/order described or that switch to user model of engineering mode.
According to the second aspect of the invention, there is provided a kind of embedded device, the equipment include embedding with the equipment Enter formula processor connection first interface, second interface and on-off circuit exposed to device external, the first interface and The second interface is same type of interface;The equipment also includes mode flags position setup module and pattern switching control mould Block;
Mode flags position setup module, for the order in response to switching to engineering mode, mode flags position is set It is set to engineering mode mark;And/or for the order in response to switching to user model, mode flags position is arranged to user Mode flags;
The pattern switching control module, will for being arranged to engineering mode mark in response to the mode flags position The equipment, which switches to engineering mode and switches to the on-off circuit, connects the second interface and the embedded place Manage the debugging interface of device;And/or for being arranged to user model mark in response to the mode flags position, by the equipment Switch to user model and switch to the on-off circuit and connect the first interface and the second interface.
Alternatively, the equipment also includes starting logo position setup module;
Starting logo position setup module, for starting logo position to be initialized as into start not when the equipment starts Complement mark, and the starting logo position is arranged to complement mark of starting shooting in the equipment start completion;Wherein, it is described Equipment is configured as in the state of not completing mark in the starting logo position for start, forbids the mode flags position to be set For engineering mode mark;
Mode flags position setup module, it is additionally operable to that mode flags position is initialized as into user when the equipment starts Mode flags.
Alternatively, the on-off circuit includes first switch circuit and second switch circuit, the first interface and described Second interface is USB interface;
The first end of the first switch circuit is connected with the D+ pins of the second interface, the second switch circuit First end is connected with the D- pins of the second interface;
The on-off circuit is switched to the connection second interface and described embedded by the pattern switching control module The debugging interface of processor, including:Second end of the first switch circuit is switched to the tune with the embeded processor Output/input interface connection is tried, the second end of the second switch circuit is switched to the debugging with the embeded processor Input/output interface connects;
The on-off circuit is switched to the connection first interface and described second to connect by the pattern switching control module Mouthful, including:Second end of the first switch circuit is switched to and is connected with the D+ pins of the first interface, by described second Second end of on-off circuit switches to be connected with the D- pins of the first interface.
Alternatively, the on-off circuit includes first switch circuit and second switch circuit, the first interface and described Second interface is audio input interface;
The first end of the first switch circuit is connected with the left channel pin of the second interface, the second switch electricity The first end on road is connected with the right channel pin of the second interface;
The on-off circuit is switched to the connection second interface and described embedded by the pattern switching control module The debugging interface of processor, including:Second end of the first switch circuit is switched to the tune with the embeded processor Output/input interface connection is tried, the second end of the second switch circuit is switched to the debugging with the embeded processor Input/output interface connects;
The on-off circuit is switched to the connection first interface and described second to connect by the pattern switching control module Mouthful, including:The left channel pin with the first interface is switched to be connected at the second end of the first switch circuit, by described in Second end of second switch circuit switches to the right channel pin with the first interface to be connected.
Alternatively, the order for switching to engineering mode and/or the order for switching to user model are by outer Portion's keypad is inputted to the equipment;Or the equipment described in the infrared remote receiver reception of itself by switching to stage die The order of formula and/or the order for switching to user model;Or the order for switching to engineering mode and/or described The order for switching to user model is the audio stream of particular form, and the equipment passes through described in the audio input interface reception of itself Switch to the order and/order described or that switch to user model of engineering mode.
The pattern switching scheme of embedded device provided by the invention, it can be carried out between user model and engineering mode Switching, convenient exploitation test maintaining personnel carry out debugging test to the embedded device that complete machine assembles.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described.It should be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore it is not construed as pair The restriction of scope.For those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows the block diagram for the embedded device that first embodiment of the invention provides;
Fig. 2 shows the block diagram for the embedded device that second embodiment of the invention provides;
Fig. 3 shows the connection diagram of the on-off circuit of embedded device provided in an embodiment of the present invention;
Fig. 4 shows the connection diagram of the on-off circuit of embedded device provided in an embodiment of the present invention;
Fig. 5 shows that embedded device provided in an embodiment of the present invention switches to the schematic flow sheet of engineering mode;
Fig. 6 shows that embedded device provided in an embodiment of the present invention switches to the schematic flow sheet of user model;
Fig. 7 shows the block diagram of the hardware configuration of embedded device provided in an embodiment of the present invention.
Embodiment
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should be noted that:Unless have in addition Body illustrates that the unlimited system of part and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally The scope of invention.
The description only actually at least one exemplary embodiment is illustrative to be never used as to the present invention below And its application or any restrictions that use.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of, the technology, method and apparatus should be considered as part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
<Embedded device>
With reference to shown in figure 1, illustrate the embedded device that first embodiment of the invention provides:Embedded device 100 include with The first interface 1 of the embeded processor connection of embedded device 100, the second interface outside embedded device 100 2 and on-off circuit 4, first interface 1 and second interface 2 are same type of interfaces.Embedded device 100 also includes pattern Flag bit setup module 6 and pattern switching control module 5.
Mode flags position setup module 6, for the order in response to switching to engineering mode, mode flags position is arranged to Engineering mode mark.Pattern switching control module 5, will be embedding for being arranged to engineering mode mark in response to mode flags position Enter the tune that formula equipment 100 switches to engineering mode and on-off circuit 4 is switched to connection second interface 2 and embeded processor Try mouth 3 so that technical staff can access debugging interface 3 by second interface 2, and what complete machine was assembled embedded sets Standby 100 carry out debugging test.
Mode flags position setup module 6, is additionally operable to the order in response to switching to user model, and mode flags position is set For user model mark.Pattern switching control module 5, it is additionally operable to be arranged to user model mark in response to mode flags position, Embedded device 100 is switched into user model and on-off circuit 4 is switched into connection first interface 1 and second interface 2, is made Obtain embedded device 100 and switch back into user model from engineering mode.
With reference to shown in figure 2, illustrate second embodiment of the invention provide embedded device, and first embodiment provide it is embedding Enter formula equipment to compare, the embedded device 100 that second embodiment provides also includes starting logo position setup module 7.
Starting logo position setup module 7, for being initialized as starting shooting by starting logo position when embedded device 100 starts Mark is not completed, and starting logo position is arranged to complement mark of starting shooting in 100 start completion of embedded device.It is embedded Equipment 100 is configured as in the state of not completing mark in starting logo position for start, and prohibited mode flag bit is arranged to work Journey mode flags.
Mode flags position setup module 6, it is additionally operable to be initialized as using by mode flags position when embedded device 100 starts Family mode flags, i.e. embedded device 100 can all be arranged to user model when starting shooting every time.
Because embedded device 100 is configured as the prohibited mode in the state of the unfinished mark of start is in starting logo position Flag bit is arranged to engineering mode mark, and embedded device 100 can switch to engineering mode after the completion of only starting shooting, main Syllabus is the initialization for protecting each module in start process, and prevents that switch mode brings problem in start process.
In the embedded device that above-described embodiment provides, judge it is user model or stage die by mode flags position Formula, if under engineering mode, then open Debugging message and test function.If in the user mode, then only providing makes With function, not open Debugging message and test function.
<On-off circuit>
With reference to shown in figure 3, illustrate that the connection of the on-off circuit for the embedded device that one embodiment of the present of invention provides is shown It is intended to.
On-off circuit includes first switch circuit 31 and second switch circuit 32, and first interface and second interface connect for USB Mouthful.
The first end of first switch circuit 31 is connected with the D+ pins of secondary USB interface 21, and the of second switch circuit 32 One end is connected with the D- pins of secondary USB interface 21.
It is arranged to engineering mode mark in response to the mode flags position, pattern switching control module is by embedded device Engineering mode is switched to, and the second end of first switch circuit 31 is switched into the debugging input interface with embeded processor RX connections, the second end of second switch circuit 32 is switched to and is connected with the debugging output interface TX of embeded processor.Certainly, Second end of first switch circuit 31 can also be switched to and be connected with the debugging output interface TX of embeded processor, by second Second end of on-off circuit 32 switches to be connected with the debugging input interface RX of embeded processor.By above-mentioned switching so that Technical staff can access debugging input interface RX and debugging output interface TX by secondary USB interface 21, to complete machine group The embedded device installed carries out debugging test.
It is arranged to user model mark in response to the mode flags position, pattern switching control module is by embedded device User model is switched to, and switches to the D+ pins with the first usb 11 to be connected at the second end of first switch circuit 31, The D- pins with the first usb 11 are switched to be connected at the second end of the circuit of second switch 32.
With reference to shown in figure 4, illustrate that the connection of the on-off circuit for the embedded device that one embodiment of the present of invention provides is shown It is intended to.
On-off circuit includes first switch circuit 31 and second switch circuit 32, and first interface and second interface are that audio is defeated Incoming interface.
The first end of first switch circuit 31 is connected with the left channel pin of the second audio input interface 22, second switch electricity The first end on road 31 is connected with the right channel pin of the second audio input interface 22.
It is arranged to engineering mode mark in response to the mode flags position, pattern switching control module is by embedded device Engineering mode is switched to, and the second end of first switch circuit 31 is switched into the debugging input interface with embeded processor RX connections, the second end of second switch circuit 32 is switched to and is connected with the debugging output interface TX of embeded processor.Certainly, Second end of first switch circuit 31 can also be switched to and be connected with the debugging output interface TX of embeded processor, by second Second end of on-off circuit 32 switches to be connected with the debugging input interface RX of embeded processor.By above-mentioned switching so that Technical staff can access debugging input interface RX and debugging output interface TX by the second audio input interface 22, to whole The embedded device 100 that machine assembles carries out debugging test.
It is arranged to user model mark in response to the mode flags position, pattern switching control module is by embedded device User model is switched to, and the second end of first switch circuit 31 is switched into the L channel with the first audio input interface 12 Pin connects, and switches to the right channel pin with the first audio input interface 12 to be connected at the second end of second switch circuit 32.
<Mode handover command receives mode>
In the above-described embodiments, embedded device can receive the pattern switching life of user's input by following three kinds of modes Order:
First way:The order for switching to engineering mode and/or the order for switching to user model be by outside by Keypad is inputted to embedded device.Keypad is connected with embedded device, and specific non-functional key or specific is defined in keypad Macintosh is as mode handover command.In the state of embedded device is in user model, specific non-functional key or spy are pressed When determining Macintosh, embedded device switches to engineering mode and second interface is connected with debugging interface so that technical staff can Debugging test is carried out to the embedded device that complete machine assembles to access debugging interface by second interface;When user again Specific non-functional key or particular combination key are pressed, embedded device switches to user model and second interface connects with first interface Connect, second interface recovers the function of its script.
The second way:Embedded device by itself infrared remote receiver receive switch to engineering mode order and/ Or switch to the order of user model.Common IR remote controller coding range is 0~255, the volume that distant control function uses in itself Code is no so much, and technical staff can set specific coding in vacant coding and be used as switching command, embedded device The mode handover command of IR remote controller transmission is received by the infrared remote receiver of itself.
The third mode:The order for switching to engineering mode and/or the order for switching to user model are particular forms Audio stream, embedded device is received by the audio input interface of itself to be switched to the order of engineering mode and/or switches to use The order of family pattern.
<The mode switching method of embedded device>
Referring to the mode switching method for shown in Fig. 5 and Fig. 6, illustrating offer embedded device of the embodiment of the present invention:
Embedded device electrifying startup, perform step 801, embedded system initialization;By starting logo position SystemOkFlag is initialized as 0, SystemOkFlag=0 and represents that start does not complete;Mode flags position ModelFlag is initial Turn to 0, ModelFlag=0 and represent user model.
After initialization is completed, step 802 is performed, starting logo position SystemOkFlag is arranged to 1, SystemOkFlag=1 represents that start is completed.
Step 803, system detects starting logo position SystemOkFlag in real time, if SystemOkFlag=0, shields Switch to the order of engineering mode.
Step 804, in the state of SystemOkFlag=1, detect whether to receive the order for switching to engineering mode.
System is in the state of starting logo position SystemOkFlag is 1, if receiving the life for switching to engineering mode Order, then step 805 is performed, mode flags position ModelFlag is arranged into 1, ModelFlag=1 represents engineering mode.
It is arranged to 1 in response to mode flags position ModelFlag, performs step 806, embedded device 1 switches to engineering Pattern and on-off circuit switch to the debugging interface of connection second interface and embeded processor.
In the state of embedded device is in engineering mode, step 901, which detects whether to receive, switches to user model Order.If receiving the order for switching to user model, step 902 is performed, mode flags position ModelFlag is set For 0.It is arranged to 0 in response to mode flags position ModelFlag, performs step 903, embedded device switches to user model simultaneously And on-off circuit switches to connection first interface and second interface, second interface to recover the function of its script.
The embodiments of the invention provide a kind of mode switching method of embedded device, the equipment includes and the equipment Embeded processor connection first interface, second interface and on-off circuit exposed to device external, described first connects Mouth and the second interface are same type of interfaces;It the described method comprises the following steps:In response to switching to engineering mode Order, engineering mode mark is arranged to by mode flags position;It is arranged to engineering mode mark in response to the mode flags position, The equipment is switched into engineering mode and the on-off circuit is switched into the connection second interface and described embedded The debugging interface of processor;And/or in response to switching to the order of user model, mode flags position is arranged to user model Mark;It is arranged to user model mark in response to the mode flags position, the equipment is switched into user model and incited somebody to action The on-off circuit, which switches to, connects the first interface and the second interface.
In a specific example, methods described is further comprising the steps of:By starting logo position when the equipment starts It is initialized as starting shooting and does not complete mark, mode flags position is initialized as user model mark;Wherein, the equipment is configured as In the state of not completing mark in the starting logo position for start, the mode flags position is forbidden to be arranged to engineering mode mark Will;And during the equipment start completion, the starting logo position is arranged to complement mark of starting shooting.
In a specific example, the on-off circuit includes first switch circuit and second switch circuit, and described One interface and the second interface are USB interface;The first end of the first switch circuit and the D+ pins of the second interface Connection, the first end of the second switch circuit are connected with the D- pins of the second interface;It is described to cut the on-off circuit The debugging interface for connecting the second interface and the embeded processor is changed to, including:By the of the first switch circuit Two ends switch to be connected with the debugging output/input interface of the embeded processor, by the second of the second switch circuit End switches to be connected with the debugging input/output interface of the embeded processor;It is described that the on-off circuit is switched into company The first interface and the second interface are connect, including:Second end of the first switch circuit is switched to and described first The D+ pins connection of interface, the second end of the second switch circuit is switched to and is connected with the D- pins of the first interface.
In a specific example, the on-off circuit includes first switch circuit and second switch circuit, and described One interface and the second interface are audio input interface;The first end of the first switch circuit and a left side for the second interface Sound channel pin is connected, and the first end of the second switch circuit is connected with the right channel pin of the second interface;It is described by institute State on-off circuit and switch to the debugging interface for connecting the second interface and the embeded processor, including:By described first Second end of on-off circuit switches to be connected with the debugging output/input interface of the embeded processor, and described second is opened Second end on powered-down road switches to be connected with the debugging input/output interface of the embeded processor;It is described by the switch Circuit, which switches to, connects the first interface and the second interface, including:Second end of the first switch circuit is switched To be connected with the left channel pin of the first interface, the second end of the second switch circuit is switched to and connect with described first The right channel pin connection of mouth.
In a specific example, the order for switching to engineering mode and/or the user model that switches to Order is to be inputted by external key plate to the equipment.
In a specific example, the equipment described in the infrared remote receiver reception of itself by switching to engineering mode Order and/or the order for switching to user model.
In a specific example, the order for switching to engineering mode and/or the user model that switches to Order is the audio stream of particular form, and the equipment described in the audio input interface reception of itself by switching to engineering mode Order and/order described or that switch to user model.
<Embedded device>
To those skilled in the art, can be real by way of hardware mode, software mode or software and hardware combining The mode switching method of existing foregoing embedded device.Based on same inventive concept, the insertion of the embodiment of the present invention is introduced with reference to figure 7 Formula equipment, to perform previous mode switching method.
Fig. 7 is the block diagram for the example for showing the hardware configuration available for the embedded device for realizing embodiments of the invention. Embedded device 300 includes embeded processor 3010, memory 3020, interface arrangement 3030, communicator 3040, display dress Put 3050, input unit 3060, loudspeaker 3070, microphone 3080, etc..Embedded device 300 also includes and embedded place Manage first interface, the second interface and and embedded processing exposed to the device external of embedded device 300 that device 3010 connects The on-off circuit that device 3010 connects, it is not shown in Fig. 7.
Memory 3020 is used for store instruction, and described instruct is operated for control processor 3010 to perform before The mode switching method described in any one is stated, including:Order in response to switching to engineering mode, mode flags position is arranged to Engineering mode mark;It is arranged to engineering mode mark in response to the mode flags position, the equipment is switched into stage die Formula and the debugging interface that the on-off circuit is switched to the connection second interface and the embeded processor;And/or Order in response to switching to user model, mode flags position is arranged to user model mark;In response to the mode flags Position is arranged to user model mark, and the equipment is switched into user model and the on-off circuit is switched into connection institute State first interface and the second interface.
Interface arrangement 3030 is such as including USB interface, earphone interface.Communicator 3040 can for example carry out it is wired or Radio communication.Display device 3050 is, for example, LCDs, touch display screen etc..Input unit 3060 can for example include touching Touch screen, keyboard etc..User can pass through loudspeaker 3070 and the inputting/outputting voice information of microphone 3080.
Embedded device shown in Fig. 7 is only explanatory, and is never intended to the limitation present invention, its application or uses On the way.It will be appreciated by those skilled in the art that although figure 7 illustrates multiple devices, still, the present invention can only relate to wherein Partial devices.Those skilled in the art can instruct according to presently disclosed conceptual design, instruction how control processor It is techniques well known to carry out operation, therefore is not described in detail herein.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. But make it will be clear for those skilled in the art that the various embodiments described above can be used alone or be combined with each other as needed With.In addition, for device embodiment, because it is corresponding with embodiment of the method, so describe fairly simple, it is related Part referring to the corresponding part of embodiment of the method explanation.System embodiment described above is only schematical, It is not physically separate that the module wherein illustrated as separating component, which can be or may also be,.
In addition, the flow chart and block diagram in accompanying drawing show system, method and the meter of multiple embodiments according to the present invention Architectural framework in the cards, function and the operation of calculation machine program product.At this point, each square frame in flow chart or block diagram Can represent a part for a module, program segment or code, the part of the module, program segment or code include one or Multiple executable instructions for being used to realize defined logic function.It should also be noted that some as replace realization in, square frame Middle marked function can also be with different from the order marked in accompanying drawing generation.For example, two continuous square frames are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also to note Meaning, the combination of each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart can be with holding Function as defined in row or the special hardware based system of action are realized, or can use specialized hardware and computer instruction Combination realize.
The computer program product that the embodiment of the present invention is provided, including store the computer-readable storage of program code Medium, the instruction that described program code includes can be used for performing the method described in previous methods embodiment, and specific implementation can be joined See embodiment of the method, will not be repeated here.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be with Realize by another way.Device embodiment described above is only schematical, for example, the division of the unit, Only a kind of division of logic function, can there is other dividing mode when actually realizing, in another example, multiple units or component can To combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or beg for The mutual coupling of opinion or direct-coupling or communication connection can be by some communication interfaces, device or unit it is indirect Coupling or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.
Although some specific embodiments of the present invention are described in detail by example, the skill of this area Art personnel it should be understood that example above merely to illustrating, the scope being not intended to be limiting of the invention.The skill of this area Art personnel to above example it should be understood that can modify without departing from the scope of the invention.The model of the present invention Enclose and be defined by the following claims.

Claims (10)

1. a kind of mode switching method of embedded device, it is characterised in that the equipment includes embedded with the equipment The first interface of processor connection, second interface and on-off circuit exposed to device external, the first interface and described Second interface is same type of interface;It the described method comprises the following steps:
Order in response to switching to engineering mode, mode flags position is arranged to engineering mode mark;
It is arranged to engineering mode mark in response to the mode flags position, the equipment is switched into engineering mode and by institute State on-off circuit and switch to the debugging interface for connecting the second interface and the embeded processor;
And/or
Order in response to switching to user model, mode flags position is arranged to user model mark;
It is arranged to user model mark in response to the mode flags position, the equipment is switched into user model and by institute State on-off circuit and switch to the connection first interface and the second interface.
2. according to the method for claim 1, it is characterised in that methods described is further comprising the steps of:
Starting logo position is initialized as starting shooting when the equipment starts and does not complete mark, mode flags position is initialized as user Mode flags;Wherein, the equipment is configured as in the state of not completing mark in the starting logo position for start, forbids institute State mode flags position and be arranged to engineering mode mark;And
During the equipment start completion, the starting logo position is arranged to complement mark of starting shooting.
3. according to the method for claim 1, it is characterised in that the on-off circuit is opened including first switch circuit and second Powered-down road, the first interface and the second interface are USB interface;
The first end of the first switch circuit is connected with the D+ pins of the second interface, and the first of the second switch circuit End is connected with the D- pins of the second interface;
It is described that the on-off circuit is switched to the debugging interface for connecting the second interface and the embeded processor, bag Include:Second end of the first switch circuit is switched to and is connected with the debugging output/input interface of the embeded processor, Second end of the second switch circuit is switched to and is connected with the debugging input/output interface of the embeded processor;
Described switch to the on-off circuit connects the first interface and the second interface, including:Described first is opened Second end on powered-down road switches to be connected with the D+ pins of the first interface, and the second end of the second switch circuit is switched It is connected for the D- pins with the first interface.
4. according to the method for claim 1, it is characterised in that the on-off circuit is opened including first switch circuit and second Powered-down road, the first interface and the second interface are audio input interface;
The first end of the first switch circuit is connected with the left channel pin of the second interface, the second switch circuit First end is connected with the right channel pin of the second interface;
It is described that the on-off circuit is switched to the debugging interface for connecting the second interface and the embeded processor, bag Include:Second end of the first switch circuit is switched to and is connected with the debugging output/input interface of the embeded processor, Second end of the second switch circuit is switched to and is connected with the debugging input/output interface of the embeded processor;
Described switch to the on-off circuit connects the first interface and the second interface, including:Described first is opened Second end on powered-down road switches to the left channel pin with the first interface to be connected, by the second end of the second switch circuit The right channel pin with the first interface is switched to be connected.
5. according to the method described in claim any one of 1-4, it is characterised in that the order for switching to engineering mode and/ Or the order for switching to user model is to be inputted by external key plate to the equipment;Or the equipment passes through certainly The infrared remote receiver of body switches to the order of engineering mode and/or the order for switching to user model described in receiving;Or The order for switching to engineering mode and/or it is described switch to user model order be particular form audio stream, it is described Equipment by the audio input interface of itself receive described in switch to engineering mode order and/it is described or switch to user model Order.
6. a kind of embedded device, it is characterised in that the equipment includes the be connected with the embeded processor of the equipment One interface, second interface and on-off circuit exposed to device external, the first interface and the second interface are of the same race The interface of type;The equipment also includes mode flags position setup module and pattern switching control module;
Mode flags position setup module, for the order in response to switching to engineering mode, mode flags position is arranged to Engineering mode mark;And/or for the order in response to switching to user model, mode flags position is arranged to user model Mark;
The pattern switching control module, for being arranged to engineering mode mark in response to the mode flags position, by described in Equipment, which switches to engineering mode and switches to the on-off circuit, connects the second interface and the embeded processor Debugging interface;And/or for being arranged to user model mark in response to the mode flags position, the equipment is switched For user model and the on-off circuit is switched to and connect the first interface and the second interface.
7. equipment according to claim 6, it is characterised in that the equipment also includes starting logo position setup module;
Starting logo position setup module, do not completed for starting logo position to be initialized as into start when the equipment starts Mark, and the starting logo position is arranged to complement mark of starting shooting in the equipment start completion;Wherein, the equipment It is configured as in the state of not completing mark in the starting logo position for start, forbids the mode flags position to be arranged to work Journey mode flags;
Mode flags position setup module, it is additionally operable to that mode flags position is initialized as into user model when the equipment starts Mark.
8. equipment according to claim 6, it is characterised in that the on-off circuit is opened including first switch circuit and second Powered-down road, the first interface and the second interface are USB interface;
The first end of the first switch circuit is connected with the D+ pins of the second interface, and the first of the second switch circuit End is connected with the D- pins of the second interface;
The on-off circuit is switched to and connects the second interface and the embedded processing by the pattern switching control module The debugging interface of device, including:Second end of the first switch circuit is switched to defeated with the debugging of the embeded processor Go out/input interface connection, by the second end of the second switch circuit switch to the debugging of the embeded processor input/ Output interface connects;
The pattern switching control module, which switches to the on-off circuit, connects the first interface and the second interface, bag Include:Second end of the first switch circuit is switched to and is connected with the D+ pins of the first interface, by the second switch Second end of circuit switches to be connected with the D- pins of the first interface.
9. equipment according to claim 6, it is characterised in that the on-off circuit is opened including first switch circuit and second Powered-down road, the first interface and the second interface are audio input interface;
The first end of the first switch circuit is connected with the left channel pin of the second interface, the second switch circuit First end is connected with the right channel pin of the second interface;
The on-off circuit is switched to and connects the second interface and the embedded processing by the pattern switching control module The debugging interface of device, including:Second end of the first switch circuit is switched to defeated with the debugging of the embeded processor Go out/input interface connection, by the second end of the second switch circuit switch to the debugging of the embeded processor input/ Output interface connects;
The pattern switching control module, which switches to the on-off circuit, connects the first interface and the second interface, bag Include:The left channel pin with the first interface is switched to be connected at the second end of the first switch circuit, by described second Second end of on-off circuit switches to the right channel pin with the first interface to be connected.
10. equipment according to claim 6, it is characterised in that the order for switching to engineering mode and/or described cut The order for being changed to user model is to be inputted by external key plate to the equipment;Or the equipment passes through the infrared of itself Receiver switches to the order of engineering mode and/or the order for switching to user model described in receiving;Or the switching Order for engineering mode and/or it is described switch to user model order be particular form audio stream, the equipment passes through Itself audio input interface switches to the order and/order described or that switch to user model of engineering mode described in receiving.
CN201710742556.1A 2017-08-25 2017-08-25 The mode switching method and embedded device of embedded device Pending CN107656513A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710742556.1A CN107656513A (en) 2017-08-25 2017-08-25 The mode switching method and embedded device of embedded device
PCT/CN2017/102761 WO2019037188A1 (en) 2017-08-25 2017-09-21 METHOD FOR MODE SWITCHING AN INTEGRATED DEVICE AND INTEGRATED DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710742556.1A CN107656513A (en) 2017-08-25 2017-08-25 The mode switching method and embedded device of embedded device

Publications (1)

Publication Number Publication Date
CN107656513A true CN107656513A (en) 2018-02-02

Family

ID=61128704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710742556.1A Pending CN107656513A (en) 2017-08-25 2017-08-25 The mode switching method and embedded device of embedded device

Country Status (2)

Country Link
CN (1) CN107656513A (en)
WO (1) WO2019037188A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131160A (en) * 2020-09-27 2020-12-25 北京海益同展信息科技有限公司 Working mode switching circuit, working mode switching method and robot
US10977026B2 (en) 2018-11-20 2021-04-13 Pegatron Corporation Data updating system, embedded electronic device and data updating method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111533096B (en) 2020-05-27 2020-11-10 中钢集团南京新材料研究院有限公司 Black phosphorus nanosheet and preparation method and application thereof

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101258465A (en) * 2005-07-12 2008-09-03 高通股份有限公司 System and method of controlling multiple program threads within a multithreaded processor
CN101395584A (en) * 2006-03-08 2009-03-25 高通股份有限公司 JTAG power demotion debugging
CN101535962A (en) * 2006-11-15 2009-09-16 高通股份有限公司 Method and system for trusted/untrusted digital signal processor debugging operations
CN101577986A (en) * 2009-06-02 2009-11-11 中兴通讯股份有限公司 Mobile communication terminal
CN101893685A (en) * 2009-05-23 2010-11-24 深圳富泰宏精密工业有限公司 Debugging device
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface
CN102708001A (en) * 2012-04-26 2012-10-03 深圳市九思泰达技术有限公司 Linux embedded equipment and switching method between user mode and engineering mode
CN104244160A (en) * 2013-06-21 2014-12-24 鸿富锦精密工业(深圳)有限公司 Electronic device capable of being debugged through earphone port
CN104484592A (en) * 2014-12-31 2015-04-01 广州视源电子科技股份有限公司 Method and system for starting factory mode of mobile equipment
CN104991846A (en) * 2015-07-01 2015-10-21 上海斐讯数据通信技术有限公司 Working mode switching system and method for mobile terminal
CN105141863A (en) * 2015-07-06 2015-12-09 Tcl海外电子(惠州)有限公司 Television production debugging method and television production debugging device
CN105898475A (en) * 2015-12-21 2016-08-24 乐视致新电子科技(天津)有限公司 Method for improving compatibility between intelligent TV and embedded multimedia card and intelligent TV
US20160283351A1 (en) * 2015-03-27 2016-09-29 Sheng S. Huang Instruction and Logic for a Convertible Innovation and Debug Engine
CN106101937A (en) * 2016-08-04 2016-11-09 广州视源电子科技股份有限公司 Audio playing method for sound box
CN106227630A (en) * 2016-07-28 2016-12-14 上海庆科信息技术有限公司 A kind of detecting system for embedded radio module

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904829A (en) * 2005-07-29 2007-01-31 联想(北京)有限公司 Method and system for implementing multi-mode controlling mode switching
CN1979686A (en) * 2005-12-06 2007-06-13 上海华虹Nec电子有限公司 Safety detecting method for system integrated chip with built-in non-volatile memory
CN201611481U (en) * 2010-01-06 2010-10-20 浙江德景电子科技有限公司 Embedded device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101258465A (en) * 2005-07-12 2008-09-03 高通股份有限公司 System and method of controlling multiple program threads within a multithreaded processor
CN101395584A (en) * 2006-03-08 2009-03-25 高通股份有限公司 JTAG power demotion debugging
CN101535962A (en) * 2006-11-15 2009-09-16 高通股份有限公司 Method and system for trusted/untrusted digital signal processor debugging operations
CN101893685A (en) * 2009-05-23 2010-11-24 深圳富泰宏精密工业有限公司 Debugging device
CN101577986A (en) * 2009-06-02 2009-11-11 中兴通讯股份有限公司 Mobile communication terminal
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface
CN102708001A (en) * 2012-04-26 2012-10-03 深圳市九思泰达技术有限公司 Linux embedded equipment and switching method between user mode and engineering mode
CN104244160A (en) * 2013-06-21 2014-12-24 鸿富锦精密工业(深圳)有限公司 Electronic device capable of being debugged through earphone port
CN104484592A (en) * 2014-12-31 2015-04-01 广州视源电子科技股份有限公司 Method and system for starting factory mode of mobile equipment
US20160283351A1 (en) * 2015-03-27 2016-09-29 Sheng S. Huang Instruction and Logic for a Convertible Innovation and Debug Engine
CN104991846A (en) * 2015-07-01 2015-10-21 上海斐讯数据通信技术有限公司 Working mode switching system and method for mobile terminal
CN105141863A (en) * 2015-07-06 2015-12-09 Tcl海外电子(惠州)有限公司 Television production debugging method and television production debugging device
CN105898475A (en) * 2015-12-21 2016-08-24 乐视致新电子科技(天津)有限公司 Method for improving compatibility between intelligent TV and embedded multimedia card and intelligent TV
CN106227630A (en) * 2016-07-28 2016-12-14 上海庆科信息技术有限公司 A kind of detecting system for embedded radio module
CN106101937A (en) * 2016-08-04 2016-11-09 广州视源电子科技股份有限公司 Audio playing method for sound box

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10977026B2 (en) 2018-11-20 2021-04-13 Pegatron Corporation Data updating system, embedded electronic device and data updating method
CN112131160A (en) * 2020-09-27 2020-12-25 北京海益同展信息科技有限公司 Working mode switching circuit, working mode switching method and robot
CN112131160B (en) * 2020-09-27 2023-06-23 京东科技信息技术有限公司 Working mode switching circuit, working mode switching method and robot

Also Published As

Publication number Publication date
WO2019037188A1 (en) 2019-02-28

Similar Documents

Publication Publication Date Title
CN103384291B (en) Based on scene mode setting method and the system of NFC
TW510133B (en) Software reconfiguration of communications apparatus
CN107656513A (en) The mode switching method and embedded device of embedded device
CN108738008A (en) Bluetooth pairing methods and system
CN104333811A (en) Display method and electronic equipment
CN105975039A (en) Method and device for controlling power supply of Type-C interface, and electronic equipment
CN103761163A (en) Data loss preventing method and data loss preventing device
CN104679467B (en) A kind of display mode switching method and electronic equipment
CN103558959A (en) A method and device for displaying windows applied to Android platform
CN103633988B (en) Protectiveness multiplexer circuit, the method for operation storbing gate and storbing gate system
CN106980643A (en) Change sending method, device and the electronic equipment of message
CN107357544A (en) A kind of display methods, device, intelligent terminal and computer-readable recording medium
CN103309615A (en) Terminal equipment and control method thereof
CN107729063A (en) Call method, device and the terminal of SDK
CN107529141A (en) Localization method, smart lock, shared bicycle and the shared bicycle system of shared bicycle
CN103366137A (en) Method and device for inputting information
CN111443776B (en) Information processing method, wearable electronic device, electronic device and storage medium
CN105426151A (en) Terminal pattern replacement device and method
CN105392109B (en) Wireless connection method and device
CN107659920A (en) Bluetooth connecting method, bluetooth equipment, mobile terminal, wear display device system
CN105739694B (en) A kind of method, terminal and the Wearable of Wearable interaction
CN105700703A (en) Method and device for inserting expressions in character input interface of keyboard and supporting user-defined expressions
CN104936055A (en) Terminal with earphone interface and earphone interface adaptive method
CN108964188A (en) A kind of mobile terminal charging control circuit, charging circuit and electronic equipment
CN103402015A (en) Method and user terminal for controlling user terminal application

Legal Events

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

Application publication date: 20180202