WO2016202203A1 - Device connection method and apparatus, and smart television system - Google Patents

Device connection method and apparatus, and smart television system Download PDF

Info

Publication number
WO2016202203A1
WO2016202203A1 PCT/CN2016/085212 CN2016085212W WO2016202203A1 WO 2016202203 A1 WO2016202203 A1 WO 2016202203A1 CN 2016085212 W CN2016085212 W CN 2016085212W WO 2016202203 A1 WO2016202203 A1 WO 2016202203A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
service providing
information
providing device
request
Prior art date
Application number
PCT/CN2016/085212
Other languages
French (fr)
Chinese (zh)
Inventor
陈金虎
钱江
徐华敏
郑勇
罗金华
宋丹峰
徐晶
米杨
谭建国
杨金锋
徐虹杰
范雷雷
司先锋
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016202203A1 publication Critical patent/WO2016202203A1/en

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25833Management of client data involving client hardware characteristics, e.g. manufacturer, processing or storage capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • 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/4108Peripherals receiving signals from specially adapted client devices characterised by an identification number or address, e.g. local network address

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a device connection method, device, and smart television system.
  • a digital video conversion box (STB, also commonly referred to as a set top box or a set-top box) is a device that connects a television terminal with an external signal source.
  • the digital video converter box converts the compressed digital signal into television content and displays it on the television terminal.
  • the digital signal signals can be from cable cables, satellite antennas, broadband networks, terrestrial broadcasts, and the like.
  • the digital video converter box can also receive digital content, such as television program guides, Internet web pages, emails, and the like. Enables users to watch digital TV shows on existing TV sets and interactive digital entertainment, education and online shopping through the web.
  • the digital video conversion box or smart TV
  • the connection of the digital video converter box to the television set is relatively fixed, i.e., a digital video converter box is fixed to serve a terminal such as a television set. Any service that the terminal wants to obtain can only be implemented through a digital video converter box.
  • the development of Internet technology is changing with each passing day, and various applications are constantly changing.
  • the digital video converter box cannot meet the update changes of the application, it will not be able to provide services for the TV terminal normally; on the other hand, digital video Any abnormality or failure of the change box will result in the terminal not being able to obtain service.
  • the present invention provides a device connection method and apparatus, and a smart television system to solve the problem that a service for a terminal needs to be relied upon and subject to a digital video conversion box.
  • an embodiment of the present invention discloses a device connection method, including:
  • the device information is used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained user data. Said client provides services.
  • the embodiment of the invention also discloses a device connection method, including:
  • the device information includes: device information of the service providing device determined by the server;
  • the embodiment of the invention also discloses a device connection method, including:
  • connection request Responding to the connection request, establishing a connection with the client, and providing a service to the client based on the acquired user data matching the client.
  • the embodiment of the invention further discloses a device connecting device, comprising:
  • An information receiving module configured to receive request information reported by a client, where the request information is used to request to allocate a service providing device;
  • a device determining module configured to determine, according to the request information, a service providing device that provides a service for the client;
  • a sending module configured to send the determined device information of the service providing device to the client, and notify the determined service providing device to acquire user data that matches the client;
  • the device information is used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained user data. Teller The terminal provides services.
  • the embodiment of the invention further discloses a device connecting device, comprising:
  • An information sending module configured to send, to the server, request information for requesting allocation of the service providing device
  • a device information receiving module configured to receive device information returned by the server according to the request information, where the device information includes: device information of the service providing device determined by the server;
  • connection establishing module configured to establish a connection with the determined service providing device according to the received device information
  • the service receiving module is configured to receive the service provided by the service providing device based on the acquired user data, where the user data includes user data corresponding to the sending end of the request information.
  • the embodiment of the invention further discloses a device connecting device, comprising:
  • a notification message receiving module configured to receive a notification message sent by the server, where the notification message is used to indicate that user data matching the client is acquired;
  • a notification message response module configured to obtain user data that matches the client in response to the notification message
  • connection request receiving module configured to receive a connection request sent by the client for requesting a connection
  • connection request response module configured to establish a connection with the client in response to the connection request
  • a service providing module configured to provide a service to the client based on the obtained user data that matches the client.
  • the embodiment of the invention further discloses a smart television system, comprising: at least one server, at least one client, at least one service providing device; wherein the server comprises a device connected as described above; the server is used for Allocating a service providing device to the client; the client is disposed in a smart TV, and the service providing device is disposed on a network side, and is configured to provide an Internet service for a connected client through a network; wherein the server includes A device connection device according to an embodiment of the present invention, the client includes another device connection device according to the embodiment of the present invention, and the service providing device includes another device connection according to the embodiment of the present invention. Device.
  • the embodiments of the invention include the following advantages:
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device, and the service providing device is located in the network.
  • the service provider can provide services to the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information. Pick up. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information.
  • the service providing device Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection scheme of the embodiment of the present invention, the device that provides the service for the terminal is implemented by the service provider device on the network side, and the terminal only needs to have the basic decoding function, and the service can be obtained from the network side, and is no longer dependent or subject to Digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • Embodiment 1 is a flow chart showing the steps of a device connection method in Embodiment 1 of the present invention
  • FIG. 2 is a flow chart showing the steps of a device connection method in Embodiment 2 of the present invention.
  • Embodiment 3 is a flow chart showing the steps of a device connection method in Embodiment 3 of the present invention.
  • Embodiment 4 is a flow chart showing the steps of a device connection method in Embodiment 4 of the present invention.
  • Embodiment 5 is a flow chart showing the steps of a device connection method in Embodiment 5 of the present invention.
  • FIG. 6 is a flow chart showing the steps of a device connection method in Embodiment 6 of the present invention.
  • FIG. 7 is a block diagram of a smart television system in Embodiment 7 of the present invention.
  • Embodiment 8 is a flow chart showing the steps of a device connection method in Embodiment 7 of the present invention.
  • FIG. 9 is a schematic diagram of data interaction in a smart television system according to Embodiment 7 of the present application.
  • Figure 10 is a block diagram showing the structure of a device connecting device in Embodiment 8 of the present invention.
  • Figure 11 is a block diagram showing the structure of a device connecting device in Embodiment 9 of the present invention.
  • Figure 12 is a block diagram showing the structure of a device connecting device in Embodiment 10 of the present invention.
  • the device connection method of the embodiment of the present invention can be applied to a system including a client and a service providing device, wherein the service providing device can provide various services to the client.
  • a smart television system comprising: at least one server, at least one client, at least one service providing device; wherein the server is configured to allocate a service providing device to the client; the client The end is set in the smart TV, said The service providing device is set on the network side and is used to provide Internet services for the connected client through the network.
  • the smart television system may further include at least one user data information storage device; the at least one user data information storage device includes: at least one user partition; wherein the at least one user partition is used to store different User data corresponding to the client.
  • the service providing device includes: a network set top box; the internet service includes at least one of the following: a live television, an audio and video service, a web service, and a game service.
  • FIG. 1 a flow chart of steps of a device connection method in Embodiment 1 of the present invention is shown.
  • the device connection method of this embodiment is described in the perspective of a server in the above-described smart television system architecture.
  • the device connection method in this embodiment may specifically include the following steps:
  • Step 102 Receive request information reported by the client.
  • the service providing device and the client may provide a network data service for the smart television terminal, where the service providing device may be a hardware terminal disposed on the network side, and various data required for the network service provided by the service providing device, the client A presentation form of the terminal may be an APP (Application) installed on the smart TV terminal, and the client decodes and displays the data provided by the network.
  • each service providing device and the client may not have a unique correspondence, but temporarily allocate a service providing device to the client when the client requests the network server to be provided by the service providing device, and allocate the service providing device and After the client establishes a connection, the service providing device provides data services for the client during the connection.
  • the server may receive the client requesting information, where the request information is used to request the service providing device.
  • Step 104 Determine, according to the request information, a service providing device that provides a service for the client.
  • the server may select a service providing device with service capability from the plurality of service providing devices in the smart television terminal to provide the client with the service according to the request information.
  • the service providing device having the service capability can be understood as a service providing device that can be allocated and used, for example, a service providing device in an idle state; correspondingly, the service providing device that cannot be allocated and used can be regarded as not Service-providing service providing device, such as a service providing device in a busy state, wherein an idle state It means that the service providing device is not currently allocated, that is, no service is provided for the client; the working state means that the service providing device is currently allocated, that is, the client is already providing services and cannot be further allocated.
  • the service providing device that provides the service to the client can be determined in any suitable manner.
  • a feasible manner may be as follows: the server may select a service providing device that matches the model identification information according to the model identification information used to indicate the client model carried in the request information, as a A service providing device that provides a service to the client.
  • the server may be based on historical connection information carried in the request information (the historical connection information includes but is not limited to: device capability information of the service providing device that the client has recently connected) And selecting a service providing device whose device capability is not lower than the device capability indicated by the device capability information of the service providing device that the client has recently connected, as the service providing device that provides the service for the client.
  • Step 106 Send the device information of the determined service providing device to the client, and notify the determined service providing device to acquire user data that matches the client.
  • the device information may be used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained device.
  • the user data provides services to the client.
  • the user data may include, but is not limited to, operation information (including but not limited to: accessing an application, browsing an application, deleting an application, installing an application, etc.) of the login user logging in to the client, and
  • operation information including but not limited to: accessing an application, browsing an application, deleting an application, installing an application, etc.
  • the data information generated during the use of various types of applications for example, the purchase record information of the login user, the application account and password information (free login information) when the user logs in to the application, the television program information that has been viewed, and the like
  • the data information associated with the login user for example, the purchase record information of the login user, the application account and password information (free login information) when the user logs in to the application, the television program information that has been viewed, and the like.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing the effective interaction between the client and the server as the service providing device, and further, the service providing device can obtain the The user data matched by the client provides services for the user, which greatly improves the user experience.
  • This embodiment is based on the device connection method of the first embodiment, and further optimizes the device connection method of the first embodiment.
  • FIG. 2 a flow chart of steps of a device connection method in Embodiment 2 of the present invention is shown.
  • the device connection method of this embodiment is still described in the perspective of the server in the smart TV system architecture.
  • the device connection method in this embodiment may specifically include the following steps:
  • Step 202 The server receives the request information reported by the client.
  • the request information is used to request to allocate a service providing device.
  • Step 204 The server determines, according to the request information, a service providing device that provides a service for the client.
  • the service providing device is not allocated to the malicious client.
  • the validity of the client may be determined before the step 204 is performed. If it is determined that the client is legal, the foregoing step 204 may be performed; if it is determined that the client is illegal (for example, a maliciously falsified client), the process may be directly ended, the risk connection is avoided, and the effective connection is effectively prevented. Leakage of user data (especially data related to user privacy).
  • the method for determining whether the client is legal is as follows: The server determines that the client is legal according to the client information of the client carried in the request information.
  • the client information includes, but is not limited to, at least one of the following information: a random identifier (Key) for identifying the client, a random identification password (Secret) of the random identifier, and a device of the client. Address (Media Access Control address, MAC address, or physical address, hardware address) and timestamp (Time).
  • a random identifier for identifying the client
  • a random identification password secret
  • Address Media Access Control address, MAC address, or physical address, hardware address
  • timestamp Time
  • the client may be determined to be legal according to at least one of the random identifier, the random identifier password, the device address, and the timestamp;
  • the at least one of the random identifier, the random identification password, the device address, and the timestamp respectively is consistent with the corresponding information stored locally, and then the client is determined to be legal.
  • the client may be determined to be legal; for example, if the random identifier password in the request information is consistent with the locally stored random identifier password, Then it can be determined that the client is legal. It should be noted that when the random identifier, the random identification password, the device address, and any information in the timestamp are inconsistent, the client is invalid.
  • the server may acquire the first verification information (Sign1) of the client, and then determine whether the obtained first verification information and the second verification information (Sign2) are consistent, and obtain a first determination result, and finally, according to the The first judgment result determines whether the client is legal.
  • the first verification information may be verification information generated by the client according to at least one of the random identifier, the random identifier password, the device address, and the timestamp;
  • the second verification information is verification information generated locally using the same generation manner as the first verification information.
  • Step 206 The server sends the device information of the determined service providing device to the client, and notifies the determined service providing device to acquire user data that matches the client.
  • the device information may be used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained device.
  • the user data provides services to the client.
  • connection between the client indicated by the device information and the determined service providing device according to the device information may be directly connected, that is, The determined service providing device can directly provide the client with the service based on the obtained user data.
  • the connection between the determined service provider and the determined service providing device according to the device information may be a pre-connection and a determined service.
  • the providing device has not served the client based on the obtained user data.
  • the determined service providing device may first determine the client and the service before providing the service to the client based on the obtained user data. Providing a connection request between the devices (the connection request may be used to request to establish a connection with the determined service providing device), and if the connection request is legal, the determined service providing device is based on the obtained User data is officially served to the client.
  • the server receives the verification request reported by the determined service providing device, where the verification request is used to request whether to verify whether the connection request between the client and the determined service providing device is legal.
  • the server determines, according to the verification request, whether the connection request between the client and the determined service providing device is legal, and obtains a second determination result
  • the server sends the second determination result to the determined service providing device.
  • the verification request includes, but is not limited to, including at least one of the following: a uniquely unique identifier (UUID), a random token (Token) of the determined service providing device, And a random identifier of the client; wherein the unique identifier is used to uniquely identify the determined service providing device.
  • UUID uniquely unique identifier
  • Token random token
  • the server may determine, according to the determined at least one of a unique identifier of the service providing device, a random token, and a random identifier of the client, the client and the The determined connection request between the service providing devices is legal, and the second judgment result is obtained.
  • UUID1 UUID2
  • Token1 Token2
  • the UUID1 and the UUID2 may respectively refer to a unique identifier (which may be, but is not limited to, carried in the verification request) and a unique identifier stored locally by the server; Token1 and Token2 may refer to the service providing device respectively.
  • the reported random token (which may be, but is not limited to, carried in the verification request) and a random token stored locally by the server. It should be noted that when any of the unique identification code, the random token, and the random identifier are inconsistent, it may be determined that the connection request is invalid.
  • the device connection method may further include the following step 208:
  • Step 208 The server acquires the status information of the determined service providing device.
  • the status information may be used to indicate the working status of the determined service providing device, thereby preventing the determined service providing device from being allocated to other clients by the server, and ensuring the smart television system. Reliability and stability.
  • the random identifier described in this embodiment and/or the random identifier password matching the random identifier may be generated by the server when the client requests registration from the server.
  • the method for generating the random identifier and/or the random identifier password matching the random identifier may be as follows: the server receives a registration request of the client; the server allocates one for the client to store the a user partition of the user data corresponding to the client, and generating, according to the registration request, the client A matching random identifier and/or a random identification password matching the random identifier; the server saves and sends the generated random identifier and/or random identification password to the client.
  • the server may generate the random identifier and/or the random identifier by using a random generation mode, so that even if the same is delivered.
  • the client information, the random identifier and/or the random identification password obtained each time is also different, and the random identification and/or the random identification password are prevented from being maliciously obtained, thereby providing the security of the smart television system.
  • the random identifier and/or the random identifier password can be generated in any suitable manner, which is not limited in this embodiment.
  • the foregoing random token in the embodiment may be, but is not limited to, a server randomly receiving the request information reported by the client, determining that the service providing device that provides the service for the client is randomly generated, and generating the random order.
  • the card is saved locally and the generated random token is sent to the client.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the method for connecting the device may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
  • FIG. 3 a flow chart of steps of a device connection method in Embodiment 3 of the present invention is shown.
  • the device connection method of this embodiment is described in the perspective of a client in the above-mentioned smart television system architecture.
  • the device connection method in this embodiment may specifically include the following steps:
  • Step 302 The client sends request information for requesting allocation of the service providing device to the server.
  • Step 304 The client receives device information returned by the server according to the request information.
  • the device information may include: device information of the service providing device determined by the server.
  • Step 306 The client establishes a connection with the determined service providing device according to the received device information, and receives a service provided by the service providing device based on the acquired user data.
  • the user data includes user data corresponding to the sending end of the request information (that is, the client).
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • This embodiment is based on the device connection method of the third embodiment, and further optimizes the device connection method of the third embodiment.
  • FIG. 4 a flow chart of steps of a device connection method in Embodiment 4 of the present invention is shown.
  • the device connection method in this embodiment is still described in the perspective of the client in the smart TV system architecture.
  • the device connection method in this embodiment may specifically include the following steps:
  • Step 402 The client sends request information for requesting allocation of the service providing device to the server.
  • the request information may carry the client information of the client, where the client information may include: model information indicating the model of the client, a device address of the client, and Save at least one of a random identifier, a random identification password, a random token, and a timestamp local to the client.
  • Step 404 The client receives device information returned by the server according to the request information.
  • the server may determine a service providing device for the client according to the request information.
  • the server may first determine that the client is legal, and determine a service providing device for the client after determining that the client is legal.
  • the client may carry the client information in the request information and send it to the server together, and the server determines that the client is legal according to the client information.
  • the device information may refer to device information of the service providing device determined by the server, such as: the unique identification code (UUID) of the determined service providing device, and the service providing device. IP address, port address (for example, port port address), etc.
  • UUID unique identification code
  • Step 406 The client establishes a connection with the determined service providing device according to the received device information, and receives a service provided by the service providing device based on the acquired user data.
  • the user data may refer to user data that matches the client, such as user data of a login user that logs in to the client.
  • the step 406 may specifically include the following sub-steps:
  • Sub-step 4062 the client obtains locally saved client information.
  • Sub-step 4064 the client generates a connection request according to the received device information, or generates a connection request according to the received device information and the client information; wherein the connection request is used for requesting The determined service providing device establishes a connection.
  • Sub-step 4066 the client sends the connection request to the determined service providing device.
  • Sub-step 4068 the client establishes a connection with the determined service providing device according to the determined response message returned by the service providing device.
  • the client information includes at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, a device address of the client, and a timestamp.
  • the random identifier and/or the random identifier password saved locally by the client may be randomly generated by the server for the client when the client registers.
  • the server for the client when the client registers.
  • the device connection method may further include:
  • step 408 the client sends a registration request to the server.
  • Step 410 The client receives and saves the random identifier used by the server to identify the random identifier of the client and/or the random identifier returned according to the registration request.
  • the random token and/or timestamp saved locally by the client may be randomly generated and sent to the client after the server determines the service providing device that provides the service for the client.
  • the client may further send the received random token and/or timestamp to the determined service providing device, and report the random token and/or timestamp to the server by the determined server providing device.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the method for connecting the device may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
  • FIG. 5 a flow chart of steps of a device connection method in Embodiment 5 of the present invention is shown.
  • the device connection method may specifically include the following steps:
  • Step 502 The service providing device receives the notification message sent by the server.
  • the notification message is used to indicate that user data matching the client is obtained.
  • Step 504 The service providing device acquires user data that matches the client in response to the notification message, and receives a connection request sent by the client to request a connection.
  • Step 506 The service providing device establishes a connection with the client in response to the connection request, and provides a service to the client based on the obtained user data that matches the client.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • This embodiment is based on the device connection method of the above sixth embodiment, and further optimizes the device connection method of the sixth embodiment.
  • FIG. 6 a flow chart of steps of a device connection method in Embodiment 6 of the present invention is shown.
  • the device connection method in this embodiment is still described in the perspective of the service providing device in the smart TV system architecture.
  • the device connection method in this embodiment may specifically include the following steps:
  • Step 602 The service providing device receives the notification message sent by the server.
  • the notification message is used to indicate that user data matching the client is obtained.
  • the method for obtaining the user data that matches the client may be as follows: the service providing device, in response to the notification message, suspending the user partition corresponding to the login user of the client to the local; wherein the client Login The user partition corresponding to the user carries the user data area that matches the client.
  • Step 604 The service providing device acquires user data that matches the client in response to the notification message, and receives a connection request sent by the client to request a connection.
  • Step 606 The service providing device establishes a connection with the client in response to the connection request, and provides a service to the client based on the obtained user data that matches the client.
  • the service providing device may generate an authentication request according to the connection request, and send the verification request to the server; wherein the verification request is used to request verification whether the connection request is legal; Then, after determining that the connection request is legal according to the verification result returned by the server, establishing a connection with the client.
  • the connection request may include, but is not limited to, at least one of the following: the device information of the service providing device allocated by the server for the client, and the client information of the client. And a random token assigned to the client by the server.
  • the service providing device may generate an authentication request according to at least one of the device information, the client information, and the random token; wherein the device information includes: used to identify the service providing a unique identifier of the device; the client information includes at least one of the following information: a random identifier for identifying the client and a randomly identified password for the random identifier.
  • the smart TV system in order to prevent the service providing device from being assigned to other clients, the smart TV system is abnormal.
  • the device connection method may further include the following steps. The following steps may be performed after the step 606:
  • step 608 the service providing device configures the current state as a busy state.
  • Step 610 The service providing device generates status information for indicating the busy status.
  • Step 612 The service providing device sends the status information to the server.
  • the service providing device sends the status information of the busy state to the server, when the service providing device is subsequently allocated to the client, the server will no longer consider the service providing device in the busy state, thereby avoiding the abnormal operation of the smart television system, and The efficiency and accuracy of assigning service providers to clients is greatly improved.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect according to the device information.
  • a service provider on the network side. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the method for connecting the device may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
  • a smart television system may be employed: the smart television system may include at least one client, at least one dispatch server, and at least one service providing device.
  • the client is a terminal that can use the APP application provided by the service providing device, such as a set top box, a smart mobile terminal, a PAD (Portable Android Device tablet), a smart TV with a decoding function, and the like.
  • the service providing device can be set as a server in the cloud to remotely provide services for the client.
  • the scheduling server may select one of the plurality of service providing devices in the cloud to allocate to the client according to the set allocation policy.
  • the service providing device can be set in the cloud as a hardware device
  • the software (application) can be installed in the service providing device
  • the service providing device can be used in the cloud to set the user interface of various applications.
  • UI User Interface
  • the client needs to have basic decoding capabilities to present the user interface of the application to the user, and to operate on various applications.
  • the software (application) may not be installed in the set top box, may be installed in the service providing device, and provide services to the user through the service providing device. . Since the software can no longer be installed in the set top box, the set top box can no longer be set separately.
  • the smart mobile terminal (or a smart TV with decoding function) can be directly connected to the service providing device, and the user does not need to Separate purchase/setting of set-top boxes, saving users
  • the intelligent mobile terminal (or the smart TV with decoding function) directly interacts with the service providing device, which improves the interaction efficiency, reduces the maintenance steps for the set top box, and reduces the occupation of resources.
  • the scheduling server may refer to a server, or may refer to a server group composed of multiple servers equivalent to the scheduling server function.
  • the user interface displayed on the client side is capable of providing various network services for the user, for example, the user interface may include various menu options or icons, such as: high definition video, ultra clear television , software downloads, games, life services (such as payment, shopping, etc.), so that the client users can watch HD movies and TV, play somatosensory games, popular large 3D games, online shopping, pay for water and electricity, etc. on the TV for free. And other functions.
  • the user can continue to enter the corresponding UI interface to perform operations, such as local or network resources when playing HD video.
  • the user can control through the external device of the remote controller, such as selecting a certain function and entering the next level interface, and the UI interface is displayed based on the transport stream of the service providing device. Therefore, the control response to the UI interface is also performed by the service providing device.
  • the service providing device virtualizes an input device in the user space, simulates a hardware input signal through the virtual input device, and injects an input signal of the user into the system to input an event and distribute the image, thereby realizing The service provides the device's response to user control.
  • FIG. 7 an architecture diagram of a smart television system in Embodiment 7 of the present invention is shown.
  • the smart television system may specifically include: at least one device server (such as the device server 701 shown in FIG. 7), at least one scheduling server (such as the scheduling server 702 shown in FIG. 7), and at least one client. End (client 703 shown in Figure 7).
  • Each device server includes at least one service providing device (such as the service providing device 704 in the device server 701 shown in FIG. 7).
  • the smart television system may further include: at least one management server (such as the management server 705 shown in FIG. 7) and at least one user data storage device (such as the user data storage device 706 shown in FIG. 7).
  • the user data storage device is used to store user data, and one user may correspond to a dedicated user data storage device, and multiple users may share the same user data storage device, which is not limited in this embodiment.
  • the user data storage device may be a physical device, a logical device, or a combination of physical and logical devices.
  • the user data storage device may include at least one user partition (such as the user partition 707 shown in FIG. 7), and each user partition corresponds to storing user data of one user.
  • the client 703 may be a hardware device as described above, such as a set top box, a smart mobile terminal, a PAD, a smart TV with a decoding function, and the like.
  • the client 303 may also be in the form of a smart TV terminal, which may be presented in the form of an APP (Application) installed in the smart TV terminal.
  • the smart TV terminal herein may specifically include: a set top box and a mobile terminal. , smart TV, etc.
  • the client 703 can be used to play a user interface parsed by a transport stream (TS) sent by the service providing device 304, and play multimedia data (such as video signals, audio signals, etc.) acquired from other network servers.
  • TS transport stream
  • the client 703 can be used to listen to an input message generated by the user through an input device such as a remote controller, and send the input message to the service providing device 704 or the dispatch server 702.
  • an input device such as a remote controller
  • the client 703 only parses and displays, and the input message controlled by the client 703 to the user interface is also forwarded to the service providing device 704 to enable It adjusts the user interface accordingly.
  • the service providing device 704 is located at the network side, and each of the service providing devices may specifically include: a software module carried by the hardware board and the hardware board. It should be noted that, in this embodiment, various types of applications may be directly installed in the service providing device, and the user may perform the application in the service providing device 704 through the user interface corresponding to the application displayed by the client 703. In the operation, it is no longer necessary to separately install the application in the client 703, so that the technician can perform unified maintenance on the smart television system, thereby reducing the workload and improving the maintenance efficiency.
  • the user partition 707 is located on the network side. Generally, each user applies a user partition, and user data of each user is saved under the corresponding user partition. Further, each user partition has a unique address information, and the address information may indicate a specific address of the corresponding user partition, and the user information may be quickly found through the address information to complete the call of the user data.
  • the dispatch server 702 (or the management server 705) can perform maintenance only on address information (small data amount) without maintaining the entire user data (large amount of data), reducing the amount of data maintained. , reducing the resource occupation, improving the system running speed, and the data is easy to find.
  • the scheduling server 702 is located on the network side, and is mainly configured to allocate an idle, good-quality service providing device 304 to the client 703 according to the request message sent by the client 703.
  • the user partition corresponding to the user ID can be mounted to The assigned service providing device 704, that is, each user partition may correspond to a unique user ID, such as user partition A corresponding to user A, etc., such that user A is at client 703 with the last assigned, After the service provider device with the number 001 is disconnected, even if the service provider device with the number 002 is connected next time, the user A can still use the user partition A, and can use data such as the previous history.
  • the management server 705 is located on the network side and can be used to manage all service providing devices.
  • the body may include: status reporting, heartbeat management, setting attributes, obtaining attributes, network wake-up, soft restart, hard restart, etc.; it can be seen that the management server 705 can be used as a remote server to implement the service providing device in the wide area network by using the technical solution of the present invention. Wake on the network.
  • the device connection method described in this embodiment can be applied to the smart television system based on FIG.
  • any system or server that requires a device connection may refer to the solution for implementing device connection in this embodiment, and is not limited to the application scenario in the foregoing architecture.
  • the service providing device adopts a reusable mechanism, that is, one service providing device serves to continue servicing another client after the client resets. That is, after the service providing device establishes a connection with the client, the two are the only corresponding interaction relationship, and when the completion of the service is disconnected, the service providing device does not have a direct correspondence with the client, but waits for the system to be It allocates other clients. Therefore, the service providing device can serve one client at a time, and if the service providing device is not used for a set length of time, it will enter a power-saving sleep state.
  • the Idle state that is, the idle state, the service providing device system in this state can be directly allocated to the required client;
  • the Busy state that is, the busy state, the service providing device in this state has been connected to the client and is in the service client, and can no longer be allocated;
  • the sleep state that is, the sleep state, when the service providing device having no redundant idle state in the system can be allocated, the system can wake up the service providing device in the state to allocate it to the client;
  • the Exception state that is, the exception state, in which the allocation cannot be made
  • the management state that is, the management state, indicates that the service providing device is in the server management state and cannot be allocated.
  • the present embodiment uses the interaction between the server, the client, and the service providing device in the smart TV system architecture as an example to describe the device connection method in this embodiment.
  • the device connection method in this embodiment may specifically include the following steps:
  • Step 802 The server receives the registration request of the client, allocates a corresponding data partition (Userdata) to the client, and generates a random identifier (Key) and a random identification password (Secret) matching the Key.
  • Userdata a data partition
  • Key a random identifier
  • Secret a random identification password
  • the registration request includes, but is not limited to, a device address of the client, model information of the client, and the like.
  • the server may randomly assign the random identifier to the client according to the device address and/or model information. And a random identification password.
  • Step 804 The server sends the generated random identifier and the random identification password to the client.
  • the device address saved in the client may be recorded as Mac1, and the random identifier and the random identification password respectively sent by the server to the client and stored in the client respectively. Recorded as Key1 and Secret1.
  • the device address received by the server and stored locally on the server is recorded as Mac2, and the random identifier and random identification password generated by the server and stored locally on the server are recorded as Key2 and Secret2, respectively.
  • Step 806 The server receiving the client sends request information for requesting the distribution of the service providing device, and determining, according to the request information, whether the client is legal.
  • Key1, Secret1, and Mac1 saved locally by the client may be sent to the server along with the request information.
  • the client can be determined whether the Key1 is consistent with the Key2 saved locally by the server. If not, the client is determined to be illegal, and the process ends; if they are consistent, the client can be determined to be legal.
  • the Time can be the timestamp (current time) when the client sends the request information to the server. The time saved locally by the client is recorded as Time1, and the time stored in the server is recorded as Time2.
  • the comparison of the random identifier (the comparison between Key1 and Key2) and the comparison of the verification information (the comparison between Sign1 and Sign2) have no inevitable sequence, and may be any appropriate Execute sequentially.
  • Step 808 The server selects a service providing device with service capability from the plurality of service providing devices in the smart television terminal to provide the client with the service according to the request information.
  • Step 810 The server acquires the device information of the determined service providing device, and generates a random token, and notifies the determined service providing device to acquire user data that matches the client.
  • the random token generated by the server each time is time-sensitive and can be used to determine the client and the client. Whether the determined connection of the service providing device is valid. Generally, each time the server receives the request information reported by the client, the random token can be dynamically generated. In other words, the random token generated by the server each time can be different.
  • Step 812 The server sends the obtained device information of the determined service providing device and the generated random token to the client.
  • the determined device information of the service providing device may include: the determined service providing device's IP (Internet Protocol), port address, and unique identifier. Wait.
  • IP Internet Protocol
  • the unique identification code and the random token to be transmitted and stored in the client are respectively recorded as UUID1 and Token1; the unique identification code and random token stored in the server locality. Recorded as UUID2 and Token2 respectively.
  • Step 814 The client generates a connection request according to the device information, to request to establish a connection with the determined service providing device.
  • Step 816 The determined service providing device generates an authentication request according to the connection request, and sends the verification request to the server, to request the server to verify whether the connection request is legal according to the verification request.
  • the client may send the locally stored Key1, Token1, and UUID1 in the connection request to the service providing device, and the determined service providing device receives the client. After the connection request is sent, the corresponding information can be extracted from the connection request and saved.
  • the various types of information stored in the determined service providing device may be respectively recorded as Key3, Token3, and UUID3.
  • the verification request generated by the determined service providing device may carry the foregoing information: Key3, Token3, and UUID3.
  • the connection between the client and the determined service providing device may be effectively connected.
  • the connection between the client and the determined service providing device after determining whether Token3 and Token2 match, after determining that Token3 matches Token2, that is, determining that the connection between the client and the determined service providing device is valid, further Determine whether Key3 and Key2 match, and whether UUID3 and UUID2 match.
  • a feasible method for verifying based on the MD5 encryption algorithm can be as follows:
  • the Secret3 may be a random identification password sent by the client to the determined service providing device. Random_num may be a random number randomly generated by the server, the generated random number may be saved in the server, and the server sends the generated random number to the client, and the client sends the determined number to the determined Service delivery equipment.
  • Step 818 The server sends indication information to the determined service providing device, indicating that the connection request is legal.
  • Step 820 After determining the indication information, the determined service providing device establishes a connection with the client in response to the connection request sent by the client, and based on the acquired user data matching the client. Said client provides services.
  • the determined service providing device may establish a formal connection with the client, in response to the connection request sent by the client, with the client.
  • the interaction is performed: for example, the determined service providing device may obtain a user interface cache from the local cache, encode the user interface buffer to generate a corresponding TS stream, and then send the TS stream to the client, so that the client displays The corresponding UI interface.
  • Step 822 The determined service providing device configures the state of the device as the working state, and generates state information indicating the working state, and reports the state information to the server.
  • the device connection scheme of the present application will be described in the form of a specific example from the perspective of the overall process of data interaction.
  • a process of data interaction in a smart television system in this embodiment is shown.
  • the smart television system in this example includes at least a client, a service providing device, and a server (eg, Can be a scheduling server).
  • the interaction process can include:
  • Step S10 The client sends a registration request to the server, where the registration request carries at least the MAC address information of the client.
  • Step S20 The server receives the registration request of the client, generates a pair of key/secret (that is, the random identifier and the random identification password of the client) for the client, and records the correspondence between the client information and the key/secret in the database. in.
  • a pair of key/secret that is, the random identifier and the random identification password of the client
  • the client Each time the client registers, it will generate different key/secret (even if the information carried in the registration request is the same), so that even if the hacker or illegal user simulates someone else's client to register, the client's key/secret is not obtained, which is convenient.
  • the server determines that it is a different or illegal client.
  • Step S30 The server sends the key/secret to the client.
  • Step S40 The client saves the key/secret returned by the server, and saves it as key1/secret1.
  • Step S50 The client generates sign1 (for verifying whether the client is legal) according to key1, secret1, mac1 (that is, the locally saved mac address), and time1 (that is, the locally generated timestamp).
  • sign1 for verifying whether the client is legal
  • key1, secret1, mac1 that is, the locally saved mac address
  • time1 that is, the locally generated timestamp
  • Step S60 The client sends request information to the server, where the request information carries key1, mac1, sign1, and time1.
  • Step S70 The server receives the request information sent by the client, and verifies whether the key1 exists locally in the server.
  • the request information is considered to be an illegal request.
  • step S80 If it exists, use the key1 to find the corresponding secret and mac saved in the server, and find the secret and mac as secret2 and mac2; verify whether sign1 and sign2 are consistent, where sign2 is determined by the server according to key1, mac2, secret2 and time1 , generated by the same algorithm as the client generates sign1. If sign1 and sign2 do not match, it is determined that the request information is an illegal request; if sign1 and sign2 are consistent, step S80 is performed.
  • Step S80 The server selects an idle service providing device for the client (the UUID of the service providing device is recorded as UUID1).
  • Step S90 The server allocates the selected service providing device to the client, and generates a token1, a random number random1, and a salt1 for the client.
  • token1 is a string of random strings, which can be about 32 bits in length but not limited to 32 bits.
  • a certain algorithm, such as md5, encrypts a string to generate a value of salt: such as salt MD5(secret+uuid1+ Random1) is stored in the server and recorded as salt1; the server records the correspondence between key1, uuid1, token1, and salt1, and is not permanently saved (for example, it will expire after a certain period of time, such as more than 5 minutes).
  • Step S100 The server returns uuid1, token1, random1, and the IP address of the service providing device and the PORT to the client.
  • the server is configured to allocate a service providing device for the client.
  • Step S110 The client generates the salt2 by using the same algorithm as the server.
  • the client saves the received token1 locally and records it as token2.
  • Step S120 The client sends a connection request to the service providing device, where the connection request carries token2, key2, and salt2.
  • Step S130 The service providing device receives the connection request, obtains corresponding information therefrom, and determines whether to request the server to determine whether the connection requested by the connection request is legal.
  • Step S140 The service providing device sends a verification request to the server, where the verification request carries the token2, the key2, the salt2, and the uuid of the service providing device itself.
  • Step S150 The server verifies whether the connection requested by the connection request is legal.
  • the server verifies the locally saved key1, uuid1, token1, and salt1, and is consistent with the key2, uuid, token2, and salt2; if not, the connection requested by the connection request is considered illegal; if they are consistent, the connection request is considered The requested connection is legal.
  • Step S160 The server returns the verification result to the service providing device.
  • the server verifies the validity of the connection between the client and the service providing device.
  • Step S170 If the service providing device determines that the connection requested by the connection request is legal according to the verification result, establish a connection with the client, and send a ts stream to the client; otherwise, disconnect the client.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device. Therefore, the effective interaction between the client and the server as the service providing device is realized. Further, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the method for connecting the device may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
  • the embodiment further discloses a device connection device, and the server of the embodiment of the invention may include the device connection device.
  • the device connection device may include the following modules:
  • the information receiving module 902 is configured to receive request information reported by the client, where the request information is used to request to allocate the service providing device.
  • the device determining module 904 is configured to determine, according to the request information, a service providing device that provides a service for the client.
  • the sending module 906 is configured to send the determined device information of the service providing device to the client, and notify the determined service providing device to acquire user data that matches the client.
  • the device information may be used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained device.
  • the user data provides services to the client.
  • the device connecting device when the client needs the service resource, the server allocates the appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the service The device transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the device connecting apparatus may determine that the client is legal according to the request information reported by the client, and perform a service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
  • the device connection device may further include: a client determining module, configured to: before the device determining module 904 determines, according to the request information, a service providing device that provides a service for the client, Determining that the client is legal according to the client information of the client carried in the request information.
  • a client determining module configured to: before the device determining module 904 determines, according to the request information, a service providing device that provides a service for the client, Determining that the client is legal according to the client information of the client carried in the request information.
  • the client information includes at least one of the following information: a random identifier for identifying the client, a random identifier password of the random identifier, a device address of the client, and a timestamp.
  • the client determining module may include: a legal determining module, configured to determine, according to at least one of the random identifier, the random identification password, the device address, and the timestamp Whether the client is legal.
  • the legal determination module is configured to determine that the client is legal when at least one of the random identifier, the random identifier password, the device address, and the timestamp is consistent with the corresponding information stored locally.
  • the legal determination module may include: an authentication information obtaining module, configured to acquire first verification information of the client; wherein the first verification information is that the client according to the random identifier, The verification information generated by at least one of a random identification password, the device address, and the timestamp. a first determining module, configured to determine whether the obtained first verification information and the second verification information are consistent, and obtain a first determination result, The second verification information is verification information generated locally by using the same generation manner as the first verification information; and determining whether the client is legal according to the first determination result.
  • an authentication information obtaining module configured to acquire first verification information of the client; wherein the first verification information is that the client according to the random identifier, The verification information generated by at least one of a random identification password, the device address, and the timestamp.
  • a first determining module configured to determine whether the obtained first verification information and the second verification information are consistent, and obtain a first determination result
  • the second verification information is verification information generated locally by using the same generation manner as the first verification information; and determining
  • the device connection device may further include: an authentication request receiving module, configured to send, by the sending module, the device information of the determined service providing device to the client, and Receiving, after the determined service providing device acquires the user data that matches the client, receiving the verification request reported by the determined service providing device; wherein the verification request is used to request verification of the client Whether the connection request with the determined service providing device is legal.
  • the second determining module is configured to determine, according to the verification request, whether the connection request between the client and the determined service providing device is legal, and obtain a second determination result.
  • a judgment result sending module configured to send the second judgment result to the determined service providing device.
  • the verification request includes at least one of the following information: a unique identifier of the determined service providing device, a random token, and a random identifier of the client; wherein the unique identifier is used by The uniquely identifies the determined service providing device.
  • the second determining module may be configured to determine, according to the determined at least one of a unique identifier of the service providing device, a random token, and a random identifier of the client, the client and the Whether the determined connection request between the service providing devices is legal, and the second judgment result is obtained.
  • the device connection device may further include: a state information acquiring module, configured to acquire the determined after the determining result sending module sends the determining result to the determined service providing device The service provides status information of the device; wherein the status information is used to indicate the determined working status of the service providing device.
  • a state information acquiring module configured to acquire the determined after the determining result sending module sends the determining result to the determined service providing device The service provides status information of the device; wherein the status information is used to indicate the determined working status of the service providing device.
  • the device connection device may further include: a registration request receiving module, configured to receive a registration request of the client before the information receiving module receives the request information reported by the client.
  • a preparation module configured to allocate, to the client, a user partition for storing user data corresponding to the client, and generate, according to the registration request, a random identifier and/or a match with the client The random identifier that matches the random identifier.
  • a sending module configured to save and send the generated random identifier and/or random identification password to the client.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device, and the service provides the service.
  • the device is located on the network side, and the service providing device can provide services for the client. Further, the server sends the device information of the service providing device to the client, and the notification service providing device acquires the matching with the client. User data.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information.
  • the service providing device Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the embodiment further discloses a device connection device.
  • the client of the embodiment of the present invention may include the device connection device.
  • the device connection device may include the following modules:
  • the information sending module 1002 is configured to send, to the server, request information for requesting allocation of the service providing device.
  • the device information receiving module 1004 is configured to receive device information returned by the server according to the request information, where the device information includes: device information of the service providing device determined by the server.
  • the connection establishing module 1006 is configured to establish a connection with the determined service providing device according to the received device information.
  • the service receiving module 1008 is configured to receive a service provided by the service providing device based on the acquired user data, where the user data includes user data corresponding to the sending end of the request information.
  • the server allocates the appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the device from the network side.
  • the service is no longer dependent on or subject to the digital video converter box.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the device connecting apparatus may determine that the client is legal according to the request information reported by the client, and perform a service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
  • the connection establishing module 1006 may specifically include: a client information acquiring module, configured to obtain the saved client information. a connection request generating module, configured to generate a connection request according to the received device information, or generate a connection request according to the received device information and the client information; wherein the connection request is used for requesting The determined service providing device establishes a connection. And a connection request sending module, configured to send the connection request to the determined service providing device. And a establishing module, configured to establish a connection with the determined service providing device according to the determined response message returned by the service providing device.
  • connection request includes: a random token generated by the server according to the request information; wherein the random token is used to indicate that the determined service providing device generates verification according to the random token
  • the request is used to request verification of whether the connection request is legitimate.
  • the device information includes: the unique identifier of the determined service providing device;
  • the client information includes at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, a device address of the client, and a timestamp.
  • the device connection device may further include: a registration request sending module, configured to send a registration request to the server. And a receiving and saving module, configured to receive and save the random identification password used by the server to identify the random identifier of the client and/or the random identifier returned according to the registration request.
  • a registration request sending module configured to send a registration request to the server.
  • a receiving and saving module configured to receive and save the random identification password used by the server to identify the random identifier of the client and/or the random identifier returned according to the registration request.
  • the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device, and the service provides the service.
  • the device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish and the service providing device according to the device information.
  • the connection between the two After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information.
  • the service providing device Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the device further includes a device connection device, and the service providing device according to the embodiment of the present invention may include the device connection device.
  • the device connection device may include the following modules:
  • the notification message receiving module 1102 is configured to receive a notification message sent by the server, where the notification message is used to indicate that user data matching the client is obtained.
  • the notification message response module 1104 is configured to obtain user data that matches the client in response to the notification message.
  • the connection request receiving module 1106 is configured to receive a connection request sent by the client for requesting a connection.
  • connection request response module 1108 is configured to establish a connection with the client in response to the connection request.
  • the service providing module 1110 is configured to provide a service to the client based on the obtained user data that matches the client.
  • the server allocates the appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client.
  • the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the device from the network side.
  • the service is no longer dependent on or subject to the digital video converter box.
  • the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device.
  • the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the device connecting apparatus may determine that the client is legal according to the request information reported by the client, and perform a service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
  • connection request response module 1108 may specifically include: an authentication request generating module, configured to generate an authentication request according to the connection request. And a verification request sending module, configured to send the verification request to the server; wherein the verification request is used to request verification whether the connection request is legal.
  • the connection establishing module is configured to establish a connection with the client after determining that the connection request is legal according to the verification result returned by the server.
  • connection request includes at least one of the following: the device information of the service providing device allocated by the server for the client, the client information of the client, and the randomness allocated by the server to the client Token.
  • the verification request generating module may be configured to generate an authentication request according to at least one of the device information, the client information, and the random token, where the device information includes: A unique identifier of the service providing device; the client information includes at least one of the following information: a random identifier for identifying the client and a random identification password for the random identifier.
  • the notification message response module 1104 may be specifically configured to: in response to the notification message, mount a user partition corresponding to the login user of the client to the local; wherein, the client The user partition corresponding to the login user carries the user data area that matches the client.
  • the device connection device may further include: a state configuration module, configured to: after the connection request response module 1104 responds to the connection request, establish a connection with the client, The current state is configured to be busy.
  • the status information generating module is configured to generate status information for indicating the busy status.
  • the status information sending module is configured to send the status information to the server.
  • the server when the client needs service resources, the server is configured according to The client reports the request information for requesting the distribution of the service providing device, and allocates an appropriate service providing device to the client.
  • the service providing device is located on the network side, and the service providing device can provide services for the client.
  • the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client.
  • the device information is used to instruct the client to establish a connection with the service providing device according to the device information.
  • the client After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information.
  • the service providing device Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
  • the embodiment of the invention further discloses a smart television system, comprising: at least one server, at least one client, at least one service providing device; wherein the server is configured to allocate a service providing device to the client; the client The terminal is disposed in the smart TV, and the service providing device is disposed on the network side, and is configured to provide an Internet service for the established client through the network;
  • the server may include the device connection device described in the foregoing embodiment 8.
  • the client may include the device connection device described in the foregoing embodiment 9.
  • the service providing device may include the foregoing embodiment 10. The device connection device described.
  • the smart television system may further include: one less user data information storage device; the at least one user data information storage device includes: at least one user partition; wherein the at least one user partition is respectively configured to store different client correspondences User data.
  • the service providing device may include: a network set top box; the internet service includes at least one of the following: a live television, an audio and video service, a web service, and a game service.
  • the smart television system is basically the same as the system described in FIG. 7 above, and therefore will not be described again.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations.
  • the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.
  • a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable component, a thread of execution, a program, and/or a computer.
  • an application or script running on a server, or a server can be a component.
  • One or more components can be executed in a process and/or thread, and the components can be localized on a single computer and/or distributed between two or more computers and can be run by various computer readable media.
  • the component may also pass signals based on data having one or more data packets, for example, from a signal interacting with another component in the local system, the distributed system, and/or interacting with other systems over the network of the Internet. Local and/or remote processes to communicate.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

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

Abstract

A device connection method and apparatus, and a smart television system. The method comprises: receiving request information reported by a client; determining, according to the request information, a service providing device providing a service for the client; and sending device information of the determined service providing device to the client, and informing the determined service providing device of obtaining user data matching the client, wherein the device information is used to instruct the client to establish a connection with the determined service providing device according to the device information, and the determined service providing device provides a service for the client based on the obtained user data. The problem that providing a service for a terminal needs to rely on and is restricted by a digital video conversion box is resolved.

Description

设备连接方法、装置和智能电视系统Device connection method, device and smart television system
本申请要求2015年06月17日递交的申请号为201510338704.4、发明名称为“设备连接方法、装置和智能电视系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本发明涉及互联网技术领域,具体涉及一种设备连接方法、装置和智能电视系统。The present invention relates to the field of Internet technologies, and in particular, to a device connection method, device, and smart television system.
背景技术Background technique
随着互联网技术的发展,智能电视、数字视频变换盒的出现,使得电视节目系统也越来越智能化,除了传统的电视节目的播出之外,还可以进行互联网活动。With the development of Internet technology, the emergence of smart TV and digital video converter boxes has made the TV program system more and more intelligent. In addition to the broadcast of traditional TV programs, Internet activities can also be carried out.
以基于数字视频变换盒实现的电视节目系统为例,数字视频变换盒(Set Top Box,简称STB,通常也可以称作机顶盒或机上盒)是一个连接电视终端与外部信号源的设备。数字视频变换盒可以将压缩的数字信号转成电视内容,并在电视终端上显示出来。所述数字信号信号可以来自有线电缆、卫星天线、宽带网络以及地面广播等等。数字视频变换盒除了可以接收上述可以转换为电视内容的数字信号之外,还可以接收数字内容,例如,电视节目指南、因特网网页、电子邮件等等。使用户能在现有电视机上观看数字电视节目,并可以通过网络进行交互式数字化娱乐、教育和网络购物等活动。Taking a television program system based on a digital video conversion box as an example, a digital video conversion box (STB, also commonly referred to as a set top box or a set-top box) is a device that connects a television terminal with an external signal source. The digital video converter box converts the compressed digital signal into television content and displays it on the television terminal. The digital signal signals can be from cable cables, satellite antennas, broadband networks, terrestrial broadcasts, and the like. In addition to receiving the digital signals that can be converted to television content, the digital video converter box can also receive digital content, such as television program guides, Internet web pages, emails, and the like. Enables users to watch digital TV shows on existing TV sets and interactive digital entertainment, education and online shopping through the web.
由上可见,上述数字电视节目的播出、交互式数字化娱乐、教育和网络购物等活动都需要通过所述数字视频变换盒(或智能电视)实现。在目前电视节目系统中,数字视频变换盒与电视机的连接是相对固定的,即,一个数字视频变换盒固定为一个终端如电视机提供服务。终端想要获得的任何服务也只能通过数字视频变换盒实现。然而,一方面,互联网技术的发展日新月异的、各种应用也在不断更新变化,当数字视频变换盒不能满足应用的更新变化时,则将不能正常为电视终端提供服务;另一方面,数字视频变换盒的任何异常或故障,都将导致终端不能获得服务。It can be seen from the above that the above-mentioned digital television program broadcast, interactive digital entertainment, education and online shopping activities need to be realized by the digital video conversion box (or smart TV). In current television program systems, the connection of the digital video converter box to the television set is relatively fixed, i.e., a digital video converter box is fixed to serve a terminal such as a television set. Any service that the terminal wants to obtain can only be implemented through a digital video converter box. However, on the one hand, the development of Internet technology is changing with each passing day, and various applications are constantly changing. When the digital video converter box cannot meet the update changes of the application, it will not be able to provide services for the TV terminal normally; on the other hand, digital video Any abnormality or failure of the change box will result in the terminal not being able to obtain service.
发明内容Summary of the invention
本发明提供了一种设备连接方法和装置,以及一种智能电视系统,以解决为终端提供服务需要依赖并受制于数字视频变换盒的问题。The present invention provides a device connection method and apparatus, and a smart television system to solve the problem that a service for a terminal needs to be relied upon and subject to a digital video conversion box.
为了解决上述问题,本发明实施例公开了一种设备连接方法,包括: In order to solve the above problem, an embodiment of the present invention discloses a device connection method, including:
接收客户端上报的请求信息,其中,所述请求信息用于请求分配服务提供设备;Receiving request information reported by the client, where the request information is used to request to allocate a service providing device;
根据所述请求信息确定出为客户端提供服务的服务提供设备;Determining, according to the request information, a service providing device that provides a service for the client;
将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据;Sending, to the client, the device information of the determined service providing device, and notifying the determined service providing device to acquire user data that matches the client;
其中,所述设备信息用于指示所述客户端根据所述设备信息建立与所述确定出的服务提供设备之间的连接,所述确定出的服务提供设备基于获取的所述用户数据为所述客户端提供服务。The device information is used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained user data. Said client provides services.
本发明实施例还公开了一种设备连接方法,包括:The embodiment of the invention also discloses a device connection method, including:
向服务器发送用于请求分配服务提供设备的请求信息;Sending request information for requesting distribution of the service providing device to the server;
接收服务器根据所述请求信息返回的设备信息;其中,所述设备信息包括:所述服务器确定出的服务提供设备的设备信息;Receiving device information returned by the server according to the request information; wherein the device information includes: device information of the service providing device determined by the server;
根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接,并接收所述服务提供设备基于获取的用户数据提供的服务,其中,所述用户数据包括所述请求信息的发送端对应的用户数据。Establishing a connection with the determined service providing device according to the received device information, and receiving a service provided by the service providing device based on the acquired user data, wherein the user data includes sending the request information User data corresponding to the end.
本发明实施例还公开了一种设备连接方法,包括:The embodiment of the invention also discloses a device connection method, including:
接收服务器发送的通知消息;其中,所述通知消息用于指示获取与客户端相匹配的用户数据;Receiving a notification message sent by the server, where the notification message is used to indicate that user data matching the client is acquired;
响应所述通知消息,获取与所述客户端相匹配的用户数据;Responding to the notification message, acquiring user data that matches the client;
以及,as well as,
接收所述客户端发送的用于请求连接的连接请求;Receiving a connection request sent by the client for requesting a connection;
响应所述连接请求,建立与所述客户端的连接,并基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。Responding to the connection request, establishing a connection with the client, and providing a service to the client based on the acquired user data matching the client.
本发明实施例还公开了一种设备连接装置,包括:The embodiment of the invention further discloses a device connecting device, comprising:
信息接收模块,用于接收客户端上报的请求信息,其中,所述请求信息用于请求分配服务提供设备;An information receiving module, configured to receive request information reported by a client, where the request information is used to request to allocate a service providing device;
设备确定模块,用于根据所述请求信息确定出为客户端提供服务的服务提供设备;a device determining module, configured to determine, according to the request information, a service providing device that provides a service for the client;
发送模块,用于将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据;a sending module, configured to send the determined device information of the service providing device to the client, and notify the determined service providing device to acquire user data that matches the client;
其中,所述设备信息用于指示所述客户端根据所述设备信息建立与所述确定出的服务提供设备之间的连接,所述确定出的服务提供设备基于获取的所述用户数据为所述客 户端提供服务。The device information is used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained user data. Teller The terminal provides services.
本发明实施例还公开了一种设备连接装置,包括:The embodiment of the invention further discloses a device connecting device, comprising:
信息发送模块,用于向服务器发送用于请求分配服务提供设备的请求信息;An information sending module, configured to send, to the server, request information for requesting allocation of the service providing device;
设备信息接收模块,用于接收服务器根据所述请求信息返回的设备信息;其中,所述设备信息包括:所述服务器确定出的服务提供设备的设备信息;a device information receiving module, configured to receive device information returned by the server according to the request information, where the device information includes: device information of the service providing device determined by the server;
连接建立模块,用于根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接;a connection establishing module, configured to establish a connection with the determined service providing device according to the received device information;
服务接收模块,用于接收所述服务提供设备基于获取的用户数据提供的服务,其中,所述用户数据包括所述请求信息的发送端对应的用户数据。The service receiving module is configured to receive the service provided by the service providing device based on the acquired user data, where the user data includes user data corresponding to the sending end of the request information.
本发明实施例还公开了一种设备连接装置,包括:The embodiment of the invention further discloses a device connecting device, comprising:
通知消息接收模块,用于接收服务器发送的通知消息;其中,所述通知消息用于指示获取与客户端相匹配的用户数据;a notification message receiving module, configured to receive a notification message sent by the server, where the notification message is used to indicate that user data matching the client is acquired;
通知消息响应模块,用于响应所述通知消息,获取与所述客户端相匹配的用户数据;a notification message response module, configured to obtain user data that matches the client in response to the notification message;
连接请求接收模块,用于接收所述客户端发送的用于请求连接的连接请求;a connection request receiving module, configured to receive a connection request sent by the client for requesting a connection;
连接请求响应模块,用于响应所述连接请求,建立与所述客户端的连接;a connection request response module, configured to establish a connection with the client in response to the connection request;
服务提供模块,用于基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。And a service providing module, configured to provide a service to the client based on the obtained user data that matches the client.
本发明实施例还公开了一种智能电视系统,包括:至少一个服务器、至少一个客户端、至少一个服务提供设备;其中,所述服务器包括如上所述的设备连接的装置;所述服务器用于向所述客户端分配服务提供设备;所述客户端设置在智能电视中,所述服务提供设备设置在网络侧,用于通过网络为建立连接的客户端提供互联网服务;其中,所述服务器包括本发明实施例所述的一种设备连接装置,所述客户端包括本发明实施例所述的另一种设备连接装置,所述服务提供设备包括本发明实施例所述的又一种设备连接装置。The embodiment of the invention further discloses a smart television system, comprising: at least one server, at least one client, at least one service providing device; wherein the server comprises a device connected as described above; the server is used for Allocating a service providing device to the client; the client is disposed in a smart TV, and the service providing device is disposed on a network side, and is configured to provide an Internet service for a connected client through a network; wherein the server includes A device connection device according to an embodiment of the present invention, the client includes another device connection device according to the embodiment of the present invention, and the service providing device includes another device connection according to the embodiment of the present invention. Device.
与现有技术相比,本发明实施例包括以下优点:Compared with the prior art, the embodiments of the invention include the following advantages:
通过本发明实施例的设备连接方案,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连 接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本发明实施例的设备连接方案,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。According to the device connection scheme of the embodiment of the present invention, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device, and the service providing device is located in the network. On the side, the service provider can provide services to the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. Pick up. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection scheme of the embodiment of the present invention, the device that provides the service for the terminal is implemented by the service provider device on the network side, and the terminal only needs to have the basic decoding function, and the service can be obtained from the network side, and is no longer dependent or subject to Digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
附图说明DRAWINGS
图1是本发明实施例一中一种设备连接方法的步骤流程图;1 is a flow chart showing the steps of a device connection method in Embodiment 1 of the present invention;
图2是本发明实施例二中一种设备连接方法的步骤流程图;2 is a flow chart showing the steps of a device connection method in Embodiment 2 of the present invention;
图3是本发明实施例三中一种设备连接方法的步骤流程图;3 is a flow chart showing the steps of a device connection method in Embodiment 3 of the present invention;
图4是本发明实施例四中一种设备连接方法的步骤流程图;4 is a flow chart showing the steps of a device connection method in Embodiment 4 of the present invention;
图5是本发明实施例五中一种设备连接方法的步骤流程图;5 is a flow chart showing the steps of a device connection method in Embodiment 5 of the present invention;
图6是本发明实施例六中一种设备连接方法的步骤流程图;6 is a flow chart showing the steps of a device connection method in Embodiment 6 of the present invention;
图7是本发明实施例七中的一种智能电视系统的架构图;7 is a block diagram of a smart television system in Embodiment 7 of the present invention;
图8是本发明实施例七中一种设备连接方法的步骤流程图;8 is a flow chart showing the steps of a device connection method in Embodiment 7 of the present invention;
图9是本申请实施例七中的一种智能电视系统中的数据交互的示意图;9 is a schematic diagram of data interaction in a smart television system according to Embodiment 7 of the present application;
图10是本发明实施例八中一种设备连接装置的结构框图;Figure 10 is a block diagram showing the structure of a device connecting device in Embodiment 8 of the present invention;
图11是本发明实施例九中一种设备连接装置的结构框图;Figure 11 is a block diagram showing the structure of a device connecting device in Embodiment 9 of the present invention;
图12是本发明实施例十中一种设备连接装置的结构框图。Figure 12 is a block diagram showing the structure of a device connecting device in Embodiment 10 of the present invention.
具体实施方式detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
本发明实施例的设备连接方法可以应用于包括客户端以及服务提供设备的系统中,其中,服务提供设备可以向客户端提供各类服务。例如,智能电视系统;其中,所述智能电视系统包括:至少一个服务器、至少一个客户端、至少一个服务提供设备;其中,所述服务器用于向所述客户端分配服务提供设备;所述客户端设置在智能电视中,所述 服务提供设备设置在网络侧,用于通过网络为建立连接的客户端提供互联网服务。The device connection method of the embodiment of the present invention can be applied to a system including a client and a service providing device, wherein the service providing device can provide various services to the client. For example, a smart television system; wherein the smart television system comprises: at least one server, at least one client, at least one service providing device; wherein the server is configured to allocate a service providing device to the client; the client The end is set in the smart TV, said The service providing device is set on the network side and is used to provide Internet services for the connected client through the network.
可选地,所述智能电视系统,还可以包括至少一个用户数据信息存储设备;所述至少一个用户数据信息存储设备包括:至少一个用户分区;其中,所述至少一个用户分区分别用于存储不同客户端对应的用户数据。Optionally, the smart television system may further include at least one user data information storage device; the at least one user data information storage device includes: at least one user partition; wherein the at least one user partition is used to store different User data corresponding to the client.
可选地,所述服务提供设备包括:网络机顶盒;所述互联网服务,包括如下中的至少一个:电视直播、音视频服务、网页服务、游戏服务。Optionally, the service providing device includes: a network set top box; the internet service includes at least one of the following: a live television, an audio and video service, a web service, and a game service.
以下,基于上述智能电视系统架构,对本发明实施例中的设备连接方案进行说明。但本领域技术人员应当明了,在实际使用中,本领域技术人员根据实际需要,依照上述智能电视系统架构所做的等同替换或容易想到的改变,均在本发明的保护范围内。Hereinafter, the device connection scheme in the embodiment of the present invention will be described based on the above-described smart television system architecture. However, it should be apparent to those skilled in the art that, in actual use, those skilled in the art, according to actual needs, equivalent replacements or conceivable changes made in accordance with the above-described smart television system architecture are within the scope of the present invention.
实施例一Embodiment 1
参照图1,示出了本发明实施例一中一种设备连接方法的步骤流程图。Referring to FIG. 1, a flow chart of steps of a device connection method in Embodiment 1 of the present invention is shown.
在本实施例中,以上述智能电视系统架构中的服务器的角度,对本实施例的设备连接方法进行说明。本实施例的所述设备连接方法具体可以包括如下步骤:In this embodiment, the device connection method of this embodiment is described in the perspective of a server in the above-described smart television system architecture. The device connection method in this embodiment may specifically include the following steps:
步骤102,接收客户端上报的请求信息。Step 102: Receive request information reported by the client.
本实施例可以采用服务提供设备和客户端为智能电视终端提供网络数据服务,其中,服务提供设备可以是设置在网络侧的硬件终端,由服务提供设备提供网络服务所需的各种数据,客户端的一种呈现形式可以是安装于智能电视终端的APP(Application,应用程序),客户端对网络提供的数据进行解码并显示。其中,每个服务提供设备和客户端可以不具有唯一的对应关系,而是在客户端请求由服务提供设备提供网络服务器时为客户端临时分配一个服务提供设备,在分配了服务提供设备且与客户端建立连接后,在连接期间服务提供设备为该客户端提供数据服务。In this embodiment, the service providing device and the client may provide a network data service for the smart television terminal, where the service providing device may be a hardware terminal disposed on the network side, and various data required for the network service provided by the service providing device, the client A presentation form of the terminal may be an APP (Application) installed on the smart TV terminal, and the client decodes and displays the data provided by the network. Wherein, each service providing device and the client may not have a unique correspondence, but temporarily allocate a service providing device to the client when the client requests the network server to be provided by the service providing device, and allocate the service providing device and After the client establishes a connection, the service providing device provides data services for the client during the connection.
在本实施例中,服务器可以接收客户端上报请求信息,其中,所述请求信息用于请求分配服务提供设备。In this embodiment, the server may receive the client requesting information, where the request information is used to request the service providing device.
步骤104,根据所述请求信息确定出为客户端提供服务的服务提供设备。Step 104: Determine, according to the request information, a service providing device that provides a service for the client.
在本实施例中,服务器可以根据所述请求信息,从智能电视终端中的多个服务提供设备中,选择一个具备服务能力的服务提供设备为所述客户端提供服务。其中,具备服务能力的服务提供设备可以理解为能够被分配使用的服务提供设备,如,处于空闲状态的服务提供设备;与之相对应的,不能被分配使用的服务提供设备则可以视为不具备服务能力的服务提供设备,如,处于工作(busy)状态的服务提供设备,其中,空闲状态 指该服务提供设备当前没有被分配出去,也即没有为客户端提供服务;工作状态指该服务提供设备当前已被分配出去,也即已经在为客户端提供服务,不能被进一步分配。In this embodiment, the server may select a service providing device with service capability from the plurality of service providing devices in the smart television terminal to provide the client with the service according to the request information. The service providing device having the service capability can be understood as a service providing device that can be allocated and used, for example, a service providing device in an idle state; correspondingly, the service providing device that cannot be allocated and used can be regarded as not Service-providing service providing device, such as a service providing device in a busy state, wherein an idle state It means that the service providing device is not currently allocated, that is, no service is provided for the client; the working state means that the service providing device is currently allocated, that is, the client is already providing services and cannot be further allocated.
本领域技术人员应当明了的是,可以采用任意一种适当的方式确定出所述为客户端提供服务的服务提供设备。例如,一种可行的方式可以如下:服务器可以根据所述请求信息中携带的用于指示所述客户端型号的型号标识信息,选择一个与所述型号标识信息相匹配的服务提供设备,作为所述为所述客户端提供服务的服务提供设备。又例如,另一可行的方式可以如下:服务器可以根据请求信息中携带的历史连接信息(所述历史连接信息包括但不限于:所述客户端最近一次连接过的服务提供设备的设备能力信息),选择一个设备能力不低于所述客户端最近一次连接过的服务提供设备的设备能力信息所指示的设备能力的服务提供设备,作为所述为所述客户端提供服务的服务提供设备。It should be apparent to those skilled in the art that the service providing device that provides the service to the client can be determined in any suitable manner. For example, a feasible manner may be as follows: the server may select a service providing device that matches the model identification information according to the model identification information used to indicate the client model carried in the request information, as a A service providing device that provides a service to the client. For another example, another feasible manner may be as follows: the server may be based on historical connection information carried in the request information (the historical connection information includes but is not limited to: device capability information of the service providing device that the client has recently connected) And selecting a service providing device whose device capability is not lower than the device capability indicated by the device capability information of the service providing device that the client has recently connected, as the service providing device that provides the service for the client.
步骤106,将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据。Step 106: Send the device information of the determined service providing device to the client, and notify the determined service providing device to acquire user data that matches the client.
在本实施例中,所述设备信息可以用于指示所述客户端根据所述设备信息建立与所述确定出的服务提供设备之间的连接,所述确定出的服务提供设备基于获取的所述用户数据为所述客户端提供服务。In this embodiment, the device information may be used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained device. The user data provides services to the client.
需要说明的是,所述用户数据可以但不仅限于包括:登录所述客户端的登录用户针对所述客户端的操作信息(包括但不仅限于:访问应用、浏览应用、删除应用、安装应用等),以及在使用各类应用过程中产生的数据信息,例如,所述登录用户的购买记录信息、登录用户登录应用时的应用账号及密码信息(免登录信息),观看过的电视节目信息等各类与所述登录用户关联的数据信息。It should be noted that the user data may include, but is not limited to, operation information (including but not limited to: accessing an application, browsing an application, deleting an application, installing an application, etc.) of the login user logging in to the client, and The data information generated during the use of various types of applications, for example, the purchase record information of the login user, the application account and password information (free login information) when the user logs in to the application, the television program information that has been viewed, and the like The data information associated with the login user.
综上所述,通过本实施例所述的设备连接方法,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接方法,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本实施例的设备连接方案中, 客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connection method according to the embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection method in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of this embodiment, The client can connect the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing the effective interaction between the client and the server as the service providing device, and further, the service providing device can obtain the The user data matched by the client provides services for the user, which greatly improves the user experience.
实施例二Embodiment 2
本实施例基于上述实施例一的设备连接方法,并对实施例一的设备连接方法进行了进一步的优化。This embodiment is based on the device connection method of the first embodiment, and further optimizes the device connection method of the first embodiment.
参照图2,示出了本发明实施例二中一种设备连接方法的步骤流程图。Referring to FIG. 2, a flow chart of steps of a device connection method in Embodiment 2 of the present invention is shown.
在本实施例中,仍以上述智能电视系统架构中的服务器的角度,对本实施例的设备连接方法进行说明。本实施例的设备连接方法具体可以包括如下步骤:In this embodiment, the device connection method of this embodiment is still described in the perspective of the server in the smart TV system architecture. The device connection method in this embodiment may specifically include the following steps:
步骤202,服务器接收客户端上报的请求信息。Step 202: The server receives the request information reported by the client.
其中,所述请求信息用于请求分配服务提供设备。The request information is used to request to allocate a service providing device.
步骤204,服务器根据所述请求信息确定出为客户端提供服务的服务提供设备。Step 204: The server determines, according to the request information, a service providing device that provides a service for the client.
在本实施例中,为了保证设备之间连接的安全性,避免将服务提供设备分配给恶意客户端,一优选地,在上述步骤204执行之前可以先对客户端的合法性进行判断。其中,若确定所述客户端合法,则可以执行上述步骤204;若确定所述客户端非法(如,被恶意篡改过的客户端),则可以直接结束流程,避免了风险连接,进而有效防止了用户数据(尤其涉及用户隐私的数据)的泄露。In this embodiment, in order to ensure the security of the connection between the devices, the service providing device is not allocated to the malicious client. Preferably, the validity of the client may be determined before the step 204 is performed. If it is determined that the client is legal, the foregoing step 204 may be performed; if it is determined that the client is illegal (for example, a maliciously falsified client), the process may be directly ended, the risk connection is avoided, and the effective connection is effectively prevented. Leakage of user data (especially data related to user privacy).
其中,一种可行的判断客户端是否合法的方法可以如下:服务器根据所述请求信息中携带的所述客户端的客户端信息,确定所述客户端合法。The method for determining whether the client is legal is as follows: The server determines that the client is legal according to the client information of the client carried in the request information.
优选地,所述客户端信息包括但不仅限于如下信息中的至少一种:用于标识所述客户端的随机标识(Key)、所述随机标识的随机标识密码(Secret)、所述客户端的设备地址(Media Access Control地址,MAC地址,或称为物理地址、硬件地址)以及,时间戳(Time)。具体地,在判断所述客户端合法时,可以根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种判断所述客户端是否合法;若所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种分别与保存在本地的对应信息一致,则确定所述客户端合法。Preferably, the client information includes, but is not limited to, at least one of the following information: a random identifier (Key) for identifying the client, a random identification password (Secret) of the random identifier, and a device of the client. Address (Media Access Control address, MAC address, or physical address, hardware address) and timestamp (Time). Specifically, when it is determined that the client is legal, the client may be determined to be legal according to at least one of the random identifier, the random identifier password, the device address, and the timestamp; The at least one of the random identifier, the random identification password, the device address, and the timestamp respectively is consistent with the corresponding information stored locally, and then the client is determined to be legal.
例如,若所述请求信息中的随机标识与本地保存的随机标识一致,则可以确定所述客户端合法;又如,若所述请求信息中的随机标识密码与本地保存的随机标识密码一致,则可以确定所述客户端合法。需要说明的是,当所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的任意信息不一致时,则所述客户端不合法。 For example, if the random identifier in the request information is consistent with the locally stored random identifier, the client may be determined to be legal; for example, if the random identifier password in the request information is consistent with the locally stored random identifier password, Then it can be determined that the client is legal. It should be noted that when the random identifier, the random identification password, the device address, and any information in the timestamp are inconsistent, the client is invalid.
进一步优选地,服务器可以获取所述客户端的第一验证信息(Sign1),然后判断获取的所述第一验证信息与第二验证信息(Sign2)是否一致,得到第一判断结果,最后,根据所述第一判断结果判断所述客户端是否合法。需要说明的是,所述第一验证信息可以是所述客户端根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种生成的验证信息;所述第二验证信息则是采用与所述第一验证信息相同的生成方式在本地生成的验证信息。Further preferably, the server may acquire the first verification information (Sign1) of the client, and then determine whether the obtained first verification information and the second verification information (Sign2) are consistent, and obtain a first determination result, and finally, according to the The first judgment result determines whether the client is legal. It should be noted that the first verification information may be verification information generated by the client according to at least one of the random identifier, the random identifier password, the device address, and the timestamp; The second verification information is verification information generated locally using the same generation manner as the first verification information.
例如,第一验证信息Sign1可以由所述客户端根据所述客户端中保存的随机标识、随机标识密码、设备地址和时间戳生成,如:Sign1=MD5(Key1+Mac1+Time1+Secret1),其中,Key1、Secret1、Mac1和Time1分别可以表示保存在客户端中的随机标识、随机标识密码、设备地址和时间戳。则,对应地,第二验证信息可以由服务器根据服务器中保存的随机标识、随机标识密码、设备地址和时间戳按照相同规则生成,如:Sign2=MD5(Key2+Mac2+Time2+Secret2),其中,Key2、Secret2、Mac2和Time2分别可以表示保存在服务器本地的随机标识、随机标识密码、设备地址和时间戳。若,Sign1=Sign2,则可以确定所述客户端合法。For example, the first verification information Sign1 may be generated by the client according to a random identifier, a random identification password, a device address, and a timestamp stored in the client, such as: Sign1=MD5 (Key1+Mac1+Time1+Secret1), Key1, Secret1, Mac1, and Time1 respectively represent a random identifier, a random identification password, a device address, and a timestamp stored in the client. Then, correspondingly, the second verification information may be generated by the server according to the same rule according to the random identifier, the random identifier password, the device address, and the timestamp stored in the server, for example, Sign2=MD5(Key2+Mac2+Time2+Secret2), where , Key2, Secret2, Mac2, and Time2 can respectively represent a random identifier, a random identification password, a device address, and a timestamp stored locally on the server. If Sign1 = Sign2, it can be determined that the client is legal.
步骤206,服务器将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据。Step 206: The server sends the device information of the determined service providing device to the client, and notifies the determined service providing device to acquire user data that matches the client.
在本实施例中,所述设备信息可以用于指示所述客户端根据所述设备信息建立与所述确定出的服务提供设备之间的连接,所述确定出的服务提供设备基于获取的所述用户数据为所述客户端提供服务。In this embodiment, the device information may be used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained device. The user data provides services to the client.
需要说明的是,在本实施例中,所述设备信息所指示的客户端根据所述设备信息建立的与所述确定出的服务提供设备之间的连接可以是一个直接地连接,也即,确定出的服务提供设备可以基于获取的所述用户数据直接为所述客户端提供服务。It should be noted that, in this embodiment, the connection between the client indicated by the device information and the determined service providing device according to the device information may be directly connected, that is, The determined service providing device can directly provide the client with the service based on the obtained user data.
在本实施例的一个优选方案中,所述设备信息所指示的客户端根据所述设备信息建立的与所述确定出的服务提供设备之间的连接也可以是一个预连接,确定出的服务提供设备还未基于获取的所述用户数据为所述客户端提供服务。为保证智能电视系统的安全性,在所述预连接建立之后,确定出的服务提供设备基于获取的所述用户数据为所述客户端提供服务之前,可以先判断所述客户端与所述服务提供设备之间的连接请求(所述连接请求可以用于请求与所述确定出的服务提供设备建立连接)是否合法,当所述连接请求合法之后,确定出的服务提供设备基于获取的所述用户数据正式为所述客户端提供服务。 In a preferred embodiment of the present embodiment, the connection between the determined service provider and the determined service providing device according to the device information may be a pre-connection and a determined service. The providing device has not served the client based on the obtained user data. In order to ensure the security of the smart television system, after the pre-connection is established, the determined service providing device may first determine the client and the service before providing the service to the client based on the obtained user data. Providing a connection request between the devices (the connection request may be used to request to establish a connection with the determined service providing device), and if the connection request is legal, the determined service providing device is based on the obtained User data is officially served to the client.
其中,一种可行性的判断所述连接请求是否合法的方法可以如下:Among them, a feasible method for judging whether the connection request is legal may be as follows:
首先,服务器接收所述确定出的服务提供设备上报的验证请求;其中,所述验证请求用于请求验证所述客户端与所述确定出的服务提供设备之间的连接请求是否合法。First, the server receives the verification request reported by the determined service providing device, where the verification request is used to request whether to verify whether the connection request between the client and the determined service providing device is legal.
然后,服务器响应所述验证请求,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果;Then, the server determines, according to the verification request, whether the connection request between the client and the determined service providing device is legal, and obtains a second determination result;
最后,服务器将所述第二判断结果发送给所述确定出的服务提供设备。Finally, the server sends the second determination result to the determined service providing device.
在本实施例中,所述验证请求包括但不仅限于包括如下信息中的至少一种:所述确定出的服务提供设备的唯一识别码(Universally Unique Identifier,UUID)、随机令牌(Token)、和所述客户端的随机标识;其中,所述唯一标识码用于唯一标识所述确定出的服务提供设备。In this embodiment, the verification request includes, but is not limited to, including at least one of the following: a uniquely unique identifier (UUID), a random token (Token) of the determined service providing device, And a random identifier of the client; wherein the unique identifier is used to uniquely identify the determined service providing device.
进一步优选地,在本实施例中,服务器可以根据所述确定出的服务提供设备的唯一标识码、随机令牌和所述客户端的随机标识中的至少一种,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果。Further preferably, in this embodiment, the server may determine, according to the determined at least one of a unique identifier of the service providing device, a random token, and a random identifier of the client, the client and the The determined connection request between the service providing devices is legal, and the second judgment result is obtained.
例如,若UUID1=UUID2,则可以确定所述连接请求合法;若Token1=Token2,则可以确定所述连接合法。其中,UUID1和UUID2可以分别是指服务提供设备上报的唯一识别码(可以但不仅限于携带在所述验证请求中上报)和服务器本地保存的唯一标识码;Token1和Token2可以分别是指服务提供设备上报的随机令牌(可以但不仅限于携带在所述验证请求中上报)和服务器本地保存的随机令牌。需要说明的是,当所述唯一标识码、随机令牌和随机标识中的任意信息不一致时,则可以确定所述连接请求不合法。For example, if UUID1=UUID2, it can be determined that the connection request is legal; if Token1=Token2, it can be determined that the connection is legal. The UUID1 and the UUID2 may respectively refer to a unique identifier (which may be, but is not limited to, carried in the verification request) and a unique identifier stored locally by the server; Token1 and Token2 may refer to the service providing device respectively. The reported random token (which may be, but is not limited to, carried in the verification request) and a random token stored locally by the server. It should be noted that when any of the unique identification code, the random token, and the random identifier are inconsistent, it may be determined that the connection request is invalid.
在本实施例的一优选方案中,为了保证智能电视系统的稳定性,所述设备连接方法还可以包括如下步骤208:In a preferred solution of the embodiment, in order to ensure the stability of the smart television system, the device connection method may further include the following step 208:
步骤208,服务器获取所述确定出的服务提供设备的状态信息。Step 208: The server acquires the status information of the determined service providing device.
在本实施例中,所述状态信息可以用于指示所述确定出的服务提供设备的工作状态,进而可以避免上述确定出的服务提供设备被服务器分配给其他客户端,保证了智能电视系统的可靠性和稳定性。In this embodiment, the status information may be used to indicate the working status of the determined service providing device, thereby preventing the determined service providing device from being allocated to other clients by the server, and ensuring the smart television system. Reliability and stability.
需要说明的是,本实施例中所述的随机标识和/或与所述随机标识相匹配的随机标识密码可以是在客户端向服务器请求注册时,由所述服务器生成。It should be noted that the random identifier described in this embodiment and/or the random identifier password matching the random identifier may be generated by the server when the client requests registration from the server.
其中,一种可行的生成所述随机标识和/或与所述随机标识相匹配的随机标识密码的方法可以如下:服务器接收客户端的注册请求;服务器为所述客户端分配一个用于存储所述客户端对应的用户数据的用户分区,以及,根据所述注册请求生成与所述客户端相 匹配的随机标识和/或与所述随机标识相匹配的随机标识密码;服务器保存并将所述生成的随机标识和/或随机标识密码发送至所述客户端。优选地,为了保证分配的随机标识和/或随机标识密码的可靠性和安全性,服务器在生成所述随机标识和/或随机标识时,可以采用随机生成模式生成,这样,即使传递的是相同的客户端信息,每次注册得到的随机标识和/或随机标识密码也是不同的,避免了随机标识和/或随机标识密码被恶意获取,提供了智能电视系统的安全性。当然,本领域技术人员应当明了的是,可以采用任意一种适当的方式生成所述随机标识和/或随机标识密码,本实施例对此不作限制。进一步优选地,本实施例中上述的随机令牌可以但不仅限于是服务器在接收到客户端上报的请求信息,确定出为客户端提供服务的服务提供设备之后随机生成,并将生成的随机令牌保存在本地,以及,将生成的随机令牌发送至所述客户端。The method for generating the random identifier and/or the random identifier password matching the random identifier may be as follows: the server receives a registration request of the client; the server allocates one for the client to store the a user partition of the user data corresponding to the client, and generating, according to the registration request, the client A matching random identifier and/or a random identification password matching the random identifier; the server saves and sends the generated random identifier and/or random identification password to the client. Preferably, in order to ensure the reliability and security of the assigned random identifier and/or the random identification password, the server may generate the random identifier and/or the random identifier by using a random generation mode, so that even if the same is delivered The client information, the random identifier and/or the random identification password obtained each time is also different, and the random identification and/or the random identification password are prevented from being maliciously obtained, thereby providing the security of the smart television system. Of course, it should be understood by those skilled in the art that the random identifier and/or the random identifier password can be generated in any suitable manner, which is not limited in this embodiment. Further preferably, the foregoing random token in the embodiment may be, but is not limited to, a server randomly receiving the request information reported by the client, determining that the service providing device that provides the service for the client is randomly generated, and generating the random order. The card is saved locally and the generated random token is sent to the client.
综上所述,通过本实施例所述的设备连接方法,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接方法,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connection method according to the embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection method in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
进一步地,本实施例所述的设备连接方法,可以根据客户端上报请求信息确定所述客户端合法,在确定客户端合法之后在进行服务提供设备的分配,确定出一个服务提供设备;进一步地,在客户端与确定出的服务提供设备正式连接之前,可以对用于请求连接所述客户端与确定出的服务提供设备的连接请求的合法性进行判断,可见,在本实施例中,通过多次判断确定,保证了客户端与服务提供设备之间连接的安全性,避免了非法客户端的接入,提高了智能电视系统的安全性,避免了用户数据信息的泄露。Further, the method for connecting the device according to the embodiment may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
实施例三 Embodiment 3
参照图3,示出了本发明实施例三中一种设备连接方法的步骤流程图。Referring to FIG. 3, a flow chart of steps of a device connection method in Embodiment 3 of the present invention is shown.
在本实施例中,以上述智能电视系统架构中的客户端的角度,对本实施例的设备连接方法进行说明。本实施例的所述设备连接方法具体可以包括如下步骤:In this embodiment, the device connection method of this embodiment is described in the perspective of a client in the above-mentioned smart television system architecture. The device connection method in this embodiment may specifically include the following steps:
步骤302,客户端向服务器发送用于请求分配服务提供设备的请求信息。Step 302: The client sends request information for requesting allocation of the service providing device to the server.
步骤304,客户端接收服务器根据所述请求信息返回的设备信息。Step 304: The client receives device information returned by the server according to the request information.
在本实施例中,所述设备信息可以包括:所述服务器确定出的服务提供设备的设备信息。In this embodiment, the device information may include: device information of the service providing device determined by the server.
步骤306,客户端根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接,并接收所述服务提供设备基于获取的用户数据提供的服务。Step 306: The client establishes a connection with the determined service providing device according to the received device information, and receives a service provided by the service providing device based on the acquired user data.
在本实施例中,所述用户数据包括所述请求信息的发送端(也即所述客户端)对应的用户数据。In this embodiment, the user data includes user data corresponding to the sending end of the request information (that is, the client).
综上所述,通过本实施例所述的设备连接方法,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接方法,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connection method according to the embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection method in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
实施例四Embodiment 4
本实施例基于上述实施例三的设备连接方法,并对实施例三的设备连接方法进行了进一步的优化。This embodiment is based on the device connection method of the third embodiment, and further optimizes the device connection method of the third embodiment.
参照图4,示出了本发明实施例四中一种设备连接方法的步骤流程图。Referring to FIG. 4, a flow chart of steps of a device connection method in Embodiment 4 of the present invention is shown.
在本实施例中,仍以上述智能电视系统架构中的客户端的角度,对本实施例的设备连接方法进行说明。本实施例的设备连接方法具体可以包括如下步骤: In this embodiment, the device connection method in this embodiment is still described in the perspective of the client in the smart TV system architecture. The device connection method in this embodiment may specifically include the following steps:
步骤402,客户端向服务器发送用于请求分配服务提供设备的请求信息。Step 402: The client sends request information for requesting allocation of the service providing device to the server.
在本实施例中,所述请求信息中可以携带有客户端的客户端信息,其中,所述客户端信息可以包括:用于指示所述客户端型号的型号信息,所述客户端的设备地址,以及保存客户端本地的随机标识、随机标识密码、随机令牌和时间戳中的至少一种。In this embodiment, the request information may carry the client information of the client, where the client information may include: model information indicating the model of the client, a device address of the client, and Save at least one of a random identifier, a random identification password, a random token, and a timestamp local to the client.
步骤404,客户端接收服务器根据所述请求信息返回的设备信息。Step 404: The client receives device information returned by the server according to the request information.
在本实施例中,服务器在接收到客户端发送的请求信息之后,可以根据所述请求信息为所述客户端确定出一个服务提供设备。或者,优选地,服务器也可以先确定客户端合法,在确定客户端合法之后为所述客户端确定出一个服务提供设备。例如,客户端可以将所述客户端信息携带在所述请求信息中一起发送至服务器,由服务器根据所述客户端信息确定所述客户端合法。其中,在本实施例中,所述设备信息可以是指所述服务器确定出的服务提供设备的设备信息,如:所述确定出的服务提供设备的唯一识别码(UUID)、服务提供设备的IP地址、端口地址(如,port端口地址)等。In this embodiment, after receiving the request information sent by the client, the server may determine a service providing device for the client according to the request information. Alternatively, preferably, the server may first determine that the client is legal, and determine a service providing device for the client after determining that the client is legal. For example, the client may carry the client information in the request information and send it to the server together, and the server determines that the client is legal according to the client information. In this embodiment, the device information may refer to device information of the service providing device determined by the server, such as: the unique identification code (UUID) of the determined service providing device, and the service providing device. IP address, port address (for example, port port address), etc.
步骤406,客户端根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接,并接收所述服务提供设备基于获取的用户数据提供的服务。Step 406: The client establishes a connection with the determined service providing device according to the received device information, and receives a service provided by the service providing device based on the acquired user data.
在本实施例中,所述用户数据可以是指与所述客户端相匹配的用户数据,如,登录所述客户端的登录用户的用户数据。In this embodiment, the user data may refer to user data that matches the client, such as user data of a login user that logs in to the client.
在本实施例的一个优选方案中,所述步骤406具体可以包括如下子步骤:In a preferred embodiment of the embodiment, the step 406 may specifically include the following sub-steps:
子步骤4062,客户端获取本地保存的客户端信息。Sub-step 4062, the client obtains locally saved client information.
子步骤4064,客户端根据所述接收到的设备信息生成连接请求,或者,根据所述接收到的设备信息和所述客户端信息生成连接请求;其中,所述连接请求用于请求与所述确定出的服务提供设备建立连接。Sub-step 4064, the client generates a connection request according to the received device information, or generates a connection request according to the received device information and the client information; wherein the connection request is used for requesting The determined service providing device establishes a connection.
子步骤4066,客户端将所述连接请求发送至所述确定出的服务提供设备。Sub-step 4066, the client sends the connection request to the determined service providing device.
子步骤4068,客户端根据所述确定出的服务提供设备返回的响应消息,建立与所述确定出的服务提供设备之间的连接。Sub-step 4068, the client establishes a connection with the determined service providing device according to the determined response message returned by the service providing device.
所述客户端信息包括如下信息中的至少一种:用于标识客户端的随机标识、所述随机标识的随机标识密码、所述客户端的设备地址,以及,时间戳。The client information includes at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, a device address of the client, and a timestamp.
需要说明的是,其中,客户端本地保存的随机标识和/或随机标识密码可以是客户端在注册时,由所述服务器为所述客户端随机生成的。例如,一种可行的方式可以如下:It should be noted that the random identifier and/or the random identifier password saved locally by the client may be randomly generated by the server for the client when the client registers. For example, one possible way can be as follows:
所述设备连接方法还可以包括:The device connection method may further include:
步骤408,客户端向所述服务器发送注册请求。 In step 408, the client sends a registration request to the server.
步骤410,客户端接收并保存所述服务器根据所述注册请求返回的所述用于标识客户端的随机标识和/或所述随机标识的随机标识密码。Step 410: The client receives and saves the random identifier used by the server to identify the random identifier of the client and/or the random identifier returned according to the registration request.
此外,客户端本地保存的随机令牌和/或时间戳可以是服务器在确定出为所述客户端提供服务的服务提供设备后,随机生成并发送至所述客户端保存的。优选地,客户端可以进一步将接收到的随机令牌和/或时间戳发送至确定出的服务提供设备,并由确定出的服务器提供设备将所述随机令牌和/或时间戳上报给服务器,由服务器根据所述随机令牌和/或时间戳生成验证请求,其中,所述验证请求可以用于请求验证所述连接请求是否合法。In addition, the random token and/or timestamp saved locally by the client may be randomly generated and sent to the client after the server determines the service providing device that provides the service for the client. Preferably, the client may further send the received random token and/or timestamp to the determined service providing device, and report the random token and/or timestamp to the server by the determined server providing device. And generating, by the server, the verification request according to the random token and/or the timestamp, wherein the verification request may be used to request verification whether the connection request is legal.
综上所述,通过本实施例所述的设备连接方法,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接方法,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connection method according to the embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection method in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
进一步地,本实施例所述的设备连接方法,可以根据客户端上报请求信息确定所述客户端合法,在确定客户端合法之后在进行服务提供设备的分配,确定出一个服务提供设备;进一步地,在客户端与确定出的服务提供设备正式连接之前,可以对用于请求连接所述客户端与确定出的服务提供设备的连接请求的合法性进行判断,可见,在本实施例中,通过多次判断确定,保证了客户端与服务提供设备之间连接的安全性,避免了非法客户端的接入,提高了智能电视系统的安全性,避免了用户数据信息的泄露。Further, the method for connecting the device according to the embodiment may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
实施例五Embodiment 5
参照图5,示出了本发明实施例五中一种设备连接方法的步骤流程图。Referring to FIG. 5, a flow chart of steps of a device connection method in Embodiment 5 of the present invention is shown.
在本实施例中,以上述智能电视系统架构中的服务提供设备的角度,对本实施例的 设备连接方法进行说明。本实施例的所述设备连接方法具体可以包括如下步骤:In this embodiment, the perspective of the service providing device in the smart TV system architecture described above is used for the embodiment. The device connection method is explained. The device connection method in this embodiment may specifically include the following steps:
步骤502,服务提供设备接收服务器发送的通知消息。Step 502: The service providing device receives the notification message sent by the server.
在本实施例中,所述通知消息用于指示获取与客户端相匹配的用户数据。In this embodiment, the notification message is used to indicate that user data matching the client is obtained.
步骤504,服务提供设备响应所述通知消息,获取与所述客户端相匹配的用户数据;以及,接收所述客户端发送的用于请求连接的连接请求。Step 504: The service providing device acquires user data that matches the client in response to the notification message, and receives a connection request sent by the client to request a connection.
步骤506,服务提供设备响应所述连接请求,建立与所述客户端的连接,并基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。Step 506: The service providing device establishes a connection with the client in response to the connection request, and provides a service to the client based on the obtained user data that matches the client.
综上所述,通过本实施例所述的设备连接方法,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接方法,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connection method according to the embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection method in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
实施例六Embodiment 6
本实施例基于上述实施例六的设备连接方法,并对实施例六的设备连接方法进行了进一步的优化。This embodiment is based on the device connection method of the above sixth embodiment, and further optimizes the device connection method of the sixth embodiment.
参照图6,示出了本发明实施例六中一种设备连接方法的步骤流程图。Referring to FIG. 6, a flow chart of steps of a device connection method in Embodiment 6 of the present invention is shown.
在本实施例中,仍以上述智能电视系统架构中的服务提供设备的角度,对本实施例的设备连接方法进行说明。本实施例的设备连接方法具体可以包括如下步骤:In this embodiment, the device connection method in this embodiment is still described in the perspective of the service providing device in the smart TV system architecture. The device connection method in this embodiment may specifically include the following steps:
步骤602,服务提供设备接收服务器发送的通知消息。Step 602: The service providing device receives the notification message sent by the server.
在本实施例中,所述通知消息用于指示获取与客户端相匹配的用户数据。其中,一种可行的获取与客户端相匹配的用户数据的方法可以如下:服务提供设备响应所述通知消息,将所述客户端的登录用户对应的用户分区挂载到本地;其中,所述客户端的登录 用户对应的用户分区中携带有所述与所述客户端相匹配的用户数据区。In this embodiment, the notification message is used to indicate that user data matching the client is obtained. The method for obtaining the user data that matches the client may be as follows: the service providing device, in response to the notification message, suspending the user partition corresponding to the login user of the client to the local; wherein the client Login The user partition corresponding to the user carries the user data area that matches the client.
步骤604,服务提供设备响应所述通知消息,获取与所述客户端相匹配的用户数据;以及,接收所述客户端发送的用于请求连接的连接请求。Step 604: The service providing device acquires user data that matches the client in response to the notification message, and receives a connection request sent by the client to request a connection.
步骤606,服务提供设备响应所述连接请求,建立与所述客户端的连接,并基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。Step 606: The service providing device establishes a connection with the client in response to the connection request, and provides a service to the client based on the obtained user data that matches the client.
在本实施例中,优选地,服务提供设备可以根据所述连接请求生成验证请求,将所述验证请求发送至所述服务器;其中,所述验证请求用于请求验证所述连接请求是否合法;然后,根据所述服务器返回的验证结果确定所述连接请求合法后,建立与所述客户端的连接。In this embodiment, preferably, the service providing device may generate an authentication request according to the connection request, and send the verification request to the server; wherein the verification request is used to request verification whether the connection request is legal; Then, after determining that the connection request is legal according to the verification result returned by the server, establishing a connection with the client.
进一步优选地,在本实施例中,所述连接请求中可以包括但不仅限于如下信息中的至少一种:所述服务器为客户端分配的服务提供设备的设备信息、所述客户端的客户端信息、和服务器分配给所述客户端的随机令牌。在生成验证请求时,具体地,服务提供设备可以根据所述设备信息、客户端信息和随机令牌中的至少一种生成验证请求;其中,所述设备信息包括:用于标识所述服务提供设备的唯一识别码;所述客户端信息包括如下信息中的至少一种:用于标识所述客户端的随机标识和所述随机标识的随机标识密码。Further preferably, in the embodiment, the connection request may include, but is not limited to, at least one of the following: the device information of the service providing device allocated by the server for the client, and the client information of the client. And a random token assigned to the client by the server. When generating the verification request, specifically, the service providing device may generate an authentication request according to at least one of the device information, the client information, and the random token; wherein the device information includes: used to identify the service providing a unique identifier of the device; the client information includes at least one of the following information: a random identifier for identifying the client and a randomly identified password for the random identifier.
在本实施例的一个优选方案中,为了防止服务提供设备被分配给其他的客户端造成智能电视系统工作异常,上述设备连接方法还可以包括如下步骤,如下步骤具体可以在上述步骤606之后执行:In a preferred embodiment of the present embodiment, in order to prevent the service providing device from being assigned to other clients, the smart TV system is abnormal. The device connection method may further include the following steps. The following steps may be performed after the step 606:
步骤608,服务提供设备将当前状态配置为忙碌状态。In step 608, the service providing device configures the current state as a busy state.
步骤610,服务提供设备生成用于指示所述忙碌状态的状态信息。Step 610: The service providing device generates status information for indicating the busy status.
步骤612,服务提供设备将所述状态信息发送给所述服务器。Step 612: The service providing device sends the status information to the server.
若服务提供设备将忙碌状态的状态信息发送给服务器,在后续为客户端分配服务提供设备时,服务器将不再考虑该处于忙碌状态的服务提供设备,从而避免了智能电视系统工作异常,并且,大大提高了为客户端分配服务提供设备的效率和准确性。If the service providing device sends the status information of the busy state to the server, when the service providing device is subsequently allocated to the client, the server will no longer consider the service providing device in the busy state, thereby avoiding the abnormal operation of the smart television system, and The efficiency and accuracy of assigning service providers to clients is greatly improved.
综上所述,通过本实施例所述的设备连接方法,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接 网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接方法,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connection method according to the embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect according to the device information. A service provider on the network side. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection method in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
进一步地,本实施例所述的设备连接方法,可以根据客户端上报请求信息确定所述客户端合法,在确定客户端合法之后在进行服务提供设备的分配,确定出一个服务提供设备;进一步地,在客户端与确定出的服务提供设备正式连接之前,可以对用于请求连接所述客户端与确定出的服务提供设备的连接请求的合法性进行判断,可见,在本实施例中,通过多次判断确定,保证了客户端与服务提供设备之间连接的安全性,避免了非法客户端的接入,提高了智能电视系统的安全性,避免了用户数据信息的泄露。Further, the method for connecting the device according to the embodiment may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
实施例七Example 7
在本实施例中,可以采用如下的智能电视系统:该智能电视系统可以包括:至少一个客户端、至少一个调度服务器和至少一个服务提供设备。其中,客户端是一种可以使用服务提供设备提供的APP应用程序的终端,如,机顶盒、智能移动终端、PAD(Portable Android Device平板电脑)、具有解码功能的智能电视等。所述服务提供设备可以作为服务端设置在云端,远程为所述客户端提供服务。调度服务器在接收到客户端申请服务提供设备的请求之后,可以根据设定分配策略从云端的多个服务提供设备中选择一个服务提供设备分配给所述客户端。In this embodiment, a smart television system may be employed: the smart television system may include at least one client, at least one dispatch server, and at least one service providing device. The client is a terminal that can use the APP application provided by the service providing device, such as a set top box, a smart mobile terminal, a PAD (Portable Android Device tablet), a smart TV with a decoding function, and the like. The service providing device can be set as a server in the cloud to remotely provide services for the client. After receiving the request of the client to apply for the service providing device, the scheduling server may select one of the plurality of service providing devices in the cloud to allocate to the client according to the set allocation policy.
这里需要说明的是,在本实施例中,服务提供设备可以作为硬件设备设置在云端,软件(应用程序)可以安装在服务提供设备中,服务提供设备可以在云端将各类应用程序的用户界面(User Interface,UI)进行压缩编码,客户端需要有基本解码能力即可向用户展现应用程序的用户界面,实现对各类应用程序的操作。换而言之,与传统的智能电视系统所不同的是,在本实施例中,软件(应用程序)可以不安装在机顶盒中,可以安装在服务提供设备中,通过服务提供设备为用户提供服务。由于可以不再需要将软件安装在机顶盒中,故可以不再单独设置机顶盒。例如,若所述客户端为智能移动终端、或具有解码功能的智能电视时,则可以直接将智能移动终端(或具有解码功能的智能电视)与所述服务提供设备进行连接,用户可以不需要单独购买/设置机顶盒,节约了用户 成本;同时,智能移动终端(或具有解码功能的智能电视)与所述服务提供设备直接进行交互,提高了交互效率,减少了对机顶盒的维护步骤,降低了对资源的占用。当然,对有现有机顶盒来说,其具有基本解码能力,本发明的方案也仍然适用。进一步地,所述调度服务器可以是指一个服务器,也可以是指等同于所述调度服务器功能的多个服务器组成的服务器群组。It should be noted that, in this embodiment, the service providing device can be set in the cloud as a hardware device, the software (application) can be installed in the service providing device, and the service providing device can be used in the cloud to set the user interface of various applications. (User Interface, UI) for compression coding, the client needs to have basic decoding capabilities to present the user interface of the application to the user, and to operate on various applications. In other words, unlike the conventional smart television system, in the embodiment, the software (application) may not be installed in the set top box, may be installed in the service providing device, and provide services to the user through the service providing device. . Since the software can no longer be installed in the set top box, the set top box can no longer be set separately. For example, if the client is a smart mobile terminal or a smart TV with a decoding function, the smart mobile terminal (or a smart TV with decoding function) can be directly connected to the service providing device, and the user does not need to Separate purchase/setting of set-top boxes, saving users At the same time, the intelligent mobile terminal (or the smart TV with decoding function) directly interacts with the service providing device, which improves the interaction efficiency, reduces the maintenance steps for the set top box, and reduces the occupation of resources. Of course, for existing set top boxes, which have basic decoding capabilities, the solution of the present invention still applies. Further, the scheduling server may refer to a server, or may refer to a server group composed of multiple servers equivalent to the scheduling server function.
本发明实施例中,客户端侧所显示的用户界面是能够为用户提供各种网络服务,例如在用户界面上可以包括各种菜单选项或图标等服务功能,例如包括:高清视频,超清电视、软件下载、游戏、生活服务(如缴费、购物等)等,从而通过该客户端用户可在电视上免费观看高清电影电视、玩体感游戏、热门大型3D游戏、网络购物、支付水电煤费用等等功能。在用户选择某一功能的图标或菜单后,可以继续进入相应的UI界面执行操作,例如播放高清视频时可以选择本地或网络资源等。In the embodiment of the present invention, the user interface displayed on the client side is capable of providing various network services for the user, for example, the user interface may include various menu options or icons, such as: high definition video, ultra clear television , software downloads, games, life services (such as payment, shopping, etc.), so that the client users can watch HD movies and TV, play somatosensory games, popular large 3D games, online shopping, pay for water and electricity, etc. on the TV for free. And other functions. After the user selects an icon or menu of a certain function, the user can continue to enter the corresponding UI interface to perform operations, such as local or network resources when playing HD video.
针对客户端所显示的UI界面,用户可以通过遥控器的外置设备进行控制,如选择某个功能,进入下一级界面等,而由于UI界面是基于服务提供设备的传送流解析显示的,因此对UI界面的控制响应也由服务提供设备执行。本实施例中服务提供设备在与客户端建立连接后,预先在用户空间虚拟一输入设备,通过该虚拟输入设备模拟硬件输入信号,在系统注入用户的输入信号对应输入事件并进行分发,从而实现服务提供设备对用户控制的响应。For the UI interface displayed by the client, the user can control through the external device of the remote controller, such as selecting a certain function and entering the next level interface, and the UI interface is displayed based on the transport stream of the service providing device. Therefore, the control response to the UI interface is also performed by the service providing device. In this embodiment, after establishing a connection with the client, the service providing device virtualizes an input device in the user space, simulates a hardware input signal through the virtual input device, and injects an input signal of the user into the system to input an event and distribute the image, thereby realizing The service provides the device's response to user control.
本实施例中,一种优选的智能电视系统的架构如图7所示,参照图7,示出了本发明实施例七中的一种智能电视系统的架构图。在本实施例中,所述智能电视系统具体可以包括:至少一个设备服务器(如图7所示的设备服务器701)、至少一个调度服务器(如图7所示的调度服务器702)和至少一个客户端(如图7所示的客户端703)。其中,每个设备服务器中包括至少一个服务提供设备(如图7所示的设备服务器701中的服务提供设备704)。In this embodiment, an architecture of a preferred smart television system is shown in FIG. 7. Referring to FIG. 7, an architecture diagram of a smart television system in Embodiment 7 of the present invention is shown. In this embodiment, the smart television system may specifically include: at least one device server (such as the device server 701 shown in FIG. 7), at least one scheduling server (such as the scheduling server 702 shown in FIG. 7), and at least one client. End (client 703 shown in Figure 7). Each device server includes at least one service providing device (such as the service providing device 704 in the device server 701 shown in FIG. 7).
此外,优选地,所述智能电视系统还可以包括:至少一个管理服务器(如图7所示的管理服务器705)和至少一个用户数据存储设备(如图7所示的用户数据存储设备706)。需要说明的是,所述用户数据存储设备用于存储用户数据,一个用户可以对应一个专用的用户数据存储设备,多个用户也可以共有同一个用户数据存储设备,本实施例对此不作限制。其中,所述用户数据存储设备可以是物理设备,也可以是逻辑设备,还可以是物理和逻辑相结合的设备。例如,所述用户数据存储设备中可以包括至少一个用户分区(如图7所示的用户分区707),每个用户分区对应存储一个用户的用户数据。 Moreover, preferably, the smart television system may further include: at least one management server (such as the management server 705 shown in FIG. 7) and at least one user data storage device (such as the user data storage device 706 shown in FIG. 7). It should be noted that the user data storage device is used to store user data, and one user may correspond to a dedicated user data storage device, and multiple users may share the same user data storage device, which is not limited in this embodiment. The user data storage device may be a physical device, a logical device, or a combination of physical and logical devices. For example, the user data storage device may include at least one user partition (such as the user partition 707 shown in FIG. 7), and each user partition corresponds to storing user data of one user.
在本实施例中,客户端703可以是如上所述的硬件设备,如,机顶盒、智能移动终端、PAD、具有解码功能的智能电视等。优选地,所述客户端303也可以是位于智能电视终端侧,其可以呈现为智能电视终端中装载的APP(应用程序,Application)的形式,这里的智能电视终端具体可以包括:机顶盒、移动终端、智能电视机等。一方面,客户端703可用于播放服务提供设备304发送的传送流(Transport Stream,TS)所解析出的用户界面,以及播放从其他网络服务器中获取的多媒体数据(如视频信号、音频信号等);另一方面,客户端703可用于监听用户通过遥控器等输入装置产生的输入消息,并将该输入消息发送给服务提供设备704或者调度服务器702。从而客户端703所显示的用户界面由服务提供设备704推送,客户端703仅解析并显示,且客户端703所接收的用户对用户界面控制的输入消息,也会转发给服务提供设备704以使其据此调整用户界面。In this embodiment, the client 703 may be a hardware device as described above, such as a set top box, a smart mobile terminal, a PAD, a smart TV with a decoding function, and the like. Preferably, the client 303 may also be in the form of a smart TV terminal, which may be presented in the form of an APP (Application) installed in the smart TV terminal. The smart TV terminal herein may specifically include: a set top box and a mobile terminal. , smart TV, etc. In one aspect, the client 703 can be used to play a user interface parsed by a transport stream (TS) sent by the service providing device 304, and play multimedia data (such as video signals, audio signals, etc.) acquired from other network servers. On the other hand, the client 703 can be used to listen to an input message generated by the user through an input device such as a remote controller, and send the input message to the service providing device 704 or the dispatch server 702. Thus, the user interface displayed by the client 703 is pushed by the service providing device 704, the client 703 only parses and displays, and the input message controlled by the client 703 to the user interface is also forwarded to the service providing device 704 to enable It adjusts the user interface accordingly.
服务提供设备704位于网络侧,其中,每个服务提供设备具体可以包括:硬件板卡和硬件板卡所承载的软件模块。需要说明的是,在本实施例中,各类应用程序可以直接安装在服务提供设备中,用户可以通过客户端703展现的应用程序对应的用户界面,对服务提供设备704中的应用程序进行各项操作,不再需要在客户端703中单独安装应用程序,便于技术人员对所述智能电视系统进行统一维护,减少了工作量,提高了维护效率。The service providing device 704 is located at the network side, and each of the service providing devices may specifically include: a software module carried by the hardware board and the hardware board. It should be noted that, in this embodiment, various types of applications may be directly installed in the service providing device, and the user may perform the application in the service providing device 704 through the user interface corresponding to the application displayed by the client 703. In the operation, it is no longer necessary to separately install the application in the client 703, so that the technician can perform unified maintenance on the smart television system, thereby reducing the workload and improving the maintenance efficiency.
用户分区707位于网络侧,一般地,每个用户对应用一个用户分区,各个用户的用户数据被保存在对应的用户分区下。进一步地,每个用户分区具有唯一一个地址信息,所述地址信息可以指示对应的用户分区的具体地址,通过所述地址信息可以快速查找到用户分区,完成用户数据的调用。换而言之,调度服务器702(或,管理服务器705)可以仅对地址信息(数据量较小)进行维护,而不用对整个用户数据(数据量较大)进行维护,降低了维护的数据量,减少了资源占用,提高了系统运行速度,且,数据便于查找。The user partition 707 is located on the network side. Generally, each user applies a user partition, and user data of each user is saved under the corresponding user partition. Further, each user partition has a unique address information, and the address information may indicate a specific address of the corresponding user partition, and the user information may be quickly found through the address information to complete the call of the user data. In other words, the dispatch server 702 (or the management server 705) can perform maintenance only on address information (small data amount) without maintaining the entire user data (large amount of data), reducing the amount of data maintained. , reducing the resource occupation, improving the system running speed, and the data is easy to find.
调度服务器702位于网络侧,主要用于依据客户端703发送的请求消息,分配一个空闲的、状态良好的服务提供设备304与客户端703对接;同时,可以将用户ID对应的用户分区挂载到所分配的服务提供设备704上,也即,每个用户分区可以与唯一的用户ID相对应,如用户分区A对应用户A等等,这样,用户A在客户端703在与上次分配的、编号为001的服务提供设备断开连接后,即使下次连接的是编号为002的服务提供设备,用户A仍然可以使用用户分区A,并且可以使用之前的历史记录等数据。The scheduling server 702 is located on the network side, and is mainly configured to allocate an idle, good-quality service providing device 304 to the client 703 according to the request message sent by the client 703. At the same time, the user partition corresponding to the user ID can be mounted to The assigned service providing device 704, that is, each user partition may correspond to a unique user ID, such as user partition A corresponding to user A, etc., such that user A is at client 703 with the last assigned, After the service provider device with the number 001 is disconnected, even if the service provider device with the number 002 is connected next time, the user A can still use the user partition A, and can use data such as the previous history.
管理服务器705位于网络侧,可用于对所有的服务提供设备进行管理,所述管理具 体可以包括:状态上报、心跳管理、设置属性、获取属性、网络唤醒、软重启、硬重启等;可见,管理服务器705可以作为远程服务器,采用本发明的技术方案在广域网实现对服务提供设备的网络唤醒。The management server 705 is located on the network side and can be used to manage all service providing devices. The body may include: status reporting, heartbeat management, setting attributes, obtaining attributes, network wake-up, soft restart, hard restart, etc.; it can be seen that the management server 705 can be used as a remote server to implement the service providing device in the wide area network by using the technical solution of the present invention. Wake on the network.
需要说明的是,本实施例所述的设备连接方法可以应用于基于图7中所示的智能电视系统中。但本领域技术人员应当明了,任意需要类似设备连接的系统或服务器,均可参照本实施例实现设备连接的方案,而不仅限于上述架构下的应用场景。It should be noted that the device connection method described in this embodiment can be applied to the smart television system based on FIG. However, it should be understood by those skilled in the art that any system or server that requires a device connection may refer to the solution for implementing device connection in this embodiment, and is not limited to the application scenario in the foregoing architecture.
本实施例中,在智能电视系统中,服务提供设备采用的是可复用机制,即是一个服务提供设备服务完一个客户端重置后继续服务另一个客户端。即在服务提供设备与客户端建立连接后二者是唯一对应交互的关系,而当完成服务两者断开后,服务提供设备与客户端并不具有直接的对应关系,而是要等待系统为其分配其他客户端。因此,服务提供设备同一时间能服务一个客户端,如果服务提供设备在设定时间长度内未被使用,将进入省电休眠状态。In this embodiment, in the smart television system, the service providing device adopts a reusable mechanism, that is, one service providing device serves to continue servicing another client after the client resets. That is, after the service providing device establishes a connection with the client, the two are the only corresponding interaction relationship, and when the completion of the service is disconnected, the service providing device does not have a direct correspondence with the client, but waits for the system to be It allocates other clients. Therefore, the service providing device can serve one client at a time, and if the service providing device is not used for a set length of time, it will enter a power-saving sleep state.
基于服务提供设备的上述特征,可以为服务提供设备设定几个状态以进行管理分配:Based on the above characteristics of the service providing device, several states can be set for the service providing device for management allocation:
Idle状态,即空闲状态,处于该状态的服务提供设备系统可被直接分配给需要的客户端;The Idle state, that is, the idle state, the service providing device system in this state can be directly allocated to the required client;
Busy状态,即忙碌状态,处于该状态的服务提供设备已经与客户端连接并在服务客户端,无法再进行分配;The Busy state, that is, the busy state, the service providing device in this state has been connected to the client and is in the service client, and can no longer be allocated;
Sleep状态,即睡眠状态,当系统中没有多余空闲状态的服务提供设备可分配时,系统可唤醒处于该状态的服务提供设备将其分配给客户端;The sleep state, that is, the sleep state, when the service providing device having no redundant idle state in the system can be allocated, the system can wake up the service providing device in the state to allocate it to the client;
Exception状态,即异常状态,处于该异常状态无法进行分配;The Exception state, that is, the exception state, in which the allocation cannot be made;
Management状态,即管理状态,表征该服务提供设备处在被服务器管理状态,无法进行分配。The management state, that is, the management state, indicates that the service providing device is in the server management state and cannot be allocated.
结合前述实施例,本实施例以上述智能电视系统架构中的服务器、客户端和服务提供设备三者之间的交互为例,对本实施例的设备连接方法进行说明。With reference to the foregoing embodiments, the present embodiment uses the interaction between the server, the client, and the service providing device in the smart TV system architecture as an example to describe the device connection method in this embodiment.
参照图8,示出了本发明实施例七中一种设备连接方法的步骤流程图。本实施例的所述设备连接方法具体可以包括如下步骤:Referring to FIG. 8, a flow chart of steps of a device connection method in Embodiment 7 of the present invention is shown. The device connection method in this embodiment may specifically include the following steps:
步骤802,服务器接收客户端的注册请求,为所述客户端分配一个对应的数据分区(Userdata),并生成一个随机标识(Key)和与所述Key相匹配的随机标识密码(Secret)。Step 802: The server receives the registration request of the client, allocates a corresponding data partition (Userdata) to the client, and generates a random identifier (Key) and a random identification password (Secret) matching the Key.
在本实施例中,所述注册请求中包括但不仅限于:客户端的设备地址,客户端的型号信息等。服务器可以根据所述设备地址和/或型号信息为所述客户端随机分配随机标识 和随机标识密码。In this embodiment, the registration request includes, but is not limited to, a device address of the client, model information of the client, and the like. The server may randomly assign the random identifier to the client according to the device address and/or model information. And a random identification password.
步骤804,服务器将生成的随机标识和随机标识密码发送至客户端。Step 804: The server sends the generated random identifier and the random identification password to the client.
需要说明的是,在本实施例中,为了便于叙述,可以将客户端中保存的设备地址记作Mac1,以及,将由服务器发送至客户端并保存在客户端中的随机标识和随机标识密码分别记作Key1和Secret1。It should be noted that, in this embodiment, for convenience of description, the device address saved in the client may be recorded as Mac1, and the random identifier and the random identification password respectively sent by the server to the client and stored in the client respectively. Recorded as Key1 and Secret1.
服务器接收到的并保存在服务器本地的设备地址记作Mac2,以及,服务器生成并保存在服务器本地的随机标识和随机标识密码分别记作Key2和Secret2。The device address received by the server and stored locally on the server is recorded as Mac2, and the random identifier and random identification password generated by the server and stored locally on the server are recorded as Key2 and Secret2, respectively.
步骤806,服务器接收客户端发送用于请求分配服务提供设备的请求信息,根据所述请求信息判断所述客户端是否合法。Step 806: The server receiving the client sends request information for requesting the distribution of the service providing device, and determining, according to the request information, whether the client is legal.
在本实施例中,客户端本地保存的Key1、Secret1和Mac1可以随所述请求信息一起发送至所述服务器。In this embodiment, Key1, Secret1, and Mac1 saved locally by the client may be sent to the server along with the request information.
一优选地,可以判断Key1与服务器本地保存的Key2是否一致,若不一致,则确定所述客户端非法,结束流程;若一致,则可以确定所述客户端合法。Preferably, it can be determined whether the Key1 is consistent with the Key2 saved locally by the server. If not, the client is determined to be illegal, and the process ends; if they are consistent, the client can be determined to be legal.
进一步优选地,为了提供判断结果的准确性,在确定Key1与Key2一致后,还可以继续判断第一验证信息与第二验证信息是否一致:若第一验证信息与所述第二验证信息一致,则可以确定所述客户端合法;否则,确定所述客户端非法,结束流程。其中,所述第一验证信息(Sign1)可以但不仅限于按照如下方式确定:Sign1=MD5(Key1+Secret1+Mac1+Time1);则,第二验证可以按照相同的方式确定:Sign2=MD5(Key2+Secret2+Mac2+Time2)。其中,Time可以是客户端向服务器发送请求信息时对应的时间戳(当前时间),客户端本地保存的Time记作Time1,保存在服务器中的Time记作Time2。Further, in order to provide the accuracy of the determination result, after determining that Key1 and Key2 are consistent, it may further continue to determine whether the first verification information is consistent with the second verification information: if the first verification information is consistent with the second verification information, Then, it can be determined that the client is legal; otherwise, it is determined that the client is illegal, and the process ends. The first verification information (Sign1) may be, but is not limited to, determined as follows: Sign1=MD5 (Key1+Secret1+Mac1+Time1); then, the second verification may be determined in the same manner: Sign2=MD5(Key2) +Secret2+Mac2+Time2). The Time can be the timestamp (current time) when the client sends the request information to the server. The time saved locally by the client is recorded as Time1, and the time stored in the server is recorded as Time2.
需要说明的是,在本实施例中,随机标识的比较(Key1与Key2的比较)和验证信息的比较(Sign1与Sign2的比较),两者之间没有必然的先后顺序,可以按照任意适当的顺序执行。It should be noted that, in this embodiment, the comparison of the random identifier (the comparison between Key1 and Key2) and the comparison of the verification information (the comparison between Sign1 and Sign2) have no inevitable sequence, and may be any appropriate Execute sequentially.
在本实施例中,当服务器确定所述客户端合法之后,可以继续执行下述步骤:In this embodiment, after the server determines that the client is legal, the following steps may be continued:
步骤808,服务器根据所述请求信息,从智能电视终端中的多个服务提供设备中,选择一个具备服务能力的服务提供设备为所述客户端提供服务。Step 808: The server selects a service providing device with service capability from the plurality of service providing devices in the smart television terminal to provide the client with the service according to the request information.
步骤810,服务器获取所述确定出的服务提供设备的设备信息,以及,生成随机令牌,以及通知确定出的服务提供设备获取与所述客户端相匹配的用户数据。Step 810: The server acquires the device information of the determined service providing device, and generates a random token, and notifies the determined service providing device to acquire user data that matches the client.
需要说明的是,服务器每次生成的随机令牌具有时效性,可以用于判断客户端与所 述确定出的服务提供设备的连接是否有效。一般地,服务器每次接收到客户端上报的请求信息,可以动态生成所述随机令牌,换而言之,服务器每次生成的随机令牌可以是不同的。It should be noted that the random token generated by the server each time is time-sensitive and can be used to determine the client and the client. Whether the determined connection of the service providing device is valid. Generally, each time the server receives the request information reported by the client, the random token can be dynamically generated. In other words, the random token generated by the server each time can be different.
步骤812,服务器将获取的所述确定出的服务提供设备的设备信息,以及生成的随机令牌发送至客户端。Step 812: The server sends the obtained device information of the determined service providing device and the generated random token to the client.
在本实施例中,所述确定出的服务提供设备的设备信息可以包括:所述确定出的服务提供设备的IP(网络之间互连的协议,Internet Protocol)地址、端口地址和唯一识别码等。In this embodiment, the determined device information of the service providing device may include: the determined service providing device's IP (Internet Protocol), port address, and unique identifier. Wait.
如前所述,为了便于描述,在本实施例中,将发送并保存在客户端中的唯一识别码和随机令牌分别记作UUID1和Token1;保存在服务器本地的唯一识别码和随机令牌分别记作UUID2和Token2。As described above, for convenience of description, in the present embodiment, the unique identification code and the random token to be transmitted and stored in the client are respectively recorded as UUID1 and Token1; the unique identification code and random token stored in the server locality. Recorded as UUID2 and Token2 respectively.
步骤814,客户端根据所述设备信息生成连接请求,以请求与所述确定出的服务提供设备建立连接。Step 814: The client generates a connection request according to the device information, to request to establish a connection with the determined service providing device.
步骤816,确定出的服务提供设备根据所述连接请求生成验证请求,并将所述验证请求发送至服务器,以请求服务器根据所述验证请求验证所述连接请求是否合法。Step 816: The determined service providing device generates an authentication request according to the connection request, and sends the verification request to the server, to request the server to verify whether the connection request is legal according to the verification request.
在本实施例中,客户端可以将其本地保存的Key1、Token1和UUID1携带在所述连接请求中一同发送至所述服务提供设备,所述确定出的服务提供设备在接收到所述客户端发送的连接请求之后,可以从所述连接请求中提取出相应的信息并保存。其中,保存在所述确定出的服务提供设备中的各类信息可以分别记作:Key3、Token3和UUID3。In this embodiment, the client may send the locally stored Key1, Token1, and UUID1 in the connection request to the service providing device, and the determined service providing device receives the client. After the connection request is sent, the corresponding information can be extracted from the connection request and saved. The various types of information stored in the determined service providing device may be respectively recorded as Key3, Token3, and UUID3.
需要说明的是,在本实施例中,所述确定出的服务提供设备生成的验证请求中可以携带有上述信息:Key3、Token3和UUID3。其中,服务器可以根据所述验证请求对所述连接请求的合法性进行验证:若Key3=Key2、Token3=Token2,且UUID3=UUID2,则可以确定所述连接请求合法,其中任意一项不一致,则确定所述连接请求非法。It should be noted that, in this embodiment, the verification request generated by the determined service providing device may carry the foregoing information: Key3, Token3, and UUID3. The server may verify the validity of the connection request according to the verification request: if Key3=Key2, Token3=Token2, and UUID3=UUID2, it may be determined that the connection request is legal, and any one of the entries is inconsistent. It is determined that the connection request is illegal.
在本实施例的一优选方案中,若所述Token3与Token2匹配,则可以说明所述客户端与所述确定出的服务提供设备之间的连接时有效连接。在一可行的方案中,可以先通过判断Token3与Token2是否匹配,在确定Token3与Token2匹配,也即,确定所述客户端与所述确定出的服务提供设备之间的连接有效后,再进一步判段Key3与Key2是否匹配,以及,UUID3与UUID2是否匹配。In a preferred embodiment of the present embodiment, if the Token3 matches the Token2, the connection between the client and the determined service providing device may be effectively connected. In a feasible solution, after determining whether Token3 and Token2 match, after determining that Token3 matches Token2, that is, determining that the connection between the client and the determined service providing device is valid, further Determine whether Key3 and Key2 match, and whether UUID3 and UUID2 match.
为了提高验证的准确性,可以基于MD5加密算法进行验证。例如,一种可行的基于MD5加密算法进行验证的方法可以如下: In order to improve the accuracy of the verification, it can be verified based on the MD5 encryption algorithm. For example, a feasible method for verifying based on the MD5 encryption algorithm can be as follows:
服务器可以根据所述服务提供设备中的数据信息确定出第一校验信息Salt1,其中,Salt1可以按如下方式确定:Salt1=MD5(Secret3+UUID3+(Random_num+1));对应地,服务器可以根据本地保存的数据信息确定出第二校验信息Salt2,其中,Salt2可以按如下方式确定:Salt2=MD5(Secret2+UUID2+(Random_num+1))。若Salt1与Salt2匹配,则确定所述客户端与所述确定出的服务提供设备之间的连接合法。其中,Secret3可以是由所述客户端发送至所述确定出的服务提供设备的随机标识密码。Random_num可以是一个由服务器随机生成的随机数,生成的所述随机数可以保存在服务器中,以及,服务器将生成的随机数发送至客户端,并由所述客户端发送至所述确定出的服务提供设备。The server may determine the first verification information Salt1 according to the data information in the service providing device, where Salt1 may be determined as follows: Salt1=MD5 (Secret3+UUID3+(Random_num+1)); correspondingly, the server may The locally saved data information determines the second verification information Salt2, wherein Salt2 can be determined as follows: Salt2 = MD5 (Secret2+UUID2+(Random_num+1)). If Salt1 matches Salt2, it is determined that the connection between the client and the determined service providing device is legal. The Secret3 may be a random identification password sent by the client to the determined service providing device. Random_num may be a random number randomly generated by the server, the generated random number may be saved in the server, and the server sends the generated random number to the client, and the client sends the determined number to the determined Service delivery equipment.
在本实施例中,在服务器确定所述连接请求合法之后,可以继续执行下述步骤:In this embodiment, after the server determines that the connection request is legal, the following steps may be continued:
步骤818,服务器向所述确定出的服务提供设备发送指示信息,指示所述连接请求合法。Step 818: The server sends indication information to the determined service providing device, indicating that the connection request is legal.
步骤820,确定出的服务提供设备在接收到所述指示信息之后,响应客户端发送的连接请求,建立与所述客户端的连接,并基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。Step 820: After determining the indication information, the determined service providing device establishes a connection with the client in response to the connection request sent by the client, and based on the acquired user data matching the client. Said client provides services.
在本实施例中,确定出的服务提供设备在接收到指示所述连接请求合法的指示信息之后,可以响应所述客户端发送的连接请求,与所述客户端建立正式连接,与所述客户端进行交互:如,确定出的服务提供设备可以从本地缓存中获取用户界面缓存,对所述用户界面缓存进行编码生成相应的TS流,然后将TS流发送给客户端,以使客户端显示相应的UI界面。In this embodiment, after determining the indication information indicating that the connection request is legal, the determined service providing device may establish a formal connection with the client, in response to the connection request sent by the client, with the client. The interaction is performed: for example, the determined service providing device may obtain a user interface cache from the local cache, encode the user interface buffer to generate a corresponding TS stream, and then send the TS stream to the client, so that the client displays The corresponding UI interface.
步骤822,确定出的服务提供设备将自身状态配置为工作状态,并生成指示所述工作状态的状态信息,以及,将所述状态信息上报给所述服务器。Step 822: The determined service providing device configures the state of the device as the working state, and generates state information indicating the working state, and reports the state information to the server.
以下,基于本实施例中的上述描述,以一个具体实例的形式,从数据交互的整体过程角度对本申请的设备连接方案进行说明。如图9所示,示出了本实施例中的一种智能电视系统中的数据交互的过程,由图9可见,本实例中的智能电视系统至少包括客户端、服务提供设备和服务器(如可以为调度服务器)。该交互过程可以包括:Hereinafter, based on the above description in this embodiment, the device connection scheme of the present application will be described in the form of a specific example from the perspective of the overall process of data interaction. As shown in FIG. 9, a process of data interaction in a smart television system in this embodiment is shown. As can be seen from FIG. 9, the smart television system in this example includes at least a client, a service providing device, and a server (eg, Can be a scheduling server). The interaction process can include:
步骤S10:客户端向服务器发送注册请求,其中,所述注册请求至少携带有客户端的MAC地址信息。Step S10: The client sends a registration request to the server, where the registration request carries at least the MAC address information of the client.
步骤S20:服务器接收到客户端的注册请求,为客户端生成一对key/secret(即客户端的随机标识和随机标识密码),并把客户端信息与key/secret的对应关系记录在数据库 中。Step S20: The server receives the registration request of the client, generates a pair of key/secret (that is, the random identifier and the random identification password of the client) for the client, and records the correspondence between the client information and the key/secret in the database. in.
客户端每次注册都会生成不同的key/secret(即使注册请求中携带的信息相同),这样,即使黑客或非法用户模拟别人的客户端来注册,也拿不到客户端的key/secret,从而便于服务器确定其为其他的或非法的客户端。Each time the client registers, it will generate different key/secret (even if the information carried in the registration request is the same), so that even if the hacker or illegal user simulates someone else's client to register, the client's key/secret is not obtained, which is convenient. The server determines that it is a different or illegal client.
步骤S30:服务器将key/secret发送给客户端。Step S30: The server sends the key/secret to the client.
步骤S40:客户端保存服务器返回的key/secret,并保存,记为key1/secret1。Step S40: The client saves the key/secret returned by the server, and saves it as key1/secret1.
通过上述步骤S10-S40,实现了客户端向服务器的注册。Through the above steps S10-S40, the registration of the client to the server is realized.
步骤S50:客户端根据key1、secret1、mac1(即本地保存的mac地址)、和time1(即本地生成的时间戳),生成sign1(用于验证客户端是否合法)。客户端在需要向服务器请求服务提供设备时,根据key1、mac1、sign1和time1生成请求信息。Step S50: The client generates sign1 (for verifying whether the client is legal) according to key1, secret1, mac1 (that is, the locally saved mac address), and time1 (that is, the locally generated timestamp). When the client needs to request the service providing device from the server, the client generates request information according to key1, mac1, sign1, and time1.
步骤S60:客户端向服务器发送请求信息,该请求信息中携带有key1、mac1、sign1和time1。Step S60: The client sends request information to the server, where the request information carries key1, mac1, sign1, and time1.
步骤S70:服务器接收客户端发送的请求信息,验证服务器本地是否存在key1。Step S70: The server receives the request information sent by the client, and verifies whether the key1 exists locally in the server.
若不存在,则认为该请求信息为非法请求。If it does not exist, the request information is considered to be an illegal request.
若存在,则通过key1查找服务器中保存的对应的secret和mac,将找出的secret和mac记为secret2和mac2;验证sign1与sign2是否一致,其中,sign2由服务器根据key1、mac2、secret2和time1,采用与客户端生成sign1相同的算法生成。若sign1与sign2不一致,则认定所述请求信息为非法请求;若sign1与sign2一致,则执行步骤S80。If it exists, use the key1 to find the corresponding secret and mac saved in the server, and find the secret and mac as secret2 and mac2; verify whether sign1 and sign2 are consistent, where sign2 is determined by the server according to key1, mac2, secret2 and time1 , generated by the same algorithm as the client generates sign1. If sign1 and sign2 do not match, it is determined that the request information is an illegal request; if sign1 and sign2 are consistent, step S80 is performed.
步骤S80:服务器为客户端选择一个空闲服务提供设备(该服务提供设备的UUID记为UUID1)。Step S80: The server selects an idle service providing device for the client (the UUID of the service providing device is recorded as UUID1).
步骤S90:服务器将选择的服务提供设备分配给客户端,同时为客户端生成token1、随机数random1、和salt1。其中,token1为一串随机字符串,其长度可以为32位左右但不限于32位左右;通过一定的算法,如md5对一下字符串加密生成一个值salt:如salt=MD5(secret+uuid1+random1)保存在服务器,记为salt1;服务器记录key1、uuid1、token1、和salt1的对应关系,并且非永久保存(如,超过一定时间后会过期,如超过5分钟)。Step S90: The server allocates the selected service providing device to the client, and generates a token1, a random number random1, and a salt1 for the client. Among them, token1 is a string of random strings, which can be about 32 bits in length but not limited to 32 bits. A certain algorithm, such as md5, encrypts a string to generate a value of salt: such as salt=MD5(secret+uuid1+ Random1) is stored in the server and recorded as salt1; the server records the correspondence between key1, uuid1, token1, and salt1, and is not permanently saved (for example, it will expire after a certain period of time, such as more than 5 minutes).
步骤S100:服务器将uuid1、token1、random1,以及,服务提供设备的IP地址和PORT返回给客户端。Step S100: The server returns uuid1, token1, random1, and the IP address of the service providing device and the PORT to the client.
通过上述步骤S50-S100,实现了服务器为客户端分配服务提供设备。Through the above steps S50-S100, the server is configured to allocate a service providing device for the client.
步骤S110:客户端采用与服务器相同的算法生成salt2。 Step S110: The client generates the salt2 by using the same algorithm as the server.
此外,客户端将接收的token1保存在本地,并记为token2。In addition, the client saves the received token1 locally and records it as token2.
步骤S120:客户端向服务提供设备发送连接请求,该连接请求中携带有token2、key2、和salt2。Step S120: The client sends a connection request to the service providing device, where the connection request carries token2, key2, and salt2.
其中,key2为客户端自身的key,key2=key1,salt2=MD5(secret1+uuid1+random1),也即,客户端在本地采用与服务器相同的算法生成salt2。Key2 is the client's own key, key2=key1, and salt2=MD5(secret1+uuid1+random1). That is, the client locally generates the salt2 using the same algorithm as the server.
步骤S130:服务提供设备接收连接请求,从中获取相应的信息,并确定向服务器请求判断该连接请求所请求的连接是否合法。Step S130: The service providing device receives the connection request, obtains corresponding information therefrom, and determines whether to request the server to determine whether the connection requested by the connection request is legal.
步骤S140:服务提供设备向服务器发送校验请求,该校验请求中携带有token2、key2、salt2和服务提供设备自身的uuid。Step S140: The service providing device sends a verification request to the server, where the verification request carries the token2, the key2, the salt2, and the uuid of the service providing device itself.
步骤S150:服务器验证所述连接请求所请求的连接是否合法。Step S150: The server verifies whether the connection requested by the connection request is legal.
包括:服务器验证本地保存的key1、uuid1、token1、salt1,与key2、uuid、token2、salt2是否一致;若不一致,则认为所述连接请求所请求的连接非法;若一致,则认为所述连接请求所请求的连接合法。Including: the server verifies the locally saved key1, uuid1, token1, and salt1, and is consistent with the key2, uuid, token2, and salt2; if not, the connection requested by the connection request is considered illegal; if they are consistent, the connection request is considered The requested connection is legal.
步骤S160:服务器向服务提供设备返回验证结果。Step S160: The server returns the verification result to the service providing device.
通过上述步骤S110-S160,实现了服务器对客户端和服务提供设备之间连接合法性的验证。Through the above steps S110-S160, the server verifies the validity of the connection between the client and the service providing device.
步骤S170:服务提供设备若根据验证结果确定所述连接请求所请求的连接合法,则与客户端建立连接,并向客户端发送ts流;否则,与客户端断开连接。Step S170: If the service providing device determines that the connection requested by the connection request is legal according to the verification result, establish a connection with the client, and send a ts stream to the client; otherwise, disconnect the client.
综上所述,通过本实施例所述的设备连接方法,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接方法,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服 务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connection method according to the embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connection method in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device. Therefore, the effective interaction between the client and the server as the service providing device is realized. Further, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
进一步地,本实施例所述的设备连接方法,可以根据客户端上报请求信息确定所述客户端合法,在确定客户端合法之后在进行服务提供设备的分配,确定出一个服务提供设备;进一步地,在客户端与确定出的服务提供设备正式连接之前,可以对用于请求连接所述客户端与确定出的服务提供设备的连接请求的合法性进行判断,可见,在本实施例中,通过多次判断确定,保证了客户端与服务提供设备之间连接的安全性,避免了非法客户端的接入,提高了智能电视系统的安全性,避免了用户数据信息的泄露。Further, the method for connecting the device according to the embodiment may determine that the client is legal according to the request information reported by the client, and determine the distribution of the service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present invention are not limited by the described action sequence, because In accordance with embodiments of the invention, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
实施例八Example eight
在上述实施例的基础上,本实施例还公开了一种设备连接装置,本发明实施例的服务器可以包括该设备连接装置。On the basis of the foregoing embodiments, the embodiment further discloses a device connection device, and the server of the embodiment of the invention may include the device connection device.
参照图10,示出了本发明实施例八中一种设备连接装置的结构框图。在本实施例中,所述设备连接装置可以包括如下模块:Referring to FIG. 10, a block diagram showing the structure of a device connecting device in Embodiment 8 of the present invention is shown. In this embodiment, the device connection device may include the following modules:
信息接收模块902,用于接收客户端上报的请求信息,其中,所述请求信息用于请求分配服务提供设备。The information receiving module 902 is configured to receive request information reported by the client, where the request information is used to request to allocate the service providing device.
设备确定模块904,用于根据所述请求信息确定出为客户端提供服务的服务提供设备。The device determining module 904 is configured to determine, according to the request information, a service providing device that provides a service for the client.
发送模块906,用于将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据;The sending module 906 is configured to send the determined device information of the service providing device to the client, and notify the determined service providing device to acquire user data that matches the client.
在本实施例中,所述设备信息可以用于指示所述客户端根据所述设备信息建立与所述确定出的服务提供设备之间的连接,所述确定出的服务提供设备基于获取的所述用户数据为所述客户端提供服务。In this embodiment, the device information may be used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained device. The user data provides services to the client.
综上所述,通过本实施例所述的设备连接装置,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务 器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接装置,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connecting device according to the embodiment, when the client needs the service resource, the server allocates the appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the service The device transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
进一步地,本实施例所述的设备连接装置,可以根据客户端上报请求信息确定所述客户端合法,在确定客户端合法之后在进行服务提供设备的分配,确定出一个服务提供设备;进一步地,在客户端与确定出的服务提供设备正式连接之前,可以对用于请求连接所述客户端与确定出的服务提供设备的连接请求的合法性进行判断,可见,在本实施例中,通过多次判断确定,保证了客户端与服务提供设备之间连接的安全性,避免了非法客户端的接入,提高了智能电视系统的安全性,避免了用户数据信息的泄露。Further, the device connecting apparatus according to the embodiment may determine that the client is legal according to the request information reported by the client, and perform a service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
本发明一个可选实施例中,所述设备连接装置还可以包括:客户端确定模块,用于在所述设备确定模块904根据所述请求信息确定出为客户端提供服务的服务提供设备之前,根据所述请求信息中携带的所述客户端的客户端信息,确定所述客户端合法。In an optional embodiment of the present invention, the device connection device may further include: a client determining module, configured to: before the device determining module 904 determines, according to the request information, a service providing device that provides a service for the client, Determining that the client is legal according to the client information of the client carried in the request information.
可选地,所述客户端信息包括如下信息中的至少一种:用于标识所述客户端的随机标识、所述随机标识的随机标识密码、所述客户端的设备地址,以及,时间戳。Optionally, the client information includes at least one of the following information: a random identifier for identifying the client, a random identifier password of the random identifier, a device address of the client, and a timestamp.
进一步优选地,所述客户端确定模块可以包括:包括:合法判断模块,用于根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种判断所述客户端是否合法。合法确定模块,用于在所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种分别与保存在本地的对应信息一致时,确定所述客户端合法。Further preferably, the client determining module may include: a legal determining module, configured to determine, according to at least one of the random identifier, the random identification password, the device address, and the timestamp Whether the client is legal. The legal determination module is configured to determine that the client is legal when at least one of the random identifier, the random identifier password, the device address, and the timestamp is consistent with the corresponding information stored locally.
再一步优选地,所述合法判断模块可以包括:验证信息获取模块,用于获取所述客户端的第一验证信息;其中,所述第一验证信息为所述客户端根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种生成的验证信息。第一判断模块,用于判断获取的所述第一验证信息与第二验证信息是否一致,得到第一判断结果, 其中,所述第二验证信息为采用与所述第一验证信息相同的生成方式在本地生成的验证信息;以及,根据所述第一判断结果判断所述客户端是否合法。Further, the legal determination module may include: an authentication information obtaining module, configured to acquire first verification information of the client; wherein the first verification information is that the client according to the random identifier, The verification information generated by at least one of a random identification password, the device address, and the timestamp. a first determining module, configured to determine whether the obtained first verification information and the second verification information are consistent, and obtain a first determination result, The second verification information is verification information generated locally by using the same generation manner as the first verification information; and determining whether the client is legal according to the first determination result.
本发明另一个可选实施例中,所述设备连接装置还可以包括:验证请求接收模块,用于在发送模块将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据之后,接收所述确定出的服务提供设备上报的验证请求;其中,所述验证请求用于请求验证所述客户端与所述确定出的服务提供设备之间的连接请求是否合法。第二判断模块,用于响应所述验证请求,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果。判断结果发送模块,用于将所述第二判断结果发送给所述确定出的服务提供设备。In another optional embodiment of the present invention, the device connection device may further include: an authentication request receiving module, configured to send, by the sending module, the device information of the determined service providing device to the client, and Receiving, after the determined service providing device acquires the user data that matches the client, receiving the verification request reported by the determined service providing device; wherein the verification request is used to request verification of the client Whether the connection request with the determined service providing device is legal. The second determining module is configured to determine, according to the verification request, whether the connection request between the client and the determined service providing device is legal, and obtain a second determination result. And a judgment result sending module, configured to send the second judgment result to the determined service providing device.
可选地,所述验证请求包括如下信息中的至少一种:所述确定出的服务提供设备的唯一识别码、随机令牌、和所述客户端的随机标识;其中,所述唯一标识码用于唯一标识所述确定出的服务提供设备。其中,所述第二判断模块,具体可以用于根据所述确定出的服务提供设备的唯一标识码、随机令牌和所述客户端的随机标识中的至少一种,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果。Optionally, the verification request includes at least one of the following information: a unique identifier of the determined service providing device, a random token, and a random identifier of the client; wherein the unique identifier is used by The uniquely identifies the determined service providing device. The second determining module may be configured to determine, according to the determined at least one of a unique identifier of the service providing device, a random token, and a random identifier of the client, the client and the Whether the determined connection request between the service providing devices is legal, and the second judgment result is obtained.
进一步优选地,所述设备连接装置还可以包括:状态信息获取模块,用于在所述判断结果发送模块将所述判断结果发送给所述确定出的服务提供设备之后,获取所述确定出的服务提供设备的状态信息;其中,所述状态信息用于指示所述确定出的服务提供设备的工作状态。Further preferably, the device connection device may further include: a state information acquiring module, configured to acquire the determined after the determining result sending module sends the determining result to the determined service providing device The service provides status information of the device; wherein the status information is used to indicate the determined working status of the service providing device.
本发明又一个可选实施例中,所述设备连接装置还可以包括:注册请求接收模块,用于在所述信息接收模块接收客户端上报的请求信息之前,接收客户端的注册请求。准备模块,用于为所述客户端分配一个用于存储所述客户端对应的用户数据的用户分区,以及,根据所述注册请求生成与所述客户端相匹配的随机标识和/或与所述随机标识相匹配的随机标识密码。保存发送模块,用于保存并将所述生成的随机标识和/或随机标识密码发送至所述客户端。In still another optional embodiment of the present invention, the device connection device may further include: a registration request receiving module, configured to receive a registration request of the client before the information receiving module receives the request information reported by the client. a preparation module, configured to allocate, to the client, a user partition for storing user data corresponding to the client, and generate, according to the registration request, a random identifier and/or a match with the client The random identifier that matches the random identifier. And storing a sending module, configured to save and send the generated random identifier and/or random identification password to the client.
可见,通过本实施例所述的设备连接装置,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配 的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接装置,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。It can be seen that, by using the device connection device in this embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device, and the service provides the service. The device is located on the network side, and the service providing device can provide services for the client. Further, the server sends the device information of the service providing device to the client, and the notification service providing device acquires the matching with the client. User data. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
实施例九Example nine
在上述实施例的基础上,本实施例还公开了一种设备连接装置,本发明实施例的客户端可以包括该设备连接装置。On the basis of the foregoing embodiments, the embodiment further discloses a device connection device. The client of the embodiment of the present invention may include the device connection device.
参照图11,示出了本发明实施例九中一种设备连接装置的结构框图。在本实施例中,所述设备连接装置可以包括如下模块:Referring to Figure 11, there is shown a block diagram of a device connection device in a ninth embodiment of the present invention. In this embodiment, the device connection device may include the following modules:
信息发送模块1002,用于向服务器发送用于请求分配服务提供设备的请求信息。The information sending module 1002 is configured to send, to the server, request information for requesting allocation of the service providing device.
设备信息接收模块1004,用于接收服务器根据所述请求信息返回的设备信息;其中,所述设备信息包括:所述服务器确定出的服务提供设备的设备信息。The device information receiving module 1004 is configured to receive device information returned by the server according to the request information, where the device information includes: device information of the service providing device determined by the server.
连接建立模块1006,用于根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接。The connection establishing module 1006 is configured to establish a connection with the determined service providing device according to the received device information.
服务接收模块1008,用于接收所述服务提供设备基于获取的用户数据提供的服务,其中,所述用户数据包括所述请求信息的发送端对应的用户数据。The service receiving module 1008 is configured to receive a service provided by the service providing device based on the acquired user data, where the user data includes user data corresponding to the sending end of the request information.
综上所述,通过本实施例所述的设备连接装置,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接装置,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获 取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connecting device according to the embodiment, when the client needs the service resource, the server allocates the appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the device from the network side. The service is no longer dependent on or subject to the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
进一步地,本实施例所述的设备连接装置,可以根据客户端上报请求信息确定所述客户端合法,在确定客户端合法之后在进行服务提供设备的分配,确定出一个服务提供设备;进一步地,在客户端与确定出的服务提供设备正式连接之前,可以对用于请求连接所述客户端与确定出的服务提供设备的连接请求的合法性进行判断,可见,在本实施例中,通过多次判断确定,保证了客户端与服务提供设备之间连接的安全性,避免了非法客户端的接入,提高了智能电视系统的安全性,避免了用户数据信息的泄露。Further, the device connecting apparatus according to the embodiment may determine that the client is legal according to the request information reported by the client, and perform a service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
本发明一个可选实施例中,所述连接建立模块1006具体可以包括:客户端信息获取模块,用于获取保存的客户端信息。连接请求生成模块,用于根据所述接收到的设备信息生成连接请求,或者,根据所述接收到的设备信息和所述客户端信息生成连接请求;其中,所述连接请求用于请求与所述确定出的服务提供设备建立连接。连接请求发送模块,用于将所述连接请求发送至所述确定出的服务提供设备。建立模块,用于根据所述确定出的服务提供设备返回的响应消息,建立与所述确定出的服务提供设备之间的连接。In an optional embodiment of the present invention, the connection establishing module 1006 may specifically include: a client information acquiring module, configured to obtain the saved client information. a connection request generating module, configured to generate a connection request according to the received device information, or generate a connection request according to the received device information and the client information; wherein the connection request is used for requesting The determined service providing device establishes a connection. And a connection request sending module, configured to send the connection request to the determined service providing device. And a establishing module, configured to establish a connection with the determined service providing device according to the determined response message returned by the service providing device.
可选地,所述连接请求中包括:由服务器根据所述请求信息生成的随机令牌;其中,所述随机令牌用于指示所述确定出的服务提供设备根据所述随机令牌生成验证请求;所述验证请求用于请求验证所述连接请求是否合法。Optionally, the connection request includes: a random token generated by the server according to the request information; wherein the random token is used to indicate that the determined service providing device generates verification according to the random token The request is used to request verification of whether the connection request is legitimate.
可选地,所述设备信息包括:所述确定出的服务提供设备的唯一识别码;Optionally, the device information includes: the unique identifier of the determined service providing device;
所述客户端信息包括如下信息中的至少一种:用于标识客户端的随机标识、所述随机标识的随机标识密码、所述客户端的设备地址,以及,时间戳。The client information includes at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, a device address of the client, and a timestamp.
进一步优选地,所述设备连接装置还可以包括:注册请求发送模块,用于向所述服务器发送注册请求。接收保存模块,用于接收并保存所述服务器根据所述注册请求返回的所述用于标识客户端的随机标识和/或所述随机标识的随机标识密码。Further preferably, the device connection device may further include: a registration request sending module, configured to send a registration request to the server. And a receiving and saving module, configured to receive and save the random identification password used by the server to identify the random identifier of the client and/or the random identifier returned according to the registration request.
可见,通过本实施例所述的设备连接装置,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之 间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接装置,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。It can be seen that, by using the device connection device in this embodiment, when the client needs the service resource, the server allocates an appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device, and the service provides the service. The device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish and the service providing device according to the device information. The connection between the two. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
实施例十Example ten
在上述实施例的基础上,本实施例还公开了一种设备连接装置,本发明实施例的服务提供设备可以包括该设备连接装置。On the basis of the foregoing embodiments, the device further includes a device connection device, and the service providing device according to the embodiment of the present invention may include the device connection device.
参照图12,示出了本发明实施例十中一种设备连接装置的结构框图。在本实施例中,所述设备连接装置可以包括如下模块:Referring to FIG. 12, a block diagram showing the structure of a device connecting device in Embodiment 10 of the present invention is shown. In this embodiment, the device connection device may include the following modules:
通知消息接收模块1102,用于接收服务器发送的通知消息;其中,所述通知消息用于指示获取与客户端相匹配的用户数据。The notification message receiving module 1102 is configured to receive a notification message sent by the server, where the notification message is used to indicate that user data matching the client is obtained.
通知消息响应模块1104,用于响应所述通知消息,获取与所述客户端相匹配的用户数据。The notification message response module 1104 is configured to obtain user data that matches the client in response to the notification message.
连接请求接收模块1106,用于接收所述客户端发送的用于请求连接的连接请求。The connection request receiving module 1106 is configured to receive a connection request sent by the client for requesting a connection.
连接请求响应模块1108,用于响应所述连接请求,建立与所述客户端的连接。The connection request response module 1108 is configured to establish a connection with the client in response to the connection request.
服务提供模块1110,用于基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。The service providing module 1110 is configured to provide a service to the client based on the obtained user data that matches the client.
综上所述,通过本实施例所述的设备连接装置,当客户端需要服务资源时,服务器根据客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接装置,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获 取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。In summary, the device connecting device according to the embodiment, when the client needs the service resource, the server allocates the appropriate service providing device to the client according to the request information reported by the client for requesting the distribution of the service providing device. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the device from the network side. The service is no longer dependent on or subject to the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
进一步地,本实施例所述的设备连接装置,可以根据客户端上报请求信息确定所述客户端合法,在确定客户端合法之后在进行服务提供设备的分配,确定出一个服务提供设备;进一步地,在客户端与确定出的服务提供设备正式连接之前,可以对用于请求连接所述客户端与确定出的服务提供设备的连接请求的合法性进行判断,可见,在本实施例中,通过多次判断确定,保证了客户端与服务提供设备之间连接的安全性,避免了非法客户端的接入,提高了智能电视系统的安全性,避免了用户数据信息的泄露。Further, the device connecting apparatus according to the embodiment may determine that the client is legal according to the request information reported by the client, and perform a service providing device after determining that the client is legal, and determine a service providing device; further Before the client is formally connected with the determined service providing device, the validity of the connection request for requesting connection between the client and the determined service providing device may be determined. In this embodiment, Multiple judgments determine that the security of the connection between the client and the service providing device is ensured, the access of the illegal client is avoided, the security of the smart television system is improved, and the leakage of user data information is avoided.
本发明一个可选实施例中,所述连接请求响应模块1108具体可以包括:验证请求生成模块,用于根据所述连接请求生成验证请求。验证请求发送模块,用于将所述验证请求发送至所述服务器;其中,所述验证请求用于请求验证所述连接请求是否合法。连接建立模块,用于根据所述服务器返回的验证结果确定所述连接请求合法后,建立与所述客户端的连接。In an optional embodiment of the present invention, the connection request response module 1108 may specifically include: an authentication request generating module, configured to generate an authentication request according to the connection request. And a verification request sending module, configured to send the verification request to the server; wherein the verification request is used to request verification whether the connection request is legal. The connection establishing module is configured to establish a connection with the client after determining that the connection request is legal according to the verification result returned by the server.
可选地,所述连接请求中包括如下信息中的至少一种:所述服务器为客户端分配的服务提供设备的设备信息、所述客户端的客户端信息、和服务器分配给所述客户端的随机令牌。Optionally, the connection request includes at least one of the following: the device information of the service providing device allocated by the server for the client, the client information of the client, and the randomness allocated by the server to the client Token.
进一步优选地,所述验证请求生成模块,具体可以用于根据所述设备信息、客户端信息和随机令牌中的至少一种生成验证请求;其中,所述设备信息包括:用于标识所述服务提供设备的唯一识别码;所述客户端信息包括如下信息中的至少一种:用于标识所述客户端的随机标识和所述随机标识的随机标识密码。Further preferably, the verification request generating module may be configured to generate an authentication request according to at least one of the device information, the client information, and the random token, where the device information includes: A unique identifier of the service providing device; the client information includes at least one of the following information: a random identifier for identifying the client and a random identification password for the random identifier.
本发明另一个可选实施例中,所述通知消息响应模块1104,具体可以用于响应所述通知消息,将所述客户端的登录用户对应的用户分区挂载到本地;其中,所述客户端的登录用户对应的用户分区中携带有所述与所述客户端相匹配的用户数据区。In another optional embodiment of the present invention, the notification message response module 1104 may be specifically configured to: in response to the notification message, mount a user partition corresponding to the login user of the client to the local; wherein, the client The user partition corresponding to the login user carries the user data area that matches the client.
本发明又一个可选实施例中,所述设备连接装置还可以包括:状态配置模块,用于在所述连接请求响应模块1104响应所述连接请求,建立与所述客户端的连接的之后,将当前状态配置为忙碌状态。状态信息生成模块,用于生成用于指示所述忙碌状态的状态信息。状态信息发送模块,用于将所述状态信息发送给所述服务器。In still another optional embodiment of the present invention, the device connection device may further include: a state configuration module, configured to: after the connection request response module 1104 responds to the connection request, establish a connection with the client, The current state is configured to be busy. The status information generating module is configured to generate status information for indicating the busy status. The status information sending module is configured to send the status information to the server.
可见,通过本实施例所述的设备连接装置,当客户端需要服务资源时,服务器根据 客户端上报的用于请求分配服务提供设备的请求信息,为客户端分配适当的服务提供设备,服务提供设备位于网络侧,服务提供设备可以为客户端提供服务。进而,服务器将服务提供设备的设备信息发送给客户端,并且,通知服务提供设备获取与客户端相匹配的用户数据。其中,设备信息用于指示客户端根据所述设备信息建立与服务提供设备之间的连接。客户端在接收到服务提供设备的设备信息后,即可根据该设备信息连接网络侧的服务提供设备。因为服务提供设备已获取了客户端对应的用户数据,因此可以有效地为客户端提供服务。可见,通过本实施例所述的设备连接装置,为终端提供服务的设备由网络侧的服务提供设备实现,终端只需具有基本的解码功能,即可从网络侧获取服务,不再依赖或受制于数字视频变换盒。进一步地,本申请的设备连接方案中,客户端根据服务提供设备的设备信息即可连接服务提供设备并接受服务提供设备提供的服务,从而实现了客户端与服务端即服务提供设备的有效交互,进而,服务提供设备可以根据获取的与客户端匹配的用户数据为用户提供服务,大大提升了使用者的使用体验。It can be seen that, by using the device connection device described in this embodiment, when the client needs service resources, the server is configured according to The client reports the request information for requesting the distribution of the service providing device, and allocates an appropriate service providing device to the client. The service providing device is located on the network side, and the service providing device can provide services for the client. Further, the server transmits the device information of the service providing device to the client, and notifies the service providing device to acquire the user data that matches the client. The device information is used to instruct the client to establish a connection with the service providing device according to the device information. After receiving the device information of the service providing device, the client can connect to the service providing device on the network side according to the device information. Because the service providing device has acquired the user data corresponding to the client, it can effectively provide services for the client. It can be seen that, by using the device connecting device in this embodiment, the device that provides services for the terminal is implemented by the service providing device on the network side, and the terminal only needs to have a basic decoding function, and can obtain the service from the network side, and no longer depends on or is subject to the system. In the digital video converter box. Further, in the device connection scheme of the present application, the client can connect to the service providing device according to the device information of the service providing device and accept the service provided by the service providing device, thereby realizing effective interaction between the client and the server, ie, the service providing device. In addition, the service providing device can provide services to the user according to the obtained user data matched with the client, thereby greatly improving the user experience.
实施例十一Embodiment 11
本发明实施例还公开了一种智能电视系统,包括:至少一个服务器、至少一个客户端、至少一个服务提供设备;其中,所述服务器用于向所述客户端分配服务提供设备;所述客户端设置在智能电视中,所述服务提供设备设置在网络侧,用于通过网络为建立连接的客户端提供互联网服务;The embodiment of the invention further discloses a smart television system, comprising: at least one server, at least one client, at least one service providing device; wherein the server is configured to allocate a service providing device to the client; the client The terminal is disposed in the smart TV, and the service providing device is disposed on the network side, and is configured to provide an Internet service for the established client through the network;
其中,所述服务器可以包括上述实施例八中所述的设备连接装置;所述客户端可以包括上述实施例九中所述的设备连接装置;所述服务提供设备可以包括上述实施例十中所述的设备连接装置。The server may include the device connection device described in the foregoing embodiment 8. The client may include the device connection device described in the foregoing embodiment 9. The service providing device may include the foregoing embodiment 10. The device connection device described.
所述的智能电视系统还可以包括:少一个用户数据信息存储设备;所述至少一个用户数据信息存储设备包括:至少一个用户分区;其中,所述至少一个用户分区分别用于存储不同客户端对应的用户数据。The smart television system may further include: one less user data information storage device; the at least one user data information storage device includes: at least one user partition; wherein the at least one user partition is respectively configured to store different client correspondences User data.
所述服务提供设备可以包括:网络机顶盒;所述互联网服务,包括如下中的至少一个:电视直播、音视频服务、网页服务、游戏服务。The service providing device may include: a network set top box; the internet service includes at least one of the following: a live television, an audio and video service, a web service, and a game service.
其中,该智能电视系统与上述图7所述的系统基本一致,因此不再赘述。The smart television system is basically the same as the system described in FIG. 7 above, and therefore will not be described again.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other.
本领域技术人员易于想到的是:上述各个实施例的任意组合应用都是可行的,故上述各个实施例之间的任意组合都是本发明的实施方案,但是由于篇幅限制,本说明书在此就不一一详述了。It will be readily apparent to those skilled in the art that any combination of the above embodiments is possible, and any combination between the above embodiments is an embodiment of the present invention, but due to space limitations, the present specification is hereby Not detailed one by one.
本发明可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。The invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor based systems, set-top boxes, programmable consumer electronics devices, network PCs, small computers, mainframe computers, including A distributed computing environment of any of the above systems or devices, and the like.
本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
在本发明中,“组件”、“装置”、“系统”等等指应用于计算机的相关实体,如硬件、硬件和软件的组合、软件或执行中的软件等。详细地说,例如,组件可以、但不限于是运行于处理器的过程、处理器、对象、可执行组件、执行线程、程序和/或计算机。还有,运行于服务器上的应用程序或脚本程序、服务器都可以是组件。一个或多个组件可在执行的过程和/或线程中,并且组件可以在一台计算机上本地化和/或分布在两台或多台计算机之间,并可以由各种计算机可读介质运行。组件还可以根据具有一个或多个数据包的信号,例如,来自一个与本地系统、分布式系统中另一组件交互的,和/或在因特网的网络通过信号与其它系统交互的数据的信号通过本地和/或远程过程来进行通信。In the present invention, "component", "device", "system" and the like refer to related entities applied to a computer, such as hardware, a combination of hardware and software, software or software in execution, and the like. In particular, for example, a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable component, a thread of execution, a program, and/or a computer. Also, an application or script running on a server, or a server, can be a component. One or more components can be executed in a process and/or thread, and the components can be localized on a single computer and/or distributed between two or more computers and can be run by various computer readable media. . The component may also pass signals based on data having one or more data packets, for example, from a signal interacting with another component in the local system, the distributed system, and/or interacting with other systems over the network of the Internet. Local and/or remote processes to communicate.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”,不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Moreover, the terms "comprising" and "comprising" are intended to include not only those elements, but also other elements that are not explicitly listed, or the elements that are inherent to the process, method, item, or device. An element that is defined by the phrase "comprising", without limiting the invention, does not exclude the presence of additional elements in the process, method, article, or device.
而且,上文中的“和/或”表示本文既包含了“和”的关系,也包含了“或”的关系,其中:如果方案A与方案B是“和”的关系,则表示某实施例中可以同时包括方案A和方案B;如果方案A与方案B是“或”的关系,则表示某实施例中可以单独包括方案A,或者单独包括方案B。 Moreover, "and/or" in the above means that both the relationship of "and" and the relationship of "or" are included herein, wherein: if the relationship between the scheme A and the scheme B is "and", it indicates an embodiment. The scheme A and the scheme B may be included at the same time; if the relationship between the scheme A and the scheme B is "or", it means that the scheme A may be separately included in an embodiment, or the scheme B may be separately included.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiment of the invention has been described, it will be apparent to those skilled in the < Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
以上对本发明所提供的一种设备连接方法和装置,以及一种智能电视系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The device connection method and device provided by the present invention, and a smart television system are described in detail. The principles and embodiments of the present invention are described in the following. The description of the above embodiment is only used. To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. The content should not be construed as limiting the invention.

Claims (50)

  1. 一种设备连接方法,其特征在于,包括:A device connection method, comprising:
    接收客户端上报的请求信息,其中,所述请求信息用于请求分配服务提供设备;Receiving request information reported by the client, where the request information is used to request to allocate a service providing device;
    根据所述请求信息确定出为客户端提供服务的服务提供设备;Determining, according to the request information, a service providing device that provides a service for the client;
    将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据;Sending, to the client, the device information of the determined service providing device, and notifying the determined service providing device to acquire user data that matches the client;
    其中,所述设备信息用于指示所述客户端根据所述设备信息建立与所述确定出的服务提供设备之间的连接,所述确定出的服务提供设备基于获取的所述用户数据为所述客户端提供服务。The device information is used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained user data. Said client provides services.
  2. 根据权利要求1所述的方法,其特征在于,在根据所述请求信息确定出为客户端提供服务的服务提供设备的步骤之前,所述方法还包括:The method according to claim 1, wherein before the step of determining the service providing device that provides the service to the client according to the request information, the method further comprises:
    根据所述请求信息中携带的所述客户端的客户端信息,确定所述客户端合法。Determining that the client is legal according to the client information of the client carried in the request information.
  3. 根据权利要求2所述的方法,其特征在于,所述客户端信息包括如下信息中的至少一种:用于标识所述客户端的随机标识、所述随机标识的随机标识密码、所述客户端的设备地址,以及,时间戳。The method according to claim 2, wherein the client information comprises at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, and the client Device address, as well as, timestamp.
  4. 根据权利要求3所述的方法,其特征在于,根据所述请求信息中携带的所述客户端的客户端信息,确定所述客户端合法,包括:The method according to claim 3, wherein determining the client is legal according to the client information of the client carried in the request information, including:
    根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种判断所述客户端是否合法;Determining whether the client is legal according to at least one of the random identifier, the random identifier password, the device address, and the timestamp;
    若所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种分别与保存在本地的对应信息一致,则确定所述客户端合法。And determining, if the at least one of the random identifier, the random identification password, the device address, and the timestamp is consistent with the corresponding information stored locally, determining that the client is legal.
  5. 根据权利要求4所述的方法,其特征在于,根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种判断所述客户端是否合法,包括:The method according to claim 4, wherein determining whether the client is legal according to at least one of the random identifier, the random identifier password, the device address, and the timestamp comprises:
    获取所述客户端的第一验证信息;其中,所述第一验证信息为所述客户端根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种生成的验证信息;Acquiring the first verification information of the client, where the first verification information is generated by the client according to at least one of the random identifier, the random identifier password, the device address, and the timestamp Verification information;
    判断获取的所述第一验证信息与第二验证信息是否一致,得到第一判断结果,其中,所述第二验证信息为采用与所述第一验证信息相同的生成方式在本地生成的验证信息;Determining whether the obtained first verification information and the second verification information are consistent, and obtaining a first determination result, where the second verification information is verification information generated locally by using the same generation manner as the first verification information ;
    根据所述第一判断结果判断所述客户端是否合法。Determining whether the client is legal according to the first determination result.
  6. 根据权利要求1所述的方法,其特征在于,在将所述确定出的服务提供设备的 设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据的步骤之后,所述方法还包括:The method according to claim 1, wherein said determined service providing device is After the device information is sent to the client, and the step of notifying the determined service providing device to obtain the user data that matches the client, the method further includes:
    接收所述确定出的服务提供设备上报的验证请求;其中,所述验证请求用于请求验证所述客户端与所述确定出的服务提供设备之间的连接请求是否合法;Receiving, by the determined service providing device, the verification request, where the verification request is used to request verification of whether the connection request between the client and the determined service providing device is legal;
    响应所述验证请求,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果;Responding to the verification request, determining whether the connection request between the client and the determined service providing device is legal, and obtaining a second determination result;
    将所述第二判断结果发送给所述确定出的服务提供设备。And transmitting the second determination result to the determined service providing device.
  7. 根据权利要求6所述的方法,其特征在于,所述验证请求包括如下信息中的至少一种:所述确定出的服务提供设备的唯一识别码、随机令牌、和所述客户端的随机标识;其中,所述唯一标识码用于唯一标识所述确定出的服务提供设备。The method according to claim 6, wherein the verification request comprises at least one of the following: a unique identification code of the determined service providing device, a random token, and a random identifier of the client Wherein the unique identification code is used to uniquely identify the determined service providing device.
  8. 根据权利要求7所述的方法,其特征在于,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果,包括:The method according to claim 7, wherein determining whether the connection request between the client and the determined service providing device is legal, and obtaining a second determination result, comprising:
    根据所述确定出的服务提供设备的唯一标识码、随机令牌和所述客户端的随机标识中的至少一种,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果。Determining, according to at least one of the determined unique identifier of the service providing device, the random token, and the random identifier of the client, whether the connection request between the client and the determined service providing device is Legal, get the second judgment result.
  9. 根据权利要求6所述的方法,其特征在于,在将所述判断结果发送给所述确定出的服务提供设备的步骤之后,所述方法还包括:The method according to claim 6, wherein after the step of transmitting the determination result to the determined service providing device, the method further comprises:
    获取所述确定出的服务提供设备的状态信息;其中,所述状态信息用于指示所述确定出的服务提供设备的工作状态。Acquiring the status information of the determined service providing device; wherein the status information is used to indicate the working status of the determined service providing device.
  10. 根据权利要求1-9任一权利要求所述的方法,其特征在于,在接收客户端上报的请求信息的步骤之前,所述方法还包括:The method according to any one of claims 1-9, wherein before the step of receiving the request information reported by the client, the method further comprises:
    接收客户端的注册请求;Receiving a registration request from the client;
    为所述客户端分配一个用于存储所述客户端对应的用户数据的用户分区,以及,根据所述注册请求生成与所述客户端相匹配的随机标识和/或与所述随机标识相匹配的随机标识密码;Allocating a user partition for storing the user data corresponding to the client, and generating a random identifier matching the client according to the registration request and/or matching the random identifier Random identification password;
    保存并将所述生成的随机标识和/或随机标识密码发送至所述客户端。And saving and generating the generated random identifier and/or random identification password to the client.
  11. 根据权利要求1-9任一权利要求所述的方法,其特征在于,所述设备连接方法应用于智能电视系统;其中,所述智能电视系统包括:至少一个服务器、至少一个客户端、至少一个服务提供设备;其中,所述服务器用于向所述客户端分配服务提供设备;所述客户端设置在智能电视中,所述服务提供设备设置在网络侧,用于通过网络为建立 连接的客户端提供互联网服务。The method according to any one of claims 1-9, wherein the device connection method is applied to a smart television system; wherein the smart television system comprises: at least one server, at least one client, at least one a service providing device; wherein the server is configured to allocate a service providing device to the client; the client is set in a smart TV, and the service providing device is disposed on a network side for establishing through a network The connected client provides internet service.
  12. 根据权利要求11所述的方法,其特征在于,所述智能电视系统,还包括至少一个用户数据信息存储设备;所述至少一个用户数据信息存储设备包括:至少一个用户分区;其中,所述至少一个用户分区分别用于存储不同客户端对应的用户数据。The method of claim 11, wherein the smart television system further comprises at least one user data information storage device; the at least one user data information storage device comprises: at least one user partition; wherein the at least one A user partition is used to store user data corresponding to different clients.
  13. 根据权利要求11所述的方法,其特征在于,所述服务提供设备包括:网络机顶盒;所述互联网服务,包括如下中的至少一个:The method according to claim 11, wherein said service providing device comprises: a network set top box; said internet service comprising at least one of:
    电视直播、音视频服务、网页服务、游戏服务。Live TV, audio and video services, web services, and game services.
  14. 一种设备连接方法,其特征在于,包括:A device connection method, comprising:
    向服务器发送用于请求分配服务提供设备的请求信息;Sending request information for requesting distribution of the service providing device to the server;
    接收服务器根据所述请求信息返回的设备信息;其中,所述设备信息包括:所述服务器确定出的服务提供设备的设备信息;Receiving device information returned by the server according to the request information; wherein the device information includes: device information of the service providing device determined by the server;
    根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接,并接收所述服务提供设备基于获取的用户数据提供的服务,其中,所述用户数据包括所述请求信息的发送端对应的用户数据。Establishing a connection with the determined service providing device according to the received device information, and receiving a service provided by the service providing device based on the acquired user data, wherein the user data includes sending the request information User data corresponding to the end.
  15. 根据权利要求14所述的方法,其特征在于,根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接,包括:The method according to claim 14, wherein establishing a connection with the determined service providing device according to the received device information comprises:
    获取保存的客户端信息;Obtain saved client information;
    根据所述接收到的设备信息生成连接请求,或者,根据所述接收到的设备信息和所述客户端信息生成连接请求;其中,所述连接请求用于请求与所述确定出的服务提供设备建立连接;Generating a connection request according to the received device information, or generating a connection request according to the received device information and the client information; wherein the connection request is used to request and the determined service providing device establish connection;
    将所述连接请求发送至所述确定出的服务提供设备;Sending the connection request to the determined service providing device;
    根据所述确定出的服务提供设备返回的响应消息,建立与所述确定出的服务提供设备之间的连接。And establishing, according to the determined response message returned by the service providing device, a connection with the determined service providing device.
  16. 根据权利要求15所述的方法,其特征在于,所述连接请求中包括:由服务器根据所述请求信息生成的随机令牌;其中,所述随机令牌用于指示所述确定出的服务提供设备根据所述随机令牌生成验证请求;所述验证请求用于请求验证所述连接请求是否合法。The method according to claim 15, wherein the connection request comprises: a random token generated by the server according to the request information; wherein the random token is used to indicate the determined service providing The device generates an authentication request according to the random token; the verification request is used to request verification whether the connection request is legal.
  17. 根据权利要求15或16所述的方法,其特征在于,A method according to claim 15 or 16, wherein
    所述设备信息包括:所述确定出的服务提供设备的唯一识别码; The device information includes: the unique identifier of the determined service providing device;
    所述客户端信息包括如下信息中的至少一种:用于标识客户端的随机标识、所述随机标识的随机标识密码、所述客户端的设备地址,以及,时间戳。The client information includes at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, a device address of the client, and a timestamp.
  18. 根据权利要求17所述的方法,其特征在于,还包括:The method of claim 17, further comprising:
    向所述服务器发送注册请求;Sending a registration request to the server;
    接收并保存所述服务器根据所述注册请求返回的所述用于标识客户端的随机标识和/或所述随机标识的随机标识密码。Receiving and saving the random identification password used by the server to identify the random identifier of the client and/or the random identifier returned according to the registration request.
  19. 根据权利要求14-16任一权利要求所述的方法,其特征在于,所述设备连接方法应用于智能电视系统;其中,所述智能电视系统包括:至少一个服务器、至少一个客户端、至少一个服务提供设备;其中,所述服务器用于向所述客户端分配服务提供设备;所述客户端设置在智能电视中,所述服务提供设备设置在网络侧,用于通过网络为建立连接的客户端提供互联网服务。The method according to any one of claims 14-16, wherein the device connection method is applied to a smart television system; wherein the smart television system comprises: at least one server, at least one client, at least one a service providing device; wherein the server is configured to allocate a service providing device to the client; the client is disposed in a smart TV, and the service providing device is disposed on a network side for establishing a connected client through a network Internet service is provided.
  20. 一种设备连接方法,其特征在于,包括:A device connection method, comprising:
    接收服务器发送的通知消息;其中,所述通知消息用于指示获取与客户端相匹配的用户数据;Receiving a notification message sent by the server, where the notification message is used to indicate that user data matching the client is acquired;
    响应所述通知消息,获取与所述客户端相匹配的用户数据;Responding to the notification message, acquiring user data that matches the client;
    以及,as well as,
    接收所述客户端发送的用于请求连接的连接请求;Receiving a connection request sent by the client for requesting a connection;
    响应所述连接请求,建立与所述客户端的连接,并基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。Responding to the connection request, establishing a connection with the client, and providing a service to the client based on the acquired user data matching the client.
  21. 根据权利要求20所述的方法,其特征在于,响应所述连接请求,建立与所述客户端的连接的步骤包括:The method according to claim 20, wherein the step of establishing a connection with the client in response to the connection request comprises:
    根据所述连接请求生成验证请求,将所述验证请求发送至所述服务器;其中,所述验证请求用于请求验证所述连接请求是否合法;Generating an authentication request according to the connection request, and sending the verification request to the server; wherein the verification request is used to request verification whether the connection request is legal;
    根据所述服务器返回的验证结果确定所述连接请求合法后,建立与所述客户端的连接。After determining that the connection request is legal according to the verification result returned by the server, establishing a connection with the client.
  22. 根据权利要求21所述的方法,其特征在于,所述连接请求中包括如下信息中的至少一种:所述服务器为客户端分配的服务提供设备的设备信息、所述客户端的客户端信息、和服务器分配给所述客户端的随机令牌。The method according to claim 21, wherein the connection request includes at least one of the following: the device information of the service providing device allocated by the server for the client, the client information of the client, And a random token assigned to the client by the server.
  23. 根据权利要求22所述的方法,其特征在于,根据所述连接请求生成验证请求, 包括:The method according to claim 22, wherein the verification request is generated according to the connection request, include:
    根据所述设备信息、客户端信息和随机令牌中的至少一种生成验证请求;其中,所述设备信息包括:用于标识所述服务提供设备的唯一识别码;所述客户端信息包括如下信息中的至少一种:用于标识所述客户端的随机标识和所述随机标识的随机标识密码。Generating an authentication request according to at least one of the device information, the client information, and the random token; wherein the device information includes: a unique identifier for identifying the service providing device; the client information includes the following At least one of the information: a random identifier for identifying the client and a random identification password of the random identifier.
  24. 根据权利要求20所述的方法,其特征在于,响应所述通知消息,获取与所述客户端相匹配的用户数据,包括:The method according to claim 20, wherein in response to the notification message, acquiring user data that matches the client comprises:
    响应所述通知消息,将所述客户端的登录用户对应的用户分区挂载到本地;其中,所述客户端的登录用户对应的用户分区中携带有所述与所述客户端相匹配的用户数据区。And responding to the notification message, the user partition corresponding to the login user of the client is locally mounted; wherein the user partition corresponding to the login user of the client carries the user data area that matches the client .
  25. 根据权利要求20所述的方法,其特征在于,在响应所述连接请求,建立与所述客户端的连接的步骤之后,所述方法还包括:The method of claim 20, wherein after the step of establishing a connection with the client in response to the connection request, the method further comprises:
    将当前状态配置为忙碌状态;Configure the current state to be busy;
    生成用于指示所述忙碌状态的状态信息;Generating status information indicating the busy status;
    将所述状态信息发送给所述服务器。The status information is sent to the server.
  26. 根据权利要求20-25任一权利要求所述的方法,其特征在于,所述设备连接方法应用于智能电视系统;其中,所述智能电视系统包括:至少一个服务器、至少一个客户端、至少一个服务提供设备;其中,所述服务器用于向所述客户端分配服务提供设备;所述客户端设置在智能电视中,所述服务提供设备设置在网络侧,用于通过网络为建立连接的客户端提供互联网服务。The method according to any one of claims 20-25, wherein the device connection method is applied to a smart television system; wherein the smart television system comprises: at least one server, at least one client, at least one a service providing device; wherein the server is configured to allocate a service providing device to the client; the client is disposed in a smart TV, and the service providing device is disposed on a network side for establishing a connected client through a network Internet service is provided.
  27. 一种设备连接装置,其特征在于,包括:A device connecting device, comprising:
    信息接收模块,用于接收客户端上报的请求信息,其中,所述请求信息用于请求分配服务提供设备;An information receiving module, configured to receive request information reported by a client, where the request information is used to request to allocate a service providing device;
    设备确定模块,用于根据所述请求信息确定出为客户端提供服务的服务提供设备;a device determining module, configured to determine, according to the request information, a service providing device that provides a service for the client;
    发送模块,用于将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据;a sending module, configured to send the determined device information of the service providing device to the client, and notify the determined service providing device to acquire user data that matches the client;
    其中,所述设备信息用于指示所述客户端根据所述设备信息建立与所述确定出的服务提供设备之间的连接,所述确定出的服务提供设备基于获取的所述用户数据为所述客户端提供服务。The device information is used to indicate that the client establishes a connection with the determined service providing device according to the device information, and the determined service providing device is based on the obtained user data. Said client provides services.
  28. 根据权利要求27所述的装置,其特征在于,还包括: The device according to claim 27, further comprising:
    客户端确定模块,用于在所述设备确定模块根据所述请求信息确定出为客户端提供服务的服务提供设备之前,根据所述请求信息中携带的所述客户端的客户端信息,确定所述客户端合法。a client determining module, configured to determine, according to the client information of the client carried in the request information, before the device determining module determines, according to the request information, a service providing device that provides a service for the client The client is legal.
  29. 根据权利要求28所述的装置,其特征在于,所述客户端信息包括如下信息中的至少一种:用于标识所述客户端的随机标识、所述随机标识的随机标识密码、所述客户端的设备地址,以及,时间戳。The device according to claim 28, wherein the client information comprises at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, and the client Device address, as well as, timestamp.
  30. 根据权利要求29所述的装置,其特征在于,所述客户端确定模块,包括:The device according to claim 29, wherein the client determining module comprises:
    合法判断模块,用于根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种判断所述客户端是否合法;a legal judgment module, configured to determine, according to at least one of the random identifier, the random identifier password, the device address, and the timestamp, whether the client is legal;
    合法确定模块,用于在所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种分别与保存在本地的对应信息一致时,确定所述客户端合法。The legal determination module is configured to determine that the client is legal when at least one of the random identifier, the random identifier password, the device address, and the timestamp is consistent with the corresponding information stored locally.
  31. 根据权利要求30所述的装置,其特征在于,所述合法判断模块,包括:The device according to claim 30, wherein the legal determination module comprises:
    验证信息获取模块,用于获取所述客户端的第一验证信息;其中,所述第一验证信息为所述客户端根据所述随机标识、所述随机标识密码、所述设备地址和所述时间戳中的至少一种生成的验证信息;a verification information obtaining module, configured to acquire first verification information of the client, where the first verification information is that the client according to the random identifier, the random identification password, the device address, and the time At least one of the generated verification information;
    第一判断模块,用于判断获取的所述第一验证信息与第二验证信息是否一致,得到第一判断结果,其中,所述第二验证信息为采用与所述第一验证信息相同的生成方式在本地生成的验证信息;以及,a first determining module, configured to determine whether the obtained first verification information is consistent with the second verification information, to obtain a first determination result, where the second verification information is generated by using the same as the first verification information Way to generate verification information locally; and,
    根据所述第一判断结果判断所述客户端是否合法。Determining whether the client is legal according to the first determination result.
  32. 根据权利要求27所述的装置,其特征在于,还包括:The device according to claim 27, further comprising:
    验证请求接收模块,用于在发送模块将所述确定出的服务提供设备的设备信息发送至所述客户端,以及,通知所述确定出的服务提供设备获取与所述客户端相匹配的用户数据之后,接收所述确定出的服务提供设备上报的验证请求;其中,所述验证请求用于请求验证所述客户端与所述确定出的服务提供设备之间的连接请求是否合法;a verification request receiving module, configured to send, by the sending module, the device information of the determined service providing device to the client, and notify the determined service providing device to acquire a user that matches the client After the data, the verification request reported by the determined service providing device is received; wherein the verification request is used to request whether to verify whether the connection request between the client and the determined service providing device is legal;
    第二判断模块,用于响应所述验证请求,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果;a second determining module, configured to determine, according to the verification request, whether a connection request between the client and the determined service providing device is legal, and obtain a second determination result;
    判断结果发送模块,用于将所述第二判断结果发送给所述确定出的服务提供设备。And a judgment result sending module, configured to send the second judgment result to the determined service providing device.
  33. 根据权利要求32所述的装置,其特征在于,所述验证请求包括如下信息中的至少一种:所述确定出的服务提供设备的唯一识别码、随机令牌、和所述客户端的随机标识;其中,所述唯一标识码用于唯一标识所述确定出的服务提供设备。 The apparatus according to claim 32, wherein the verification request comprises at least one of the following: a unique identification code of the determined service providing device, a random token, and a random identifier of the client Wherein the unique identification code is used to uniquely identify the determined service providing device.
  34. 根据权利要求33所述的装置,其特征在于,所述第二判断模块,用于根据所述确定出的服务提供设备的唯一标识码、随机令牌和所述客户端的随机标识中的至少一种,判断所述客户端与所述确定出的服务提供设备之间的连接请求是否合法,得到第二判断结果。The device according to claim 33, wherein the second determining module is configured to: according to the determined at least one of a unique identification code of the service providing device, a random token, and a random identifier of the client And determining whether the connection request between the client and the determined service providing device is legal, and obtaining a second determination result.
  35. 根据权利要求32所述的装置,其特征在于,还包括:The device according to claim 32, further comprising:
    状态信息获取模块,用于在所述判断结果发送模块将所述判断结果发送给所述确定出的服务提供设备之后,获取所述确定出的服务提供设备的状态信息;其中,所述状态信息用于指示所述确定出的服务提供设备的工作状态。a status information obtaining module, configured to acquire status information of the determined service providing device after the determining result sending module sends the determining result to the determined service providing device; wherein the status information is And configured to indicate an operating status of the determined service providing device.
  36. 根据权利要求27-35任一权利要求所述的装置,其特征在于,还包括:The device according to any one of claims 27 to 35, further comprising:
    注册请求接收模块,用于在所述信息接收模块接收客户端上报的请求信息之前,接收客户端的注册请求;a registration request receiving module, configured to receive a registration request of the client before the information receiving module receives the request information reported by the client;
    准备模块,用于为所述客户端分配一个用于存储所述客户端对应的用户数据的用户分区,以及,根据所述注册请求生成与所述客户端相匹配的随机标识和/或与所述随机标识相匹配的随机标识密码;a preparation module, configured to allocate, to the client, a user partition for storing user data corresponding to the client, and generate, according to the registration request, a random identifier and/or a match with the client a random identification password matching the random identifier;
    保存发送模块,用于保存并将所述生成的随机标识和/或随机标识密码发送至所述客户端。And storing a sending module, configured to save and send the generated random identifier and/or random identification password to the client.
  37. 一种设备连接装置,其特征在于,包括:A device connecting device, comprising:
    信息发送模块,用于向服务器发送用于请求分配服务提供设备的请求信息;An information sending module, configured to send, to the server, request information for requesting allocation of the service providing device;
    设备信息接收模块,用于接收服务器根据所述请求信息返回的设备信息;其中,所述设备信息包括:所述服务器确定出的服务提供设备的设备信息;a device information receiving module, configured to receive device information returned by the server according to the request information, where the device information includes: device information of the service providing device determined by the server;
    连接建立模块,用于根据接收到的设备信息建立与所述确定出的服务提供设备之间的连接;a connection establishing module, configured to establish a connection with the determined service providing device according to the received device information;
    服务接收模块,用于接收所述服务提供设备基于获取的用户数据提供的服务,其中,所述用户数据包括所述请求信息的发送端对应的用户数据。The service receiving module is configured to receive the service provided by the service providing device based on the acquired user data, where the user data includes user data corresponding to the sending end of the request information.
  38. 根据权利要求37所述的装置,其特征在于,所述连接建立模块,包括:The device according to claim 37, wherein the connection establishing module comprises:
    客户端信息获取模块,用于获取保存的客户端信息;a client information obtaining module, configured to obtain saved client information;
    连接请求生成模块,用于根据所述接收到的设备信息生成连接请求,或者,根据所述接收到的设备信息和所述客户端信息生成连接请求;其中,所述连接请求用于请求与所述确定出的服务提供设备建立连接; a connection request generating module, configured to generate a connection request according to the received device information, or generate a connection request according to the received device information and the client information; wherein the connection request is used for requesting Determining the service providing device to establish a connection;
    连接请求发送模块,用于将所述连接请求发送至所述确定出的服务提供设备;a connection request sending module, configured to send the connection request to the determined service providing device;
    建立模块,用于根据所述确定出的服务提供设备返回的响应消息,建立与所述确定出的服务提供设备之间的连接。And a establishing module, configured to establish a connection with the determined service providing device according to the determined response message returned by the service providing device.
  39. 根据权利要求38所述的装置,其特征在于,所述连接请求中包括:由服务器根据所述请求信息生成的随机令牌;其中,所述随机令牌用于指示所述确定出的服务提供设备根据所述随机令牌生成验证请求;所述验证请求用于请求验证所述连接请求是否合法。The device according to claim 38, wherein the connection request comprises: a random token generated by the server according to the request information; wherein the random token is used to indicate the determined service providing The device generates an authentication request according to the random token; the verification request is used to request verification whether the connection request is legal.
  40. 根据权利要求38或39所述的装置,其特征在于,A device according to claim 38 or 39, wherein
    所述设备信息包括:所述确定出的服务提供设备的唯一识别码;The device information includes: the unique identifier of the determined service providing device;
    所述客户端信息包括如下信息中的至少一种:用于标识客户端的随机标识、所述随机标识的随机标识密码、所述客户端的设备地址,以及,时间戳。The client information includes at least one of the following information: a random identifier for identifying the client, a random identification password of the random identifier, a device address of the client, and a timestamp.
  41. 根据权利要求40所述的装置,其特征在于,还包括:The device of claim 40, further comprising:
    注册请求发送模块,用于向所述服务器发送注册请求;a registration request sending module, configured to send a registration request to the server;
    接收保存模块,用于接收并保存所述服务器根据所述注册请求返回的所述用于标识客户端的随机标识和/或所述随机标识的随机标识密码。And a receiving and saving module, configured to receive and save the random identification password used by the server to identify the random identifier of the client and/or the random identifier returned according to the registration request.
  42. 一种设备连接装置,其特征在于,包括:A device connecting device, comprising:
    通知消息接收模块,用于接收服务器发送的通知消息;其中,所述通知消息用于指示获取与客户端相匹配的用户数据;a notification message receiving module, configured to receive a notification message sent by the server, where the notification message is used to indicate that user data matching the client is acquired;
    通知消息响应模块,用于响应所述通知消息,获取与所述客户端相匹配的用户数据;a notification message response module, configured to obtain user data that matches the client in response to the notification message;
    连接请求接收模块,用于接收所述客户端发送的用于请求连接的连接请求;a connection request receiving module, configured to receive a connection request sent by the client for requesting a connection;
    连接请求响应模块,用于响应所述连接请求,建立与所述客户端的连接;a connection request response module, configured to establish a connection with the client in response to the connection request;
    服务提供模块,用于基于获取的与所述客户端相匹配的用户数据向所述客户端提供服务。And a service providing module, configured to provide a service to the client based on the obtained user data that matches the client.
  43. 根据权利要求42所述的装置,其特征在于,所述连接请求响应模块,包括:The device according to claim 42, wherein the connection request response module comprises:
    验证请求生成模块,用于根据所述连接请求生成验证请求;a verification request generating module, configured to generate a verification request according to the connection request;
    验证请求发送模块,用于将所述验证请求发送至所述服务器;其中,所述验证请求用于请求验证所述连接请求是否合法;a verification request sending module, configured to send the verification request to the server; wherein the verification request is used to request verification whether the connection request is legal;
    连接建立模块,用于根据所述服务器返回的验证结果确定所述连接请求合法后,建立与所述客户端的连接。 The connection establishing module is configured to establish a connection with the client after determining that the connection request is legal according to the verification result returned by the server.
  44. 根据权利要求43所述的装置,其特征在于,所述连接请求中包括如下信息中的至少一种:所述服务器为客户端分配的服务提供设备的设备信息、所述客户端的客户端信息、和服务器分配给所述客户端的随机令牌。The device according to claim 43, wherein the connection request includes at least one of the following: the device information of the service providing device allocated by the server for the client, the client information of the client, And a random token assigned to the client by the server.
  45. 根据权利要求44所述的装置,其特征在于,所述验证请求生成模块,用于根据所述设备信息、客户端信息和随机令牌中的至少一种生成验证请求;其中,所述设备信息包括:用于标识所述服务提供设备的唯一识别码;所述客户端信息包括如下信息中的至少一种:用于标识所述客户端的随机标识和所述随机标识的随机标识密码。The device according to claim 44, wherein the verification request generating module is configured to generate an authentication request according to at least one of the device information, the client information, and the random token; wherein the device information And including: a unique identifier for identifying the service providing device; the client information includes at least one of the following information: a random identifier for identifying the client and a random identifier password for the random identifier.
  46. 根据权利要求42所述的装置,其特征在于,所述通知消息响应模块,用于响应所述通知消息,将所述客户端的登录用户对应的用户分区挂载到本地;其中,所述客户端的登录用户对应的用户分区中携带有所述与所述客户端相匹配的用户数据区。The device according to claim 42, wherein the notification message response module is configured to, in response to the notification message, mount a user partition corresponding to the login user of the client to the local; wherein, the client The user partition corresponding to the login user carries the user data area that matches the client.
  47. 根据权利要求42所述的装置,其特征在于,还包括:The device according to claim 42, further comprising:
    状态配置模块,用于在所述连接请求响应模块响应所述连接请求,建立与所述客户端的连接的之后,将当前状态配置为忙碌状态;a state configuration module, configured to configure the current state as a busy state after the connection request response module responds to the connection request and establish a connection with the client;
    状态信息生成模块,用于生成用于指示所述忙碌状态的状态信息;a status information generating module, configured to generate status information for indicating the busy status;
    状态信息发送模块,用于将所述状态信息发送给所述服务器。The status information sending module is configured to send the status information to the server.
  48. 一种智能电视系统,其特征在于,包括:至少一个服务器、至少一个客户端、至少一个服务提供设备;其中,A smart television system, comprising: at least one server, at least one client, and at least one service providing device; wherein
    所述服务器包括权利要求27-36任一项所述的设备连接装置,所述服务器用于向所述客户端分配服务提供设备;The server includes the device connection device according to any one of claims 27 to 36, wherein the server is configured to allocate a service providing device to the client;
    所述客户端包括权利要求37-41任一项所述的设备连接装置,所述客户端设置在智能电视中;The client includes the device connection device according to any one of claims 37-41, and the client is disposed in a smart television;
    所述服务提供设备包括权利要求42-47任一项所述的设备连接装置,所述服务提供设备设置在网络侧,用于通过网络为建立连接的客户端提供互联网服务。The service providing device includes the device connecting device according to any one of claims 42 to 47, and the service providing device is disposed on a network side for providing an Internet service for a connected client through a network.
  49. 根据权利要求48所述的系统,其特征在于,还包括:至少一个用户数据信息存储设备;所述至少一个用户数据信息存储设备包括:至少一个用户分区;其中,所述至少一个用户分区分别用于存储不同客户端对应的用户数据。The system according to claim 48, further comprising: at least one user data information storage device; said at least one user data information storage device comprising: at least one user partition; wherein said at least one user partition is respectively used Store user data corresponding to different clients.
  50. 根据权利要求48所述的系统,其特征在于,所述服务提供设备包括:网络机顶盒;所述互联网服务,包括如下中的至少一个:电视直播、音视频服务、网页服务、游戏服务 The system according to claim 48, wherein said service providing device comprises: a network set top box; said internet service comprising at least one of: live television, audio and video services, web services, game services
PCT/CN2016/085212 2015-06-17 2016-06-08 Device connection method and apparatus, and smart television system WO2016202203A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510338704.4 2015-06-17
CN201510338704.4A CN106331775B (en) 2015-06-17 2015-06-17 Equipment connection method, device and intelligent television system

Publications (1)

Publication Number Publication Date
WO2016202203A1 true WO2016202203A1 (en) 2016-12-22

Family

ID=57544943

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085212 WO2016202203A1 (en) 2015-06-17 2016-06-08 Device connection method and apparatus, and smart television system

Country Status (2)

Country Link
CN (1) CN106331775B (en)
WO (1) WO2016202203A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115866012A (en) * 2021-09-24 2023-03-28 中移(杭州)信息技术有限公司 Set top box control method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718425B (en) * 2018-05-31 2021-01-01 东莞市华睿电子科技有限公司 A photo sharing method applied to channels
TWI776454B (en) * 2021-04-08 2022-09-01 立新 陳 Method of distributing service server dynamically

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051042A1 (en) * 2001-09-13 2003-03-13 International Business Machines Corporation Load balancing method and system for allocation of service requests on a network
US20040236857A1 (en) * 2003-05-19 2004-11-25 Sumit Roy Systems and methods for selecting a provider to service content requested by a client device
US20060116988A1 (en) * 2004-12-01 2006-06-01 John Toebes Arrangement for selecting a server to provide distributed services from among multiple servers based on a location of a client device
CN101073708A (en) * 2007-06-14 2007-11-21 腾讯科技(深圳)有限公司 Method and system for participating game and game service system
CN101277234A (en) * 2007-03-28 2008-10-01 华为技术有限公司 A home network and login method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201491019U (en) * 2009-08-25 2010-05-26 北京原力创新科技有限公司 Network video system supporting multiple terminals
CN102201915B (en) * 2010-03-22 2014-05-21 中国移动通信集团公司 A terminal authentication method and device based on single sign-on
CN102611948A (en) * 2011-01-25 2012-07-25 北京天纵网联科技有限公司 Method for sharing and issuing audios and videos of mobile internet terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030051042A1 (en) * 2001-09-13 2003-03-13 International Business Machines Corporation Load balancing method and system for allocation of service requests on a network
US20040236857A1 (en) * 2003-05-19 2004-11-25 Sumit Roy Systems and methods for selecting a provider to service content requested by a client device
US20060116988A1 (en) * 2004-12-01 2006-06-01 John Toebes Arrangement for selecting a server to provide distributed services from among multiple servers based on a location of a client device
CN101277234A (en) * 2007-03-28 2008-10-01 华为技术有限公司 A home network and login method
CN101073708A (en) * 2007-06-14 2007-11-21 腾讯科技(深圳)有限公司 Method and system for participating game and game service system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115866012A (en) * 2021-09-24 2023-03-28 中移(杭州)信息技术有限公司 Set top box control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106331775A (en) 2017-01-11
CN106331775B (en) 2019-10-01

Similar Documents

Publication Publication Date Title
WO2016202200A1 (en) Data verification method and apparatus, and smart television system
CN103733599B (en) Apparatus and method for supporting home cloud in cloud computing system
US9571889B2 (en) System and method of authorizing a device in a network system
CN106302366B (en) A kind of data transmission method, device and intelligent television system
WO2016197875A1 (en) Data processing method and device applicable to service-providing device
US20130137511A1 (en) Distributed server system and method for streaming game service
CN109951488B (en) Method, device, equipment and storage medium for realizing service of content distribution network
WO2018219048A1 (en) Live broadcast method, system and related device
WO2018161807A1 (en) User identity verification method and apparatus
CN111643889A (en) Game control method, device, storage medium and electronic equipment
US9667630B2 (en) Authenticating a browser-less data streaming device to a network with an external browser
US11184357B2 (en) Authorizing a computing device across services
CN108055575B (en) A community-oriented network video sharing system based on analog screen projection
WO2016197863A1 (en) Client, smart television system, and corresponding data transmission method
US10744407B2 (en) Dynamic network storage for cloud console server
US20100146534A1 (en) System and Method to Authenticate a Set-Top Box Device
US9037848B2 (en) Mobile IPTV service system using downloadable conditional access system and method thereof
CN102594901A (en) Method, system, television and server for downloading television data
WO2016202203A1 (en) Device connection method and apparatus, and smart television system
CN107332894A (en) Live broadcasting method, apparatus and system, server, storage medium
CN107995295B (en) Network video application sharing management system based on cell virtualization server
KR101325025B1 (en) Method of providing cloud service using set-top box, and computer-readable recording medium for the same
WO2016202202A1 (en) Device connection method and apparatus, and smart television system
CN102201968A (en) Method, device and system for distributing user bandwidth in Internet protocol television (IPTV)
US10638202B1 (en) State synchronization and management for two-way connected consumer electronic devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16810944

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16810944

Country of ref document: EP

Kind code of ref document: A1