Communication device
By setting the first communication unit and the second communication unit in the communication device, and obtaining and synchronizing the IO attribute information and IO status information of the mobile broadband device and the mobile terminal, the problem of incomplete signal transmission in the prior art is solved, and the integrity of the signal transmission process is realized.
Patent Information
- Application Number
- CN202411861477.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In the prior art, the direct connection of mobile broadband devices with laptops is likely to lead to incomplete signal transmission.
A communication device is designed, including a first communication unit and a second communication unit. By connecting the mobile broadband device and the mobile terminal, each of which acquires and synchronizes the respective IO attribute information and IO status information, and adjusts the interface information to realize data transmission.
Through the adjustment of interface information, we ensure the integrity of the signal transmission process between the mobile broadband device and the mobile terminal, and avoid data loss or device failure.
Smart Images

Figure CN119676852A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data communication technology, and in particular to a communication device. Background Art
[0002] Mobile Broadband (MBB) devices are used to provide wireless data connections, enabling mobile devices (such as laptops, smartphones, etc.) to connect to mobile phone service networks, thereby achieving Internet access.
[0003] In the prior art, a mobile broadband device is usually directly connected to a laptop computer, so that the laptop computer can access the Internet through a mobile network without a fixed broadband (such as an optical fiber or a wired cable) connection.
[0004] However, directly connecting the mobile broadband device to the laptop computer can easily lead to incomplete signal transmission. Summary of the invention
[0005] The purpose of the present application is to provide a communication device to solve the problem of incomplete signal transmission in the prior art in view of the above-mentioned deficiencies in the prior art.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a communication device, the communication device comprising:
[0008] A first communication unit and a second communication unit;
[0009] The first communication unit includes a first interface, a first control module, a first input-output module, and a first transmission module connected in sequence;
[0010] The second communication unit includes a second interface, a second control module, a second input-output module and a second transmission module connected in sequence;
[0011] The first communication unit is used to determine first IO attribute information and first IO state information of the mobile broadband device when the mobile broadband device is inserted into the first interface, and send the first IO attribute information and the first IO state information to the second communication unit, so that the second communication unit adjusts the interface information of the second interface according to the first IO attribute information and the first IO state information;
[0012] The second communication unit is used to determine the second IO attribute information and the second IO state information of the mobile terminal when the mobile terminal is inserted into the second interface, and send the second IO attribute information and the second IO state information to the first communication unit, so that the first communication unit adjusts the interface information of the first interface according to the second IO attribute information and the second IO state information;
[0013] The first communication unit is used to send data from the mobile broadband device to the second communication unit and send data from the second communication unit to the mobile broadband device through the first interface, the first control module, the first input and output module and the first transmission module;
[0014] The second communication unit is used to send data from the mobile terminal to the first communication unit and send data from the first communication unit to the mobile terminal through the second interface, the second control module, the second input / output module and the second transmission module.
[0015] In a possible implementation, the first communication unit is further configured to, before sending data to the second communication unit, adjust the state of a first target pin of the first transmission module to a target state, so that the state of a second target pin connected to the first target pin on the second transmission module is correspondingly adjusted to the target state;
[0016] The second communication unit is also used to adjust the state of the second target pin of the second transmission module to a target state before sending data to the first communication unit, so that the state of the first target pin connected to the second target pin on the first transmission module is correspondingly adjusted to the target state.
[0017] In a possible implementation manner, the first communication unit is specifically configured to:
[0018] The first IO attribute information and the first IO status information sent by the mobile broadband device are obtained through the first interface, the first IO attribute information and the first IO status information are encapsulated into a first IO message through the first control module, and the first IO message is sent to the second communication unit through the first input and output module and the first transmission module, so that the second communication unit adjusts the interface information of the second interface according to the first IO message.
[0019] In a possible implementation manner, the second communication unit is specifically configured to:
[0020] The second IO attribute information and the second IO status information sent by the mobile terminal are obtained through the second interface, the second IO attribute information and the second IO status information are encapsulated into a second IO message through the second control module, and the second IO message is sent to the first communication unit through the second input and output module and the second transmission module, so that the first communication unit adjusts the interface information of the first interface according to the second IO message.
[0021] In a possible implementation manner, the first communication unit is specifically configured to:
[0022] receiving first transmission data from a mobile broadband device through the first interface, encoding the first transmission data through the first control module to obtain first encoded data, and sending the first encoded data to the second communication unit through the first input and output module and the first transmission module in sequence;
[0023] The first communication unit is also specifically used to receive second encoded data from the second communication unit through the first transmission module and the first input-output module in sequence, decode the second encoded data through the first control module to obtain second transmission data, and send the second transmission data to the mobile broadband device through the first interface.
[0024] In a possible implementation manner, the second communication unit is specifically configured to:
[0025] receiving second transmission data from the mobile terminal through the second interface, encoding the second transmission data through the second control module to obtain second encoded data, and sending the second encoded data to the first communication unit through the second input-output module and the second transmission module in sequence;
[0026] The second communication unit is also specifically used to receive the first encoded data from the first communication unit through the second transmission module and the second input-output module in sequence, decode the second encoded data through the second control module to obtain the first transmission data, and send the first transmission data to the mobile terminal through the second interface.
[0027] In a possible implementation, the first communication unit further includes: a first high-speed transmission module, and the second communication unit further includes: a second high-speed transmission module;
[0028] The first communication unit is further used to send data from the mobile broadband device to the second communication unit through the first high-speed transmission module and the first transmission module, and to send data from the second communication unit to the mobile broadband device;
[0029] The second communication unit is further configured to send data from the mobile terminal to the first communication unit through the second high-speed transmission module and the second transmission module, and to send data from the first communication unit to the mobile terminal.
[0030] In a possible implementation, the first communication unit is specifically configured to receive third transmission data from a mobile broadband device through the first interface, and send the third transmission data to the second communication unit through the first transmission module and the first high-speed transmission module, and send fourth transmission data from the second communication unit to the mobile broadband device;
[0031] The second communication unit is specifically used to receive fourth transmission data from the mobile terminal through the second interface, and send the fourth transmission data to the first communication unit through the second transmission module and the second high-speed transmission module, and send the third transmission data from the first communication unit to the mobile terminal.
[0032] In a possible implementation, the first communication unit further includes: a third interface;
[0033] The third interface is connected to the first control module;
[0034] The first communication unit is further used to obtain first status data of the first communication unit during data transmission through the first input-output module, and send the first status data to the mobile terminal through the third interface;
[0035] The first communication unit is further configured to obtain second status data of the second communication unit through the second input / output module, the second transmission module, and the first transmission module, and to send the first status data to the mobile terminal through the third interface.
[0036] In a possible implementation, the first communication unit is further used to perform firmware configuration on the first high-speed transmission module through the third interface, and the second communication unit is further used to perform firmware configuration on the second high-speed transmission module through the third interface.
[0037] The beneficial effect of the present application is as follows: by setting a first communication unit and a second communication unit in a communication device, and setting a first interface, a first control module, a first input-output module and a first transmission module connected in sequence in the first communication unit, and setting a second interface, a second control module, a second input-output module and a second transmission module connected in sequence in the second communication unit, the first interface or the second interface can be adjusted after the mobile terminal broadband device and the mobile terminal device are connected, so that the first interface of the first communication unit and the second interface of the second communication unit can realize data transmission between the mobile broadband device and the mobile terminal with the same IO attribute information and the same IO status information, thereby ensuring the integrity of the signal transmission process between the mobile broadband device and the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of synchronizing IO attribute information between a first communication unit and a second communication unit in a communication device provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of synchronizing IO state information between a first communication unit and a second communication unit in a communication device provided in an embodiment of the present application;
[0042] Figure 4 Another schematic diagram of synchronizing IO attribute information between a first communication unit and a second communication unit in a communication device provided in an embodiment of the present application;
[0043] Figure 5 Another schematic diagram of synchronizing IO state information between a first communication unit and a second communication unit in a communication device provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of a communication device according to an embodiment of the present application performing data transmission;
[0045] Figure 7 Another schematic diagram of a communication device according to an embodiment of the present application performing data transmission;
[0046] Figure 8 Another structural schematic diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0048] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0049] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0050] In the prior art, a mobile broadband device is usually directly connected to a laptop computer, so that the laptop computer can access the Internet through a mobile network without a fixed broadband (such as an optical fiber or a wired cable) connection.
[0051] However, directly connecting the mobile broadband device to the laptop computer can easily lead to incomplete signal transmission.
[0052] Based on the above problem, an embodiment of the present application proposes a communication device, wherein a first communication unit and a second communication unit are arranged in the communication device, and a first interface, a first control module, a first input-output module and a first transmission module connected in sequence are arranged in the first communication unit, and a second interface, a second control module, a second input-output module and a second transmission module connected in sequence are arranged in the second communication unit, so that the first communication unit and the second communication unit can synchronize interface information between a mobile broadband device and a mobile terminal, and at the same time, the first communication unit and the second communication unit can transmit data between the mobile broadband device and the mobile terminal, thereby ensuring the integrity of the signal transmission process between the mobile broadband device and the mobile terminal.
[0053] The communication device provided in the embodiments of the present application is described in detail below in combination with multiple embodiments.
[0054] Figure 1 A schematic diagram of a communication device provided in an embodiment of the present application, referring to Figure 1 As shown, the communication device includes: a first communication unit and a second communication unit.
[0055] The first communication unit includes a first interface, a first control module, a first input-output module and a first transmission module connected in sequence, and the second communication unit includes a second interface, a second control module, a second input-output module and a second transmission module connected in sequence.
[0056] Optionally, continue to refer to Figure 1 As shown, the first end of the first interface is connected to the mobile broadband device, the second end of the first interface is connected to the first end of the first control module, the second end of the first control module is connected to the first end of the first input-output module, the second end of the first input-output module is connected to the first end of the first transmission module, the second end of the first transmission module is connected to the first end of the second transmission module, the second end of the second transmission module is connected to the first end of the second input-output module, the second end of the second input-output module is connected to the first end of the second control module, the second end of the second control module is connected to the first end of the second interface, and the second end of the second interface is also connected to the mobile terminal device.
[0057] Optionally, the first interface may be an M.2 slot (M.2Slot for short), that is, a slot for connecting an M.2 interface solid-state drive, and the second interface may be an M.2 interface, and both the first interface and the second interface support access to a variety of data transmission protocols. Optionally, the data types that can be transmitted by the first interface and the second interface may be a variety of data types related to input and output (I / O), such as: IO in-band signals, IO out-of-band signals, open drain output (OpenDrain I / O), and high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIe).
[0058] Optionally, the first control module and the second control module can be a single-chip microcomputer, specifically, a 32-bit microcontroller (STM32), which is provided with a general input and output port (GPIO), a universal asynchronous receiver and transmitter (UART), a serial peripheral interface (Driver (SPI)), a two-wire serial bus (Serial (I2C)), an analog-to-digital converter (ADC), a digital-to-analog converter (DAC), a pulse width modulation (PWM), a real-time clock (RTC) and IRQ, etc.
[0059] Optionally, the first input-output module and the second input-output module may be circuit units provided with a plurality of circuit devices for collecting and processing the transmission data, and specifically, may be provided with a plurality of transistors and collection chips.
[0060] Optionally, the first transmission module and the second transmission module may be Type-C PD interface modules (USB Type-C Power Delivery), capable of supporting bidirectional data transmission.
[0061] Exemplarily, the first end of the first interface is connected to the mobile broadband device by inserting the mobile broadband device into an M.2 slot, the second end of the first interface is connected to the first end of the first control module by connecting several pins of the first interface to the GPIO port of the first control module, the second end of the first control module is connected to the first end of the first input-output module by connecting an I2C port, a Serial (I2C) port, a Driver (SPI) port, an ADC port, a DAC port and an IRQ port of the first control module to the first input-output module respectively, the second end of the first input-output module is connected to the first end of the first transmission module by connecting the first input-output module to the hardware input / output pins of the first transmission module through a CC1 cable and a CC2 cable, and the second end of the first transmission module is connected to the first end of the second transmission module by connecting multiple pins of the first transmission module except the hardware input / output pins (CC1, CC2, SUB and VBUS) and multiple pins of the second transmission module except the hardware input / output pins (CC1, CC2, SUB and VBUS) to the same contact.
[0062] Exemplarily, the connection between the second end of the second transmission module and the first end of the second input-output module can be a connection between the second input-output module and the hardware input / output (CC1, CC2, SUB and VBUS) pins of the second transmission module, the connection between the second end of the second input-output module and the first end of the second control module can be a connection between the I2C port, UART port, SPI port, ADC port, DAC port and RTC port of the second control module and the second input-output module respectively, the connection between the second end of the second control module and the first end of the second interface can be a connection between several pins of the second interface and the GPIO port of the second control module, and the connection between the second end of the second interface and the mobile terminal device can be an M.2 interface connected to the mobile terminal.
[0063] The first communication unit is used to determine the first IO attribute information and the first IO status information of the mobile broadband device when the mobile broadband device is inserted into the first interface, and send the first IO attribute information and the first IO status information to the second communication unit, so that the second communication unit adjusts the interface information of the second interface according to the first IO attribute information and the first IO status information; the second communication unit is used to determine the second IO attribute information and the second IO status information of the mobile terminal when the mobile terminal is inserted into the second interface, and send the second IO attribute information and the second IO status information to the first communication unit, so that the first communication unit adjusts the interface information of the first interface according to the second IO attribute information and the second IO status information.
[0064] It can be understood that when data is transmitted between the mobile broadband device and the mobile terminal, in order to ensure the integrity of the data during the data transmission process, the data interface of the mobile broadband device and the mobile terminal device during transmission can be adjusted when the mobile broadband device and the mobile terminal are inserted, that is, the first IO attribute information and the first IO state information of the first interface are adjusted, and the second IO attribute information and the second IO state information of the second interface are adjusted, thereby helping to ensure correct communication and data exchange between the mobile broadband device and the mobile terminal.
[0065] Optionally, the first communication unit can receive first IO attribute information and first IO status information of the mobile broadband device when the mobile broadband device is inserted into the first interface, and send the first IO attribute information and the first IO status information to the second communication unit, so that the second communication unit adjusts the interface information of the second interface according to the first IO attribute information and the first IO status information.
[0066] Optionally, the second communication unit can receive second IO attribute information and second IO status information of the mobile terminal when the mobile terminal is inserted into the second interface, and send the second IO attribute information and the second IO status information to the first communication unit, so that the first communication unit adjusts the interface information of the first interface according to the second IO attribute information and the second IO status information.
[0067] That is to say, the communication device provided in the embodiment of the present application can adjust the second interface according to the first IO attribute information and the first IO state information of the mobile broadband device during data transmission, and can also adjust the first interface according to the second IO attribute information and the second IO state information of the mobile terminal. For example, the adjustment scheme can be determined according to the insertion order of the mobile broadband device and the mobile terminal, which is not elaborated in this application.
[0068] Among them, the first IO attribute information refers to the basic attributes of the first interface, which may include the port type of the first interface (digital port or analog port), the data direction of the first interface (input port, output port or bidirectional port), the signal level of the first interface (voltage range when transmitting signals), the driving capability of the first interface (the current size that the port can provide), the pull-up / pull-down resistor of the first interface (whether there is a default state), and the interrupt function of the first interface (whether an interrupt signal is sent when the port state changes). The first IO state information refers to the real-time state or data value of the first interface when transmitting data at a certain moment, which may include the current level of the first interface (whether the port is at a high level or a low level), the data value of the first interface (the current data value or voltage value or current value of the port), the state change of the first interface, and the error state of the first interface.
[0069] Among them, the second IO attribute information refers to the basic attributes of the second interface, which may include the port type of the second interface (digital port or analog port), the data direction of the second interface (input port, output port or bidirectional port), the signal level of the second interface (voltage range when transmitting signals), the driving capability of the second interface (the current size that the port can provide), the pull-up / pull-down resistor of the second interface (whether there is a default state), and the interrupt function of the second interface (whether an interrupt signal is sent when the port state changes). The second IO state information refers to the real-time state or data value of the second interface when transmitting data at a certain moment, which may include the current level of the second interface (whether the port is at a high level or a low level), the data value of the second interface (the current data value or voltage value or current value of the port), the state change of the second interface, and the error state of the second interface.
[0070] Among them, mobile broadband devices can be devices that provide wireless high-speed Internet access services based on mobile communication networks (such as 2G, 3G, 4G, 5G, etc.), such as MBB devices (Mobile Broadband). Mobile terminals can be any device that needs to access the network, such as smartphones, tablet computers, and laptops.
[0071] The first communication unit is used to send data from the mobile broadband device to the second communication unit and send data from the second communication unit to the mobile broadband device through the first interface, the first control module, the first input-output module and the first transmission module; the second communication unit is used to send data from the mobile terminal to the first communication unit and send data from the first communication unit to the mobile terminal through the second interface, the second control module, the second input-output module and the second transmission module.
[0072] It can be understood that when the first interface and the second interface are adjusted to interfaces with the same IO attribute information and the same IO status information, the mobile broadband device and the mobile terminal can transmit data through the communication device provided in the embodiment of the present application, thereby ensuring the integrity of the signal transmission process between the mobile broadband device and the mobile terminal.
[0073] Optionally, the first communication unit can send out-of-band data from the mobile broadband device to the second communication unit through the first interface, the first control module, the first input-output module and the first transmission module. After receiving the data from the mobile broadband device, the second communication unit can send the out-of-band data from the mobile broadband device to the mobile terminal through the second transmission module, the second input-output module, the second control module and the second interface.
[0074] Optionally, the second communication unit can send out-of-band data from the mobile terminal to the first communication unit through the second interface, the second control module, the second input-output module and the second transmission module. After receiving the data from the mobile terminal, the first communication unit can send the out-of-band data from the mobile terminal to the mobile broadband device through the first transmission module, the first input-output module, the first control module and the first interface.
[0075] That is to say, the communication device provided in the embodiment of the present application is bidirectional during data transmission, and can be flexibly adjusted according to the needs of data transmission, which is not elaborated in this application.
[0076] In this embodiment, by setting a first communication unit and a second communication unit in the communication device, and setting a first interface, a first control module, a first input-output module and a first transmission module connected in sequence in the first communication unit, and setting a second interface, a second control module, a second input-output module and a second transmission module connected in sequence in the second communication unit, it is possible to adjust the first interface or the second interface after the mobile terminal broadband device and the mobile terminal device are connected, so that the first interface of the first communication unit and the second interface of the second communication unit can realize data transmission between the mobile broadband device and the mobile terminal with the same IO attribute information and the same IO status information, thereby ensuring the integrity of the signal transmission process between the mobile broadband device and the mobile terminal.
[0077] In one possible implementation, the first communication unit is also used to adjust the state of the first target pin of the first transmission module to the target state before sending data to the second communication unit, so that the state of the second target pin connected to the first target pin on the second transmission module is adjusted to the target state accordingly; the second communication unit is also used to adjust the state of the second target pin of the second transmission module to the target state before sending data to the first communication unit, so that the state of the first target pin connected to the second target pin on the first transmission module is adjusted to the target state accordingly.
[0078] It is understandable that when the mobile broadband device and the mobile terminal are transmitting data, in order to improve the integrity and accuracy of data during data transmission, the first communication unit and the second communication unit may also synchronize the timing during data transmission to avoid data loss or device failure.
[0079] Optionally, before sending data to the second communication unit, the first communication unit may adjust the state of the first target pin of the first transmission module to a target state, so that the state of the second target pin connected to the first target pin on the second transmission module is correspondingly adjusted to the target state. The target state may be adjusted from a pull-down state to a pull-up state or from a disconnected state to an accessed state.
[0080] For example, taking the mobile terminal as a device with a PCIe interface, the PCIe interface device has multiple I / O states such as Perst (Persist State) / Pwake (Power Wake) / CLKREQ (Clock Request), etc., and the idle pin (such as SBU2) of the first transmission module or the second transmission module can be used as the starting point of data transmission, thereby achieving precise timing synchronization between the first communication unit and the second communication unit regarding the changes in I / O states such as Perst, Pwake, CLKREQ, etc.
[0081] In a possible implementation manner, the first communication unit is specifically configured to:
[0082] The first IO attribute information and the first IO status information sent by the mobile broadband device are obtained through the first interface, the first IO attribute information and the first IO status information are encapsulated into a first IO message through the first control module, and the first IO message is sent to the second communication unit through the first input and output module and the first transmission module, so that the second communication unit adjusts the interface information of the second interface according to the first IO message.
[0083] It can be understood that IO attribute synchronization and IO status synchronization can be performed simultaneously or separately.
[0084] Exemplarily, when the mobile broadband device is inserted into the first interface, the communication apparatus provided in the embodiment of the present application may first perform IO attribute synchronization, and after the IO attribute synchronization is completed, perform IO status synchronization, and at the same time, continue to perform IO status synchronization during data transmission.
[0085] Optionally, Figure 2 A schematic diagram of synchronizing IO attribute information between a first communication unit and a second communication unit in a communication device provided in an embodiment of the present application, referring to Figure 2 As shown, the first communication unit can obtain the pre-configured first IO attribute information through the first interface, and pack the first IO attribute information into a first IO message through the first control module, and execute the uplink request for the first IO message through the first control module, and convert the first IO message into a coded signal through the first control module, and send it to the second communication unit through the first input and output module and the first transmission module.
[0086] Optionally, continue to refer to Figure 2As shown, the second communication unit receives the coded signal through the second input / output module and the second transmission module, parses the coded signal through the second control module, and parses the first IO message through the second control module to obtain the first IO attribute information, and configures the second interface according to the first IO attribute information.
[0087] Optionally, continue to refer to Figure 2 As shown, the second communication unit can also send a control message (GoodCRC) to the first communication unit to indicate that the first IO message has been received normally, so that after receiving the control message, the first communication unit determines through the first control module that the IO attribute synchronization between the first communication unit and the second communication unit has been completed.
[0088] Optionally, Figure 3 A schematic diagram of the synchronization of IO status information between the first communication unit and the second communication unit in the communication device provided in the embodiment of the present application, referring to Figure 3 As shown, the first communication unit can obtain the first IO status information through the first interface, and pack the first IO status information into a first IO message through the first control module, and execute the uplink request for the first IO message through the first control module, and convert the first IO message into a coded signal through the first control module, and send it to the second communication unit through the first input and output module and the first transmission module.
[0089] Optionally, continue to refer to Figure 3 As shown, the second communication unit receives the coded signal through the second input / output module and the second transmission module, parses the coded signal through the second control module, and parses the first IO message through the second control module to obtain the first IO state information, and configures the second interface according to the first IO state information.
[0090] Optionally, continue to refer to Figure 3 As shown, the second communication unit can also send a control message (GoodCRC) to the first communication unit to indicate that the first IO message has been received normally, so that after receiving the control message, the first communication unit determines through the first control module that the IO state synchronization between the first communication unit and the second communication unit has been completed.
[0091] The first IO attribute information and the first IO status information sent by the mobile broadband device are obtained through the first interface, the first IO attribute information and the first IO status information are encapsulated as a first IO message through the first control module, and the first IO message is sent to the second communication unit through the first input and output module and the first transmission module, so that the second communication unit adjusts the interface information of the second interface according to the first IO message, which can ensure that the integrity and consistency of the data are maintained during the data reading and writing process, and at the same time, reduce the crash or instability of the mobile broadband device and the mobile terminal caused by inconsistent input and output operations, thereby ensuring the overall performance of the communication device provided in the embodiment of the present application.
[0092] In a possible implementation manner, the second communication unit is specifically configured to:
[0093] The second IO attribute information and the second IO status information sent by the mobile terminal are obtained through the second interface, the second IO attribute information and the second IO status information are encapsulated into a second IO message through the second control module, and the second IO message is sent to the first communication unit through the second input and output module and the second transmission module, so that the first communication unit adjusts the interface information of the first interface according to the second IO message.
[0094] It can be understood that IO attribute synchronization and IO status synchronization can be performed simultaneously or separately.
[0095] Exemplarily, when the mobile terminal is plugged into the second interface, the communication device provided in the embodiment of the present application may first perform IO attribute synchronization, and after the IO attribute synchronization is completed, perform IO status synchronization, and at the same time, continue to perform IO status synchronization during data transmission.
[0096] Optionally, Figure 4 Another schematic diagram of the first communication unit and the second communication unit performing IO attribute information synchronization in the communication device provided in the embodiment of the present application, referring to Figure 4 As shown, the second communication unit can obtain pre-configured second IO attribute information through the second interface, and package the second IO attribute information into a second IO message through the second control module, and execute the downlink request for the second IO message through the second control module, and convert the second IO message into a coded signal through the second control module, and send it to the first communication unit through the second input and output module and the second transmission module.
[0097] Optionally, continue to refer to Figure 4As shown, the first communication unit receives the encoded signal through the first input-output module and the first transmission module, parses the encoded signal through the first control module, and parses the first IO message through the first control module to obtain the first IO attribute information, and configures the first interface according to the first IO attribute information.
[0098] Optionally, continue to refer to Figure 4 As shown, the first communication unit can also send a control message (GoodCRC) to the second communication unit to indicate that the second IO message has been received normally, so that after receiving the control message, the second communication unit determines through the second control module that the IO attribute synchronization between the second communication unit and the first communication unit has been completed.
[0099] Optionally, Figure 5 Another schematic diagram of the first communication unit and the second communication unit performing IO state information synchronization in the communication device provided in the embodiment of the present application, referring to Figure 5 As shown, the second communication unit can obtain the second IO status information through the second interface, and package the second IO status information into a second IO message through the second control module, and execute the downlink request for the second IO message through the second control module, and convert the second IO message into a coded signal through the second control module, and send it to the first communication unit through the second input and output module and the second transmission module.
[0100] Optionally, continue to refer to Figure 5 As shown, the first communication unit receives the coded signal through the first input / output module and the first transmission module, parses the coded signal through the first control module, and parses the first IO message through the first control module to obtain the first IO state information, and configures the first interface according to the first IO state information.
[0101] Optionally, continue to refer to Figure 5 As shown, the first communication unit can also send a control message (GoodCRC) to the second communication unit to indicate that the second IO message has been received normally, so that after receiving the control message, the second communication unit determines through the second control module that the IO status synchronization between the second communication unit and the second communication unit has been completed.
[0102] The second IO attribute information and the second IO status information sent by the mobile terminal are obtained through the second interface, the second IO attribute information and the second IO status information are encapsulated as a second IO message through the second control module, and the second IO message is sent to the first communication unit through the second input and output module and the second transmission module, so that the first communication unit adjusts the interface information of the first interface according to the second IO message, which can ensure that the integrity and consistency of the data are maintained during the data reading and writing process, and at the same time, reduce the crash or instability of the mobile broadband device and the mobile terminal due to inconsistent input and output operations, thereby ensuring the overall performance of the communication device provided in the embodiment of the present application.
[0103] In a possible implementation manner, the first communication unit is specifically configured to:
[0104] The first transmission data from the mobile broadband device is received through the first interface, the first transmission data is encoded through the first control module to obtain first encoded data, and the first encoded data is sent to the second communication unit through the first input and output module and the first transmission module in sequence.
[0105] Optionally, after the mobile broadband device is connected to the communication device provided in the embodiment of the present application, the first communication unit receives the first transmission data from the mobile broadband device through the first interface, encodes the first transmission data through the first control module to obtain first encoded data, and sends the first encoded data to the second communication unit through the first input-output module and the first transmission module in sequence.
[0106] The first communication unit is also specifically used to receive the second encoded data from the second communication unit through the first transmission module and the first input and output module in sequence, decode the second encoded data through the first control module to obtain second transmission data, and send the second transmission data to the mobile broadband device through the first interface.
[0107] Optionally, after the mobile terminal accesses the communication device provided in the embodiment of the present application, the first communication unit can also receive the second encoded data from the second communication unit through the first transmission module and the first input and output module in sequence, decode the second encoded data through the first control module to obtain second transmission data, and send the second transmission data to the mobile broadband device through the first interface.
[0108] In a possible implementation manner, the second communication unit is specifically configured to:
[0109] The second transmission data from the mobile terminal is received through the second interface, the second transmission data is encoded through the second control module to obtain second encoded data, and the second encoded data is sent to the first communication unit through the second input-output module and the second transmission module in sequence.
[0110] Optionally, the second communication unit can receive second transmission data from the mobile terminal through the second interface, encode the second transmission data through the second control module to obtain second encoded data, and send the second encoded data to the first communication unit through the second input and output module and the second transmission module in sequence.
[0111] The second communication unit is also specifically used to receive the first encoded data from the first communication unit through the second transmission module and the second input and output module in sequence, decode the second encoded data through the second control module to obtain the first transmission data, and send the first transmission data to the mobile terminal through the second interface.
[0112] Optionally, the second communication unit can receive the first encoded data from the first communication unit through the second transmission module and the second input and output module in sequence, decode the second encoded data through the second control module to obtain the first transmission data, and send the first transmission data to the mobile terminal through the second interface.
[0113] Figure 6 Another structural schematic diagram of a communication device provided in an embodiment of the present application.
[0114] In one possible implementation, referring to Figure 6 As shown, in Figure 1 On the basis of, the first communication unit further includes: a first high-speed transmission module, and the second communication unit further includes: a second high-speed transmission module.
[0115] Optionally, the third end of the first interface is connected to the third end of the first input-output module, the third end of the second interface is connected to the third end of the second input-output module, one end of the first high-speed transmission module is connected to the fourth end of the first interface, the other end of the first high-speed transmission module is connected to the third end of the first transmission module, one end of the second high-speed transmission module is connected to the fourth end of the second interface, and the other end of the second high-speed transmission module is connected to the third end of the second transmission module.
[0116] Specifically, the first high-speed transmission module and the second high-speed transmission module can be USB / PCIe repeaters. The first high-speed transmission module can also be connected to the Serial (such as: I2C) port of the first control module, and the second high-speed transmission module can also be connected to the Serial (such as: I2C) port of the second control module. Through the cooperation between the first control module and the first high-speed transmission module, and through the cooperation between the second control module and the second high-speed transmission module, the in-band data can be conditioned and balanced, and the transmission distance of the USB / PCIe bus can be extended, thereby improving the transmission quality of the communication device provided in the embodiment of the present application during data transmission, and promptly discovering and reporting faults in data transmission to ensure the continuity and stability of data transmission.
[0117] The first communication unit is further configured to send data from the mobile broadband device to the second communication unit through the first high-speed transmission module and the first transmission module, and to send data from the second communication unit to the mobile broadband device.
[0118] Optionally, the first communication unit may send the in-band data from the mobile broadband device to the second communication unit through the first high-speed transmission module and the first transmission module, and send the in-band data from the second communication unit to the mobile broadband device.
[0119] The second communication unit is further used to send data from the mobile terminal to the first communication unit through the second high-speed transmission module and the second transmission module, and to send data from the first communication unit to the mobile terminal.
[0120] Optionally, the second communication unit may send the in-band data from the mobile terminal to the first communication unit through the second high-speed transmission module and the second transmission module, and send the in-band data from the first communication unit to the mobile terminal.
[0121] In one possible implementation, the first communication unit is specifically used to receive third transmission data from the mobile broadband device through the first interface, and send the third transmission data to the second communication unit through the first transmission module and the first high-speed transmission module, and send the fourth transmission data from the second communication unit to the mobile broadband device.
[0122] Optionally, the first communication unit can receive third transmission data from the mobile broadband device through the first interface, and after performing data equalization and de-emphasis on the third transmission data through the first high-speed transmission module, send the third transmission data to the second communication unit through the first transmission module, and send the fourth transmission data from the second communication unit to the mobile broadband device through the first high-speed transmission module.
[0123] Optionally, the second communication unit may receive fourth transmission data from the mobile terminal through the second interface, and after performing data equalization and de-emphasis processing on the fourth transmission data through the second high-speed transmission module, send the fourth transmission data to the first communication unit through the second transmission module, and send the third transmission data from the first communication unit to the mobile terminal through the second high-speed transmission module. The third transmission data and the fourth transmission data are both in-band data.
[0124] Figure 7 A schematic diagram of another structure of a communication device provided in an embodiment of the present application.
[0125] In one possible implementation, referring to Figure 7 As shown, in Figure 6 On the basis of, the first communication unit further includes: a third interface, and the third interface is connected to the first control module.
[0126] Exemplarily, the third interface can be a Type-C interface, one end of the third interface is connected to the first control module, specifically, the third interface can be connected to the USB interface on the first control module, and the other end of the third interface is connected to the host computer, wherein the host computer can be the above-mentioned mobile terminal.
[0127] The first communication unit is further configured to obtain first status data of the first communication unit during data transmission through the first input / output module, and send the first status data to the mobile terminal through the third interface.
[0128] Optionally, the first input-output module can monitor the first state data of the first communication unit during the data transmission process, so that the first communication unit can collect the first state data of the first communication unit through the third interface, the first control module and the first input-output module. The first state data can be information such as current, voltage, power and IO state of the first communication unit during the data transmission process.
[0129] The first communication unit is further used to obtain the second status data of the second communication unit through the second input-output module, the second transmission module and the first transmission module, and send the first status data to the mobile terminal through the third interface.
[0130] Optionally, the second input-output module can monitor the second status data of the second communication unit during the data transmission process, so that the first communication unit can collect the second status data of the second communication unit through the third interface, the first control module, the first input-output module, the first transmission module, the second transmission module and the second input-output module.
[0131] The second status data may be information such as current, voltage, power, and IO status of the second communication unit during data transmission.
[0132] By setting the third interface in the first communication unit, the communication device provided in the embodiment of the present application can access the physical detection device for analysis when a problem occurs in the mobile broadband device during data transmission, thereby helping to ensure correct communication and data exchange between the mobile broadband device and the mobile terminal.
[0133] In one possible implementation, continue to refer to Figure 7 As shown, the first communication unit is further used to perform firmware configuration on the first high-speed transmission module through the third interface, and the second communication unit is further used to perform firmware configuration on the second high-speed transmission module through the third interface.
[0134] Optionally, the host computer can send firmware configuration information to the first communication unit through the third interface, so that the first communication unit can perform firmware configuration on the first high-speed transmission module through the first control module, thereby enabling the first high-speed transmission module to perform data balancing and de-emphasis and other processing.
[0135] Optionally, the host computer can send firmware configuration information to the second communication unit through the third interface, so that the second communication unit can perform firmware configuration on the second high-speed transmission module through the second control unit, so that the second high-speed transmission module can perform data equalization and de-emphasis and other processing. The firmware configuration information may include multiple sets of signal conditioning parameters such as the PCB material of the first communication unit and the second communication unit, the length of the Type-C cable, etc.
[0136] The first high-speed transmission module is firmware configured through the third interface, and the second high-speed transmission module is firmware configured through the third interface, so that the communication device provided in the embodiment of the present application can be flexibly adjusted during the research and development and debugging process, thereby improving the overall performance of the communication device provided in the embodiment of the present application.
[0137] For example, Figure 8 Another structural diagram of a communication device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the I2C port, Serial (I2C) port, Driver (SPI) port, ADC port and IRQ port of the first control module are respectively connected to the first input-output module, the I / O port of the first control module is connected to the first interface, the Serial (I2C) port of the first control module is connected to the first high-speed transmission module, the first input-output module is connected to the CC1, CC2, VBUS and SUB pins of the first transmission module, and the USB port of the first control module is connected to the third interface.
[0138] For example, continue to refer to Figure 8 As shown, the I2C port, Driver (SPI) port, ADC port and IRQ port of the second control module are respectively connected to the second input-output module, the Serial (I2C) port of the second control module is connected to the second high-speed transmission module, and the second input-output module is connected to the CC1, CC2, VBUS and SUB pins of the second transmission module.
[0139] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A communication device, characterized in that: include: A first communication unit and a second communication unit; The first communication unit includes a first interface, a first control module, a first input-output module, and a first transmission module connected in sequence; The second communication unit includes a second interface, a second control module, a second input-output module and a second transmission module connected in sequence; The first communication unit is used to determine first IO attribute information and first IO state information of the mobile broadband device when the mobile broadband device is inserted into the first interface, and send the first IO attribute information and the first IO state information to the second communication unit, so that the second communication unit adjusts the interface information of the second interface according to the first IO attribute information and the first IO state information; The second communication unit is used to determine the second IO attribute information and the second IO state information of the mobile terminal when the mobile terminal is inserted into the second interface, and send the second IO attribute information and the second IO state information to the first communication unit, so that the first communication unit adjusts the interface information of the first interface according to the second IO attribute information and the second IO state information; The first communication unit is used to send data from the mobile broadband device to the second communication unit and send data from the second communication unit to the mobile broadband device through the first interface, the first control module, the first input and output module and the first transmission module; The second communication unit is used to send data from the mobile terminal to the first communication unit and send data from the first communication unit to the mobile terminal through the second interface, the second control module, the second input / output module and the second transmission module.
2. The communication device according to claim 1, characterized in that The first communication unit is further configured to adjust the state of the first target pin of the first transmission module to a target state before sending data to the second communication unit, so that the state of the second target pin connected to the first target pin on the second transmission module is correspondingly adjusted to the target state; The second communication unit is also used to adjust the state of the second target pin of the second transmission module to a target state before sending data to the first communication unit, so that the state of the first target pin connected to the second target pin on the first transmission module is correspondingly adjusted to the target state.
3. The communication device according to claim 1, characterized in that The first communication unit is specifically used for: The first IO attribute information and the first IO status information sent by the mobile broadband device are obtained through the first interface, the first IO attribute information and the first IO status information are encapsulated into a first IO message through the first control module, and the first IO message is sent to the second communication unit through the first input and output module and the first transmission module, so that the second communication unit adjusts the interface information of the second interface according to the first IO message.
4. The communication device according to claim 1, characterized in that: The second communication unit is specifically used for: The second IO attribute information and the second IO status information sent by the mobile terminal are obtained through the second interface, the second IO attribute information and the second IO status information are encapsulated into a second IO message through the second control module, and the second IO message is sent to the first communication unit through the second input and output module and the second transmission module, so that the first communication unit adjusts the interface information of the first interface according to the second IO message.
5. The communication device according to claim 1, characterized in that: The first communication unit is specifically used for: receiving first transmission data from a mobile broadband device through the first interface, encoding the first transmission data through the first control module to obtain first encoded data, and sending the first encoded data to the second communication unit through the first input and output module and the first transmission module in sequence; The first communication unit is also specifically used to receive second encoded data from the second communication unit through the first transmission module and the first input-output module in sequence, decode the second encoded data through the first control module to obtain second transmission data, and send the second transmission data to the mobile broadband device through the first interface.
6. The communication device according to claim 1, characterized in that: The second communication unit is specifically used for: receiving second transmission data from the mobile terminal through the second interface, encoding the second transmission data through the second control module to obtain second encoded data, and sending the second encoded data to the first communication unit through the second input-output module and the second transmission module in sequence; The second communication unit is also specifically used to receive the first encoded data from the first communication unit through the second transmission module and the second input-output module in sequence, decode the second encoded data through the second control module to obtain the first transmission data, and send the first transmission data to the mobile terminal through the second interface.
7. The communication device according to any one of claims 1 to 6, characterized in that: The first communication unit further includes: a first high-speed transmission module, and the second communication unit further includes: a second high-speed transmission module; The first communication unit is further used to send data from the mobile broadband device to the second communication unit through the first high-speed transmission module and the first transmission module, and to send data from the second communication unit to the mobile broadband device; The second communication unit is further configured to send data from the mobile terminal to the first communication unit through the second high-speed transmission module and the second transmission module, and to send data from the first communication unit to the mobile terminal.
8. The communication device according to claim 7, characterized in that: The first communication unit is specifically configured to receive third transmission data from a mobile broadband device through the first interface, send the third transmission data to the second communication unit through the first transmission module and the first high-speed transmission module, and send fourth transmission data from the second communication unit to the mobile broadband device; The second communication unit is specifically used to receive fourth transmission data from the mobile terminal through the second interface, and send the fourth transmission data to the first communication unit through the second transmission module and the second high-speed transmission module, and send the third transmission data from the first communication unit to the mobile terminal.
9. The communication device according to claim 7, characterized in that: The first communication unit further includes: a third interface; The third interface is connected to the first control module; The first communication unit is further used to obtain first status data of the first communication unit during data transmission through the first input-output module, and send the first status data to the mobile terminal through the third interface; The first communication unit is further configured to obtain second status data of the second communication unit through the second input / output module, the second transmission module, and the first transmission module, and to send the first status data to the mobile terminal through the third interface.
10. The communication device according to claim 9, characterized in that: The first communication unit is further used to perform firmware configuration on the first high-speed transmission module through the third interface, and the second communication unit is further used to perform firmware configuration on the second high-speed transmission module through the third interface.
Citation Information
Patent Citations
Data card and communication method and system thereof
CN102869125A
Configuration method and device for user terminal capable of accessing mobile broadband network
CN104427645A
Control method and system for audio and video protocol conversion chip
CN106911983A
Information transmission method and device related to MBB equipment and power consumption control system
CN118158785A
Hand-held electronic device and communication method applicable thereto
US20110058538A1