Wireless communication device and data communication method

By installing a wireless communication device on the optical module interface of the switch, wireless data transmission is realized, solving the problem that traditional switches cannot adapt to wireless communication, providing plug-and-play functionality and high compatibility, and meeting the needs of modern users.

CN121728049APending Publication Date: 2026-03-24SHANGHAI LIANHONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-31
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Traditional switches cannot meet the needs of wireless communication, and adding wireless modules affects radiation performance and cost. They also cannot be used for device management and status monitoring wirelessly.

Method used

A wireless communication device is provided, including an interface module, a control module, a conversion module, a wireless module, and an antenna module. It can be plugged and played into the optical module interface of a switch, transmits data wirelessly, and supports multiple wireless communication protocols.

Benefits of technology

It achieves plug-and-play wireless communication functionality, avoiding hardware modifications to the switch, improving flexibility and compatibility, meeting the needs of diverse application scenarios, and without affecting radiation performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121728049A_ABST
    Figure CN121728049A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless communication device and a data communication method, and the device comprises an interface module which is connected with a switch optical module interface, and is used for the access of a power supply and the data transmission; the control module is connected with the interface module, is used for communicating with a switch through the interface module and is used for outputting a control signal to the conversion module according to the data transceiving rate; the conversion module is connected with the control module and the interface module, communicates with a serializer / deserializer SerDes interface of the switch through the interface module, and is used for performing interface rate matching according to the control signal, completing communication protocol conversion and generating conversion data; the wireless module is connected with the conversion module and is used for packaging the conversion data into a first wireless communication protocol message, outputting the first wireless communication protocol message to the antenna module and returning a second wireless communication protocol message received from the antenna module to the conversion module; and the antenna module is connected with the wireless module and is used for transmitting and receiving wireless communication protocol messages and realizing wireless transmission of the switch.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of switch control technology, specifically to a wireless communication device and a data communication method. Background Technology

[0002] Switches are traditional wired communication devices designed to meet the demands of high reliability and large data volumes. Traditionally, their status monitoring, management, and configuration interfaces also rely on wired transmission, requiring a personal computer for management. However, with the widespread adoption of wireless communication and smart devices like smartphones, managing switches solely through a personal computer is no longer sufficient to meet evolving user needs. For rack-mounted switches, the fixed size and large aggregation layer switching capacity, coupled with numerous Small Form-factor Pluggable (SFP) ports, often leave insufficient space on the front panel for additional management interfaces. Furthermore, adding wireless modules like WiFi and Bluetooth to traditional switches compromises the robust steel casing shielding design, impacting radiated emission performance and increasing overall cost.

[0003] Therefore, there is an urgent need for a wireless communication device that can enable wireless transmission of a switch without changing the switch hardware. Summary of the Invention

[0004] This application provides a wireless communication device and a data communication method. The wireless communication device can be plugged and played into the optical module interface of a switch without requiring large-scale modifications to the switch, thus enabling the high-speed data of the switch to be transmitted wirelessly.

[0005] On one hand, embodiments of this application provide a wireless communication device for pluggable installation on an optical module interface of a switch, characterized in that the wireless communication device includes: The interface module connects to the optical module interface of the switch and is used for power supply and data transmission. A control module, connected to the interface module, is used to communicate with the switch through the interface module and to output control signals to the conversion module according to the data transmission and reception rate. The conversion module is connected to the control module and the interface module. It communicates with the serializer / deserializer SerDes interface of the switch through the interface module. It is used to perform interface rate matching according to the control signal, complete the communication protocol conversion and generate conversion data. The wireless module is connected to the conversion module and is used to encapsulate the converted data into a first wireless communication protocol message and output it to the antenna module, and to parse the second wireless communication protocol message received from the antenna module, convert it into a baseband signal, and then send it back to the conversion module. The antenna module is connected to the wireless module and is used to send the first wireless communication protocol message to the terminal device and receive the second wireless communication protocol message from the terminal device.

[0006] On the other hand, embodiments of this application provide a data communication method applied to the wireless communication device described in any of the preceding embodiments, the method comprising: The interface module establishes a connection with the optical module interface of the switch and supplies power to the wireless communication device. The control module communicates with the switch through the interface module, sends the basic device information and status information of the wireless communication device to the switch, and outputs control signals to the conversion module according to the data transmission and reception rate; The conversion module communicates with the SerDes interface of the switch through the interface module, and performs interface rate matching according to the control signal to complete the communication protocol conversion and generate conversion data. The wireless module encapsulates the converted data into a first wireless communication protocol message and sends it to the terminal device through the antenna module; The wireless module parses the second wireless communication protocol message received from the antenna module, converts it into a baseband signal, and then sends it back to the conversion module. The conversion module transmits the parsed data to the switch through the SerDes interface.

[0007] This application provides a wireless communication device suitable for pluggable installation on the optical module interface of a switch. The wireless communication device includes an interface module, a control module, a conversion module, a wireless module, and an antenna module. The interface module is connected to the optical module interface of the switch and is used for power supply and data transmission. The control module is connected to the interface module and is used for communication with the switch through the interface module, and for outputting control signals to the conversion module according to the data transmission and reception rate. The conversion module is connected to the control module and the interface module, and communicates with the serializer / deserializer (SerDes) interface of the switch through the interface module. It is used for interface rate matching according to the control signals, completing communication protocol conversion, and generating converted data. The wireless module is connected to the conversion module and is used for encapsulating the converted data into a first wireless communication protocol message and outputting it to the antenna module, and for parsing and converting a second wireless communication protocol message received from the antenna module into a baseband signal and transmitting it back to the conversion module. The antenna module is connected to the wireless module and is used for sending the first wireless communication protocol message to a terminal device and receiving the second wireless communication protocol message from the terminal device. This application implements the function of transmitting high-speed data from a switch via wireless communication. This wireless communication device can be plugged and played into the optical module interface of a switch without requiring extensive modifications to the switch, offering exceptional flexibility and compatibility. Simultaneously, it effectively overcomes the limitations of traditional wired communication, enabling the switch to wirelessly interact with terminal devices, thus meeting the diverse needs of various application scenarios. Attached Figure Description

[0008] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0009] Figure 1 This is a schematic diagram of the structure of a wireless communication device provided in an embodiment of this application.

[0010] Figure 2 This is a flowchart illustrating the data communication method provided in an embodiment of this application. Detailed Implementation

[0011] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0012] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication between them; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0013] In this application, unless otherwise expressly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" of the second feature includes the first feature being directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature being directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.

[0014] The following disclosure provides many different embodiments or examples for implementing different structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. In addition, various specific examples of processes and materials are provided in this application, but those skilled in the art will recognize the application of other processes and / or the use of other materials.

[0015] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.

[0016] Please see Figure 1 This application provides a wireless communication device 100 for pluggable installation on the optical module interface of a switch. The wireless communication device 100 includes an interface module 10, a control module 20, a conversion module 30, a wireless module 40, and an antenna module 50.

[0017] Interface module 10 connects to the optical module interface of the switch and is used for power supply and data transmission. Interface module 10 includes power pins and data pins, the order of which is consistent with the pin order of standard pluggable optical modules SFP / SFP+, thus achieving compatibility with the switch's optical module interface socket. The control module 20 is connected to the interface module 10 and is used to communicate with the switch through the interface module 10, and to output control signals to the conversion module 30 according to the data transmission and reception rate.

[0018] The conversion module 30, connected to the control module 20 and the interface module 10, is used to perform interface rate matching according to control signals, complete communication protocol conversion, and generate converted data. For example, the conversion module 30 communicates with the serializer / deserializer SerDes interface of the switch through the interface module 10. According to the control signals, the conversion module 30 and the SerDes interface are rate matched and connected. The conversion module completes the message conversion between different interfaces and communication protocols, generates adapted converted data, and realizes rate matching between the high-speed data of the SerDes interface and the low-speed data of the wireless module 40.

[0019] And data transmission between different interfaces and media. SerDes is a high-speed serial communication technology. SerDes is short for Serializer / Deserializer.

[0020] The wireless module 40, connected to the conversion module 30, is used to encapsulate the converted data into a first wireless communication protocol message and output it to the antenna module 50, and to parse the second wireless communication protocol message received from the antenna module 50, convert it into a baseband signal, and then transmit it back to the conversion module 30. For example, the wireless module 40 parses the second wireless communication protocol message received from the antenna module 50, converts it into a baseband signal, and then transmits it back to the conversion module 30.

[0021] The antenna module 50 is connected to the wireless module 40 and is used to send a first wireless communication protocol message to the terminal device and receive a second wireless communication protocol message from the terminal device.

[0022] The wireless communication device 100 consists of an interface module 10, a control module 20, a conversion module 30, a wireless module 40, and an antenna module 50. The comprehensive modular design makes the division of labor among the modules clear and allows them to work together.

[0023] For example, interface module 10, made of conductive material (such as copper or gold-plated copper contacts), consists of a set of metal pins, including power pins, data pins, etc., with the specific number of pins consistent with the SFP / SFP+ module standard to ensure full compatibility. A standard SFP module has 20 pins, supporting various speeds and functions. An SFP+ module, an enhanced version of SFP, also has 20 pins but supports higher data transmission rates, up to 16Gbps. Interface module 10 is directly connected to the switch's SFP / SFP+ interface socket (the interface socket connects to the switch's SerDes interface via internal circuitry for high-speed data transmission). It connects to the switch's optical module interface, providing power from the switch to the internal circuitry of the wireless communication device 100 and providing a data transmission path for the control module 20 and conversion module 30. Interface module 10 is the main channel for high-speed data communication between the switch's SerDes interface and the conversion module 30, and also serves as the interface for low-speed control and status information exchange with the control module 20 via the Inter-Integrated Circuit (I2C) bus.

[0024] For example, the control module 20, typically a single integrated circuit (IC) made of semiconductor material, is responsible for the intelligent and management functions of the wireless communication device 100. The control module 20 connects to the interface module 10 via I2C to interact with the switch. This information includes basic device information such as the model, version, manufacturer, and serial number of the wireless communication device 100, as well as status information such as voltage, current, temperature, and communication rate. I2C is a low-speed serial bus commonly used in SFP modules for data management, such as Digital Diagnostic Monitoring (DDM). The control module 20 transmits identity and status information via I2C, allowing the switch to identify this specific SFP module as a Bluetooth module requiring wireless communication. Simultaneously, the control module 20 outputs control signals to the conversion module 30, such as initiating rate polling for interface rate matching, thereby controlling the conversion module 30.

[0025] For example, the conversion module 30 is a dedicated processing unit made of semiconductor materials, typically an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA). The "conversion" aims to bridge the significant speed and protocol differences between the high-speed SerDes interface of the switch and the low-speed interface of the wireless module 40, and includes internal buffering capabilities. The conversion module 30 communicates with the switch's SerDes interface through the data pins of the interface module 10; receives control signals from the control module 20, such as control signals for rate matching and flow control; and simultaneously communicates with the wireless module 40 through a low-speed communication interface, such as Universal Serial Bus (USB) or I2C, exchanging data information to complete the conversion between the switch's SerDes communication interface and the wireless module 40's low-speed communication interface, generating adapted converted data.

[0026] For example, the wireless module 40 is a standard wireless communication chipset (such as Bluetooth, Wi-Fi, ZigBee) integrated into the device, consisting of standard electronic components and semiconductor materials. The wireless module 40 connects to the conversion module 30 via a low-speed communication interface (USB, I2C) to exchange data, encapsulating the received data from the conversion module 30 into wireless communication protocol data packets. The wireless module 40 also connects to the antenna module 50, transmitting wireless communication protocol data packets to the antenna module 50, while simultaneously receiving wireless communication packets from the antenna, parsing the data, converting it into baseband signals for the low-speed communication interface, and transmitting it to the conversion module 30.

[0027] For example, antenna module 50 can be one or more antennas, either built-in or external, with various shapes and typically made of conductive materials such as copper or gold-plated copper. It is usually integrated externally into the wireless communication device 100 or designed to protrude slightly. Antenna module 50 connects to wireless module 40, enabling wireless transmission and reception of wireless data packets, facilitating wireless data transmission between the terminal device and wireless module 40, and enabling data information interaction with external smart terminal devices such as mobile phones. For instance, when wireless module 40 is a Bluetooth module, antenna module 50 can wirelessly transmit and receive Bluetooth data packets, enabling wireless data transmission between the terminal device and wireless module 40. Specifically, antenna module 50 receives Bluetooth information from the terminal device, transmits it to wireless module 40, which then parses it into low-speed serial interface data and transmits it to conversion module 30, which then transmits it to the switch via a high-speed interface, completing the reverse data transmission.

[0028] The wireless communication device 100 is an innovative SFP-type module that solves the problems of traditional switches being unable to adapt to modern wireless usage scenarios and the integration of wireless modules into traditional switch chassis. The wireless communication device 100 maintains the same form factor as standard SFP / SFP+ modules, ensuring direct insertion and compatibility with the SFP / SFP+ interface sockets of switches. Its core function is to convert the high-speed SerDes interface of standard SFP / SFP+ ports on the switch into a short-range wireless communication link, such as Bluetooth communication. This conversion enables device management, status monitoring, and configuration of the switch wirelessly, thus adapting to the user needs and evolving scenarios of today's widespread use of smart terminals (such as mobile phones).

[0029] This design enables the wireless communication device 100 to be compatible with the SFP interface of the switch, achieving plug-and-play functionality. It enables device management and status monitoring of traditional switches through wireless communication, adapting to the evolving needs and scenarios of current users.

[0030] In some embodiments, the conversion module 30 is configured with multiple rate levels, and different rate levels are matched with different interface modes of the SerDes interface, thereby ensuring that the wireless communication device 100 can flexibly adapt to the interface requirements of different switches.

[0031] For example, when the wireless communication device 100 is plugged into the optical module interface of the switch, the conversion module 30 will select the corresponding speed level to attempt a connection according to the preset configuration or the control signal of the control module 20.

[0032] In some embodiments, the conversion module 30 is also used to poll and match multiple rate levels until the conversion module 30 establishes a link with the SerDes interface of the switch to complete the rate matching and generate the adapted conversion data.

[0033] For example, the conversion module 30 also has the ability to poll and match multiple rate levels. The SerDes interface modes cover various types such as 10GBASE-R / USXGMII, 2.5GBASE-R, 1000BASE-X / SGMII, and 100BASE-FX. The control module 20 manages these rate levels according to specific strategies. By monitoring the link status of the conversion module 30, it controls the interface rate of the conversion module 30 to decrease sequentially, and attempts to poll and match different rate levels in the order of the aforementioned interface modes. Each rate level is maintained for a preset time t. The purpose of this design is to ensure that when a rate match occurs, the conversion module 30 and the high-speed SerDes interface of the switch SFP have sufficient time to establish a stable link connection.

[0034] During the polling matching process, the conversion module 30 continuously attempts to establish a link with the switch's SerDes interface until a successful link-up is achieved (indicating that the link has been successfully established and both parties can send and receive data normally). Once the link is successfully established, the conversion module 30 performs rate matching based on the currently matched rate level, thereby generating adapted converted data. This process not only improves the compatibility between the wireless communication device 100 and the switch but also ensures the stability and efficiency of data transmission.

[0035] This application embodiment, by configuring multiple rate levels and supporting a polling matching mechanism, enables the conversion module 30 to flexibly adapt to the interface modes of different switches, achieving stable connection and data transmission with the switch's SerDes interface, thereby improving the performance and reliability of the entire wireless communication device.

[0036] In some embodiments, the conversion module 30 is further configured to buffer the data frames to be sent in the buffer of the conversion module 30 when the link rate of the wireless module 40 is lower than the transmission rate of the SerDes interface.

[0037] For example, the conversion module 30 has a data buffering capability to handle situations where the link rate of the wireless module 40 is lower than the transmission rate of the SerDes interface. Specifically, when the wireless module 40 is unable to send data from the SerDes interface in a timely manner due to link rate limitations, the conversion module 30 uses its built-in buffer to buffer these data frames to be sent to prevent data loss.

[0038] In some embodiments, the control module 20 is further configured to: When the buffer occupancy rate is detected to exceed the preset threshold, a pause transmission command or a speed reduction instruction is sent to the switch. When the buffer occupancy rate is detected to fall below a preset threshold, a command to resume transmission is sent to the switch.

[0039] For example, control module 20 not only monitors the entire data transmission process but also detects the occupancy of the buffer in conversion module 30. When control module 20 detects that the buffer occupancy rate exceeds a preset threshold (e.g., 80%), this usually indicates data transmission congestion. In this case, control module 20 quickly sends a pause transmission command or a rate-reduction instruction to the switch. When wireless module 40 experiences data transmission congestion, conversion module 30 buffers data from the switch that has not been transmitted in time. As data continuously flows into the buffer, when control module 20 detects that the buffer occupancy rate exceeds the preset threshold, this indicates that the buffer is nearing saturation. Continuing to receive data may lead to data overflow and loss. At this time, control module 20 promptly sends a pause transmission command to the switch, causing the switch to stop sending data to the conversion module to prevent the buffer from becoming further full; or it sends a rate-reduction instruction to the switch, instructing it to reduce the data transmission rate so that data can enter the buffer more slowly but steadily, avoiding problems caused by excessive data backlog.

[0040] When the buffer occupancy rate is detected to have fallen below a preset threshold, a resumption transmission command is sent to the switch. After the control module 20 takes the aforementioned measures to pause or reduce transmission, the buffer occupancy rate will begin to decrease as the wireless module 40 gradually transmits the data in the buffer. When the control module 20 detects that the buffer occupancy rate has fallen below the preset threshold, it indicates that the buffer has enough space to receive new data. At this time, the control module 20 will send a resumption transmission command to the switch, notifying the switch that it can continue to send data to the conversion module at the normal rate, thereby restoring the normal data transmission process and ensuring data transmission efficiency and stability.

[0041] Through the caching mechanism of the conversion module 30 and the intelligent detection and command transmission of the control module 20, the embodiments of this application can effectively cope with the data transmission congestion problem and improve the reliability and stability of the wireless communication device 100.

[0042] In some embodiments, the control module 20 is connected to the interface module 10 via an integrated circuit bus to communicate with the switch through the interface module 10, and to send the device basic information and status information of the wireless communication device 100 to the switch.

[0043] The interface module 10 serves as the physical connection bridge between the control module 20 and the switch, providing a channel for data transmission between the two. The control module 20 utilizes the stable and efficient data transmission characteristics of the I2C bus to accurately transmit relevant information from the wireless communication device 100 to the switch, ensuring that the switch can promptly obtain critical information from the device.

[0044] In some embodiments, the control module 20 is further configured to: The status information of the wireless communication device 100 is collected in real time, including at least one of voltage, current, temperature, and communication rate. When the detected status information exceeds the preset normal range, an alarm message is generated and sent to the switch.

[0045] For example, the control module 20 connects to the interface module 10 via the I2C bus to communicate with the switch. It not only sends basic device information of the wireless communication device 100, such as model, version, serial number, and manufacturer information, but also collects and reports the status information of the wireless communication device 100 in real time, including voltage, current, temperature, and communication rate. If any status information exceeds the preset normal range, the control module 20 generates an alarm message and sends it to the switch to respond promptly to potential problems. During actual operation, the control module 20 compares and analyzes the real-time collected status information with the preset normal range. Once it detects that one or more status messages exceed the preset normal range—for example, the temperature exceeds the maximum temperature limit that the wireless communication device 100 can withstand, the voltage is lower or higher than the normal operating voltage range, or the communication rate is lower or higher than the set rate range—the control module 20 immediately generates the corresponding alarm message and sends it to the switch via the interface module 10 through the I2C bus. After receiving the alarm message, the switch can promptly notify the user to handle the situation, preventing more serious problems caused by abnormal device status and ensuring the stable operation of the wireless communication device 100.

[0046] In some embodiments, the control module 20 is further configured to store basic device information of the wireless communication device 100, which includes at least one of model, version, serial number and manufacturer information.

[0047] For example, the basic device information of the wireless communication device 100 is stored in the read-only memory area of ​​the control module 20. The read-only memory area is characterized by its resistance to data loss and tampering, ensuring the security and accuracy of the basic device information. After the SFP-type wireless communication device 100 completes initialization, the switch reads the basic device information stored in the read-only memory area of ​​the control module 20 via the I2C interface, including key information such as model, version, and manufacturer. This information helps the switch identify and manage the wireless communication device 100, for example, by selecting appropriate drivers and configuration parameters based on the model and version, to better communicate and collaborate with the wireless communication device 100. Simultaneously, the serial number provides a unique identifier for each wireless communication device 100, facilitating tracking and maintenance within the system; manufacturer information helps users understand the device's origin and quality assurance status.

[0048] In some embodiments, the wireless module 40 is one of a Bluetooth module, a WiFi module, or a ZigBee module.

[0049] For example, the wireless module 40 can be one of a Bluetooth module, a WiFi module, or a ZigBee module to support different wireless communication protocols and application scenarios. This design allows the wireless communication device 100 to flexibly adapt to different network environments and needs, achieving effective conversion between high-speed and low-speed data.

[0050] The wireless communication device 100 enables device management and status monitoring of traditional switches through wireless communication, adapting to the current user needs and the development of various scenarios.

[0051] The wireless communication device 100 is highly compatible with traditional switch infrastructure. By utilizing the traditional, standardized, and widely adopted SFP / SFP+ physical interface, it avoids the problems associated with traditional integrated solutions, such as the need for additional physical ports, interference from internal steel casing shielding, and degraded radiated emission performance. Traditional wireless communication methods require altering the shielding effect of the traditional switch's steel casing, affecting the overall radiated emission performance of the device. However, the wireless communication device 100 provided in this application uses an SFP form factor, allowing the antenna module 50 to be placed outside the switch's steel casing, thus avoiding any negative impact on the device's radiated emission performance. The wireless communication device 100 ensures plug-and-play functionality, requiring no complex installation programs or software drivers beyond what a switch typically needs to handle SFP modules; it also eliminates the need to modify the switch's internal hardware, avoiding any negative impact on the device's electromagnetic compatibility (EMC) performance.

[0052] The conversion module 30 possesses multi-rate polling matching capabilities, enabling it to adaptively establish links with the switch's SerDes interface, ensuring broad applicability across different high-speed interface modes. The wireless module 40 is replaceable, allowing future support for various wireless communication protocols such as Bluetooth, Wi-Fi, and ZigBee, exhibiting scalability and adaptability to meet the needs of different application scenarios and terminal devices. Addressing the inherent speed difference between high-speed wired and low-speed wireless interfaces, the wireless communication device 100 employs efficient data caching and flow control mechanisms. Through the control module 20, it coordinates the switch to pause / resume data transmission, effectively preventing data congestion and loss, and ensuring communication reliability and data integrity.

[0053] Compared to internal modifications to switches or the purchase of new wireless management switches, this SFP-type wireless communication device 100 achieves wireless management upgrades of traditional equipment at a lower cost, providing enterprises with an economical and efficient upgrade solution that extends the lifecycle and functional value of existing network infrastructure.

[0054] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0055] This application provides a wireless communication device 100, suitable for pluggable installation on the optical module interface of a switch. The wireless communication device 100 includes an interface module 10, a control module 20, a conversion module 30, a wireless module 40, and an antenna module 50. The interface module 10 is connected to the optical module interface of the switch for power supply and data transmission. The control module 20 communicates with the switch through the interface module 10 and outputs control signals to the conversion module 30 according to the data transmission rate. The conversion module 30 communicates with the SerDes interface of the switch through the interface module 10 and performs interface rate matching according to the control signals, completes communication protocol conversion, and generates converted data. The wireless module 40 is connected to the conversion module 30 and encapsulates the converted data into a first wireless communication protocol message and outputs it to the antenna module 50. It also parses the second wireless communication protocol message received from the antenna module 50, converts it into a baseband signal, and sends it back to the conversion module 30. The antenna module 50 is connected to the wireless module 40 and sends the first wireless communication protocol message to a terminal device and receives the second wireless communication protocol message from the terminal device. This application embodiment realizes the function of transmitting high-speed data from a switch via wireless communication. The wireless communication device 100 can be plug-and-play installed on the optical module interface of the switch without requiring large-scale modifications to the switch, offering extremely high flexibility and compatibility. Simultaneously, it effectively overcomes the limitations of traditional wired communication, enabling the switch to interact with terminal devices wirelessly, meeting the needs of diverse application scenarios.

[0056] Please see Figure 2 , Figure 2 This is a flowchart illustrating a data communication method provided in an embodiment of this application. The method is applied to, for example... Figure 1 The wireless communication device 100 shown includes a method comprising: Step 210: Establish a connection with the optical module interface of the switch through the interface module and power the wireless communication device.

[0057] For example, a physical and electrical connection is established between the interface module 10 and the optical module interface of the switch. The interface module 10 includes multiple pins for transmitting power and data signals. The data pins ensure compatibility with the switch's SFP / SFP+ interface sockets to enable high-speed data transmission; the power pins connect the wireless communication device 100 to a power source to ensure the normal operation of the internal modules.

[0058] Step 220: The control module communicates with the switch through the interface module, sending the basic device information and status information of the wireless communication device to the switch, and outputting control signals to the conversion module.

[0059] For example, during the connection phase, after the device is connected to the switch, the wireless communication device 100 receives power and starts up. Under normal circumstances, if the speeds match, the wireless communication device 100 and the optical module interface of the switch will establish a link. If the speeds do not match, the control module 20 will control the device to gradually reduce the speed and wait until a certain speed is reached where the speeds of the wireless communication device 100 and the switch match, thus establishing a connection. During the communication phase, the control module 20 monitors the data received by the conversion module 30. When the speed at which the received data is greater than the speed at which it is sent to the wireless module 40 and its own buffer reaches a certain threshold (the buffer is about to be full), it will notify the switch to reduce the speed or suspend transmission. Simultaneously, it will notify the switch to resume transmission once the congestion is relieved.

[0060] The control module 20 communicates bidirectionally with the switch through the interface module 10. The control module 20 sends basic device information of the wireless communication device 100 via the I2C bus, including but not limited to model, version number, serial number, and manufacturer information. Simultaneously, the control module 20 sends status information to the switch, including voltage, current, temperature, and communication rate, so that the switch can detect the operating status of the wireless communication device 100. Furthermore, the control module 20 outputs control signals to the conversion module 30 according to the switch's instructions or internal logic to adjust the data transmission rate.

[0061] Step 230: The conversion module communicates with the switch's SerDes interface through the interface module, performs interface rate matching according to the control signal, completes the communication protocol conversion, and generates conversion data.

[0062] For example, conversion module 30 communicates at high speed with the switch's SerDes interface via interface module 10. Conversion module 30 processes the high-speed data from the SerDes interface according to control signals to match the low-speed data requirements of wireless module 40. Conversion module 30 performs rate matching, converting high-speed serial data into low-speed serial data or wireless communication protocol data, generating adapted converted data.

[0063] Step 240: The wireless module encapsulates the converted data into a first wireless communication protocol message and sends it to the terminal device through the antenna module.

[0064] For example, the wireless module 40 receives conversion data from the conversion module 30 and encapsulates the data into a first wireless communication protocol message according to a preset first wireless communication protocol (such as Bluetooth, Wi-Fi, or ZigBee). The wireless module 40 then transmits the encapsulated first wireless communication protocol message to the terminal device through the antenna module 50.

[0065] Step 250: The wireless module parses the second wireless communication protocol message received from the antenna module, converts it into a baseband signal, and then sends it back to the conversion module.

[0066] For example, the wireless module 40 receives a second wireless communication protocol message from the antenna module 50, which conforms to the wireless communication protocol supported by the terminal device. The wireless module 40 parses the second wireless communication protocol message, converts it into a baseband signal of the low-speed communication interface, and sends it back to the conversion module 30.

[0067] Step 260: The conversion module transmits the parsed data to the switch via the SerDes interface.

[0068] For example, conversion module 30 receives the parsed data from wireless module 40 and performs further processing as needed, such as rate adjustment. Conversion module 30 then transmits the processed data to the switch via the SerDes interface, completing the reverse data transmission.

[0069] Through the above steps, the wireless communication device 100 realizes bidirectional data communication from the switch to the terminal device and from the terminal device to the switch, while supporting multiple wireless communication protocols to adapt to different application scenarios and terminal device requirements.

[0070] In some embodiments, the conversion module is configured with multiple rate levels, and different rate levels are matched with different interface modes of the SerDes interface. The conversion module performs rate matching between the high-speed data from the switch's SerDes interface and the low-speed data from the wireless module based on control signals, generating adapted converted data, including: The conversion module polls and matches multiple rate levels according to the control signal until a link is established between the conversion module and the SerDes interface of the switch to complete the rate matching and generate the adapted conversion data.

[0071] For example, the conversion module 30 is designed to have multiple rate levels, each of which can be matched with different interface modes of the SerDes interface. This design allows the conversion module 30 to adapt to different data transmission rates and protocols, ensuring compatibility with the switch's SerDes interface and achieving efficient data transmission.

[0072] The conversion module 30 performs rate matching between the high-speed data from the switch's SerDes interface and the low-speed data from the wireless module 40 based on control signals, generating adapted converted data. The conversion module 30 also performs polling matching on multiple rate levels based on control signals. This polling matching process means that the conversion module will sequentially try different rate levels to find the best match compatible with the switch's SerDes interface.

[0073] In some embodiments, polling and matching multiple rate levels includes: The conversion module will sequentially reduce the speed of the highest speed from multiple speed levels for matching, with each speed level maintained for a preset time. When it is detected that the conversion module has established a link with the switch's SerDes interface at the current speed level, the current speed level will be locked.

[0074] For example, the interface mode of conversion module 30d can be switched sequentially: conversion module 30 can be configured in interface modes such as 10GBASE-R / USXGMII, 2.5GBASE-R, 1000BASE-X / SGMII, and 100BASE-FX, with the speed decreasing sequentially in a polling match. These modes cover different data transmission rates and protocols to adapt to different network environments and requirements. Specifically, 10GBASE-R is a 10 Gigabit baseband Ethernet based on a 64b / 66b encoded serial channel with a speed of 10Gbps; USXGMII is a Universal Serial 10 Gigabit Media Independent Interface, a multi-rate interface that supports multiple speeds on a single 10Gbps link, typically including 10M, 100M, 1G, 2.5G, 5G, and 10G; 2.5GBASE-R is a 2.5 Gigabit baseband Ethernet based on a 64b / 66b encoded serial channel with a speed of 2.5Gbps; 2.5GBASE-R... SE-R is a 2.5 Gigabit baseband Ethernet based on a 64b / 66b encoded serial channel with a speed of 2.5Gbps; 1000BASE-X is a 1000 Gigabit baseband Ethernet based on an 8B / 10B encoded serial channel with a speed of 1Gbps; SGMII is a Serial Gigabit Media Independent Interface, a multi-rate interface that supports speeds of 10Mbps, 100Mbps, and 1Gbps on a single 1.25Gbps serial link; 100BASE-FX is a 100 Mbps fiber optic baseband Ethernet with a speed of 100Mbps.

[0075] At each speed level, the conversion module 30 maintains a preset time t to ensure that when the speeds match, the conversion module 30 has sufficient time to establish a link with the high-speed SERDES interface of the switch SFP. This preset time t can be adjusted according to actual needs to optimize the efficiency and reliability of connection establishment.

[0076] During the duration of each rate setting, the control module 20 continuously checks whether a link has been successfully established with the switch's SerDes interface. This typically involves monitoring specific link status signals or verifying link connectivity by sending test packets. When it is detected that the conversion module 30 has established a link with the switch's SerDes interface at the current rate setting, it locks the current rate setting.

[0077] The detection process continues until a link is established between the conversion module 30 and the switch's SerDes interface, completing rate matching and generating adapted conversion data. This process ensures efficient and stable data transmission between the switch and the wireless module 40, guaranteeing effective conversion between high-speed and low-speed data, thereby improving the overall performance and compatibility of the wireless communication device.

[0078] In some embodiments, the method further includes: when the link rate of the wireless module is lower than the transmission rate of the SerDes interface, buffering the data frames to be sent in the buffer of the conversion module.

[0079] For example, the switch's SFP interface is a high-speed SerDes interface, with a speed much higher than the low-speed interface of the wireless module 40 (such as a Bluetooth module) and the Bluetooth wireless transmission speed. On one hand, to manage this mismatch, after recognizing the inserted module as an SFP-type wireless module 40 (such as a Bluetooth module), the switch automatically adjusts the actual data transmission rate to match the low-speed interface and wireless transmission speed of the wireless module. This step ensures that the data transmission rate matches the receiving capability of the wireless module 40, preventing data loss or transmission errors due to excessively high speeds. On the other hand, the conversion module 30 introduces a buffering mechanism: when the control module 20 detects that the link speed of the wireless module 40 (such as a Bluetooth module) is lower than the transmission speed of the SerDes interface, i.e., when the wireless module 40 (such as a Bluetooth module) experiences data transmission congestion, it buffers the data frames to be sent from the switch in its internal buffer to prevent data loss due to speed mismatch. This mechanism allows the conversion module 30 to temporarily store data frames from the switch's high-speed SerDes interface in its internal buffer that cannot be sent out by the wireless module 40 in time.

[0080] In some embodiments, the method further includes: Real-time monitoring of buffer occupancy; when occupancy exceeds a preset threshold, a pause transmission command or a speed reduction instruction is sent to the switch; when occupancy falls back below the preset threshold, a resume transmission command is sent to the switch.

[0081] For example, control module 20 is responsible for monitoring the buffer occupancy of conversion module 30. When the buffer occupancy rate is detected to exceed a preset threshold, i.e., the buffer is close to full, control module 20 sends a pause transmission command or a speed reduction instruction to the switch, requesting the switch to slow down or suspend data transmission until the buffer occupancy rate falls back to a safe level. When the buffer occupancy rate falls below the preset threshold under the detection of control module 20, indicating that the buffer has enough space to process more data, control module 20 sends a resume transmission command to the switch, allowing the switch to continue or resume data transmission.

[0082] Determining the preset threshold is a crucial decision-making process involving system performance, stability, and efficiency. It requires comprehensive consideration of multiple factors: (1) Buffer capacity: A common practice is to set the threshold to a certain percentage of the buffer capacity, such as 75% or 80%, to ensure that there is enough space to handle bursts of data traffic before the full capacity is reached.

[0083] (2) Data transmission rate: The preset threshold should match the data transmission rate of the system. If the data transmission rate is high, a lower threshold may be set so that pause or slow-down commands are triggered more frequently, thereby avoiding buffer overflow.

[0084] (3) System response time: If the system needs to respond quickly, a higher threshold may be set to reduce the delay caused by waiting for buffer space.

[0085] (4) Application requirements: For application scenarios that require high reliability and low latency, a lower threshold may be required to ensure timely data processing and transmission.

[0086] (5) Experimentation and testing: The determination of the preset threshold usually requires optimization through experimentation and testing. By simulating different data traffic and network conditions, the performance and stability of the system can be observed, thereby finding the optimal threshold setting.

[0087] (6) Dynamic adjustment: In some advanced systems, the preset threshold can be dynamically adjusted according to real-time network conditions and system load to achieve the best performance and stability.

[0088] By taking all the above factors into account and optimizing the preset threshold, we can ensure that the system can operate stably and efficiently under various conditions.

[0089] In some embodiments, the method further includes: the control module periodically reporting the status information of the wireless communication device to the switch, including at least one of voltage, current, temperature and communication rate.

[0090] For example, control module 20 is responsible for collecting and reporting the status information of wireless communication device 100 to the switch in real time. This process is implemented through communication protocols such as I2C, and the accuracy and real-time nature of information transmission should be ensured to accurately reflect the current operating status. The reported status information includes, but is not limited to, key parameters such as voltage, current, temperature, and communication rate. These parameters reflect the voltage level required for the operation of the internal circuitry of wireless communication device 100; reflect the current consumed by wireless communication device 100 during operation; indicate the temperature status of wireless communication device 100 during operation, which is important for preventing overheating and ensuring safe operation of the equipment; and display the current data transmission rate, which helps to assess network performance and identify potential bottlenecks. Simultaneously with reporting, control module 20 outputs control signals to control conversion module 30.

[0091] In some embodiments, the method further includes: When the status information exceeds the preset normal range, an alarm message is generated and sent to the switch.

[0092] For example, the control module 20 samples and detects the status information of the wireless communication device 100 in real time, such as voltage, current, temperature, and communication rate, and transmits it to the switch for users to access. When the status of the wireless communication device 100 is abnormal, such as excessive temperature or excessive voltage, the control module 20 generates an alarm message and reports it to the switch. This mechanism allows network administrators to respond quickly to potential problems and take necessary measures to maintain the stability and reliability of the system.

[0093] When any detected status information exceeds its preset normal operating parameter range, the control module 20 determines that the wireless communication device 100 is in an abnormal state. Examples include: temperature exceeding the set maximum temperature threshold; voltage exceeding the set maximum or minimum voltage threshold; current exceeding the set maximum current threshold; and communication rate being lower or higher than the set rate range. The confirmation of these thresholds is also based on experiments and measurements.

[0094] In some embodiments, the method further includes: the control module sending device basic information of the wireless communication device to the switch, including at least one of module model, version number, serial number and manufacturer information.

[0095] For example, after the SFP-type wireless module 40 (such as a Bluetooth module) completes initialization, the switch reads the identity information stored in the control module 20 within the module via the I2C interface. This information includes basic device information such as the module's model, version, manufacturer, and serial number. The control module 20 then transmits this basic device information to the switch. This information is stored in the read-only memory of the control module 20 and can be queried by network administrators or users. This information helps users understand the operating status of the wireless communication device 100, perform performance evaluations, and diagnose faults. After obtaining the module's device identity information, if the switch identifies the module as an SFP-type wireless module 40 (such as a Bluetooth module), it then opens the corresponding device management and configuration interfaces and matches the data transmission and reception rates.

[0096] The device basic information contains detailed information about the wireless communication devices 100 in the network, playing a crucial role in many ways: It enables the switch to uniquely identify each wireless communication device 100 in the network, which is essential for device management and maintenance; by understanding the model and version information of the wireless communication devices 100, network administrators can assess the performance and functionality of the devices, ensuring they meet network requirements; when a wireless communication device 100 malfunctions, the serial number and manufacturer information can help quickly locate the cause of the problem, contact the manufacturer for technical support, or replace the device; the device basic information can also be used for security verification, ensuring that only authorized devices can access the network, enhancing network security; and understanding the model and version information of the wireless communication devices 100 helps determine which devices require software updates or firmware upgrades, keeping the network up-to-date and performing at its best.

[0097] In some embodiments, the wireless module supports at least one of Bluetooth, WiFi, and ZigBee wireless communication protocols, and the method further includes: Depending on the type of wireless module, the corresponding wireless communication protocol is used to interact with the terminal device.

[0098] For example, this embodiment allows the wireless communication protocol to be replaced with other standards, such as Wi-Fi or ZigBee, thereby enabling the conversion from the switch's SFP interface to various wireless transmission protocols. This capability allows the wireless communication device 100 to select the most suitable protocol for data transmission as needed. For example, Bluetooth is suitable for short-range, low-power applications, while Wi-Fi is suitable for applications requiring higher data transmission rates. That is, the wireless module 40 can be a Bluetooth module, a Wi-Fi module, or a ZigBee module, etc. The control module 20 and software within the wireless communication device 100 support multiple wireless communication protocols and can dynamically select and switch different protocols for data transmission based on configuration or commands. This design allows the wireless module 40 to be replaced or upgraded as needed to support different wireless communication protocols.

[0099] The wireless communication device 100 can communicate with various types of terminal devices, such as smartphones, tablets, and laptops. Each device may support different wireless communication standards or protocols. In this embodiment, the wireless communication device 100 can perform automatic protocol identification to adapt to these different devices: the wireless communication device 100 can automatically detect connected terminal devices and identify the wireless communication protocols they support. This is typically achieved through a device discovery and handshake process, in which the terminal device and the wireless communication device 100 exchange information to determine the optimal communication protocol. Once the protocol supported by the terminal device is identified, the wireless communication device 100 can dynamically adjust its communication parameters (such as frequency, rate, power, etc.) to adapt to the device and ensure optimal communication performance.

[0100] In some embodiments, the method further includes: The conversion module monitors the link status of the SerDes interface with the switch in real time; when a link abnormality is detected, it triggers the process of re-establishing the link.

[0101] For example, the conversion module 30 communicates with the switch SerDes via the interface module 10. On one hand, it converts information from the switch into a low-speed serial interface for output to the wireless module 40. On the other hand, it transmits data from the wireless module 40 (received from an external terminal by the antenna module 50) to the switch via the SerDes interface. During this process, the conversion module 30 continuously monitors the link status between itself and the switch's SerDes interface. This monitoring is accomplished by checking the link status indication signal or by periodically sending test data packets. When the conversion module 30 detects an abnormal link status indication signal, or if a test data packet fails to be received or sent successfully, it determines that the link is faulty. Once a link fault is detected, the conversion module 30 triggers a link re-establishment process, including re-initializing the SerDes interface and related identity and status information. The conversion module 30 renegotiates link parameters, such as rate, mode, and protocol, with the switch's SerDes interface to ensure consistent configuration. After renegotiating the link parameters, the conversion module 30 sends test data packets to verify whether the link has been successfully re-established. If the test data packets are successfully received and sent, the conversion module 30 confirms that the link has been successfully re-established and continues normal data transmission. If the link remains abnormal, the conversion module 30 may need to repeat the link re-establishment process or report the error to the control module 20 for further troubleshooting. Link abnormalities can be caused by various reasons, such as physical connection problems, configuration errors, signal interference, or other hardware failures. Once the link is successfully re-established, the control module 20 can communicate with the switch to indicate that the link has returned to normal. This helps the switch update its link status information and continue data transmission.

[0102] In some embodiments, the method further includes: When the wireless module establishes a wireless connection with the terminal device, it performs the corresponding security authentication and encryption process.

[0103] When the wireless module 40 attempts to establish a wireless connection with the terminal device, a security authentication process is first executed. The purpose of this process is to verify the identity of the terminal device, ensuring that only authorized devices can access the wireless network. The terminal device provides its identity credentials, such as a username and password, digital certificate, or pre-shared key. The wireless module 40 compares the received identity credentials with those stored in the control module 20 or the switch to verify the identity of the terminal device. In some cases, the wireless module 40 may also need to provide its identity credentials to the terminal device for two-way authentication, enhancing security. Once the terminal device is authenticated, the wireless module 40 and the terminal device negotiate which encryption protocol to use to protect the wireless connection, such as Bluetooth encryption, Wi-Fi encryption, or ZigBee encryption. The wireless module 40 and the terminal device generate a shared encryption key based on the negotiated encryption protocol. This key will be used to encrypt and decrypt data transmitted over the wireless connection. Subsequently, the wireless module 40 and the terminal device use the generated encryption key to encrypt the wireless connection, including data encryption and data integrity protection. The above method ensures the security of the wireless module 40 when establishing a wireless connection with the terminal device, preventing unauthorized access and data leakage, and protecting the integrity and confidentiality of the wireless network. This security authentication and encryption process is crucial for maintaining the security of wireless communication.

[0104] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.

[0105] The data communication method provided in this application establishes a connection between an interface module and the optical module interface of a switch, and supplies power to the wireless communication device. A control module communicates with the switch through the interface module, sending basic device information and status information of the wireless communication device to the switch, and outputting control signals to the conversion module. The conversion module communicates with the switch's SerDes interface through the interface module, performs interface rate matching according to the control signals, completes communication protocol conversion, and generates converted data. The wireless module encapsulates the converted data into a first wireless communication protocol message and sends it to the terminal device through an antenna module. The wireless module parses the second wireless communication protocol message received from the antenna module and sends it back to the conversion module. The conversion module transmits the parsed data to the switch through the SerDes interface. This application embodiment realizes the conversion and transmission of high-speed data and wireless communication methods by the switch, ensures smooth data flow through rate matching, and supports the interaction of basic device information and status information, facilitating management and detection, and improving the flexibility and efficiency of data transmission.

[0106] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to a computer device, and the computer program causes the computer device to execute the corresponding processes in the data communication method of this application embodiment; for brevity, further details are omitted here.

[0107] This application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the data communication method of this application embodiment. For simplicity, further details are omitted here.

[0108] This application also provides a computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the data communication method of this application embodiment. For simplicity, further details are omitted here.

[0109] It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0110] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0111] It should be understood that the above-described memory is exemplary and not a limiting description. For example, the memory in the embodiments of this application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DR RAM), etc. That is to say, the memory in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.

[0112] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0113] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0114] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0115] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0116] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0117] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer or a server) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0118] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A wireless communication device for pluggable installation on an optical module interface of a switch, characterized in that, The wireless communication device includes: The interface module is connected to the optical module interface of the switch and is used for power supply and data transmission. A control module, connected to the interface module, is used to communicate with the switch through the interface module and to output control signals to the conversion module according to the data transmission and reception rate. The conversion module is connected to the control module and the interface module. It communicates with the serializer / deserializer SerDes interface of the switch through the interface module. It is used to perform interface rate matching according to the control signal, complete the communication protocol conversion and generate conversion data. The wireless module is connected to the conversion module and is used to encapsulate the converted data into a first wireless communication protocol message and output it to the antenna module, and to parse the second wireless communication protocol message received from the antenna module, convert it into a baseband signal, and then send it back to the conversion module. The antenna module is connected to the wireless module and is used to send the first wireless communication protocol message to the terminal device and receive the second wireless communication protocol message from the terminal device.

2. The wireless communication device as claimed in claim 1, characterized in that, The conversion module is configured with multiple rate levels, and different rate levels are matched with different interface modes of the SerDes interface.

3. The wireless communication device as described in claim 2, characterized in that, The conversion module is also used to poll and match the multiple rate levels until the conversion module establishes a link with the SerDes interface of the switch to complete the rate matching and generate the adapted conversion data.

4. The wireless communication device as claimed in claim 1, characterized in that, The conversion module is further configured to cache the data frames to be sent in the buffer of the conversion module when the link rate of the wireless module is lower than the transmission rate of the SerDes interface.

5. The wireless communication device as described in claim 4, characterized in that, The control module is also used for: When the occupancy rate of the buffer exceeds a preset threshold, a pause transmission command or a speed reduction instruction is sent to the switch. When the occupancy rate of the buffer area is detected to fall below the preset threshold, a command to resume transmission is sent to the switch.

6. The wireless communication device as claimed in claim 1, characterized in that, The control module is connected to the interface module via an integrated circuit bus, so as to send the basic device information and status information of the wireless communication device to the switch through the interface module.

7. The wireless communication device as claimed in claim 6, characterized in that, The control module is also used for: The status information of the wireless communication device is collected in real time, and the status information includes at least one of voltage, current, temperature, and communication rate; When the status information is detected to exceed the preset normal range, an alarm message is generated and sent to the switch.

8. The wireless communication device as claimed in claim 1, characterized in that, The interface module includes: Power supply pins and data pins; wherein the order of the power supply pins and the data pins is consistent with the pin order of a standard pluggable optical module SFP / SFP+.

9. The wireless communication device as claimed in claim 1, characterized in that, The wireless module is one of Bluetooth, WiFi, or ZigBee modules.

10. A data communication method, characterized in that, The method, applied to any one of claims 1-9, comprises: The interface module establishes a connection with the optical module interface of the switch and supplies power to the wireless communication device. The control module communicates with the switch through the interface module, sending the basic device information and status information of the wireless communication device to the switch, and outputting control signals to the conversion module; The conversion module communicates with the SerDes interface of the switch through the interface module, and performs interface rate matching according to the control signal to complete the communication protocol conversion and generate conversion data. The wireless module encapsulates the converted data into a first wireless communication protocol message and sends it to the terminal device through the antenna module; The wireless module parses the second wireless communication protocol message received from the antenna module, converts it into a baseband signal, and then sends it back to the conversion module. The conversion module transmits the parsed data to the switch through the SerDes interface.