Wireless transmission method and system based on FPGA

By adopting a wireless transmission method based on FPGA in computer equipment, the upgrade cost and adaptation test problems caused by the early boards and cards only retaining PS/2 interfaces were solved, and the wireless data transmission function was realized, reducing hardware cost and system complexity.

CN119718985APending Publication Date: 2025-03-28TIANJIN EMBEDTEC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411715502.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In some early computer devices, the board only retained the PS/2 interface, resulting in the need to redesign a new board when performing product upgrades, resulting in increased cost and adaptation testing.

Method used

Using a wireless transmission method based on FPGA, the power output of the board to be transmitted is received through the FPGA module for level conversion, to realize a handshake with the board to be transmitted, and to receive input data through the Bluetooth module, sort and forward to the board to be transmitted.

Benefits of technology

It realizes the wireless transceiver function of the old PS/2 interface, avoids board adaptation testing, saves costs and manpower, and improves the accuracy and stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718985A_ABST
    Figure CN119718985A_ABST
Patent Text Reader

Abstract

The invention relates to a wireless transmission method and system based on an FPGA, and the method comprises the steps: receiving the power output of a to-be-transmitted board card, and carrying out the level conversion, and obtaining the power input; carrying out handshake with the board card to be transmitted through the FPGA according to a preset handshake protocol; receiving input data; and classifying the input data, and forwarding the classified input data to the to-be-transmitted board card after handshake. According to the invention, the functions of PS / 2 protocol and wireless data transmission are realized, the convenience of data transmission is increased, and the efficiency and accuracy of data processing are improved at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer peripheral device adaptation, and in particular to a wireless transmission method and system based on FPGA. Background Art

[0002] In the design of embedded computer systems, keyboard and mouse are indispensable peripherals of computers. Currently, the commonly used keyboard and mouse interfaces are USB interfaces. When designing wireless keyboard and mouse transceiver devices, they are usually based on USB interfaces. In some special computer equipment, there are still early designed boards in large systems that only retain PS / 2 interfaces. Since the boards have been fully adapted to the system, during the product upgrade process, redesigning new boards will bring new comprehensive adaptation tests, which will bring greater costs in terms of cost and personnel workload. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the related art. To this end, the present invention provides a wireless transmission method and system based on FPGA.

[0004] A first aspect of the present invention provides a wireless transmission method based on FPGA, comprising:

[0005] S1: Receive the power output of the board to be transmitted, perform level conversion, and obtain power input;

[0006] S2: Handshake with the board to be transmitted through FPGA according to the preset handshake protocol;

[0007] S3: receiving input data;

[0008] S4: Classify the input data, and forward the classified input data to the board to be transmitted after the handshake.

[0009] According to the FPGA-based wireless transmission method provided by the present invention, the power output in step S1 is 5V, and the power input is 3.3V.

[0010] According to the FPGA-based wireless transmission method provided by the present invention, the handshake protocol preset in step S2 is the PS / 2 handshake protocol.

[0011] According to a wireless transmission method based on FPGA provided by the present invention, step S2 further comprises:

[0012] S21: receiving the handshake protocol sent by the board to be transmitted;

[0013] S22: parsing the handshake protocol through FPGA to obtain protocol data information;

[0014] S23: sending the protocol data information to a processing unit of an external device corresponding to the input data, and receiving a response frame message fed back by the processing unit;

[0015] S24: Packing the response frame message according to the communication timing corresponding to the handshake protocol, and feeding back to the board to be transmitted.

[0016] According to the FPGA-based wireless transmission method provided by the present invention, the input data in step S3 is received via Bluetooth.

[0017] According to a FPGA-based wireless transmission method provided by the present invention, the classified input data in step S4 includes mouse information and keyboard information.

[0018] The present invention also provides an FPGA-based wireless transmission system for executing any one of the above-mentioned FPGA-based wireless transmission methods, comprising:

[0019] Bluetooth module: used to receive input data from external devices;

[0020] FPGA module: used to perform handshake with the board to be transmitted according to a preset handshake protocol; and also used to classify the input data received by the Bluetooth module;

[0021] PS / 2 interface module: used to receive the power output of the board to be transmitted; also used to forward the input data classified by the FPGA module to the board to be transmitted;

[0022] Power module: used to convert the power output of the board to be transmitted received by the PS / 2 interface module, and use the converted level as power input to power the FPGA module and the Bluetooth module.

[0023] According to a wireless transmission system based on FPGA provided by the present invention, the FPGA module includes:

[0024] Bluetooth control unit: used for receiving input data received by the Bluetooth module;

[0025] A data conversion unit: used for classifying the input data received by the Bluetooth control unit;

[0026] Data processing unit: used for converting the data output by the data conversion unit to the PS / 2 conversion unit according to the classification;

[0027] PS / 2 conversion unit: used for receiving the data output by the data processing unit in a corresponding classification, and sending the data to the PS / 2 interface module after conversion according to the PS / 2 protocol.

[0028] According to an FPGA-based wireless transmission system provided by the present invention, the power module is an SGM2028 power chip.

[0029] According to an FPGA-based wireless transmission system provided by the present invention, the Bluetooth module is a BLE5.2 Bluetooth chip.

[0030] The present invention provides a wireless transmission method and system based on FPGA, which adopts FPGA as main control, realizes the wireless transceiver function of the old version of PS / 2 interface, can realize the wireless upgrade of board functions while keeping the old board unchanged, saves costs, avoids board adaptation testing, and saves manpower.

[0031] The present invention not only improves the flexibility of power use through level conversion, but also ensures that the FPGA can work in a safe and stable voltage environment, thereby extending the service life of the hardware; at the same time, the present invention realizes efficient and reliable communication establishment between the FPGA and the board to be transmitted, ensuring that the two parties have established a stable connection before data transmission, effectively avoiding packet loss and garbled code phenomena in data transmission, and improving the accuracy and stability of communication; the present invention realizes the function of wireless data transmission, increases the convenience and flexibility of data transmission, and at the same time, the refined data processing method is conducive to subsequent data processing and transmission, and improves the efficiency and accuracy of data processing; because the present invention is based on the FPGA platform, it meets the needs of different application scenarios and reduces costs. Compared with traditional wired transmission or high-end dedicated wireless transmission equipment, the present invention reduces hardware costs and system complexity while maintaining high performance, thereby improving the overall cost performance.

[0032] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 It is a flow chart of a wireless transmission method based on FPGA provided by an embodiment of the present invention;

[0035] Figure 2 It is a schematic diagram of the structure of a wireless transmission system based on FPGA provided by an embodiment of the present invention;

[0036] Figure 3It is a structural schematic diagram of an FPGA module in an FPGA-based wireless transmission system provided by an embodiment of the present invention.

[0037] Reference numerals:

[0038] 100, Bluetooth module; 200, FPGA module; 300, PS / 2 interface module; 400, power module;

[0039] 210, Bluetooth control unit; 220, data conversion unit; 230, data processing unit; 240, PS / 2 conversion unit. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. The following embodiments are used to illustrate the present invention, but cannot be used to limit the scope of the present invention.

[0041] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0042] Combine the following Figures 1 to 3 Embodiments of the present invention are described.

[0043] like Figure 1 As shown, the first aspect of the present invention provides a wireless transmission method based on FPGA, comprising:

[0044] S1: Receive the power output of the board to be transmitted, perform level conversion, and obtain power input.

[0045] Wherein, the power output in step S1 is 5V, and the power input is 3.3V.

[0046] In step S1, the system receives the power output from the board to be transmitted and performs level conversion to obtain a power input suitable for subsequent circuits or components. The above-mentioned power output refers to the power voltage provided by the board to be transmitted, and the power input refers to the power voltage supplied to other circuits or components after conversion. The level conversion ensures that circuits or components with different voltage requirements can work normally, while avoiding circuit damage or performance degradation caused by voltage mismatch.

[0047] S2: Handshake with the board to be transmitted through FPGA according to the preset handshake protocol.

[0048] Wherein, step S2 further comprises:

[0049] S21: Receive the handshake protocol sent by the board to be transmitted.

[0050] The handshake protocol preset in step S2 is the PS / 2 handshake protocol.

[0051] The PS / 2 handshake protocol is a synchronous protocol that relies on a clock signal to synchronize data transmission between the host and the input device. The PS / 2 interface supports two-way communication, that is, the host can send data to the input device, and the input device can also send data to the host.

[0052] S22: parsing the handshake protocol through FPGA to obtain protocol data information.

[0053] S23: Send the protocol data information to a processing unit of an external device corresponding to the input data, and receive a response frame message fed back by the processing unit.

[0054] In step S23, the FPGA forwards the data information (device type, function support, etc.) received in the handshake protocol. After receiving this information, it will perform processing including verifying the device identity, configuring communication parameters, etc., and generate a response frame message to prepare for the next step of communication.

[0055] S24: Packing the response frame message according to the communication timing corresponding to the handshake protocol, and feeding back to the board to be transmitted.

[0056] Furthermore, in step S24, the FPGA will package the received response frame message into one or more data packets according to the communication timing and format defined in the handshake protocol. The data packets will follow the data transmission specifications of the PS / 2 interface, including the timing of the clock signal and the data signal. Then, the FPGA will send these data packets back to the board to be transmitted to complete the last stage of the handshake protocol. This feedback process is crucial to confirm that both parties have successfully established a communication connection, which ensures that subsequent data transmission can proceed smoothly.

[0057] S3: Receive input data.

[0058] Wherein, the input data in step S3 is received via Bluetooth.

[0059] S4: Classify the input data, and forward the classified input data to the board to be transmitted after the handshake.

[0060] The input data classified in step S4 includes mouse information and keyboard information.

[0061] like Figure 2 As shown, the present invention also provides a wireless transmission system based on FPGA, comprising:

[0062] Bluetooth module 100: used to receive input data from an external device.

[0063] Wherein, the Bluetooth module 100 is a BLE5.2 Bluetooth chip.

[0064] FPGA module 200: used to perform handshake with the board to be transmitted according to a preset handshake protocol; and also used to classify the input data received by the Bluetooth module 100.

[0065] like Figure 3 As shown, the FPGA module 200 includes:

[0066] The Bluetooth control unit 210 is used to receive input data received by the Bluetooth module 100 .

[0067] The data conversion unit 220 is used to classify the input data received by the Bluetooth control unit 210 .

[0068] The data processing unit 230 is used to convert the data output by the data conversion unit 220 to the PS / 2 conversion unit according to the classification.

[0069] The PS / 2 conversion unit 240 is used to receive the data output by the data processing unit 230 according to the corresponding classification, and send the data to the PS / 2 interface module 300 after conversion according to the PS / 2 protocol.

[0070] PS / 2 interface module 240: used to receive the power output of the board to be transmitted; also used to forward the input data classified by the FPGA module 200 to the board to be transmitted.

[0071] The power module 400 is used to convert the power output of the board to be transmitted received by the PS / 2 interface module 240, and use the converted power level as the power input to power the FPGA module 200 and the Bluetooth module 100.

[0072] Wherein, the power module 400 is a SGM2028 power chip.

[0073] The FPGA-based wireless transmission method provided by the present invention is described below in conjunction with the above-mentioned FPGA-based wireless transmission system.

[0074] First, the host is powered on, and the 5V power supply of the PS / 2 interface of the old board is input to the power module through the PS / 2 interface module. The power module completes the level conversion from 5V to 3.3V, and outputs the 3.3V power supply to the FPGA module, and outputs the 5V power supply and the 3.3V power supply to the Bluetooth module, so that the FPGA-based wireless transmission system of the present invention starts to work.

[0075] The mainboard to be transmitted sends a PS / 2 handshake protocol and sends it to the FPGA module through the PS / 2 interface module. The PS / 2 conversion unit in the FPGA module parses the signal according to the PS / 2 communication protocol and forwards the parsed data information to the keyboard unit and mouse unit in the data processing unit respectively. The keyboard unit and the mouse unit send response frame information respectively according to the PS / 2 handshake protocol. The PS / 2 conversion unit packages the response frame information and sends it according to the PS / 2 communication timing. The response packet is returned to the old mainboard through the PS / 2 interface module to realize the power-on handshake detection of the PS / 2 device.

[0076] The Bluetooth module receives input information from the mouse and keyboard, and sends the information to the FPGA module via the serial port protocol. The Bluetooth control unit in the FPGA module receives Bluetooth data according to the serial port protocol, and forwards the Bluetooth data to the data conversion unit. The data control unit determines whether the current information room is mouse information or keyboard information. If it is keyboard information, the data is sent to the keyboard unit and forwarded to the PS / 2 interface module through the PS / 2 conversion unit. The PS / 2 interface module forwards the data to the host. If it is mouse information, the data is sent to the mouse unit and forwarded to the PS / 2 interface module through the PS / 2 conversion unit. The PS / 2 interface module forwards the data to the host, thereby realizing the wireless transmission and reception function between the keyboard, mouse and the host.

[0077] The present invention provides an FPGA-based wireless transmission method and system, aiming to solve the problem that the PS / 2 interface is widely used in early computer systems but cannot be adapted. Therefore, the system of the present invention has wide applicability and can meet the needs of different users. The present invention utilizes an FPGA module to efficiently parse, process and convert data from a keyboard and a mouse, thereby ensuring the accuracy and real-time nature of the data, thereby improving the user experience. The present invention can establish a stable communication connection through the cooperation of a PS / 2 handshake protocol and a Bluetooth module. The PS / 2 handshake protocol ensures the correct identification and configuration between devices, while the Bluetooth module provides a reliable wireless data transmission channel. The stable communication connection ensures the continuity and integrity of the data, thereby avoiding interruption or loss during the data transmission process.

[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A wireless transmission method based on FPGA, characterized in that: include: S1: Receive the power output of the board to be transmitted, perform level conversion, and obtain power input; S2: Handshake with the board to be transmitted through FPGA according to the preset handshake protocol; S3: receiving input data; S4: Classify the input data, and forward the classified input data to the board to be transmitted after the handshake.

2. The FPGA-based wireless transmission method according to claim 1, characterized in that: The power output in step S1 is 5V, and the power input is 3.3V.

3. The FPGA-based wireless transmission method according to claim 1, characterized in that: The handshake protocol preset in step S2 is the PS / 2 handshake protocol.

4. The FPGA-based wireless transmission method according to claim 3, characterized in that: Step S2 further comprises: S21: receiving the handshake protocol sent by the board to be transmitted; S22: parsing the handshake protocol through FPGA to obtain protocol data information; S23: sending the protocol data information to a processing unit of an external device corresponding to the input data, and receiving a response frame message fed back by the processing unit; S24: Packing the response frame message according to the communication timing corresponding to the handshake protocol, and feeding back to the board to be transmitted.

5. The FPGA-based wireless transmission method according to claim 1, characterized in that: The input data in step S3 is received via Bluetooth.

6. The FPGA-based wireless transmission method according to claim 1, characterized in that: The input data classified in step S4 includes mouse information and keyboard information.

7. A wireless transmission system based on FPGA, used to execute the wireless transmission method based on FPGA as claimed in any one of claims 1 to 6, characterized in that: include: Bluetooth module: used to receive input data from external devices; FPGA module: used to handshake with the board to be transmitted according to the preset handshake protocol; Also used for classifying input data received by the Bluetooth module; PS / 2 interface module: used to receive the power output of the board to be transmitted; also used to forward the input data classified by the FPGA module to the board to be transmitted; Power module: used to convert the power output of the board to be transmitted received by the PS / 2 interface module, and use the converted level as power input to power the FPGA module and the Bluetooth module.

8. The FPGA-based wireless transmission system according to claim 7, characterized in that: The FPGA module includes: Bluetooth control unit: used for receiving input data received by the Bluetooth module; A data conversion unit: used for classifying the input data received by the Bluetooth control unit; Data processing unit: used for converting the data output by the data conversion unit to the PS / 2 conversion unit according to the classification; PS / 2 conversion unit: used for receiving the data output by the data processing unit in a corresponding classification, and sending the data to the PS / 2 interface module after conversion according to the PS / 2 protocol.

9. The FPGA-based wireless transmission system according to claim 7, characterized in that: The power module is a SGM2028 power chip.

10. The FPGA-based wireless transmission system according to claim 7, characterized in that: The Bluetooth module is a BLE5.2 Bluetooth chip.