Keyboard and mouse integrated device special for electric power
By designing a power-specific keyboard and mouse integrated device, the problems of poor communication compatibility and network security risks in the prior art are solved, and the compatibility and safe and reliable information interaction are achieved.
Patent Information
- Application Number
- CN202411588736.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-14
AI Technical Summary
In the prior art, specific application interface programs on the host communicate through wireless means, poor compatibility and network security risks.
Design a power-specific keyboard and mouse integrated device, including functional configuration module, core microcontroller, OLED display module, TF card or seat, USB to serial port chip and other components. After security verification, it is recognized as a USB disk on the upper computer. Users modify the configuration file to set the functions of the core microcontroller and connect it to the host through a USB socket to realize keyboard and mouse operation.
It realizes good compatibility, safety and reliability of information interaction, simplifies the application of artificial intelligence in power systems, and provides a more convenient and safe operation method.
Smart Images

Figure HDA0005124973500000011 
Figure HDA0005124973500000012 
Figure HDA0005124973500000013
Abstract
Description
Technical Field
[0001] The invention relates to the field of automation, and in particular to an all-in-one keyboard and mouse device dedicated to electricity. Background Art
[0002] With the increasing application of artificial intelligence in power dispatching and monitoring, such as power monitoring robots, unmanned substation inspection robots (drones), etc., robots or intelligent inspection devices often need to interact with dispatcher workstations or substation backends, gateways and other host devices. The interaction method currently mainly uses wireless communication with specific application interface programs on the host, which has poor compatibility and network security risks. If information interaction can be carried out by operating the keyboard and mouse, it will undoubtedly provide great convenience and security for the application of artificial intelligence technology in the power system. Summary of the invention
[0003] In order to solve the problem that the specific application interface program on the host communicates via wireless means, has poor compatibility and also has network security risks.
[0004] The present invention proposes a keyboard and mouse integrated device for power, comprising: a function configuration module, the function configuration module is used to provide an interface for users to modify the core single-chip microcomputer configuration file, the function configuration module is identified as a U disk on the upper computer, i.e., the configuration party: the operating system of a computer, a smart phone, etc. after passing the security verification, and the user sets the function of the core single-chip microcomputer by modifying the configuration file in the U disk; the USB socket J3 is used to connect to the upper computer, the configuration file of the core single-chip microcomputer is stored in a FLASH storage chip, the FLASH storage chip is connected to the SPI1 interface of the configuration single-chip microcomputer, and is also connected to the SPI2 interface of the core single-chip microcomputer, when the configuration single-chip microcomputer enters the U disk working mode, the core single-chip microcomputer is notified to set the SPI2 interface to the high-impedance mode through an interrupt mode, and when the configuration single-chip microcomputer exits the U disk working mode, the SPI1 interface of the configuration single-chip microcomputer is set to the high-impedance mode, and the core single-chip microcomputer is notified to read the SPI2 interface through an interrupt mode. Get the configuration file in FLASH; the USB to serial port chip is used to convert the electrical signal of serial port 1 of the core microcontroller into a USB electrical signal; the core microcontroller is connected to one end of the USB to serial port chip through serial port 1, and the other end of the USB to serial port chip is connected to USB socket J2, and USB socket J2 is also connected to the lower computer, i.e. the operator, and communicates using the power-specific communication protocol. The core microcontroller is also connected to the target host, i.e. the operated party, through the USB socket J1. After verifying that the digital certificate is correct, it is identified as a keyboard device and a mouse device on the operating system of the target host. The lower computer performs keyboard and mouse operations on the target host through the core microcontroller; the OLED display module is connected to the core microcontroller using the I2C interface to display function menus, help information, real-time operation information and other contents; the TF card or socket is connected to the core microcontroller using the SPI3 interface to read the power dispatch digital certificate for identity authentication.
[0005] The micro lock switch consists of two parts: the headphone plug key and the headphone jack lock. The headphone plug key consists of four one-to-four multi-select switches K1, K2, K3, K4, a push switch K5, a variable resistor R1, and a headphone plug J1. J1 has four sections of metal columns, marked as 1, 2, 3, and 4 from the top to the root. The common terminal 0 of K1 is connected to one end of K5, and the other end of K5 is connected to the common terminal 0 of K2. The common terminal 0 of K3 is connected to one end of R1, and the other end of R1 is connected to the common terminal 0 of K4. The branch ends of K1, K2, K3, and K4 are connected to the 1, 2, 3, and 4 metal columns of J1 according to the sequence number.
[0006] The headphone jack lock consists of a headphone jack J2 and a wiring terminal J3. J3 has four wiring terminals 1, 2, 3, and 4. The metal hole columns of J2 are numbered 1, 2, 3, and 4 from the inside to the outside. When J1 is inserted into J2, the metal columns of J1 are connected to the metal hole columns of J2 one by one according to the serial numbers, and the metal hole columns of J2 are also connected to the wiring terminals of J3 one by one according to the serial numbers. Terminal 1 of J3 is connected to the INT1 pin of the microcontroller, terminal 3 of J3 is connected to the AD1 pin of the microcontroller, and terminals 2 and 4 of J3 are grounded.
[0007] The configuration microcontroller can be connected to the host computer (configuration party) through J3 by at least one of a USB cable, USB Bluetooth, etc.
[0008] In a preferred embodiment, the core microcontroller is connected to the target host, ie, the operated party, through the USB socket J1 and the core microcontroller is connected to the lower computer, ie, the operator, through J2 by at least one of USB cable, USB Bluetooth, etc.
[0009] In a preferred embodiment, the configuration microcontroller and the core microcontroller can be powered by at least one of a battery, a USB port, etc.
[0010] In the preferred mode, the other end of the four one-to-four multiple-selection switches K1, K2, K3, and K4 of the headphone plug key other than the common end cannot be combined on the same metal column of the USB socket J1. The position of the branch switch must be determined according to the access circuit requirements of the configured microcontroller. The position of the K1, K2, K3, and K4 branch switches constitutes a hardware access password for the headphone plug key.
[0011] In a preferred manner, the single-chip microcomputer is configured to respond to the interrupt request generated by the closing of the K5 switch on the headphone plug key through the INT1 terminal, and the single-chip microcomputer is configured to sample the resistance value of R1 through the AD1 terminal in the interrupt service program. Only when the resistance value of R1 meets the characteristic value requirement can the U disk device program be run and be identified as a U disk on the upper computer, i.e., the operating system of the configuration party. The U disk stores the configuration file of the core single-chip microcomputer, and the resistance value of R1 constitutes another hardware access password of the headphone plug key.
[0012] In a preferred manner, the configuration microcontroller can further enhance the strength of security authentication by determining at least one of the length of the closing time of K5, the pulse waveform of multiple openings and closings of K5, and the format of the configuration file.
[0013] The beneficial effects of the present invention are: the device of the present invention has a simple structure, occupies a small space, is easy to use, has good information interaction compatibility, and is safe and reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is the circuit principle diagram of the present invention;
[0015] Figure 2 It is the application principle diagram of the present invention;
[0016] Figure 3 The circuit diagram of the headphone plug key of the present invention;
[0017] Figure 4 The circuit diagram of the headphone jack lock of the present invention is shown in FIG. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] Embodiment 1:
[0020] See also Figures 1 to 4 The device consists of a function configuration module IC7, a core single-chip microcomputer IC1, an OLED display module IC2, a TF card holder IC3, a USB to serial port chip IC4, a USB socket J1, and a USB socket J2.
[0021] IC7 is composed of a micro lock switch, a single-chip microcomputer IC5, a FLASH memory chip IC6, and a USB socket J3. The micro lock switch is composed of a headphone plug key and a headphone jack lock. The headphone plug key is composed of four one-to-four multiple-selection switches (K1, K2, K3, K4), a push switch K5, a variable resistor R1, and a headphone plug J1. J1 has four sections of metal columns, marked as 1, 2, 3, and 4 from the top to the root. The common terminal 0 of K1 is connected to one end of K5, and the other end of K5 is connected to the common terminal 0 of K2. The common terminal 0 of K3 is connected to one end of R1, and the other end of R1 is connected to the common terminal 0 of K4. The branch ends of K1, K2, K3, and K4 are connected in sequence. Connected to the 1, 2, 3, and 4 metal columns of J1; wherein, the headphone jack lock is composed of the headphone jack J2 and the wiring terminal J3, J3 has 4 wiring terminals 1, 2, 3, and 4, and the metal hole columns of J2 are numbered 1, 2, 3, and 4 from the inside to the outside. When J1 is inserted into J2, the metal columns of J1 are connected to the metal hole columns of J2 one by one according to the serial numbers, and the metal hole columns of J2 are also connected to the wiring terminals of J3 one by one according to the serial numbers, the terminal 1 of J3 is connected to the INT1 terminal pin of the configuration microcontroller, the terminal 3 of J3 is connected to the AD1 terminal pin of the configuration microcontroller, and the terminals 2 and 4 of J3 are grounded.
[0022] It should be noted that: the other end of the four one-to-four multiple-selection switches (K1, K2, K3, K4) of the headphone plug key other than the common end cannot be connected to the same non-grounded metal column of J1, and the position of the branch switch must be determined according to the access circuit requirements of the configuration single-chip microcomputer. The positions of the K1, K2, K3, and K4 branch switches constitute a hardware access password for the headphone plug key. In this embodiment, the branch switch of K1 is in position 1, the branch switch of K2 is in position 4 (grounded), the branch switch of K3 is in position 3, and the branch switch of K4 is in position 4. Thus, the hardware access password of the headphone plug key of this embodiment is 1434.
[0023] The configuration microcontroller responds to the interrupt request generated by the closing of the K5 switch on the headphone plug key through the INT1 terminal pin. The configuration microcontroller samples the resistance value of R1 through the AD1 terminal pin in the interrupt service program. Only when the resistance value of R1 meets the characteristic value requirement can the U disk device program be run and be identified as a U disk on the operating system of the host computer (configuration party, such as: computer, smart phone, etc.), that is, the resistance value of R1 constitutes another hardware access password of the headphone plug key. In this embodiment, the resistance value of R1 is 4341 ohms. The U disk stores the configuration file of the core microcontroller. The host computer (configuration party) is connected to the configuration microcontroller through J3 and a USB cable. The user modifies the configuration file in the U disk through the host computer to set the function of the core microcontroller.
[0024] The configuration file of the core microcontroller is stored in FLASH. This FLASH storage chip is connected to the SPI1 interface of the configuration microcontroller and is also connected to the SPI2 interface of the core microcontroller. When the configuration microcontroller enters the U disk working mode, the configuration microcontroller notifies the core microcontroller through interrupt INT2 to set the SPI2 interface to high-impedance mode. When the configuration microcontroller exits the U disk working mode, the SPI1 interface of the configuration microcontroller is immediately set to high-impedance mode, and interrupt INT3 is used to notify the core microcontroller to read the configuration file in FLASH.
[0025] The USB to serial port chip is used to convert the electrical signal of the serial port 1 of the core microcontroller into a USB electrical signal.
[0026] The core single-chip microcomputer is connected to one end of the USB-to-serial port chip through serial port 1, and the other end of the USB-to-serial port chip is connected to the USB socket J2. The USB socket J2 is also connected to the lower computer (operator) through the USB Bluetooth module, and the power-specific communication protocol IEC61850-5-101 is used for communication. The core single-chip microcomputer is also connected to the target host (operator) through the USB socket J1 and the USB cable. After verifying that the digital certificate is correct, it is identified as a keyboard device and a mouse device on the operating system of the target host. The lower computer performs keyboard and mouse operations on the target host through the core single-chip microcomputer.
[0027] The OLED display module and the core microcontroller use I 2 C interface, used to display function menus, help information, real-time operation information, etc.
[0028] The TF card (socket) is connected to the core microcontroller using the SPI3 interface, and is used to read the power dispatching digital certificate for identity authentication.
[0029] The lower computer (operator) such as the intelligent robot packages the keyboard and mouse operation instructions into serial communication messages in the format of the power communication protocol, and communicates with this device using a USB cable or USB Bluetooth. This device is connected to the target host (operated party) based on the legitimate power dispatching digital certificate, and converts the keyboard and mouse operation instructions of the lower computer (operator) into corresponding keyboard and mouse operations, thereby achieving the purpose of information interaction between the lower computer (operator) and the target host (operated party).
[0030] Embodiment 2:
[0031] A keyboard and mouse integrated device for power, comprising: a function configuration module is connected to a host computer by a USB socket J3, a configuration file of a core single chip is stored in a FLASH storage chip, the FLASH storage chip is connected to the SPI1 interface of the configuration single chip, and is also connected to the SPI2 interface of the core single chip; a USB to serial port chip is used to convert the electrical signal of the serial port 1 of the core single chip into a USB electrical signal; the core single chip is connected to one end of the USB to serial port chip through the serial port 1, and the other end of the USB to serial port chip is connected to the USB socket J2, the USB socket J2 is also connected to the lower computer, i.e., the operator, and communicates using a power-specific communication protocol, and the core single chip is also connected to the target host, i.e., the operated party, through the USB socket J1; an OLED display module is connected to the core single chip by an I2C interface; a TF card or socket is connected to the core single chip by an SPI3 interface;
[0032] The micro lock switch consists of two parts: the headphone plug key and the headphone jack lock. The headphone plug key consists of four one-to-four multi-select switches K1, K2, K3, K4, a push switch K5, a variable resistor R1, and a headphone plug J1. J1 has four sections of metal columns, marked as 1, 2, 3, and 4 from the top to the root. The common terminal 0 of K1 is connected to one end of K5, and the other end of K5 is connected to the common terminal 0 of K2. The common terminal 0 of K3 is connected to one end of R1, and the other end of R1 is connected to the common terminal 0 of K4. The branch ends of K1, K2, K3, and K4 are connected to the 1, 2, 3, and 4 metal columns of J1 according to the sequence number.
[0033] The headphone jack lock consists of the headphone jack J2 and the wiring terminal J3. J3 has four wiring terminals 1, 2, 3, and 4. The metal hole columns of J2 are numbered 1, 2, 3, and 4 from the inside to the outside. When J1 is inserted into J2, the metal columns of J1 are connected to the metal hole columns of J2 one by one according to the sequence number, and the metal hole columns of J2 are also connected to the wiring terminals of J3 one by one according to the sequence number. Terminal 1 of J3 is connected to the INT1 pin of the microcontroller, terminal 3 of J3 is connected to the AD1 pin of the microcontroller, and terminals 2 and 4 of J3 are grounded.
[0034] The configuration microcontroller can be connected to the host computer (configuration party) through J3 by at least one of a USB cable and USB Bluetooth.
[0035] The core microcontroller is connected to the target host, ie, the operated party, through the USB socket J1 and the core microcontroller is connected to the lower computer, ie, the operator, through J2 by at least one of a USB cable, USB Bluetooth, etc.
[0036] The configuration microcontroller and the core microcontroller can be powered by at least one of a battery, a USB port, etc.
[0037] The other end of the four one-to-four multiple-selection switches K1, K2, K3, and K4 of the headphone plug key other than the common end cannot be combined on the same metal column of the USB socket J1. The position of the branch switch must be determined according to the access circuit requirements of the microcontroller. The position of the K1, K2, K3, and K4 branch switches constitutes a hardware access password for the headphone plug key.
[0038] The configuration microcontroller responds to the interrupt request generated by the closing of the K5 switch on the headphone plug key through the INT1 terminal. The configuration microcontroller samples the resistance value of R1 through the AD1 terminal in the interrupt service program. Only when the resistance value of R1 meets the characteristic value requirement can the U disk device program be run and be recognized as a U disk on the upper computer, i.e. the configuration party's operating system. The U disk stores the configuration file of the core microcontroller. The resistance value of R1 constitutes another hardware access password of the headphone plug key.
[0039] The configuration microcontroller can also further enhance the strength of security authentication by judging at least one of the length of the closing time of K5, the pulse waveform of multiple separations and closings of K5, the format of the configuration file, etc.
[0040] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions of the technical solution of the present invention by ordinary technicians in this field do not deviate from the essence and scope of the technical solution of the present invention.
Claims
1. A keyboard and mouse device for power supply, characterized in that: include: The function configuration module is connected to the host computer by the USB socket J3. The configuration file of the core microcontroller is stored in the FLASH memory chip. The FLASH memory chip is connected to the SPI1 interface of the configuration microcontroller and is also connected to the SPI2 interface of the core microcontroller. The USB to serial port chip is used to convert the electrical signal of the serial port 1 of the core microcontroller into a USB electrical signal. The core microcontroller is connected to one end of the USB to serial port chip through the serial port 1, and the other end of the USB to serial port chip is connected to the USB socket J2. The USB socket J2 is also connected to the lower computer, i.e. the operator, and communicates using the power-specific communication protocol. The core microcontroller is also connected to the target host, i.e. the operated party, through the USB socket J1. The OLED display module is connected to the core microcontroller using the I2C interface. The TF card or socket is connected to the core microcontroller using the SPI3 interface. The micro lock switch consists of two parts: the headphone plug key and the headphone jack lock. The headphone plug key consists of four one-to-four multi-select switches K1, K2, K3, K4, a push switch K5, a variable resistor R1, and a headphone plug J1. J1 has four sections of metal columns, marked as 1, 2, 3, and 4 from the top to the root. The common terminal 0 of K1 is connected to one end of K5, and the other end of K5 is connected to the common terminal 0 of K2. The common terminal 0 of K3 is connected to one end of R1, and the other end of R1 is connected to the common terminal 0 of K4. The branch ends of K1, K2, K3, and K4 are connected to the 1, 2, 3, and 4 metal columns of J1 according to the sequence number. The headphone jack lock consists of the headphone jack J2 and the wiring terminal J3. J3 has four wiring terminals 1, 2, 3, and 4. The metal hole columns of J2 are numbered 1, 2, 3, and 4 from the inside to the outside. When J1 is inserted into J2, the metal columns of J1 are connected to the metal hole columns of J2 one by one according to the sequence number, and the metal hole columns of J2 are also connected to the wiring terminals of J3 one by one according to the sequence number. Terminal 1 of J3 is connected to the INT1 pin of the microcontroller, terminal 3 of J3 is connected to the AD1 pin of the microcontroller, and terminals 2 and 4 of J3 are grounded. The configuration microcontroller can be connected to the host computer, i.e., the configuration party, through J3 by at least one of a USB cable and USB Bluetooth.
2. The power-specific keyboard and mouse integrated device according to claim 1, characterized in that: The core microcontroller is connected to the target host, ie, the operated party, through the USB socket J1 and the core microcontroller is connected to the lower computer, ie, the operator, through J2 by at least one of a USB cable, USB Bluetooth, etc.
3. The power-specific keyboard and mouse integrated device according to claim 1, characterized in that: The configuration microcontroller and the core microcontroller can be powered by at least one of a battery, a USB port, etc.
4. The power-specific keyboard and mouse integrated device according to claim 1, characterized in that: The other end of the four one-to-four multiple-selection switches K1, K2, K3, and K4 of the headphone plug key other than the common end cannot be combined on the same metal column of the USB socket J1. The position of the branch switch must be determined according to the access circuit requirements of the microcontroller. The position of the K1, K2, K3, and K4 branch switches constitutes a hardware access password for the headphone plug key.
5. The power-specific keyboard and mouse integrated device according to claim 1, characterized in that: The configuration microcontroller responds to the interrupt request generated by the closing of the K5 switch on the headphone plug key through the INT1 terminal. The configuration microcontroller samples the resistance value of R1 through the AD1 terminal in the interrupt service program. Only when the resistance value of R1 meets the characteristic value requirement can the U disk device program be run and be recognized as a U disk on the upper computer, i.e. the configuration party's operating system. The U disk stores the configuration file of the core microcontroller. The resistance value of R1 constitutes another hardware access password of the headphone plug key.
6. The power-specific keyboard and mouse integrated device according to claim 1, characterized in that: The configuration microcontroller can also further enhance the strength of security authentication by judging at least one of the length of the closing time of K5, the pulse waveform of multiple separations and closings of K5, the format of the configuration file, etc.