Method, device, system, equipment and medium for realizing peripheral functions of terminal equipment
By sending video stream data on the smartphone and parsing the operation data packets, and using the peripheral device of the first device to control the terminal device, the problem of poor operational flexibility and high cost of the smartphone is solved, achieving higher operational flexibility and user experience.
Patent Information
- Application Number
- CN202011127262.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-10-20
AI Technical Summary
Smartphones have small screens and cannot flexibly handle complex applications. They have poor operational flexibility and require specialized peripheral equipment, which increases costs.
By sending video stream data to the first device, receiving operation data packets for parsing and processing, performing corresponding operations on the operation interface of the terminal device, and using peripheral devices of the first device to control the terminal device, operational flexibility is improved and costs are reduced. .
It enables flexible operation of terminal devices through peripheral devices without being limited by screen size, improving user experience and reducing equipment costs.
Smart Images

Figure CN114442866B
Abstract
Description
Technical Field
[0001] The present invention generally relates to the field of communication technology, and specifically relates to a method, device, system, equipment and medium for realizing peripheral functions of a terminal device. Background Art
[0002] With the rapid development of mobile communication technology, smartphones have become a basic communication device in people's daily lives. Due to its powerful integrated functions and convenient features, more and more users can use smartphones to perform various operations such as online games, online instant messaging and web browsing, online and offline audio and video entertainment, etc. However, smartphones are limited by their own software storage and hardware settings and cannot flexibly handle complex applications. For example, the miniaturization of mobile phone keyboards does not utilize manual operations of various design editors. Therefore, research on how smartphones handle complex functions is particularly important.
[0003] At present, in the related technology, corresponding external devices can be connected through a USB interface, but this method is limited by the small screen of the mobile phone, resulting in poor operational flexibility when processing editing and design applications, and the need to configure special peripheral devices for the terminal device, which increases the cost of the terminal device. Summary of the invention
[0004] In view of the above defects or deficiencies in the prior art, it is desired to provide a solution.
[0005] In a first aspect, the present application provides a method for implementing a peripheral function of a terminal device, comprising:
[0006] Sending the video stream data to the first device;
[0007] receiving an operation data packet, where the operation data packet is obtained by encapsulating and processing the first device in response to an operation instruction of the peripheral device;
[0008] Parse and process the operation data packets, and perform corresponding operations on the operation interface of the terminal device.
[0009] In one embodiment, parsing the operation data packet and performing corresponding operations on the operation interface of the terminal device include:
[0010] Parsing the operation data packet, and converting the operation event of the peripheral device on the first device into a touch operation event;
[0011] Based on the touch operation event, determine the operation type and the touch position corresponding to the operation type;
[0012] According to a pre-established position conversion rule, based on the touch position, searching for an operation position corresponding to the touch position on the operation interface of the terminal device;
[0013] According to the operation type, a touch operation corresponding to the operation type is performed at the operation position.
[0014] In one embodiment, parsing the operation data packet and performing corresponding operations on the operation interface of the terminal device include:
[0015] Parse the operation data packet and determine the input operation event;
[0016] Based on the input operation event, determining input content and a content operation area corresponding to the input content;
[0017] According to a pre-established position conversion rule, based on the content operation area, searching for an input operation area corresponding to the content operation area on the operation interface of the terminal device;
[0018] Call the editing interface control to inject the input content into the input operation area corresponding to the input content.
[0019] In one of the embodiments, before sending the acquired video stream data to the first device, the method further includes:
[0020] Determining a line connection mechanism between the terminal device and the first device;
[0021] Based on the line connection mechanism, a communication connection with the first device is established.
[0022] In a second aspect, the present application provides a method for implementing a peripheral function of a terminal device, comprising:
[0023] Receive video stream data sent by a terminal device;
[0024] Based on the video stream data, displaying an operation interface of the terminal device on the first device;
[0025] In response to the operation instruction of the peripheral device, encapsulation processing is performed to obtain an operation data packet;
[0026] Send the operation data packet to the terminal device.
[0027] In a third aspect, the present application provides a device for implementing a peripheral function of a terminal device, including:
[0028] A sending module, used for sending the video stream data to the first device;
[0029] A receiving module, used for receiving an operation data packet, where the operation data packet is obtained by encapsulating and processing the first device in response to an operation instruction of the peripheral device;
[0030] The processing module is used to parse and process the operation data packet and perform corresponding operations on the operation interface of the terminal device.
[0031] In a fourth aspect, the present application provides a device for implementing a peripheral function of a terminal device, comprising:
[0032] A receiving module, used for receiving video stream data sent by a terminal device;
[0033] A display module, used for displaying an operation interface of the terminal device on the first device based on the video stream data;
[0034] The encapsulation processing module is used to respond to the operation instruction of the peripheral device and encapsulate and process to obtain the operation data packet;
[0035] The sending module is used to send the operation data packet to the terminal device.
[0036] In a fifth aspect, the present application provides a system for realizing peripheral functions of a terminal device, the system comprising: a terminal device, a first device and a peripheral device, the first device establishing communication connections with the terminal device and the peripheral device respectively;
[0037] The peripheral device is used to send an operation instruction to the first device;
[0038] The first device is used to respond to the operation instruction of the peripheral device, encapsulate and process it into an operation data packet, and send the operation data packet to the terminal device;
[0039] The terminal device is used to send video stream data to the first device, and based on the operation data packet, perform corresponding operations on the operation interface of the terminal device.
[0040] In a sixth aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method for realizing peripheral functions of the terminal device when executing the computer program.
[0041] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for realizing the peripheral functions of the terminal device described above is implemented.
[0042] The embodiments of the present application provide a method, apparatus, system, device and medium for realizing the peripheral functions of a terminal device. The terminal device sends video stream data to a first device, and then receives an operation data packet, which is obtained by encapsulating and processing the first device in response to the operation instruction of the peripheral device, and parses and processes the operation data packet, and performs corresponding operations on the operation interface of the terminal device. This technical solution can send the acquired video stream data to the first device, so that the operation interface of the terminal device is displayed on the first device without being restricted by the screen size limit, and receives the operation data packet obtained by encapsulating and processing the operation instruction of the peripheral device sent by the first device, thereby parsing the operation data packet to perform corresponding operations on the operation interface, so that the peripheral functions of the terminal device can be realized through the control of the peripheral device corresponding to the first device, which improves the operational flexibility of the terminal device, and does not need to be specially equipped with peripheral devices for the terminal device, which reduces the cost of the terminal device and greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0044] Figure 1 A schematic diagram of the structure of a peripheral function implementation system for a terminal device provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of a method for implementing peripheral functions of a terminal device provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of an interface of a first device provided in an embodiment of the present application;
[0047] Figure 4 A flowchart of a method for implementing peripheral functions of a terminal device provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the structure of a device for realizing peripheral functions of a terminal device provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of the structure of a device for realizing peripheral functions of a terminal device provided in an embodiment of the present application;
[0050] Figure 7 A schematic diagram of the structure of a device for realizing peripheral functions of a terminal device provided in an embodiment of the present application;
[0051] Figure 8 A schematic diagram of the structure of a device for realizing peripheral functions of a terminal device provided in an embodiment of the present application;
[0052] Fig. 9 A schematic diagram of the structure of a computer system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0054] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0055] It is understandable that in the process of rapid development of electronic products, more and more people use mobile phones as a carrier to log on to the Internet anytime and anywhere to meet the needs of entertainment, office and commercial applications. However, due to the portable design limitations of mobile phones, their size cannot be made larger, and it is difficult to handle complex applications. It is very important to study the processing of complex functions by smart phones. In the related art, external devices can be connected through the USB interface, but this method is limited by the small screen of the mobile phone, resulting in poor operational flexibility when processing editing and design applications, and the need to configure special peripheral devices for the terminal device, which increases the cost of the terminal device.
[0056] Based on the above-mentioned defects, the present application provides a method for realizing the peripheral functions of a terminal device, which can send the acquired video stream data to a first device, so that the operation interface of the terminal device is displayed on the first device without being restricted by the screen size limit, and receive the operation data packet obtained after the operation instruction encapsulation and processing based on the peripheral device sent by the first device, so as to parse the operation data packet to perform the corresponding operation on the operation interface. This not only enables the peripheral functions of the terminal device to be realized through the control of the peripheral device corresponding to the first device, thereby improving the operational flexibility of the terminal device, but also eliminates the need to specially equip the terminal device with peripheral devices, thereby reducing the cost of the terminal device and greatly improving the user experience.
[0057] The method for implementing the peripheral functions of a terminal device provided in the embodiment of the present application can be applied to Figure 1 The peripheral function implementation system of the terminal device shown.
[0058] like Figure 1 As shown, the system includes a terminal device 10, a first device 20 and a peripheral device 30, and the first device 20 establishes communication connections with the terminal device 10 and the peripheral device 30 respectively.
[0059] Optionally, the terminal device 10 may be a mobile terminal such as a mobile phone, a tablet computer, a PDA, a portable media player (PMP), a vehicle-mounted device, a wearable device, a smart bracelet, a pedometer, etc.
[0060] The first device 20 may be a terminal device with data processing and display functions, such as a desktop computer, a personal computer, or a digital TV. The display screen size of the first device is larger than the screen size of the terminal device.
[0061] The peripheral device 30 may include at least one input device, which may be a mouse, a keyboard, etc., wherein the mouse may be used as an indicator for the vertical and horizontal coordinate positioning of the first device, and the keyboard may input English letters, numbers, punctuation marks, etc. into the first device. The peripheral device is used to realize human-computer interaction and information conversion.
[0062] The first device 20 and the peripheral device 30 can be connected to each other by communication via an interface, Bluetooth, wifi, etc. The interface can be a serial interface, a parallel interface, a USB interface, or an RJ-45 network interface.
[0063] The first device 20 and the terminal device 10 may establish a communication connection via a wired or wireless network. Optionally, the wireless network or wired network uses standard communication technology and / or protocols. The network is typically the Internet, but may be any network, including but not limited to a local area network (WAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network.
[0064] For ease of understanding and explanation, the following Figures 2 to 9 The embodiments of the present invention provide a method, device, system and medium for implementing the peripheral functions of a terminal device.
[0065] Figure 2 A flow chart of a method for implementing a peripheral function of a terminal device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method can be executed by a terminal device, including:
[0066] S101. Send video stream data to a first device.
[0067] Specifically, before the terminal device sends the video stream data to the first device, it needs to establish a communication connection with the first device, and can first select a connection line mechanism, and then establish a communication connection between the terminal device and the first device according to the selected connection line mechanism. Optionally, the terminal device and the first device can be connected through a short-range wireless pairing or a remote pairing.
[0068] Among them, when the terminal device is connected to the first device through short-range wireless pairing, the terminal device can be paired with the first device through Bluetooth, Wi-Fi or NFC touch function; when the terminal device is connected to the first device through long-range wireless pairing, it can be remotely paired through a cloud network server. The first device can obtain the IP address of the terminal device, or the terminal device can scan the communication connection code pre-stored on the first device, so that the first device obtains the device information of the terminal device, thereby establishing a communication connection between the terminal device and the first device.
[0069] For example, the terminal device connection option is first found on the operation interface of the first device, and the user enters the terminal device identification in the device information input window after clicking the terminal device connection option, thereby establishing a communication connection between the two. Alternatively, identity authentication is performed first, and the communication connection is established after the identity authentication is passed. For example, after the user clicks the terminal device connection option, an identity authentication window appears, and the user enters an identity authentication code in the identity authentication window. When the identity authentication code is passed, the first device sends a connection software installation package to the terminal device, and the user installs the connection software installation package on the terminal device, thereby establishing a communication connection between the terminal device and the first device.
[0070] After establishing a communication connection between the terminal device and the first device, the terminal device sends video stream data to the first device, and the video stream data includes operation interface data of the terminal device, wherein the operation interface data of the terminal device may include one or more application icon data, so that the first device displays the operation interface of the terminal device in real time according to the video stream data. At this time, the display screen of the first device serves as an extended screen of the terminal device, and the extended screen may be an operation window of the first device, which can be referred to in Figure 3 The interface is shown in the figure.
[0071] S102: Receive an operation data packet, where the operation data packet is obtained by encapsulating and processing the first device in response to an operation instruction of a peripheral device.
[0072] In this step, the first device receives and responds to the operation instruction of the peripheral device, obtains the operation data based on the operation instruction, then encapsulates the operation data based on the preset protocol to obtain an operation data packet, and sends the operation data packet to the terminal device. Optionally, when the peripheral device is a mouse, the operation instruction may include a touch instruction; when the peripheral device is a keyboard, the operation instruction may include an input instruction.
[0073] S103: parse and process the operation data packet, and execute corresponding operations on the operation interface of the terminal device.
[0074] Specifically, after receiving the operation data packet, the terminal device can parse and process the operation data packet, convert the operation event of the peripheral device on the first device into a touch operation event of the terminal device, and then determine the operation type and the touch position corresponding to the operation type based on the touch operation event, and according to the pre-established position conversion rule, search for the operation position corresponding to the touch position on the operation interface of the terminal device based on the touch position, and perform the touch operation corresponding to the operation type at the operation position according to the operation type. Optionally, the position conversion rule may include a pre-established mapping relationship between the screen size of the terminal device and the screen size of the first device.
[0075] It should be noted that the touch operation event can be a click event, a slide event, or a drag event. Among them, the click event can include left-click, right-click, left-double-click, etc. The slide event can be a slide area and a slide position. The above-mentioned touch position is the position corresponding to the operation type on the display interface of the first device, and the operation position is the position corresponding to the operation type on the display interface of the terminal device.
[0076] Exemplarily, when the peripheral device is a mouse, the terminal device parses the operation data packet and converts the mouse operation event on the first device into a touch operation event. The touch operation event can be, for example, "left-click coordinates (234, 245)", that is, the operation type is a click operation, and the touch position is (234, 245). Then, according to a pre-established position conversion rule, the operation position (210, 310) corresponding to the touch position (234, 245) is searched on the terminal device, and the corresponding click operation is performed at the operation position (210, 310) on the terminal device operation interface.
[0077] Optionally, after receiving the operation data packet, the terminal device can parse the operation data packet, determine the input operation event, and based on the input operation event, determine the input content and the content operation area corresponding to the input content, and then search for the input operation area corresponding to the content operation area on the operation interface of the terminal device based on the content operation area according to a pre-established position conversion rule, and call the editing interface control to inject the input content into the input operation area corresponding to the input content.
[0078] It should be noted that the above-mentioned input operation event can be an input content adding event, an input content deleting event, or an input content modifying event. The input content can be text content. The content operation area is the operation area corresponding to the input content on the display interface of the first device, and the input operation area is the operation area corresponding to the input content on the display interface of the terminal device.
[0079] Exemplarily, when the peripheral device is a keyboard, the terminal device parses the operation data packet and determines that the operation event of the keyboard on the first device is an input operation event. The input operation event can be, for example, the input content of "input text in the content operation area formed by the first coordinate (234, 245), the second coordinate (237, 245), the third coordinate (221, 230), and the fourth coordinate (230, 230): the mobile phone is a portable device", that is, the input content is determined to be: "the mobile phone is a portable device", and the content operation area is formed by the first coordinate (234, 245), The area formed by the second coordinate (237, 245), the third coordinate (221, 230), and the fourth coordinate (230, 230) is then searched on the terminal device according to the pre-established position conversion rule for the position coordinate (210, 310) corresponding to the first coordinate (234, 245), the position coordinate (220, 310) corresponding to the second coordinate (237, 245), the position coordinate (180, 210) corresponding to the third coordinate (221, 230), and the position coordinate (200, 210) corresponding to the fourth coordinate (230, 230). That is, the area formed by the position coordinates (210, 310), (220, 310), (180, 210), and (200, 210) is the input operation area corresponding to the input content. The editing interface control is called to inject the input content "a mobile phone is a portable device" into the area consisting of the position coordinates (210, 310), (220, 310), (180, 210), and (200, 210).
[0080] Optionally, the above-mentioned touch operation events and input operation events can be carried out in coordination, such as first obtaining the operation type and the touch position corresponding to the operation type through the touch operation event, and searching for the operation position corresponding to the touch position on the operation interface of the terminal device based on the touch position according to the pre-established position conversion rule, and performing the touch operation corresponding to the operation type at the operation position according to the operation type. Based on the input operation event, the input content and the content operation area corresponding to the input content are determined, and then according to the pre-established position conversion rule, the input operation area corresponding to the content operation area is searched on the operation interface of the terminal device based on the content operation area, and the editing interface control is called to inject the input content into the input operation area corresponding to the input content.
[0081] Furthermore, when the terminal device performs a corresponding operation, the video stream data can be sent to the first device in real time, so that the first device displays the operation interface of the terminal device on the display screen in real time. After the input content is injected into the input operation area, an input document can be formed, which is then stored in the terminal device in real time. The input document can be, for example, text content, image content, or voice content.
[0082] The embodiment of the present application provides a method for realizing the peripheral functions of a terminal device. The terminal device sends video stream data to a first device, and then receives an operation data packet, which is obtained by encapsulating and processing the first device in response to the operation instruction of the peripheral device, and parses and processes the operation data packet, and performs corresponding operations on the operation interface of the terminal device. This technical solution can send video stream data to the first device, so that the operation interface of the terminal device is displayed on the first device without being restricted by the screen size limit, and receives the operation data packet encapsulated and processed based on the operation instruction of the peripheral device sent by the first device, so as to parse the operation data packet to perform corresponding operations on the operation interface, so that the peripheral functions of the terminal device can be realized through the control of the peripheral device corresponding to the first device, which improves the operational flexibility of the terminal device, and does not need to be specially equipped with peripheral devices for the terminal device, which reduces the cost of the terminal device and greatly improves the user experience.
[0083] Figure 4 A flow chart of a method for implementing a peripheral function of a terminal device provided in an embodiment of the present application. Figure 4 As shown, the method can be executed by a first device, including:
[0084] S201. Receive video stream data sent by a terminal device.
[0085] S202: Based on the video stream data, display an operation interface of the terminal device on the first device.
[0086] Specifically, after the terminal device establishes a communication connection with the first device, the terminal device sends video stream data to the first device, the first device receives the video stream data, and decodes the video stream data through a decoder to obtain decoded video stream data, and plays the decoded video stream data through a video player, thereby displaying the operation interface of the terminal device on the display screen of the first device.
[0087] The operation interface of the terminal device can be displayed in a window of the first device, and the size of the window can be customized according to the size of the display screen of the first device.
[0088] S203 , in response to the operation instruction of the peripheral device, encapsulate and process to obtain an operation data packet.
[0089] S204: Send the operation data packet to the terminal device.
[0090] Before the peripheral device sends an operation instruction to the first device, the peripheral device establishes a communication connection with the first device. The peripheral device may be a mouse or a keyboard. When the peripheral device is a mouse, the operation instruction received by the first device from the peripheral device is a touch instruction; when the first device is a keyboard, the operation instruction received by the first device from the peripheral device is an input instruction.
[0091] After the peripheral device establishes a communication connection with the first device, the peripheral device sends a touch instruction to the first device, and the first device receives and responds to the touch instruction of the peripheral device. The touch instruction includes an operation event of the peripheral device on the first device. The first device obtains the operation event, determines the operation type and the touch position corresponding to the operation type, and then encapsulates the operation type and the touch position corresponding to the operation type to generate a corresponding operation data packet, and sends the operation data packet to the terminal device.
[0092] Optionally, when the operation instruction of the peripheral device to the first device is an input instruction, the first device receives and responds to the input instruction of the peripheral device, and then generates input content based on a preset input algorithm. The input algorithm may be an algorithm pre-stored in the first device. For example, when the received input instruction includes multiple English characters, the preset input algorithm is the Sogou input method; when the received input instruction includes multiple stroke characters, the preset input algorithm is the Wubi input method.
[0093] In response to the input instruction, the first device generates input content based on a preset input algorithm, obtains a content operation area corresponding to the input content, and then encapsulates the input content and the content operation area corresponding to the input content, thereby generating a corresponding operation data packet, and sends the operation data packet to the terminal device, so that the terminal device receives the operation data packet, parses the operation data packet, and then performs a corresponding operation on the operation interface of the terminal device.
[0094] It should be noted that the above input content can be Chinese characters, numbers, letters, punctuation marks, etc.
[0095] The method for realizing the peripheral functions of a terminal device provided in this embodiment is that the first device displays the operation interface of the terminal device on the operation interface of the first device based on the received video stream data, so that the display screen of the first device serves as an extended screen of the terminal device without being restricted by the screen size of the terminal device, and receives and responds to the operation instructions of the peripheral device, encapsulates and processes them into operation data packets, so that the peripheral functions of the terminal device can be realized through the control of the peripheral device corresponding to the first device, so that the terminal device can be conveniently and flexibly operated through the peripheral device, thereby further improving the user's operation experience.
[0096] It should be noted that although the operations of the method of the present invention are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0097] Figure 5 A schematic diagram of a structure of a device for realizing peripheral functions of a terminal device provided in an embodiment of the present application. Figure 5 As shown, the device may include:
[0098] The sending module 510 is used to send the video stream data to the first device;
[0099] The receiving module 520 is used to receive an operation data packet, where the operation data packet is obtained by encapsulating and processing the first device in response to an operation instruction of the peripheral device;
[0100] The processing module 530 is used to parse and process the operation data packet and perform corresponding operations on the operation interface of the terminal device.
[0101] Optional, such as Figure 6 As shown, the processing module 530 includes:
[0102] The first parsing unit 531 is used to parse the operation data packet and convert the operation event of the peripheral device on the first device into a touch operation event;
[0103] A first determining unit 532, configured to determine an operation type and a touch position corresponding to the operation type based on a touch operation event;
[0104] A first search unit 533, configured to search for an operation position corresponding to the touch position on the operation interface of the terminal device based on the touch position according to a pre-established position conversion rule;
[0105] The touch control unit 534 is used to perform a touch control operation corresponding to the operation type at the operation position according to the operation type.
[0106] Optionally, the processing module 530 includes:
[0107] The second parsing unit 535 is used to parse the operation data packet and determine the input operation event;
[0108] A second determining unit 536, configured to determine input content and a content operation area corresponding to the input content based on the input operation event;
[0109] A second search unit 537 is used to search for an input operation area corresponding to the content operation area on the operation interface of the terminal device based on the content operation area according to a pre-established position conversion rule;
[0110] The injection unit 538 is used to call the editing interface control to inject the input content into the input operation area corresponding to the input content.
[0111] Optionally, the above device is also used for:
[0112] Determining a line connection mechanism between the terminal device and the first device;
[0113] Based on the line connection mechanism, a communication connection with the first device is established.
[0114] It can be understood that the functions of each functional module of the peripheral function implementation device of the terminal equipment provided in this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0115] Figure 7 A schematic diagram of a structure of a device for realizing peripheral functions of a terminal device provided in an embodiment of the present application. Figure 7 As shown, the device may include:
[0116] The receiving module 610 is used to receive the video stream data sent by the terminal device;
[0117] A display module 620, configured to display an operation interface of the terminal device on the first device based on the video stream data;
[0118] The encapsulation processing module 630 is used to respond to the operation instruction of the peripheral device and encapsulate and process to obtain the operation data packet;
[0119] The sending module 640 is used to send the operation data packet to the terminal device.
[0120] Optional, such as Figure 8 As shown, the above-mentioned packaging processing module 630 includes:
[0121] A first acquisition unit 631 is used to acquire an operation event of the peripheral device on the first device in response to a touch command of the peripheral device;
[0122] A first determining unit 632, configured to determine an operation type and a touch position corresponding to the operation type based on the operation event;
[0123] The first packaging processing unit 633 is used to package the operation type and the touch position corresponding to the operation type to generate an operation data packet.
[0124] Optionally, the encapsulation processing module 630 includes:
[0125] A second determining unit 634, configured to receive and generate input content based on a preset input algorithm in response to an input instruction;
[0126] The second acquisition unit 635 is used to acquire the content operation area corresponding to the input content;
[0127] The second encapsulation processing unit 636 is used to encapsulate the input content and the content operation area corresponding to the input content to generate an operation data packet.
[0128] It can be understood that the functions of each functional module of the peripheral function implementation device of the terminal equipment provided in this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0129] On the other hand, the present application provides a peripheral function implementation system for a terminal device, which can be found in Figure 1 As shown, the system includes a terminal device 10, a first device 20 and a peripheral device 30, and the first device 20 establishes communication connections with the terminal device 10 and the peripheral device 30 respectively.
[0130] The terminal device 10 is used to send video stream data to the first device, and perform corresponding operations on the operation interface of the terminal device based on the operation data packet.
[0131] The peripheral device 30 is used to send an operation instruction to the first device 20 .
[0132] The first device 20 is used for responding to the operation instruction of the peripheral device, encapsulating and processing into an operation data packet, and sending the operation data packet to the terminal device.
[0133] The peripheral function realization system of the terminal device provided in the embodiment of the present application can realize the peripheral functions of the terminal device through the peripheral device control corresponding to the first device, thereby improving the operational flexibility of the terminal device, and eliminating the need to specially equip the terminal device with peripheral devices, thereby reducing the cost of the terminal device and greatly improving the user experience.
[0134] Fig. 9 A schematic diagram of the hardware structure of a terminal device is provided for an embodiment of the present application. The terminal device provided in the embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the peripheral function implementation method of the terminal device as described above is implemented. Fig. 9 , Fig. 9 A schematic diagram of the structure of a computer system of a terminal device or a first device according to an embodiment of the present application.
[0135] like Fig. 9 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage part 1303 to a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the system 1300 are also stored. The CPU 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.
[0136] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed, so that a computer program read therefrom is installed into the storage section 1308 as needed.
[0137] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1303, and / or installed from the removable medium 1311. When the computer program is executed by the central processing unit (CPU) 1301, the above-mentioned functions defined in the system of the present application are executed.
[0138] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and the aforementioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0140] The units or modules involved in the embodiments described in the present application may be implemented by software or by hardware. The units or modules described may also be arranged in a processor, for example, may be described as: a processor comprising: a sending module, a receiving module and a processing module. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves, for example, the sending module may also be described as a module "for sending video stream data to a first device".
[0141] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or it may exist independently and not be assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the touch data processing method described in the present application: sending video stream data to a first device; receiving an operation data packet, which is obtained by encapsulating and processing the first device in response to an operation instruction of a peripheral device; parsing and processing the operation data packet, and performing corresponding operations on the operation interface of the terminal device.
[0142] In summary, the embodiments of the present application provide a method, apparatus, system, device and medium for realizing the peripheral functions of a terminal device. The terminal device sends video stream data to a first device, and then receives an operation data packet, which is obtained by encapsulating and processing the first device in response to the operation instruction of the peripheral device, and parses and processes the operation data packet, and performs corresponding operations on the operation interface of the terminal device. This technical solution can send video stream data to the first device, so that the operation interface of the terminal device is displayed on the first device without being restricted by the screen size limit, and receives the operation data packet obtained by encapsulating and processing the operation instruction of the peripheral device sent by the first device, thereby parsing the operation data packet to perform corresponding operations on the operation interface, so that the peripheral functions of the terminal device can be realized through the control of the peripheral device corresponding to the first device, which improves the operational flexibility of the terminal device, and there is no need to specially equip the terminal device with peripheral devices, which reduces the cost of the terminal device and greatly improves the user experience.
[0143] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the present application.
Claims
1. A method for realizing peripheral functions of a terminal device, characterized in that: The method comprises: Sending video stream data to the first device, wherein the video stream data includes operation interface data of the terminal device; receiving an operation data packet, wherein the operation data packet is obtained by encapsulating and processing the first device in response to an operation instruction of a peripheral device; Parsing and processing the operation data packet, and performing corresponding operations on the operation interface of the terminal device; The terminal device includes any one of a mobile phone, a tablet computer, a PDA, a personal digital assistant, a portable media player, a vehicle-mounted device, a wearable device, a smart bracelet, and a pedometer; The first device includes any one of a desktop computer and a digital TV, and the display screen size of the first device is larger than the screen size of the terminal device; The peripheral device includes at least one input device, and the input device is at least one of a mouse and a keyboard.
2. The method according to claim 1, characterized in that Parsing and processing the operation data packet, and performing corresponding operations on the operation interface of the terminal device, including: Parsing the operation data packet, and converting the operation event of the peripheral device on the first device into a touch operation event; Based on the touch operation event, determining an operation type and a touch position corresponding to the operation type; According to a pre-established position conversion rule, searching for an operation position corresponding to the touch position on an operation interface of the terminal device based on the touch position; According to the operation type, a touch operation corresponding to the operation type is performed at the operation position.
3. The method according to claim 1, characterized in that Parsing and processing the operation data packet, and performing corresponding operations on the operation interface of the terminal device, including: Parsing the operation data packet to determine the input operation event; Based on the input operation event, determining input content and a content operation area corresponding to the input content; According to a pre-established position conversion rule, searching for an input operation area corresponding to the content operation area on the operation interface of the terminal device based on the content operation area; The editing interface control is called to inject the input content into the input operation area corresponding to the input content.
4. The method according to claim 1, characterized in that: Before sending the video stream data to the first device, the method further includes: Determining a line connection mechanism between the terminal device and the first device; Based on the line connection mechanism, a communication connection with the first device is established.
5. A method for realizing peripheral functions of a terminal device, characterized in that: The method comprises: Receiving video stream data sent by a terminal device, wherein the video stream data includes operation interface data of the terminal device; Based on the video stream data, displaying an operation interface of the terminal device on the first device; In response to the operation instruction of the peripheral device, encapsulation processing is performed to obtain an operation data packet; Sending the operation data packet to the terminal device; The terminal device includes any one of a mobile phone, a tablet computer, a PDA, a personal digital assistant, a portable media player, a vehicle-mounted device, a wearable device, a smart bracelet, and a pedometer; The first device includes any one of a desktop computer and a digital TV, and the display screen size of the first device is larger than the screen size of the terminal device; The peripheral device includes at least one input device, and the input device is at least one of a mouse and a keyboard.
6. The method according to claim 5, characterized in that The operation instruction includes a touch instruction, and in response to the operation instruction of the peripheral device, encapsulation and processing to obtain an operation data packet includes: In response to a touch instruction of the peripheral device, acquiring an operation event of the peripheral device on the first device; Based on the operation event, determining an operation type and a touch position corresponding to the operation type; The operation type and the touch position corresponding to the operation type are packaged to generate an operation data packet.
7. The method according to claim 5, characterized in that The operation instruction includes an input instruction, and in response to the operation instruction of the peripheral device, encapsulating and processing to obtain an operation data packet includes: In response to an input instruction of the peripheral device, generating input content based on a preset input algorithm; Acquire a content operation area corresponding to the input content; The input content and the content operation area corresponding to the input content are encapsulated to generate an operation data packet.
8. A device for realizing peripheral functions of a terminal device, characterized in that: The device comprises: A sending module, used for sending video stream data to the first device, wherein the video stream data includes operation interface data of the terminal device; A receiving module, used for receiving an operation data packet, wherein the operation data packet is obtained by encapsulating and processing the first device in response to an operation instruction of a peripheral device; A processing module, used to parse and process the operation data packet and perform corresponding operations on the operation interface of the terminal device; The terminal device includes any one of a mobile phone, a tablet computer, a PDA, a personal digital assistant, a portable media player, a vehicle-mounted device, a wearable device, a smart bracelet, and a pedometer; The first device includes any one of a desktop computer and a digital TV, and the display screen size of the first device is larger than the screen size of the terminal device; The peripheral device includes at least one input device, and the input device is at least one of a mouse and a keyboard.
9. A device for realizing peripheral functions of a terminal device, characterized in that: The device comprises: A receiving module, used for receiving video stream data sent by a terminal device, wherein the video stream data includes operation interface data of the terminal device; A display module, configured to display an operation interface of the terminal device on a first device based on the video stream data; The encapsulation processing module is used to respond to the operation instruction of the peripheral device and encapsulate and process to obtain the operation data packet; A sending module, used for sending the operation data packet to the terminal device; The terminal device includes any one of a mobile phone, a tablet computer, a PDA, a personal digital assistant, a portable media player, a vehicle-mounted device, a wearable device, a smart bracelet, and a pedometer; The first device includes any one of a desktop computer and a digital TV, and the display screen size of the first device is larger than the screen size of the terminal device; The peripheral device includes at least one input device, and the input device is at least one of a mouse and a keyboard.
10. A peripheral function realization system of a terminal device, characterized in that: The system comprises: a terminal device, a first device and a peripheral device, wherein the first device establishes communication connections with the terminal device and the peripheral device respectively; The peripheral device is used to send an operation instruction to the first device; The first device is used to respond to the operation instruction of the peripheral device, encapsulate and process it into an operation data packet, and send the operation data packet to the terminal device; The terminal device is used to send video stream data to the first device, and perform corresponding operations on the operation interface of the terminal device based on the operation data packet, wherein the video stream data includes the operation interface data of the terminal device; The terminal device includes any one of a mobile phone, a tablet computer, a PDA, a personal digital assistant, a portable media player, a vehicle-mounted device, a wearable device, a smart bracelet, and a pedometer; The first device includes any one of a desktop computer and a digital TV, and the display screen size of the first device is larger than the screen size of the terminal device; The peripheral device includes at least one input device, and the input device is at least one of a mouse and a keyboard.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for realizing the peripheral functions of the terminal device as described in any one of claims 1 to 4 or any one of claims 5 to 7 is implemented.
12. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for realizing the peripheral functions of a terminal device as described in any one of claims 1 to 4 or any one of claims 5 to 7 is implemented.
Citation Information
Patent Citations
Interaction control method and system, terminal and storage medium
CN108055704A
Computer to handheld device virtualization system
EP2369468A1
Document processor
JP1993176085A
User terminal and control method thereof
KR101471619B1
Method, intelligent device, and system for controlling terminal device
US20170346654A1
