Summary of the invention
In view of above content, be necessary to provide a kind of document transmission system and method, can between electronic installation, carry out file transfer more simply, intuitively.
A kind of document transmission system; Comprise the transmission motion detection module, packet sending module, response detecting module and the first communication module that are applied to the file transmitting terminal, and the reception motion detection module, response package module and the second communication module that are applied to the file receiving terminal.The file that motion detection module detecting user carries out on the file icon of selecting on the touch-screen sends action, and said file sends action for satisfying the action that preestablishes requirement.The packet sending module generates the request data package that a request and other electronic installation establish a communications link, and this request data package is sent to wireless network.The response detecting module is detected first electronic installation and whether in the preset time interval, is received the response data packet that other electronic installation is replied.When first electronic installation receives the response data packet of other electronic installation answer in the preset time interval; First communication module is set up radio communication with the second electronic device that sends response data packet and is connected, and the file that sends user's selection through wireless network is to this second electronic device.Receive the file reception action that motion detection module detecting user carries out on the touch-screen of second electronic device, said file receives action and is the satisfied action that preestablishes requirement.The response package module receives the request data package that first electronic installation sends, and generates a response request packet, and this response request packet is sent to first electronic installation through wireless network.Second communication module is set up radio communication with first electronic installation and is connected, and receives the file that first electronic installation sends.A kind of document transmission method is applied to send first electronic installation of file.This method comprises that the file that (A) detecting user carries out sends action on the file icon of selecting on the touch-screen, this document sends action for satisfying the action that preestablishes requirement; (B) generate the request data package that a request and other electronic installation establish a communications link, and this request data package is sent to wireless network; (C) detect this first electronic installation and whether in the preset time interval, receive the response data packet that other electronic installation is replied; If first electronic installation does not receive response data packet; The time that perhaps receives response data packet exceeds the preset time interval; Then flow process finishes, if first electronic installation receives the response data packet that second electronic device is replied in the preset time interval, then sets up radio communication with second electronic device and is connected; And the file that (D) passes through wireless network transmission user selection is to second electronic device.
A kind of document transmission method is applied to receive the second electronic device of file.This method comprises: (E) detect the file reception action that the user carries out on the touch-screen of this second electronic device, it is the satisfied action that preestablishes requirement that this document receives action; (F) receive the request data package that first electronic installation sends, generate a response request packet, and this response request packet is sent to first electronic installation through wireless network; And (G) set up radio communication and be connected, and receive the file of first electronic installation transmission with first electronic installation.
Compared to prior art, document transmission system provided by the invention and method can be simply, between two electronic installations that dispose touch-screen, carry out file transfer intuitively.
Embodiment
Consulting shown in Figure 1ly, is the applied environment figure of document transmission system preferred embodiment of the present invention.This document transmission system comprises a series of functional modules, and these functional module parts are applied to send first electronic installation 10 of file, and a part is applied to receive the secondelectronic device 20 of file.First electronic installation 10 and secondelectronic device 20 can be personal digital assistant, smart mobile phone, and iPhone, iPad etc. dispose the electronic installation of touch-screen.
In the present embodiment, first electronic installation 10 comprises transmission motion detection module 11,packet sending module 12,response detecting module 13 and first communication module 14.Secondelectronic device 20 comprises receptionmotion detection module 21,response package module 22 and second communication module 23.The alleged module of the present invention is to accomplish agency (agent) program of specific function, is more suitable for therefore describing software with module in the present invention in describing the implementation of software in digital processing device than program.
First electronic installation 10 also comprises touch-screen 15,memory 16 and processor 17.Touch-screen 15 shows the icon of the file that can transfer to other electronic installation, receives selection and the transmit operation of user to file.The sequencing code of the above-mentioned module 11 to 14 ofmemory 16 storages,processor 17 is carried out these sequencing codes, realizes the function that above-mentioned module 11 to 14 provides in document transmission process.
Secondelectronic device 20 also comprises touch-screen 24,memory 25 and processor 26.Touch-screen 24 receives the file reception operation that the user carries out, and shows the icon of the file that first electronic installation 10 sends.The sequencing code of the above-mentionedmodule 21 to 23 ofmemory 25 storages,processor 26 is carried out these sequencing codes, realizes the function that above-mentionedmodule 21 to 23 provides in document transmission process.
Send motion detection module 11 and be used to detect the file transmission action that the user carries out on the file icon of selecting.Said file sends action for satisfying the action that preestablishes requirement, and for example in the present embodiment, file sends action on the file icon of selecting, drawing the circle of a sealing.Implement in the profit at other, this document sends action also can be for carrying out a specific action around the file icon of selecting.
Packet sending module 12 is used for after detecting said file transmission action, generating the request data package that a request and other electronic installation establish a communications link, and this request data package being sent to wireless network.
Response detecting module 13 is used to detect first electronic installation 10 and whether in the preset time interval (for example 10 seconds), receives the response data packet that other electronic installation is replied.
If first electronic installation 10 receives the response data packet that other electronic installation (for example second electronic device 20) is replied in the preset time interval (for example 10 seconds); Thenfirst communication module 14 and the electronic installation (for example second electronic device 20) that sends response data packet are set up after radio communication is connected, send the electronic installation (for example second electronic device 20) of file to this transmission response data packet that the user selects through wireless network.If first electronic installation 10 does not receive the response data packet that other electronic installation is replied, the time that perhaps receives the response data packet of other electronic installation answer exceeds the preset time interval, and then selected file is sent in 10 cancellations of first electronic installation.
Receivemotion detection module 21 and be used to detect the file reception action that the user carries out on the touch-screen 24 of second electronic device 20.Said file receives action for satisfying the action that preestablishes requirement, and for example in the present embodiment, file receives action for draw the circle of a sealing at the white space of touch-screen 24.
Response package module 22 is used for receiving the request data package that first electronic installation 10 sends detecting after said file receives action, and generates the response request packet that a response and first electronic installation 10 establish a communications link.Afterwards,response package module 22 is sent to first electronic installation 10 with this response request packet through wireless network.
Second communication module 23 is used for setting up radio communication with first electronic installation 10 and is connected, and receives the file that first electronic installation 10 sends.
It is pointed out that first electronic installation 10 also can comprise above-mentionedmodule 21 to 23 as the receiving terminal electronic installation, secondelectronic device 20 can comprise that also above-mentioned module 11 to 14 is as transmitting end electronic device.
Consulting shown in Figure 2ly, is the flow chart of document transmission method preferred embodiment of the present invention at the file transmitting terminal.
Step S201, first electronic installation 10 show the icon of the file that can transfer to other electronic installation, the for example icon of photo, song etc. on touch-screen 15.
Step S203 sends the file transmission action that motion detection module 11 detecting users carry out on the file icon of selecting.Said file sends action for satisfying the action that preestablishes requirement, and for example in the present embodiment, file sends action for go up the circle of drawing a sealing at the file icon of selecting (the for example icon of picture A).
Step S205,packet sending module 12 generate the request data package that requests and other electronic installation establish a communications link, and this request data package is sent to wireless network.
Step S207, whetherresponse detecting module 13 detectings first electronic installation 10 receives the response data packet that other electronic installation is replied in the preset time interval (for example 10 seconds).If first electronic installation 10 does not receive the response data packet that other electronic installation is replied, the time that perhaps receives the response data packet of other electronic installation answer exceeds the preset time interval, and then flow process finishes.If first electronic installation 10 receives the response data packet that other electronic installation (for example second electronic device 20) is replied in the preset time interval (for example 10 seconds), then flow process gets into step S209.
Step S209,first communication module 14 set up radio communication with the electronic installation (for example second electronic device 20) that sends response data packet and are connected.
Step S211,first communication module 14 send user's selection through wireless network file (for example picture A) sends the electronic installation (for example second electronic device 20) of response data packet to this.
Consulting shown in Figure 3ly, is the flow chart of document transmission method preferred embodiment of the present invention at the file receiving terminal.
Step S301 receives the file reception action thatmotion detection module 21 detecting users carry out on the touch-screen 24 of second electronic device 20.Said file receives action for satisfying the action that preestablishes requirement, and for example in the present embodiment, file receives action for draw the circle of a sealing at the white space of touch-screen 24.
Step S303,response package module 22 receives the request data package that first electronic installation 10 sends.
Step S305,response package module 22 generates the response request packet that a response and first electronic installation 10 establish a communications link, and this response request packet is sent to first electronic installation 10 through wireless network.
Step S307,second communication module 23 set up radio communication with first electronic installation 10 and are connected.
Step S309,second communication module 23 receive the file (for example picture A) that first electronic installation 10 sends.
Step S311, secondelectronic device 20 show the icon (the for example icon of picture A) of this document on touch-screen 24.
What should explain at last is; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.