CN104320431A - Method for sharing data of mobile terminal and virtual machine - Google Patents

Method for sharing data of mobile terminal and virtual machine Download PDF

Info

Publication number
CN104320431A
CN104320431A CN201410495909.9A CN201410495909A CN104320431A CN 104320431 A CN104320431 A CN 104320431A CN 201410495909 A CN201410495909 A CN 201410495909A CN 104320431 A CN104320431 A CN 104320431A
Authority
CN
China
Prior art keywords
data
mobile terminal
virtual
machine
virtual 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
CN201410495909.9A
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 CN201410495909.9A priority Critical patent/CN104320431A/en
Publication of CN104320431A publication Critical patent/CN104320431A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for sharing data of a mobile terminal and a virtual machine, and relates to the field of data transmission. The method comprises the following steps: 1, receiving a data transmission request; S2, judging whether a data transmission condition is true or not, executing a step S3 if the data transmission condition is true, and ending if the data transmission condition is not true; S3, establishing a data transmission channel; and S4, transmitting data. According to the method, the transmission channel is established between the mobile terminal and the virtual machine, and the data is directly transmitted through the transmission channel without any third-party tool, so that limitations caused by the third-party tool are omitted, and the experience smoothness of mobile terminal and virtual machine users is enhanced greatly.

Description

A kind of method that mobile terminal and virtual-machine data are shared
Technical field
The present invention relates to field of data transmission, particularly relate to a kind of method that mobile terminal and virtual-machine data are shared.
Background technology
Along with the development of mobile communication technology and Intel Virtualization Technology, mobile terminal and virtual machine are widely used.Mobile terminal has the feature of move operation, to the user often gone out, has larger ease of use; And mobile terminal also exists some obvious shortcomings, such as, easily lose, thus cause the loss of storage file in mobile terminal.Mobile terminal has oneself document management mode, and such as Android and IOS etc., can preserve picture, document, video etc.In order to reasonablely utilize mobile terminal can the advantage that uses of mobile office, the defect simultaneously can reasonablely avoiding mobile terminal easily to lose again, generally needs by the file-sharing in virtual machine in mobile terminal, uses in mobile terminal office; Need the content stored in mobile terminal to share in virtual machine simultaneously, store in virtual machine, to guarantee the fail safe of data.
At present, between mobile terminal and virtual machine, realize data sharing, the following two kinds of methods of main employing: first method to need the data upload shared to server, then from server downloading data, realize data sharing; Second method uses the movable memory equipments such as USB flash disk, will the data shared be needed first to copy in the movable memory equipments such as USB flash disk, and then data copy gone out from the movable memory equipments such as USB flash disk, thus realize data sharing.
The above-mentioned method realizing data sharing all needs by third party's instrument, and therefore, data sharing not only can be subject to the restriction of used third party's instrument, also can affect the Flow Experience of user.
Summary of the invention
The object of the present invention is to provide a kind of method that mobile terminal and virtual-machine data are shared, thus solve the foregoing problems existed in prior art.
To achieve these goals, the technical solution used in the present invention is as follows:
The method that mobile terminal and virtual-machine data are shared, comprises the steps:
S1, receives data transfer request;
S2, judges whether data transmission conditions is set up, if set up, then performs step S3, if be false, then terminates;
S3, sets up data transmission channel;
S4, transmission data.
Further, between step S3 and step S4, also comprise step, judge whether data are packed data, if be packed data, then perform step S4; If be not packed data, then by data compression, then perform step S4.
Further, between step S3 and step S4, also comprising step, setting the destination path for storing described data.
After step S4, also comprise step, after transfer of data, close described transmission channel, and whether the type of data judging to receive, size mates with original, if mated, then the data received are saved in assigned address; If do not mated, then abandon the data received.
Particularly, in step S1, described data transfer request comprises the data transfer request from described mobile terminal to described virtual machine, and from described virtual machine to the data transfer request of described mobile terminal.
Particularly, when described data transfer request is from described mobile terminal to described virtual machine, in step S2, describedly judge whether data transmission conditions is set up, and is specially, judge the relation between the remaining space of the storage medium of described virtual machine and the size of described data, if the remaining space of the storage medium of described virtual machine is greater than the size of described data, then described data transmission conditions is set up, otherwise, be false.
Particularly, when described data transfer request is from described virtual machine to described mobile terminal, in step S2, describedly judge whether data transmission conditions is set up, be specially, judge whether the storage medium of described mobile terminal exists, and the relation between the size of the remaining space of described storage medium and described data, if described storage medium exists, and the remaining space of described storage medium is greater than the size of described data, then described data transmission conditions is set up, otherwise, be false.
Particularly, the storage medium of described mobile terminal adopts SD card.
Preferably, in step S3, described data transmission channel, is established a communications link by Transmission Control Protocol.
More preferably, described Transmission Control Protocol adopts three-way handshake to establish a communications link.
The invention has the beneficial effects as follows: the present invention by setting up transmission channel between mobile terminal and virtual machine, directly data are transmitted by transmission channel, do not need by any third party's instrument, not only can not be subject to the restriction because third party's instrument brings, also can improve the experience fluency of mobile terminal and virtual machine user greatly.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method that a kind of mobile terminal of providing of the embodiment of the present invention and virtual-machine data are shared.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with accompanying drawing, the present invention is further elaborated.Should be appreciated that embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In prior art, the method for data sharing all needs by third party's instrument, so the realization of data sharing can be subject to the restriction of third party's instrument.Such as: part mobile terminal does not support insertion and the read-write of the movable memory equipments such as USB flash disk, or is limited by the size of the movable memory equipments such as USB flash disk; In addition, in prior art, first save the data in third party's instrument and realize again sharing, and use third party's instrument to preserve data, the fail safe of data cannot be ensured.
Realize data sharing by third party's instrument, owing to employing third party's instrument, so do not belong to data sharing truly, the experience fluency sharing the two parties of data is bad.
Realize by third party's instrument the problem that data sharing brings in order to solve, embodiments provide a kind of method that mobile terminal and virtual-machine data are shared.
As shown in Figure 1, the method comprises the steps:
S1, receives data transfer request;
S2, judges whether data transmission conditions is set up, if set up, then performs step S3, if be false, then terminates;
S3, sets up data transmission channel;
S4, transmission data.
Wherein, data transfer request comprises the data transfer request from described mobile terminal to described virtual machine, and from described virtual machine to the data transfer request of described mobile terminal.
Due to the advantage of the existing mobile office of mobile terminal, there is again the inferior position of easily losing, so, in order to the advantage of mobile terminal farthest can be played, and avoid the inferior position of mobile terminal, to need the file-sharing in virtual machine, to mobile terminal, to realize mobile office in the terminal; Simultaneously by the file-sharing that stores in mobile terminal in virtual machine, store in virtual machine, to guarantee the fail safe of data.
Regardless of the transmission direction of data, its implementation procedure is: user chooses file waiting for transmission, send data transfer request, program is the data transfer request that sends of mobile terminal receive or virtual machine first, then judge whether data transmission conditions is set up, data transmission conditions is specially: whether there is storage medium in mobile terminal, and the magnitude relationship between size of data waiting for transmission and target storage remaining space, if transmission conditions are set up, transmission channel can be created out, then notify that subscriber channel creates successfully, user can select to send file and be sent in target storage medium by file, complete transfer of data.
Set up data transmission channel in this way, realize transfer of data, both independent of mobile terminal operating system, also do not depend on the system type of virtual machine, and not by the restriction needing the file type transmitted.
When described data transfer request is from described mobile terminal to described virtual machine, describedly judge whether data transmission conditions is set up, be specially, judge the relation between the remaining space of the storage medium of described virtual machine and the size of described data, if the remaining space of the storage medium of described virtual machine is greater than the size of described data, then described data transmission conditions is set up, otherwise, be false.
When described data transfer request is from described virtual machine to described mobile terminal, describedly judge whether data transmission conditions is set up, be specially, judge whether the storage medium of described mobile terminal exists, and the relation between the size of the remaining space of described storage medium and described data, if described storage medium exists, and the remaining space of described storage medium is greater than the size of described data, then described data transmission conditions is set up, otherwise, be false.
Wherein, because SD card is a kind of multifunctional storage card, and have the various features such as Large Copacity, high-performance, safety, so in the embodiment of the present invention, the storage medium of mobile terminal adopts SD card.
If the condition transmitting data between mobile terminal and virtual machine is set up, then between mobile terminal and virtual machine, set up transmission channel, in the embodiment of the present invention, can be established a communications link between mobile terminal and virtual machine by Transmission Control Protocol, particularly, three-way handshake is adopted to establish a communications link.In ICP/IP protocol, Transmission Control Protocol can provide reliable Connection Service, particularly, three-way handshake can be adopted to set up a connection.
First time shakes hands: when connecting, and client sends syn bag (syn=j) to server, and enters SYN_SEND state, and waiting for server confirms;
Second handshake: server receives syn bag, must confirm the SYN (ack=j+1) of client, oneself also sends SYN bag (syn=k) simultaneously, i.e. SYN+ACK bag, and now server enters SYN_RECV state;
Third time shakes hands: client receives the SYN+ACK bag of server, and send to server and confirm bag ACK (ack=k+1), this bag is sent, and client and server enters ESTABLISHED state, completes three-way handshake.
After completing three-way handshake, now client sends to connect to server and confirms agreement and the agreement with local client license, when server receive client send license authentication protocol and after confirming as effective client, can to the receipt of a client protocol form, when client receives after connection that server returns confirms agreement receipt, prove that data transmission channel health is available, data transmission channel has been set up.Client and server start to transmit data.
Here, if mobile terminal is client, then virtual machine is server, if virtual machine is client, then mobile terminal is server.
Establishing data transmission channel, before starting transfer of data, also needing to set the destination path for storing data, the data received to be stored in destination path.In specific implementation process, can be create new file in mobile terminal or virtual machine.
In the embodiment of the present invention, after transfer of data, close described transmission channel, and whether the type of data judging to receive, size mates with original, if mated, then the data received are saved in assigned address; If do not mated, then abandon the data received.Adopt in this way, ensure that data transmission channel only with in open-minded, close time no, thus save system resource, ensure that the operating rate of system., for reception file unmatched with original, will not store meanwhile, can ensure that the file that user sees is all useful like this, unnecessary worry can not be brought to user.
In the embodiment of the present invention, in order to speeding up data transmission speed and the occupancy to data transmission channel, before data is transmitted, first can judge whether the data needing transmission are compressed file, if not compressed file, then transmit after compressing file again, after the end of transmission, be then stored into destination path again by after compressed file decompress(ion).
By adopting technique scheme disclosed by the invention, obtain effect useful as follows: the present invention by setting up transmission channel between mobile terminal and virtual machine, directly data are transmitted by transmission channel, do not need by any third party's instrument, not only can not be subject to the restriction because third party's instrument brings, also can improve the experience fluency of mobile terminal and virtual machine user greatly.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art it should be understood that the sequential of the method step that above-described embodiment provides can carry out accommodation according to actual conditions, also can carry out according to actual conditions are concurrent.
The hardware that all or part of step in the method that above-described embodiment relates to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, such as: personal computer, server, the network equipment, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, such as: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment comprising described key element and also there is other identical element.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.

Claims (10)

1. the method shared of mobile terminal and virtual-machine data, is characterized in that, comprise the steps:
S1, receives data transfer request;
S2, judges whether data transmission conditions is set up, if set up, then performs step S3, if be false, then terminates;
S3, sets up data transmission channel;
S4, transmission data.
2. the method shared of mobile terminal according to claim 1 and virtual-machine data, is characterized in that, between step S3 and step S4, also comprise step, judge whether data are packed data, if be packed data, then and execution step S4; If be not packed data, then by data compression, then perform step S4.
3. the method shared of mobile terminal according to claim 1 and virtual-machine data, is characterized in that, between step S3 and step S4, also comprises step, setting the destination path for storing described data.
4. the method shared of mobile terminal according to claim 1 and virtual-machine data, it is characterized in that, after step S4, also comprise step, after transfer of data, close described transmission channel, and whether the type of data judging to receive, size mate with original, if coupling, be then saved in assigned address by the data received; If do not mated, then abandon the data received.
5. according to the method that the mobile terminal described in any one of claim 1-4 and virtual-machine data are shared, it is characterized in that, in step S1, described data transfer request comprises the data transfer request from described mobile terminal to described virtual machine, and from described virtual machine to the data transfer request of described mobile terminal.
6. the method shared of mobile terminal according to claim 5 and virtual-machine data, it is characterized in that, when described data transfer request is from described mobile terminal to described virtual machine, in step S2, describedly judge whether data transmission conditions is set up, be specially, judge the relation between the remaining space of the storage medium of described virtual machine and the size of described data, if the remaining space of the storage medium of described virtual machine is greater than the size of described data, then described data transmission conditions is set up, otherwise, be false.
7. the method shared of mobile terminal according to claim 5 and virtual-machine data, it is characterized in that, when described data transfer request is from described virtual machine to described mobile terminal, in step S2, describedly judge whether data transmission conditions is set up, be specially, judge whether the storage medium of described mobile terminal exists, and the relation between the size of the remaining space of described storage medium and described data, if described storage medium exists, and the remaining space of described storage medium is greater than the size of described data, then described data transmission conditions is set up, otherwise, be false.
8. the method shared of mobile terminal according to claim 7 and virtual-machine data, it is characterized in that, the storage medium of described mobile terminal adopts SD card.
9. the method that the mobile terminal according to any one of claim 1-4 and virtual-machine data are shared, it is characterized in that, in step S3, described data transmission channel, is established a communications link by Transmission Control Protocol.
10. the method shared of mobile terminal according to claim 8 and virtual-machine data, it is characterized in that, described Transmission Control Protocol adopts three-way handshake to establish a communications link.
CN201410495909.9A 2014-09-24 2014-09-24 Method for sharing data of mobile terminal and virtual machine Pending CN104320431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410495909.9A CN104320431A (en) 2014-09-24 2014-09-24 Method for sharing data of mobile terminal and virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410495909.9A CN104320431A (en) 2014-09-24 2014-09-24 Method for sharing data of mobile terminal and virtual machine

Publications (1)

Publication Number Publication Date
CN104320431A true CN104320431A (en) 2015-01-28

Family

ID=52375600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410495909.9A Pending CN104320431A (en) 2014-09-24 2014-09-24 Method for sharing data of mobile terminal and virtual machine

Country Status (1)

Country Link
CN (1) CN104320431A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278376A (en) * 2022-05-25 2022-11-01 西安万像电子科技有限公司 Audio and video data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103524A (en) * 2010-12-23 2011-06-22 北京航空航天大学 Memory redundancy oriented virtual machine migration device and method
CN102202289A (en) * 2011-04-13 2011-09-28 张�林 Method and system for remote calling software and hardware resources through mobile terminal
CN103618724A (en) * 2013-12-03 2014-03-05 中标软件有限公司 Method and system for communications between terminal and virtual machine
US20140189133A1 (en) * 2011-09-09 2014-07-03 Huawei Technologies Co., Ltd. Real-Time Sharing Method, Apparatus and System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103524A (en) * 2010-12-23 2011-06-22 北京航空航天大学 Memory redundancy oriented virtual machine migration device and method
CN102202289A (en) * 2011-04-13 2011-09-28 张�林 Method and system for remote calling software and hardware resources through mobile terminal
US20140189133A1 (en) * 2011-09-09 2014-07-03 Huawei Technologies Co., Ltd. Real-Time Sharing Method, Apparatus and System
CN103618724A (en) * 2013-12-03 2014-03-05 中标软件有限公司 Method and system for communications between terminal and virtual machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278376A (en) * 2022-05-25 2022-11-01 西安万像电子科技有限公司 Audio and video data transmission method and device
CN115278376B (en) * 2022-05-25 2024-03-22 西安万像电子科技有限公司 Audio and video data transmission method and device

Similar Documents

Publication Publication Date Title
CN102891889B (en) A kind of information sharing method and device
CN101682634B (en) File protocol for transaction based communication
WO2020119823A1 (en) Screen projection method, screen projection apparatus and screen projection device
WO2016187813A1 (en) Data transmission method and device for photoelectric hybrid network
US20110246763A1 (en) Parallel method, machine, and computer program product for data transmission and reception over a network
CN105488837A (en) Cloud computing based real-time off-screen rendering method, apparatus and system
JP3187029U (en) Wireless storage device and wireless storage system having autonomous backup capability
CN102638565A (en) Mobile phone cloud encryption backup and recovery method based on cloud architecture
RU2015151007A (en) EFFICIENT SOFTWARE ACCESS TO MEMORY THROUGH NETWORK PROTOCOLS FOR ACCESS TO FILE
US20150127942A1 (en) Security key device for secure cloud service, and system and method for providing secure cloud service
CN103297424A (en) Multiplexed data stream protocol
CN107360177B (en) A kind of message transmitting method and device based on UDP
US10681115B2 (en) Multimedia data transmission method and device
CN103457966A (en) Method, equipment and system for accessing cloud storage equipment on basis of DLNA (digital living network alliance) technology
CN104462033A (en) Method and device for realizing editing operation among devices
US10419212B2 (en) Methods, systems, apparatuses, and devices for securing network communications using multiple security protocols
CN104468509A (en) Method and system for transmitting mobile phone network game data and mobile phone user side
CN105354505A (en) Image adaption method and electronic device
CN109862119A (en) Memory capacity sharing method, device, service server, user terminal and system
JP4609550B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
CN111385068B (en) Data transmission method, device, electronic equipment and communication system
CN111416767A (en) Log output method, device and storage medium of edge intelligent gateway
WO2024067529A1 (en) Rdma-based link establishment method and apparatus, and device and storage medium
CN111400213B (en) Method, device and system for transmitting data
CN106657076B (en) TCP service implementation method and device for network name space

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: 20150128

RJ01 Rejection of invention patent application after publication