CN110809031A - Method for transmitting file to mobile phone by computer - Google Patents

Method for transmitting file to mobile phone by computer Download PDF

Info

Publication number
CN110809031A
CN110809031A CN201911005443.9A CN201911005443A CN110809031A CN 110809031 A CN110809031 A CN 110809031A CN 201911005443 A CN201911005443 A CN 201911005443A CN 110809031 A CN110809031 A CN 110809031A
Authority
CN
China
Prior art keywords
mobile phone
computer
file
unique number
information
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
CN201911005443.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.)
Hefei Mingyang Information Technology Co Ltd
Original Assignee
Hefei Mingyang Information Technology Co 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 Hefei Mingyang Information Technology Co Ltd filed Critical Hefei Mingyang Information Technology Co Ltd
Priority to CN201911005443.9A priority Critical patent/CN110809031A/en
Publication of CN110809031A publication Critical patent/CN110809031A/en
Pending legal-status Critical Current

Links

Images

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/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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
    • 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/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for transmitting a file to a mobile phone by a computer, which belongs to the technical field of communication and comprises the following steps: step 1, starting an APP (application) of a mobile phone end, starting an HTTP (hyper text transport protocol) service by the mobile phone end, and receiving a file transmitted by a computer end; step 2, the computer end opens a browser and inputs a specific website, draws the unique number into a two-dimensional code and displays the two-dimensional code on a display screen, and circularly inquires whether the unique number, the user information and the page address of the uploaded file exist or not; the computer end inquires the information and executes the step 5, otherwise, executes the step 3; step 3, the mobile phone end opens the scanning two-dimensional code in the APP, the mobile phone end obtains the unique number, and the mobile phone end uploads information to the server end; step 4, the server end receives the information uploaded by the mobile phone end, and the information is inserted into the database and is transmitted to the computer end; and 5, the browser at the computer end jumps to the page address of the uploaded file, and the file at the computer end is transmitted to the mobile phone end. The technical scheme has the advantages of reasonable design, simple implementation and high file transmission speed.

Description

Method for transmitting file to mobile phone by computer
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a method for transmitting a file to a mobile phone by a computer.
Background
With the continuous development of technology, more and more electronic devices are used by people, and especially smart phones are very popular.
In actual life, data files such as documents, music, short videos, movies, and television series in a computer are often required to be transmitted to a mobile phone, and most of the existing technologies adopt the following modes: the file in the computer is uploaded to the server, and then the file in the server is downloaded to the mobile phone. However, when large-capacity files such as movies, television shows and the like are transmitted, the files are uploaded to a server from a computer and then downloaded to a mobile phone from the server in the manner described above, the transmission speed is limited by a communication network, the transmission speed is slow, and high communication cost is generated when the mobile phone uses a wireless communication network; the functions are realized, the application server needs to be erected, the system design of the application server is complex, and a large-capacity data hard disk needs to be configured at a corresponding server end for storing data uploaded by a user, so that the cost for erecting the server is increased.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a method for transmitting a file to a mobile phone by a computer, and solves the technical problems that the file transmission speed is low, the transmission scheme is complex, and a large-capacity database is required to be equipped for realizing the transmission function in the prior art.
The purpose of the invention can be realized by the following technical scheme:
a method for transmitting files to a mobile phone by a computer comprises the following steps:
step 1, starting an APP (application) of a mobile phone end, starting an HTTP (hyper text transport protocol) service by the mobile phone end, and receiving a file transmitted by a computer end;
step 2, the computer end opens a browser and inputs a specific website, the computer end comprises a unique number module, the unique number module generates a unique number, the computer end draws the unique number into a two-dimensional code and displays the two-dimensional code on a display screen, and circularly inquires whether the unique number, user information and an uploaded file page address exist or not;
the computer end inquires the information and executes the step 5, otherwise, executes the step 3;
step 3, the mobile phone end opens the scanning two-dimensional code in the APP, acquires the unique number, and uploads the unique number, the user information and the uploaded file page address to the server end;
step 4, the server end receives the information uploaded by the mobile phone end, inserts the unique number, the user information and the page address of the uploaded file into the database, and issues the unique number, the user information and the page address of the uploaded file to the computer end;
and 5, the browser at the computer end skips to the page address of the uploaded file, the file is selected and then a sending button is clicked, and the file at the computer end is transmitted to the mobile phone end.
As a preferred technical scheme of the invention, when the file is transmitted, the WIFI transmission service and the HTTP service are not correctly started by the mobile phone terminal, and the mobile phone terminal gives the error report information of the user.
As a preferred embodiment of the present invention, the operating system used by the computer end includes, but is not limited to: microsoft operating system, apple operating system and android operating system.
As a preferred technical solution of the present invention, the operating system used by the mobile phone end includes, but is not limited to: IOS system, android system.
As a preferred technical scheme of the present invention, the computer terminal and the mobile phone terminal are in a coverage environment of the same WIFI signal.
As a preferred technical scheme of the invention, the server terminal, the computer terminal and the mobile phone terminal are accessed to the Internet environment.
As a preferred technical scheme of the invention, the specific website is set in a WebServer deployed at a computer terminal.
As a preferred technical scheme of the invention, the method of the unique number module comprises a random number, a system method is utilized to obtain a random positive integer and current time calculated in microseconds, the random positive integer forms a prefix of the random number, the current time forms a suffix of the random number, a computer end calculates an MD5 value of the random number, and the unique number takes the first 15 bits of the MD5 value.
The invention has the beneficial effects that:
1. the technical scheme of the method for transmitting the file to the mobile phone by the computer is reasonable in design, simple to implement, high in file transmission speed, simple in mobile phone and computer configuration, free of large-capacity hard disk for erecting the server and low in implementation cost.
2. According to the method for transmitting the file to the mobile phone by the computer, the transmission flow is simple, the mobile phone end resumes the HTTP service, the HTTP connection is established between the computer end and the mobile phone end, the file is directly uploaded to the mobile phone by the computer end, the file does not need to be uploaded to the server end and then downloaded to the mobile phone end, the whole file transmission is completed under the local area network environment by using WIFI, the network communication flow of the mobile phone end is not consumed in the transmission process, and no extra communication cost is generated for a user.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is an architectural diagram of the present invention;
FIG. 2 is a flow chart of a method of unique number module in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for transmitting a file to a mobile phone by a computer includes a mobile phone end, a computer end and a server end, wherein the mobile phone end installs an APP, and the computer end deploys a WebServer, and includes the following steps:
step 1, starting an APP (application) of a mobile phone end, starting an HTTP (hyper text transport protocol) service by the mobile phone end, and receiving a file transmitted by a computer end;
step 2, opening a browser and inputting 192.168.0.111 by the computer end, wherein the computer end comprises a unique number module, the unique number module generates a unique number, the computer end draws the unique number into a two-dimensional code and displays the two-dimensional code on a display screen, and circularly inquires whether the unique number, user information and an uploaded file page address exist or not;
the computer end inquires the information and executes the step 5, otherwise, executes the step 3;
step 3, the mobile phone end opens the scanning two-dimensional code in the APP, acquires the unique number, and uploads the unique number, the user information and the uploaded file page address to the server end;
step 4, the server end receives the information uploaded by the mobile phone end, inserts the unique number, the user information and the page address of the uploaded file into the database, and issues the unique number, the user information and the page address of the uploaded file to the computer end;
and 5, the browser at the computer end jumps to the page address of the uploaded file, clicks a sending button after the file is selected, transmits the file at the computer end to the mobile phone end, and automatically jumps to the page of the uploaded file after the file is successfully authorized, so that the user is prevented from manually inputting the page address of the uploaded file (the page address of the uploaded file consists of an IP address and a port number).
When the file is transmitted, the WIFI transmission service and the HTTP service are not correctly started by the mobile phone end, the mobile phone end gives out error report information of the user, the error report information is given out by the mobile phone end, the problem that the file cannot be transmitted is solved conveniently by the user, and the mobile phone is user-friendly. The operating system used on the computer side includes but is not limited to: microsoft operating system, apple operating system and android operating system. The operating system used by the mobile phone terminal includes but is not limited to: IOS system, android system. The computer end and the mobile phone end are in the same WIFI signal coverage environment, namely the computer end and the mobile phone end are connected with the same router, file transmission is carried out in the environment of a local area network, and the internet is not used in the file transmission process. The server, the computer and the mobile phone are connected to the internet environment, when in connection operation, the mobile phone needs to upload information to the server, the server needs to receive the information and download the information to the computer, so that the mobile phone can authorize the computer to transmit files, and the uploaded information and the downloaded information are information consisting of a unique number, user information and an uploaded file page address.
192.168.0.111 is set in a WebServer deployed at a computer end, when a browser at the computer end accesses 192.168.0.111, a unique number module starts to work and generates a unique number, and the computer end draws the unique number into a two-dimensional code and displays the two-dimensional code on a display screen.
As shown in fig. 2, the method of the unique number module includes a random number, and a systematic method is used to obtain a random positive integer and a current time calculated in microseconds, where the random positive integer constitutes a prefix of the random number, the current time constitutes a suffix of the random number, a computer calculates an MD5 value of the random number, and the unique number takes the first 15 bits of the MD5 value. The unique number is used as an identification number, is stored in a database of the server and is used for identifying user information and information of the page address of the uploaded file. The user information comprises information such as the model of the mobile phone, the model of the mobile phone operating system, the memory capacity of the mobile phone, the residual memory capacity of the mobile phone and the like. The uploaded file page address is an address generated by a system when the mobile phone side APP starts the HTTP service.
And the APP is installed at the mobile phone end, the WebServer is deployed at the computer end, and the server end is erected. After the preparation work is finished, a user starts a mobile phone end APP, the mobile phone end starts HTTP service and is used for receiving a computer end transmission file, the computer end opens a browser and inputs 192.168.0.111 to access the website, a display screen of the computer end displays a two-dimensional code, the two-dimensional code is scanned by using the scanning function of the mobile phone end APP, the browser of the computer end skips to an uploaded file page address, a sending button is clicked after the file is selected, the file of the computer end is transmitted to the mobile phone end, and the whole transmission process is finished.
In the description herein, references to the description of "one embodiment," "an example," "a specific example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed.

Claims (8)

1. A method for transmitting files to a mobile phone by a computer is characterized by comprising the following steps:
step 1, starting an APP (application) of a mobile phone end, starting an HTTP (hyper text transport protocol) service by the mobile phone end, and receiving a file transmitted by a computer end;
step 2, the computer end opens a browser and inputs a specific website, the computer end comprises a unique number module, the unique number module generates a unique number, the computer end draws the unique number into a two-dimensional code and displays the two-dimensional code on a display screen, and circularly inquires whether the unique number, user information and an uploaded file page address exist or not;
the computer end inquires the information and executes the step 5, otherwise, executes the step 3;
step 3, the mobile phone end opens the scanning two-dimensional code in the APP, acquires the unique number, and uploads the unique number, the user information and the uploaded file page address to the server end;
step 4, the server end receives the information uploaded by the mobile phone end, inserts the unique number, the user information and the page address of the uploaded file into the database, and issues the unique number, the user information and the page address of the uploaded file to the computer end;
and 5, the browser at the computer end skips to the page address of the uploaded file, the file is selected and then a sending button is clicked, and the file at the computer end is transmitted to the mobile phone end.
2. The method for transmitting the file to the mobile phone by the computer according to claim 1, wherein when the file is transmitted, the WIFI transmission service and the HTTP service are not correctly enabled at the mobile phone end, and the mobile phone end gives error information to the user.
3. The method of claim 1, wherein the operating system used by the computer includes but is not limited to: microsoft operating system, apple operating system and android operating system.
4. The method of claim 1, wherein the operating system used by the mobile phone end includes but is not limited to: IOS system, android system.
5. The method for transmitting the file to the mobile phone by the computer according to claim 1, wherein the computer end and the mobile phone end are in a coverage environment of the same WIFI signal.
6. The method of claim 1, wherein the server side, the computer side and the mobile phone side are connected to an internet environment.
7. The method for transmitting files to a mobile phone by a computer according to claim 1, wherein the specific website is set in a WebServer deployed on a computer side.
8. The method of claim 1, wherein the unique number module comprises a random number, the systematic method is used to obtain a random positive integer and a current time in microseconds, the random positive integer forms a prefix of the random number, the current time forms a suffix of the random number, the computer calculates the MD5 value of the random number, and the unique number takes the first 15 bits of the MD5 value.
CN201911005443.9A 2019-10-22 2019-10-22 Method for transmitting file to mobile phone by computer Pending CN110809031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911005443.9A CN110809031A (en) 2019-10-22 2019-10-22 Method for transmitting file to mobile phone by computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911005443.9A CN110809031A (en) 2019-10-22 2019-10-22 Method for transmitting file to mobile phone by computer

Publications (1)

Publication Number Publication Date
CN110809031A true CN110809031A (en) 2020-02-18

Family

ID=69488860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911005443.9A Pending CN110809031A (en) 2019-10-22 2019-10-22 Method for transmitting file to mobile phone by computer

Country Status (1)

Country Link
CN (1) CN110809031A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272325A (en) * 2020-10-20 2021-01-26 深圳市前海手绘科技文化有限公司 Method for synchronizing mobile terminal and webpage terminal materials in real time in online video production
CN116708419A (en) * 2023-07-18 2023-09-05 广州炫视智能科技有限公司 File transmission method, system and file transmission system based on AndServer

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015043120A1 (en) * 2013-09-25 2015-04-02 深圳Tcl新技术有限公司 Cloud file sharing method and system
US20150365481A1 (en) * 2014-06-11 2015-12-17 Ricoh Company, Ltd. Mobile terminal and information processing system
CN105227594A (en) * 2014-06-09 2016-01-06 中兴通讯股份有限公司 Document transmission method, Apparatus and system
CN105554056A (en) * 2015-10-27 2016-05-04 深圳市美贝壳科技有限公司 Intelligent equipment file access method under PC side local area network environment
US20160142350A1 (en) * 2014-11-18 2016-05-19 Commvault Systems, Inc. Storage and management of mail attachments
CN106230946A (en) * 2016-08-03 2016-12-14 北京天职信息技术有限公司西安分公司 A kind of being uploaded by Quick Response Code scanning realizes the method that file transmits
CN106230968A (en) * 2016-08-22 2016-12-14 杨玲 Cross-platform file based on Apache Server transmission APP software system
CN106375454A (en) * 2016-09-07 2017-02-01 深圳市友为软件有限公司 Method and system for uploading file by scanning graphic identifier
CN107277122A (en) * 2017-06-07 2017-10-20 北京酷我科技有限公司 A kind of method by the cross-platform transmission files of WIFI
CN109874035A (en) * 2019-02-28 2019-06-11 四川长虹电器股份有限公司 A method of it is televised by intelligent terminal control

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015043120A1 (en) * 2013-09-25 2015-04-02 深圳Tcl新技术有限公司 Cloud file sharing method and system
CN105227594A (en) * 2014-06-09 2016-01-06 中兴通讯股份有限公司 Document transmission method, Apparatus and system
US20150365481A1 (en) * 2014-06-11 2015-12-17 Ricoh Company, Ltd. Mobile terminal and information processing system
US20160142350A1 (en) * 2014-11-18 2016-05-19 Commvault Systems, Inc. Storage and management of mail attachments
CN105554056A (en) * 2015-10-27 2016-05-04 深圳市美贝壳科技有限公司 Intelligent equipment file access method under PC side local area network environment
CN106230946A (en) * 2016-08-03 2016-12-14 北京天职信息技术有限公司西安分公司 A kind of being uploaded by Quick Response Code scanning realizes the method that file transmits
CN106230968A (en) * 2016-08-22 2016-12-14 杨玲 Cross-platform file based on Apache Server transmission APP software system
CN106375454A (en) * 2016-09-07 2017-02-01 深圳市友为软件有限公司 Method and system for uploading file by scanning graphic identifier
CN107277122A (en) * 2017-06-07 2017-10-20 北京酷我科技有限公司 A kind of method by the cross-platform transmission files of WIFI
CN109874035A (en) * 2019-02-28 2019-06-11 四川长虹电器股份有限公司 A method of it is televised by intelligent terminal control

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘睿: "一种P2P分布式文件共享方式的实现与优化", 《现代计算机》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272325A (en) * 2020-10-20 2021-01-26 深圳市前海手绘科技文化有限公司 Method for synchronizing mobile terminal and webpage terminal materials in real time in online video production
CN116708419A (en) * 2023-07-18 2023-09-05 广州炫视智能科技有限公司 File transmission method, system and file transmission system based on AndServer

Similar Documents

Publication Publication Date Title
CN102752457B (en) Method and system for installing applications
EP3714612B1 (en) Quick pairing of peripheral and host devices
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
CN101695157B (en) Self-adapting method of display of mobile terminal screen in network application and system thereof
US20130282564A1 (en) System and method for transmitting application data between two communication devices
CN1197322C (en) Radio terminal for browsing internet
CN103581272A (en) File transfer method and device
CN101216834B (en) File downloading method, system, device and server
US20060242248A1 (en) Shortcut generator for services accessible via a messaging service system
US20060095531A1 (en) File transmission method in instant messaging service and mobile communications terminal for supporting the same
CN103384275A (en) Cross-terminal downloading method, system cloud server and terminal
CN105050063B (en) Method and device for pushing information
CN103634389A (en) File transfer method, device and system between calculation device and mobile device
CN103781028B (en) A kind of information subscribing mthods, systems and devices of mobile terminal
CN101183946B (en) Method and system of obtaining resource listing of download file
CN103188328A (en) Mobile terminal application program sharing method, server and system
CN104123149B (en) Method for upgrading software, device, client and system
CN101453711A (en) Automatic test system and test method for mobile phone short message
CN103795768A (en) Method and device for remote access
CN104105007A (en) Video loading method of mobile terminal, devices and system
CN103491522B (en) terminal adapting method and device
CN101699839A (en) Mobile terminal figure adaptive system and method thereof
CN110809031A (en) Method for transmitting file to mobile phone by computer
CN105657781A (en) Method and device for accessing WiFi network
CN104702634A (en) Method, device and system for processing data operation request

Legal Events

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

Application publication date: 20200218