Summary of the invention
Main purpose of the present invention is to provide a kind of cloud sharing files method and system, is intended to expand the TV Presentation Function, improves in family the shared convenience of file data such as picture.
In order to achieve the above object, the present invention proposes a kind of cloud sharing files method, comprising:
The high in the clouds storage server obtains the file data of user terminal uploads and the TV ID bound with the cloud number of checking accounts beyond the clouds of this user terminal; The file store path of password, TV ID and the described file data of the number of checking accounts of described cloud and correspondence thereof is sent to message box server;
Described message box server sends to corresponding TV by TV ID by the number of checking accounts of described cloud, the password of correspondence and the file store path of described file data;
Described TV is according to the file store path of the number of checking accounts of described cloud, password and described file data, and described file data is obtained in cloud the check accounts number corresponding from described high in the clouds storage server.
Preferably, the step that described high in the clouds storage server is sent to message box server by the file store path of password, TV ID and the described file data of the number of checking accounts of described cloud and correspondence thereof comprises:
Described high in the clouds storage server is connected with the TCP that described message box server is set up based on Sokcet;
The file store path of password, TV ID and the described file data of the cloud number of checking accounts and correspondence thereof is generated to the XML file;
Connect described XML file is sent to described message box server by FTP or HTTP based on described TCP.
Preferably, described message box server sends to the step of corresponding TV to comprise the file store path of the number of checking accounts of described cloud, password and described file data by TV ID:
Described message box server parses the file store path of password, TV ID and the described file data of the number of checking accounts of described cloud and correspondence thereof from described XML file;
By the number of checking accounts of described cloud and corresponding password thereof, and the file store path of described file data is packaged into the UDP message bag;
Mode by described UDP message bag by TV ID sends to TV corresponding to described TV ID.
Preferably, the method also comprises:
Whether normal by heartbeat inspection judgement link between the two between described message box server and TV.
Preferably, the method also comprises:
The described file data that described TV will obtain from described high in the clouds storage server shows; Perhaps, described television reminding user checks the described file data obtained from described high in the clouds storage server, and checks that according to the user instruction shows described file data.
Preferably, the method also comprises:
At least one other smart machines in the local area network (LAN) at described TV and this TV place are shared described file data; Specifically comprise:
At least one other smart machines in the local area network (LAN) at described TV and this TV place obtain IP and the port information of this smart machine alternately by the UDP message bag;
Set up the Socket communication connection according to described IP and port information and described smart machine;
Receive the request of data based on Http that described smart machine sends;
Password according to described request of data by the number of checking accounts of described cloud and correspondence thereof, and the file store path of described file data sends to described smart machine, password by described smart machine according to the described cloud number of checking accounts received and correspondence thereof, and the file store path of described file data obtains described file data and shows from described high in the clouds storage server.
Preferably, described high in the clouds storage server obtain user terminal uploads file data and with the step of the TV ID of the cloud number of checking accounts beyond the clouds of this user terminal binding before also comprise:
Described high in the clouds storage server receives user terminal requests, according to described user terminal requests, is cloud the check accounts number of user terminal registration for the store file data file.
Preferably, the method also comprises:
When the user does not need to share described file data by TV, described TV is removed the binding of high in the clouds account and TV ID.
The present invention also proposes a kind of cloud file sharing system, comprising: high in the clouds storage server, message box server and at least one TV;
Described high in the clouds storage server, for the file data that obtains user terminal uploads and the TV ID bound with the cloud number of checking accounts beyond the clouds of this user terminal; The file store path of password, TV ID and the described file data of the number of checking accounts of described cloud and correspondence thereof is sent to described message box server;
Described message box server, for sending to corresponding TV by TV ID by the number of checking accounts of described cloud, the password of correspondence and the file store path of described file data;
Described TV, for the file store path according to the number of checking accounts of described cloud, password and described file data, from described high in the clouds storage server, the corresponding cloud number of checking accounts is obtained described file data and is shown.
Preferably, described high in the clouds storage server, also be connected for the TCP set up based on Sokcet with described message box server; The file store path of password, TV ID and the described file data of the cloud number of checking accounts and correspondence thereof is generated to the XML file; Connect described XML file is sent to described message box server by FTP or HTTP based on described TCP.
Preferably, described message box server, also for parsing the file store path of the number of checking accounts of described cloud and corresponding password, TV ID and described file data thereof from described XML file; By the number of checking accounts of described cloud and corresponding password thereof, and the file store path of described file data is packaged into the UDP message bag; Mode by described UDP message bag by TV ID sends to TV corresponding to described TV ID.
Preferably, described message box server also for and TV between by heartbeat inspection judgement, whether link between the two normal.
Preferably, described TV, also show for the described file data that will obtain from described high in the clouds storage server; Perhaps, the prompting user checks the described file data obtained from described high in the clouds storage server, and checks that according to the user instruction shows described file data.
Preferably, described TV, also share described file data at least one other smart machines of the local area network (LAN) with this TV place; Obtain alternately IP and the port information of this smart machine by the UDP message bag specifically at least one other smart machines in the local area network (LAN) with this TV place; Set up the Socket communication connection according to described IP and port information and described smart machine; Receive the request of data based on Http that described smart machine sends; Password according to described request of data by the number of checking accounts of described cloud and correspondence thereof, and the file store path of described file data sends to described smart machine, password by described smart machine according to the described cloud number of checking accounts received and correspondence thereof, and the file store path of described file data obtains described file data and shows from described high in the clouds storage server.
Preferably, described high in the clouds storage server, also for receiving user terminal requests, be cloud the check accounts number of user terminal registration for the store file data file according to described user terminal requests.
Preferably, described TV, also for when the user does not need to share described file data by TV, remove the binding of high in the clouds account and TV ID.
A kind of cloud sharing files method and system that the present invention proposes, share the file data such as picture by the high in the clouds storage server and can the reminding user look facility be set at the TV end, make the kinsfolk check that other-end equipment is uploaded to the file data of high in the clouds storage server by TV, guarantee the convenience that real-time that file data is shared is shared with family, expanded the Presentation Function of TV simultaneously.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 is the related system architecture schematic diagram of the embodiment of the present invention, as shown in Figure 1, this system architecture comprises TV and is positioned at other equipment of same local area network (LAN) with TV, such as iphone, PC, iPad etc., in addition, also relate to high in the clouds storage server, message box server in this system architecture and to the user terminals such as mobile phone of the file datas such as high in the clouds storage server uploading pictures.
The main thought of embodiment of the present invention scheme is: at first the user terminal such as mobile phone need to be to network cloud number of checking accounts of high in the clouds storage server application for the storage networking file, and this network file is used for storing the file datas such as picture of user terminal uploads.Then by the user terminal television set of the cloud number of checking accounts binding of storage server beyond the clouds, when the file datas such as user terminal uploads picture arrive the high in the clouds storage server, the high in the clouds storage server sends to message box server by relevant informations such as these data, then message box server is given information pushing in the TV of binding, and then the TV end is opened related application and just can be obtained these information demonstration from the high in the clouds storage server.In addition, with TV, be positioned at other equipment of same local area network (LAN), can also realize by TV sharing of the file datas such as picture such as iphone, PC, iPad etc.
As shown in Figure 2, based on the said system framework, first embodiment of the invention proposes a kind of cloud sharing files method, comprising:
Step S101, the high in the clouds storage server obtains the file data of user terminal uploads and the TV ID bound with the cloud number of checking accounts beyond the clouds of this user terminal; The file store path of password, TV ID and the described file data of the number of checking accounts of described cloud and correspondence thereof is sent to message box server;
Wherein, the high in the clouds storage server can be TCloud cloud dish, Baidu's cloud dish, 360 cloud dishes etc.
User terminal can be mobile phone, panel computer etc., this user terminal is used for uploading the various file datas that the user wants to be uploaded to the high in the clouds storage server, but this document data picture, the photo of taking out of doors such as the user etc., or can also be editor's the data such as document.
For each user terminal, the high in the clouds storage server is the cloud number of checking accounts that the user terminal registration is useful on the store file data file according to user terminal requests.This cloud number of checking accounts can be selected according to the user, with a television set binding.
Each TV is set with a fixing DeviceID(device identification), the user as required, selects a TV, by this TV ID and user beyond the clouds the cloud number of checking accounts on storage server bound.
The real-time upload file data of user or other graphic file data during to user's the cloud number of checking accounts, are delivered to the high in the clouds storage server to the TV id information of user's binding, so that the back PUSH message is to corresponding TV end simultaneously.
The high in the clouds storage server get user terminal uploads file data and with the TV ID of the cloud number of checking accounts beyond the clouds of this user terminal binding after, the file store path of the number of checking accounts of described cloud and corresponding password, TV ID and described file data thereof is sent to message box server.
Its concrete communication process is: the high in the clouds storage server is by information such as the file path of high in the clouds account, password, file data and TV ID, be packaged into together XML(eXtensible Markup Language, extend markup language) packet, then by the FTP(file transfer protocol (FTP)) or HTTP(Transfer Protocol, HTML (Hypertext Markup Language)) protocol mode, by the packing the XML Packet Generation to message box server.
Concerning the storage server of high in the clouds, now message box server is equivalent to a client, the high in the clouds storage server sends data to message box server, no matter be to adopt FTP or http protocol, at first communicating pair needs a common port numbers and IP address separately, then set up the TCP(Transmission Control Protocol based on Sokcet, transmission control protocol) connect, with the data of guaranteeing transmission, do not lose.
Step S102, described message box server sends to corresponding TV by TV ID by the number of checking accounts of described cloud, the password of correspondence and the file store path of described file data;
Message box server receives the XML file that the high in the clouds storage server sends over, and it is parsed, after obtaining corresponding data, can notify corresponding TV according to TV DeviceID, wherein the content of notice is message box server parses file chaining and the account in high in the clouds and the UDP message bag that password is packaged into together out.The information such as store path of the corresponding cloud of the acquisition of information number of checking accounts that TV sends according to message box server, password, upload file, and provide prompting, illustrate that television reception, to from the long-range file sended over or other information, shows message details simultaneously.
Interactive communication detailed process between message box server and TV is:
Message box server is equivalent to a webserver, and the TV end is equivalent to client, and client is wanted the information of monitoring information box server, needs by message box server, regularly sending heartbeat packet.Whether normally heartbeat packet described here is used for judging the other side's (equipment, process or other network element) operation, adopts the packets of timed sending rule, if at the appointed time in section, do not receive that the other side responds, judges off-line of the other side.In the time of TV end application operation, whether meeting timed sending online message is to message box server, normal by heartbeat inspection judgement link between the two thus.
Step S103, described TV is according to the file store path of the number of checking accounts of described cloud, password and described file data, and described file data is obtained in cloud the check accounts number corresponding from described high in the clouds storage server.
The TV end according to the information that obtains from message box server directly from cloud dish server the corresponding cloud number of checking accounts obtain file data.
Follow-up, TV can directly show the file data obtained from described high in the clouds storage server; In addition, TV can also point out the user to check the file data obtained from the high in the clouds storage server, and checks that according to the user instruction shows described file data.
The present embodiment passes through such scheme, specifically by the high in the clouds storage server, share the file data such as picture and can the reminding user look facility be set at the TV end, make the kinsfolk check that other-end equipment is uploaded to the various file datas of high in the clouds storage server by TV, can facilitate in time thus sharing of the file data such as photo in family, not only meet consumers' demand, expanded the Presentation Function of TV simultaneously.
As shown in Figure 3, second embodiment of the invention proposes a kind of cloud sharing files method, on the basis of above-mentioned the first embodiment, after above-mentioned steps S103, also comprises:
Step S104, at least one other smart machines in the local area network (LAN) at described TV and this TV place are shared described file data;
The difference of the present embodiment and above-mentioned the first embodiment is, the present embodiment can also be shared the file data obtained from the high in the clouds storage server between other smart machines in the local area network (LAN) at TV and this TV place.
At first, other smart machines in the local area network (LAN) at TV and this TV place obtain IP and the port information of this smart machine alternately by the UDP message bag; Set up the Socket communication connection according to IP and port information and described smart machine.
Particularly, in the local area network (LAN) at TV place, the connection based on UDP and discovery agreement by employing between lan device, whenever there being smart machine to add local area network (LAN), smart machine all can send and reach the standard grade, television reception is after the reaching the standard grade of smart machine, can be from the UDP message bag of its reception the IP of fetch equipment and the information of port etc., the TV end also can send one to smart machine and reply the confirmation packet simultaneously, and corresponding smart machine also can be by replying the packet of confirmation, obtain IP address and other relevant informations of corresponding TV, TV can be set up the Socket communication connection with corresponding smart machine by this IP.
Then, other smart machines can send the request of data based on the Http agreement to the TV end, the TV end can send to other smart machines by the cloud number of checking accounts, password and file url after receiving request, and smart machine can directly obtain upload file and show from the high in the clouds storage server after receiving.
In addition, when the user does not need to share described file data by TV, TV can be removed the binding of high in the clouds account and TV ID.
Compared to existing technology, the present embodiment passes through such scheme, in conjunction with TV, mutual characteristics between high in the clouds storage server and message box server, by the number of checking accounts of user's cloud and TV ID binding, high in the clouds storage server and message box server real time communication, and message box server also maintains a heartbeat packet with the TV end and communicates by letter, the high in the clouds storage server initiatively sends to message box server by related news after having file data to upgrade, message box server is in real time to the TV pushed information, realize sharing of the file data such as family's picture at TV end real-time reminding, thereby guaranteed the convenience that real-time that file data is shared is shared with family.
In addition, other smart machines in family lan can get the cloud url of family information and file data etc. that checks accounts by TV by adding local area network (LAN) to connect, and then can get the file data of sharing.Further guarantee the convenience that real-time that file data is shared is shared with family, met user's request.
As shown in Figure 4, preferred embodiment of the present invention proposes a kind of cloud file sharing system, the system architecture of this system based on shown in Fig. 1 realizes, specifically comprises: high in the clouds storage server 201, message box server 202 and TV of at least one TV 203(the present embodiment illustrate); Wherein:
High in the clouds storage server 201 also with 204 communication connections of outside user terminal, for obtain file data that user terminal 204 uploads and with the TV ID of this user terminal 204 cloud number of checking accounts binding beyond the clouds; The file store path of password, TV ID and the described file data of the number of checking accounts of described cloud and correspondence thereof is sent to described message box server 202;
Described message box server 202, for sending to corresponding TV 203 by TV ID by the number of checking accounts of described cloud, the password of correspondence and the file store path of described file data;
Described TV 203, for the file store path according to the number of checking accounts of described cloud, password and described file data, obtain described file data and show from the cloud number of checking accounts of described high in the clouds storage server 201 correspondences.
Particularly, high in the clouds storage server 201 can be TCloud cloud dish, Baidu's cloud dish, 360 cloud dishes etc.
User terminal 204 can be mobile phone, panel computer etc., this user terminal 204 is used for uploading the various file datas that the user wants to be uploaded to high in the clouds storage server 201, but this document data picture, the photo of taking out of doors such as the user etc., or can also be editor's the data such as document.
For each user terminal 204, high in the clouds storage server 201 registers for user terminal 204 the cloud number of checking accounts that is useful on the store file data file according to user terminal 204 requests.This cloud number of checking accounts can be selected according to the user, with TV 203 machine bindings.
Each TV 203 is set with a fixing DeviceID, and the user as required, selects a TV 203, by this TV ID and user beyond the clouds the cloud number of checking accounts on storage server 201 bound.
The real-time upload file data of user or other graphic file data during to user's the cloud number of checking accounts, are delivered to high in the clouds storage server 201 to the TV id information of user's binding, so that the back PUSH message is to corresponding TV 203 ends simultaneously.
High in the clouds storage server 201 get file data that user terminal 204 uploads and with the TV ID of this user terminal 204 cloud number of checking accounts binding beyond the clouds after, the file store path of the number of checking accounts of described cloud and corresponding password, TV ID and described file data thereof is sent to message box server 202.
Its concrete communication process is: high in the clouds storage server 201 is by information such as the file path of high in the clouds account, password, file data and TV ID, be packaged into together the packet of XML, then by the FTP(file transfer protocol (FTP)) or http protocol mode, by the XML Packet Generation of packing to message box server 202.
Concerning high in the clouds storage server 201, now message box server is equivalent to a client, high in the clouds storage server 201 sends data to message box server 202, no matter be to adopt FTP or http protocol, at first communicating pair needs a common port numbers and IP address separately, then the TCP set up based on Sokcet connects, and with the data of guaranteeing transmission, does not lose.
Message box server 202 receives the XML file that high in the clouds storage server 201 sends over, and it is parsed, after obtaining corresponding data, can notify corresponding TV 203 according to TV 203DeviceID, wherein the content of notice is file chaining and the account in high in the clouds and the UDP message bag that password is packaged into together that message box server 202 parses.The information such as store path of the corresponding cloud of the acquisition of information number of checking accounts that TV 203 sends according to message box server 202, password, upload file, and provide prompting, illustrate that TV 203 receives from the long-range file sended over or other information, shows message details simultaneously.
Interactive communication detailed process between message box server 202 and TV 203 is:
Message box server 202 is equivalent to a webserver, and TV 203 ends are equivalent to client, and client is wanted the information of monitoring information box server 202, needs by message box server 202, regularly sending heartbeat packet.Whether normally heartbeat packet described here is used for judging the other side's (equipment, process or other network element) operation, adopts the packets of timed sending rule, if at the appointed time in section, do not receive that the other side responds, judges off-line of the other side.In the time of TV 203 end application operation, whether meeting timed sending online message is to message box server 202, thus, normal by heartbeat inspection judgement link between the two.
TV 203 ends according to the information that obtains from message box server 202 directly from cloud dish server the corresponding cloud number of checking accounts obtain file data.
Follow-up, TV 203 can directly show the file data obtained from described high in the clouds storage server 201; In addition, TV 203 can also point out the user to check the file data obtained from high in the clouds storage server 201, and checks that according to the user instruction shows described file data.
The present embodiment passes through such scheme, specifically by high in the clouds storage server 201, share the file data such as picture and can the reminding user look facility be set at TV 203 ends, make the kinsfolk check that other-end equipment is uploaded to the various file datas of high in the clouds storage server 201 by TV 203, can facilitate in time thus sharing of the file data such as photo in family, not only meet consumers' demand, expanded the Presentation Function of TV 203 simultaneously.
Further, the present embodiment can also be shared the file data obtained from high in the clouds storage server 201 between other smart machines in the local area network (LAN) at TV 203 and these TV 203 places.
At first, other smart machines in the local area network (LAN) at TV 203 and these TV 203 places obtain IP and the port information of this smart machine alternately by the UDP message bag; Set up the Socket communication connection according to IP and port information and described smart machine.
Particularly, in the local area network (LAN) at TV 203 places, the connection based on UDP and discovery agreement by employing between lan device, whenever there being smart machine to add local area network (LAN), smart machine all can send and reach the standard grade, after TV 203 receives reaching the standard grade of smart machine, can be from the UDP message bag of its reception the IP of fetch equipment and the information of port etc., TV 203 ends also can send one to smart machine and reply the confirmation packet simultaneously, and corresponding smart machine also can be by replying the packet of confirmation, obtain IP address and other relevant informations of corresponding TV 203, TV 203 can be set up the Socket communication connection with corresponding smart machine by this IP.
Then, other smart machines can send the request of data based on the Http agreement to TV 203 ends, TV 203 ends can send to other smart machines by the cloud number of checking accounts, password and file url after receiving request, and smart machine can directly obtain upload file and show from high in the clouds storage server 201 after receiving.
In addition, when the user does not need to share described file data by TV 203, TV 203 can be removed the binding of high in the clouds account and TV ID.
Compared to existing technology, the present embodiment passes through such scheme, in conjunction with TV 203, mutual characteristics between high in the clouds storage server 201 and message box server 202, by the number of checking accounts of user's cloud and TV ID binding, high in the clouds storage server 201 and message box server 202 real time communication, and message box server 202 also maintains a heartbeat packet with TV 203 ends and communicates by letter, high in the clouds storage server 201 initiatively sends to message box server 202 by related news after having file data to upgrade, message box server 202 is in real time to TV 203 pushed information, realize sharing of the file data such as family's picture at TV 203 end real-time remindings, thereby guaranteed the convenience that real-time that file data is shared is shared with family.
In addition, other smart machines in family lan can get cloud check accounts family information and picture url etc. by TV 203 by adding local area network (LAN) to connect, and then can get the file datas such as picture of sharing.Further guarantee the convenience that real-time that file data is shared is shared with family, met user's request.
Above are only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical field, all in like manner be included in scope of patent protection of the present invention.