Communication method, terminal device, communication system, and storage medium
Patent Information
- Application Number
- CN202611098420.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-23
- Publication Date
- 2026-08-18
AI Technical Summary
[0003]然而,Pogo pin通信通常是通过单总线通信协议(1wire)或者串行数据总线(universal asynchronous receiver/transmitter, UART)进行低速通信,如果终端设备冗余支持连接多个外部设备,也会使实际通信速率降低,通信时延变大,影响用户体验
[0035]第九方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任意一种实现方式所描述的通信方法。
Smart Images

Figure CN122602319A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a communication method, terminal equipment, communication system and storage medium. Background Technology
[0002] Typically, terminal devices (such as tablets) connect to external devices via Bluetooth or Wi-Fi to achieve wireless communication. These external devices can be styluses, touch pens, keyboards, mice, gamepads, and Bluetooth headsets. Connecting two or more external devices simultaneously to a terminal device significantly increases wireless communication latency, impacting user experience. Therefore, a magnetic pogo pin can be incorporated into the terminal device as a communication interface for external devices to reduce wireless communication latency.
[0003] However, Pogo pin communication is usually conducted at low speeds via a single-wire communication protocol or a serial data bus (universal asynchronous receiver / transmitter, UART). If the terminal device redundantly supports connecting multiple external devices, the actual communication rate will be reduced, the communication latency will be increased, and the user experience will be affected. Summary of the Invention
[0004] This application provides a communication method, terminal device, communication system, and storage medium, which can reduce the communication latency of a master device (i.e., a first terminal device) when connecting multiple slave devices (i.e., second terminal devices). The technical solution is as follows: Firstly, a communication method is provided, which is applied to a first terminal device (as a master device). The magnetic contacts of the master device support magnetic attachment to magnetic contacts of various types of terminal devices, and different types of terminal devices communicate with the master device using different communication frame formats. Taking the second terminal device as any of the various types of terminal devices as an example, when the magnetic contacts of the first terminal device are attached to the first magnetic contacts of the second terminal device (as a slave device), that is, after the master device and the slave device are connected through the magnetic contacts, they perform a handshake or connection (e.g., ping). For example, pulling the level high or low at fixed times is equivalent to one or more pulses, used to identify whether the two have successfully paired (or successfully handshaked). For example, the ping process can be initiated by the master device and responded by the slave device.
[0005] The communication method includes: after a second terminal device successfully pairs with a first terminal device, the first terminal device receives frame data sent by the second terminal device and identifies the device type of the second terminal device based on the frame data. Different device types are predefined for each type of second terminal device. The data structure of the frame data corresponds to the communication frame format and the device type. The first terminal device also stores parsing methods for communication frame formats matching different device types. For example, if the second terminal device is a keyboard, in a keyboard communication scenario, the data structure of the frame data includes the device type corresponding to the keyboard and the data packet of user input data obtained by the keyboard (i.e., the keyboard communication field). The first terminal device parses the frame data sent by the second terminal device during communication according to the parsing method of the communication frame format matching the device type, obtaining a parsing result. For example, the frame data is parsed using the keyboard's communication frame format parsing method to obtain user input information. The first terminal device responds to the task corresponding to the second terminal device based on the parsing result; for example, it responds to keyboard communication.
[0006] In related technologies, when a master device connects to multiple slave devices, the data structure of the frame data needs to include multiple fields because the types of slave devices are not distinguished. Slave devices can be keyboards, mice, styluses, touch pens, gamepads, headphones, fans, etc., and can also be rechargeable or battery-powered. The master device can supply power to the slave devices, and the master device can also be charged through the power supply connected to the slave devices. Thus, the data structure of the frame data needs to include fields such as charging type, keyboard communication, mouse communication, stylus communication, touch pen communication, gamepad communication, headphone communication, fan, and battery level. If a slave device (e.g., a keyboard) also supplies power to another slave device, the data structure of the frame data also needs to include fields such as mouse status, stylus status, touch pen status, gamepad status, and headphone status. Because of this, slave devices consume more communication resources when transmitting frame data, and the master device spends more time parsing the frame data, increasing the burden on Pogo pin communication.
[0007] In this embodiment, on the one hand, by directly connecting the Pogo pin, the burden on Bluetooth or Wi-Fi is directly reduced, and the communication latency is lowered; on the other hand, by defining different communication frame formats, the master device and the slave device can transmit and parse frame data according to the agreed communication frame format when communicating, thereby reducing the communication burden on the Pogo pin, lowering the communication latency, and achieving fast response.
[0008] In one possible approach, multiple types of terminal devices include any two of the following: charging devices, docking stations, charging input devices, wireless charging input devices, battery-free input devices, and battery-equipped input devices.
[0009] When the second terminal device is a charging device, the first terminal device acts as the power receiving end, and the task corresponding to the charging device is for the first terminal device to receive power.
[0010] When the second terminal device is a docking station, the first terminal device acts as a power receiving end or a power supply end. The tasks corresponding to the docking station are for the first terminal device to receive power or supply power, and when the docking station is connected to other charging input devices, to communicate with other charging input devices and receive frame data sent by other charging input devices during the communication process.
[0011] When the second terminal device is a charging input device, the first terminal device acts as a power receiving end or a power supply end. Its corresponding task to the charging input device is to receive power or supply power to the first terminal device, and to communicate with the charging input device and receive frame data sent by the charging input device during the communication process.
[0012] When the second terminal device is a wireless charging input device, the first terminal device acts as a power receiver or power supplier. Its tasks corresponding to the wireless charging input device are to receive or supply power to the first terminal device, and to communicate with the wireless charging input device, receiving frame data sent by the wireless charging input device during communication. Furthermore, when the wireless charging input device is connected to other charging input devices, the frame data sent by the wireless charging input device includes data packets of user input data obtained by the wireless charging input device and data packets of user input data obtained by other charging input devices.
[0013] When the second terminal device is a battery-free input device, the first terminal device acts as the power supply end. Its tasks corresponding to the battery-free input device are to supply power to the first terminal device, communicate with the battery-free input device, and receive frame data sent by the battery-free input device during the communication process.
[0014] When the second terminal device is a battery-powered input device, the first terminal device acts as the power supply. Its tasks corresponding to the battery-powered input device are to supply power to the first terminal device, communicate with the battery-powered input device, and receive frame data sent by the battery-powered input device during communication.
[0015] In this embodiment, device types are predefined for different types of second terminal devices, with each device type, data frame structure, and communication frame format corresponding one-to-one. Transmitting and parsing frame data according to the agreed-upon communication frame format reduces the burden on Pogo pin communication, lowers communication latency, and enables rapid response.
[0016] In one possible implementation, after identifying the device type of the second terminal device based on frame data, the communication method further includes: displaying a reminder message corresponding to the second terminal device on the interface. The reminder message may be displayed in the form of a pop-up window, showing the task type of the task corresponding to the second terminal device, serving as a friendly reminder to the user, eliminating the user's uncertainty, and improving the user experience.
[0017] In one possible implementation, the charging device corresponds to a charging reminder message to alert the user that the first terminal device may be overheating. The docking station corresponds to an expansion reminder message to alert the user that the first terminal device can connect to multiple magnetic ecosystem expansion accessories. The charging input device or wireless charging input device corresponds to a charging communication reminder message or a power supply communication reminder message. The battery-less input device or the battery-equipped input device corresponds to a power supply communication reminder message. Specifically, the charging communication reminder message alerts the user that the first terminal device may be overheating and that input from the second terminal device may experience delays; the power supply communication reminder message alerts the user that the first terminal device may have insufficient battery power and that input from the second terminal device may experience delays.
[0018] The reminder messages correspond to the device type. By displaying different reminder messages, users can be reminded of different possible scenarios, allowing them to have psychological expectations for the occurrence of different scenarios and improving the user experience.
[0019] In one possible implementation, when the device type is a charging device, the frame data structure includes a charging type field. The aforementioned steps for responding to the second terminal device are implemented by charging according to the charging type. The data structure and parsing method of the frame data involved in this charging process are related to the charging device and do not involve other device types, thus reducing the burden of Pogo pin communication, lowering communication latency, and achieving fast charging response.
[0020] In one possible implementation, when the device type is a docking station, the frame data data structure includes a bus device type field. The steps for responding to the second terminal device are implemented as follows: determining the power mode and communication protocol based on the bus device type. When the power mode is a power supply mode, power is supplied to other charging input devices, and responses are made to the communications of other charging input devices according to the communication protocol, receiving frame data sent by other charging input devices; wherein, other charging input devices refer to charging input devices attached to the second magnetic contact of the docking station. When the power mode is a power receiving mode (carrying a charging type), charging is performed according to the charging type, and responses are made to the communications of other charging input devices according to the communication protocol, receiving frame data sent by other charging input devices. In this scenario, the frame data also includes data packets of user input data acquired by other charging input devices. When the number of other charging input devices connected to the docking station is two or more, the first terminal device initiates a time division multiplexing (TDM) mechanism, responding to the communications of at least two other charging input devices in a time-division manner according to the communication protocol, and receiving frame data sent by at least two other charging input devices in a time-division manner. The data structure and parsing method of the frame data involved in the charging or power supply communication process are all related to the docking station and do not involve other types of devices, which reduces the burden of Pogo pin communication, reduces communication latency, and achieves fast response.
[0021] In one possible implementation, when the device type is a charging input device, the frame data structure includes a charging type field and a communication field. The steps for responding to the second terminal device are implemented as follows: when the parsing result indicates that the charging input device is connected to an adapter, charging is performed according to the charging type, and in response to the communication of the charging input device according to the communication protocol, frame data sent by the charging input device is received. When the parsing result indicates that the charging input device is not connected to an adapter, power is supplied to the charging input device, and in response to the communication of the charging input device according to the communication protocol, frame data sent by the charging input device is received. In this scenario, the frame data also includes data packets of user input data acquired by the charging input device. The data structure and parsing method of the frame data involved in this charging communication or power supply communication process are all related to the charging input device and do not involve other device types, reducing the burden of Pogo pin communication, reducing communication latency, and achieving fast response.
[0022] In one possible implementation, when the device type is a wireless charging input device and the second magnetic contact of the wireless charging input device is attached to the magnetic contact of another charging input device, the data structure of the frame data includes an adapter connection field, a charging type field, a communication field, and status fields of the other charging input devices. The above-mentioned steps for responding to the second terminal device are implemented as follows: when the adapter connection status in the parsing result indicates that the wireless charging input device is connected to the adapter, charging is performed according to the charging type; and, in response to the communication of the wireless charging input device according to the communication protocol, frame data sent by the wireless charging input device is received; this frame data includes data packets of user input data acquired by the wireless charging input device and data packets of user input data acquired by the other charging input devices; when the adapter connection status in the parsing result indicates that the wireless charging input device is not connected to the adapter, power is supplied to the wireless charging input device; and, in response to the communication of the wireless charging input device according to the communication protocol, frame data sent by the wireless charging input device is received; this frame data includes data packets of user input data acquired by the wireless charging input device and data packets of user input data acquired by the other charging input devices. The data structure and parsing method of the frame data involved in the charging or power supply communication process are all related to the wireless charging input device and do not involve other types of devices. This reduces the burden of Pogo pin communication, lowers communication latency, and enables fast response.
[0023] In one possible implementation, when the device type is a battery-free input device, the frame data structure includes a communication field. The steps described above for responding to the second terminal device are implemented by: supplying power to the battery-free input device, and, in response to the communication of the battery-free input device according to the communication protocol, receiving frame data sent by the battery-free input device. In this scenario, the frame data also includes data packets of user input data acquired by the battery-free input device. The data structure and parsing method of the frame data involved in this charging or power supply communication process are all related to the wireless charging input device and do not involve other device types, reducing the burden of Pogo pin communication, lowering communication latency, and achieving fast response.
[0024] In one possible implementation, when the device type is a battery-powered input device, the frame data structure includes a communication field and a battery level field. The steps for responding to the second terminal device are implemented as follows: charging the battery-powered input device, and responding to the communication of the battery-powered input device according to the communication protocol indicated by the communication field shown in the parsing result, and receiving frame data sent by the battery-powered input device. In this scenario, the frame data also includes data packets of user input data acquired by the battery-powered input device. The data structure and parsing method of the frame data involved in this charging or power supply communication process are all related to the battery-powered input device and do not involve other device types, reducing the burden of Pogo pin communication, reducing communication latency, and achieving fast charging response.
[0025] In one possible implementation, both the magnetic contact and the first magnetic contact include a first contact for grounding, a second contact for current transfer, and a third contact for transmitting frame data. The steps for responding to the second terminal device include charging according to the charging type indicated by the charging type field in the parsing result. The power receiving process of the first terminal device is implemented in hardware structure as follows: the first terminal device's charge pump and / or buck charging circuit receives power through a path formed by the power supply connected to the second terminal device, sequentially passing through the overvoltage protection circuit of the second terminal device, the second contact of the second terminal device, the second contact of the first terminal device, and the overvoltage protection circuit of the first terminal device, according to the charging type. By pre-defining different device types and different communication frame formats for each second terminal device, charging from the device to the master device can be achieved, enriching the applicability of the first terminal device and improving the expandability of the accessory end connected via the Pogo pin.
[0026] In one possible implementation, the buck charging circuit of the first terminal device has the function of providing a stable voltage. The above-mentioned steps for responding to the second terminal device are implemented by the following: the system chip receives frame data sent sequentially by the control unit of the second terminal device through the third contact of the second terminal device and the third contact of the first terminal device; and / or, the system chip controls the buck charging circuit to supply power or charge the second terminal device. By reusing the buck charging circuit, the second terminal device can be supplied power or charged without adding additional components or changing the circuit structure of the first terminal device, thus reducing the complexity of the circuit structure.
[0027] Secondly, a communication method is provided, which is applied to a second terminal device. When the first magnetic contact of the second terminal device is attracted to the magnetic contact of the first terminal device, the communication method includes: after successful pairing with the first terminal device, sending frame data to the first terminal device; the data structure of the frame data corresponds to the communication frame format and the device type of the second terminal device; so that the first terminal device parses the frame data sent by the second terminal device during communication according to the parsing method of the communication frame format matched with the device type, obtains the parsing result, and responds to the task corresponding to the second terminal device based on the parsing result.
[0028] Thirdly, a first terminal device is provided, the first terminal device including a magnetic contact, the magnetic contact supporting magnetic contact of various types of terminal devices, the first terminal device being used to execute the communication method involved in the first aspect or any implementation thereof.
[0029] In one possible implementation, the first terminal device includes a system chip and a buck charging circuit, the buck charging circuit having the function of providing a stable voltage; when the magnetic contact of the first terminal device is attracted to the first magnetic contact of the second terminal device, the system chip controls the buck charging circuit to supply power or charge the second terminal device.
[0030] Fourthly, a second terminal device is provided, the second terminal device including a first magnetic contact and a second magnetic contact, the first magnetic contact being able to be attached to the magnetic contact of the first terminal device as described in the third aspect, the second magnetic contact being able to be attached to the magnetic contacts of various types of terminal devices, and the second terminal device being used to perform the communication method described in the second aspect.
[0031] Fifthly, a communication system is provided, comprising a first terminal device as described in the third aspect and a second terminal device as described in the fourth aspect. The magnetic contacts of the first terminal device support attachment to the magnetic contacts of various types of terminal devices, and different types of terminal devices communicate with the first terminal device using different communication frame formats. The magnetic contacts of the first terminal device are attached to the first magnetic contacts of the second terminal device, which is any one of the various types of terminal devices. After successful pairing between the first and second terminal devices, the second terminal device sends frame data to the first terminal device. The first terminal device identifies the device type of the second terminal device based on the frame data. The data structure of the frame data corresponds to the communication frame format and the device type. The first terminal device parses the frame data sent by the second terminal device during communication according to a parsing method matching the device type, obtaining a parsing result. The first terminal device responds to the task corresponding to the second terminal device based on the parsing result.
[0032] In a sixth aspect, a terminal device is provided, the terminal device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, it implements a communication method as described in the first aspect or any implementation thereof, or a communication method as described in the second aspect.
[0033] In a seventh aspect, a computer-readable storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the communication method involved in the first aspect or any implementation thereof.
[0034] Eighthly, embodiments of this application provide a chip system that can be applied to a computer device. The chip system includes one or more processors, which are used to invoke computer instructions to cause the computer device to execute the communication method described in the first aspect or any implementation thereof.
[0035] Ninthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the communication method described in the first aspect or any implementation thereof.
[0036] The technical effects achieved by the second, third, fourth, fifth, sixth, seventh, eighth and ninth aspects mentioned above are similar to the technical effects achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0037] Figure 1 This is a schematic diagram of a terminal device provided in an embodiment of this application; Figure 2 This is a flowchart of a communication method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a communication system provided in an embodiment of this application; Figure 4 This is a schematic diagram of another communication system provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of another terminal device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of another terminal device provided in the embodiments of this application; Figure 8 This is a schematic diagram of the structure of another terminal device provided in the embodiments of this application; Figure 9 This is a flowchart of another communication method provided in an embodiment of this application. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0039] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.
[0040] The communication method provided in this application can be applied to terminal devices, including but not limited to mobile phones, foldable phones, smart wearable devices, tablet computers (portable Android devices, PADs), handheld computers, netbooks, laptops, portable computers, PDAs, wireless terminal devices, smart home devices, communication devices, digital broadcast receivers, personal digital assistants (PDAs), portable media players (PMPs), ultra-mobile personal computers (UMPCs), virtual reality devices, and other electronic devices with magnetic contacts (Pogo pins). This application does not limit the specific type of terminal device.
[0041] Pogo pins are commonly used for precision connections in electronic products such as mobile phones, portable electronic devices, communications, automobiles, medical devices, and aerospace. Terminal devices typically use Pogo pins to power or charge external devices; as a communication interface, the Pogo pin enables connection between terminal devices and external devices.
[0042] In related technologies, when a master device simultaneously connects to multiple slave devices wirelessly (via Bluetooth or Wi-Fi), it leads to increased wireless communication latency. Furthermore, in scenarios where a master device connects to multiple slave devices via a Pogo pin, the lack of differentiation between slave device types necessitates that the frame data structure include multiple fields. Slave devices consume significant communication resources when transmitting frame data, while the master device spends considerable time parsing the frame data, further increasing the communication burden on the Pogo pin.
[0043] Based on the aforementioned technical problem of large communication latency, this application provides a communication method that uses magnetic ecosystem extension accessories (i.e., second terminal devices) of various device types and magnetic charging accessories (i.e., charging devices) in the magnetic ecosystem extension accessories to implement a Pogo pin magnetic charging scheme, thereby reducing the communication latency of the master device when connecting multiple slave devices.
[0044] This communication method is applied to a first terminal device (as the master device). The master device's magnetic contacts support attachment to the magnetic contacts of various types of terminal devices, and different types of terminal devices use different communication frame formats to communicate with the master device. The first terminal device is, for example... Figure 1 As shown, Figure 1 This is a schematic diagram of a terminal device provided in an embodiment of this application. The magnetic contacts of the terminal device include a first contact for grounding, a second contact for current transmission, and a third contact for transmitting frame data. Based on the above... Figure 1 ,like Figure 2 As shown, Figure 2 This is a flowchart of a communication method provided in an embodiment of this application.
[0045] Taking the second terminal device as any of the various types of terminal devices as an example, when the magnetic contact of the first terminal device is attracted to the first magnetic contact of the second terminal device (as a slave device), that is, after the master device and the slave device are connected through the magnetic contact, the two ping each other. For example, the level is pulled high or low at fixed times, which is equivalent to one or more pulses, to identify whether the two have successfully paired (or successfully handshaked).
[0046] Different device types are predefined for each type of second terminal device, such as a device type identifier (ID). The data structure of the frame data corresponds to the communication frame format and the device type. The device type can be carried in the frame header of the frame data. In this way, the first terminal device can identify the device type without parsing the frame data. The first terminal device also stores the parsing method of the communication frame format that matches different device types.
[0047] S101. After successfully pairing with the second terminal device, receive frame data sent by the second terminal device and identify the device type of the second terminal device based on the frame data.
[0048] After the second terminal device is successfully paired with the first terminal device, the first terminal device receives frame data sent by the second terminal device and identifies the device type of the second terminal device based on the frame header in the frame data.
[0049] S102. Based on the parsing method of the communication frame format that matches the device type, the frame data sent by the second terminal device during the communication process is parsed to obtain the parsing result.
[0050] During communication between the first terminal device and the second terminal device, the second terminal device sends multiple frames of data to the first terminal device according to a preset communication protocol. The first terminal device parses each frame of data according to a parsing method that matches the communication frame format of the device type, and obtains the parsing result.
[0051] S103. Respond to the task corresponding to the device type based on the parsing results.
[0052] In this embodiment, on the one hand, by directly connecting the Pogo pin, the burden on Bluetooth or Wi-Fi is directly reduced, and the communication latency is lowered; on the other hand, by defining different communication frame formats, the master device and the slave device can transmit and parse frame data according to the agreed communication frame format when communicating, thereby reducing the communication burden on the Pogo pin, lowering the communication latency, and achieving fast response.
[0053] In some embodiments, the various types of terminal devices include any two of the following: charging devices, docking stations, charging input devices, wireless charging input devices, battery-free input devices, and battery-equipped input devices. A charging device refers to a dedicated power supply device designed for a rechargeable battery, and may refer to a dedicated fast charger for the first terminal device.
[0054] In this context, "charging input device" refers to a device with a built-in charging interface and communication capabilities, such as a charging keyboard, charging mouse, stylus, touch pen, gamepad, headphones, and fan. "Wireless charging input device" refers to a charging input device that supports wireless charging, such as a wireless charging keyboard and wireless charging mouse. In other words, a wireless charging input device connects to the primary device (the master device) via a Pogo pin, in which case the wireless charging input device is the power receiver. A wireless charging input device can also connect to other slave devices via a Pogo pin, supplying power to them; in this case, the wireless charging input device is the power supplier. For example, a wireless charging keyboard not only connects to the primary device via a Pogo pin but also connects to a stylus, touch pen, or headphones via a Pogo pin, supplying power to them.
[0055] In one implementation, a wireless charging keyboard that supports powering a stylus, touch pen, or headphones can also be called a floating charging keyboard, a charging keyboard with a pen slot, or a charging keyboard with a pen. This application does not limit the name of the wireless charging input device; any device that supports powering other slave devices falls under the category of wireless charging input devices provided in this application.
[0056] Battery-less input devices and battery-input devices refer to devices that have communication functions but no charging interface.
[0057] The following sections will describe the different types of terminal devices.
[0058] When the second terminal device is a charging device, the task corresponding to the charging device is for the first terminal device to receive power, and for the power supply connected to the charging device to charge the first terminal device.
[0059] When the second terminal device is a docking station, the corresponding task of the docking station is to power the first terminal device. The docking station is similar to a converter or adapter, capable of providing multiple interfaces. A charging device can be connected to the docking station, in which case the first terminal device acts as the power receiver. A battery-less input device or a battery-equipped input device can also be connected to the docking station, in which case the first terminal device acts as the power supplier; simultaneously, the first terminal device receives frame data sent by the battery-less or battery-equipped input device during communication. A charging input device or a wireless charging input device can also be connected to the docking station. If the charging input device or wireless charging input device is connected to an adapter, the first terminal device acts as the power receiver; if the charging input device or wireless charging input device is not connected to an adapter, the first terminal device acts as the power supplier; simultaneously, the first terminal device receives frame data sent by the charging input device or wireless charging input device during communication.
[0060] When the second terminal device is a charging input device, the corresponding tasks for the first terminal device are receiving or supplying power, and receiving frame data sent by the charging input device during communication. If the charging input device is connected to an adapter, the first terminal device acts as the power receiver; if the charging input device is not connected to an adapter, the first terminal device acts as the power supplier, charging the charging input device. Simultaneously, the first terminal device establishes a communication connection with the charging input device, and receives frame data sent by the charging input device.
[0061] When the second terminal device is a wireless charging input device, the corresponding tasks for the first terminal device are receiving or supplying power, and receiving frame data sent by the wireless charging input device during communication. If the wireless charging input device is connected to an adapter, the first terminal device acts as the power receiver; if the wireless charging input device is not connected to an adapter, the first terminal device acts as the power supplier, charging the wireless charging input device. Simultaneously, the first terminal device establishes a communication connection with the wireless charging input device and receives frame data sent by the wireless charging input device. Furthermore, when the wireless charging input device is connected to other charging input devices, the first terminal device receives frame data sent by those other charging input devices during communication.
[0062] When the second terminal device is a battery-free input device, the corresponding tasks for the battery-free input device are to power the first terminal device and to receive frame data sent by the battery-free input device during communication. The first terminal device acts as the power supply, and simultaneously establishes a communication connection with the battery-free input device, receiving frame data sent by the battery-free input device.
[0063] When the second terminal device is a battery-powered input device, the corresponding tasks for the first terminal device are to supply power and to receive frame data sent by the battery-powered input device during communication. The first terminal device acts as the power supply, and simultaneously establishes a communication connection with the battery-powered input device, receiving frame data sent by the battery-powered input device.
[0064] In this embodiment, device types are predefined for different types of second terminal devices, with each device type, data frame structure, and communication frame format corresponding one-to-one. Transmitting and parsing frame data according to the agreed-upon communication frame format reduces the burden on Pogo pin communication, lowers communication latency, and enables rapid response.
[0065] It should be noted that as more terminal devices are discovered, other types of second terminal devices will emerge, thus increasing the variety of magnetic ecosystem extension accessories. Based on the communication method provided in this application embodiment, a new device type is predefined for the newly added second terminal device. The data structure of the frame data it sends corresponds to the communication frame format and the new device type. In this way, the first terminal device can parse the frame data according to the parsing method of the communication frame format matching the new device type and respond to the task corresponding to the second terminal device.
[0066] In some embodiments, both the magnetic contact and the first magnetic contact include a first contact for grounding, a second contact for current transmission, and a third contact for transmitting frame data, such as... Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of a communication system provided in an embodiment of this application. Figure 3 The diagram illustrates the current path (including the power supply current path and the power receiving current path) and the signal path for data transmission between the first terminal device (master device) and the second terminal device (slave device). The second terminal device is a charging input device without a battery, or a charging device.
[0067] Figure 3 The master device shown includes magnetic contacts, and the slave device includes a first magnetic contact and a second magnetic contact. The first magnetic contact is used to connect to the master device's magnetic contacts, and the second magnetic contact is used to connect to the magnetic contacts of other slave devices. For example, if the master device is a tablet and the slave device is a charging keyboard, the charging keyboard connects to the tablet via the first magnetic contact and to a stylus or stylus via the second magnetic contact. Alternatively, the charging keyboard can also connect to the first magnetic contact of a gamepad via the second magnetic contact, and the gamepad's second magnetic contact can connect to other slave devices, such as a stylus, stylus, or mouse, thus creating a scenario where a master device connects to multiple slave devices via Pogo pins.
[0068] The first terminal device (as the host) includes overvoltage protection circuit 1, overvoltage protection circuit 2, a charge pump, a buck charging circuit, a system-on-chip (SOC), and a selector. The voltage (Vbus) provided by overvoltage protection circuit 1 or overvoltage protection circuit 2 is used to charge the charge pump and / or the buck charging circuit. The charging logic of the first terminal device itself determines whether to charge the charge pump or the buck charging circuit. The charge pump supplies power to the SOC via the Inter-Integrated Circuit (I2C) bus, and the buck charging circuit supplies power to the SOC via I2C. Universal asynchronous receiver / transmitter (UART) communication is used between the contacts, selector, and SOC. The path between the SOC and the selector includes a transmit path (TX) and a receive path (RX).
[0069] The overvoltage protection circuit can be a metal oxide semiconductor field-effect transistor (MOSFET) with back-to-back overvoltage protection (OVP), and the buck charging circuit can be a battery charging circuit (CHG) based on a buck topology. The selector can be a multiplexer (MUX) or a tri-state gate.
[0070] The second terminal device (as an accessory) includes an overvoltage protection circuit (OVP MOS), a protocol chip (integrated circuit, IC), a control unit (microcontroller unit, MCU), and a voltage regulator. The voltage regulator can be a switch-mode power supply (SMPS) or a low dropout linear regulator (LDO). The predefined device type of the second terminal device can be stored in the MCU, and the device type is carried in the frame data sent by the MCU to the SOC via the Pogo pin.
[0071] Figure 3 Four paths are shown. Taking a tablet computer as the master device and a charging keyboard as the slave device as an example, the tablet computer is connected to the charging keyboard through a Pogo pin. The Pogo pin includes three contacts, which are connected one-to-one. The four paths are explained below.
[0072] The main device acts as the power receiving end, and the current path for charging using the Pogo pin is as follows: the charging interface of the charging keyboard is connected to the adapter, and the power supply connected to the adapter passes through the overvoltage protection circuit of the charging keyboard, the second contact of the charging keyboard, the second contact of the tablet computer, and the overvoltage protection circuit 2 of the tablet computer to provide Vbus to charge the charge pump or buck charging circuit.
[0073] The signal path for data transmission between the master device and the slave device: The protocol IC of the charging keyboard sends the detected charging type to the MCU. The MCU sends the device type and charging type of the charging keyboard to the SOC through the frame data, which passes through the third contact of the charging keyboard, the third contact of the tablet computer, and the selector in sequence.
[0074] Different charging types correspond to different fast charging protocols, including but not limited to Supercharge Protocol (SCP), Fast Charge Protocol (FCP), Power Delivery (PD), Quick Charge (QC), Voltage Open Loop Multi-Step Constant-Current Charging (VOOC), Programmable Power Supply (PPS), etc. This application does not impose specific restrictions on the charging type.
[0075] The master device acts as the power supply terminal, and the current path for supplying power or charging the slave device through the Pogo pin is as follows: the charging interface of the charging keyboard is not connected to the adapter, and the step-down charging circuit of the tablet computer supplies power to the MCU through the second contact of the tablet computer, the second contact of the charging keyboard, and the voltage regulator.
[0076] Figure 3 The diagram shows a charging input device without a battery. For a charging input device with a battery, based on the above... Figure 3 ,like Figure 4 As shown, Figure 4 This is a schematic diagram of another communication system provided in an embodiment of this application. Figure 4 The slave device shown is a battery-powered charging input device. Taking a tablet computer as the master device and a charging keyboard as the slave device as an example, the charging keyboard's charging interface is not connected to an adapter. The tablet computer's buck charging circuit charges the battery and supplies power to the MCU by passing through the tablet computer's second contact, the charging keyboard's second contact, and the voltage regulator.
[0077] It should be noted that the above Figure 4 The battery-powered charging input device shown can also be used Figure 5 The structural method in Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 5 The battery of the battery-powered charging input device shown is integrated into the voltage regulator. When the charging interface of the battery-powered charging input device is not connected to an adapter, the main device's buck charging circuit charges the battery in the voltage regulator sequentially through the second contact of the main device and the second contact of the battery-powered charging input device, and then supplies power to the MCU through the voltage regulator.
[0078] The current path for charging via the charging port of the main device is as follows: the power supply connected to the charging interface of the tablet computer provides Vbus through the overvoltage protection circuit 1 of the tablet computer to charge the charge pump or buck charging circuit.
[0079] In this embodiment of the application, the step of responding to the task corresponding to the second terminal device based on the parsing result includes charging according to the charging type indicated by the charging type field in the parsing result. Combined with the above... Figure 3 and Figure 4 In the communication system shown, the power receiving process of the first terminal device can be achieved in the following way: the charge pump and / or step-down charging circuit of the first terminal device receives power through the power supply connected to the second terminal device, which sequentially passes through the overvoltage protection circuit of the second terminal device, the second contact of the second terminal device, the second contact of the first terminal device, and the overvoltage protection circuit of the first terminal device according to the charging type.
[0080] The above current path is in Figure 3 and Figure 4 The term is represented as follows: The power supply connected to the slave device passes sequentially through the overvoltage protection circuit of the slave device, the second contact of the slave device, the second contact of the master device, and the overvoltage protection circuit 2 of the master device to charge the charge pump and / or the buck charging circuit.
[0081] In related technologies, for scenarios where terminal devices connect to SmartConect devices via Pogo pins, the SmartConect device only acts as a power receiver, powered by the terminal device.
[0082] In this embodiment of the application, by pre-defining different device types and different communication frame formats for each type of second terminal device, charging from the device to the main device can be realized, which enriches the applicability of the first terminal device and improves the scalability of the accessory end connected via Pogopin.
[0083] In some embodiments, the buck charging circuit of the first terminal device includes an overvoltage protection unit (OVP) or an overcurrent protection unit (OCP), thus providing a stable voltage. The steps described above for responding to the task corresponding to the second terminal device based on the parsing result include: the system chip receiving frame data sent sequentially by the control unit of the second terminal device through the third contact of the second terminal device and the third contact of the first terminal device; and / or, the system chip controlling the buck charging circuit to supply power or charge the second terminal device.
[0084] For example, the system chip supplies power to the control unit through the second contact of the first terminal device, the second contact of the second terminal device, and the voltage regulator by controlling the buck charging circuit; if the second terminal device includes a battery, the system chip also charges the battery through the second contact of the first terminal device, the second contact of the second terminal device, and the voltage regulator by controlling the buck charging circuit.
[0085] The signal path of the above data transmission is in Figure 3 and Figure 4 This is represented as follows: The MCU of the slave device sends the frame data (including the device type) sequentially through the third contact of the slave device, the third contact of the master device, and the selector to the SOC.
[0086] The above current path is in Figure 3 and Figure 4 This is represented as follows: The SOC supplies power to the MCU by controlling the buck charging circuit through the second contact of the master device, the second contact of the slave device, and the voltage regulator. If the slave device includes a battery, the SOC also charges the battery by controlling the buck charging circuit through the second contact of the master device, the second contact of the slave device, and the voltage regulator of the slave device.
[0087] In related technologies, when a charging circuit is used instead of the step-down charging circuit provided in the embodiments of this application to supply power or charge the second terminal device, an overvoltage protection unit (OVP) or overcurrent protection unit (OCP) needs to be added between the charging circuit and the second contact of the first terminal device, resulting in a complex circuit structure.
[0088] In this embodiment, before the second terminal device and the first terminal device are connected, the first terminal device defaults to outputting a commonly used power supply voltage, such as 5 volts (V). Therefore, when the first terminal device charges or supplies power to the second terminal device, this power supply voltage needs to be stepped down. A step-down charging circuit is used to step down the power supply voltage so that the stepped-down voltage is compatible with the second terminal device. By reusing the step-down charging circuit that provides a stable voltage, powering or charging the second terminal device can be achieved without adding additional components or changing the circuit structure of the first terminal device, thus reducing the complexity of the circuit structure.
[0089] It should be noted that a high-power-density boost charging circuit (HAP BOOST) can also be set between the buck charging circuit and the second contact of the first terminal device to adjust the voltage output by the buck charging circuit to adapt to the second terminal device.
[0090] In this embodiment of the application, by pre-defining different device types and different communication frame formats for each type of second terminal device, it is possible to enable the master device to supply power or charge the slave device, as well as to transmit frame data, thereby enriching the applicability of the first terminal device and improving the scalability of the accessory end connected via the Pogo pin.
[0091] In some embodiments, after identifying the device type of the second terminal device based on frame data, the communication method further includes: displaying reminder information corresponding to the second terminal device on the interface. The reminder information indicates the task type of the task corresponding to the second terminal device. The reminder information may be displayed in the form of a pop-up window, showing a reminder corresponding to the device type. The pop-up window serves as a friendly reminder to the user. For example, in a charging scenario, a pop-up reminder allows the user to anticipate that the tablet might overheat. Similarly, in a scenario where both charging and keyboard input are involved, a pop-up reminder allows the user to anticipate potential delays in keyboard input. The reminder information can eliminate user uncertainty and improve the user experience.
[0092] In some embodiments, when the second terminal device is a charging device, the reminder information is a charging reminder, used to remind the user that the first terminal device may overheat. When the second terminal device is a docking station, the reminder information is an expansion reminder, used to remind the user that the first terminal device can connect to multiple magnetic expansion accessories. When the second terminal device is a charging input device or a wireless charging input device, the reminder information is a charging communication reminder or a power supply communication reminder; the charging communication reminder reminds the user that the first terminal device is the receiving end, that the first terminal device may overheat, and that the input information from the second terminal device may experience delays; the power supply communication reminder reminds the user that the first terminal device is the power supply end, that the first terminal device may have insufficient power, and that the input information from the second terminal device may experience delays. When the second terminal device is a battery-less input device or a battery-equipped input device, the reminder information is a power supply communication reminder, used to remind the user that the first terminal device may have insufficient power, and that the input information from the second terminal device may experience delays.
[0093] The reminder messages correspond to the device type. By displaying different reminder messages, users can be reminded of different possible scenarios, allowing them to have psychological expectations for the occurrence of different scenarios and improving the user experience.
[0094] In some embodiments, when the device type is a charging device, the frame data data structure includes a charging type field, and the parsing result includes the charging type indicated by the charging type field. Different charging types correspond to different fast charging protocols. The structure of the charging device can be found above. Figures 3-5Any of the items described in the text refers to the device.
[0095] For example, the data structure of frame data may include: a frame header, a charging type field, verification information, and a frame trailer. The frame header may include the device manufacturer (or vendor / brand) and device type. The verification information may include cyclic redundancy check (CRC), parity check, checksum, etc.
[0096] The steps described above for responding to the task corresponding to the second terminal device based on the parsing results can be implemented by charging according to the charging type.
[0097] In related technologies, a pseudo Universal Serial Bus (USB) port can be created using a Pogo pin. For example, taking a tablet computer as an example, the tablet itself has a built-in USB port, which the power supply can connect to to charge the tablet. The tablet can also connect a magnetic charging accessory via the Pogo pin. This accessory acts as a power supply, similar to a converter or adapter, providing a pseudo USB port. The power supply connects to the pseudo USB port, which does not have the functionality of a full USB port. Its charging principle differs from the built-in USB port; the pseudo USB port directly supplies power or charges the tablet with the received voltage. Essentially, this is simply relocating the tablet's charging port.
[0098] In this embodiment, when charging the first terminal device using the charging device, the charging device generates frame data with a corresponding data structure according to a pre-agreed communication frame format and transmits the frame data to the first terminal device. The first terminal device parses the frame data according to the pre-agreed communication frame format and then uses the parsed charging type to charge. This charging process differs from the charging process described above that provides a fake USB interface. The data structure and parsing method of the frame data involved in this charging process are related to the charging device and do not involve other types of devices, reducing the burden of Pogo pin communication, lowering communication latency, and achieving fast charging response.
[0099] In some embodiments, when the device type is a docking station, the frame data data structure includes a bus device type field, and the parsing result includes the bus device type indicated by the bus device type field. The structure of the docking station can be found above. Figures 3-5 Any of the items described in the text refers to the device.
[0100] For example, the data structure of frame data may include: frame header, bus device type field, checksum information, and frame trailer, etc.
[0101] The steps described above for responding to the task corresponding to the second terminal device based on the parsing results can be implemented in the following way: The power mode and communication protocol are determined according to the bus device type; the power mode includes a power supply mode or a power receiving mode, with the power receiving mode carrying the charging type. When the power mode is power supply mode, power is supplied to other charging input devices, and the communication of other charging input devices is responded to according to the communication protocol, receiving frame data sent by other charging input devices; wherein, other charging input devices refer to charging input devices attracted by the second magnetic contact of the expansion dock, and the number of other charging input devices can be one or more, which is not limited in this embodiment. When the number of other charging input devices connected to the expansion dock is two or more, the first terminal device responds to the communication of at least two other charging input devices in a time-sharing manner according to the communication protocol, and receives frame data sent by at least two other charging input devices in a time-sharing manner, that is, each other charging input device communicates independently with the first terminal device in a time-sharing manner. When the power mode is power receiving mode, charging is performed according to the charging type indicated by the charging type field in the parsing results, and the communication of other charging input devices is responded to according to the communication protocol, receiving frame data sent by other charging input devices. In this scenario, the frame data also includes data packets of user input data obtained from other charging input devices, and the parsing result also includes user input information obtained by parsing the data packets of user input data.
[0102] In this embodiment, the number of magnetic eco-friendly expansion accessories is increased using a docking station. The docking station generates frame data with a corresponding data structure according to a pre-agreed communication frame format and transmits the frame data to the first terminal device. The first terminal device parses the frame data according to the pre-agreed communication frame format and then uses the parsed power mode to determine whether the first terminal device is a power receiver or a power supplier. When the power mode is power receiver mode, charging is performed according to the charging type carried by the power receiver mode, and other charging input devices connected to the docking station are responded to in a timely manner according to the parsed communication protocol. When the power mode is power supply mode, power is supplied to other charging input devices, and other charging input devices are responded to in a timely manner according to the parsed communication protocol. In this scenario, the frame data also includes data packets of user input data obtained by other charging input devices, and the parsing result also includes user input information obtained by parsing the user input data packets. The data structure and parsing method of the frame data involved in this charging or power supply communication process are all related to the docking station and do not involve other types of devices, reducing the burden of Pogo pin communication, reducing communication latency, and achieving fast response.
[0103] In some embodiments, when the device type is a charging input device, the data structure of the frame data includes a charging type field and a communication field, and the parsing result includes the charging type indicated by the charging type field and the communication protocol indicated by the communication field. The structure of a charging input device can be found above. Figures 3-5 Any of the items described in the text refers to the device.
[0104] For example, taking a charging input device as a charging keyboard, the data structure of the frame data may include: frame header, charging type field, communication field, keyboard input data packet, verification information, and frame tail, etc.
[0105] The steps described above for responding to the task corresponding to the second terminal device based on the parsing result can be implemented in the following ways: when the parsing result indicates that the charging input device is connected to the adapter, charging is performed according to the charging type, and the frame data sent by the charging input device is received in response to the communication of the charging input device according to the communication protocol. When the parsing result indicates that the charging input device is not connected to the adapter, power is supplied to the charging input device, and the frame data sent by the charging input device is received in response to the communication of the charging input device according to the communication protocol. In this scenario, the frame data also includes data packets of user input data obtained by the charging input device, and the parsing result also includes user input information obtained by parsing the data packets of user input data.
[0106] The data structure and parsing method of the frame data involved in the charging or power supply communication process are related to the charging input device and do not involve other types of devices, which reduces the burden of Pogo pin communication, reduces communication latency, and achieves fast response.
[0107] In some embodiments, when the device type is a wireless charging input device and the second magnetic contact of the wireless charging input device is unavailable, please refer to the above description of the charging input device, which will not be repeated here.
[0108] The structure of a wireless charging input device is as follows Figure 6 As shown, Figure 6This is a schematic diagram of another terminal device provided in an embodiment of this application. The second magnetic contact of the second terminal device (e.g., a wireless charging input device) includes a fourth contact for grounding, a fifth contact for current transmission, and a sixth contact for transmitting frame data. The fourth contact is connected to the first contact in the first magnetic contact, the fifth contact is connected to the second contact in the first magnetic contact, and the sixth contact is connected to the third contact in the first magnetic contact. The wireless charging input device further includes a wireless charging unit in addition to the charging input device. One end of the wireless charging unit is connected to the control unit, and the other end of the wireless charging unit is connected to the sixth contact of the second terminal device. When the second magnetic contact of the wireless charging input device is attracted to the magnetic contact of another charging input device, the wireless charging unit communicates with the other charging input device, enabling power supply or charging of the other charging input device.
[0109] In some embodiments, when the device type is a wireless charging input device and the second magnetic contact of the wireless charging input device is attached to the magnetic contact of another charging input device, the data structure of the frame data includes an adapter connection field, a charging type field, a communication field, and a status field of the other charging input device. The parsing result includes the adapter connection status indicated by the adapter connection field, the charging type indicated by the charging type field, the communication protocol indicated by the communication field, and the charging status indicated by the status field of the other charging input device. The adapter connection status includes both connected and unconnected adapters; the charging status includes the wireless charging input device charging other charging input devices and the wireless charging input device not charging other charging input devices. The first terminal device can perform relevant actions based on the charging status. For example, when its own battery is low, it can disconnect the charging function to extend battery life; when it detects a long charging time or a full charge, it can disconnect the charging function to prevent overcharging, extend the lifespan of other charging input devices, and reduce power consumption.
[0110] For example, taking a wireless charging input device as a wireless charging keyboard and another charging input device as a stylus, the data structure of the frame data may include: a frame header, an adapter connection field, a charging type field, a communication field, a keyboard input data packet, a stylus status field, verification information, and a frame trailer. If the other charging input device is a gamepad, the stylus status field is replaced with the gamepad status field. If the other charging input device is headphones, the stylus status field is replaced with the headphone status field.
[0111] The steps described above for responding to the task corresponding to the second terminal device based on the parsing results can be implemented as follows: when the adapter connection status in the parsing results indicates that the wireless charging input device is connected to the adapter, charging is performed according to the charging type, and frame data sent by the wireless charging input device is received in response to the communication of the wireless charging input device according to the communication protocol; when the adapter connection status in the parsing results indicates that the wireless charging input device is not connected to the adapter, power is supplied to the wireless charging input device, and frame data sent by the wireless charging input device is received in response to the communication of the wireless charging input device according to the communication protocol. The frame data includes data packets of user input data acquired by the wireless charging input device and data packets of user input data acquired by other charging input devices. The parsing results also include user input information obtained by parsing the data packets of user input data acquired by the wireless charging input device and other charging input devices.
[0112] It should be noted that when other charging input devices communicate with the wireless charging input device, the wireless charging input device packages the user input data packets obtained by the other charging input devices together with its own user input data packets, and then sends them to the first terminal device. The first terminal device communicates directly with the wireless charging input device; other charging input devices do not communicate directly with the first terminal device. The data packets from other charging input devices need to be forwarded to the first terminal device through the wireless charging input device.
[0113] The data structure and parsing method of the frame data involved in the charging or power supply communication process are all related to the wireless charging input device and do not involve other types of devices. This reduces the burden of Pogo pin communication, lowers communication latency, and enables fast response.
[0114] In some embodiments, when the device type is a battery-free input device, the data structure of the frame data includes a communication field, and the parsing result includes the communication protocol indicated by the communication field. The structure of a battery-free input device is as follows: Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of another terminal device provided in the embodiments of this application.
[0115] For example, taking a battery-free keyboard as an example of a charging input device, the data structure of frame data may include: frame header, communication field, keyboard input data packet, verification information, and frame tail, etc.
[0116] The steps described above for responding to the task corresponding to the second terminal device based on the parsing results can be implemented in the following ways: powering the battery-free input device and responding to the communication of the battery-free input device according to the communication protocol, receiving frame data sent by the battery-free input device. In this scenario, the frame data also includes data packets of user input data acquired by the battery-free input device, and the parsing results also include user input information obtained by parsing the user input data packets.
[0117] The data structure and parsing method of the frame data involved in the charging or power supply communication process are related to the battery-less input device and do not involve other types of devices. This reduces the burden of Pogo pin communication, lowers communication latency, and enables fast response.
[0118] In some embodiments, when the device type is a battery-powered input device, the frame data structure includes a communication field and a battery level field. The parsing result includes the communication protocol indicated by the communication field and the battery level indicated by the battery level field. The first terminal device can perform relevant actions based on the battery level, such as disconnecting the charging function when the battery level reaches a preset protection level to prevent overcharging, extend the lifespan of the battery-powered input device, and reduce power consumption. The structure of the battery-powered input device is as follows: Figure 8 As shown, Figure 8 This is a schematic diagram of the structure of another terminal device provided in the embodiments of this application.
[0119] For example, taking a battery-powered keyboard as a charging input device, the data structure of the frame data may include: frame header, communication field, battery level field, keyboard input data packet, verification information, and frame tail, etc.
[0120] The steps described above for responding to the task corresponding to the second terminal device based on the parsing results can be implemented as follows: charging the battery-powered input device, and responding to the communication of the battery-powered input device according to the communication protocol indicated by the communication field shown in the parsing results, and receiving frame data sent by the battery-powered input device. In this scenario, the frame data also includes data packets of user input data acquired by the battery-powered input device, and the parsing results also include user input information obtained by parsing the user input data packets.
[0121] The data structure and parsing method of the frame data involved in the charging or power supply communication process are all related to the battery-equipped input device and do not involve other types of devices. This reduces the burden of Pogo pin communication, lowers communication latency, and enables fast response.
[0122] Based on the above Figures 1-8 As described above, embodiments of this application provide a communication method, such as... Figure 9 As shown, Figure 9 This is a flowchart of another communication method provided in an embodiment of this application. The description takes an example where the first terminal device is the host device and the second terminal device is an accessory device or an external device. The host device can be found above. Figure 3 and Figure 4 External devices can be found above. Figures 3-8 The Pogo pin communication protocol is pre-modified to support multiple device types. For example, different device types are pre-defined for different types of external devices. The data structure of the frame data corresponds to the communication frame format and the device type. The host also stores the parsing method for the communication frame format matching different device types. For instance, device type 1 (ID 1) represents a charging device with purely magnetic contacts, device type 2 (ID 2) represents a docking station with purely magnetic contacts, device type 3 (ID 3) represents a charging input device with purely magnetic contacts, device type 4 (ID 4) represents a charging input device with purely magnetic contacts that supports wireless charging, device type 5 (ID 5) represents a battery-less input device, and device type 6 (ID 6) represents a battery-equipped input device, etc.
[0123] Before leaving the factory, the accessory end predefines the device type according to the product type and stores the device type in the MCU of the accessory end.
[0124] S11. The host device detects that an external device is being attracted.
[0125] S12. Determine whether the pairing with the external device is successful.
[0126] After the external device and the host are connected via the Pogo pin, a ping test is performed to determine if the host and the external device have successfully paired. For example, pulling the voltage high or low at fixed intervals is equivalent to one or more pulses, used to identify whether the pairing (or handshake) is successful. This ping process can be initiated by the host, with the external device responding. If the ping is successful, step S13 is executed; otherwise, step S11 is executed.
[0127] S13. The host identifies the device type of the external device.
[0128] After establishing a ping connection between the host and the external device, the host identifies the device type of the external device based on the frame header of the frame data sent by the external device. Then, it selects different charging / discharging modes or communication methods according to the device type. The communication method includes the communication frame format and its parsing method. The following sections describe the six different device types.
[0129] (a) Equipment type 1 (ID 1): Charging equipment.
[0130] S141. A pop-up window displays a charging reminder message.
[0131] S151, Enable the parsing method for the communication frame format that matches device type 1.
[0132] S161. The host device acts as the power receiving device and charges according to the parsed charging type.
[0133] The data structure of the frame data sent by the external device corresponds to device type 1. The host uses a parsing method that matches device type 1 to parse the frame data sent by the external device.
[0134] The data structure of the frame data includes a charging type field (e.g., a fast charging type field), and the parsing result includes the charging type indicated by the charging type field (e.g., fast charging type).
[0135] (ii) Device type 2 (ID 2): Dock.
[0136] S142. A pop-up window displays extended reminder information.
[0137] S152, Enable the parsing method for the communication frame format that matches device type 2.
[0138] S162. The host device acts as either a power receiving device or a power supply device, and selects the power mode and communication protocol according to the parsed bus device type.
[0139] The data structure of the frame data sent by the external device corresponds to device type 2. The host uses a parsing method matching device type 2 to parse the frame data sent by the external device. When other charging input devices are connected to the docking station, the host communicates with these other charging input devices according to the parsed communication protocol. When there are two or more other charging input devices connected to the docking station, the host responds to the communication of at least two of these other charging input devices in a time-sharing manner according to the communication protocol.
[0140] The data structure of the frame data includes a bus device type field. The parsing result includes the bus device type indicated by the bus device type field. The power mode and communication protocol are determined based on the bus device type. The power mode includes a power supply mode or a power receiving mode. The power receiving mode carries the charging type (e.g., fast charging type).
[0141] (iii) Device type 3 (ID 3): Charging input device.
[0142] S143. A pop-up window displays charging communication reminders or power supply communication reminders.
[0143] S153, Enable the parsing method for communication frame formats that match device type 3.
[0144] S163. The host performs power role switching when the external device is connected to the adapter and when it is not connected to the adapter, charges according to the parsed charging type, and communicates according to the parsed communication protocol.
[0145] The host communicates with the charging input device according to the parsed communication protocol. The data structure of the frame data sent by the external device corresponds to device type 3, and the host uses a parsing method that matches device type 3 to parse the frame data sent by the external device.
[0146] For example, taking a charging input device as a charging keyboard, the frame data structure includes a charging type field (e.g., a fast charging type field) and a keyboard communication field. The parsing result includes the charging type indicated by the charging type field (e.g., fast charging type) and the keyboard communication protocol indicated by the keyboard communication field. The frame data also includes data packets of keyboard input data, and the parsing result includes user keyboard input information obtained by parsing the data packets of keyboard input data. Among these, charging has the highest priority.
[0147] (iv) Device type 4 (ID 4): Wireless charging input device.
[0148] S144. A pop-up window displays charging communication reminders or power supply communication reminders.
[0149] S154. Enable the parsing method for communication frame formats that match device type 4.
[0150] S164. The host performs power role switching when the external device is connected to the adapter and when it is not connected to the adapter, charges according to the parsed charging type, and communicates according to the parsed communication protocol.
[0151] The host communicates with the wireless charging input device according to the parsed communication protocol. The data structure of the frame data sent by the external device corresponds to device type 4, and the host uses a parsing method that matches device type 4 to parse the frame data sent by the external device.
[0152] For example, taking a wireless charging input device that supports wireless charging of a stylus as an example, the stylus and the wireless charging keyboard are connected via a Pogo pin. The frame data structure includes an adapter connection field, a charging type field (e.g., a fast charging type field), a keyboard communication field, and a stylus status field. The parsing results include the adapter connection status (including connected adapter and not connected adapter) indicated by the adapter connection field, the charging type (e.g., fast charging type) indicated by the charging type field, the keyboard communication protocol indicated by the keyboard communication field, and the stylus status field indicating the stylus charging status. The frame data also includes data packets of keyboard input data and data packets of stylus input data. The parsing results also include user keyboard input information obtained by parsing the keyboard input data packets and stylus input information obtained by parsing the stylus input data packets. Among these, charging has the highest priority, followed by stylus charging.
[0153] (v) Device type 5 (ID 5): Battery-less input device.
[0154] S145. A pop-up window displays power supply and communication reminder information.
[0155] S155, Enable the parsing method for communication frame formats that match device type 5.
[0156] S165. The host device acts as a power supply device and responds to the communication of external devices according to the parsed communication protocol.
[0157] The host responds to the communication from the battery-less input device according to the parsed communication protocol. The data structure of the frame data sent by the external device corresponds to device type 5, and the host uses a parsing method that matches device type 5 to parse the frame data sent by the external device.
[0158] For example, taking a battery-free keyboard as an example of a battery-free input device, the frame data structure includes a keyboard communication field, and the parsing result includes the keyboard communication protocol indicated by the keyboard communication field. The frame data also includes data packets of keyboard input data, and the parsing result also includes user keyboard input information obtained by parsing the data packets of keyboard input data.
[0159] (vi) Device type 6 (ID 6): Battery input device.
[0160] S146. A pop-up window displays power supply and communication reminder information.
[0161] S156, Enable the parsing method for communication frame formats that match device type 6.
[0162] S166. The host device acts as a power supply device, responds to the communication of external devices according to the parsed communication protocol, and displays the parsed battery level.
[0163] The host responds to the communication from the battery-powered input device according to the parsed communication protocol. The data structure of the frame data sent by the external device corresponds to device type 6, and the host uses a parsing method that matches device type 6 to parse the frame data sent by the external device.
[0164] For example, taking a battery-powered keyboard as an input device, the frame data structure includes a keyboard communication field and a battery level field. The parsing result includes the keyboard communication protocol indicated by the keyboard communication field and the battery level indicated by the battery level field. The frame data also includes data packets of keyboard input data, and the parsing result also includes user keyboard input information obtained by parsing the data packets of keyboard input data.
[0165] Among the six device types mentioned above, the host and external devices transmit and parse frame data according to the agreed communication frame format, which reduces the communication burden of Pogo pin, lowers communication latency, and enables fast response.
[0166] In this embodiment, the reduction of wireless (e.g., Bluetooth, Wi-Fi) burden through Pogo pin extension includes the following two aspects: First, the wireless connection burden is directly reduced by directly connecting to the Pogo pin; second, the host communicates with external devices through the contacts of the Pogo pin, reducing the wireless communication burden on the host. By pre-defining communication frame formats corresponding to different device types, the communication burden of the Pogo pin is reduced, enabling it to respond quickly.
[0167] Based on the communication method provided in any of the above embodiments, this application also provides a first terminal device. The first terminal device includes a magnetic contact, which supports magnetic contact on various types of terminal devices. The first terminal device is used to execute the communication method provided in any of the above embodiments.
[0168] In some embodiments, the first terminal device includes a charge pump, a step-down charging circuit, and a system chip; the magnetic contact includes a first contact for grounding, a second contact for current transmission, and a third contact for transmitting the frame data.
[0169] When the magnetic contacts of the first terminal device are attracted to the first magnetic contacts (including the first, second, and third contacts) of the second terminal device, the charge pump and / or the step-down charging circuit are energized through a path formed by the power supply connected to the second terminal device, passing sequentially through the overvoltage protection circuit of the second terminal device, the second contact of the second terminal device, the second contact of the first terminal device, and the overvoltage protection circuit of the first terminal device, according to the charging type; the system chip receives frame data sent by the control unit of the second terminal device sequentially through the third contact of the second terminal device and the third contact of the first terminal device.
[0170] In some embodiments, the buck charging circuit has the function of providing a stable voltage; when the magnetic contact of the first terminal device is attracted to the first magnetic contact of the second terminal device, the system chip controls the buck charging circuit to supply power or charge the second terminal device.
[0171] In this embodiment, the second terminal device can be powered or charged by reusing a step-down charging circuit that provides a stable voltage, without the need for additional components or changes to the circuit structure of the first terminal device, thus reducing the complexity of the circuit structure.
[0172] The first terminal device and the above-described method embodiments belong to the same concept. Its implementation process and the resulting technical effects can be found in the method embodiments section, and will not be repeated here.
[0173] This application also provides a communication method applied to a second terminal device. When the first magnetic contact of the second terminal device is attracted to the magnetic contact of the first terminal device, the communication method includes: after successful pairing with the first terminal device, sending frame data to the first terminal device; the data structure of the frame data corresponds to the communication frame format and the device type of the second terminal device; so that the first terminal device parses the frame data sent by the second terminal device during communication according to the parsing method of the communication frame format matching the device type, obtains the parsing result, and responds to the task corresponding to the second terminal device based on the parsing result.
[0174] In this embodiment of the application, by defining different communication frame formats, the first terminal device and the second terminal device can transmit and parse frame data according to the agreed communication frame format when communicating, thereby reducing the communication burden of Pogo pin, reducing communication latency, and achieving fast response.
[0175] The method flow executed by the second terminal device is based on the same concept as the method embodiment executed by the first terminal device described above. Its implementation process and the resulting technical effects can be found in the method embodiment section executed by the first terminal device described above, and will not be repeated here.
[0176] Based on the communication method provided in the above embodiments, this application also provides a second terminal device. The second terminal device includes a first magnetic contact and a second magnetic contact. The first magnetic contact supports the adsorption of magnetic contacts of the first terminal device as described above, and the second magnetic contact supports the adsorption of magnetic contacts of various types of terminal devices. The second terminal device is used to execute the communication method provided in any of the above embodiments.
[0177] In some embodiments, both the first magnetic contact and the magnetic attraction contact include a first contact for grounding, a second contact for current transmission, and a third contact for transmitting frame data. The second terminal device includes a protocol chip and a control unit. When the first magnetic contact of the second terminal device is attracted to the magnetic contact of the first terminal device, the power supply connected to the second terminal device sequentially passes through the overvoltage protection circuit of the second terminal device, the second contact of the second terminal device, the second contact of the first terminal device, and the overvoltage protection circuit of the first terminal device to charge the charge pump and / or buck charging circuit of the first terminal device. The control unit generates frame data based on the charging type detected by the protocol chip and / or the received user input information, and sends the frame data sequentially through the third contact of the second terminal device and the third contact of the first terminal device to the system chip of the first terminal device.
[0178] The second terminal device belongs to the same concept as the above method embodiment. Its implementation process and the resulting technical effects can be found in the method embodiment section, and will not be repeated here.
[0179] Based on the communication method provided in any of the above embodiments, this application also provides a communication system, which includes a first terminal device and a second terminal device. The structure of the first terminal device and the second terminal device and the connection method between them can be referred to the above. Figure 3 and Figure 4 The communication system shown will not be described in detail here. The magnetic contacts of the first terminal device support attachment to the magnetic contacts of various types of terminal devices, and different types of terminal devices use different communication frame formats to communicate with the first terminal device; the magnetic contacts of the first terminal device are attached to the first magnetic contacts of the second terminal device, which can be any of the various types of terminal devices; after the first terminal device and the second terminal device are successfully paired, the second terminal device sends frame data to the first terminal device; the first terminal device identifies the device type of the second terminal device based on the frame data; the data structure of the frame data corresponds to the communication frame format and the device type; the first terminal device parses the frame data sent by the second terminal device during communication according to the parsing method of the communication frame format matched with the device type, and obtains the parsing result; and responds to the task corresponding to the second terminal device based on the parsing result.
[0180] In this embodiment of the application, by defining different communication frame formats, the first terminal device and the second terminal device in the communication system can transmit and parse frame data according to the agreed communication frame format when communicating, thereby reducing the communication burden of Pogopin, reducing communication latency, and achieving fast response.
[0181] The communication system and the method embodiments executed by the first terminal device and the second terminal device described above belong to the same concept. The implementation process and the resulting technical effects can be found in the method embodiment section, and will not be repeated here.
[0182] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).
[0183] The above descriptions are optional embodiments provided by this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the technical scope disclosed in this application should be included within the protection scope of this application.
Claims
1. A communication method, characterized in that, The method is applied to a first terminal device, wherein the magnetic contacts of the first terminal device support attraction with the magnetic contacts of various types of terminal devices, and different types of terminal devices communicate with the first terminal device using different communication frame formats. When the magnetic contacts of the first terminal device are attracted to the first magnetic contacts of a second terminal device, the method includes: After successfully pairing with the second terminal device, the system receives frame data sent by the second terminal device and identifies the device type of the second terminal device based on the frame data; the second terminal device is any one of the various types of terminal devices, and the data structure of the frame data corresponds to the communication frame format and the device type; Based on the parsing method of the communication frame format that matches the device type, the frame data sent by the second terminal device during communication is parsed to obtain the parsing result; The task corresponding to the device type is responded to based on the parsing result.
2. The method as described in claim 1, characterized in that, The various types of terminal devices include any two of the following: charging devices, docking stations, charging input devices, wireless charging input devices, battery-free input devices, and battery-equipped input devices; wherein, the wireless charging input device refers to a charging input device that supports wireless charging functionality. When the second terminal device is the charging device, the task corresponding to the charging device is for the first terminal device to receive power. When the second terminal device is the expansion dock, the task corresponding to the expansion dock is for the first terminal device to receive power or provide power. When the second terminal device is the charging input device, the task corresponding to the charging input device is for the first terminal device to receive power or provide power, and to receive frame data sent by the charging input device during communication. When the second terminal device is the wireless charging input device, the task corresponding to the wireless charging input device is for the first terminal device to receive power or provide power, and to receive frame data sent by the wireless charging input device during communication. When the second terminal device is the battery-free input device, the task corresponding to the battery-free input device is to power the first terminal device and to receive frame data sent by the battery-free input device during communication. When the second terminal device is the battery-powered input device, the tasks corresponding to the battery-powered input device are to power the first terminal device and to receive frame data sent by the battery-powered input device during communication.
3. The method as described in claim 1, characterized in that, After identifying the device type of the second terminal device based on the frame data, the method further includes: The interface displays a reminder message corresponding to the second terminal device, which indicates the task type of the task corresponding to the second terminal device.
4. The method as described in claim 3, characterized in that, If the second terminal device is a charging device, the reminder information is a charging reminder information; When the second terminal device is a docking station, the reminder information is an extended reminder information; When the second terminal device is a charging input device or a wireless charging input device, the reminder information is a charging communication reminder information or a power supply communication reminder information; If the second terminal device is a battery-free input device or a battery-equipped input device, the reminder information is a power supply communication reminder information.
5. The method according to any one of claims 1-4, characterized in that, When the device type is a charging device, the data structure of the frame data includes a charging type field; The step of responding to the task corresponding to the second terminal device based on the parsing result includes: Charge according to the charging type indicated by the charging type field in the parsing result.
6. The method according to any one of claims 1-4, characterized in that, When the device type is a docking station, the data structure of the frame data includes a bus device type field; The step of responding to the task corresponding to the second terminal device based on the parsing result includes: Based on the bus device type indicated by the bus device type field in the parsing result, the power mode and communication protocol are determined; the power mode includes a power supply mode or a power receiving mode, and the power receiving mode carries the charging type; When the power mode is the power supply mode, power is supplied to other charging input devices, and the communication of other charging input devices is responded to according to the communication protocol, and frame data sent by other charging input devices is received; wherein, the frame data includes data packets of user input data obtained by other charging input devices, and the other charging input devices refer to the charging input devices that are attracted by the second magnetic contact of the expansion dock; When the power mode is the power receiving mode, charging is performed according to the charging type indicated by the charging type field in the parsing result, and the communication of other charging input devices is responded to according to the communication protocol, and frame data sent by other charging input devices is received.
7. The method according to any one of claims 1-4, characterized in that, When the device type is a charging input device, the data structure of the frame data includes a charging type field and a communication field; The step of responding to the task corresponding to the second terminal device based on the parsing result includes: When the parsing result indicates that the charging input device is connected to the adapter, charging is performed according to the charging type indicated by the charging type field in the parsing result, and in response to the communication of the charging input device according to the communication protocol indicated by the communication field in the parsing result, frame data sent by the charging input device is received; the frame data includes data packets of user input data acquired by the charging input device; When the parsing result indicates that the charging input device is not connected to an adapter, power is supplied to the charging input device, and in response to the communication of the charging input device according to the communication protocol, frame data sent by the charging input device is received; the frame data includes data packets of user input data acquired by the charging input device.
8. The method according to any one of claims 1-4, characterized in that, When the device type is a wireless charging input device and the second magnetic contact of the wireless charging input device is attached to the magnetic contact of another charging input device, the data structure of the frame data includes a charging type field, a communication field, and a status field of the other charging input device; The step of responding to the task corresponding to the second terminal device based on the parsing result includes: When the parsing result indicates that the wireless charging input device is connected to the adapter, charging is performed according to the charging type indicated by the charging type field in the parsing result, and in response to the communication of the wireless charging input device according to the communication protocol indicated by the communication field in the parsing result, frame data sent by the wireless charging input device is received; the frame data includes data packets of user input data obtained by the wireless charging input device and data packets of user input data obtained by other charging input devices; When the parsing result indicates that the wireless charging input device is not connected to an adapter, power is supplied to the wireless charging input device, and in response to the communication of the wireless charging input device according to the communication protocol, frame data sent by the wireless charging input device is received.
9. The method according to any one of claims 1-4, characterized in that, In the case that the device type is a battery-less input device, the data structure of the frame data includes a communication field; The step of responding to the task corresponding to the second terminal device based on the parsing result includes: Power the battery-free input device and, in response to the communication of the battery-free input device according to the communication protocol indicated by the communication field in the parsing result, receive frame data sent by the battery-free input device; the frame data includes data packets of user input data acquired by the battery-free input device.
10. The method according to any one of claims 1-4, characterized in that, When the device type is a battery-powered input device, the data structure of the frame data includes a communication field and a battery level field; The step of responding to the task corresponding to the second terminal device based on the parsing result includes: The battery-powered input device is charged, and in response to the communication of the battery-powered input device according to the communication protocol indicated by the communication field shown in the parsing result, the frame data sent by the battery-powered input device is received; the frame data includes data packets of user input data acquired by the battery-powered input device.
11. The method as described in claim 5, characterized in that, Both the magnetic attraction contact and the first magnetic attraction contact include a first contact for grounding and a second contact for current transmission; The step of charging according to the charging type indicated by the charging type field in the parsing result includes: The charge pump and / or step-down charging circuit of the first terminal device are powered through a path formed by the power supply connected to the second terminal device, in sequence according to the charging type, passing through the overvoltage protection circuit of the second terminal device, the second contact of the second terminal device, the second contact of the first terminal device, and the overvoltage protection circuit of the first terminal device.
12. The method according to any one of claims 1-4, characterized in that, Both the magnetic attraction point and the first magnetic attraction point include a third contact for transmitting the frame data; the first terminal device includes a system chip and a step-down charging circuit, the step-down charging circuit having the function of providing a stable voltage; The step of responding to the task corresponding to the second terminal device based on the parsing result includes: The system chip receives frame data sent sequentially by the control unit of the second terminal device through the third contact of the second terminal device and the third contact of the first terminal device; And / or, the system chip supplies power or charges the second terminal device by controlling the buck charging circuit.
13. A communication method, characterized in that, The method is applied to a second terminal device; When the first magnetic contact of the second terminal device is attracted to the magnetic contact of the first terminal device, the method includes: After successfully pairing with the first terminal device, frame data is sent to the first terminal device; The data structure of the frame data corresponds to the communication frame format and the device type of the second terminal device; so that the first terminal device can parse the frame data sent by the second terminal device during communication according to the parsing method of the communication frame format matching the device type, obtain the parsing result, and respond to the task corresponding to the second terminal device according to the parsing result.
14. A first terminal device, characterized in that, The first terminal device includes a magnetic contact, which supports magnetic contact on various types of terminal devices, and the first terminal device is used to perform the method according to any one of claims 1-12.
15. The terminal device as described in claim 14, characterized in that, The first terminal device includes a system chip and a buck charging circuit, wherein the buck charging circuit has the function of providing a stable voltage; When the magnetic contact of the first terminal device is attracted to the first magnetic contact of the second terminal device, the system chip controls the buck charging circuit to supply power or charge the second terminal device.
16. A second terminal device, characterized in that, The second terminal device includes a first magnetic contact and a second magnetic contact. The first magnetic contact supports attachment to the magnetic contact of the first terminal device as described in claim 14. The second magnetic contact supports attachment to the magnetic contacts of various types of terminal devices. The second terminal device is used to perform the method described in claim 13.
17. A communication system, characterized in that, The communication system includes a first terminal device and a second terminal device. The magnetic contacts of the first terminal device can be attached to the magnetic contacts of various types of terminal devices, and different types of terminal devices use different communication frame formats to communicate with the first terminal device. The magnetic contacts of the first terminal device are attached to the first magnetic contacts of the second terminal device, and the second terminal device is any one of the various types of terminal devices. After the first terminal device and the second terminal device are successfully paired, the second terminal device sends frame data to the first terminal device; The first terminal device identifies the device type of the second terminal device based on the frame data; the data structure of the frame data corresponds to the communication frame format and the device type. The first terminal device parses the frame data sent by the second terminal device during communication according to the parsing method of the communication frame format that matches the device type, and obtains the parsing result; and responds to the task corresponding to the second terminal device according to the parsing result.
18. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method as described in any one of claims 1 to 12, or the method as described in claim 13.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 12, or the method as described in claim 13.
20. A computer program product containing instructions, characterized in that, When it is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 12, or the method as described in claim 13.