MTK platform integrated with serial port interface keyboard function
By integrating a level adapter module into the MTK platform, the voltage mismatch between the MTK platform and the serial keyboard was resolved, achieving compatibility and data transmission accuracy between the MTK platform and the serial keyboard, and improving user experience and product design flexibility.
Patent Information
- Application Number
- CN202423167923.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2034-12-19
AI Technical Summary
The existing MTK platform cannot communicate directly with serial keyboards, mainly due to the voltage mismatch of the GPIO ports. The 1.8V level of the MTK platform cannot match the 3.3V serial keyboards commonly found on the market.
By integrating a level adapter module, including a power module and a level conversion IC (such as SGM4553), into the MTK platform, the 1.8V level of the MTK platform is increased to 3.3V to meet the voltage requirements of the serial keyboard, and the 3.3V level of the serial keyboard is decreased to 1.8V, thus achieving level conversion.
It achieves compatibility between the MTK platform and serial keyboards, solves the voltage mismatch problem, improves the accuracy and efficiency of data transmission, expands the functionality of the MTK platform, supports more input devices, and enhances user experience and product design flexibility.
Smart Images

Figure CN223598206U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to MTK platform technical field, concretely relates to a kind of MTK platform integrated serial interface keyboard function. BACKGROUND
[0002] With the rapid development of consumer electronics market, the demand of users for product function personalization and differentiation is increasing. This demand promotes the continuous innovation of electronic products in design and function. Among them, as a traditional input device, serial keyboard is widely used in various electronic products due to its stability and reliability. However, the development speed of the integration of existing platform chips has not fully kept up with the rapid changes in the market, especially in the support of some specific functions. For example, the MTK (MediaTek) platform, the chip of which is not designed to support the keyboard function of serial interface, which limits the diversity of product form and the expandability of function.
[0003] Specifically, the MTK platform commonly seen on the market cannot directly communicate with the serial keyboard, which further limits the application of the product on the keyboard input device. In addition, due to the lack of support for serial keyboard, the MTK platform also has technical obstacles in processing keyboard event data and presenting to the user interface (UI).
[0004] Therefore, the present application is proposed. UTILITY MODEL CONTENT
[0005] The inventor found that the reason why the MTK platform commonly seen on the market cannot directly communicate with the serial keyboard is that there is a voltage mismatch between the MTK platform and the serial keyboard. Specifically, the GPIO (General Purpose Input Output) port of the MTK platform usually only provides 1.8V level, while the serial keyboard commonly seen on the market needs 3.3V level to work normally. Therefore, there is a voltage mismatch between the MTK platform and the serial keyboard. This voltage mismatch problem leads to the MTK platform being unable to directly communicate with the serial keyboard.
[0006] Therefore, the purpose of the utility model is to provide an MTK platform integrated with serial interface keyboard function, which can effectively solve the problem that the existing MTK platform cannot directly communicate with the serial keyboard.
[0007] The utility model discloses an MTK platform integrated with serial interface keyboard function, which comprises a platform body, a power module arranged on the platform body, and a level adaptation module. The output end of the power module is electrically connected to the power end of the level adaptation module. The serial port of the platform body is electrically connected to the data end of the level adaptation module. The data end of the level adaptation module is used to be electrically connected to the data end of an external serial keyboard.
[0008] The level adaptation module is configured to pull up the level output by the platform body to a level size adapted to the serial keyboard and to lower the level output by the serial keyboard to a level size adapted to the platform body.
[0009] Preferably, the power supply module is configured to provide a 3.3V power supply to the level adaptation module to enable the level adaptation module to work normally.
[0010] Preferably, the level adaptation module comprises a level conversion IC and a peripheral auxiliary circuit, the level conversion IC is electrically connected with the peripheral auxiliary circuit, a power supply end of the level conversion IC is electrically connected with an output end of the power supply module, a data end of the level conversion IC is electrically connected with a serial port end of the platform body, and the data end of the level conversion IC is used to be electrically connected with a data end of an external serial keyboard.
[0011] Preferably, the level conversion IC is configured to pull up the 1.8V level output by the platform body to a 3.3V level adapted to the serial keyboard and to lower the 3.3V level output by the serial keyboard to a 1.8V level adapted to the platform body.
[0012] Preferably, the level conversion IC is of the model SGM4553.
[0013] Preferably, the platform body further comprises an indicator light module, wherein an output end of the platform body is electrically connected with an input end of the indicator light module.
[0014] Preferably, the platform body further comprises a sound warning module, wherein an output end of the platform body is electrically connected with an input end of the sound warning module.
[0015] In summary, the MTK platform integrated with the serial interface keyboard function raises the 1.8V level of the MTK platform GPIO to 3.3V through level conversion technology to adapt to the voltage requirements of common serial keyboards on the market, thereby realizing the reception and processing of serial keyboard data. Through the MTK platform integrated with the serial interface keyboard function, key or mouse event data can be transmitted to the MTK platform through the UART interface and presented on the user interface (UI) after event processing, thereby realizing the visualization of keyboard operation.
[0016] In short, the MTK platform integrated with the serial interface keyboard function realizes the compatibility of the MTK platform with serial keyboards, not only solving the technical problem of voltage mismatch, but also expanding the functions of the MTK platform to enable it to support more input devices. This improvement not only enhances the user experience, but also provides more flexibility and possibilities for the design and development of consumer electronics products. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 is a circuit schematic diagram of the MTK platform integrated with the serial port interface keyboard function provided in the embodiments of the present application;
[0018] Figure 2 is a connection pin circuit schematic diagram of the MTK platform integrated with the serial port interface keyboard function and the serial port keyboard provided in the embodiments of the present application;
[0019] Figure 3 is a schematic diagram of the serial port keyboard provided in the embodiments of the present application. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only to represent selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0021] The specific embodiments of the present application will be described in detail below in conjunction with the drawings.
[0022] Please refer to Figure 1 、 Figure 2 The present application discloses an MTK platform integrated with a serial port interface keyboard function, which comprises a platform body, a power module arranged on the platform body, and a level adaptation module, an output end of the power module is electrically connected with a power end of the level adaptation module, a serial port end of the platform body is electrically connected with a data end of the level adaptation module, and the data end of the level adaptation module is used for being electrically connected with a data end of an external serial port keyboard.
[0023] Among them, the level adaptation module is configured to pull up the level output by the platform body to a level size adapted to the serial port keyboard, and to lower the level output by the serial port keyboard to a level size adapted to the platform body.
[0024] Specifically, in the present embodiment, the MTK platform integrating the serial port interface keyboard function aims to realize communication with an external serial port keyboard; the platform comprises three main parts: a platform body, a power module and a level adaptation module. The power module is responsible for providing stable power supply for the entire platform, while the level adaptation module is a key component for realizing communication with the serial port keyboard. Among them, the output end of the power module is electrically connected with the power end of the level adaptation module, to ensure that the level adaptation module can work normally; the serial port end of the platform body is electrically connected with the data end of the level adaptation module, so that the platform body can exchange data with the external serial port keyboard through the level adaptation module.
[0025] The core function of the level adaptation module is level conversion, which is configured to pull up the level output by the platform body to the level size adapted to the serial port keyboard, and at the same time, to lower the level output by the serial port keyboard to the level size adapted to the platform body. This process ensures that data can be smoothly transmitted between two devices with different level requirements, solving the problem of mismatch between the MTK platform GPIO level and the serial port keyboard level. Specifically, in actual application, when the user operates the serial port keyboard, the keyboard will output a 3.3V level signal, which is first passed through the level adaptation module, and the module will lower these 3.3V signals to 1.8V to adapt to the requirements of the MTK platform. Similarly, when the MTK platform needs to send data to the serial port keyboard, the 1.8V signal output by the platform body will be pulled up to 3.3V through the level adaptation module to ensure that the keyboard can correctly receive and process these signals. This level adaptation design not only improves the compatibility of the MTK platform, but also enhances the stability and reliability of the MTK platform.
[0026] In short, the MTK platform integrating the serial port interface keyboard function improves the accuracy and efficiency of data transmission by eliminating the problem of level mismatch, reducing errors and interference that may occur in the signal transmission process.
[0027] In addition, in the present embodiment, the MTK platform integrating the serial port interface keyboard function also involves some specially written platform codes to realize the reception and processing of serial port keyboard data. These codes enable the MTK platform to recognize and parse data from the serial port keyboard, and convert these data into visual operations on the user interface (UI) end, further improving the user experience. The main codes are as follows:
[0028] 1. dts configuration
[0029] mid_docking: mid_docking{
[0030] interrupt-parent = <&pio>;
[0031] interrupts=<10 IRQ_TYPE_LEVEL_HIGH>;
[0032] dock_bus-gpios=<&pio380x0>;
[0033] dock_in-gpios=<&pio100x0>;
[0034] status="okay";
[0035] };
[0036] 2. Compile the driver
[0037] kernel-5.10 / arch / arm64 / configs / mgk_64_k510_defconfig
[0038] CONFIG_MID_UART_KEYBOARD=y
[0039] The driver code is in kernel-5.10 / drivers / input / keyboard /
[0040] 3. Confirm that the driver configuration is successful
[0041] Compile boot and burn boot.img to the device
[0042] adb shell to check if there is a serial port device, and set selinux to 0. If the loading is successful, the following will appear
[0043] mid_mouse / mid_input two inputevent devices, and then plug in the serial keyboard as follows:
[0044] add device 3: / dev / input / event3 ==> keyboard key event device name: "mid_input"
[0045] add device 4: / dev / input / event4 ==> mouse sliding event device name: "mid_mouse"
[0046] Examples of simple letter key event reporting:
[0047]
[0048] Examples of mouse sliding event reporting:
[0049]
[0050] With the above event reporting, it is proved that the serial keyboard function has been completed.
[0051] It should be noted that the MTK platform integrating the serial interface keyboard function adopts a linux kernel (kernel-5.10), and as long as the configuration is successful and the driver is loaded, it can work normally.
[0052] Preferably, the power module is configured to provide 3.3V power supply to the level adaptation module to make the level adaptation module work normally.
[0053] In this embodiment, the power module is a key component of the platform, which is configured to provide 3.3V power supply to the level adaptation module. This specific voltage selection is crucial for the stable operation of the entire platform. The 3.3V power supply not only meets the normal operation of the MTK platform, but also guarantees the working requirements of the level adaptation module.
[0054] Preferably, the level adaptation module includes a level conversion IC and a peripheral auxiliary circuit, the level conversion IC is electrically connected with the peripheral auxiliary circuit, the power supply end of the level conversion IC is electrically connected with the output end of the power module, the data end of the level conversion IC is electrically connected with the serial port end of the platform body, and the data end of the level conversion IC is used for electrically connecting with the data end of the external serial keyboard.
[0055] Preferably, the level conversion IC is configured to pull up the 1.8V level output by the platform body to the 3.3V level adapted to the serial keyboard, and reduce the 3.3V level output by the serial keyboard to the 1.8V level adapted to the platform body.
[0056] Preferably, the model of the level conversion IC is SGM4553.
[0057] Specifically, in this embodiment, the level adaptation module is a key technical component for integrating the serial keyboard function on the MTK platform. Its core is the level conversion IC, and the model of the level conversion IC is SGM4553, which is an integrated circuit specially designed for level conversion, and can efficiently convert signals between different voltage levels. In addition, the SGM4553 level conversion IC is electrically connected with the peripheral auxiliary circuit, which ensures the stable operation of the entire module and the accurate conversion of signals. The peripheral auxiliary circuit may include decoupling capacitors, filters, drivers, etc., which work together to optimize the level conversion process, reduce noise interference, and improve the integrity of signals.
[0058] The power supply end of the level conversion IC is electrically connected with the output end of the power supply module, and receives the stable 3.3V power supply provided by the power supply module. This power supply configuration ensures that the level conversion IC can work in the best state and provide reliable level conversion function. Moreover, the data end of the level conversion IC is electrically connected with the serial port end of the platform body, and is also used for being electrically connected with the data end of the external serial port keyboard, so as to realize the communication bridge between the MTK platform and the serial port keyboard.
[0059] Specifically, the level conversion IC can pull up the 1.8V level output by the platform body to the 3.3V level adapted to the serial port keyboard, and reduce the 3.3V level output by the serial port keyboard to the 1.8V level adapted to the platform body. This bidirectional level conversion capability is the key to realize the communication between the MTK platform and the serial port keyboard. Through the SGM4553 level conversion IC, it can ensure that the signal is seamlessly transmitted between two devices with different voltage levels without additional power management or complex circuit design. Further, it reduces the errors and interference that may occur in the signal transmission process, thereby improving the accuracy and efficiency of data transmission. In addition, the design of the level adaptation module helps to reduce power consumption, prolong the service life of the device, and reduce maintenance costs.
[0060] Preferably, it further comprises an indicator light module, wherein the output end of the platform body is electrically connected with the input end of the indicator light module.
[0061] Specifically, in the embodiment, the indicator light module can be an LED indicator light connected with the output end of the platform body through electrical connection. The platform body is allowed to control the LED indicator light to produce corresponding light prompts when detecting specific conditions or errors, such as MTK platform failure or level adaptation module problem, etc. For example: fast flashing may indicate that the platform is initializing, and slow flashing may indicate that the platform has encountered an error. This visual prompt provides an intuitive way for users to identify and respond to system status, enhancing user experience.
[0062] In addition, the LED indicator light is an ideal choice with its advantages of low power consumption, fast response and long service life. In the embodiment, the LED indicator light is not only used for indicating the system status, but also for warning users of possible abnormal conditions, such as data transmission error, system overload or hardware failure.
[0063] It should be noted that in other embodiments, other types of indicator light modules can also be used, which are not limited here, but these schemes are within the protection scope of the utility model.
[0064] Preferably, it further comprises a sound warning module, wherein the output end of the platform body is electrically connected with the input end of the sound warning module.
[0065] Specifically, in this embodiment, the sound warning module can be a buzzer, electrically connected to the output terminal of the platform body. When the platform body detects specific conditions or errors, such as a malfunction in the MTK platform or a problem with the level adapter module, it controls the buzzer to produce a corresponding sound prompt. Buzzers, with their simplicity, low cost, and ease of integration, are an ideal choice. In this embodiment, the buzzer is used not only to indicate the system status but also to warn the user of possible abnormalities, such as data transmission errors, system overload, or hardware failure.
[0066] It should be noted that in other embodiments, other types of sound warning modules may also be used, which are not specifically limited here, but these solutions are all within the protection scope of this utility model.
[0067] In summary, most common serial keyboards on the market typically have 5 pins: GND, ID (INT), RX, TX, and VCC (3.3V). Figure 3 As shown. Traditional MTK platform serial ports typically use GPIO multiplexing for serial port functionality. Specifically, traditional MTK GPIOs generally only have a 1.8V level, which cannot meet the 3.3V requirement of a serial keyboard. Therefore, additional circuitry is needed to boost the 1.8V level to 3.3V. Thus, the MTK platform integrating serial interface keyboard functionality adds a boost circuit, namely the level adapter module, to the traditional MTK platform. Subsequently, communication occurs between the MTK CPU's serial port and the keyboard's serial port. The serial keyboard transmits key presses or mouse events to the MTK platform via the UART interface. After MTK event processing, the data is displayed on the UI, enabling visual operation.
[0068] The above are merely preferred embodiments of this utility model. The protection scope of this utility model is not limited to the above embodiments. All technical solutions that fall within the scope of this utility model's concept are protected by this utility model.
Claims
1. An MTK platform integrated with a serial interface keyboard function, characterized in that, include: The platform body, the power module configured on the platform body, and the level adapter module are included. The output terminal of the power module is electrically connected to the power terminal of the level adapter module. The serial port terminal of the platform body is electrically connected to the data terminal of the level adapter module. The data terminal of the level adapter module is used to electrically connect to the data terminal of an external serial keyboard. The level adaptation module is configured to raise the level output by the platform body to a level adapted to the serial keyboard, and lower the level output by the serial keyboard to a level adapted to the platform body.
2. The MTK platform integrating the serial port interface keyboard function according to claim 1, characterized in that, The power module is configured to provide 3.3V power to the level adapter module so that the level adapter module can operate normally.
3. The MTK platform integrated with a serial port interface keyboard function according to claim 1, characterized in that, The level adaptation module includes a level conversion IC and peripheral auxiliary circuits. The level conversion IC is electrically connected to the peripheral auxiliary circuits. The power supply terminal of the level conversion IC is electrically connected to the output terminal of the power module. The data terminal of the level conversion IC is electrically connected to the serial port terminal of the platform body. The data terminal of the level conversion IC is used to electrically connect to the data terminal of an external serial keyboard.
4. The MTK platform with integrated serial port interface and keyboard function according to claim 3, characterized in that, The level conversion IC is configured to pull the 1.8V level output by the platform body high to the 3.3V level adapted to the serial keyboard, and to reduce the 3.3V level output by the serial keyboard to the 1.8V level adapted to the platform body.
5. The MTK platform with integrated serial port interface and keyboard function according to claim 3, characterized in that, The level conversion IC is model SGM4553.
6. The MTK platform with integrated serial port interface and keyboard function according to claim 1, characterized in that, It also includes an indicator light module, wherein the output terminal of the platform body is electrically connected to the input terminal of the indicator light module.
7. The MTK platform with integrated serial port interface and keyboard function according to claim 1, characterized in that, It also includes a sound warning module, wherein the output end of the platform body is electrically connected to the input end of the sound warning module.