CN111901648A - Data sharing method and related device - Google Patents

Data sharing method and related device Download PDF

Info

Publication number
CN111901648A
CN111901648A CN202010752362.1A CN202010752362A CN111901648A CN 111901648 A CN111901648 A CN 111901648A CN 202010752362 A CN202010752362 A CN 202010752362A CN 111901648 A CN111901648 A CN 111901648A
Authority
CN
China
Prior art keywords
file
target
sharing
area network
local area
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.)
Granted
Application number
CN202010752362.1A
Other languages
Chinese (zh)
Other versions
CN111901648B (en
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.)
Shenzhen Kangguan Technology Co ltd
Original Assignee
Shenzhen Kangguan 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 Shenzhen Kangguan Technology Co ltd filed Critical Shenzhen Kangguan Technology Co ltd
Priority to CN202010752362.1A priority Critical patent/CN111901648B/en
Publication of CN111901648A publication Critical patent/CN111901648A/en
Application granted granted Critical
Publication of CN111901648B publication Critical patent/CN111901648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a data sharing method.A smart television respectively transmits data of different file types through a UPnP interface and an SMB interface, ensures that the smart television can be connected with sharing equipment of more equipment types and can transmit data of more file types, thereby greatly increasing the diversity of the connecting equipment of the smart television and the diversity of transmitted files. And data sharing is realized through the two interfaces, so that the smart television can be simultaneously connected with a plurality of sharing devices, and richer contents can be displayed by the smart television. The invention also provides a data sharing device, data sharing equipment and a computer readable storage medium, and the beneficial effects are also achieved.

Description

Data sharing method and related device
Technical Field
The present invention relates to the field of smart tv technologies, and in particular, to a data sharing method, a data sharing apparatus, a data sharing device, and a computer-readable storage medium.
Background
With the gradual increase of the popularity of the smart television and the high coverage rate of the home broadband network, at the present stage, the smart television supports mutual communication with other sharing devices, such as mobile sharing devices, in the same local area network, wherein the most important form is screen projection by a mobile phone. The mobile phone screen projection function can transmit the image displayed by the mobile sharing equipment to the smart television for display through the local area network. However, in the prior art, the type of the device connected with the smart television is single, and the type of the sharable file is also single, which is inconvenient for the user to use. Therefore, how to provide a data sharing method supporting sharing of more device types and more file types is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a data sharing method which can support the sharing of more equipment types and more file type data; another object of the present invention is to provide a data sharing apparatus, a data sharing device, and a computer-readable storage medium, which can support sharing of more device types and more file type data.
In order to solve the above technical problem, the present invention provides a data sharing method, applied to a smart tv, including:
determining the file type of a target shared file; the file types comprise multimedia files and general files, and the smart television and the sharing equipment are positioned in the same local area network;
when the target sharing file is the multimedia file, establishing communication connection with a target sharing device in the local area network through a UPnP interface;
when the target shared file is the common file, establishing communication connection with target shared equipment in the local area network through an SMB interface;
and after the communication connection with the target sharing equipment is established, transmitting the target sharing file through the local area network.
Optionally, when the target shared file is the multimedia file, establishing a communication connection with a target sharing device in the local area network through a UPnP interface includes:
when the target shared file is the multimedia file, calling a UPnP interface to acquire an IP address in a local area network;
inquiring a description file comprising the IP address of the target sharing equipment from a router through IP multicast communication based on the IP address;
and establishing communication connection with the target sharing equipment according to the description file.
Optionally, the description file further includes a device type of the target sharing device and a service type of the target sharing device.
Optionally, when the target shared file is the general file, establishing a communication connection with the target shared device in the local area network through an SMB interface includes:
when the target shared file is the general file, acquiring login information of the target shared device;
and calling an SMB interface, and establishing communication connection with the target sharing equipment through the local area network according to the login information.
Optionally, the login information includes an IP address, a user name, and a password of the target sharing device.
Optionally, the SMB interface is an SMB2 interface.
Optionally, after establishing a communication connection with the sharing device, the transmitting the target shared file through the local area network includes:
when the target shared file is a file stored in the smart television, the target shared file is sent to the sharing equipment through an interface called when communication connection is established with the sharing equipment;
and when the target shared file is a file stored by the sharing equipment, reading the target shared file through an interface called when the communication connection is established with the sharing equipment.
The invention also provides a data sharing device, which is applied to the smart television and comprises:
a determination module: the file type of the target shared file is determined; the file types comprise multimedia files and general files, and the smart television and the sharing equipment are positioned in the same local area network;
a UPnP module: the target sharing device is used for establishing communication connection with the target sharing device in the local area network through a UPnP interface when the target sharing file is the multimedia file;
an SMB module: when the target shared file is the general file, establishing communication connection with a target shared device in the local area network through an SMB interface;
a transmission module: the target sharing device is used for transmitting the target sharing file through the local area network after establishing communication connection with the target sharing device.
The present invention also provides a data sharing device, the device comprising:
a memory: for storing a computer program;
a processor: for implementing the steps of the data sharing method as described in any one of the above when the computer program is executed.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the data sharing method as claimed in any one of the preceding claims.
The data sharing method provided by the invention is applied to the smart television and comprises the steps of determining the file type of a target shared file; the file types comprise multimedia files and general files, and the smart television and the sharing equipment are in the same local area network; when the target sharing file is a multimedia file, establishing communication connection with the target sharing equipment in the local area network through the UPnP interface; when the target shared file is a common file, establishing communication connection with the target shared device in the local area network through the SMB interface; and after the communication connection is established with the target sharing device, transmitting the target sharing file through the local area network.
The intelligent television respectively transmits data of different file types through the UPnP interface and the SMB interface, the intelligent television can be connected with sharing equipment of more equipment types, and simultaneously can transmit data of more file types, so that the diversity of the intelligent television connecting equipment and the diversity of transmission files are greatly increased. And data sharing is realized through the two interfaces, so that the smart television can be simultaneously connected with a plurality of sharing devices, and richer contents can be displayed by the smart television.
The invention also provides a data sharing device, a data sharing device and a computer readable storage medium, which also have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, 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 a flowchart of a data sharing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a specific data sharing method provided in an embodiment of the present invention;
fig. 3 is a block diagram of a data sharing apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a data sharing device according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a data sharing method. In the prior art, the smart television usually realizes data sharing with other sharing devices in the local area network only through a preset protocol. At this time, the type of the device connected with the smart television is single, the type of the sharable file is single, and the smart television is inconvenient for the user to use.
The data sharing method provided by the invention is applied to the smart television and comprises the steps of determining the file type of a target shared file; the file types comprise multimedia files and general files, and the smart television and the sharing equipment are in the same local area network; when the target sharing file is a multimedia file, establishing communication connection with the target sharing equipment in the local area network through the UPnP interface; when the target shared file is a common file, establishing communication connection with the target shared device in the local area network through the SMB interface; and after the communication connection is established with the target sharing device, transmitting the target sharing file through the local area network.
The intelligent television respectively transmits data of different file types through the UPnP interface and the SMB interface, the intelligent television can be connected with sharing equipment of more equipment types, and simultaneously can transmit data of more file types, so that the diversity of the intelligent television connecting equipment and the diversity of transmission files are greatly increased. And data sharing is realized through the two interfaces, so that the smart television can be simultaneously connected with a plurality of sharing devices, and richer contents can be displayed by the smart television.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.
Referring to fig. 1, fig. 1 is a flowchart illustrating a data sharing method according to an embodiment of the present invention.
Referring to fig. 1, in the embodiment of the present invention, a data sharing method is applied to a smart television, and includes:
s101: and determining the file type of the target shared file.
In the embodiment of the invention, the file types comprise multimedia files and general files, and the smart television and the sharing device are in the same local area network. The general files generally include PDF files, Excel files, etc., and the multimedia files generally include MP4 files, JPG files, etc. The smart television and the sharing device need to be in the same local area network, so that data sharing is achieved through a router of the local area network.
In this step, the file type of the target shared file needs to be determined first. The file type of the target file may be specifically input by a user manually, may also be selected by the user in the smart television, and may also be any type in which the sharing device sends the file type of the target shared file to the smart television in advance, which is not specifically limited in the embodiment of the present invention.
S102: and when the target sharing file is the multimedia file, establishing communication connection with the target sharing equipment in the local area network through the UPnP interface.
The UPnP interface is an interface established based on the UPnP (Universal Plug and Play) protocol, which aims to enable various devices in home networks (data sharing, communication and entertainment) and corporate networks to seamlessly connect with each other and to simplify the implementation of the relevant networks. The UPnP architecture allows point-to-point connections between PCs, internetworking and wireless devices. It is a distributed, open architecture based on TCP/IP, UDP and HTTP.
In this step, when the target shared file is a multimedia file, a UPnP interface is specifically invoked, and a communication connection is established between the smart television and the target shared device through a UPnP protocol. The target sharing device is a sharing device which is used for transmitting a target shared file with the intelligent television in a plurality of sharing devices in the same local area network. Of course, there may be only one sharing device in the same local area network, and the sharing device is the target sharing device.
S103: and when the target shared file is a common file, establishing communication connection with the target shared device in the local area network through the SMB interface.
The SMB interface is an interface established based on an SMB (server Message block) protocol, which is a local area network file sharing transmission protocol and is often used as a platform for research on secure transmission of shared files. The corresponding SMB interface can be used for Web connection and information communication between the client and the server.
In this step, when the target shared file is a general file, an SMB interface is specifically called, and a communication connection is established between the smart television and the target shared device through an SMB protocol. Specifically, in the embodiment of the present invention, the SMB interface is an SMB2 interface. The SMB2 interface compares in traditional SMB interface, calls SMB2 interface based on the interface that the SMB2 agreement established promptly, not only is compatible more equipment through the SMB2 agreement, has still improved the communication quality and the stability of data transmission when sharing data to the security has been promoted.
S104: and after the communication connection is established with the target sharing device, transmitting the target sharing file through the local area network.
After the communication connection between the smart television and the target sharing device is established, the target sharing file is transmitted through the local area network based on the connection channel, so that the target sharing file is shared between the smart television and the target sharing device.
The data sharing method provided by the embodiment of the invention is applied to the smart television and comprises the steps of determining the file type of a target shared file; the file types comprise multimedia files and general files, and the smart television and the sharing equipment are in the same local area network; when the target sharing file is a multimedia file, establishing communication connection with the target sharing equipment in the local area network through the UPnP interface; when the target shared file is a common file, establishing communication connection with the target shared device in the local area network through the SMB interface; and after the communication connection is established with the target sharing device, transmitting the target sharing file through the local area network.
The intelligent television respectively transmits data of different file types through the UPnP interface and the SMB interface, the intelligent television can be connected with sharing equipment of more equipment types, and simultaneously can transmit data of more file types, so that the diversity of the intelligent television connecting equipment and the diversity of transmission files are greatly increased. And data sharing is realized through the two interfaces, so that the smart television can be simultaneously connected with a plurality of sharing devices, and richer contents can be displayed by the smart television.
The details of a data sharing method provided by the present invention will be described in detail in the following embodiments of the present invention.
Referring to fig. 2, fig. 2 is a flowchart illustrating a specific data sharing method according to an embodiment of the present invention.
Referring to fig. 2, in an embodiment of the present invention, a data sharing method includes:
s201: and determining the file type of the target shared file.
This step is substantially the same as S101 in the above embodiment of the present invention, and details have been described in the above embodiment of the present invention, and are not described herein again.
S202: and when the target shared file is a multimedia file, calling the UPnP interface to acquire the IP address in the local area network.
In this step, a UPnP interface is specifically called, and an IP address in the local area network is obtained through a DHCP (dynamic host configuration protocol) protocol or Auto-IP of the router, so that the target sharing device is queried in the subsequent step.
S203: based on the IP address, the description file comprising the IP address of the target sharing device is inquired out from the router through IP multicast communication.
In this step, the target sharing device is discovered in an IP multicast manner. Specifically, in this step, a description file including the IP address of the target sharing device is queried from the router in an IP multicast manner, where the description file generally includes, in addition to the IP address of the target sharing device, a device type of the target sharing device and a service type of the target sharing device. In the subsequent step, the smart television can lock the target sharing device according to the description file.
S204: and establishing communication connection with the target sharing equipment according to the description file.
S205: and when the target shared file is a common file, acquiring the login information of the target shared device.
In this step, the login information of the target sharing device is obtained, so that the target sharing device is queried according to the login information in the subsequent steps. Specifically, the login information generally includes an IP address, a user name, and a password of the target sharing device. Specifically, the smart television can determine whether the login information is correct login information according to the user name and the password in the login information. If yes, communication connection can be established with the target sharing device in the local area network according to the IP address in the login information.
S206: and calling the SMB interface, and establishing communication connection with the target sharing equipment through the local area network according to the login information.
In this step, a communication connection is usually established with the target sharing device based on the IP address in the login information, and the SMB packet is transmitted to the target sharing device when the communication connection is established. And after receiving the SMB data packet, the target sharing equipment carries out unpacking processing, and then queries the main configuration file SMB.
S207: and when the target shared file is a file stored in the smart television, sending the target shared file to the sharing equipment through an interface called when the communication connection is established with the sharing equipment.
In this step, the smart television can share the file stored in the smart television to the target sharing device through the communication connection established through the SMB interface or the UPnP interface.
S208: and when the target shared file is a file stored by the sharing equipment, reading the target shared file through an interface called when the communication connection is established with the sharing equipment.
In this step, the smart television may access the target shared file in the target shared device through the communication connection established through the SMB interface or the UPnP interface, and perform an operation on the target shared file through the SMB interface or the UPnP interface.
According to the data sharing method provided by the embodiment of the invention, the intelligent television respectively transmits data of different file types through the UPnP interface and the SMB interface, so that the intelligent television can be connected with sharing equipment of more equipment types, and simultaneously can transmit data of more file types, and thus the diversity of the intelligent television connecting equipment and the diversity of transmission files are greatly increased. And data sharing is realized through the two interfaces, so that the smart television can be simultaneously connected with a plurality of sharing devices, and richer contents can be displayed by the smart television.
In the following, a data sharing apparatus provided in an embodiment of the present invention is introduced, and the data sharing apparatus described below and the data sharing method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of a data sharing device according to an embodiment of the present invention.
Referring to fig. 3, in an embodiment of the present invention, a data sharing apparatus applied to a smart television may include:
the determination module 100: the file type of the target shared file is determined; the file types comprise multimedia files and general files, and the smart television and the sharing device are located in the same local area network.
The UPnP module 200: and when the target sharing file is the multimedia file, establishing communication connection with the target sharing device in the local area network through a UPnP interface.
SMB module 300: and when the target shared file is the general file, establishing communication connection with the target shared device in the local area network through an SMB interface.
The transmission module 400: the target sharing device is used for transmitting the target sharing file through the local area network after establishing communication connection with the target sharing device.
Preferably, in the embodiment of the present invention, the UPnP module 200 includes:
a first acquisition unit: and when the target shared file is the multimedia file, calling a UPnP interface to acquire an IP address in a local area network.
A multicast unit: the router is used for inquiring the description file comprising the IP address of the target sharing device from the router through IP multicast communication based on the IP address.
A first connection unit: and establishing communication connection with the target sharing equipment according to the description file.
Preferably, in the embodiment of the present invention, the description file further includes a device type of the target sharing device and a service type of the target sharing device.
Preferably, in an embodiment of the present invention, the SMB module 300 may include:
a second acquisition unit: and the method is used for acquiring the login information of the target sharing equipment when the target sharing file is the general file.
A second connection unit: and the SMB interface is used for calling the SMB interface and establishing communication connection with the target sharing equipment through the local area network according to the login information.
Preferably, in this embodiment of the present invention, the login information includes an IP address, a user name, and a password of the target sharing device.
Preferably, in the embodiment of the present invention, the SMB interface is an SMB2 interface.
Preferably, in the embodiment of the present invention, the transmission module 400 may include:
a transmission unit: the target sharing file is sent to the sharing equipment through an interface called when communication connection is established with the sharing equipment when the target sharing file is a file stored in the smart television;
a reading unit: and when the target shared file is a file stored in the sharing equipment, reading the target shared file through an interface called when the communication connection is established with the sharing equipment.
The data sharing apparatus of this embodiment is configured to implement the foregoing data sharing method, and therefore a specific implementation of the data sharing apparatus may be found in the foregoing embodiments of the data sharing method, for example, the determining module 100, the UPnP module 200, the SMB module 300, and the transmission module 400 are respectively configured to implement steps S101 to S104 in the foregoing data sharing method, so that the specific implementation may refer to descriptions of corresponding embodiments of each part, and is not described herein again.
In the following, a data sharing device provided by an embodiment of the present invention is introduced, and the data sharing device, the data sharing method, and the data sharing apparatus described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a block diagram of a data sharing device according to an embodiment of the present invention.
Referring to fig. 4, the data sharing apparatus is applied to a smart tv and may include a processor 11 and a memory 12.
The memory 12 is used for storing a computer program; the processor 11 is configured to implement the data sharing method described in the above embodiment of the invention when executing the computer program.
The processor 11 in the data sharing apparatus of this embodiment is used to install the data sharing device described in the above embodiment of the invention, and meanwhile, the processor 11 and the memory 12 are combined to implement the data sharing method described in any embodiment of the invention. Therefore, the specific implementation manner of the data sharing device can be seen in the foregoing embodiments of the data sharing method, and the specific implementation manner of the data sharing device may refer to the description of each corresponding embodiment, which is not described herein again.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a data sharing method as described in any of the above embodiments of the invention. The rest can be referred to the prior art and will not be described in an expanded manner.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The data sharing method, the data sharing device and the computer readable storage medium provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A data sharing method is applied to an intelligent television and comprises the following steps:
determining the file type of a target shared file; the file types comprise multimedia files and general files, and the smart television and the sharing equipment are positioned in the same local area network;
when the target sharing file is the multimedia file, establishing communication connection with a target sharing device in the local area network through a UPnP interface;
when the target shared file is the common file, establishing communication connection with target shared equipment in the local area network through an SMB interface;
and after the communication connection with the target sharing equipment is established, transmitting the target sharing file through the local area network.
2. The method according to claim 1, wherein when the target shared file is the multimedia file, establishing a communication connection with a target sharing device in the local area network through a UPnP interface comprises:
when the target shared file is the multimedia file, calling a UPnP interface to acquire an IP address in a local area network;
inquiring a description file comprising the IP address of the target sharing equipment from a router through IP multicast communication based on the IP address;
and establishing communication connection with the target sharing equipment according to the description file.
3. The method of claim 2, wherein the description file further comprises a device type of the target sharing device and a service type of the target sharing device.
4. The method according to claim 1, wherein when the target shared file is the general file, establishing a communication connection with a target shared device in the local area network through an SMB interface comprises:
when the target shared file is the general file, acquiring login information of the target shared device;
and calling an SMB interface, and establishing communication connection with the target sharing equipment through the local area network according to the login information.
5. The method of claim 4, wherein the login information comprises an IP address, a username, and a password of the target sharing device.
6. The method of claim 5, wherein the SMB interface is an SMB2 interface.
7. The method of claim 1, wherein the transmitting the target shared file over the local area network after establishing the communication connection with the sharing device comprises:
when the target shared file is a file stored in the smart television, the target shared file is sent to the sharing equipment through an interface called when communication connection is established with the sharing equipment;
and when the target shared file is a file stored by the sharing equipment, reading the target shared file through an interface called when the communication connection is established with the sharing equipment.
8. A data sharing device is applied to a smart television and comprises:
a determination module: the file type of the target shared file is determined; the file types comprise multimedia files and general files, and the smart television and the sharing equipment are positioned in the same local area network;
a UPnP module: the target sharing device is used for establishing communication connection with the target sharing device in the local area network through a UPnP interface when the target sharing file is the multimedia file;
an SMB module: when the target shared file is the general file, establishing communication connection with a target shared device in the local area network through an SMB interface;
a transmission module: the target sharing device is used for transmitting the target sharing file through the local area network after establishing communication connection with the target sharing device.
9. A data sharing device, the device comprising:
a memory: for storing a computer program;
a processor: for implementing the steps of the data sharing method according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the data sharing method according to any one of claims 1 to 7.
CN202010752362.1A 2020-07-30 2020-07-30 Data sharing method and related device Active CN111901648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010752362.1A CN111901648B (en) 2020-07-30 2020-07-30 Data sharing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010752362.1A CN111901648B (en) 2020-07-30 2020-07-30 Data sharing method and related device

Publications (2)

Publication Number Publication Date
CN111901648A true CN111901648A (en) 2020-11-06
CN111901648B CN111901648B (en) 2022-04-22

Family

ID=73182602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010752362.1A Active CN111901648B (en) 2020-07-30 2020-07-30 Data sharing method and related device

Country Status (1)

Country Link
CN (1) CN111901648B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237531A (en) * 2021-09-26 2022-03-25 浪潮软件股份有限公司 Remote screen projection control method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457769A (en) * 2010-10-18 2012-05-16 康佳集团股份有限公司 Television (TV) device and method for realizing sharing of file resources thereof
CN102572009A (en) * 2011-12-09 2012-07-11 华为终端有限公司 Method, gateway and system of sharing media files
US20120271889A1 (en) * 2008-08-12 2012-10-25 Samsung Electronics Co., Ltd. Apparatus and method for sharing a bookmark with other users in a home network
CN103686436A (en) * 2013-12-27 2014-03-26 乐视致新电子科技(天津)有限公司 Television and method and device for acquiring shared file in DLNA (Digital Living Network Alliance) equipment
CN104902309A (en) * 2015-05-26 2015-09-09 努比亚技术有限公司 Multimedia file sharing method and device for mobile terminal
CN105592352A (en) * 2015-12-22 2016-05-18 Tcl集团股份有限公司 File-sharing method and system based on smart TV
CN105959753A (en) * 2016-05-16 2016-09-21 微鲸科技有限公司 Method and system of realizing intelligent television screen sharing
CN106375479A (en) * 2016-10-26 2017-02-01 北京小米移动软件有限公司 Data sharing method and device
US20170264974A1 (en) * 2008-11-26 2017-09-14 David Harrison Automatic communications between networked devices such as televisions and mobile devices

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120271889A1 (en) * 2008-08-12 2012-10-25 Samsung Electronics Co., Ltd. Apparatus and method for sharing a bookmark with other users in a home network
US20170264974A1 (en) * 2008-11-26 2017-09-14 David Harrison Automatic communications between networked devices such as televisions and mobile devices
CN102457769A (en) * 2010-10-18 2012-05-16 康佳集团股份有限公司 Television (TV) device and method for realizing sharing of file resources thereof
CN102572009A (en) * 2011-12-09 2012-07-11 华为终端有限公司 Method, gateway and system of sharing media files
CN103686436A (en) * 2013-12-27 2014-03-26 乐视致新电子科技(天津)有限公司 Television and method and device for acquiring shared file in DLNA (Digital Living Network Alliance) equipment
CN104902309A (en) * 2015-05-26 2015-09-09 努比亚技术有限公司 Multimedia file sharing method and device for mobile terminal
CN105592352A (en) * 2015-12-22 2016-05-18 Tcl集团股份有限公司 File-sharing method and system based on smart TV
CN105959753A (en) * 2016-05-16 2016-09-21 微鲸科技有限公司 Method and system of realizing intelligent television screen sharing
CN106375479A (en) * 2016-10-26 2017-02-01 北京小米移动软件有限公司 Data sharing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237531A (en) * 2021-09-26 2022-03-25 浪潮软件股份有限公司 Remote screen projection control method and system

Also Published As

Publication number Publication date
CN111901648B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
JP4260116B2 (en) Secure virtual private network
US12015661B2 (en) Domain name services servers management to share data efficiently
CN111405042B (en) Electronic device discovery method and device, storage medium and electronic device
US9781579B2 (en) Method and device for realizing terminal WIFI talkback
US8553063B2 (en) Apparatus and method for configuring high-definition video telephony between computer devices
US9385882B2 (en) Method and apparatus for phone communication using home network
US8719434B2 (en) Agnostic peripheral control for media communication appliances
EP3068139A1 (en) Electronic device and method for controlling electronic device
CN111194035B (en) Network connection method, device and storage medium
CN103634172A (en) Method, device and system for processing multi-terminal cooperation information
CN102368789A (en) Method and system for connecting dual-stack terminal to network
US20050111486A1 (en) Device and method for controlling network devices located within private networks
CN111901648B (en) Data sharing method and related device
US9455986B2 (en) Method of authenticating a device to access a service
CN111954162B (en) Method for realizing wireless screen transmission through autonomous networking among multiple devices, screen transmission end and receiving end
CN113285920B (en) Service access method, device, equipment and storage medium
KR101732189B1 (en) Method and apparatus for providing service of external network to home network device
KR100909115B1 (en) Network automatic login system
JP2012524951A (en) Home network, device information sharing method between home networks, and home network system
CN105323125A (en) Cross-family network processing method, HTTP gateway, DLNA (digital living network alliance) apparatus
CN110798542A (en) Method and system for acquiring IP address
US20100198950A1 (en) Method to deliver services over existing wireless lan infrastructure
CN116744276A (en) Wi-Fi P2P connection method, device and system
CN115942331A (en) Network distribution method and system of Matter equipment
CN115460470A (en) Multicast data forwarding method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant