Input device based on mobile phone or tablet personal computer USB and implementation method thereof

文档序号:510387 发布日期:2021-05-28 浏览:9次 中文

阅读说明:本技术 一种基于手机或平板电脑usb的输入设备及其实现方法 (Input device based on mobile phone or tablet personal computer USB and implementation method thereof ) 是由 陈雪锋 于 2021-02-23 设计创作,主要内容包括:本发明涉及一种基于手机或平板电脑USB的输入设备及其实现方法。现有计算机配备的键盘和鼠标体积宠大,功能单一,不智能,携带操作不便。由壳体、Type-C公头、控制板、激光指示灯、Type-C母座、触摸按键、锂电池构成,控制板包括处理器、USB模块A、USB模块B、触摸按键模块、红色激光器。本发明的实现方法为:将输入设备定义为蓝牙键盘、蓝牙鼠标或蓝牙游戏手柄;编写配套APP完成键值定义;连接安装了配套APP的手机;将电脑通过蓝牙或USB连接本设备;操作触摸键盘,使手机成为了电脑等电子设备的的智能输入设备。本发明使手机或平板电脑成为了电脑等电子设备的智能输入设备,完成更多复杂的输入记忆及简化的工作,操作简单,安全可靠。(The invention relates to an input device based on a mobile phone or a tablet computer USB and an implementation method thereof. The keyboard and the mouse equipped in the existing computer have large volume, single function, no intelligence and inconvenient carrying and operation. Constitute by public head of casing, Type-C, control panel, laser pilot lamp, female seat of Type-C, touch button, lithium cell, the control panel includes treater, USB module A, USB module B, touch button module, red laser instrument. The implementation method of the invention comprises the following steps: defining the input device as a Bluetooth keyboard, a Bluetooth mouse or a Bluetooth gamepad; compiling matched APP to finish key value definition; connecting a mobile phone provided with a matched APP; connecting a computer with the equipment through Bluetooth or USB; the touch keyboard is operated, so that the mobile phone becomes an intelligent input device of electronic equipment such as a computer. The invention makes the mobile phone or the tablet personal computer become the intelligent input device of electronic equipment such as a computer and the like, completes more complicated input memory and simplified work, and has simple operation, safety and reliability.)

1. The input device based on the USB of the mobile phone or the tablet personal computer is characterized by comprising a shell, a Type-C male head (3), a control panel (4), a laser indicator lamp (5), a Type-C female seat (6), a touch key (7) and a lithium battery (8), wherein the shell comprises an upper shell (2) and a lower shell (1), the Type-C male head (3) is arranged on the front side of the shell, the laser indicator lamp (5) is arranged on the back side of the shell, and the Type-C female seat (6) is arranged on the side of the edge of the shell; a control panel (4) and a lithium battery (8) are arranged in the cavity of the shell, and a touch key (7) is arranged on the surface of the control panel (4).

2. A mobile phone or tablet USB based input device as claimed in claim 1 wherein said control panel comprises: the device comprises a processor, a USB module A, USB module B, a touch key module and a red laser, wherein the processor is respectively connected with the USB module A, USB module B, the touch key module and the red laser.

3. A mobile phone or tablet USB based input device as claimed in claim 2 wherein said processor comprises: the system comprises a USB transceiving storage area, a key value storage area, a keyboard data analysis unit, a mouse data analysis unit, a game data analysis unit, a MIDI data analysis unit, a multimedia data analysis unit, a macro definition namely keyboard batch processing data analysis unit, a Bluetooth module and a communication port, wherein the USB transceiving storage area is connected with the key value storage area, the key value storage area is connected with the parallel keyboard data analysis unit, the mouse data analysis unit, the game data analysis unit, the MIDI data analysis unit, the multimedia data analysis unit and the macro definition namely keyboard batch processing data analysis unit, and the Bluetooth module and the communication port are respectively connected with the parallel keyboard data analysis unit, the mouse data analysis unit, the game data analysis unit, the MIDI data analysis unit, the multimedia data analysis unit and the macro definition namely keyboard batch processing data analysis unit.

4. A method for realizing intelligent input equipment based on a mobile phone USB or a tablet computer is characterized by comprising the following steps:

A. defining an input device based on a USB of a mobile phone or a tablet computer as a Bluetooth keyboard, a Bluetooth mouse or a Bluetooth game handle;

B. compiling a matched APP to complete the definition of key values of a keyboard, a mouse or a game handle and the like through android development software such as eclipse and the like;

C. the mobile phone provided with the matched APP is connected through a Type-C male connector of an input device based on a mobile phone or a tablet computer USB;

D. connecting a computer with input equipment based on a mobile phone or a tablet computer USB through Bluetooth or USB;

E. the touch keyboard of the mobile phone provided with the matched APP is operated, so that the mobile phone becomes an intelligent input device of electronic equipment such as a computer, namely, the functions of a keyboard and a mouse are replaced.

5. The method for implementing the intelligent input device based on the USB of the mobile phone or the tablet computer according to claim 4, wherein the supporting APP is implemented by the following steps:

A. the USB module A is responsible for data communication with a mobile phone, a tablet or a computer, and communicates by using a self-defined communication format;

B. the game and MIDI data analysis unit is responsible for analyzing game and MIDI data and sending the data through the Bluetooth module or the communication port;

C. the keyboard and mouse data analysis unit is responsible for analyzing keyboard and mouse data and sending the data through a Bluetooth module or a communication port;

D. the Bluetooth module is based on a Bluetooth 4.2 protocol, is used as a Bluetooth slave, has the functions of a keyboard, a mouse, a gamepad and MIDI equipment, can be connected with equipment with the functions of a Bluetooth host, such as a mobile phone and a tablet personal computer in a matching way, and realizes the functions of the keyboard, the mouse, the gamepad and the MIDI equipment;

E. the communication port is responsible for sending the keyboard, the mouse, the gamepad and the MIDI data to the USB module B;

F. the USB module B has the functions of a keyboard, a mouse, a game handle and MIDI (musical instrument digital interface), and can be connected with equipment supporting the USB function, such as a computer and the like;

G. the touch key module is responsible for the scanning detection function of the keys and transmits the detected key state to the processor;

H. the laser is used as the indicating function, and the processor can control the on and off of the laser and indicate in the lecture teaching;

I. the method comprises the steps that a plurality of keys are realized through control end software, each key can be customized into a keyboard, a mouse, a gamepad or a MIDI function, after the key is clicked, the software sends data to a data processing module (a game, a MIDI data analysis unit and a keyboard and mouse data analysis unit) through a USB module A, the data are analyzed and assembled into corresponding formats by the data processing module (the game, the MIDI data analysis unit and the keyboard and mouse data analysis unit), and then the data are transmitted to a Bluetooth module and a communication interface, and the Bluetooth module or the USB module B completes the corresponding functions on connected equipment;

J. the keyboard function comprises a common keyboard function and a multimedia keyboard function, and each key of the common keyboard function can be set to be any key value, such as the key value functions of 'Page Up' and 'Page Down'; the multimedia keyboard function can be set to the functions of previous music, next music, player opening, pause/continuous playing and the like;

K. the mouse has the functions of a left key, a right key, a middle key, a forward key, a backward key, a roller and a moving function;

l, having a function of macro, can define a series of keyboard and mouse operations, for example, it can be set up that the mouse moves left by 100 pixels, then clicks the left key, and inputs "Hello!after 100 ms! "and go back;

m, the game handle function has four direction keys of up, down, left and right and 8 button functions;

n, MIDI function as general note commands and MIDI control commands and CC and PC commands.

Technical Field

The invention relates to the field of peripheral equipment of computers and mobile phones, in particular to an intelligent input device based on a mobile phone or a tablet personal computer USB and an implementation method thereof.

Background

The existing computer needs to be matched with a keyboard and a mouse, and various simple input purposes of the computer are realized by operating the keyboard and the mouse in a wired or wireless connection mode; however, the keyboard and the mouse are large in size, fixed and single in function, not intelligent, inconvenient to carry and operate, cost-increasing and not beneficial to modern, fast and convenient life and work modes.

Disclosure of Invention

The invention aims to provide an input device based on a mobile phone or a tablet personal computer USB and an implementation method thereof.

The invention relates to input equipment based on a mobile phone or a tablet personal computer USB, which comprises a shell, a Type-C male head, a control panel, a laser indicator lamp, a Type-C female seat, a touch key and a lithium battery, wherein the shell consists of an upper shell and a lower shell, the Type-C male head is arranged on the front side surface of the shell, the laser indicator lamp is arranged on the back side surface of the shell, and the Type-C female seat is arranged on the side surface of the shell; in the cavity of casing, be provided with control panel and lithium cell, the control panel surface is provided with the touch button.

The control panel includes: a processor, a USB module A, USB module B, a touch key module and a red laser.

The processor is respectively connected with the USB module A, USB module B, the touch key module and the red laser.

The processor includes: the system comprises a USB transceiving storage area, a key value storage area, a keyboard data analysis unit, a mouse data analysis unit, a game data analysis unit, a MIDI data analysis unit, a multimedia data analysis unit, a macro definition namely keyboard batch processing data analysis unit, a Bluetooth module and a communication port, wherein the USB transceiving storage area is connected with the key value storage area, the key value storage area is connected with the parallel keyboard data analysis unit, the mouse data analysis unit, the game data analysis unit, the MIDI data analysis unit, the multimedia data analysis unit and the macro definition namely keyboard batch processing data analysis unit, and the Bluetooth module and the communication port are respectively connected with the parallel keyboard data analysis unit, the mouse data analysis unit, the game data analysis unit, the MIDI data analysis unit, the multimedia data analysis unit and the macro definition namely keyboard batch processing data analysis unit.

The mobile phone is connected to a USB port of the USB module A, which is equivalent to a USB serial port or HID communication, and then the data is converted by the processor and transmitted to the Bluetooth inlet, and the device to be connected with the mobile phone is identified as a Bluetooth keyboard or a Bluetooth mouse, or is used as a USB keyboard or a USB mouse to be connected with other devices through the USB module B; the laser part is an infrared laser indicator light and indicates the position by red light, wherein the infrared laser indicator light is used in PPT display.

The invention discloses a method for realizing an input device based on a USB (universal serial bus) of a mobile phone or a tablet personal computer, which comprises the following steps:

A. defining an input device based on a USB of a mobile phone or a tablet computer as a Bluetooth keyboard, a Bluetooth mouse or a Bluetooth game handle;

B. compiling a matched APP to complete the definition of key values of a keyboard, a mouse or a game handle and the like through android development software such as eclipse and the like;

C. the mobile phone provided with the matched APP is connected through a Type-C male connector of an input device based on a mobile phone or a tablet computer USB;

D. connecting a computer with input equipment based on a mobile phone or a tablet computer USB through Bluetooth or USB;

E. the touch keyboard of the mobile phone provided with the matched APP is operated, so that the mobile phone becomes an intelligent input device of electronic equipment such as a computer, namely, the functions of a keyboard and a mouse are replaced.

The method comprises the following steps:

A. the USB module A is responsible for data communication with a mobile phone, a tablet or a computer, and communicates by using a self-defined communication format;

B. the game and MIDI data analysis unit is responsible for analyzing game and MIDI data and sending the data through the Bluetooth module or the communication port;

C. the keyboard and mouse data analysis unit is responsible for analyzing keyboard and mouse data and sending the data through a Bluetooth module or a communication port;

D. the Bluetooth module is based on a Bluetooth 4.2 protocol, is used as a Bluetooth slave, has the functions of a keyboard, a mouse, a gamepad and MIDI equipment, can be connected with equipment with the functions of a Bluetooth host, such as a mobile phone and a tablet personal computer in a matching way, and realizes the functions of the keyboard, the mouse, the gamepad and the MIDI equipment;

E. the communication port is responsible for sending the keyboard, the mouse, the gamepad and the MIDI data to the USB module B;

F. the USB module B has the functions of a keyboard, a mouse, a game handle and MIDI (musical instrument digital interface), and can be connected with equipment supporting the USB function, such as a computer and the like;

G. the touch key module is responsible for the scanning detection function of the keys and transmits the detected key state to the processor;

H. the laser is used as the indicating function, and the processor can control the on and off of the laser and indicate in the lecture teaching;

I. a plurality of keys are realized through control end software, each key can be customized into a keyboard, a mouse, a gamepad or a MIDI function, after the key is clicked, the software sends data to a data processing module (a game, a MIDI data analysis unit and a keyboard and mouse data analysis unit) through a USB module A, the data processing module (the game, the MIDI data analysis unit and the keyboard and mouse data analysis unit) analyzes the data and assembles the data into a corresponding format, and then the data are transmitted to a Bluetooth module and a communication interface, and the Bluetooth module or the USB module B completes the corresponding function on connected equipment.

J. The keyboard function comprises a common keyboard function and a multimedia keyboard function, and each key of the common keyboard function can be set to be any key value, such as the key value functions of 'Page Up' and 'Page Down'; the multimedia keyboard function may be set to the functions of previous song, next song, opening the player, pausing/resuming the play, etc.

K. The mouse has the functions of a left key, a right key, a middle key, a forward key, a backward key, a roller and a moving function;

l, having a function of macro, can define a series of keyboard and mouse operations, for example, it can be set up that the mouse moves left by 100 pixels, then clicks the left key, and inputs "Hello!after 100 ms! "and go back.

M, the game handle function has four direction keys of up, down, left and right and 8 button functions;

n, MIDI function as general note commands and MIDI control commands and CC and PC commands.

When the mobile phone is used, the mobile phone is connected to a USB port of a USB module A, the USB port and the USB port are equivalent to a USB serial port or HID communication, data are converted by a processor and then transmitted to a Bluetooth inlet, and the device to be connected with the mobile phone is identified as a Bluetooth keyboard or a Bluetooth mouse or is used as a USB keyboard or a USB mouse to be connected with other devices through a USB module B; the laser part is an infrared laser indicator light and indicates the position by red light, wherein the infrared laser indicator light is used in PPT display.

The invention has the advantages that the mobile phone becomes the intelligent input device of electronic equipment such as computers and the like, more complicated input memory and simplified work are completed, the operation is simple, the operation is safe and reliable, the operation is quick, convenient and practical, and the popularization is facilitated.

Drawings

FIG. 1 is a schematic view of the overall structure of the present invention;

FIG. 2 is a schematic view of the invention in an exploded state;

FIG. 3 is a schematic diagram of the operating principle of the control panel of the present invention;

FIG. 4 is a circuit diagram of the control board of the present invention;

FIG. 5 is a supporting APP flow diagram of the present invention;

FIG. 6 is an exemplary diagram of an APP as a mouse interface in accordance with the present invention;

FIG. 7 is an exemplary diagram of an interface of the APP as a PPT playing tool according to the present invention;

FIG. 8 is a diagram of an example of the APP of the present invention as an interface to a personal cipher device.

In the figure, 1 is a lower shell, 2 is an upper shell, 3 is a Type-C male connector, 4 is a control panel, 5 is a laser indicator lamp, 6 is a Type-C female seat, 7 is a touch key and 8 is a lithium battery.

Detailed Description

The invention will be described in further detail in the following description of preferred embodiments with reference to the accompanying drawings:

the invention relates to input equipment based on a mobile phone or a tablet personal computer USB (universal serial bus), which comprises a shell, a Type-C male head (3), a control panel (4), a laser indicator lamp (5), a Type-C female seat (6), a touch key (7) and a lithium battery (8), wherein the shell consists of an upper shell (2) and a lower shell (1), the Type-C male head (3) is arranged on the front side surface of the shell, the laser indicator lamp (5) is arranged on the back side surface of the shell, and the Type-C female seat (6) is arranged on the side surface of the shell; a control panel (4) and a lithium battery (8) are arranged in the cavity of the shell, and a touch key (7) is arranged on the surface of the control panel (4).

The control panel includes: a processor, a USB module A, USB module B, a touch key module and a red laser.

The processor is respectively connected with the USB module A, USB module B, the touch key module and the red laser.

The processor includes: the system comprises a USB transceiving storage area, a key value storage area, a keyboard data analysis unit, a mouse data analysis unit, a game data analysis unit, a MIDI data analysis unit, a multimedia data analysis unit, a macro definition namely keyboard batch processing data analysis unit, a Bluetooth module and a communication port, wherein the USB transceiving storage area is connected with the key value storage area, the key value storage area is connected with the parallel keyboard data analysis unit, the mouse data analysis unit, the game data analysis unit, the MIDI data analysis unit, the multimedia data analysis unit and the macro definition namely keyboard batch processing data analysis unit, and the Bluetooth module and the communication port are respectively connected with the parallel keyboard data analysis unit, the mouse data analysis unit, the game data analysis unit, the MIDI data analysis unit, the multimedia data analysis unit and the macro definition namely keyboard batch processing data analysis unit.

The invention discloses a method for realizing an input device based on a USB (universal serial bus) of a mobile phone or a tablet personal computer, which comprises the following steps:

A. defining an input device based on a USB of a mobile phone or a tablet computer as a Bluetooth keyboard, a Bluetooth mouse or a Bluetooth game handle;

B. compiling a matched APP to complete the definition of key values of a keyboard, a mouse or a game handle and the like through android development software such as eclipse and the like;

C. the mobile phone provided with the matched APP is connected through a Type-C male connector of an input device based on a mobile phone or a tablet computer USB;

D. connecting a computer with input equipment based on a mobile phone or a tablet computer USB through Bluetooth or USB;

E. the touch keyboard of the mobile phone provided with the matched APP is operated, so that the mobile phone becomes an intelligent input device of electronic equipment such as a computer, namely, the functions of a keyboard and a mouse are replaced.

The method comprises the following steps:

A. the USB module A is responsible for data communication with a mobile phone, a tablet or a computer, and communicates by using a self-defined communication format;

B. the game and MIDI data analysis unit is responsible for analyzing game and MIDI data and sending the data through the Bluetooth module or the communication port;

C. the keyboard and mouse data analysis unit is responsible for analyzing keyboard and mouse data and sending the data through a Bluetooth module or a communication port;

D. the Bluetooth module is based on a Bluetooth 4.2 protocol, is used as a Bluetooth slave, has the functions of a keyboard, a mouse, a gamepad and MIDI equipment, can be connected with equipment with the functions of a Bluetooth host, such as a mobile phone and a tablet personal computer in a matching way, and realizes the functions of the keyboard, the mouse, the gamepad and the MIDI equipment;

E. the communication port is responsible for sending the keyboard, the mouse, the gamepad and the MIDI data to the USB module B;

F. the USB module B has the functions of a keyboard, a mouse, a game handle and MIDI (musical instrument digital interface), and can be connected with equipment supporting the USB function, such as a computer and the like;

G. the touch key module is responsible for the scanning detection function of the keys and transmits the detected key state to the processor;

H. the laser is used as the indicating function, and the processor can control the on and off of the laser and indicate in the lecture teaching;

I. the method comprises the steps that a plurality of keys are realized through control end software, each key can be customized into a keyboard, a mouse, a gamepad or a MIDI function, after the key is clicked, the software sends data to a data processing module (a game, a MIDI data analysis unit and a keyboard and mouse data analysis unit) through a USB module A, the data are analyzed and assembled into corresponding formats by the data processing module (the game, the MIDI data analysis unit and the keyboard and mouse data analysis unit), and then the data are transmitted to a Bluetooth module and a communication interface, and the Bluetooth module or the USB module B completes the corresponding functions on connected equipment;

J. the keyboard function comprises a common keyboard function and a multimedia keyboard function, and each key of the common keyboard function can be set to be any key value, such as the key value functions of 'Page Up' and 'Page Down'; the multimedia keyboard function can be set to the functions of previous music, next music, player opening, pause/continuous playing and the like;

K. the mouse has the functions of a left key, a right key, a middle key, a forward key, a backward key, a roller and a moving function;

l, having a function of macro, can define a series of keyboard and mouse operations, for example, it can be set up that the mouse moves left by 100 pixels, then clicks the left key, and inputs "Hello!after 100 ms! "and go back;

m, the game handle function has four direction keys of up, down, left and right and 8 button functions;

n, MIDI function as general note commands and MIDI control commands and CC and PC commands.

When the mobile phone is used, the mobile phone is connected to a USB port of a USB module A, the USB port and the USB port are equivalent to a USB serial port or HID communication, data are converted by a processor and then transmitted to a Bluetooth inlet, and the device to be connected with the mobile phone is identified as a Bluetooth keyboard or a Bluetooth mouse or is used as a USB keyboard or a USB mouse to be connected with other devices through a USB module B; the laser part is an infrared laser indicator light and indicates the position by red light, wherein the infrared laser indicator light is used in PPT display.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:实现I2C通讯的方法和滑板车及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!