Embodiment
In order to make those skilled in the art person understand better technical scheme among the application, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that obtains under the creative work prerequisite, all should belong to the scope of the application's protection.
Referring to Fig. 1, one embodiment of the invention provides a kind ofly is shared to the device of PC with file from wireless terminal, comprising:
Receiver module 101 is used for receiving the multimedia message that wireless terminal sends;
Wireless terminal can be mobile phone, digital album (digital photo frame) etc.
Comprise in the multimedia message and will share to treating shared file and being used to indicate the information of waiting to share PC that this treats that shared file will be shared of PC from wireless terminal.
Treat that shared file can be shared one and wait to share in the PC, can certainly be shared a plurality of waiting and share in the PC for one.If will treat that shared file is shared to a plurality of waiting and shares in the PC, then comprise a plurality of information of waiting to share PC that this treats that shared file will be shared that are used to indicate in this multimedia message.
The transmission number of multimedia message is the number of wireless terminal, and the receiving number of multimedia message is the number of current shared device.Wait to share PC information by the text entry of multimedia message, just treat shared file by the annex of multimedia message.
The multimedia message text formatting can be:<192.168.1.2〉<192.168.1.3〉...
Wherein 192.168.1.2 and 192.168.1.3 are the IP addresses of two PCs, show that shared file will be shared to the IP address and be respectively in 192.168.1.2 and these two PCs of 192.168.1.3 the affiliated multimedia message of the text at least by entrained the treating of annex.
In the embodiment of the invention, by "<" and "〉" separator that partners, IP address of record in a pair of separator.In other embodiments, also can define other forms of separator, for example a pair of "@" etc., the present invention does not do restriction to the concrete form of separator.
Acquisition module 102 is used for obtaining the information of waiting to share PC from described multimedia message, and extracts from described multimedia message and treat shared file;
Referring to Fig. 2, acquisition module 102 can comprise:
The first analyzing sub-module 201 is used for parsing the information of waiting to share PC from the body part of described multimedia message;
The second analyzing sub-module 202 is used for parsing from the accessories section of described multimedia message and treats shared file.
Sharing module 103 is used for waiting according to described described the treating of information check of sharing PC shares on the PC whether have shared storage space, if exist, then the described shared file for the treatment of is shared to the described shared storage space of waiting to share PC.
Realize that with the file-sharing in the wireless terminal this PC need to meet some requirements in PC if utilize embodiment of the invention institute generator.Be that PC need to hew out a special shared storage space, further, the path that should share storage space can also be recorded in the device that the embodiment of the invention provides.
The device that the embodiment of the invention provides records the path of the shared storage space of the PC of having opened up shared storage space showing at shared PC of self maintained.Referring to Fig. 3, sharing module 103 specifically can comprise:
Obtain submodule 301, for obtaining the shared PC table of self storing, described shared PC table is for the path of the shared storage space that records the PC of having opened up shared storage space;
Matched sub-block 302 is used for waiting the sharing information of PC and the information of the PC that described shared PC table records is mated;
The first shared Sub module 303 is used for treating that with described the shared file file-sharing is to the described shared storage space of waiting to share PC when described shared PC table has recorded the path of the described shared storage space of waiting to share PC.
Alternatively, referring to Fig. 4, also provide another kind of sharing module in the another embodiment of the present invention, this sharing module comprises:
Detection sub-module 401 is used for treating according to the information detection for the treatment of shared PC is described whether shared PC has shared storage space;
The second shared Sub module 402, be used for described detection sub-module determine described wait to share will describedly treat when PC has shared storage space that shared file is shared to the described shared storage space for the treatment of shared PC.
When waiting that sharing PC can realize sharing, sharing module 103 can transmit by file [failing] agreement (FTP, File Transfer Protocol), HTML (Hypertext Markup Language) (HTTP, Hypertext TransferProtocol) or SMB agreement (SMB, Server Message Block protocol) treat that shared file sends to and wait to share PC described.
Fig. 5 is an application scenarios figure of the device that provides of the embodiment of the invention, and wherein, 501 is wireless terminal, can be mobile phone or digital album (digital photo frame) etc., in the embodiment of the invention, describes as an example of this wireless terminal of digital album (digital photo frame) example.502 for realizing a file sharing device of the method that the embodiment of the invention provides, and 503 is the PC group, comprises altogether n platform PC of PC1~PCn.As can be seen from the figure, the sharing means that the embodiment of the invention provides becomes the bridge that connects wireless terminal and PC, the device that provides by the embodiment of the invention, so that need not between wireless terminal and the PC also file to be shared to PC from wireless terminal by movable memory equipment, avoided existing file to be shared to file copy process loaded down with trivial details the PC process from wireless terminal, for file-sharing brings great convenience, greatly improved the efficient of file-sharing.
In the practical application, the device that the embodiment of the invention provides can be integrated in router or other the existing network equipments.
Referring to Fig. 6, another embodiment of the present invention also provides a kind of file is shared to the method for PC from wireless terminal, comprises
S601 receives the multimedia message that wireless terminal sends;
What the embodiment of the invention was described is the process that the file-sharing of wireless terminal is arrived PC.
S602 obtains the information of waiting to share PC from described multimedia message, and extracts from described multimedia message and treat shared file;
In an embodiment of the present invention, step S602 is specially:
Parse the information of waiting to share PC from the body part of described multimedia message; Parse from the accessories section of described multimedia message and to treat shared file.
S603 waits according to described described the treating of information check of sharing PC shares on the PC whether have shared storage space, if exist, then the described shared file for the treatment of is shared to the described shared storage space of waiting to share PC.
In the practical application, the path that can show to record the shared storage space of the PC of having opened up shared storage space by a shared PC.Referring to Fig. 7, show to realize sharing specifically to comprise according to this shared PC:
S701 obtains and shares the PC table, and described shared PC table is for the path of the shared storage space that records the PC of having opened up shared storage space;
S702 mates the information of the PC that records in the information of waiting to share PC and the described shared PC table;
S703 when having recorded the path of the described shared storage space of waiting to share PC in described shared PC table, treats that with described the shared file file-sharing is to the described shared storage space of waiting to share PC.
Certainly, in other embodiments of the invention, also can directly share according to the information realization for the treatment of shared PC, referring to Fig. 8, this process specifically comprises:
S801 is according to waiting described the treating of information detection of sharing PC shares in the PC whether have shared storage space;
S802, determine described wait to share will describedly treat when PC has shared storage space that shared file is shared to the described shared storage space for the treatment of shared PC.
In the scene shown in Figure 5, between 502 and 503, as an example of SMB agreement realization file-sharing example the method that the embodiment of the invention was provided is described.Referring to Fig. 9, the method that the embodiment of the invention provides comprises:
S901, digital album (digital photo frame) 501 sends multimedia message to file sharing device 502.
It is the number of digital album (digital photo frame) 501 that multimedia message sends number, and the receiving number of multimedia message is the number of file sharing device 502.
S902, file sharing device 502 obtain the information of waiting to share PC from described multimedia message, and extract from described multimedia message and treat shared file.
Suppose that the described existence form of waiting to share the information of PC is IMS-xxxxxx, wherein, IMS represents to share storage space, and xxxxx then is the IP address of this PC.
S903, file sharing device 502 waits that according to described described the treating of information check of sharing PC shares on the PC whether have shared storage space, if exist, then enters step S904, otherwise enters step S905.
Described file sharing device 502 in self maintained a shared PC table, so after obtaining IMS-xxxxx, this document sharing means 502 can be mated according to the shared PC table with IMS-xxxxx and self storage, if exist, so then enter step S905, otherwise enter step S906.
Accordingly, on PC, the shared storage space of foundation can be arranged common title, and form is IMS-xxxxx, so just with to wait to share PC information corresponding.Particularly, can under the IMS-xxxxx catalogue, set up reception (inbox) catalogue, be used for depositing the file that shares to PC.Shared storage space bibliographic structure on the PC can be referring to Figure 10.Under the inbox catalogue, can take the number of wireless terminal as sub-directory, will share corresponding being kept under this catalogue of file of coming from wireless terminal.
S904 is shared to the described PC of waiting to share with the described shared file for the treatment of.
S905 abandons multimedia message.
Figure 11 is the realization interface synoptic diagram of one embodiment of the invention, as seen from the figure, one PC utilizes the described method of Figure 10 to receive shared file, and with the file that receives be stored in inbox in the mobile number file, as can be seen from the figure, the shared file in the current interface is that 13587654321 these wireless terminals send from mobile number all.
From Figure 11, it can also be seen that, in this embodiment, can also pass through special mark, such as the mode of choosing by making hook among Figure 12, the file that comes mark newly to receive.
The method that the embodiment of the invention provides, so that need not between wireless terminal and the PC also can realize file sharing from wireless terminal to PC by movable memory equipment, avoided file copy process loaded down with trivial details the shared procedure of existing file from wireless terminal to PC, for file-sharing brings great convenience, greatly improved the efficient of file-sharing.
Referring to Figure 12, the present invention also provides a kind of file is shared to the device of wireless terminal from PC, and this device comprises:
Detection module 1201 shares whether to remain shared file in the storage space for detection for the treatment of in the PC with shared storage space.
The device that the embodiment of the invention provides can be realized the file-sharing in the PC in corresponding wireless terminal.Need to prove that the PC described in the embodiment of the invention need to satisfy necessary condition, has namely opened up shared storage space, further, also needs the file of wireless terminal to be shared to is stored in this shared storage space.
Continue example shown in Figure 9, can set up the shared storage space that name is called IMS-xxxxx at PC.And under the IMS-xxxxx catalogue, set up output (outbox) record, be used for depositing the file of wireless terminal to be shared to.
Acquisition module 1202 is used for having describedly when treating shared file, obtains and describedly treats shared file and wait to share wireless terminal information.
Particularly, acquisition module 1202 comprises:
Detection sub-module is used for judging and treating whether shared file is state to be sent when the shared storage space of described PC remains shared file;
Obtain submodule, be used for obtaining treating shared file and waiting to share wireless terminal information of state to be sent.
After shared storage space that detection module 1201 detects PC has the file that need to share to wireless terminal, acquisition module 1202 also will further determine to treat the state of shared file, whether sent, for the shared file for the treatment of that did not also send, can from the shared storage space of PC, obtain by File Transfer Protocol, http protocol or SMB agreement.
Except treating shared file, also need definite this to treat which wireless terminal is shared file will be shared in.Namely need to obtain from PC and wait to share wireless terminal information.
In the embodiment of the invention, can be in PC indicate by the storing directory for the treatment of shared file and wait to share wireless terminal information, as referring to Figure 10, under the outbox catalogue, set up and be designated topic with wireless terminal and set up again a sub-directory, will treat that shared file leaves under this sub-directory.The wireless terminal sign can be wireless terminal number or title etc.As shown in figure 10, under the outbox catalogue, with the number of the wireless terminal md of running after fame, the file that needs are shared to certain wireless terminal is stored under the sub-directory of this wireless terminal number and gets final product.In this case, acquisition module directly just can obtain by the sub-directory title of outbox and wait to share wireless terminal information.
Modular converter 1203 is used for treating shared file and wait to share wireless terminal information to convert multimedia message to described;
The device that the embodiment of the invention provides need to will treat that shared file sends to wireless terminal with the form of multimedia message, in an embodiment of the present invention, can be at first by information recording/table record.ini the file of the shared storage space of PC be carried out detailed record, the form of record can be<the machine IP〉<sender number〉<need the filename that sends〉<the transmission state 〉, for example:
<192.168.1.2〉<12812345678<test.mp3〉<do not send
Obviously, in this example, this information recording/table also be by "<" and "〉" separator partners, this example represents that the IP address is the PC of 192.168.1.2, need to be with content to be sent the file of test.mp3 to send to number be 12812345678 wireless terminal, the state of this file to be sent is to send.
After detecting content among the record.ini, the detection sub-module of acquisition module 1202 determines that the shared file for the treatment of corresponding to this record also sends, and obtains submodule and obtains the test.mp3 of state to be sent and treat shared wireless terminal number 12812345678.
When dress die change piece was changed, with the receiving number of wireless terminal number as multimedia message, the text of multimedia message was the IP address of PC, treats that shared file sends as annex.
Sending module 1204 is used for waiting to share wireless terminal information and will describedly treating that shared multimedia message is sent to wireless terminal according to described.
The device that the embodiment of the invention provides, so that need not between wireless terminal and the PC also file to be shared to wireless terminal from PC by movable memory equipment, avoided existing file to be shared to file copy process loaded down with trivial details the wireless terminal process from PC, for file-sharing brings great convenience, greatly improved the efficient of file-sharing.
Referring to Figure 13, another embodiment of the present invention also provides a kind of file is shared to the method for wireless terminal from PC, and the method comprises:
S1301 detects treating in the PC with shared storage space and shares whether remain shared file in the storage space;
S1302 if having, then obtains and describedly treats shared file and wait to share wireless terminal information;
Particularly, obtain and describedly treat shared file and wait to share wireless terminal information to comprise:
When in the shared storage space of described PC, remaining shared file, judge and treat whether shared file is state to be sent;
Obtain treating shared file and waiting to share wireless terminal information of state to be sent.
S1303 treats shared file and waits to share wireless terminal information to convert to and wait to share multimedia message with described; S1304 waits to share wireless terminal information and will describedly treat that shared multimedia message is sent to wireless terminal according to described.
Figure 14 and Figure 15 are respectively and utilize embodiment of the invention institute supplying method to realize that file is shared to the realization surface chart of wireless terminal from PC.
As seen from Figure 14, have shared storage space among the PC, name is called IMS-192.168.1.2, and wherein, IMS represents to share storage space, and 192.168.1.2 is the ip address of current PC.The shared file for the treatment of of this PC leaves under the outbox catalogue, to wait to share the sub-directory below of wireless terminal sign name.What this treated the use of shared wireless terminal sign is mobile number, and number is 13587654321.It can also be seen that have label to be respectively 1.jpg from Figure 14, the picture of 2.jpg and 3.jpg is waited for and being shared.
Figure 15 is the realization interface after having shared.Figure 15 and Figure 14 are basic identical, just use special marking, as marking the file of having shared to colluding, such as the 1.jpg among Figure 15 and 2.jpg.
The method that the embodiment of the invention provides, so that need not also file to be shared to wireless terminal from PC by movable memory equipment between wireless terminal and the PC, avoided existing file to be shared to file copy process loaded down with trivial details the wireless terminal process from PC, for file-sharing brings great convenience, greatly improved the efficient of file-sharing.
For the convenience of describing, the embodiment of the invention is divided into various modules with function and describes respectively when tracing device.Certainly, when implementing the application, can in same or a plurality of softwares and/or hardware, realize the function of each module.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the application or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses is difference with other embodiment.Especially, for system embodiment because its basic simlarity is in embodiment of the method, thus describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
The application can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Although described the application by embodiment, those of ordinary skills know, the application has many distortion and variation and the spirit that do not break away from the application, wish that appended claim comprises these distortion and variation and the spirit that do not break away from the application.