CN105376278A - Method of realizing control on mobile equipment at different terminal and system thereof - Google Patents

Method of realizing control on mobile equipment at different terminal and system thereof Download PDF

Info

Publication number
CN105376278A
CN105376278A CN201410422078.2A CN201410422078A CN105376278A CN 105376278 A CN105376278 A CN 105376278A CN 201410422078 A CN201410422078 A CN 201410422078A CN 105376278 A CN105376278 A CN 105376278A
Authority
CN
China
Prior art keywords
mobile device
virtual machine
port
communication
machine
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201410422078.2A
Other languages
Chinese (zh)
Inventor
杨耀敏
赵君翔
梁栋
曲维杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yun Chao Artery Science And Technology Ltd
Original Assignee
Beijing Yun Chao Artery Science And Technology Ltd
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 Beijing Yun Chao Artery Science And Technology Ltd filed Critical Beijing Yun Chao Artery Science And Technology Ltd
Priority to CN201410422078.2A priority Critical patent/CN105376278A/en
Publication of CN105376278A publication Critical patent/CN105376278A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention discloses a method of realizing control on mobile equipment at a different terminal and a system thereof. The method comprises the following steps: a physical machine A recognizes inserted mobile equipment; a redirection mode is adopted to build a communication channel between the mobile equipment and a virtual machine on a physical machine B; and through the communication channel, control on the mobile equipment by the virtual machine is realized. The method of adopting the redirection mode to build the communication channel between the mobile equipment and the virtual machine on the physical machine B comprises steps: ports of the mobile equipment are acquired, and types of the ports are judged; according to the types of the ports, the communication channel between the mobile equipment and the virtual machine on the physical machine B is built. Thus, remote control operation on the mobile equipment at a different terminal is realized, much convenience is brought to work, interaction with the virtual machine via the redirection channel is carried out, and total control right on the mobile equipment at a different terminal is realized; and when the mobile equipment is inserted in any terminal, control such as remote resource reading can be realized.

Description

A kind of method and system thereof realizing mobile device control at different terminals
Technical field
The present invention relates to Information Sharing Technology field, especially relate to a kind of method and the system thereof that realize mobile device control at different terminals.
Background technology
The appearance of movable memory terminal, the equipment making people lightly carry storage information carries out various commercial activity; The storage whenever and wherever possible of movable memory terminal, reads relevant information and brings convenient service.Common movable memory terminal equipment comprises the equipment such as USB flash disk, portable hard drive, flash memory, floppy disk and CD; But although mobile terminal carries more convenient, need the relevant information in long-range reading or operation movable memory terminal sometimes, but the associative operations such as the reading of movable memory terminal in prior art, cannot be realized, bring puzzlement to user.So prior art is badly in need of solving this technical problem, be that in the patent of CN201210193292.6, the technology of remote access USB flash disk needs to set up ftp server at application number, be equivalent to long-range carry, long-range carry is only applicable to USB flash disk, but mobile device comprises the equipment such as USB, serial ports, parallel port; Which scope of application is less, can only be used for USB flash disk, and the fail safe of data can not ensure; Long-range carry only can realize the transmission to data, cannot control completely, had a strong impact on the use of the information of user interactions to transmission data.
Summary of the invention
The object of the invention is to design a kind of method and the system thereof that realize mobile device control at different terminals, solve the problem.
To achieve these goals, the technical solution used in the present invention is as follows:
Realize a method for mobile device control at different terminals, comprise the steps:
Physical machine A identifies the mobile device inserted;
Adopt and set up communication port between the virtual machine of the mode of being redirected on described mobile device and physical machine B;
By described communication port, realize the control of described virtual machine to described mobile device.
Preferably, the method setting up communication port between the virtual machine of the redirected mode of employing on described mobile device and physical machine B is:
Obtain the port of described mobile device, and judge described port type;
According to described port type, between the virtual machine on described mobile device and described physical machine B, set up communication port.
According to described port type, the method setting up communication port between the described virtual machine on described mobile device and physical machine B is specially:
If described port is USB port, then according to described USB port, obtains the data message of described mobile device, and described data message is sent to described virtual machine, realize the communication of described virtual machine and described mobile device;
If described port is serial ports, then in virtual machine, by calling bottom serial interface, reading the data message of described mobile device, realizing the communication of described virtual machine and described mobile device;
If described port is parallel port, then in virtual machine, by calling bottom parallel port interface, reading the data message of described mobile device, realizing the communication of described virtual machine and described mobile device.
Be more preferably, if described port is USB port, the concrete grammar obtaining the data message of described mobile device is:
The data message of described mobile device is obtained by libusb storehouse.
Be more preferably, described data message be sent to the method for described virtual machine for described data message is sent to described virtual machine by usbredir storehouse.
Be more preferably, described physical machine A and described physical machine B is same physical machine or different physical machine.
Realize a system for mobile device control at different terminals, comprise management platform, supervisor console, Virtual Machine Manager end, virtual desktop interface service end and virtual desktop client;
Described management platform, for the communication request of managing virtual machines and mobile device;
Described supervisor console, for receiving described communication request; And described communication request is converted into data command; And described data command is sent to described Virtual Machine Manager end, described virtual machine desktop interface service end and described virtual desktop client;
Described Virtual Machine Manager end, for receiving described data command, and according to described data command, starts/closed described virtual machine;
Described virtual machine desktop interface service end, for according to described data command, obtains the port information of described mobile device, sets up the communication port of described virtual machine and described mobile device;
Described virtual desktop client, for receiving described data command, and according to described data command, by described communication port, obtains the data message of described mobile device.
Preferably, the read write command to described mobile device is also comprised in described data command.
Be more preferably, described virtual desktop client, also for the data message of described mobile device is shown in described virtual machine.
Wherein libusb storehouse is a storehouse of increasing income, and can realize carrying out communication with UBS equipment in the aspect of user's space.
Usbredir storehouse is storehouse of increasing income, and is a kind of storehouse realizing USB and be redirected.
Beneficial effect of the present invention can be summarized as follows:
By the present invention, achieve the remote control operation of mobile device on different terminals, bring a lot of facility to work, undertaken mutual by redirected passage and virtual machine, achieve the complete control of the mobile device of different port; Mobile device is inserted on any station terminal, thus realize the controls such as the long-range reading of data.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention;
Fig. 2 is the flow chart setting up communication port in the present invention between mobile device and virtual machine.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
A kind of method realizing mobile device control at different terminals as shown in Figure 1, comprises the steps:
Physical machine A identifies the mobile device inserted;
Adopt and set up communication port between the virtual machine of the mode of being redirected on mobile device and physical machine B;
By communication port, realize the control of virtual machine to mobile device;
Physical machine A and physical machine B is same physical machine or different physical machine.
As shown in Figure 2, the method setting up communication port between the virtual machine of the redirected mode of employing on mobile device and physical machine B is:
Obtain the port of mobile device, and judge port type;
According to port type, between the virtual machine on mobile device and physical machine B, set up communication port.
According to port type, the method setting up communication port between the virtual machine on mobile device and physical machine B is specially:
If port is USB port, then according to USB port, obtained the data message of mobile device by libusb storehouse; By usbredir storehouse, data message is sent to virtual machine, realizes the communication of virtual machine and mobile device;
If port is serial ports, then in virtual machine, by calling bottom serial interface, reading the data message of mobile device, realizing the communication of virtual machine and mobile device;
If port is parallel port, then in virtual machine, by calling bottom parallel port interface, reading the data message of mobile device, realizing the communication of virtual machine and mobile device.
Realize a system for mobile device control at different terminals, comprise management platform, supervisor console, Virtual Machine Manager end, virtual desktop interface service end and virtual desktop client;
Management platform, for the communication request of managing virtual machines and mobile device;
Supervisor console, for received communication request; And communication request is converted into data command; The read write command to mobile device is also comprised in data command; And data command is sent to Virtual Machine Manager end, virtual machine desktop interface service end and virtual desktop client;
Virtual Machine Manager end, for receiving data command, and according to data command, starts/closed virtual machine;
Virtual machine desktop interface service end, for according to data command, obtains the port information of mobile device, sets up the communication port of virtual machine and mobile device;
Virtual desktop client, for receiving data command, and according to data command, by communication port, obtains the data message of mobile device; The data message of mobile device is shown in virtual machine.
Such as: have now the physical machine terminal that A, B two is different, two users User1, User2, in A, B two physical machine terminals, A, B two physical machine terminals have virtual machine VM-A, VM-B respectively.Physical machine terminal A inserts external mobile equipment (USB/ serial ports/jaws equipment), user User1 on physical machine A selects the virtual machine VM-B drifted to by equipment on physical machine B, and the user User2 on physical machine B can use the external mobile equipment (USB/ serial ports/jaws equipment) that terminal A inserts in virtual machine VM-B.The drift realizing external mobile device on different terminals (USB/ serial ports/jaws equipment) uses.
The equipment that selection will be drifted about, then select object virtual machine, namely which platform virtual machine equipment drifts to, and has two kinds of modes:
(1) title of the object virtual machine of the direct input drift of user, if drift to the virtual machine VM-1 of USER-B, input VM-1.
(2) client has function of search, and can search the virtual machine (upon actuation, the information of virtual machine can be preserved in backstage to virtual machine) that server has been opened, user can select object virtual machine in Search Results.
According to selected virtual machine, start redirector, set up the communication port between mobile device and virtual machine.Establish passage between mobile terminal and virtual machine, mobile device is connected with virtual machine by this passage, just can identify this equipment in virtual machine.
In the present embodiment, virtual machine adopts the qemu increased income to start, and support USB/ serial ports/and jaws equipment, the effect of redirector is the communication port of apparatus for establishing and virtual machine, and carries out data interaction with virtual machine in different ways according to different equipment.The redirection process of three kinds of equipment is described below respectively:
Being redirected of USB mobile device: for USB device, qemu need add when starting and supports USB start-up parameter, can register USB passage, and this passage is as the communication port of redirector and qemu.In redirector, there is USB redirection module, first utilize libusb storehouse to obtain the facility information of USB device, then utilize usbredir (qemu supports, the storehouse for USB is redirected) storehouse, facility information is sent to qemu, carry out alternately with qemu, transmit data.
Serial ports mobile device is redirected: for serial equipment, and qemu need add when starting and supports serial ports start-up parameter, can register serial ports passage, and this passage is as the communication port of redirector and qemu.In redirector, have serial equipment data read-write module, the data reading of serial ports can be sent to qemu, the data write serial equipment that qemu sends, and qemu carries out alternately, transmission data.
Parallel port mobile device is redirected: for and jaws equipment, qemu need add when starting and supports parallel port start-up parameter, can register parallel port passage, and this passage is as the communication port of redirector and qemu.In redirector, have parallel port device data module for reading and writing, the data reading of parallel port can be sent to qemu, the data write that qemu sends jaws equipment, and qemu carries out alternately, transmission data.
By the present invention, achieve the remote control operation of mobile device on different terminals, bring a lot of facility to work, undertaken mutual by redirected passage and virtual machine, achieve the complete control of the mobile device of different port; Mobile device is inserted on any station terminal, thus realize the controls such as the long-range reading of data.
The present invention is described in detail in preferred embodiment above by concrete; but those skilled in the art should be understood that; the present invention is not limited to the above embodiment; within the spirit and principles in the present invention all; any amendment of doing, equivalent replacement etc., all should be included within protection scope of the present invention.

Claims (9)

1. realize a method for mobile device control at different terminals, it is characterized in that, comprise the steps:
Physical machine A identifies the mobile device inserted;
Adopt and set up communication port between the virtual machine of the mode of being redirected on described mobile device and physical machine B;
By described communication port, realize the control of described virtual machine to described mobile device.
2. the method realizing mobile device control at different terminals according to claim 1, is characterized in that, the method setting up communication port that employing is redirected between the virtual machine of mode on described mobile device and physical machine B is:
Obtain the port of described mobile device, and judge described port type;
According to described port type, between the virtual machine on described mobile device and described physical machine B, set up communication port.
3., according to described port type, the method setting up communication port between the described virtual machine on described mobile device and physical machine B is specially:
If described port is USB port, then according to described USB port, obtains the data message of described mobile device, and described data message is sent to described virtual machine, realize the communication of described virtual machine and described mobile device;
If described port is serial ports, then in virtual machine, by calling bottom serial interface, reading the data message of described mobile device, realizing the communication of described virtual machine and described mobile device;
If described port is parallel port, then in virtual machine, by calling bottom parallel port interface, reading the data message of described mobile device, realizing the communication of described virtual machine and described mobile device.
4. the method realizing mobile device control at different terminals according to claim 3, it is characterized in that, if described port is USB port, the concrete grammar obtaining the data message of described mobile device is:
The data message of described mobile device is obtained by libusb storehouse.
5. the method realizing mobile device control at different terminals according to claim 3, is characterized in that: described data message is sent to the method for described virtual machine for described data message is sent to described virtual machine by usbredir storehouse.
6. the method realizing mobile device control at different terminals according to claim 1, is characterized in that: described physical machine A and described physical machine B is same physical machine or different physical machine.
7. realize a system for mobile device control at different terminals, it is characterized in that: comprise management platform, supervisor console, Virtual Machine Manager end, virtual desktop interface service end and virtual desktop client;
Described management platform, for the communication request of managing virtual machines and mobile device;
Described supervisor console, for receiving described communication request; And described communication request is converted into data command; And described data command is sent to described Virtual Machine Manager end, described virtual machine desktop interface service end and described virtual desktop client;
Described Virtual Machine Manager end, for receiving described data command, and according to described data command, starts/closed described virtual machine;
Described virtual machine desktop interface service end, for according to described data command, obtains the port information of described mobile device, sets up the communication port of described virtual machine and described mobile device;
Described virtual desktop client, for receiving described data command, and according to described data command, by described communication port, obtains the data message of described mobile device.
8. the system realizing mobile device control at different terminals according to claim 7, is characterized in that: also comprise the read write command to described mobile device in described data command.
9. the system realizing mobile device control at different terminals according to claim 7, is characterized in that: described virtual desktop client, also for being shown in described virtual machine by the data message of described mobile device.
CN201410422078.2A 2014-08-25 2014-08-25 Method of realizing control on mobile equipment at different terminal and system thereof Pending CN105376278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410422078.2A CN105376278A (en) 2014-08-25 2014-08-25 Method of realizing control on mobile equipment at different terminal and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410422078.2A CN105376278A (en) 2014-08-25 2014-08-25 Method of realizing control on mobile equipment at different terminal and system thereof

Publications (1)

Publication Number Publication Date
CN105376278A true CN105376278A (en) 2016-03-02

Family

ID=55378079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410422078.2A Pending CN105376278A (en) 2014-08-25 2014-08-25 Method of realizing control on mobile equipment at different terminal and system thereof

Country Status (1)

Country Link
CN (1) CN105376278A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008066A (en) * 2019-12-09 2020-04-14 广州品唯软件有限公司 Server-side interface analysis system, method, interface analysis device and medium
CN113282376A (en) * 2021-07-22 2021-08-20 北京关键科技股份有限公司 UKey virtual machine penetration method applied to cloud platform architecture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004721A (en) * 2007-01-23 2007-07-25 福建升腾资讯有限公司 Control method for sharing server by peripheral equipments of computer
CN103412519A (en) * 2013-04-24 2013-11-27 昆山三泰新电子科技有限公司 Remote peripheral control system, method and remote server thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004721A (en) * 2007-01-23 2007-07-25 福建升腾资讯有限公司 Control method for sharing server by peripheral equipments of computer
CN103412519A (en) * 2013-04-24 2013-11-27 昆山三泰新电子科技有限公司 Remote peripheral control system, method and remote server thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赖孙荣: "虚拟桌面框架Spice剖析及其客户端的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008066A (en) * 2019-12-09 2020-04-14 广州品唯软件有限公司 Server-side interface analysis system, method, interface analysis device and medium
CN111008066B (en) * 2019-12-09 2023-08-18 广州品唯软件有限公司 Service interface analysis system, method, interface analysis device and medium
CN113282376A (en) * 2021-07-22 2021-08-20 北京关键科技股份有限公司 UKey virtual machine penetration method applied to cloud platform architecture

Similar Documents

Publication Publication Date Title
EP3537733B1 (en) Network sharing method and system
CN104426583B (en) Data transmission method, device and near-field communication equipment based on near-field communication
CN102821150B (en) Based on application management method and the Cloud Server of cloud service
CN103327184A (en) Function switching method and user terminal
CN103019512A (en) Method, system and mobile terminal for switching application programs
CN104683002A (en) Method and device for pairing Bluetooth equipment
CN104902478A (en) Method for connection with Wi-Fi network, wireless sound box and terminal
CN103491648A (en) Communication method and system based on WIFI
CN107612941B (en) Authority management method, device, equipment and storage medium
US20150040196A1 (en) Network connecting device, system and method for same
CN103218555A (en) Logging-in method and device for application program
CN103327013A (en) Contact person information sharing method and equipment based on sharing permission level
CN105338550A (en) Method and device for managing connection of wireless network
CN105100150B (en) Cloud desktop migration method and device and distributed cloud desktop system
CN105721510A (en) Account login method and terminal device
US9674686B2 (en) Apparatus and method for pairing mobile devices
CN101969443A (en) Method and system for switching and operating network application program on network terminal
CN104423928A (en) Data processing method, data processing device and terminal equipment
CN105376278A (en) Method of realizing control on mobile equipment at different terminal and system thereof
CN104680089A (en) Electronic device and system switching method
CN105446901A (en) Data processing method and device for multi-user terminal
CN104796867A (en) Automatic login method and automatic login terminal
CN105227414A (en) Multi-user's binding method of smart machine under privately owned cloud environment
CN103795856A (en) Information processing method and electronic device
CN104125593A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160302

RJ01 Rejection of invention patent application after publication