Custom keyboard device integrating multiple interface protocols
Patent Information
- Application Number
- CN202522292985.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-29
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2035-10-29
AI Technical Summary
第一,接口固定,许多工业键盘在出厂时就只能选择一种接口,如USB、TTL、RS-232或 RS-485等,因此,用户在需要对不同类型的键盘功能进行调整时,则需要配备多种协议的调适设备,以满足不同的键盘调适需求
1.多协议兼容性,适用广泛,通过壳体内集成多种电平输出电路,配合接口组件,可同时支持USB、RS-232、RS-485和TTL协议,满足不同设备的兼容性需求,方便用户切换不同协议,无需更换硬件或使用多个设备;
Smart Images

Figure CN224720465U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial debugging equipment, and in particular to a custom keyboard device integrating multiple interface protocols. Background Technology
[0002] In the industrial sector, an increasing number of devices require debugging and control via industrial keyboards. These devices often require specific industrial keyboard interfaces (such as RS-232, RS-485, TTL, and USB) for data input and operation. However, during the device development phase, keyboard functions are not yet fully defined, making it difficult to procure suitable industrial keyboards and hindering flexible adjustments and rapid testing. Therefore, programmable keyboards are needed, allowing for flexible adjustments through customized keyboard functions.
[0003] However, existing industrial keyboards on the market typically have the following problems: First, the interface is fixed. Many industrial keyboards can only be selected with one interface when they are shipped from the factory, such as USB, TTL, RS-232 or RS-485. Therefore, when users need to adjust the functions of different types of keyboards, they need to be equipped with multiple protocol adaptation devices to meet different keyboard adaptation needs.
[0004] Secondly, once the functions of keyboard keys are finalized, there is a difficulty in expanding and modifying them, because the key layout, key labels, key codes, and key code output protocols are usually fixed during the hardware or firmware design phase. If users have changing requirements, they often need to customize or replace the device.
[0005] Therefore, how to flexibly and quickly customize keyboard settings to meet users' needs in various scenarios is a technical problem that needs to be solved. Utility Model Content
[0006] To improve the flexibility and convenience of keyboard function adjustments, this application provides a custom keyboard device integrating multiple interface protocols. The technical solution adopted is as follows: A custom keyboard device integrating multiple interface protocols includes a main control circuit, an RS232 level output circuit, an RS485 level output circuit, a USB level output circuit, a TTL level output circuit, a battery, a power management circuit, a display screen, and interface components. The battery is electrically connected to the main control circuit and the display screen respectively through the power management circuit to provide power; the interface component is communicatively connected to the RS232 level output circuit, RS485 level output circuit, USB level output circuit, and TTL level output circuit. The main control circuit is connected to the RS232 level output circuit, RS485 level output circuit, USB level output circuit, TTL level output circuit, and display screen for communication.
[0007] By adopting the above technical solution, the device can simultaneously support USB, RS-232, RS-485 and TTL protocols, achieving multi-protocol compatibility and meeting the requirements of commonly used industrial keyboard interfaces on the market. Users can easily switch between different protocols without replacing hardware or using multiple devices, making it suitable for the development of devices with various protocols. At the same time, the device can customize key codes, key layouts and key labels through the display screen, improving flexibility and making it suitable for the early stages of research and development. It can also be used temporarily as an emergency measure when the device keyboard is damaged or missing.
[0008] Preferably, the main control circuit includes a microcontroller module, and the RS232 level output circuit, RS485 level output circuit, USB level output circuit, and TTL level output circuit are all communicatively connected to the microcontroller module.
[0009] By adopting the above technical solution, the custom keyboard device integrating multiple interface protocols can communicate with various level output circuits using a microcontroller module, thereby supporting RS232, RS485, USB, and TTL protocols and meeting the requirements of commonly used industrial keyboard interfaces on the market.
[0010] Preferably, the main control circuit further includes an STLink module, which is communicatively connected to the microcontroller module.
[0011] By adopting the above technical solution, the STLink module in the main control circuit is connected to the microcontroller module, which can be debugged and programmed, making it easier for developers to develop and maintain the device, and further improving the flexibility and operability of the device in the research and development stage.
[0012] Preferably, the main control circuit further includes a Nor Flash storage module, which is communicatively connected to the microcontroller module.
[0013] By adopting the above technical solution, the Nor Flash storage module of the main control circuit is connected to the microcontroller module, which can realize the data storage function. This helps the device to store information such as key codes, layouts, and labels, making it convenient for subsequent use and retrieval, and improving the ease of use of the device.
[0014] Preferably, the microcontroller module has a TTL signal output pin, and the TTL level output circuit is communicatively connected to the TTL signal output pin to output a TTL signal.
[0015] By adopting the above technical solution, the microcontroller module can directly output TTL signals and connect to an external connector through a TTL level output circuit.
[0016] Preferably, the RS232 level output circuit is connected to the TTL signal output pin via a jumper cap.
[0017] By adopting the above technical solution, when the device selects RS-232 signal output, the RS232 level output circuit can be connected to the TTL signal output pin through a jumper cap to realize level conversion and output RS-232 signal. Combined with the device's multi-protocol compatibility, it meets the communication needs of different devices for RS-232 protocol, further improves the device's adaptability to devices with different protocols, and facilitates users to switch between multiple protocols.
[0018] Preferably, the display screen is a TTL serial port touch screen.
[0019] By adopting the above technical solution, the display screen uses a TTL serial port touch screen, which can achieve multi-protocol compatibility, has wide applicability, meets the common industrial keyboard interfaces on the market, and allows users to easily switch between different protocols; it can also easily customize key codes, key layouts and key labels under different protocols through the virtual keyboard customization function of the TTL serial port touch screen, improving flexibility and making it suitable for early stage of research and development and temporary emergency use when the equipment keyboard is damaged or missing.
[0020] In summary, this application includes at least one of the following beneficial technical effects: 1. Multi-protocol compatibility and wide applicability: Through the integration of multiple level output circuits within the housing, and in conjunction with interface components, it can simultaneously support USB, RS-232, RS-485 and TTL protocols, meeting the compatibility requirements of different devices and allowing users to easily switch between different protocols without replacing hardware or using multiple devices; 2. Simplify early-stage debugging. The virtual keyboard can be customized via the display screen. Users can easily customize key codes, key layouts, and key labels under different protocols. This is suitable for the early stages of R&D, improving flexibility, and can also be used in emergencies. 3. Convenient power supply: The battery supplies power to all parts through the power management circuit, which solves the problem of cumbersome power supply operation for instruments such as industrial keyboards that required an external DC regulated power source when there was no power supply system in the early stages of equipment development. Attached Figure Description
[0021] Figure 1 This is a circuit module block diagram of a custom keyboard device integrating multiple interface protocols in an embodiment of this application; Figure 2 This is a schematic diagram of the circuit structure of the microcontroller module in the embodiments of this application; Figure 3 This is a schematic diagram of the circuit structure of the STLink module in the embodiments of this application; Figure 4 This is a schematic diagram of the circuit structure of the Nor Flash storage module in an embodiment of this application; Figure 5 This is a schematic diagram of the circuit structure of the RS485 level output circuit in the embodiment of this application; Figure 6 This is a schematic diagram of the circuit structure of the RS232 level output circuit in the embodiment of this application; Figure 7 This is a schematic diagram of the circuit structure of the TTL level output circuit in the embodiments of this application; Figure 8 This is a schematic diagram of the circuit structure of the USB level output circuit in the embodiments of this application.
[0022] The following diagram is labeled: 1. Main control circuit; 2. RS485 level output circuit; 3. USB level output circuit; 4. TTL level output circuit; 5. RS232 level output circuit; 6. Power management circuit; 7. Display screen. Detailed Implementation
[0023] The following is in conjunction with the appendix Figures 1-8 This application will be described in further detail.
[0024] The custom keyboard device integrating multiple interface protocols provided in this application embodiment refers to... Figure 1 The system includes a housing, a main control circuit 1, RS232 level output circuit 5, RS485 level output circuit 2, USB level output circuit 3, TTL level output circuit 4, a battery, a power management circuit 6, a display screen 7, and interface components. The battery powers both the main control circuit 1 and the display screen 7 via the power management circuit 6. The interface components are fixed to the housing and communicate with the RS232 level output circuit 5, RS485 level output circuit 2, USB level output circuit 3, and TTL level output circuit 4. The main control circuit 1 communicates with all four circuits, enabling support for switching between multiple keyboard protocols and allowing for customization of key codes, layout, and labels. This connection method allows the circuits and components to work collaboratively; the main control circuit 1 controls the operation of different level output circuits, enabling switching between multiple protocols, while the display screen 7 allows for convenient user customization.
[0025] Specifically, refer to Figures 2 to 4 The main control circuit 1 includes a microcontroller module, an STLink module, and a Nor Flash storage module.
[0026] The microcontroller module uses a high-performance 32-bit MCU, such as the STM32F103C8T6, which features fast processing speed and strong processing power. The microcontroller module has various pins for connecting to other modules and circuits, such as TTL signal output pins (TTL_TX and TTL_RX), USBDM and USBDP pins, and USART2_TX and USART_RX pins. The TTL signal output pins are used to output TTL signals. The USBDM and USBDP pins communicate with USB level output circuit 3 to output USB signals, and the USART2_TX and USART2_RX pins communicate with RS485 level output circuit 2 to output RS-485 signals.
[0027] The STLink module is primarily used for downloading and debugging programs to microcontroller modules. It connects to the microcontroller module via a specific communication interface, such as the SWD interface. While a JTAG debug module is an alternative, the STLink module offers advantages in terms of ease of use and speed in debugging and downloading programs.
[0028] The Nor Flash memory module is used to store programs and data. It features data retention even when power is off, ensuring that the device can run previously stored programs and data normally after a restart. The microcontroller module acts as the core for data processing and control, the STLink module assists in program debugging and updates, and the Nor Flash memory module provides storage for data and programs, together realizing the functions of main control circuit 1.
[0029] Reference Figures 5-8 The RS232 level output circuit 5 is connected to the TTL signal output pin of the microcontroller module via a jumper cap. When the jumper cap is installed, TTL_TX and TTL_RX are connected to RS232_TX1 and RS232_RX1 on the internal chip of the RS232 level output circuit 5. The TTL signal can be converted into RS232 level output by the RS232 level output circuit 5.
[0030] TTL level output circuit 4 is directly connected to the TTL signal output pin of the microcontroller module. When no jumper cap is installed, the TTL level is directly output through the connector.
[0031] Display screen 7 is a TTL serial port touchscreen, typically 4.3 inches. It allows for various configurations via touch, enabling users to operate intuitively on the screen. Replaceable displays 7 include capacitive touchscreens, but the TTL serial port touchscreen offers superior communication with the main control circuit 1 and ease of operation. Display screen 7 connects to the main control circuit 1, receives and displays data from it, and simultaneously feeds back user touch operation information to the main control circuit 1.
[0032] Specifically, the interface components include interfaces for different protocol outputs, such as RS232, RS485, USB, and TTL interfaces. These interfaces are communicatively connected to corresponding level output circuits to transmit level signals of different protocols to external devices. The interface components typically use standard industrial interfaces to ensure compatibility with external devices.
[0033] The implementation principle of this embodiment is as follows: This device integrates multiple level output circuits within the housing, enabling switching between multiple protocol keyboards under the control of the main control circuit 1. Users can easily customize key codes, layouts, and labels via a TTL serial port touchscreen. The battery and power management circuit 6 provides a stable power supply to the device, avoiding the cumbersome operation of an external power supply. This design greatly improves the flexibility and applicability of the device, making it suitable for rapid adjustment and testing during equipment development. It can also serve as an emergency tool when the device keyboard malfunctions or is missing. Compared to existing industrial keyboards, it has advantages such as switchable interfaces, customizable functions, and convenient power supply, representing a significant improvement and contribution to existing technology.
[0034] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A custom keyboard device integrating multiple interface protocols, characterized in that: It includes a main control circuit (1), an RS232 level output circuit (5), an RS485 level output circuit (2), a USB level output circuit (3), a TTL level output circuit (4), a battery, a power management circuit (6), a display screen (7), and interface components; The battery is electrically connected to the main control circuit (1) and the display screen (7) respectively through the power management circuit (6) to provide power; the interface component is communicatively connected to the RS232 level output circuit (5), RS485 level output circuit (2), USB level output circuit (3), and TTL level output circuit (4); The main control circuit (1) is connected to the RS232 level output circuit (5), RS485 level output circuit (2), USB level output circuit (3), TTL level output circuit (4), and display screen (7) respectively.
2. The custom keyboard device integrating multiple interface protocols according to claim 1, characterized in that: The main control circuit (1) includes a microcontroller module, and the RS232 level output circuit (5), RS485 level output circuit (2), USB level output circuit (3), and TTL level output circuit (4) are all connected to the microcontroller module for communication.
3. The custom keyboard device integrating multiple interface protocols according to claim 2, characterized in that: The main control circuit (1) also includes an STLink module, which is connected to the microcontroller module.
4. The custom keyboard device integrating multiple interface protocols according to claim 2, characterized in that: The main control circuit (1) also includes a Nor Flash storage module, which is connected to the microcontroller module.
5. The custom keyboard device integrating multiple interface protocols according to claim 2, characterized in that: The microcontroller module has a TTL signal output pin, and the TTL level output circuit (4) is communicatively connected to the TTL signal output pin to output a TTL signal.
6. The custom keyboard device integrating multiple interface protocols according to claim 5, characterized in that: The RS232 level output circuit (5) is connected to the TTL signal output pin via a jumper cap.
7. The custom keyboard device integrating multiple interface protocols according to claim 1, characterized in that: The display screen (7) is a TTL serial port touch screen.