WO2011140774A1 - Method, apparatus and system for implementing interaction between mobile terminal and personal computer - Google Patents

Method, apparatus and system for implementing interaction between mobile terminal and personal computer Download PDF

Info

Publication number
WO2011140774A1
WO2011140774A1 PCT/CN2010/077007 CN2010077007W WO2011140774A1 WO 2011140774 A1 WO2011140774 A1 WO 2011140774A1 CN 2010077007 W CN2010077007 W CN 2010077007W WO 2011140774 A1 WO2011140774 A1 WO 2011140774A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
input
mobile terminal
negotiation
output
Prior art date
Application number
PCT/CN2010/077007
Other languages
French (fr)
Chinese (zh)
Inventor
周昊
马震宇
王冲
李毅
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011140774A1 publication Critical patent/WO2011140774A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/12Application layer protocols, e.g. WAP [Wireless Application Protocol]

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, device and system for implementing interaction between a mobile terminal and a personal computer (PC) based on Wireless Fidelity (Wi-Fi).
  • PC personal computer
  • Wi-Fi Wireless Fidelity
  • Wi-Fi Wi-Fi
  • More and more electronic devices have integrated Wi-Fi modules and antennas to take advantage of the 802.11x standard in a wide range.
  • PCs and personal mobile devices (such as mobile phones) now have good support for this standard.
  • the keyboard can only support basic ASCII input
  • the mouse can only support sliding and left and right input
  • Form separation For example, the keyboard and mouse must be two devices, the scanner and camera are also two devices, and the display and speakers for output are also two devices;
  • the keyboard and mouse need USB, PS2 and other port plug-in, the display for output needs the video card VGA port, etc., the speaker needs the output port of the sound card, etc.; It is not convenient for emergency use: for example, after the user's keyboard is damaged It is not possible to implement the keystroke input for the PC in time (except for the soft keyboard provided by the operating system input method of the PC).
  • the main purpose of the present invention is to provide a mobile terminal based on Wi-Fi.
  • a method and apparatus for PC interaction to implement wireless application interaction between a mobile terminal and a PC is a method and apparatus for PC interaction to implement wireless application interaction between a mobile terminal and a PC.
  • Another object of the present invention is to provide a mobile terminal to interact with a PC based on Wi-Fi.
  • the technical solution of the present invention is implemented as follows:
  • a method for realizing interaction between a mobile terminal and a PC based on Wi-Fi comprising: establishing a Wi-Fi connection between the mobile terminal and the PC respectively starting the protocol stack and the application to implement an application connection; Negotiate to realize the application process between the mobile terminal and the PC.
  • the negotiation process includes at least one of the following negotiations:
  • the PC and the mobile terminal perform master/slave negotiation, output capability negotiation, input capability negotiation, output data format negotiation, and input data format negotiation.
  • the process of the output capability negotiation includes at least one of the following: the output capability negotiation is initiated by the PC, and the mobile terminal records the output capability of the PC; or, the output capability negotiation is initiated by the mobile terminal, and the output capability of the mobile terminal is recorded by the PC;
  • the process of the input capability negotiation includes at least one of the following: the input capability negotiation is initiated by the mobile terminal, and the PC records the input capability of the mobile terminal; or, the input capability negotiation is initiated by the PC, and the input capability of the PC is recorded by the mobile terminal;
  • the process of negotiating the output data format includes: initiating output data format negotiation by the PC, and recording the output data format of the PC by the mobile terminal;
  • the process of negotiating the input data format includes: initiating an input data format negotiation by the mobile terminal, and the PC records the input data format of the mobile terminal.
  • the application process includes at least one of the following:
  • the process of inputting on the mobile terminal side includes:
  • the protocol stack of the mobile terminal encodes the keystroke into a specific format data and sends it to the PC, and the PC receives the keystroke data and simulates the keystroke input; and/or,
  • the protocol stack of the mobile terminal performs multimedia coding compression on the collected data according to the input capability negotiation and the data format negotiation result in the negotiation process, and sends the completed processed data to the PC; the PC receives the data and is negotiated by the protocol stack according to the protocol stack.
  • the data format is decoded, and the decoded data is sent to the corresponding virtual device driver.
  • the process of outputting the PC side includes:
  • the PC compresses and encodes the captured data according to the output data encoding format, and then transmits the processed data to the mobile terminal; the mobile terminal decodes the data from the PC according to the data format, and then performs corresponding processing on the processed data.
  • a device for implementing interaction between a mobile terminal and a PC based on Wi-Fi comprising a Wi-Fi connection module, a high layer protocol stack, and an input/output data processor;
  • the Wi-Fi connection module is configured to establish a Wi-Fi connection with the connected peer device to support a Wi-Fi based application connection;
  • the high-level protocol stack is configured to perform high-level protocol interaction and negotiation with the connected peer device;
  • the input/output data processor is configured to implement an application process with a connected peer device.
  • the high-level protocol stack When the high-level protocol stack performs the negotiation, it is used to perform at least one of the following:
  • the device further includes a data compression processing module, a multimedia processing module, and a security processing module;
  • the multimedia processing module is configured to perform multimedia processing including encoding, decoding, and format conversion on the related multimedia data according to the negotiated multimedia information;
  • the data compression processing module is configured to perform processing including compression and decompression on the data in a limited bandwidth
  • the security processing module is configured to support transmission of confidential data.
  • the device is placed in the mobile phone.
  • the apparatus is disposed in a PC, the apparatus further comprising a virtual device driver for controlling the operating system to identify and manage the multimedia input device in the form of a virtual device.
  • a system for realizing interaction between a mobile terminal and a PC based on Wi-Fi the system comprises a mobile phone and a PC each provided with a Wi-Fi connection module, a high-level protocol stack, an input/output data processor, and a virtual device driver is also set in the PC. ; among them,
  • the Wi-Fi connection module in the mobile phone and the PC is used to establish a Wi-Fi connection between the mobile phone and the PC to support Wi-Fi based application connection;
  • the high-level protocol stack in the mobile phone and the PC is used for high-level protocol interaction and negotiation between the mobile phone and the PC;
  • the input/output data processor in the mobile phone and the PC is used to implement an application process between the mobile phone and the PC.
  • the mobile phone and the PC further include a data compression processing module, a multimedia processing module, and a security processing module;
  • the multimedia processing module is configured to perform multimedia processing including encoding, decoding, and format conversion on the related multimedia data according to the negotiated multimedia information;
  • the data compression processing module is configured to perform processing including compression and decompression on the data in a limited bandwidth
  • the security processing module is configured to support transmission of confidential data.
  • the present invention is based on Wi-Fi, a method, device and system for implementing interaction between a mobile terminal and a PC, Both can realize the wireless application interaction between the mobile terminal and the PC.
  • FIG. 1 is a system diagram of implementing a mobile terminal and interaction according to an embodiment of the present invention
  • FIG. 3 is a flow chart of inputting a mobile terminal side according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of a PC side output according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of implementing interaction with a PC on a mobile terminal side according to an embodiment of the present invention
  • FIG. 6 is a flowchart of implementing a mobile terminal and interaction according to an embodiment of the present invention. detailed description
  • I/O interaction between the mobile terminal and the PC can be implemented based on Wi-Fi.
  • Wi-Fi evolution technology such as 802.11a/b/g/n series advancement
  • Wi-Fi I/ O high-level protocols are industrialized, then specific communication standards can be formed.
  • the mobile terminals supported by the standard may include mobile phones and other mobile terminals with Wi-Fi and other systems, which can be used as input/output terminals of PCs. .
  • Wi-Fi access security encrypting data through Wi-Fi's own encryption technology and high-level protocols to achieve confidentiality, and prohibiting other illegal users from arbitrarily controlling the PC.
  • the present invention mainly relates to the following technologies:
  • Audio video collection and transmission technology
  • Information encryption/decryption technology
  • Wi-Fi-enabled mobile phone as a PC's multi-function I/O device to provide users with the following services and functions:
  • the mobile phone provides a wireless keyboard input service for the PC
  • the mobile phone provides a wireless mouse input service for the PC
  • the mobile phone provides a wireless transmission picture scanning input service for the PC
  • the mobile phone provides a wireless voice input service for the PC
  • the mobile phone provides a wireless image capture input service for the PC
  • the mobile phone provides a wireless display output service for the PC
  • the phone provides a wireless sound output service for the PC.
  • Wi-Fi connection module
  • a virtual device driver is also set in the PC.
  • the above functional entities work together to achieve the purpose of providing input and output services for the PC by using a mobile phone, for example: the user provides keyboard input and mouse input for the PC by using a mobile phone keyboard and mouse; meanwhile, the PC can also use the speaker and screen of the mobile phone. And so on to achieve their own sound and image output.
  • Wi-Fi connection module 1. Wi-Fi connection module
  • the Wi-Fi connection module enables the connection between the mobile phone and the PC, where the Wi-Fi access point (Access) Point ) can be provided by a PC or by a mobile phone so that the Access Point can be searched and connected. You can choose the encryption method you use when you connect. An underlying point-to-point wireless link is implemented after the connection is completed.
  • both PCs and mobile phones are assigned unique and different LAN Internet Protocol (IP) addresses.
  • IP Internet Protocol
  • the PC side runs the server-side service and waits for the mobile phone side to access the high-level protocol.
  • the high-level protocol interface can be implemented based on the general Socket application interface of the Transmission Control Protocol (TCP)/IP protocol family.
  • TCP Transmission Control Protocol
  • IP IP protocol family.
  • the main purpose of the high-level protocol access is to enable the negotiation and data transmission between the PC and the mobile phone.
  • Protocols are used to support Wi-Fi-based mobile phones to establish connection procedures for wireless I/O devices, identity authentication, master/slave negotiation, capability negotiation, data type negotiation for transmission, data format negotiation, Transmission control, undo connection process, etc. The details will be explained in the following aspects:
  • the receiver (for example, for PC, the input is provided by the mobile phone, so the PC is the Input Recipient) to establish a Socket listening based on TCP or User Datagram Protocol (UDP) protocol, and the Socket is listening. Released on a specific port number, waiting for the Input sender (corresponding to the concept of the Input Receptor, such as a mobile phone) to access.
  • the Input sender obtains the IP address of the listener in the LAN segment, the transport layer protocol and port number used, and connects. After the connection is completed, the handshake message is sent. After the other party responds to the handshake message, the connection process ends.
  • the Input sender sends TCP or UDP raw data to the connected peer.
  • the format of the original data will be constrained by the upper layer protocol.
  • the data content is the destination message of the Wi-Fi access, such as Wi- Fi I/O. If the current connection of the Input Receptor is also for this purpose, the Input Receptor sends a confirmation message, after which the two parties will interact with the device type and design. Prepare parameters such as model.
  • Capacity negotiation can be carried out after the master-slave negotiation is completed.
  • the Input Receptor is the Output Transmitter (which can be exchanged, and the PC can also act as the Input Transmitter of the mobile phone).
  • the Input Transmitter sends its own set of input capabilities to the Input Receptor, such as whether it supports keyboard input, whether it supports mouse input, whether it supports camera input, and so on.
  • the output capability negotiation is performed, that is, the output sender sends the output capability set supported by itself to the Output receiver, for example, whether the display output is supported, whether the sound output is supported, or the like.
  • the capability negotiation is completed, the list of capability sets of the own party and the other party is maintained in the protocol stacks of both parties, and the service capabilities provided subsequently are completely in accordance with this table.
  • Data Transfer Negotiation Determines the detailed parameters of the format, data rate, type, etc. of various types of input/output data involved in the capability set. For example, keyboard events, the format of mouse events, the video format used for video input/output, and the audio format used for audio input/output. Data negotiation also contains detailed information of each type of data, such as video data, which also needs to include video size, video color type, encoding format, and so on.
  • Transmission Control Responsible for controlling the transmission rate during transmission and for transmitting and receiving specific messages.
  • the above negotiation process may be varied, for example, including at least one of the following consultations:
  • the PC and the mobile terminal perform master/slave negotiation, output capability negotiation, input capability negotiation, output data format negotiation, and input data format negotiation.
  • the process of output capability negotiation may include at least one of the following: an output capability negotiation initiated by the PC, the mobile terminal recording the output capability of the PC; or, initiated by the mobile terminal
  • the output capability is negotiated, and the output capability of the mobile terminal is recorded by the PC.
  • the process of input capability negotiation may include at least one of the following: the input capability negotiation initiated by the mobile terminal, and the PC records the input capability of the mobile terminal; or, the input capability negotiation initiated by the PC, and the input capability of the PC is recorded by the mobile terminal.
  • the program running on the mobile phone side starts to detect the user's input in the set input mode.
  • Keyboard mode The phone will detect every normal keystroke of the user and convert it to the data information that the protocol can recognize and send it to the PC via Wi-Fi.
  • Mouse mode The phone will detect each direction keystroke or pulley, optical mouse event of the user, and convert it into data information that can be recognized by the protocol and send it to the PC via Wi-Fi.
  • Camera mode If the phone has a camera device, in this mode, the phone compresses and encodes the moving image information captured by the camera and converts it into a format supported by the protocol, and then sends it to the PC via Wi-Fi.
  • Scanner mode If the phone has a camera device, in this mode, the phone compresses and encodes the still image information captured by the camera and converts it to a format supported by the protocol, and then sends it to the PC via Wi-Fi.
  • Microphone mode In this mode, the mobile phone compresses and encodes the voice data collected by the microphone device into a format supported by the protocol, and then transmits it to the PC through Wi-Fi.
  • the role of the input data processor on the PC side is mainly: After the high-level protocol starts working, the data sent by the Input sender is processed, the input type is identified, and the Input receptor is controlled.
  • a virtual keyboard (Virtual Key technology or Key HOOK technology) that can be controlled by a virtual device driver should be used on the PC to perform analog keyboard input to the PC.
  • a virtual mouse that can be controlled by the virtual device driver should be used on the PC (Virtual Mouse technology or Mouse HOOK technology) simulates mouse input to the computer.
  • the virtual driver can control the operating system to identify and manage standard multimedia input devices, but the data source of the virtual driver is the application layer and not the lower level of the operating system or even the operating system.
  • Such a virtual driver can provide a read interface, so that other applications that call the interface are considered to be acquiring data from hardware, and in fact the data is from a TCP or UDP port established by the Input Receptor.
  • the captured image is actually obtained from the phone side via Wi-Fi.
  • the regular output data of the PC can be collected and converted into a data stream that can be transmitted over Wi-Fi and that can be recognized by the mobile phone and can be actually output. For example, display interception, sound interception, etc., and the data is multimedia processed and sent to the mobile phone through the Wi-Fi communication module.
  • the mobile phone parses the data type for the received data, and then calls the corresponding drive interface to achieve the output:
  • Display output The received dynamic image is output through the screen of the mobile phone, and the image size can be zoomed, scrolled, and the like.
  • the received sound information is output through the speaker or earphone of the mobile phone, and the volume can be adjusted.
  • This sub-module is also deployed on the mobile phone side and the PC side, and is mainly used for encoding, decoding, and format conversion of related multimedia data according to the multimedia information obtained in the data negotiation phase.
  • multimedia processing modules often need to cooperate with data compression processing modules. Work to ensure the correctness, consistency and authenticity of the data transmitted by both parties in the multimedia data transmission process.
  • the data compression processing module compresses and decompresses the data with limited bandwidth to ensure input data rates.
  • the security processing module is mainly used for the transmission of confidential data and may not be enabled.
  • the operational flow of Wi-Fi-1/O negotiation can be represented as shown in FIG. 2.
  • the PC side and the mobile phone side can first establish a Wi-Fi connection, and then the PC side establishes a Socket listening, and then the mobile phone side initiates a Socket connection and the PC side performs a Socket connection confirmation.
  • the PC side and the mobile phone side perform identity authentication and master/slave negotiation, and the PC side initiates output capability negotiation, and the mobile phone side records the output capability of the PC; the mobile phone side initiates input capability negotiation, and the PC side records the mobile phone input. ability.
  • the PC side can also initiate an output data format negotiation, and the mobile phone side records the output data format of the PC; the input data format negotiation is initiated by the mobile phone side, and the input data format of the mobile phone is recorded on the PC side.
  • the PC side and the handset side can enter the working state, and the input/output data and the control information can be exchanged. Moreover, either party can initiate a notification of the end of the work status, and the other party closes the corresponding high-level link.
  • the input flow on the mobile phone side can be represented as shown in FIG.
  • the protocol stack on the mobile phone side can encode the keystrokes into specific format data and send them to the PC side, and the PC side receives the keystroke data and Simulate keystroke input.
  • the protocol stack on the mobile phone side can perform multimedia coding compression on the collected data according to the input capability negotiation and the data format negotiation result, and send the completed processing data to the PC side.
  • the PC side can receive the data and decode it according to the negotiated data format by the protocol stack, and then send the decoded data to the corresponding virtual device driver to ensure that the application can be obtained from the virtual device driver. Data.
  • the output flow on the PC side can be expressed as shown in FIG. It can be seen from Fig. 4 that whether the PC side captures the screen image or the sound data, the encoding can be compressed according to the output data encoding format; of course, the frame rate and resolution can also be considered at the same time. After that, the PC side can send the completed data to the mobile phone.
  • the mobile phone can receive data from the PC side, decode it according to the data format, and then perform corresponding display image or play sound on the processed data.
  • the mobile phone side Since the mobile phone side is usually the dominant in the process of implementing the interaction, the following describes the operation flow of the mobile phone side by taking the keyboard input and display output as an example.
  • FIG. 5 is a flowchart of implementing interaction with a PC on a mobile terminal side according to an embodiment of the present invention, where the process includes the following steps:
  • Step 501 Turn on the phone Wi-Fi and connect to the PC Access Point Name (APN).
  • API PC Access Point Name
  • the user activates the phone and initiates a Wi-Fi connection on the phone, and the Wi-Fi connection finds the APN of the PC and connects to the PC.
  • Step 502 The mobile phone starts the Wi-Fi I/O software and implements an I/O connection with the PC server. If both the mobile phone and the PC have their own input/output data processors enabled, the mobile phone and the PC can implement the above I/O connection; and the mobile phone can notify the user after completing the I/O connection.
  • Step 503 Input and output mode selection.
  • the user can select the input/output mode provided by the mobile phone: keyboard input/display output, the mobile phone notifies the PC side of the mode selected by the user; when the PC side feedback indicates that the keyboard input and/or display is permitted through the mobile phone When outputting, the phone can notify the user of the situation.
  • Step 510 Select keyboard input.
  • Step 511 When the key is pressed on the mobile phone, the PC responds to the keystroke of the mobile phone.
  • Step 520 Select display output.
  • Step 521 The PC transmits the image to be displayed to the mobile phone for display.
  • the image to be displayed on the PC can be transferred to the mobile phone via Wi-Fi, and the image is displayed by the mobile phone.
  • Step 530 End the Wi-Fi I/O function and exit the application.
  • the user terminates the input/output function of the mobile phone, and the mobile phone in turn notifies the PC of the situation, and the mobile phone and the PC end the interaction. After that, the Wi-Fi connection between the phone and the PC is disconnected and the process ends.
  • a mobile terminal interacts with a PC based on Wi-Fi
  • a Wi-Fi connection and an application connection can be established between the mobile phone and the PC; after the high-level protocol interaction and negotiation, the mobile phone and the PC can be implemented based on Wi-Fi.
  • Application interactions including input and output.
  • the phone disconnects the application layer from the PC and the Wi-Fi connection.
  • the output capability negotiation may also be initiated by the mobile terminal, and the output capability of the mobile terminal may be recorded by the PC; during the input capability negotiation process, the input capability negotiation may also be initiated by the PC, by the mobile terminal. Record the input capabilities of the PC.
  • the specific application process may also include PC side input; mobile terminal side output.
  • FIG. 6 is a flowchart of implementing a mobile terminal and interaction according to an embodiment of the present invention, where the process includes the following steps:
  • Step 610 The mobile terminal and the PC respectively start a protocol stack and an application, and establish a Wi-Fi connection between the mobile terminal and the PC to implement an application connection.
  • Step 620 Implement an application process between the mobile terminal and the PC through high-level protocol interaction and negotiation.
  • the present invention is based on Wi-Fi technology for implementing mobile terminal interaction with a PC, and can implement wireless application interaction between the mobile terminal and the PC.
  • the present invention can be used for the input/output mode of a PC and the human being by utilizing the multimedia and multi-input capabilities of the mobile phone and the portability, combined with the long-distance, large-bandwidth wireless performance unique to Wi-Fi technology.
  • the machine interaction mode provides a new operational idea and has the following advantages:
  • Wi-Fi's long effective transmission distance ensures that users can control without needing to be close to the PC; and unlike traditional wireless mice and keyboards, users are outdoors or even off-site (requires a wider range of wireless) Links, such as WiMAX support, can also control the PC.
  • Instant special device support For PCs that don't have special devices such as scanners, cameras, microphones, etc., you only need to use a mobile phone (currently, the phone basically has a standard configuration such as a camera or a microphone) to provide temporary special device support for the PC. To enable users to instantly enjoy the services provided by these special devices.
  • special devices such as scanners, cameras, microphones, etc.
  • the mobile phone is only used as a client, only for inputting the required operation instructions. It simplifies the user operation and strengthens and expands the mobile phone.

Abstract

Disclosed are a method, an apparatus and a system for implementing interaction between a mobile terminal and a personal computer (PC), wherein a protocol stack and an application program are started respectively by the mobile terminal and the PC, and a wireless fidelity (Wi-Fi) connection is established between the mobile terminal and the PC, thereby an application connection is implemented (610); and the application process between the mobile terminal and the PC is implemented through high-layer protocol interaction and negotiation (620). The method, apparatus and system of the present invention implement the wireless application interaction between mobile terminals and the PCs.

Description

实现移动终端与 PC交互的方法、 装置和系统 技术领域  Method, device and system for realizing interaction between mobile terminal and PC
本发明涉及通信领域,具体涉及基于无线保真( Wireless Fidelity, Wi-Fi ) 实现移动终端与个人计算机(PC ) 交互的方法、 装置和系统。 背景技术  The present invention relates to the field of communications, and in particular, to a method, device and system for implementing interaction between a mobile terminal and a personal computer (PC) based on Wireless Fidelity (Wi-Fi). Background technique
Wi-Fi技术的诞生和普及在近距离无线传输应用领域产生了不可估量 的作用, 已经有越来越多的电子设备集成了 Wi-Fi模块和天线, 以利用 802.11x标准在一个大范围内进行互相识别、 组网以及实现高带宽传输。 PC 和个人移动终端 (如手机等) 目前均具备对这种标准的良好支持。  The birth and popularity of Wi-Fi technology has played an invaluable role in short-range wireless transmission applications. More and more electronic devices have integrated Wi-Fi modules and antennas to take advantage of the 802.11x standard in a wide range. Mutual identification, networking and high bandwidth transmission. PCs and personal mobile devices (such as mobile phones) now have good support for this standard.
传统 PC的输入和输出装置大多还都是有线输入和输出 ,有一部分设备 已经实现了无线输入和输出, 例如无线鼠标、 无线键盘甚至无线摄像头等, 但是这些无线设备大都具有以下局限性:  Most of the input and output devices of traditional PCs are also wired input and output. Some devices have realized wireless input and output, such as wireless mouse, wireless keyboard and even wireless camera, but these wireless devices mostly have the following limitations:
功能特定: 例如键盘只能支持基本 ASCII码输入, 鼠标只能支持滑动 以及左、 右键输入等;  Function specific: For example, the keyboard can only support basic ASCII input, the mouse can only support sliding and left and right input;
形式分离: 例如键盘和鼠标必须是两个设备, 扫描仪和摄像头也是两 个设备, 用于输出的显示器和音箱也是两个设备;  Form separation: For example, the keyboard and mouse must be two devices, the scanner and camera are also two devices, and the display and speakers for output are also two devices;
必须有特定的传输端口: 例如键盘、 鼠标需要 USB、 PS2等端口插接, 用于输出的显示器需要显卡 VGA端口等, 音箱需要声卡的输出端口等; 不方便应急使用:例如在用户键盘损坏之后无法及时实现以 PC为对象 的击键输入(PC的操作系统输入法提供的软键盘除外)等。  There must be a specific transmission port: for example, the keyboard and mouse need USB, PS2 and other port plug-in, the display for output needs the video card VGA port, etc., the speaker needs the output port of the sound card, etc.; It is not convenient for emergency use: for example, after the user's keyboard is damaged It is not possible to implement the keystroke input for the PC in time (except for the soft keyboard provided by the operating system input method of the PC).
可见, 移动终端目前尚无法与 PC实现有效的无线应用交互。 发明内容 It can be seen that the mobile terminal is currently unable to implement effective wireless application interaction with the PC. Summary of the invention
有鉴于此,本发明的主要目的在于提供一种基于 Wi-Fi实现移动终端与 In view of this, the main purpose of the present invention is to provide a mobile terminal based on Wi-Fi.
PC交互的方法和装置, 以实现移动终端与 PC之间的无线应用交互。 A method and apparatus for PC interaction to implement wireless application interaction between a mobile terminal and a PC.
本发明的另一目的在于提供一种基于 Wi-Fi实现移动终端与 PC交互的 为达到上述目的, 本发明的技术方案是这样实现的:  Another object of the present invention is to provide a mobile terminal to interact with a PC based on Wi-Fi. To achieve the above object, the technical solution of the present invention is implemented as follows:
一种基于 Wi-Fi实现移动终端与 PC交互的方法, 该方法包括: 在分别启动了协议栈以及应用程序的移动终端和 PC之间建立 Wi-Fi连 接, 实现应用连接; 经过高层协议交互和协商, 实现移动终端与 PC之间的 应用过程。  A method for realizing interaction between a mobile terminal and a PC based on Wi-Fi, the method comprising: establishing a Wi-Fi connection between the mobile terminal and the PC respectively starting the protocol stack and the application to implement an application connection; Negotiate to realize the application process between the mobile terminal and the PC.
所述协商过程包括以下协商中至少之一:  The negotiation process includes at least one of the following negotiations:
PC和移动终端进行主 /从协商、 输出能力协商、 输入能力协商、 输出数 据格式协商、 输入数据格式协商。  The PC and the mobile terminal perform master/slave negotiation, output capability negotiation, input capability negotiation, output data format negotiation, and input data format negotiation.
所述输出能力协商的过程包括以下至少之一: 由 PC发起输出能力协 商, 移动终端记录 PC的输出能力; 或, 由移动终端发起输出能力协商, 由 PC记录移动终端的输出能力;  The process of the output capability negotiation includes at least one of the following: the output capability negotiation is initiated by the PC, and the mobile terminal records the output capability of the PC; or, the output capability negotiation is initiated by the mobile terminal, and the output capability of the mobile terminal is recorded by the PC;
所述输入能力协商的过程包括以下至少之一: 由移动终端发起输入能 力协商, PC记录移动终端的输入能力; 或, 由 PC发起输入能力协商, 由 移动终端记录 PC的输入能力;  The process of the input capability negotiation includes at least one of the following: the input capability negotiation is initiated by the mobile terminal, and the PC records the input capability of the mobile terminal; or, the input capability negotiation is initiated by the PC, and the input capability of the PC is recorded by the mobile terminal;
所述输出数据格式协商的过程包括: 由 PC发起输出数据格式协商,移 动终端记录 PC的输出数据格式;  The process of negotiating the output data format includes: initiating output data format negotiation by the PC, and recording the output data format of the PC by the mobile terminal;
所述输入数据格式协商的过程包括: 由移动终端发起输入数据格式协 商, PC记录移动终端的输入数据格式。  The process of negotiating the input data format includes: initiating an input data format negotiation by the mobile terminal, and the PC records the input data format of the mobile terminal.
所述应用过程包括以下至少之一:  The application process includes at least one of the following:
移动终端侧输入; PC侧输出; 或, PC侧输入; 移动终端侧输出。 Mobile terminal side input; PC side output; Or, PC side input; Mobile terminal side output.
所述移动终端侧输入的过程包括:  The process of inputting on the mobile terminal side includes:
移动终端的协议栈将击键编码成特定格式数据并向 PC发送, 由 PC接 收到击键数据并模拟击键输入; 和 /或,  The protocol stack of the mobile terminal encodes the keystroke into a specific format data and sends it to the PC, and the PC receives the keystroke data and simulates the keystroke input; and/or,
移动终端的协议栈根据协商过程中的输入能力协商和数据格式协商结 果对釆集到的数据进行多媒体编码压缩, 并将完成处理的数据向 PC发送; PC接收所述数据并由协议栈根据协商的数据格式进行解码, 再将解码数据 发送至相应的虚拟设备驱动。  The protocol stack of the mobile terminal performs multimedia coding compression on the collected data according to the input capability negotiation and the data format negotiation result in the negotiation process, and sends the completed processed data to the PC; the PC receives the data and is negotiated by the protocol stack according to the protocol stack. The data format is decoded, and the decoded data is sent to the corresponding virtual device driver.
所述 PC侧输出的过程包括:  The process of outputting the PC side includes:
PC将捕获的数据根据输出数据编码格式压缩编码, 再将完成处理的数 据发送到移动终端; 移动终端根据数据格式对来自 PC的数据进行解码, 再 对完成处理的数据进行相应处理。  The PC compresses and encodes the captured data according to the output data encoding format, and then transmits the processed data to the mobile terminal; the mobile terminal decodes the data from the PC according to the data format, and then performs corresponding processing on the processed data.
一种基于 Wi-Fi实现移动终端与 PC交互的装置, 该装置包括 Wi-Fi连 接模块、 高层协议栈、 输入 /输出数据处理器; 其中,  A device for implementing interaction between a mobile terminal and a PC based on Wi-Fi, the device comprising a Wi-Fi connection module, a high layer protocol stack, and an input/output data processor;
所述 Wi-Fi连接模块, 用于与相连的对端装置之间建立 Wi-Fi连接, 以 支持基于 Wi-Fi的应用连接;  The Wi-Fi connection module is configured to establish a Wi-Fi connection with the connected peer device to support a Wi-Fi based application connection;
所述高层协议栈, 用于进行与相连的对端装置之间的高层协议交互和 协商;  The high-level protocol stack is configured to perform high-level protocol interaction and negotiation with the connected peer device;
所述输入 /输出数据处理器, 用于实现与相连的对端装置之间的应用过 程。  The input/output data processor is configured to implement an application process with a connected peer device.
所述高层协议栈进行所述协商时, 用于进行以下至少之一:  When the high-level protocol stack performs the negotiation, it is used to perform at least one of the following:
与相连的对端装置之间进行的主 /从协商、 输出能力协商、 输入能力协 商、 输出数据格式协商、 输入数据格式协商。  Master/slave negotiation, output capability negotiation, input capability negotiation, output data format negotiation, and input data format negotiation with the connected peer device.
该装置进一步包括数据压缩处理模块、 多媒体处理模块、 安全处理模 块; 其中, 所述多媒体处理模块, 用于根据所述协商得到的多媒体信息对相关的 多媒体数据进行包括编码、 解码, 格式转换在内的多媒体处理; The device further includes a data compression processing module, a multimedia processing module, and a security processing module; The multimedia processing module is configured to perform multimedia processing including encoding, decoding, and format conversion on the related multimedia data according to the negotiated multimedia information;
所述数据压缩处理模块, 用于在带宽有限的情况下对数据进行包括压 缩和解压缩在内的处理;  The data compression processing module is configured to perform processing including compression and decompression on the data in a limited bandwidth;
所述安全处理模块, 用于支持保密数据的传输。  The security processing module is configured to support transmission of confidential data.
该装置设置于手机中。  The device is placed in the mobile phone.
该装置设置于 PC中, 该装置进一步包括虚拟设备驱动, 用于以虚拟设 备的形式控制操作系统识别并管理多媒体输入设备。  The apparatus is disposed in a PC, the apparatus further comprising a virtual device driver for controlling the operating system to identify and manage the multimedia input device in the form of a virtual device.
一种基于 Wi-Fi实现移动终端与 PC交互的系统, 该系统包括均设置有 Wi-Fi连接模块、 高层协议栈、 输入 /输出数据处理器的手机和 PC, PC中还 设置有虚拟设备驱动; 其中,  A system for realizing interaction between a mobile terminal and a PC based on Wi-Fi, the system comprises a mobile phone and a PC each provided with a Wi-Fi connection module, a high-level protocol stack, an input/output data processor, and a virtual device driver is also set in the PC. ; among them,
手机和 PC中的所述 Wi-Fi连接模块,用于在手机和 PC之间建立 Wi-Fi 连接, 以支持基于 Wi-Fi的应用连接;  The Wi-Fi connection module in the mobile phone and the PC is used to establish a Wi-Fi connection between the mobile phone and the PC to support Wi-Fi based application connection;
手机和 PC中的所述高层协议栈, 用于在手机和 PC之间进行高层协议 交互和协商;  The high-level protocol stack in the mobile phone and the PC is used for high-level protocol interaction and negotiation between the mobile phone and the PC;
手机和 PC中的所述输入 /输出数据处理器,用于实现手机和 PC之间的 应用过程。  The input/output data processor in the mobile phone and the PC is used to implement an application process between the mobile phone and the PC.
手机和 PC中进一步均包括数据压缩处理模块、 多媒体处理模块、安全 处理模块; 其中,  The mobile phone and the PC further include a data compression processing module, a multimedia processing module, and a security processing module;
所述多媒体处理模块, 用于根据所述协商得到的多媒体信息对相关的 多媒体数据进行包括编码、 解码, 格式转换在内的多媒体处理;  The multimedia processing module is configured to perform multimedia processing including encoding, decoding, and format conversion on the related multimedia data according to the negotiated multimedia information;
所述数据压缩处理模块, 用于在带宽有限的情况下对数据进行包括压 缩和解压缩在内的处理;  The data compression processing module is configured to perform processing including compression and decompression on the data in a limited bandwidth;
所述安全处理模块, 用于支持保密数据的传输。  The security processing module is configured to support transmission of confidential data.
可见,本发明基于 Wi-Fi实现移动终端与 PC交互的方法、装置和系统, 均能够实现移动终端与 PC之间的无线应用交互 附图说明 It can be seen that the present invention is based on Wi-Fi, a method, device and system for implementing interaction between a mobile terminal and a PC, Both can realize the wireless application interaction between the mobile terminal and the PC.
图 1为本发明一实施例的实现移动终端与交互的系统图;  FIG. 1 is a system diagram of implementing a mobile terminal and interaction according to an embodiment of the present invention; FIG.
图 2为本发明一实施例的 Wi-Fi-1/O协商流程图;  2 is a flowchart of Wi-Fi-1/O negotiation according to an embodiment of the present invention;
图 3为本发明一实施例的移动终端侧输入流程图;  3 is a flow chart of inputting a mobile terminal side according to an embodiment of the present invention;
图 4为本发明一实施例的 PC侧输出流程图;  4 is a flow chart of a PC side output according to an embodiment of the present invention;
图 5为本发明一实施例的移动终端侧实现与 PC交互的流程图  FIG. 5 is a flowchart of implementing interaction with a PC on a mobile terminal side according to an embodiment of the present invention;
图 6为本发明一实施例的实现移动终端与交互的流程图。 具体实施方式  FIG. 6 is a flowchart of implementing a mobile terminal and interaction according to an embodiment of the present invention. detailed description
总体而言, 可以基于 Wi-Fi实现移动终端与 PC之间的输入 /输出( I/O ) 交互。 另夕卜, 还可以利用 Wi-Fi的演进技术(例如 802.11a/b/g/n系列推进), 以增强无线接入范围和穿越能力; 再有, 如果需要应用到的 Wi-Fi I/O高层 协议被工业化, 那么可以形成具体的通信标准, 该标准所支持的移动终端 可能包括手机以及其它带有 Wi-Fi甚至是其它制式的移动终端,该移动终端 可作为 PC的输入 /输出终端。  In general, input/output (I/O) interaction between the mobile terminal and the PC can be implemented based on Wi-Fi. In addition, Wi-Fi evolution technology (such as 802.11a/b/g/n series advancement) can also be utilized to enhance wireless access range and traversal capability; and, if applicable, Wi-Fi I/ O high-level protocols are industrialized, then specific communication standards can be formed. The mobile terminals supported by the standard may include mobile phones and other mobile terminals with Wi-Fi and other systems, which can be used as input/output terminals of PCs. .
而且, 可以在 Wi-Fi的接入安全上做进一步考虑, 通过 Wi-Fi本身的加 密技术以及高层协议对数据进行加密以达到保密的目的, 禁止其它非法用 户随意操控 PC。  Moreover, it is possible to further consider Wi-Fi access security, encrypting data through Wi-Fi's own encryption technology and high-level protocols to achieve confidentiality, and prohibiting other illegal users from arbitrarily controlling the PC.
下面, 仅以基于 Wi-Fi实现手机与 PC之间的交互为例进行描述。  In the following, the interaction between the mobile phone and the PC based on Wi-Fi is taken as an example for description.
本发明主要涉及以下技术:  The present invention mainly relates to the following technologies:
Wi-Fi区域网络的构建和身份识别技术;  Wi-Fi area network construction and identification technology;
手机和 PC进行 I/O交互的高层协议;  A high-level protocol for I/O interaction between a mobile phone and a PC;
个人电脑操作系统虚拟事件技术;  Personal computer operating system virtual event technology;
音频、 视频釆集和传输技术; 信息加密 /解密技术。 Audio, video collection and transmission technology; Information encryption/decryption technology.
具体应用中, 可以利用带 Wi-Fi功能的手机作为 PC的多功能 I/O设备 为用户提供以下服务和功能:  In specific applications, you can use the Wi-Fi-enabled mobile phone as a PC's multi-function I/O device to provide users with the following services and functions:
手机为 PC提供无线键盘输入服务;  The mobile phone provides a wireless keyboard input service for the PC;
手机为 PC提供无线鼠标输入服务;  The mobile phone provides a wireless mouse input service for the PC;
手机为 PC提供无线传输图片扫描输入服务;  The mobile phone provides a wireless transmission picture scanning input service for the PC;
手机为 PC提供无线传输的麦克风声音输入服务;  The mobile phone provides a wireless voice input service for the PC;
手机为 PC提供无线图像捕获输入服务;  The mobile phone provides a wireless image capture input service for the PC;
手机为 PC提供无线显示输出服务;  The mobile phone provides a wireless display output service for the PC;
手机为 PC提供无线声音输出服务。  The phone provides a wireless sound output service for the PC.
并且, 可以如图 1所示分别在 PC和手机中设置以下功能实体:  And, the following functional entities can be set in the PC and the mobile phone respectively as shown in FIG. 1:
Wi-Fi连接模块;  Wi-Fi connection module;
输入 /输出数据处理器;  Input/output data processor;
多媒体处理模块;  Multimedia processing module;
高层协议栈;  High-level protocol stack;
安全处理模块;  Security processing module;
数据压缩处理模块。  Data compression processing module.
另外, 在 PC中还要设置虚拟设备驱动。  In addition, a virtual device driver is also set in the PC.
上述的各功能实体协同工作,从而达到利用手机为 PC提供输入输出服 务的目的, 例如: 用户使用手机键盘和鼠标等为 PC提供键盘输入和鼠标输 入; 同时, PC也可以使用手机的扬声器、 屏幕等实现自身的声音和图像输 出。  The above functional entities work together to achieve the purpose of providing input and output services for the PC by using a mobile phone, for example: the user provides keyboard input and mouse input for the PC by using a mobile phone keyboard and mouse; meanwhile, the PC can also use the speaker and screen of the mobile phone. And so on to achieve their own sound and image output.
下面, 针对上述的各功能实体进行详细说明。  Hereinafter, each functional entity described above will be described in detail.
1. Wi-Fi连接模块  1. Wi-Fi connection module
Wi-Fi连接模块实现手机和 PC的连接, 其中 Wi-Fi的接入点 (Access Point ) 可以由 PC提供也可以由手机提供, 以便能顺利搜索该 Access Point 并且进行连接。 连接时可以自由选择使用的加密方式。 连接完成之后一个 底层的点对点无线链路即实现。 在所组成的局域网络中, PC和手机都分配 到唯一的、 不同的局域网网际协议(IP )地址。 The Wi-Fi connection module enables the connection between the mobile phone and the PC, where the Wi-Fi access point (Access) Point ) can be provided by a PC or by a mobile phone so that the Access Point can be searched and connected. You can choose the encryption method you use when you connect. An underlying point-to-point wireless link is implemented after the connection is completed. In the local area network, both PCs and mobile phones are assigned unique and different LAN Internet Protocol (IP) addresses.
在连接成功之后, PC侧运行服务器端服务, 等待手机侧进行高层协议 接入。 高层协议接口可基于传输控制协议(TCP ) /IP协议族的通用 Socket 应用接口实现,高层协议接入的主要目的在于使 PC和手机之间能够进行输 入 /输出方案的协商及数据传输。  After the connection is successful, the PC side runs the server-side service and waits for the mobile phone side to access the high-level protocol. The high-level protocol interface can be implemented based on the general Socket application interface of the Transmission Control Protocol (TCP)/IP protocol family. The main purpose of the high-level protocol access is to enable the negotiation and data transmission between the PC and the mobile phone.
2. 高层协议栈  2. High-level protocol stack
本发明中涉及到的高层协议只是一个初步设想的概念, 业界尚未有相 关的协议标准支持。 高层协议(以下简称 "协议")用于支持基于 Wi-Fi的 手机进行无线 I/O设备的建立连接流程、 身份认证、 主 /从协商、 能力协商、 传输的数据类型协商、 数据格式协商、 传输控制、 撤销连接流程等。 详细 内容将从以下几个方面进行阐述:  The high-level protocol involved in the present invention is only a preliminary concept, and the industry has not yet supported the relevant protocol standards. High-level protocols (hereinafter referred to as "protocols") are used to support Wi-Fi-based mobile phones to establish connection procedures for wireless I/O devices, identity authentication, master/slave negotiation, capability negotiation, data type negotiation for transmission, data format negotiation, Transmission control, undo connection process, etc. The details will be explained in the following aspects:
建立连接流程: 在 Wi-Fi无线链路构建的 TCP/IP连接之上, 由输入 Establish a connection process: Above the TCP/IP connection built by the Wi-Fi wireless link, by input
( Input ) 受体(例如对 PC而言, 是由手机提供输入的, 所以 PC为 Input 受体)建立一个基于 TCP或者用户数据包协议( UDP )协议的 Socket侦听, 并将该 Socket侦听发布在某特定端口号上, 等待 Input发送体 (与 Input受 体的概念相对应, 如手机)接入。 Input发送体获取局域网段内侦听方的 IP 地址、 所釆用的传输层协议和端口号, 并进行连接, 在连接完毕后发送握 手消息, 在对方回应握手消息后连接过程结束。 (Input) The receiver (for example, for PC, the input is provided by the mobile phone, so the PC is the Input Recipient) to establish a Socket listening based on TCP or User Datagram Protocol (UDP) protocol, and the Socket is listening. Released on a specific port number, waiting for the Input sender (corresponding to the concept of the Input Receptor, such as a mobile phone) to access. The Input sender obtains the IP address of the listener in the LAN segment, the transport layer protocol and port number used, and connects. After the connection is completed, the handshake message is sent. After the other party responds to the handshake message, the connection process ends.
身份认证: 连接结束之后, Input发送体向连接的对端发送 TCP或者 UDP原始数据, 该原始数据的格式将受到高层协议约束, 数据内容为本次 Wi-Fi接入的目的消息, 如 Wi-Fi I/O。 如果 Input受体的本次连接同样为了 达到这一目的, 则 Input受体发送确认消息, 之后双方将交互设备类型、 设 备型号等参数。 Identity authentication: After the connection is completed, the Input sender sends TCP or UDP raw data to the connected peer. The format of the original data will be constrained by the upper layer protocol. The data content is the destination message of the Wi-Fi access, such as Wi- Fi I/O. If the current connection of the Input Receptor is also for this purpose, the Input Receptor sends a confirmation message, after which the two parties will interact with the device type and design. Prepare parameters such as model.
主 /从协商: 可以约定好双方在传输中所扮演的角色, 即 Input 受体和 Input发送体, 以及输出 (Output ) 受体和 Output发送体等。  Master/slave negotiation: It is possible to agree on the roles played by the two parties in the transmission, namely the Input Recipient and the Input Transmitter, as well as the Output Recipient and the Output Transmitter.
能力协商: 主从协商完成之后可以进行能力协商。 当釆用单向传输时, Input受体即 Output发送体(其实可以交换过来, PC也能作为手机的 Input 发送体)。 Input发送体将自身的输入能力集向 Input受体发送, 例如是否支 持键盘输入、是否支持鼠标输入、是否支持摄像头输入等。之后进行 Output 能力协商,即 Output发送体将自身所支持的输出能力集向 Output受体发送, 例如是否支持显示器输出、 是否支持声音输出等。 能力协商完成之后, 在 双方的协议栈内部分别维护己方和对方的能力集列表, 后续所提供的服务 能力完全按照此表进行。  Capacity negotiation: Capacity negotiation can be carried out after the master-slave negotiation is completed. When using one-way transmission, the Input Receptor is the Output Transmitter (which can be exchanged, and the PC can also act as the Input Transmitter of the mobile phone). The Input Transmitter sends its own set of input capabilities to the Input Receptor, such as whether it supports keyboard input, whether it supports mouse input, whether it supports camera input, and so on. After that, the output capability negotiation is performed, that is, the output sender sends the output capability set supported by itself to the Output receiver, for example, whether the display output is supported, whether the sound output is supported, or the like. After the capability negotiation is completed, the list of capability sets of the own party and the other party is maintained in the protocol stacks of both parties, and the service capabilities provided subsequently are completely in accordance with this table.
数据传输协商: 决定能力集中涉及到的输入 /输出的各种类型数据的格 式、 数据率、 类型等详细参数。 例如键盘事件、 鼠标事件的格式, 视频输 入 /输出所釆用的视频格式, 以及音频输入 /输出所釆用的音频格式等。 数据 协商还包含各类型数据的详细信息, 如视频数据还需要附加包含视频尺寸、 视频色彩类型、 编码格式等。  Data Transfer Negotiation: Determines the detailed parameters of the format, data rate, type, etc. of various types of input/output data involved in the capability set. For example, keyboard events, the format of mouse events, the video format used for video input/output, and the audio format used for audio input/output. Data negotiation also contains detailed information of each type of data, such as video data, which also needs to include video size, video color type, encoding format, and so on.
传输控制: 负责在传输过程中对传输速率的控制、 以及实现特定消息 的发送和接收等。  Transmission Control: Responsible for controlling the transmission rate during transmission and for transmitting and receiving specific messages.
撤销连接流程: 当用户需要解除连接时, 首先断开高层协议连接并知 会通信双方, 之后解除 Wi-Fi的底层链路。  Undo the connection process: When the user needs to disconnect, first disconnect the high-level protocol and notify the communication parties, and then release the underlying link of Wi-Fi.
上述协商过程可能是多种多样的, 如, 包括以下协商中至少之一: The above negotiation process may be varied, for example, including at least one of the following consultations:
PC和移动终端进行主 /从协商、 输出能力协商、 输入能力协商、 输出数 据格式协商、 输入数据格式协商。 The PC and the mobile terminal perform master/slave negotiation, output capability negotiation, input capability negotiation, output data format negotiation, and input data format negotiation.
并且, 具体而言, 输出能力协商的过程可能包括以下至少之一: 由 PC 发起输出能力协商, 移动终端记录 PC的输出能力; 或者, 由移动终端发起 输出能力协商, 由 PC记录移动终端的输出能力。输入能力协商的过程则可 能包括以下至少之一: 由移动终端发起输入能力协商, PC记录移动终端的 输入能力; 或者, 由 PC发起输入能力协商, 由移动终端记录 PC的输入能 力。 And, in particular, the process of output capability negotiation may include at least one of the following: an output capability negotiation initiated by the PC, the mobile terminal recording the output capability of the PC; or, initiated by the mobile terminal The output capability is negotiated, and the output capability of the mobile terminal is recorded by the PC. The process of input capability negotiation may include at least one of the following: the input capability negotiation initiated by the mobile terminal, and the PC records the input capability of the mobile terminal; or, the input capability negotiation initiated by the PC, and the input capability of the PC is recorded by the mobile terminal.
3. 输入 /输出数据处理器中的输入数据处理器  3. Input/output data processor in the data processor
在手机侧, 当手机打开 Wi-Fi I/O功能之后, 运行在手机侧的程序就开 始在设定的输入模式下对用户的输入进行检测。  On the mobile phone side, when the mobile phone turns on the Wi-Fi I/O function, the program running on the mobile phone side starts to detect the user's input in the set input mode.
键盘模式: 手机将检测用户的每一次普通键击键, 并且将其转换为协 议所能识别的数据信息, 通过 Wi-Fi发送到 PC。  Keyboard mode: The phone will detect every normal keystroke of the user and convert it to the data information that the protocol can recognize and send it to the PC via Wi-Fi.
鼠标模式: 手机将检测用户的每一次方向键击键或者滑轮、 光学鼠标 事件, 并且将其转换为协议所能识别的数据信息, 通过 Wi-Fi发送到 PC。  Mouse mode: The phone will detect each direction keystroke or pulley, optical mouse event of the user, and convert it into data information that can be recognized by the protocol and send it to the PC via Wi-Fi.
摄像头模式: 如果手机具有摄像头设备, 在此模式下, 手机对摄像头 捕获的动态图像信息进行压缩编码并且转换为协议所支持的格式, 再通过 Wi-Fi发送到 PC。  Camera mode: If the phone has a camera device, in this mode, the phone compresses and encodes the moving image information captured by the camera and converts it into a format supported by the protocol, and then sends it to the PC via Wi-Fi.
扫描仪模式: 如果手机具有摄像头设备, 在此模式下, 手机对摄像头 捕获的静态图像信息进行压缩编码并且转换为协议所支持的格式, 再通过 Wi-Fi发送到 PC。  Scanner mode: If the phone has a camera device, in this mode, the phone compresses and encodes the still image information captured by the camera and converts it to a format supported by the protocol, and then sends it to the PC via Wi-Fi.
麦克风模式: 在该模式下, 手机对麦克风设备釆集到的语音数据进行 压缩编码再转换为协议支持的格式, 再通过 Wi-Fi发送到 PC。  Microphone mode: In this mode, the mobile phone compresses and encodes the voice data collected by the microphone device into a format supported by the protocol, and then transmits it to the PC through Wi-Fi.
在 PC侧的输入数据处理器的作用主要是: 在高层协议开始工作之后, 对 Input发送体发送过来的数据进行处理, 识别输入类型并对 Input受体进 行控制。  The role of the input data processor on the PC side is mainly: After the high-level protocol starts working, the data sent by the Input sender is processed, the input type is identified, and the Input receptor is controlled.
对于键盘输入, 在 PC 上应当使用能受虚拟设备驱动控制的虚拟按键 ( Virtual Key技术或者 Key HOOK技术)对 PC进行模拟键盘输入。  For keyboard input, a virtual keyboard (Virtual Key technology or Key HOOK technology) that can be controlled by a virtual device driver should be used on the PC to perform analog keyboard input to the PC.
对于鼠标输入, 在 PC 上应当使用能受虚拟设备驱动控制的虚拟鼠标 ( Virtual Mouse技术或者 Mouse HOOK技术)对电脑进行模拟鼠标输入。 对于其它多媒体类型的输入,可以在 PC上通过包含虚拟设备驱动的虚 拟驱动程序来进行。 虚拟驱动程序可以控制操作系统识别并管理标准的多 媒体输入设备, 但虚拟驱动程序的数据来源是应用层而并不是操作系统甚 至操作系统的更低层次。 上述这类虚拟驱动程序可以提供 read接口, 使其 它调用该接口的应用程序认为是在从硬件获取数据, 而事实上数据是来自 Input受体所建立的 TCP或者 UDP端口。 如虚拟摄像头, 其捕获的图象实 际上是通过 Wi-Fi从手机侧获得的。 For mouse input, a virtual mouse that can be controlled by the virtual device driver should be used on the PC (Virtual Mouse technology or Mouse HOOK technology) simulates mouse input to the computer. For other multimedia type inputs, it can be done on the PC via a virtual driver that contains virtual device drivers. The virtual driver can control the operating system to identify and manage standard multimedia input devices, but the data source of the virtual driver is the application layer and not the lower level of the operating system or even the operating system. Such a virtual driver can provide a read interface, so that other applications that call the interface are considered to be acquiring data from hardware, and in fact the data is from a TCP or UDP port established by the Input Receptor. Like a virtual camera, the captured image is actually obtained from the phone side via Wi-Fi.
4. 输入 /输出数据处理器中的输出数据处理器  4. Input/output data processor in the data processor
可以将 PC的常规输出数据釆集下来并且转换成可通过 Wi-Fi传输以及 手机可以识别并且可以实际输出的数据流。 比如进行显示器截取、 声音截 取等, 并将这些数据进行多媒体处理之后通过 Wi-Fi通信模块发送至手机。  The regular output data of the PC can be collected and converted into a data stream that can be transmitted over Wi-Fi and that can be recognized by the mobile phone and can be actually output. For example, display interception, sound interception, etc., and the data is multimedia processed and sent to the mobile phone through the Wi-Fi communication module.
在手机侧, 手机针对接收到的数据解析数据类型, 之后调用相应的驱 动接口以实现输出:  On the mobile phone side, the mobile phone parses the data type for the received data, and then calls the corresponding drive interface to achieve the output:
显示器输出: 将接收到的动态图像通过手机屏幕进行输出, 图像大小 可缩放、 卷动等。  Display output: The received dynamic image is output through the screen of the mobile phone, and the image size can be zoomed, scrolled, and the like.
声音输出: 将接收到的声音信息通过手机的扬声器或者耳机进行输出, 可调节音量。  Sound output: The received sound information is output through the speaker or earphone of the mobile phone, and the volume can be adjusted.
其它输出: 只要是人体能够感受到并且手机本身可以产生的事件, 都 可以使用手机进行输出, 如 PC在某个状态之下需要报警, 则可以通过手机 振动器进行振动输出等。  Other outputs: As long as the human body can feel the events that can be generated by the mobile phone itself, it can be output by using the mobile phone. If the PC needs an alarm under certain conditions, the vibration output can be performed by the mobile phone vibrator.
5. 多媒体处理模块  5. Multimedia processing module
这个子模块同样是部署在手机侧和 PC侧,主要用于根据数据协商阶段 得到的多媒体信息对相关的多媒体数据进行编码、 解码, 格式转换等。 考 虑到传输的效率问题, 多媒体处理模块往往需要和数据压缩处理模块协同 工作, 以保证传输双方在多媒体数据传输过程中的数据正确性、 连贯性和 真实性。 This sub-module is also deployed on the mobile phone side and the PC side, and is mainly used for encoding, decoding, and format conversion of related multimedia data according to the multimedia information obtained in the data negotiation phase. Considering the efficiency of transmission, multimedia processing modules often need to cooperate with data compression processing modules. Work to ensure the correctness, consistency and authenticity of the data transmitted by both parties in the multimedia data transmission process.
6. 数据压缩处理模块和安全处理模块  6. Data compression processing module and security processing module
数据压缩处理模块能够在带宽有限的情况下对数据进行压缩和解压 缩, 以确保输入数据率。 安全处理模块主要用于保密数据的传输, 可以不 启用。  The data compression processing module compresses and decompresses the data with limited bandwidth to ensure input data rates. The security processing module is mainly used for the transmission of confidential data and may not be enabled.
针对前述描述, Wi-Fi-1/O协商的操作流程可以表示如图 2所示。 由图 2可见, PC侧和手机侧首先可以进行 Wi-Fi连接建立,之后 PC侧建立 Socket 侦听, 再由手机侧发起 Socket连接并由 PC侧进行 Socket连接确认。 之后, PC侧和手机侧进行身份认证以及主 /从协商,并由 PC侧发起输出能力协商, 手机侧则记录 PC的输出能力; 还由手机侧发起输入能力协商, PC侧则记 录手机的输入能力。 并且, PC侧还可以发起输出数据格式协商, 手机侧则 记录 PC的输出数据格式; 还由手机侧发起输入数据格式协商, PC侧则记 录手机的输入数据格式。  For the foregoing description, the operational flow of Wi-Fi-1/O negotiation can be represented as shown in FIG. 2. As can be seen from Figure 2, the PC side and the mobile phone side can first establish a Wi-Fi connection, and then the PC side establishes a Socket listening, and then the mobile phone side initiates a Socket connection and the PC side performs a Socket connection confirmation. After that, the PC side and the mobile phone side perform identity authentication and master/slave negotiation, and the PC side initiates output capability negotiation, and the mobile phone side records the output capability of the PC; the mobile phone side initiates input capability negotiation, and the PC side records the mobile phone input. ability. Moreover, the PC side can also initiate an output data format negotiation, and the mobile phone side records the output data format of the PC; the input data format negotiation is initiated by the mobile phone side, and the input data format of the mobile phone is recorded on the PC side.
此后, PC侧与手机侧即可进入工作状态, 并且能够进行输入 /输出数据 和控制信息的交互。 并且, 任何一方可以发起结束工作状态的通知, 对方 则关闭相应的高层链接。  Thereafter, the PC side and the handset side can enter the working state, and the input/output data and the control information can be exchanged. Moreover, either party can initiate a notification of the end of the work status, and the other party closes the corresponding high-level link.
另外, 针对前述描述, 手机侧的输入流程可以表示如图 3所示。 由图 3 可见, 无论用户应用手机进行普通键盘击键还是方向键击键, 手机侧的协 议栈均可将击键编码成特定格式数据并向 PC侧发送, 由 PC侧接收到击键 数据并模拟击键输入。 同理, 无论用户应用手机扫描图片还是录入语音, 手机侧的协议栈均能够根据输入能力协商和数据格式协商结果对釆集到的 数据进行多媒体编码压缩, 并将完成处理的数据向 PC侧发送; PC侧则能 够接收所述数据并由协议栈根据协商的数据格式进行解码, 再将解码数据 发送至相应的虚拟设备驱动, 以保证应用程序能够从虚拟设备驱动中获得 数据。 In addition, for the foregoing description, the input flow on the mobile phone side can be represented as shown in FIG. As can be seen from FIG. 3, whether the user applies the mobile phone for ordinary keyboard keystrokes or direction keystrokes, the protocol stack on the mobile phone side can encode the keystrokes into specific format data and send them to the PC side, and the PC side receives the keystroke data and Simulate keystroke input. Similarly, whether the user applies the mobile phone to scan the picture or enter the voice, the protocol stack on the mobile phone side can perform multimedia coding compression on the collected data according to the input capability negotiation and the data format negotiation result, and send the completed processing data to the PC side. The PC side can receive the data and decode it according to the negotiated data format by the protocol stack, and then send the decoded data to the corresponding virtual device driver to ensure that the application can be obtained from the virtual device driver. Data.
再有, 针对前述描述, PC侧的输出流程可以表示如图 4所示。 由图 4 可见, 无论 PC侧捕获屏幕图像还是声音数据, 均可根据输出数据编码格式 压缩编码; 当然, 还可以同时考虑帧率和分辨率。 之后, PC侧可以将完成 处理的数据发送到手机。  Further, for the foregoing description, the output flow on the PC side can be expressed as shown in FIG. It can be seen from Fig. 4 that whether the PC side captures the screen image or the sound data, the encoding can be compressed according to the output data encoding format; of course, the frame rate and resolution can also be considered at the same time. After that, the PC side can send the completed data to the mobile phone.
手机则可以接收来自 PC侧的数据, 并根据数据格式进行解码, 再对完 成处理的数据进行相应的显示图像或播放声音等处理。  The mobile phone can receive data from the PC side, decode it according to the data format, and then perform corresponding display image or play sound on the processed data.
由于在实现交互的过程中通常以手机侧作为主导, 因此, 下面以手机 提供键盘输入和显示输出为例, 简单描述手机侧的操作流程。  Since the mobile phone side is usually the dominant in the process of implementing the interaction, the following describes the operation flow of the mobile phone side by taking the keyboard input and display output as an example.
参见图 5 , 图 5为本发明一实施例的移动终端侧实现与 PC交互的流程 图, 该流程包括以下步骤:  Referring to FIG. 5, FIG. 5 is a flowchart of implementing interaction with a PC on a mobile terminal side according to an embodiment of the present invention, where the process includes the following steps:
步骤 501: 开启手机 Wi-Fi并连接到 PC接入点名称( APN )。  Step 501: Turn on the phone Wi-Fi and connect to the PC Access Point Name (APN).
具体而言, 用户启动手机并启动手机上的 Wi-Fi连接, Wi-Fi连接查找 到 PC的 APN并以此连接到 PC。  Specifically, the user activates the phone and initiates a Wi-Fi connection on the phone, and the Wi-Fi connection finds the APN of the PC and connects to the PC.
步骤 502: 手机启动 Wi-Fi I/O软件并和 PC服务器端实现 I/O连接。 如果手机和 PC均开启了各自的输入 /输出数据处理器, 那么手机和 PC 可以实现上述 I/O连接; 并且, 手机可以在完成 I/O连接之后通知用户。  Step 502: The mobile phone starts the Wi-Fi I/O software and implements an I/O connection with the PC server. If both the mobile phone and the PC have their own input/output data processors enabled, the mobile phone and the PC can implement the above I/O connection; and the mobile phone can notify the user after completing the I/O connection.
步骤 503: 输入输出模式选择。  Step 503: Input and output mode selection.
具体而言, 用户可以选择手机所提供的输入 /输出模式: 键盘输入 /显示 输出, 手机则将用户所选择的模式通知给 PC侧; 当 PC侧反馈表示同意通 过手机进行键盘输入和 /或显示输出时, 手机则可将该情况通知给用户。  Specifically, the user can select the input/output mode provided by the mobile phone: keyboard input/display output, the mobile phone notifies the PC side of the mode selected by the user; when the PC side feedback indicates that the keyboard input and/or display is permitted through the mobile phone When outputting, the phone can notify the user of the situation.
步骤 510: 选择键盘输入。  Step 510: Select keyboard input.
步骤 511 : 在手机上击键, PC响应手机的击键。  Step 511: When the key is pressed on the mobile phone, the PC responds to the keystroke of the mobile phone.
具体而言,在手机上的信号将通过 Wi-Fi传递到 PC, PC则对获知的击 键#丈出响应。 进入步骤 530。 步骤 520: 选择显示输出。 Specifically, the signal on the phone will be transmitted to the PC via Wi-Fi, and the PC will respond to the learned keystroke #. Go to step 530. Step 520: Select display output.
步骤 521 : PC将要显示的图像传递到手机以进行显示。  Step 521: The PC transmits the image to be displayed to the mobile phone for display.
具体而言, PC上要显示的图像可以通过 Wi-Fi传递到手机, 由手机显 示图像。  Specifically, the image to be displayed on the PC can be transferred to the mobile phone via Wi-Fi, and the image is displayed by the mobile phone.
步骤 530: 结束 Wi-Fi I/O功能, 退出应用。  Step 530: End the Wi-Fi I/O function and exit the application.
如: 过了一段时间, 用户终止了手机的输入 /输出功能, 手机进而将该 情况通知给 PC, 手机和 PC结束交互。 之后, 手机与 PC之间的 Wi-Fi连接 断开, 流程结束。  For example, after a period of time, the user terminates the input/output function of the mobile phone, and the mobile phone in turn notifies the PC of the situation, and the mobile phone and the PC end the interaction. After that, the Wi-Fi connection between the phone and the PC is disconnected and the process ends.
总体而言, 为了基于 Wi-Fi实现移动终端与 PC交互的技术, 需要分别 在手机侧和 PC侧安装相应的应用程序、 协议栈以及虚拟设备驱动。 并且, 在启动手机和 PC中的协议栈和应用程序后,手机和 PC之间可以建立 Wi-Fi 连接以及应用连接; 在高层协议交互和协商之后, 手机与 PC之间可以基于 Wi-Fi实现包含输入和输出在内的应用交互。  In general, in order to implement a technology in which a mobile terminal interacts with a PC based on Wi-Fi, it is necessary to install a corresponding application, a protocol stack, and a virtual device driver on the mobile phone side and the PC side, respectively. Moreover, after starting the protocol stack and application in the mobile phone and the PC, a Wi-Fi connection and an application connection can be established between the mobile phone and the PC; after the high-level protocol interaction and negotiation, the mobile phone and the PC can be implemented based on Wi-Fi. Application interactions including input and output.
当用户选择结束会话时, 手机与 PC断开应用层连接和 Wi-Fi连接。 需要说明的是, 在输出能力协商过程中, 也可以由移动终端发起输出 能力协商, 由 PC记录移动终端的输出能力; 在输入能力协商过程中, 也可 以由 PC发起输入能力协商, 由移动终端记录 PC的输入能力。 并且, 具体 的应用过程也可以包括 PC侧输入; 移动终端侧输出。  When the user chooses to end the session, the phone disconnects the application layer from the PC and the Wi-Fi connection. It should be noted that, in the output capability negotiation process, the output capability negotiation may also be initiated by the mobile terminal, and the output capability of the mobile terminal may be recorded by the PC; during the input capability negotiation process, the input capability negotiation may also be initiated by the PC, by the mobile terminal. Record the input capabilities of the PC. Moreover, the specific application process may also include PC side input; mobile terminal side output.
由以上所述流程可见, 本发明基于 Wi-Fi实现移动终端与 PC交互的思 路可以表示如图 6所示。 参见图 6, 图 6为本发明一实施例的实现移动终端 与交互的流程图, 该流程包括以下步骤:  As can be seen from the above process, the invention can realize the interaction between the mobile terminal and the PC based on Wi-Fi, and can be represented as shown in FIG. 6. Referring to FIG. 6, FIG. 6 is a flowchart of implementing a mobile terminal and interaction according to an embodiment of the present invention, where the process includes the following steps:
步骤 610: 移动终端和 PC分别启动协议栈和应用程序, 并在移动终端 和 PC之间建立 Wi-Fi连接, 实现应用连接。  Step 610: The mobile terminal and the PC respectively start a protocol stack and an application, and establish a Wi-Fi connection between the mobile terminal and the PC to implement an application connection.
步骤 620: 经过高层协议交互和协商, 实现移动终端与 PC之间的应用 过程。 综上所述可见, 无论是方法、 装置还是系统, 本发明基于 Wi-Fi实现移 动终端与 PC交互的技术, 均可实现移动终端与 PC之间的无线应用交互。 Step 620: Implement an application process between the mobile terminal and the PC through high-level protocol interaction and negotiation. In summary, the present invention is based on Wi-Fi technology for implementing mobile terminal interaction with a PC, and can implement wireless application interaction between the mobile terminal and the PC.
具体而言, 由于利用了手机的多媒体和多元输入能力以及便携性的特 点, 再结合 Wi-Fi技术特有的远距离、 大带宽的无线性能, 因此本发明能够 为 PC 的输入 /输出方式以及人机交互方式提供崭新的操作思路, 并且具有 以下优点:  Specifically, the present invention can be used for the input/output mode of a PC and the human being by utilizing the multimedia and multi-input capabilities of the mobile phone and the portability, combined with the long-distance, large-bandwidth wireless performance unique to Wi-Fi technology. The machine interaction mode provides a new operational idea and has the following advantages:
部署方便: 考虑到手机和 PC的普及性, 手机用户不需要购买无线输入 装置就可以使用无线输入。  Easy to deploy: Considering the popularity of mobile phones and PCs, mobile users can use wireless input without having to purchase a wireless input device.
通信距离长: Wi-Fi超长的有效传输距离保证了用户不需要接近 PC就 能自如操控; 并且与传统无线鼠标、 键盘不同的是, 用户在户外甚至在异 地(需要依靠更广范围的无线链路, 如 WiMAX支持 )也能操控 PC。  Long communication distance: Wi-Fi's long effective transmission distance ensures that users can control without needing to be close to the PC; and unlike traditional wireless mice and keyboards, users are outdoors or even off-site (requires a wider range of wireless) Links, such as WiMAX support, can also control the PC.
设备集中: 不需要为不同的输入需求购买若干个不同的设备, 所有输 入和输出只需要一台手机即可实现。  Device Concentration: There is no need to purchase several different devices for different input requirements. All inputs and outputs require only one mobile phone.
即时特殊设备支援能力: 针对没有配置扫描仪、 摄像头、 麦克风等特 殊设备的 PC, 只需要使用手机(目前的手机基本上都含有摄像头、 麦克风 等标准配置)就可以为 PC提供临时的特殊设备支持,使用户能够即时享用 这些特殊设备所带来的服务。  Instant special device support: For PCs that don't have special devices such as scanners, cameras, microphones, etc., you only need to use a mobile phone (currently, the phone basically has a standard configuration such as a camera or a microphone) to provide temporary special device support for the PC. To enable users to instantly enjoy the services provided by these special devices.
再有, 还可以利用 PC强大的 CPU处理更加复杂的运算, 相对而言手 机只作为客户端, 仅用于输入所需的操作指令, 在简化用户操作的同时强 化并扩展了手机所能实现的功能。  In addition, you can use the powerful CPU of the PC to handle more complex operations. Relatively speaking, the mobile phone is only used as a client, only for inputting the required operation instructions. It simplifies the user operation and strengthens and expands the mobile phone. Features.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。  The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

Claims

权利要求书 Claim
1、 一种基于 Wi-Fi实现移动终端与 PC交互的方法, 其特征在于, 该 方法包括:  A method for implementing interaction between a mobile terminal and a PC based on Wi-Fi, wherein the method comprises:
在分别启动了协议栈以及应用程序的移动终端和 PC之间建立 Wi-Fi连 接, 实现应用连接; 经过高层协议交互和协商, 实现移动终端与 PC之间的 应用过程。  A Wi-Fi connection is established between the mobile terminal and the PC that respectively initiates the protocol stack and the application to implement the application connection; and the application process between the mobile terminal and the PC is implemented through high-level protocol interaction and negotiation.
2、 根据权利要求 1所述的方法, 其特征在于, 所述协商过程包括以下 协商中至少之一:  2. The method according to claim 1, wherein the negotiation process comprises at least one of the following negotiation:
PC和移动终端进行主 /从协商、 输出能力协商、 输入能力协商、 输出数 据格式协商、 输入数据格式协商。  The PC and the mobile terminal perform master/slave negotiation, output capability negotiation, input capability negotiation, output data format negotiation, and input data format negotiation.
3、 根据权利要求 2所述的方法, 其特征在于,  3. The method of claim 2, wherein
所述输出能力协商的过程包括以下至少之一: 由 PC发起输出能力协 商, 移动终端记录 PC的输出能力; 或, 由移动终端发起输出能力协商, 由 PC记录移动终端的输出能力;  The process of the output capability negotiation includes at least one of the following: the output capability negotiation is initiated by the PC, and the mobile terminal records the output capability of the PC; or, the output capability negotiation is initiated by the mobile terminal, and the output capability of the mobile terminal is recorded by the PC;
所述输入能力协商的过程包括以下至少之一: 由移动终端发起输入能 力协商, PC记录移动终端的输入能力; 或, 由 PC发起输入能力协商, 由 移动终端记录 PC的输入能力;  The process of the input capability negotiation includes at least one of the following: the input capability negotiation is initiated by the mobile terminal, and the PC records the input capability of the mobile terminal; or, the input capability negotiation is initiated by the PC, and the input capability of the PC is recorded by the mobile terminal;
所述输出数据格式协商的过程包括: 由 PC发起输出数据格式协商,移 动终端记录 PC的输出数据格式;  The process of negotiating the output data format includes: initiating output data format negotiation by the PC, and recording the output data format of the PC by the mobile terminal;
所述输入数据格式协商的过程包括: 由移动终端发起输入数据格式协 商, PC记录移动终端的输入数据格式。  The process of negotiating the input data format includes: initiating an input data format negotiation by the mobile terminal, and the PC records the input data format of the mobile terminal.
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 所述应用过 程包括以下至少之一:  The method according to any one of claims 1 to 3, wherein the application process comprises at least one of the following:
移动终端侧输入; PC侧输出;  Mobile terminal side input; PC side output;
或, PC侧输入; 移动终端侧输出。 Or, PC side input; Mobile terminal side output.
5、 根据权利要求 4所述的方法, 其特征在于, 所述移动终端侧输入的 过程包括: The method according to claim 4, wherein the process of inputting by the mobile terminal side comprises:
移动终端的协议栈将击键编码成特定格式数据并向 PC发送, 由 PC接 收到击键数据并模拟击键输入; 和 /或,  The protocol stack of the mobile terminal encodes the keystroke into a specific format data and sends it to the PC, and the PC receives the keystroke data and simulates the keystroke input; and/or,
移动终端的协议栈根据协商过程中的输入能力协商和数据格式协商结 果对釆集到的数据进行多媒体编码压缩, 并将完成处理的数据向 PC发送; PC接收所述数据并由协议栈根据协商的数据格式进行解码, 再将解码数据 发送至相应的虚拟设备驱动。  The protocol stack of the mobile terminal performs multimedia coding compression on the collected data according to the input capability negotiation and the data format negotiation result in the negotiation process, and sends the completed processed data to the PC; the PC receives the data and is negotiated by the protocol stack according to the protocol stack. The data format is decoded, and the decoded data is sent to the corresponding virtual device driver.
6、 根据权利要求 4所述的方法, 其特征在于, 所述 PC侧输出的过程 包括:  The method according to claim 4, wherein the process of outputting the PC side comprises:
PC将捕获的数据根据输出数据编码格式压缩编码, 再将完成处理的数 据发送到移动终端; 移动终端根据数据格式对来自 PC的数据进行解码, 再 对完成处理的数据进行相应处理。  The PC compresses and encodes the captured data according to the output data encoding format, and then transmits the processed data to the mobile terminal; the mobile terminal decodes the data from the PC according to the data format, and then performs corresponding processing on the processed data.
7、 一种基于 Wi-Fi实现移动终端与 PC交互的装置, 其特征在于, 该 装置包括 Wi-Fi连接模块、 高层协议栈、 输入 /输出数据处理器; 其中, 所述 Wi-Fi连接模块, 用于与相连的对端装置之间建立 Wi-Fi连接, 以 支持基于 Wi-Fi的应用连接;  7. A device for implementing interaction between a mobile terminal and a PC based on Wi-Fi, the device comprising: a Wi-Fi connection module, a high layer protocol stack, and an input/output data processor; wherein the Wi-Fi connection module , for establishing a Wi-Fi connection with the connected peer device to support Wi-Fi based application connection;
所述高层协议栈, 用于进行与相连的对端装置之间的高层协议交互和 协商;  The high-level protocol stack is configured to perform high-level protocol interaction and negotiation with the connected peer device;
所述输入 /输出数据处理器, 用于实现与相连的对端装置之间的应用过 程。  The input/output data processor is configured to implement an application process with a connected peer device.
8、 根据权利要求 7所述的装置, 其特征在于, 所述高层协议栈进行所 述协商时, 用于进行以下至少之一:  The device according to claim 7, wherein the high-level protocol stack performs at least one of the following when performing the negotiation:
与相连的对端装置之间进行的主 /从协商、 输出能力协商、 输入能力协 商、 输出数据格式协商、 输入数据格式协商。 Master/slave negotiation, output capability negotiation, input capability negotiation, output data format negotiation, and input data format negotiation with the connected peer device.
9、 根据权利要求 7所述的装置, 其特征在于, 该装置进一步包括数据 压缩处理模块、 多媒体处理模块、 安全处理模块; 其中, The device according to claim 7, wherein the device further comprises a data compression processing module, a multimedia processing module, and a security processing module;
所述多媒体处理模块, 用于根据所述协商得到的多媒体信息对相关的 多媒体数据进行包括编码、 解码, 格式转换在内的多媒体处理;  The multimedia processing module is configured to perform multimedia processing including encoding, decoding, and format conversion on the related multimedia data according to the negotiated multimedia information;
所述数据压缩处理模块, 用于在带宽有限的情况下对数据进行包括压 缩和解压缩在内的处理;  The data compression processing module is configured to perform processing including compression and decompression on the data in a limited bandwidth;
所述安全处理模块, 用于支持保密数据的传输。  The security processing module is configured to support transmission of confidential data.
10、 根据权利要求 7至 9任一项所述的装置, 其特征在于, 该装置设 置于手机中。  10. Apparatus according to any one of claims 7 to 9, wherein the apparatus is located in a handset.
11、 根据权利要求 7至 9任一项所述的装置, 其特征在于, 该装置设 置于 PC中, 该装置进一步包括虚拟设备驱动, 用于以虚拟设备的形式控制 操作系统识别并管理多媒体输入设备。  The device according to any one of claims 7 to 9, wherein the device is disposed in a PC, the device further comprising a virtual device driver for controlling the operating system to identify and manage the multimedia input in the form of a virtual device. device.
12、 一种基于 Wi-Fi实现移动终端与 PC交互的系统, 其特征在于, 该 系统包括均设置有 Wi-Fi连接模块、 高层协议栈、 输入 /输出数据处理器的 手机和 PC, PC中还设置有虚拟设备驱动; 其中,  12. A system for implementing interaction between a mobile terminal and a PC based on Wi-Fi, wherein the system comprises a mobile phone and a PC, each of which is provided with a Wi-Fi connection module, a high-level protocol stack, an input/output data processor, and a PC. Also provided with a virtual device driver;
手机和 PC中的所述 Wi-Fi连接模块,用于在手机和 PC之间建立 Wi-Fi 连接, 以支持基于 Wi-Fi的应用连接;  The Wi-Fi connection module in the mobile phone and the PC is used to establish a Wi-Fi connection between the mobile phone and the PC to support Wi-Fi based application connection;
手机和 PC中的所述高层协议栈, 用于在手机和 PC之间进行高层协议 交互和协商;  The high-level protocol stack in the mobile phone and the PC is used for high-level protocol interaction and negotiation between the mobile phone and the PC;
手机和 PC中的所述输入 /输出数据处理器,用于实现手机和 PC之间的 应用过程。  The input/output data processor in the mobile phone and the PC is used to implement an application process between the mobile phone and the PC.
13、 根据权利要求 12所述的系统, 其特征在于, 手机和 PC中进一步 均包括数据压缩处理模块、 多媒体处理模块、 安全处理模块; 其中,  The system according to claim 12, wherein the mobile phone and the PC further comprise a data compression processing module, a multimedia processing module, and a security processing module;
所述多媒体处理模块, 用于根据所述协商得到的多媒体信息对相关的 多媒体数据进行包括编码、 解码, 格式转换在内的多媒体处理; 所述数据压缩处理模块, 用于在带宽有限的情况下对数据进行包括压 缩和解压缩在内的处理; The multimedia processing module is configured to perform multimedia processing including encoding, decoding, and format conversion on the related multimedia data according to the negotiated multimedia information; The data compression processing module is configured to perform processing including compression and decompression on the data in a limited bandwidth;
所述安全处理模块, 用于支持保密数据的传输。  The security processing module is configured to support transmission of confidential data.
PCT/CN2010/077007 2010-05-12 2010-09-16 Method, apparatus and system for implementing interaction between mobile terminal and personal computer WO2011140774A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010172630.9A CN101826897B (en) 2010-05-12 2010-05-12 Method, device and system for realizing communication between mobile terminal and PC
CN201010172630.9 2010-05-12

Publications (1)

Publication Number Publication Date
WO2011140774A1 true WO2011140774A1 (en) 2011-11-17

Family

ID=42690627

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/077007 WO2011140774A1 (en) 2010-05-12 2010-09-16 Method, apparatus and system for implementing interaction between mobile terminal and personal computer

Country Status (2)

Country Link
CN (1) CN101826897B (en)
WO (1) WO2011140774A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826897B (en) * 2010-05-12 2014-10-22 中兴通讯股份有限公司 Method, device and system for realizing communication between mobile terminal and PC
CN102215283A (en) * 2011-04-27 2011-10-12 北京北纬点易信息技术有限公司 Wireless keyboard realization method based on cell phone client and wireless local area network (WLAN)
CN102625171B (en) * 2012-03-16 2014-12-03 晨星软件研发(深圳)有限公司 Remote control method, system and corresponding equipment for smart television
CN102707894A (en) * 2012-05-22 2012-10-03 Tcl集团股份有限公司 Input method and device applied to multi-display interaction
CN103473110A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Equipment control method, device and system
CN103532994A (en) * 2012-07-04 2014-01-22 中兴通讯股份有限公司 Remote accessing method, device and system, and remote calculation unit
CN102869123B (en) * 2012-08-02 2016-05-25 Tcl集团股份有限公司 Be applied to virtual peripheral collecting method and the system of intelligent display device
US20140358990A1 (en) * 2013-06-03 2014-12-04 Nvidia Corporation System and methods to facilitate access and interaction with a mobile device employing a personal computer
CN104284246B (en) * 2013-07-08 2018-11-06 华为终端(东莞)有限公司 A kind of method and terminal of transmission data
CN105279132A (en) * 2015-10-12 2016-01-27 无锡还有网络科技有限公司 Dual processor communication system
CN107026829A (en) * 2016-02-02 2017-08-08 深圳岂凡技术开发有限公司 A kind of cross-terminal carries out the interactive system and method for voice typing
CN106844063B (en) * 2016-12-30 2020-05-22 深圳市优博讯科技股份有限公司 Cross-platform data processing method and system and cross-platform data sharing system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007016434A2 (en) * 2005-08-01 2007-02-08 Six Continents Hotels, Inc. Electronic menu and concierge system
CN101132568A (en) * 2006-08-21 2008-02-27 雷大力 Mobile communication terminal and computer interactively integrated application system
CN101662844A (en) * 2009-09-30 2010-03-03 韩宇翔 Electronic system for ordering dishes automatically or semi-automatically by clients
CN101826897A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 Method, device and system for realizing communication between mobile terminal and PC

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1093272A3 (en) * 1999-10-13 2003-09-03 Sony Corporation Communication apparatus, communication methods, and recording media, and communication cards
JP4465590B2 (en) * 2001-11-01 2010-05-19 ソニー株式会社 COMMUNICATION SYSTEM AND METHOD, INFORMATION PROCESSING DEVICE AND METHOD, AND PROGRAM
CN100375070C (en) * 2004-12-31 2008-03-12 联想(北京)有限公司 Video frequency data acquisition method employing mobile phone with camera as computer camera
FR2913550A1 (en) * 2007-03-07 2008-09-12 Inside Contactless Sa METHOD FOR SECURELY LOADING ACCESS DATA TO A SERVICE IN AN NFC CHIPSET
CN101064535B (en) * 2007-04-12 2011-12-07 复旦大学 Intelligent authentication method and system based on close range wireless communication handset
DE102007022944A1 (en) * 2007-05-16 2008-11-20 Giesecke & Devrient Gmbh Contactless portable data carrier
EP2003840B1 (en) * 2007-06-14 2016-08-17 BlackBerry Limited Apparatus, and associated method, for selecting and negotiating frame size of communication data communicated in a radio communication system
CN101399568B (en) * 2007-09-29 2013-07-31 联想(北京)有限公司 Device for using mobile terminal as input output device of computer, system and method thereof
CN101651585B (en) * 2008-08-15 2014-01-22 希姆通信息技术(上海)有限公司 Method for expanding capacity of mobile terminal
CN101662453A (en) * 2008-08-29 2010-03-03 联想(北京)有限公司 Data conversion method and equipment aiming at collaboration standard
CN201422128Y (en) * 2009-04-22 2010-03-10 厦门三五互联科技股份有限公司 Adapter realizing single conversion between intelligent mobile phone and standard display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007016434A2 (en) * 2005-08-01 2007-02-08 Six Continents Hotels, Inc. Electronic menu and concierge system
CN101132568A (en) * 2006-08-21 2008-02-27 雷大力 Mobile communication terminal and computer interactively integrated application system
CN101662844A (en) * 2009-09-30 2010-03-03 韩宇翔 Electronic system for ordering dishes automatically or semi-automatically by clients
CN101826897A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 Method, device and system for realizing communication between mobile terminal and PC

Also Published As

Publication number Publication date
CN101826897A (en) 2010-09-08
CN101826897B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
WO2011140774A1 (en) Method, apparatus and system for implementing interaction between mobile terminal and personal computer
JP6480481B2 (en) Device connection apparatus and method in portable terminal
CN103814593B (en) The method and apparatus of multicast is carried out in wireless display system
US9888214B2 (en) Wireless video camera and connection methods including multiple video streams
JP4401849B2 (en) System and method for establishing a secondary channel
US8300079B2 (en) Apparatus and method for transferring video
JP2015512168A (en) Call generation using additional terminals
JP6598875B2 (en) Information processing system, wireless terminal, and information processing method
JP2009538087A (en) System and method for a mobile phone that is an audio gateway
WO2017101298A1 (en) Input method and apparatus for audio and video information, network television, and user equipment
JP2008099217A (en) Communication apparatus, communication method, communication circuit, portable telephone terminal, program and computer-readable recording medium with the program recorded thereon
WO2011088803A1 (en) Method, device and system for sharing data among handsets
WO2022143071A1 (en) Connection establishment method and electronic device
WO2014154065A2 (en) Data transmission method, media acquisition device, video conference terminal and storage medium
CN103220195A (en) Communicating media data
CN101022500A (en) Method for cellphone transmitting video image to computer with bluetooth
JP2010239641A (en) Communication device, communication system, control program of communication device, and recording media-recording control program of communication device
CN100391243C (en) Digital TV set with blue tooth communication function
WO2023071993A1 (en) Bluetooth pairing method, device, system, and storage medium
JP2008510392A (en) System and method for controlling computer applications from a remote site
TW202218404A (en) An audio-visual content sharing system and method thereof
JP2020025284A (en) Information processing system and radio terminal
JP2007043593A (en) Mobile phone system and mobile phone communication method
JP2021190867A (en) Communication, control method therefor and program
KR20020020136A (en) A video conference system based on moblie terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10851279

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10851279

Country of ref document: EP

Kind code of ref document: A1