CN110248181A - External equipment self-resetting method, device, system and computer-readable medium - Google Patents
External equipment self-resetting method, device, system and computer-readable medium Download PDFInfo
- Publication number
- CN110248181A CN110248181A CN201910446362.6A CN201910446362A CN110248181A CN 110248181 A CN110248181 A CN 110248181A CN 201910446362 A CN201910446362 A CN 201910446362A CN 110248181 A CN110248181 A CN 110248181A
- Authority
- CN
- China
- Prior art keywords
- external equipment
- interface index
- interface
- allocation table
- equipment
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Abstract
The present invention provides a kind of external equipment self-resetting method, device, system and computer-readable mediums, the external equipment self-resetting method includes: the interface connected according to external equipment, an interface index is distributed for each external equipment, and establishes interface index allocation table;When detecting occurrence of equipment access events, judge whether the external equipment newly accessed belongs to the interface index allocation table;If the external equipment of the new access belongs to the interface index allocation table, its corresponding interface index in the interface index allocation table is distributed to the external equipment of the new access.External equipment self-resetting method, device, system and computer-readable medium of the invention can retain its original interface index after external equipment is restarted, and avoid the problem that changing due to restarting rear equipment interface number and causing application layer that can not open the equipment.
Description
Technical field
The present invention relates to technical field of face recognition, relates more specifically to a kind of external equipment self-resetting method, device, is
System and computer-readable medium.
Background technique
It often will appear the case where multiple cameras exist simultaneously in face identification system, for example, face identification system can
To connect RGB camera, IR (infrared) camera simultaneously and be imaged for the OCR (optical character identification) of text and stingy figure
Head etc..For the ease of integrated and exploitation, all above-mentioned camera can be connected using USB interface in many systems, when in use process
In, such as during switching repeatedly, or when being interfered, camera is it is possible that stuck, situations such as resetting, at this time
Phenomena such as video flowing output on screen just will appear Caton, blank screen, so that user interface is static, at this moment user can only restart and set
It is standby to solve the problems, such as this, influence user experience.
Summary of the invention
To solve the above-mentioned problems, the invention proposes a kind of external equipment Self-resetting schemes.This hair is briefly described below
Bright proposition about external equipment Self-resetting scheme, more details will be retouched in a specific embodiment in subsequent combination attached drawing
It states.
According to embodiments of the present invention on the one hand, a kind of external equipment self-resetting method is provided, which comprises according to
The interface that external equipment is connected distributes an interface index for each external equipment, and establishes interface index allocation table;
When detecting occurrence of equipment access events, judge whether the external equipment newly accessed belongs to the interface index allocation table;With
And if the external equipment of the new access belongs to the interface index allocation table, by it in the interface index allocation table
Corresponding interface index distributes to the external equipment of the new access.
In one embodiment, the external equipment includes camera.
In one embodiment, the method also includes: when detect a certain camera video flowing interrupt when, determine should
The interface index of camera;Power-off restarting is carried out to camera corresponding to the interface index;Wherein, the equipment connects
Incoming event is restarted described in including.
In one embodiment, the method also includes: if the external equipment of the new access is not belonging to the interface and compiles
Number allocation table, then distribute new interface index for it, and the new interface index is different from interface index allocation table Central Plains
Some interface indexes;And update the interface index allocation table.
In one embodiment, establishing the interface index allocation table includes: to be recorded as each external equipment to divide
The unique device identity of the interface index and the external equipment matched, the interface index and unique device identity tool
There is one-to-one relationship.
In one embodiment, judge whether the external equipment of the new access belongs to institute according to the unique device identity
State interface index allocation table.
In one embodiment, the interface includes USB interface.
According to embodiments of the present invention on the other hand, a kind of external equipment automatic runback device is provided, the external equipment is certainly
Resetting apparatus includes: the first distribution module, the interface for being connected according to external equipment, for each external equipment distribution
One interface index, and establish interface index allocation table;Judgment module, for sentencing when detecting occurrence of equipment access events
Whether the disconnected external equipment newly accessed belongs to the interface index allocation table;And second distribution module, if newly being connect for described
The external equipment entered belongs to the interface index allocation table, then the interface that it is corresponding in the interface index allocation table is compiled
Number distribute to the equipment.
According to embodiments of the present invention in another aspect, providing a kind of external equipment Self-resetting system, the external equipment is certainly
Reset system includes storage device and processor, and the computer journey run by the processor is stored on the storage device
Sequence, the computer program execute external equipment self-resetting method described in any of the above embodiments when being run by the processor.
Another aspect according to embodiments of the present invention, provides a kind of computer-readable medium, the computer-readable medium
On be stored with computer program, the computer program executes external equipment Self-resetting side described in any of the above embodiments at runtime
Method.
External equipment self-resetting method, device, system and the computer-readable medium of the embodiment of the present invention can be external
It is restarted automatically it after equipment Caton, and retains its original interface index after restart, is avoided due to restarting rear equipment interface
The problem of number changes and causes application layer that can not open the equipment, to make external set in the case where user's unaware
Standby Self-resetting, the user experience is improved.
Detailed description of the invention
The embodiment of the present invention is described in more detail in conjunction with the accompanying drawings, the above and other purposes of the present invention,
Feature and advantage will be apparent.Attached drawing is used to provide to further understand the embodiment of the present invention, and constitutes explanation
A part of book, is used to explain the present invention together with the embodiment of the present invention, is not construed as limiting the invention.In the accompanying drawings,
Identical reference label typically represents same parts or step.
Fig. 1 shows for realizing external equipment self-resetting method, device, system and computer according to an embodiment of the present invention
The schematic block diagram of the exemplary electronic device of readable medium;
Fig. 2 shows the schematic flow charts of external equipment self-resetting method according to an embodiment of the present invention;
Fig. 3 shows the schematic block diagram of external equipment automatic runback device according to an embodiment of the present invention;And
Fig. 4 shows the schematic block diagram of external equipment Self-resetting system according to an embodiment of the present invention.
Specific embodiment
In order to enable the object, technical solutions and advantages of the present invention become apparent, root is described in detail below with reference to accompanying drawings
According to example embodiments of the present invention.Obviously, described embodiment is only a part of the embodiments of the present invention, rather than this hair
Bright whole embodiments, it should be appreciated that the present invention is not limited by example embodiment described herein.Based on described in the present invention
The embodiment of the present invention, those skilled in the art's obtained all other embodiment in the case where not making the creative labor
It should all fall under the scope of the present invention.
Firstly, describing referring to Fig.1 for realizing the external equipment self-resetting method of the embodiment of the present invention, device, system
With the exemplary electronic device 100 of computer-readable medium.
As shown in Figure 1, electronic equipment 100 include one or more processors 102, it is one or more storage device 104, defeated
Enter device 106, output device 108 and imaging sensor 110, these components pass through bus system 112 and/or other forms
The interconnection of bindiny mechanism's (not shown).It should be noted that the component and structure of electronic equipment 100 shown in FIG. 1 are only exemplary, and
Unrestricted, as needed, the electronic equipment also can have other assemblies and structure.
The processor 102 can be central processing unit (CPU) or have data-handling capacity and/or instruction execution
The processing unit of the other forms of ability, and the other components that can control in the electronic equipment 100 are desired to execute
Function.
The storage device 104 may include one or more computer program products, and the computer program product can
To include various forms of computer readable storage mediums, such as volatile memory and/or nonvolatile memory.It is described easy
The property lost memory for example may include random access memory (RAM) and/or cache memory (cache) etc..It is described non-
Volatile memory for example may include read-only memory (ROM), hard disk, flash memory etc..In the computer readable storage medium
On can store one or more computer program instructions, processor 102 can run described program instruction, to realize hereafter institute
The client functionality (realized by processor) in the embodiment of the present invention stated and/or other desired functions.In the meter
Can also store various application programs and various data in calculation machine readable storage medium storing program for executing, for example, the application program use and/or
The various data etc. generated.
The input unit 106 can be the device that user is used to input instruction, and may include keyboard, mouse, wheat
One or more of gram wind and touch screen etc..
The output device 108 can export various information (such as image or sound) to external (such as user), and
It may include one or more of display, loudspeaker etc..
Described image sensor 110 can be shot the desired image of user (such as photo, video etc.), and will be captured
Image be stored in the storage device 104 for other components use.Described image sensor 110 can be implemented as external
The form of equipment.
When note that the component and structure of electronic equipment shown in FIG. 1 100 are only exemplary, although electronics shown in fig. 1
Equipment 100 include multiple and different devices, but as needed, some of which device can not be it is necessary, therein one
The quantity of a little devices can be more etc., and the present invention does not limit this.
It is described external to set in the following, external equipment self-resetting method 200 according to an embodiment of the present invention will describe with reference to Fig. 2
Standby self-resetting method 200 can be used for various face identification systems, and can be used for other with what more external equipments accessed is
System.
As shown in Fig. 2, in step S210, the interface connected according to external equipment distributes one for each external equipment
Interface index, and establish interface index allocation table.
By taking testimony of a witness verifying system as an example, the testimony of a witness verifying system can connect one or more RGB cameras, IR simultaneously
Camera and/or OCR camera.The testimony of a witness verifying system can connect the camera of multiple and different types, also can connect
The camera of multiple same types.In addition to camera, the testimony of a witness verifying system also can connect other external equipments, such as
Card reader of ID card, for being stored in additional clause personal information using near field communication (NFC) reading, for subsequent
It compares and veritifies.
In one embodiment, the interface includes USB (universal serial bus) interface, is inserted with plug and play and heat
Pull out function.The interface also includes other interfaces being connected and communicate with for realizing host and external equipment.
Illustratively, when the booting of testimony of a witness verifying system powers on, according to the interface that these external equipments are connected, automatically
Distribute an interface index respectively for each of which.For example, RGB camera (USBID=1), IR camera (USBID
=2), OCR camera (USBID=3), card reader of ID card (USBID=4), wherein the institute of USBID expression USB external equipment
State interface index.The application on upper layer operates corresponding external equipment according to these interface indexes.
When the interface index of external equipment is assigned, interface index allocation table is established.Such as:
USB ID | Equipment description |
1 | RGB camera |
2 | IR camera |
3 | OCR camera |
4 | Card reader of ID card |
In interface index allocation table, the unique of the interface index and relevant device for distributing to each external equipment is had recorded
Device identification, the interface index and the unique device identity have one-to-one relationship.In other words, by interface index
It is associated with and has been bound with unique device identity.
Wherein, the unique device identity be each equipment such as device id, sequence number, implementor name it is exclusive, for indicating
The intrinsic mark of the uniqueness of equipment.
In step S220, when detecting occurrence of equipment access events, judge whether accessed equipment belongs to described connect
Mouth number allocation table.
Since the interface index in the interface index allocation table and unique device identity have one-to-one relationship, when
When detecting occurrence of equipment access events, according to the unique device identity of the external equipment newly accessed, it can be determined that newly access
Whether external equipment belongs to the interface index allocation table.
In one embodiment, the external equipment be camera, when system detect camera shooting head fail when, answer
Power-off restarting is carried out automatically with layer, and system thinks that the equipment access events have occurred at this time.It ought detect a certain camera
Video flowing when interrupting, determine the interface index of the camera, and carry out to camera corresponding to the interface index
Power-off restarting.
Specifically, when some images head fail, upper application layer can be detected in the video flowing of the camera
It is disconnected, the interface index for the camera for notifying system firmware layer to break down immediately.System firmware layer is by disconnecting, being closed the interface
The power supply circuit of corresponding camera is numbered, realizes camera power-off restarting.As described above, application layer is by detecting video flowing
No interruption judges that it is disconnected whether external equipment card occurs, to occur to be restarted automatically when card is disconnected in external equipment, be not necessarily to user into
Row is restarted manually, and as described below, can be continued the normal use equipment after restarting and be mentioned to realize that unaware is restarted
High user experience.
It is appreciated that newly accesses is external when the equipment access events are the power-off restarting that application layer carries out automatically
The unique device identity of equipment is identical as equipment original in table, it is thus possible to determine that the external equipment newly accessed belongs to described connect
Mouth number allocation table.
In another embodiment, equipment access events are also likely to be the external equipment weight due to accident or manual operation
Caused by opening, according to the actual situation, the external equipment newly accessed may belong to the interface index allocation table, it is also possible to not belong to
In the interface index allocation table, application layer will judge this according to the unique device identity of equipment.
In step S230, if the external equipment of the new access belongs to the interface index allocation table, by it described
Corresponding interface index distributes to the external equipment of the new access in interface index allocation table.
For the above table, it is assumed that the usb data signal for the IR camera that USB ID is 2 is interfered, in USB data stream
It is disconnected.At this time since USB power supply always exists, existing system, which can automatically consider, has occurred a hot plug, and the IR camera
A new USB ID 5 is distributed, without being to maintain its original USB ID 2, this will lead to upper layer application according to original USB
ID 2 occurs abnormal when continuing to operate IR camera.
In contrast to this, in embodiments of the present invention, in step S220, application layer is when detecting flow interruption to the IR
Camera has carried out power-off restarting, and determines that the IR camera belongs to the interface index allocation table according to its device id etc., and
In step S230, according to the corresponding relationship of device id and USB ID, its original USB ID (USB ID=2) is distributed into the IR
The application of camera, upper layer continues to operate corresponding IR camera according to the USB ID 2, so as to avoid rear equipment is restarted
The case where USB ID changes, application layer can not open the equipment, realizes unaware and restarts.
In one embodiment, if the external equipment of the new access is not belonging to the interface index allocation table, for it
New interface index is distributed, the new interface index is different from original interface index in the interface index allocation table.It
Afterwards, the interface index allocation table is updated.
Specifically, if the external equipment newly accessed is not in interface index allocation table, then it is assumed that be one be newly inserted into it is outer
Connect equipment.Illustratively, referring to upper table, the external equipment of the new access is distributed to after current maximum USB ID being added 1,
Such as USB ID 5.Later, interface index allocation table is updated, by the interface index of the external equipment newly accessed and is associated
Unique device identity records in lists.
Illustratively, external equipment self-resetting method 200 according to an embodiment of the present invention can be with memory and place
It manages and is realized in the unit or system of device.
Illustratively, external equipment self-resetting method 200 according to an embodiment of the present invention can be deployed in recognition of face system
At system, testimony of a witness verifying system, face recognition door control system etc..
Alternatively, external equipment self-resetting method 200 according to an embodiment of the present invention can also be deployed in server end (or
Cloud).
Based on above description, external equipment self-resetting method according to an embodiment of the present invention can occur in external equipment
It is restarted automatically when Caton, and retains its original interface index after restarting, is avoided due to restarting connecing for rear equipment
The problem of mouth number changes and causes application layer that can not open the equipment, to be realized in the case where user's unaware outer
The unaware Self-resetting of equipment is connect, the user experience is improved.
It describes above exemplarily exemplary included by external equipment self-resetting method according to an embodiment of the present invention
Steps flow chart.
The external equipment automatic runback device of another aspect of the present invention offer is described below with reference to Fig. 3.
Fig. 3 shows the schematic block diagram of external equipment automatic runback device 300 according to an embodiment of the present invention.
As shown in figure 3, external equipment automatic runback device 300 according to an embodiment of the present invention include the first distribution module 310,
Judgment module 320 and the second distribution module 330.The modules can be executed respectively above in conjunction with the external of Fig. 2 description
Each step/function of equipment self-resetting method.
First distribution module 310 is used for the interface connected according to external equipment, distributes one for each external equipment and connects
Mouth number, and establish interface index allocation table.
By taking testimony of a witness verifying system as an example, the testimony of a witness verifying system can connect one or more RGB cameras, IR simultaneously
Camera and/or OCR camera.The testimony of a witness verifying system can connect the camera of multiple and different types, also can connect
The camera of multiple same types.In addition to camera, the testimony of a witness verifying system also can connect other external equipments, such as
Card reader of ID card, for being stored in additional clause personal information using near field communication (NFC) reading, for subsequent
It compares and veritifies.
In one embodiment, the interface includes USB (universal serial bus) interface, is inserted with plug and play and heat
Pull out function.The interface also includes other interfaces being connected and communicate with for realizing host and external equipment.
Illustratively, when the booting of testimony of a witness verifying system powers on, according to the interface that these external equipments are connected, automatically
Distribute an interface index respectively for each of which.For example, RGB camera (USBID=1), IR camera (USBID
=2), OCR camera (USBID=3), card reader of ID card (USBID=4), wherein the institute of USBID expression USB external equipment
State interface index.The application on upper layer operates corresponding external equipment according to these interface indexes.
When the interface index of external equipment is assigned, interface index allocation table is established.Such as:
USB ID | Equipment description |
1 | RGB camera |
2 | IR camera |
3 | OCR camera |
4 | Card reader of ID card |
In interface index allocation table, the unique of the interface index and relevant device for distributing to each external equipment is had recorded
Device identification, the interface index and the unique device identity have one-to-one relationship.In other words, by interface index
It is associated with and has been bound with unique device identity.
Wherein, the unique device identity be each equipment such as device id, sequence number, implementor name it is exclusive, for indicating
The intrinsic mark of the uniqueness of equipment.
Judgment module 320 is used for when detecting occurrence of equipment access events, judges whether accessed equipment belongs to institute
State interface index allocation table.
Since the interface index in the interface index allocation table and unique device identity have one-to-one relationship, when
When detecting occurrence of equipment access events, according to the unique device identity of the external equipment newly accessed, it can be determined that newly access
Whether external equipment belongs to the interface index allocation table.
In one embodiment, external equipment automatic runback device 300 further includes restarting module, for detecting camera
When breaking down, application layer carries out power-off restarting automatically, when system detection is to when restarting described in occurring, then it is assumed that have occurred described
Equipment access events.I.e. when the video flowing for detecting a certain camera interrupts, the interface index of the camera is determined, and
Power-off restarting is carried out to camera corresponding to the interface index.
Specifically, when some images head fail, restarting module can detect that the video flowing of the camera interrupts,
The interface index for the camera that notice system firmware layer breaks down immediately.System firmware layer is by disconnecting, being closed interface volume
The power supply circuit of number corresponding camera realizes camera power-off restarting.As described above, restarting module by detecting video flowing is
No interruption judges that it is disconnected whether external equipment card occurs, to occur to be restarted automatically when card is disconnected in external equipment, be not necessarily to user into
Row is restarted manually, and as described below, can be continued the normal use equipment after restarting and be mentioned to realize that unaware is restarted
High user experience.
It is appreciated that newly accesses is external when the equipment access events are the power-off restarting that application layer carries out automatically
The unique device identity of equipment is identical as equipment original in table, it is thus possible to determine that the external equipment newly accessed belongs to described connect
Mouth number allocation table.
In another embodiment, equipment access events are also likely to be the external equipment weight due to accident or manual operation
Caused by opening, according to the actual situation, the external equipment newly accessed may belong to the interface index allocation table, it is also possible to be not belonging to
The interface index allocation table, application layer will judge this according to the unique device identity of equipment.
It, will if external equipment of second distribution module 330 for the new access belongs to the interface index allocation table
Its corresponding interface index in the interface index allocation table distributes to the external equipment of the new access.
For the above table, it is assumed that the usb data signal for the IR camera that USB ID is 2 is interfered, in USB data stream
It is disconnected.At this time since USB power supply always exists, existing system, which can automatically consider, has occurred a hot plug, and the IR camera
A new USB ID 5 is distributed, without being to maintain its original USB ID 2, this will lead to upper layer application according to original USB
ID 2 occurs abnormal when continuing to operate IR camera.
In contrast to this, in embodiments of the present invention, restart module when detecting flow interruption to the IR camera into
It has gone power-off restarting, and has determined that the IR camera belongs to the interface index allocation table, and second point according to its device id etc.
With module 330 according to the corresponding relationship of device id and USB ID, its original USB ID (USB ID=2) is distributed into the IR and is taken the photograph
As head, the application on upper layer continues to operate corresponding IR camera according to the USB ID 2, so as to avoid the USB for restarting rear equipment
The case where ID changes, application layer can not open the equipment, realizes unaware and restarts.
In one embodiment, if the external equipment of the new access is not belonging to the interface index allocation table, for it
New interface index is distributed, the new interface index is different from original interface index in the interface index allocation table.It
Afterwards, the interface index allocation table is updated.
Specifically, if the external equipment newly accessed is not in interface index allocation table, then it is assumed that be one be newly inserted into it is outer
Connect equipment.Illustratively, referring to upper table, the external equipment of the new access is distributed to after current maximum USB ID being added 1,
Such as USB ID 5.Later, interface index allocation table is updated, by the interface index of the external equipment newly accessed and is associated
Unique device identity records in lists.
Based on above description, external equipment automatic runback device according to an embodiment of the present invention can occur in external equipment
It is restarted automatically when Caton, and retains its original interface index after restarting, is avoided due to restarting connecing for rear equipment
The problem of mouth number changes and causes application layer that can not open the equipment, to be realized in the case where user's unaware outer
The unaware Self-resetting of equipment is connect, the user experience is improved.
Fig. 4 shows the schematic block diagram of external equipment Self-resetting system 400 according to an embodiment of the present invention.External equipment
Self-resetting system 400 includes storage device 410 and processor 420.
Wherein, the storage of storage device 410 is for realizing in external equipment self-resetting method according to an embodiment of the present invention
The program code of corresponding steps.Program code of the processor 420 for being stored in Running storage device 410, to execute according to this
The corresponding steps of the external equipment self-resetting method of inventive embodiments, and external set for realizing according to an embodiment of the present invention
Corresponding module in standby automatic runback device.
In one embodiment, make external equipment Self-resetting system when said program code is run by processor 420
400 execute following steps: the interface connected according to external equipment, distribute an interface index for each external equipment,
And establish interface index allocation table;When detecting occurrence of equipment access events, judge whether the external equipment newly accessed belongs to
The interface index allocation table;And if the external equipment of the new access belongs to the interface index allocation table, by its
Corresponding interface index distributes to the external equipment of the new access in the interface index allocation table.
In one embodiment, the external equipment includes camera.
In one embodiment, also make external equipment Self-resetting system when said program code is run by processor 420
System 400 executes: when the video flowing for detecting a certain camera interrupts, determining the interface index of the camera;To described
Camera corresponding to interface index carries out power-off restarting.
In one embodiment, also make external equipment Self-resetting system when said program code is run by processor 420
System 400 executes: if the external equipment of the new access is not belonging to the interface index allocation table, distributing new interface for it and compiles
Number, the new interface index is different from original interface index in the interface index allocation table;And update the interface
Number allocation table.
In one embodiment, establishing the interface index allocation table includes: to be recorded as each external equipment to divide
The unique device identity of the interface index and the external equipment matched, the interface index and unique device identity tool
There is one-to-one relationship.
In one embodiment, judge whether the external equipment of the new access belongs to institute according to the unique device identity
State interface index allocation table.
In one embodiment, the interface includes USB interface.
In addition, according to embodiments of the present invention, additionally providing a kind of storage medium, storing program on said storage
Instruction, when described program instruction is run by computer or processor for executing the external equipment Self-resetting of the embodiment of the present invention
The corresponding steps of method, and for realizing the corresponding module in external equipment automatic runback device according to an embodiment of the present invention.
The storage medium for example may include the storage card of smart phone, the storage unit of tablet computer, personal computer hard disk,
Read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), portable compact disc read-only memory (CD-ROM),
Any combination of USB storage or above-mentioned storage medium.The computer readable storage medium can be one or more meters
Any combination of calculation machine readable storage medium storing program for executing.
In one embodiment, the computer program instructions may be implemented real according to the present invention when being run by computer
Each functional module of the external equipment automatic runback device of example is applied, and/or can be executed according to an embodiment of the present invention outer
Connect equipment self-resetting method.
In one embodiment, the computer program instructions make computer or place when being run by computer or processor
It manages device and executes following steps: the interface connected according to external equipment, distribute an interface index for each external equipment,
And establish interface index allocation table;When detecting occurrence of equipment access events, judge whether the external equipment newly accessed belongs to
The interface index allocation table;And if the external equipment of the new access belongs to the interface index allocation table, by its
Corresponding interface index distributes to the external equipment of the new access in the interface index allocation table.
In one embodiment, the external equipment includes camera.
In one embodiment, the computer program instructions also make when being run by computer or processor computer or
Processor executes: when the video flowing for detecting a certain camera interrupts, determining the interface index of the camera;To described
Camera corresponding to interface index carries out power-off restarting.
In one embodiment, the computer program instructions also make when being run by computer or processor computer or
Processor executes: if the external equipment of the new access is not belonging to the interface index allocation table, new interface is distributed for it
Number, the new interface index are different from original interface index in the interface index allocation table;And it is connect described in updating
Mouth number allocation table.
In one embodiment, establishing the interface index allocation table includes: to be recorded as each external equipment to divide
The unique device identity of the interface index and the external equipment matched, the interface index and unique device identity tool
There is one-to-one relationship.
In one embodiment, judge whether the external equipment of the new access belongs to institute according to the unique device identity
State interface index allocation table.
In one embodiment, the interface includes USB interface.
External equipment self-resetting method, device, system and computer-readable medium according to an embodiment of the present invention can be
External equipment occurs automatically to restart it when Caton, and retains its original interface index after restarting, and avoids due to weight
The problem of interface index of rear equipment changes and causes application layer that can not open the equipment is opened, thus in user's unaware
In the case of realize external equipment unaware Self-resetting, the user experience is improved.
Although describing example embodiment by reference to attached drawing here, it should be understood that above example embodiment are only exemplary
, and be not intended to limit the scope of the invention to this.Those of ordinary skill in the art can carry out various changes wherein
And modification, it is made without departing from the scope of the present invention and spiritual.All such changes and modifications are intended to be included in appended claims
Within required the scope of the present invention.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another equipment is closed or is desirably integrated into, or some features can be ignored or not executed.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects,
To in the description of exemplary embodiment of the present invention, each feature of the invention be grouped together into sometimes single embodiment, figure,
Or in descriptions thereof.However, the method for the invention should not be construed to reflect an intention that i.e. claimed
The present invention claims features more more than feature expressly recited in each claim.More precisely, such as corresponding power
As sharp claim reflects, inventive point is that the spy of all features less than some disclosed single embodiment can be used
Sign is to solve corresponding technical problem.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in this specific
Embodiment, wherein each, the claims themselves are regarded as separate embodiments of the invention.
It will be understood to those skilled in the art that any combination pair can be used other than mutually exclusive between feature
All features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed any method
Or all process or units of equipment are combined.Unless expressly stated otherwise, this specification (is wanted including adjoint right
Ask, make a summary and attached drawing) disclosed in each feature can be replaced with an alternative feature that provides the same, equivalent, or similar purpose.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or other suitable processors realize some or all function of some modules according to an embodiment of the present invention
Energy.The present invention be also implemented as executing method as described herein some or all program of device (for example,
Computer program and computer program product).It is such to realize that program of the invention can store on a computer-readable medium,
Or it may be in the form of one or more signals.Such signal can be downloaded from an internet website to obtain, or
It is provided on the carrier signal, or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The above description is merely a specific embodiment or to the explanation of specific embodiment, protection of the invention
Range is not limited thereto, and anyone skilled in the art in the technical scope disclosed by the present invention, can be easily
Expect change or replacement, should be covered by the protection scope of the present invention.Protection scope of the present invention should be with claim
Subject to protection scope.
Claims (10)
1. a kind of external equipment self-resetting method, which is characterized in that the external equipment self-resetting method includes:
The interface connected according to external equipment distributes an interface index for each external equipment, and establishes interface volume
Number allocation table;
When detecting occurrence of equipment access events, judge whether the external equipment newly accessed belongs to the interface index distribution
Table;
If the external equipment of the new access belongs to the interface index allocation table, by it in the interface index allocation table
Corresponding interface index distributes to the external equipment of the new access.
2. external equipment self-resetting method according to claim 1, which is characterized in that the external equipment includes camera shooting
Head.
3. external equipment self-resetting method according to claim 2, which is characterized in that the method also includes:
When the video flowing for detecting a certain camera interrupts, the interface index of the camera is determined;
Power-off restarting is carried out to camera corresponding to the interface index;
Wherein, the equipment access events are restarted including described.
4. external equipment self-resetting method according to claim 1, which is characterized in that further include:
If the external equipment of the new access is not belonging to the interface index allocation table, new interface index, institute are distributed for it
New interface index is stated different from original interface index in the interface index allocation table;And
Update the interface index allocation table.
5. external equipment self-resetting method according to claim 1, which is characterized in that establish the interface index allocation table
Include:
It is recorded as the unique device identity of the interface index and the external equipment that each external equipment is distributed, institute
Stating interface index and the unique device identity has one-to-one relationship.
6. external equipment self-resetting method according to claim 5, which is characterized in that sentenced according to the unique device identity
Whether the external equipment of the new access of breaking belongs to the interface index allocation table.
7. external equipment self-resetting method according to claim 1, which is characterized in that the interface includes USB interface.
8. a kind of external equipment automatic runback device, which is characterized in that the external equipment automatic runback device includes:
First distribution module, the interface for being connected according to external equipment distribute an interface for each external equipment
Number, and establish interface index allocation table;
Judgment module, it is described for when detecting occurrence of equipment access events, judging whether the external equipment newly accessed belongs to
Interface index allocation table;And
Second distribution module, if the external equipment for the new access belongs to the interface index allocation table, by it in institute
It states interface index corresponding in interface index allocation table and distributes to the equipment.
9. a kind of external equipment Self-resetting system, which is characterized in that the external equipment Self-resetting system include storage method and
Processor is stored with the computer program run by the processor in the storage method, and the computer program is by institute
State the external equipment self-resetting method executed as described in any one of claim 1-7 when processor operation.
10. a kind of computer-readable medium, which is characterized in that be stored with computer program, institute on the computer-readable medium
It states computer program and executes external equipment self-resetting method as described in any one of claim 1-7 at runtime.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910446362.6A CN110248181B (en) | 2019-05-27 | 2019-05-27 | Self-reset method, device and system for external equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910446362.6A CN110248181B (en) | 2019-05-27 | 2019-05-27 | Self-reset method, device and system for external equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110248181A true CN110248181A (en) | 2019-09-17 |
CN110248181B CN110248181B (en) | 2020-12-22 |
Family
ID=67884947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910446362.6A Active CN110248181B (en) | 2019-05-27 | 2019-05-27 | Self-reset method, device and system for external equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110248181B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738505A (en) * | 2021-04-06 | 2021-04-30 | 浙江华创视讯科技有限公司 | Video communication method, device, medium and electronic equipment |
CN113965381A (en) * | 2021-10-21 | 2022-01-21 | 公安部第三研究所 | Method, device, processor and computer readable storage medium for realizing security encryption function of monitoring video |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727360A (en) * | 2008-10-24 | 2010-06-09 | 安凯(广州)微电子技术有限公司 | Hardware self-resetting method, device and mobile multimedia processor |
CN105740180A (en) * | 2014-12-10 | 2016-07-06 | 中国移动通信集团重庆有限公司 | Virtual machine access method and apparatus for USB device |
CN106933583A (en) * | 2017-03-06 | 2017-07-07 | 联想(北京)有限公司 | The method and computer equipment of hardware device are recognized in operating system |
CN108255646A (en) * | 2018-01-17 | 2018-07-06 | 重庆大学 | A kind of self-healing method of industrial control program failure based on heartbeat detection |
CN109344096A (en) * | 2018-09-07 | 2019-02-15 | 彩讯科技股份有限公司 | A kind of method, apparatus, equipment and storage medium connecting external equipment |
-
2019
- 2019-05-27 CN CN201910446362.6A patent/CN110248181B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727360A (en) * | 2008-10-24 | 2010-06-09 | 安凯(广州)微电子技术有限公司 | Hardware self-resetting method, device and mobile multimedia processor |
CN105740180A (en) * | 2014-12-10 | 2016-07-06 | 中国移动通信集团重庆有限公司 | Virtual machine access method and apparatus for USB device |
CN106933583A (en) * | 2017-03-06 | 2017-07-07 | 联想(北京)有限公司 | The method and computer equipment of hardware device are recognized in operating system |
CN108255646A (en) * | 2018-01-17 | 2018-07-06 | 重庆大学 | A kind of self-healing method of industrial control program failure based on heartbeat detection |
CN109344096A (en) * | 2018-09-07 | 2019-02-15 | 彩讯科技股份有限公司 | A kind of method, apparatus, equipment and storage medium connecting external equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112738505A (en) * | 2021-04-06 | 2021-04-30 | 浙江华创视讯科技有限公司 | Video communication method, device, medium and electronic equipment |
CN112738505B (en) * | 2021-04-06 | 2021-06-08 | 浙江华创视讯科技有限公司 | Video communication method, device, medium and electronic equipment |
CN113965381A (en) * | 2021-10-21 | 2022-01-21 | 公安部第三研究所 | Method, device, processor and computer readable storage medium for realizing security encryption function of monitoring video |
Also Published As
Publication number | Publication date |
---|---|
CN110248181B (en) | 2020-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2860662A2 (en) | Monitoring system, monitoring method, monitoring program, and recording medium in wich monitoring program is recorded | |
CN105144074B (en) | It is stored using the block of hybrid memory device | |
US20150100487A1 (en) | Multi factor authentication rule-based intelligent bank cards | |
US9645914B1 (en) | Apps store with integrated test support | |
US20190012005A1 (en) | Method and device for asynchronous touch and asynchronous display on dual-screen and computer readable storage medium | |
CN106561018A (en) | Server monitoring method, monitoring device and monitoring system | |
CN104461631B (en) | A kind of system OTA upgrade methods and device | |
CN110248181A (en) | External equipment self-resetting method, device, system and computer-readable medium | |
CN109324959B (en) | Method for automatically transferring data, server and computer readable storage medium | |
CN110084561A (en) | Breakpoint follow-up method, electronic device and readable storage medium storing program for executing | |
CN109918143A (en) | OpenPOWER platform starts information display method and relevant apparatus | |
CN101256707B (en) | Network system | |
CN107274590A (en) | A kind of monitoring system, method, device, financial machine and tool and storage medium | |
CN112783721B (en) | Method, device and system for monitoring I2C bus and storage medium | |
CN109947490A (en) | A kind of starting information processing method, device, electronic equipment and readable storage medium storing program for executing | |
US7725806B2 (en) | Method and infrastructure for recognition of the resources of a defective hardware unit | |
CN105427480A (en) | Teller machine based on image analysis | |
CN111695445A (en) | Face recognition method, device, equipment and computer readable storage medium | |
CN108520063B (en) | Event log processing method and device and terminal equipment | |
CN110502345A (en) | A kind of overload protection method, device, computer equipment and storage medium | |
CN114724071A (en) | Information detection method and device, electronic equipment and storage medium | |
CN107818061A (en) | Data bus and management bus for associated peripheral devices | |
CN112650557A (en) | Command execution method and device | |
CN110505475A (en) | Function test method, system, equipment and the storage medium of intelligent object | |
CN109791531A (en) | USB device filtering |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |