CN118035151B - USB expander, identification method and device thereof, medium and image pickup equipment - Google Patents
USB expander, identification method and device thereof, medium and image pickup equipment Download PDFInfo
- Publication number
- CN118035151B CN118035151B CN202410437728.4A CN202410437728A CN118035151B CN 118035151 B CN118035151 B CN 118035151B CN 202410437728 A CN202410437728 A CN 202410437728A CN 118035151 B CN118035151 B CN 118035151B
- Authority
- CN
- China
- Prior art keywords
- encryption chip
- usb
- external equipment
- expander
- electronic switch
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000004891 communication Methods 0.000 claims abstract description 38
- 238000003780 insertion Methods 0.000 claims abstract description 34
- 230000037431 insertion Effects 0.000 claims abstract description 34
- 238000001514 detection method Methods 0.000 claims abstract description 30
- 230000003993 interaction Effects 0.000 claims abstract description 16
- 238000012545 processing Methods 0.000 claims description 9
- 239000004606 Fillers/Extenders Substances 0.000 claims 2
- 230000009977 dual effect Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4072—Drivers or receivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4081—Live connection to bus, e.g. hot-plugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/72—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information in cryptographic circuits
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Storage Device Security (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention discloses a USB expander and an identification method, a device, a medium and camera equipment thereof, relating to the field of USB expanders, wherein the identification method specifically comprises the following steps: the external equipment is connected into the expander body, and the plug detection circuit sends an insertion signal to the encryption chip; after receiving the insertion signal, the encryption chip converts the conduction state of the USB electronic switch into a first conduction state, so that the external equipment is in communication connection with the encryption chip; the encryption chip performs data interaction with the external equipment, and judges whether the external equipment is exclusive equipment or not; when the external equipment is exclusive equipment, the encryption chip converts the conducting state of the USB electronic switch into a second conducting state, so that the external equipment is in communication connection with the expander body. The encryption chip on the USB expander judges whether the USB identification is matched with the corresponding USB expander or not, and the purpose of providing the special USB expander for the USB equipment is achieved.
Description
Technical Field
The invention belongs to the field of USB expanders, and particularly relates to a USB expander, an identification method and device thereof, a medium and camera equipment.
Background
A USB expander is a device for expanding the connection range of a USB (Universal Serial Bus ) device. They allow a user to connect a USB device to a computer or other USB host via a physical cable without being limited by the connection distance. The USB device has the advantages of supporting hot plug and being convenient to use, but in specific occasions where the USB device cannot be plugged randomly, for example, occasions where a monitoring camera is needed, the USB device needs to be ensured to be plugged into a designated USB port to perform data communication. In general, since devices such as computers only have universal USB when shipped, a USB expander having a USB interface specific to a certain type of USB device is now in need.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a USB expander and an identification method thereof, which can provide the USB expander with a USB interface exclusive to USB equipment.
In a first aspect, an embodiment of the present invention provides a USB expander, including:
the expander body is used for accessing external equipment;
The encryption chip is used for carrying out data interaction with the external equipment;
The plug detection circuit is respectively and electrically connected with the external equipment and the encryption chip; the plug detection circuit is used for detecting the access of the external equipment and sending an insertion signal to the encryption chip;
The USB electronic switch is respectively and electrically connected with the encryption chip, the expander body and the external equipment; the encryption chip is also used for controlling the conduction state of the USB electronic switch according to the insertion signal and the data transmitted by the external equipment, the USB electronic switch is provided with a first conduction state and a second conduction state, and when the USB electronic switch is in the first conduction state, the encryption chip is in communication connection with the external equipment; when the electronic switch is in the second conduction state, the expander body is in communication connection with the external device.
In some embodiments of the present invention, the plug detection circuit includes a power-on switch, a dual operational amplifier, a first resistor; the first end of the energizing switch is electrically connected with a power supply and the first end of the first resistor, the first non-inverting input end of the double operational amplifier is electrically connected with the first end of the energizing switch and the second end of the first resistor, and the second end of the energizing switch is electrically connected with the grounding end; when the external equipment is connected to the expander body, the power-on switch is closed; the first inverting input end of the double operational amplifier is electrically connected with the first output end of the double operational amplifier; the first output end of the double operational amplifier is also electrically connected with the second non-inverting input end of the double operational amplifier, the second inverting input end of the double operational amplifier is electrically connected with the grounding end, and the second output end of the double operational amplifier is electrically connected with the encryption chip.
In a second aspect, an embodiment of the present invention provides an image capturing apparatus, including a camera, a control module, and a connection joint; the processor is respectively and electrically connected with the camera and the connecting joint; the connection joint is electrically connected with the USB expander in the embodiment of the aspect.
In a third aspect, an embodiment of the present invention provides a method for identifying a USB expander, which is applied to the USB expander described in the embodiment of the foregoing aspect, where the identifying method includes:
the external equipment is connected into the expander body, and the plug detection circuit sends an insertion signal to the encryption chip;
After receiving the insertion signal, the encryption chip converts the conduction state of the USB electronic switch into a first conduction state so that the external equipment is in communication connection with the encryption chip;
the encryption chip performs data interaction with the external equipment, and judges whether the external equipment is exclusive equipment or not;
when the external equipment is exclusive equipment, the encryption chip converts the conduction state of the USB electronic switch into a second conduction state, so that the external equipment is in communication connection with the expander body.
In some embodiments of the present invention, the step of connecting an external device to the expander body, and the plug detection circuit sends an insertion signal to the encryption chip includes:
Accessing the external equipment into an expander body;
The plug detection circuit judges whether the external equipment is connected to the external equipment according to the voltage difference between the first non-inverting input end and the first inverting input end of the double operational amplifier;
And after the external equipment is accessed, sending an inserting signal to the encryption chip.
In some embodiments of the present invention, after the encryption chip receives the insertion signal, the step of converting the conductive state of the USB electronic switch into the first conductive state, so that the external device is in communication connection with the encryption chip includes:
After receiving the insertion signal, the encryption chip converts the conduction state of the USB electronic switch into a first conduction state, and a data bus between the external device and the encryption chip is conducted to enable the external device to be in communication connection with the encryption chip.
In some embodiments of the present invention, the step of performing data interaction between the encryption chip and the external device to determine whether the external device is a dedicated device includes:
The encryption chip generates a first plaintext according to a processing protocol, generates a ciphertext through key encryption, and transmits the ciphertext to the external equipment;
the external device decrypts the ciphertext, decrypts the ciphertext according to the processing protocol, generates a second plaintext and transmits the second plaintext to the encryption chip;
the encryption chip compares the first plaintext with the second plaintext, and if the first plaintext is the same as the second plaintext, the encryption chip sends an identification success command to the external device;
and the external equipment switches the working state into the communication state of the special equipment according to the identification success command.
In some embodiments of the present invention, when the external device is a dedicated device, the encryption chip converts the on state of the USB electronic switch into a second on state, so that the external device is communicatively connected to the expander body, including;
The encryption chip converts the conduction state of the USB electronic switch into a second conduction state, and a data bus between the external equipment and the expander body is conducted to enable the external equipment to be in communication connection with the expander body.
In a fourth aspect, an embodiment of the present invention provides a computer apparatus, including a memory and a processor, where the memory is configured to store at least one program, and the processor is configured to load the at least one program to perform a method for identifying a USB expander according to an embodiment of the foregoing aspect.
In a fifth aspect, embodiments of the present invention provide a computer-readable storage medium in which a processor-executable program is stored, which when executed by a processor is configured to perform a method for identifying a USB expander according to embodiments of the above aspects.
The USB expander and the identification method thereof have at least the following beneficial effects: according to the USB expander provided by the invention, when the USB device is connected to the USB expander, data interaction is needed to be carried out with the encryption chip, the encryption chip judges whether the USB device is the USB device corresponding to the USB expander, and after confirmation, the USB device is allowed to communicate with the USB expander only if the USB device is the encryption chip corresponding to the USB expander, so that the purpose of providing the special USB expander for the USB device is achieved.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a schematic diagram of an encryption chip according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a plug detection circuit according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a plug detection circuit according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a USB electronic switch according to an embodiment of the present invention;
Fig. 5 is a schematic block diagram of an identification method of a USB expander according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, it should be understood that references to orientation descriptions such as upper, lower, front, rear, left, right, etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of description of the present invention and to simplify the description, and do not indicate or imply that the apparatus or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, a plurality means one or more, and a plurality means two or more, and it is understood that greater than, less than, exceeding, etc. does not include the present number, and it is understood that greater than, less than, within, etc. include the present number. The description of first, second or third is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of technical features indicated.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be reasonably determined by a person skilled in the art in combination with the specific contents of the technical scheme.
According to the USB expander provided by the invention, when the USB device is connected to the USB expander, data interaction is needed to be carried out with the encryption chip, the encryption chip judges whether the USB device is the USB device corresponding to the USB expander, and after confirmation, the USB device is allowed to communicate with the USB expander only if the USB device is the encryption chip corresponding to the USB expander, so that the purpose of providing the special USB expander for the USB device is achieved.
Referring to fig. 1 to 4, an embodiment of the present invention provides a USB expander, including:
the expander body is used for accessing external equipment;
the encryption chip is used for carrying out data interaction with external equipment;
The plug detection circuit is electrically connected with the external equipment and the encryption chip respectively; the plug detection circuit is used for detecting whether the external equipment is connected with the expander body or not and sending an insertion signal to the encryption chip;
The USB electronic switch is respectively and electrically connected with the encryption chip, the expander body and the external equipment; the encryption chip is also used for controlling the USB electronic switch to have a first conduction state and a second conduction state according to the insertion signal and data transmitted by the external equipment, and when the USB electronic switch is in the first conduction state, the encryption chip is in communication connection with the external equipment; when the electronic switch is in the second conduction state, the expander body is in communication connection with the external device.
It should be noted that, the expander body may be a universal USB expander capable of implementing an interface expansion function. The encryption chip can adopt any control chip capable of realizing corresponding functions, and the encryption chip of the embodiment of the invention is shown in fig. 1. When the external device is connected to the USB expander and is electrified, the plug detection circuit can generate and transmit an insertion signal to the encryption chip according to the electrified signal. After the encryption chip receives the insertion signal, the USB electronic switch can be converted into a first conduction state according to the insertion signal, and the USB electronic switch is shown in fig. 4, and can enable the encryption chip to be in communication connection with the external device in the first conduction state, so that the encryption chip and the external device can perform data interaction. The encryption chip can judge whether the external equipment is the exclusive equipment of the USB expander through the data interaction behavior with the external equipment, if the external equipment is the exclusive equipment corresponding to the USB expander, the encryption chip controls the USB electronic switch to be converted into a second conduction state again, so that the USB electronic switch is in communication connection with the expander body, the external equipment and the USB electronic switch still keep the communication connection state at the moment, therefore, the external equipment can be in communication with the upper computer equipment (such as a PC) connected with the expander body, and the encryption chip disconnects the communication connection between the encryption chip and the external equipment after the communication is stable.
Referring to fig. 2 to 3, in some embodiments of the present invention, a plug detection circuit includes a power switch, a dual operational amplifier, and a first resistor; the first end of the power-on switch is electrically connected with the power supply and the first end of the first resistor, the first non-inverting input end of the double operational amplifier is electrically connected with the first end of the power-on switch and the second end of the first resistor, and the second end of the power-on switch is electrically connected with the grounding end; when the external equipment is connected to the expander body, the power-on switch is closed; the first inverting input end of the double operational amplifier is electrically connected with the first output end of the double operational amplifier; the first output end of the double operational amplifier is also electrically connected with the second non-inverting input end of the double operational amplifier, the second inverting input end of the double operational amplifier is electrically connected with the grounding end, and the second output end of the double operational amplifier is electrically connected with the encryption chip.
It should be noted that, referring to fig. 2, the working principle of the plug detection circuit actually adopts the dual operational amplifier shown in fig. 3, and the power-on switch is shown in fig. 2, where the working principle of the dual operational amplifier is that when the external device is not plugged in, the plug detection circuit is similar to the off state of S2B in fig. 2, the voltage between R5 and R3 is 0, the outputs of the operational amplifier U1A and the operational amplifier U1B are also 0, the voltage of R8 is 0, and the detection device detects that the device is not powered on. When the external device is plugged in, similar to the S1B closed state of the circuit, a voltage difference exists between R5 and R3, the output of the operational amplifier U1A and the output of the operational amplifier U1B are not 0, and a high level is output at the output end of the R8 operational amplifier. At this point a high level is detected, at which point the external device is considered to have been plugged in. Further, the power switch is not shown in fig. 3, and the dual operational amplifier U2 shown in fig. 3 is used in the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides an image capturing apparatus, including a camera, a control module, and a connection joint; the connection connector is electrically connected with the USB expander of the embodiment of the above aspect.
It should be noted that, in general, the monitoring camera type image capturing apparatus cannot be easily plugged after being accessed, so that the use of a dedicated USB expander is a better option. When the image pickup device provided by the embodiment of the invention is used as external equipment, the expander body is connected through the connecting joint. The plug detection circuit of the USB expander of the embodiment of the aspect can detect the access of the connecting joint, and the control module of the camera equipment can perform data interaction with the encryption chip of the USB expander.
Referring to fig. 5, in a third aspect, an embodiment of the present invention provides a method for identifying a USB expander, which is applied to the USB expander of the embodiment of the foregoing aspect, and fig. 4 is a schematic block diagram of the method for identifying a USB expander of the embodiment of the present invention, where the identifying method includes:
Step S100, an external device is connected into an expander body, and a plug detection circuit sends an insertion signal to an encryption chip;
step S200, after receiving the insertion signal, the encryption chip converts the conduction state of the USB electronic switch into a first conduction state so that the external equipment is in communication connection with the encryption chip;
step S300, the encryption chip performs data interaction with the external equipment, and whether the external equipment is exclusive equipment is judged;
step S400, when the external device is a dedicated device, the encryption chip converts the conductive state of the USB electronic switch into a second conductive state, so that the external device is in communication connection with the expander body.
It should be noted that in step S100, the plug detection circuit may send an insertion signal to the encryption chip after detecting the access of the external device, and in some embodiments of the present invention, the insertion signal is a high level signal output by the dual operational amplifier. In step S200, the encryption chip determines whether an external device is connected according to the insertion signal, and if the external device is connected, the USB electronic switch is converted into a first conductive state, so that the USB electronic switch is respectively connected with the encryption chip and the external device in a communication manner. In step S300, the encryption chip of the embodiment of the present invention performs data interaction with the external device, and can determine whether the external device is a dedicated device of the USB expander through exchanging a key or other identifying means. In step S400, the encryption chip converts the on state of the USB electronic switch into the second on state, and even if the USB electronic switch is in communication connection with the expander body, a communication link between the external device, the expander body, and the host device is formed, so as to complete communication between the external device and the host device. In fig. 5, (1) the token insertion detection circuit detects an electrical signal detected by the external device, (2) the token insertion detection circuit sends an insertion signal to the encryption chip, and (3) the token encryption chip controls the USB electronic switch.
In some embodiments of the present invention, the step of connecting an external device to the expander body and transmitting an insertion signal to the encryption chip by the plug detection circuit includes:
step S110, connecting the external equipment into the expander body;
Step S120, the plug detection circuit judges whether the external equipment is connected to the external equipment according to the voltage difference between the non-inverting input end and the inverting input end;
step S130, after the access of the external device is completed, an insertion signal is sent to the encryption chip.
It should be noted that, in some embodiments of the present invention, the plug detection circuit may use the dual operational amplifier provided in the embodiments of the present invention, if the voltage difference between the first non-inverting input terminal and the first inverting input terminal of the dual operational amplifier is greater than a preset value, the external device may be considered to be connected completely, and the dual operational amplifier outputs a high level signal to the encryption chip, where the high level signal is an insertion signal.
Referring to fig. 5, in some embodiments of the present invention, after the encryption chip receives the insertion signal, the step of converting the conductive state of the USB electronic switch into the first conductive state, so that the external device is communicatively connected to the encryption chip includes:
step S210, after receiving the insertion signal, the encryption chip converts the conduction state of the USB electronic switch into a first conduction state;
Step S220, the USB electronic switch conducts a data bus between the external device and the encryption chip, so that the external device is in communication connection with the encryption chip.
In step S210 to step S220, the encryption chip is connected to the external device through a data bus, the data bus is controlled by a USB electronic switch, and the first conductive state of the USB electronic switch represents the conductive state of the data bus between the encryption chip and the external device. ① and ② in fig. 5 illustrate that the external device and the encryption chip communicate through the data bus in the first conductive state of the USB electronic switch.
In some embodiments of the present invention, the step of performing data interaction between the encryption chip and the external device to determine whether the external device is a dedicated device includes:
Step S310, the encryption chip generates a first plaintext according to a processing protocol, generates a ciphertext through key encryption, and transmits the ciphertext to an external device;
Step S320, the external device decrypts the ciphertext, decrypts the ciphertext according to the processing protocol, generates a second plaintext and transmits the second plaintext to the encryption chip;
step S330, the encryption chip compares the first plaintext with the second plaintext, and if the first plaintext is the same as the second plaintext, the encryption chip sends a successful identification command to the external device;
Step S340, the external device switches the working state to the dedicated device communication state according to the identification success command.
It should be noted that, in step S310 to step S340, the first plaintext may be a string of random numbers generated randomly, or may be other types of symbols or characters, which is not limited in the present invention; the processing protocol is a set of encryption rules and decryption rules, the encryption chip can convert the first plaintext into encrypted ciphertext through the processing protocol, the self-contained processing of the external equipment can convert the ciphertext into second plaintext and transmit the second plaintext back to the encryption chip, the encryption chip compares the first plaintext with the second plaintext, if the first plaintext and the second plaintext are the same, the external equipment can be considered to be exclusive equipment corresponding to the USB expander, the encryption chip sends an identification success command to the external equipment, so that the external equipment enters an exclusive communication state and only communicates with the expander body provided by the embodiment of the aspect.
Referring to fig. 5, in some embodiments of the present invention, when the external device is a dedicated device, the encryption chip converts the on state of the USB electronic switch into the second on state, so that the external device is communicatively connected to the expander body, including the steps of;
in step S410, the encryption chip converts the on state of the USB electronic switch into a second on state, and turns on the data bus between the external device and the expander body, so that the external device is communicatively connected with the expander body.
It should be noted that, in step S410, the second conductive state of the USB electronic switch represents the conductive state of the data bus between the external device and the expander body. ② and ③ in fig. 5 represent data bus communication between the encryption chip and the expander body in the second conductive state of the USB electronic switch, and ④ represents data bus communication between the expander body and the host computer device.
In a fourth aspect, an embodiment of the present invention provides a computer apparatus, including a memory for storing at least one program, and a processor for loading the at least one program to perform the method for identifying a USB expander according to the embodiment of the above aspect.
In a fifth aspect, embodiments of the present invention provide a computer-readable storage medium in which a processor-executable program is stored, which when executed by a processor is configured to perform a method of identifying a USB expander as in the embodiments of the above aspects.
It should be appreciated that embodiments of the invention may be implemented or realized by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer readable storage medium configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, in accordance with the methods and drawings described in the specific embodiments. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described herein may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, collectively executing on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the steps described above, the invention described herein includes these and other different types of non-transitory computer-readable storage media. The invention also includes the computer itself when programmed according to the methods and techniques of the present invention.
The computer program can be applied to the input data to perform the functions described herein, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention.
Claims (9)
1. A USB expander, comprising:
the expander body is used for accessing external equipment;
The encryption chip is used for carrying out data interaction with the external equipment;
The plug detection circuit is respectively and electrically connected with the external equipment and the encryption chip; the plug detection circuit is used for detecting the access of the external equipment and sending an insertion signal to the encryption chip;
the USB electronic switch is respectively and electrically connected with the encryption chip, the expander body and the external equipment; the encryption chip is also used for controlling the conduction state of the USB electronic switch according to the insertion signal and the data transmitted by the external equipment, the USB electronic switch is provided with a first conduction state and a second conduction state, and when the USB electronic switch is in the first conduction state, the encryption chip is in communication connection with the external equipment; when the electronic switch is in the second conduction state, the expander body is in communication connection with the external equipment; the plug detection circuit comprises an energizing switch, a double operational amplifier and a first resistor; the first end of the energizing switch is electrically connected with a power supply and the first end of the first resistor, the first non-inverting input end of the double operational amplifier is electrically connected with the first end of the energizing switch and the second end of the first resistor, and the second end of the energizing switch is electrically connected with the grounding end; when the external equipment is connected to the expander body, the power-on switch is closed; the first inverting input end of the double operational amplifier is electrically connected with the first output end of the double operational amplifier; the first output end of the double operational amplifier is also electrically connected with the second non-inverting input end of the double operational amplifier, the second inverting input end of the double operational amplifier is electrically connected with the grounding end, and the second output end of the double operational amplifier is electrically connected with the encryption chip.
2. An image pickup apparatus is characterized by comprising a camera, a control module and a connecting joint; the connection terminal is electrically connected to the USB expander of claim 1.
3. A method for identifying a USB expander, applied to the USB expander of claim 1, the method comprising:
the external equipment is connected into the expander body, and the plug detection circuit sends an insertion signal to the encryption chip;
After receiving the insertion signal, the encryption chip converts the conduction state of the USB electronic switch into a first conduction state so that the external equipment is in communication connection with the encryption chip;
the encryption chip performs data interaction with the external equipment, and judges whether the external equipment is exclusive equipment or not;
when the external equipment is exclusive equipment, the encryption chip converts the conduction state of the USB electronic switch into a second conduction state, so that the external equipment is in communication connection with the expander body.
4. The method for identifying a USB expander according to claim 3, wherein the step of connecting an external device to the expander body and the plug detection circuit transmitting an insertion signal to the encryption chip comprises:
Accessing the external equipment into an expander body;
The plug detection circuit judges whether the external equipment is connected to the external equipment according to the voltage difference between the first non-inverting input end and the first inverting input end of the double operational amplifier;
And after the external equipment is accessed, sending an inserting signal to the encryption chip.
5. The method for identifying a USB expander according to claim 3, wherein the step of the encryption chip converting the on state of the USB electronic switch to the first on state after receiving the insertion signal, so that the external device is communicatively connected to the encryption chip includes:
After receiving the insertion signal, the encryption chip converts the conduction state of the USB electronic switch into a first conduction state, and a data bus between the external device and the encryption chip is conducted to enable the external device to be in communication connection with the encryption chip.
6. The method for identifying a USB expander according to claim 3, wherein the step of determining whether the external device is a dedicated device by performing data interaction between the encryption chip and the external device includes:
The encryption chip generates a first plaintext according to a processing protocol, generates a ciphertext through key encryption, and transmits the ciphertext to the external equipment;
the external device decrypts the ciphertext, decrypts the ciphertext according to the processing protocol, generates a second plaintext and transmits the second plaintext to the encryption chip;
the encryption chip compares the first plaintext with the second plaintext, and if the first plaintext is the same as the second plaintext, the encryption chip sends an identification success command to the external device;
and the external equipment switches the working state into the communication state of the special equipment according to the identification success command.
7. The method for identifying a USB expander according to claim 5, wherein when the external device is a dedicated device, the encryption chip converts a conductive state of the USB electronic switch into a second conductive state, so that the external device is communicatively connected to the expander body, and the method comprises the steps of;
The encryption chip converts the conduction state of the USB electronic switch into a second conduction state, and a data bus between the external equipment and the expander body is conducted to enable the external equipment to be in communication connection with the expander body.
8. A computer apparatus comprising a memory for storing at least one program and a processor for loading the at least one program to perform the method of identifying a USB extender as claimed in any one of claims 3 to 7.
9. A computer-readable storage medium, in which a processor-executable program is stored, characterized in that the processor-executable program, when being executed by a processor, is for performing the method of identifying a USB extender as claimed in any one of claims 3-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410437728.4A CN118035151B (en) | 2024-04-12 | 2024-04-12 | USB expander, identification method and device thereof, medium and image pickup equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410437728.4A CN118035151B (en) | 2024-04-12 | 2024-04-12 | USB expander, identification method and device thereof, medium and image pickup equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118035151A CN118035151A (en) | 2024-05-14 |
CN118035151B true CN118035151B (en) | 2024-07-09 |
Family
ID=90993599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410437728.4A Active CN118035151B (en) | 2024-04-12 | 2024-04-12 | USB expander, identification method and device thereof, medium and image pickup equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118035151B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114624632A (en) * | 2022-05-17 | 2022-06-14 | 陕西天视致远航空技术有限公司 | USB port plug detection system, method, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8690608B2 (en) * | 2011-06-20 | 2014-04-08 | Japan Aviation Electronics Industry Limited | Special USB plug having different structure from standard USB plug and USB receptacle matable with the special USB plug |
-
2024
- 2024-04-12 CN CN202410437728.4A patent/CN118035151B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114624632A (en) * | 2022-05-17 | 2022-06-14 | 陕西天视致远航空技术有限公司 | USB port plug detection system, method, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN118035151A (en) | 2024-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2434270C2 (en) | Interfacing unit (versions) and method, for communication between computer and field device | |
KR101898185B1 (en) | Power adaptor, terminal and charging system | |
US10959096B2 (en) | Data communication method for wireless power charging and electronic device using the same | |
US10365840B2 (en) | System and method for providing a secure airborne network-attached storage node | |
CN101632270A (en) | Use the method and system of physics existence pair wireless devices | |
CN106412293B (en) | Foreign matter detection method and device and terminal equipment | |
CN105761067B (en) | Intelligent POS machine security module and starting method thereof | |
CN107172618B (en) | Device pairing method | |
JP2009245020A (en) | Encrypting device by usb connection | |
EP3327896B1 (en) | Power supply control method and apparatus of power strip, computer program and recording medium | |
CN106815156A (en) | A kind of device for realizing solid state hard disc interaction, method and and electronic equipment | |
CN108376224A (en) | A kind of movable storage device and its encryption method and device | |
CN118035151B (en) | USB expander, identification method and device thereof, medium and image pickup equipment | |
CN106293845A (en) | A kind of terminal enters control method and the device of brush machine pattern | |
EP4184279A1 (en) | Stylus-based data processing method and apparatus | |
CN1262911C (en) | Display device | |
US20040177202A1 (en) | Apparatus and method for generating hot-plug signal | |
CN108924325B (en) | Data processing method and related device | |
CN114069835A (en) | Power receiving apparatus, control method, and storage medium | |
CN114448020A (en) | Electronic device, control method, and storage medium | |
EP2854086A1 (en) | Electronic Payment Device | |
CN103561478A (en) | Method and device for automatically achieving wireless connection between devices | |
CN113885380B (en) | A control method, a control device, and a computer storage medium | |
JP4810379B2 (en) | Communication system, terminal station, communication method and program | |
CN102307100B (en) | Data processing device and data processing method thereof |
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 |