+

CN103747290B - A kind of information-pushing method and device - Google Patents

A kind of information-pushing method and device Download PDF

Info

Publication number
CN103747290B
CN103747290B CN201410004335.0A CN201410004335A CN103747290B CN 103747290 B CN103747290 B CN 103747290B CN 201410004335 A CN201410004335 A CN 201410004335A CN 103747290 B CN103747290 B CN 103747290B
Authority
CN
China
Prior art keywords
user account
user
server
session
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410004335.0A
Other languages
Chinese (zh)
Other versions
CN103747290A (en
Inventor
王银华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410004335.0A priority Critical patent/CN103747290B/en
Publication of CN103747290A publication Critical patent/CN103747290A/en
Application granted granted Critical
Publication of CN103747290B publication Critical patent/CN103747290B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明适用于电视技术领域,提供一种信息推送方法,包括:与服务器建立连接,以使服务器创建连接的第一会话;向服务器发送第一用户账号列表,第一用户账号列表包含N个用户账号,以使服务器判断这N个用户账号是否与第一会话对应;如果这N个用户账号与第一会话对应,通过第一会话接收服务器推送的分别属于这N个用户的信息。在本发明中,电视终端与服务器建立连接,创建连接的第一会话,该电视终端将多个用户对应的用户账号发送至服务器,该服务器根据用户账号的特征信息,通过该第一会话向电视终端同时推送分别属于这些用户的信息,实现了同一电视终端,服务器对于不同的用户通过电视终端的第一会话推送不同的信息。

The present invention is applicable to the field of television technology, and provides an information push method, including: establishing a connection with a server, so that the server creates a first connected session; sending a first user account list to the server, and the first user account list includes N users account, so that the server judges whether the N user accounts correspond to the first session; if the N user accounts correspond to the first session, the information that belongs to the N users pushed by the server is received through the first session. In the present invention, the TV terminal establishes a connection with the server, and establishes a first session of the connection. The TV terminal sends user accounts corresponding to multiple users to the server, and the server sends a message to the TV through the first session according to the characteristic information of the user accounts. The terminal pushes information belonging to these users at the same time, so that the server pushes different information to different users through the first session of the TV terminal for the same TV terminal.

Description

一种信息推送方法及装置A method and device for pushing information

技术领域technical field

本发明属于电视技术领域,尤其涉及一种信息推送方法及装置。The invention belongs to the technical field of television, and in particular relates to an information pushing method and device.

背景技术Background technique

目前,智能电视正逐步进入家庭,通过宽带接入互联网,由服务器为家庭用户提供各式各样的应用服务。然而,对于使用同一台电视的家庭用户,打开电视时所看到的应用服务界面是一样的,都呈现相同的几个应用服务,其他的应用服务则被隐藏起来,而在同一台电视前观看节目的用户可能是变化的,这样的方式使得有些用户需要经过多次操作才能找到自己所需的应用服务。对于同一台电视,服务器不能主动地根据正在观看节目的用户呈现不用的应用服务,推送不同的信息。At present, smart TVs are gradually entering homes, accessing the Internet through broadband, and providing various application services for home users by servers. However, for home users who use the same TV, the application service interface they see when they turn on the TV is the same, and they all present the same several application services, while other application services are hidden, and they can be watched in front of the same TV. The users of the program may change, and in this way, some users need to go through multiple operations to find the application service they need. For the same TV, the server cannot actively push different information according to the different application services presented by the user watching the program.

发明内容Contents of the invention

本发明的目的在于提供一种信息推送方法,旨在解决现有技术中对于同一台电视,不能根据正在观看节目的用户变化而推送不同信息的问题。The purpose of the present invention is to provide an information push method, aiming to solve the problem in the prior art that different information cannot be pushed according to the change of the user watching the program for the same TV.

本发明是这样实现的,一种信息推送方法,包括:The present invention is achieved in this way, a method for pushing information, comprising:

与服务器建立连接,以使所述服务器创建连接的第一会话;establishing a connection with a server such that said server creates a first session of the connection;

向所述服务器发送第一用户账号列表,所述第一用户账号列表包含N个用户账号,所述N个用户账号分别属于正在所述电视终端面前的N个用户,以使所述服务器判断所述N个用户账号是否与所述第一会话对应,N为大于等于1的整数;Sending a first user account list to the server, the first user account list includes N user accounts, and the N user accounts respectively belong to the N users who are in front of the TV terminal, so that the server can determine the Whether the N user accounts correspond to the first session, N is an integer greater than or equal to 1;

如果所述N个用户账号与所述第一会话对应,通过所述第一会话接收所述服务器推送的分别属于所述N个用户的信息,推送的所述信息为所述服务器根据所述N个用户账号的特征信息得到。If the N user accounts correspond to the first session, the information pushed by the server and belonging to the N users is received through the first session, and the information pushed is the server according to the N The characteristic information of a user account is obtained.

本发明的另一目的在于提供一种信息推送方法,包括:Another object of the present invention is to provide an information push method, including:

与电视终端建立连接,创建连接的第一会话;Establish a connection with the TV terminal, and create the first session of the connection;

接收所述电视终端发送的第一用户账号列表,所述第一用户账号列表包含N个用户账号,所述N个用户账号分别属于正在所述电视终端面前的N个用户,N为大于等于1的整数;receiving a first user account list sent by the TV terminal, the first user account list includes N user accounts, and the N user accounts respectively belong to N users who are in front of the TV terminal, and N is greater than or equal to 1 an integer of

如果所述N个用户账号与所述第一会话对应,根据所述N个用户账号的特征信息,通过所述第一会话向所述电视终端推送分别属于所述N个用户的信息。If the N user accounts correspond to the first session, push information respectively belonging to the N users to the television terminal through the first session according to feature information of the N user accounts.

本发明的另一目的在于提供一种信息推送装置,包括:Another object of the present invention is to provide an information push device, including:

第一连接单元,用于与服务器建立连接,以使所述服务器创建连接的第一会话;a first connection unit, configured to establish a connection with a server, so that the server creates a first session of the connection;

第一发送单元,用于向所述服务器发送第一用户账号列表,所述第一用户账号列表包含N个用户账号,所述N个用户账号分别属于正在所述电视终端面前的N个用户,以使所述服务器判断所述N个用户账号是否与所述第一会话对应,N为大于等于1的整数;The first sending unit is configured to send a first user account list to the server, the first user account list includes N user accounts, and the N user accounts respectively belong to N users who are in front of the television terminal, making the server determine whether the N user accounts correspond to the first session, where N is an integer greater than or equal to 1;

第一接收单元,用于如果所述N个用户账号与所述第一会话对应,通过所述第一会话接收所述服务器推送的分别属于所述N个用户的信息,推送的所述信息为所述服务器根据所述N个用户账号的特征信息得到。The first receiving unit is configured to, if the N user accounts correspond to the first session, receive the information pushed by the server respectively belonging to the N users through the first session, and the pushed information is The server obtains according to the feature information of the N user accounts.

本发明的另一目的在于提供一种信息推送装置,包括:Another object of the present invention is to provide an information push device, including:

第二连接单元,用于与电视终端建立连接,创建连接的第一会话;The second connection unit is used to establish a connection with the TV terminal and create a first session of connection;

第二接收单元,用于接收所述电视终端发送的第一用户账号列表,所述第一用户账号列表包含N个用户账号,所述N个用户账号分别属于正在所述电视终端面前的N个用户,N为大于等于1的整数;The second receiving unit is configured to receive the first user account list sent by the TV terminal, the first user account list includes N user accounts, and the N user accounts respectively belong to the N users who are in front of the TV terminal User, N is an integer greater than or equal to 1;

推送单元,用于如果所述N个用户账号与所述第一会话对应,根据所述N个用户账号的特征信息,通过所述第一会话向所述电视终端推送分别属于所述N个用户的信息。A push unit, configured to push, according to the feature information of the N user accounts to the television terminal through the first session, information belonging to the N users respectively, if the N user accounts correspond to the first session. Information.

在本发明中,电视终端与服务器建立连接,创建连接的第一会话,该电视终端将多个用户对应的用户账号发送至服务器,该服务器根据用户账号的特征信息,通过该第一会话向电视终端同时推送分别属于这些用户的信息,实现了同一电视终端,服务器对于不同的用户通过电视终端的第一会话推送不同的信息。In the present invention, the TV terminal establishes a connection with the server and establishes a first session of the connection. The TV terminal sends the user accounts corresponding to multiple users to the server, and the server sends a message to the TV through the first session according to the characteristic information of the user accounts. The terminal pushes information belonging to these users at the same time, so that the server pushes different information to different users through the first session of the TV terminal for the same TV terminal.

附图说明Description of drawings

图1是本发明实施例提供的信息推送方法适用的系统拓扑结构;Fig. 1 is a system topology applicable to the information push method provided by the embodiment of the present invention;

图2是本发明实施例一提供的信息推送方法中电视终端的实现流程图;FIG. 2 is a flow chart of the implementation of the TV terminal in the information push method provided by Embodiment 1 of the present invention;

图3是本发明实施例一提供的信息推送方法中电视终端与服务器连接的交互过程示意图;FIG. 3 is a schematic diagram of an interaction process between a TV terminal and a server in an information push method provided in Embodiment 1 of the present invention;

图4是本发明实施例一提供的信息推送方法电视终端发送第二用户账号列表的具体实现流程图;FIG. 4 is a specific implementation flow chart of sending the second user account list by the TV terminal of the information pushing method provided by Embodiment 1 of the present invention;

图5是本发明实施例一提供的信息推送方法中电视终端向服务器发送人脸图像信息的结构框图;5 is a structural block diagram of a TV terminal sending face image information to a server in the information push method provided by Embodiment 1 of the present invention;

图6是本发明实施例二提供的信息推送方法中服务器的实现流程图;FIG. 6 is a flow chart of implementing the server in the information push method provided by Embodiment 2 of the present invention;

图7是本发明实施例二提供的信息推送方法服务器创建第一会话的流程图;FIG. 7 is a flow chart of creating a first session by the server of the information push method provided by Embodiment 2 of the present invention;

图8是本发明实施例二提供的信息推送方法中服务器创建第二用户会话的具体实现流程图;FIG. 8 is a specific implementation flowchart of creating a second user session by the server in the information push method provided in Embodiment 2 of the present invention;

图9是本发明实施例二提供的信息推送方法服务器中会话管理的结构图;FIG. 9 is a structural diagram of session management in the information push method server provided by Embodiment 2 of the present invention;

图10是本发明实施例二提供的信息推送方法步骤S603的具体实现流程图;FIG. 10 is a flow chart of the implementation of Step S603 of the information push method provided in Embodiment 2 of the present invention;

图11是本发明实施例三提供的信息推送装置的结构框图。FIG. 11 is a structural block diagram of an information push device provided in Embodiment 3 of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

在本发明实施例中,电视终端与服务器建立连接,创建连接的第一会话,该电视终端将多个用户对应的用户账号发送至服务器,该服务器根据用户账号的特征信息,通过该第一会话向电视终端同时推送分别属于这些用户的信息,实现了同一电视终端,服务器对于不同的用户通过电视终端的第一会话推送不同的信息。In the embodiment of the present invention, the TV terminal establishes a connection with the server and creates a first session of connection. The TV terminal sends the user accounts corresponding to multiple users to the server, and the server uses the first session according to the characteristic information of the user accounts. Simultaneously pushing information belonging to these users to the TV terminal realizes that the same TV terminal pushes different information to different users through the first session of the TV terminal.

图1示出了本发明实施例提供的信息推送方法适用的系统拓扑结构,为了便于说明,仅示出与本实施例相关的部分。FIG. 1 shows a system topology applicable to the information push method provided by an embodiment of the present invention. For ease of description, only parts related to this embodiment are shown.

终端和云端通过通讯通道连接。云端可以为各种类型服务器组成的集群,接入服务器统一管理网络连接,然后由其他的业务服务器响应终端的请求,业务服务器包括但不限于广告推送服务器、节目推荐服务器、视频互动服务器和用户特征信息服务器等。终端可以是电视终端,该电视终端包含摄像头,能够采集电视机前多个电视用户的图像信息。通讯通道可以采用传输控制协议(Transmission Control Protocol,TCP)连接。相应地,电视终端中应包含网络连接调度器,支持TCP和用户数据包协议(User Datagram Protocol,UDP)传输,对电视机前多个电视用户的数据进行统一的网络连接调度,同时包含相应协议的封包和解包组件,支持面向对象的协议报文封装、同步或者异步接收云端的服务器回包和解包、对云端的服务器回包的过滤监听等。The terminal and the cloud are connected through a communication channel. The cloud can be a cluster of various types of servers. The access server manages network connections in a unified manner, and then other service servers respond to terminal requests. Service servers include but are not limited to advertisement push servers, program recommendation servers, video interaction servers and user feature information server, etc. The terminal may be a TV terminal, which includes a camera capable of collecting image information of multiple TV users in front of the TV. The communication channel may be connected by using a transmission control protocol (Transmission Control Protocol, TCP). Correspondingly, the TV terminal should include a network connection scheduler, which supports TCP and User Datagram Protocol (UDP) transmission, and performs unified network connection scheduling for the data of multiple TV users in front of the TV, and also includes the corresponding protocol The encapsulation and unpacking components support object-oriented protocol packet encapsulation, synchronous or asynchronous reception of cloud server return packets and unpackage, filtering and monitoring of cloud server return packets, etc.

图2示出了本发明实施例一提供的信息推送方法的实现流程,流程的执行主体为电视终端,详述如下:Fig. 2 shows the implementation process of the information push method provided by Embodiment 1 of the present invention, the execution subject of the process is a TV terminal, and the details are as follows:

在步骤S201中,与服务器建立连接,以使所述服务器创建连接的第一会话。In step S201, a connection is established with a server, so that the server creates a first session of the connection.

在本发明实施例中,电视终端与服务器建立TCP连接,服务器指图1中的接入服务器,连接的交互过程如图3所示,TCP连接采用Socket方式,接入服务器构造并启动ServerSocket,以绑定本机的互联网协议地址(Internet Protocol,IP)和对外端口;电视终端通过上述的网络连接调度器创建TCP连接,向服务器发起Socket,完成与接入服务器TCP连接的三次握手,在收到接入服务器发送的TCP连接成功的响应后,电视终端上报本机的设备编号和电视机型号;接入服务器为该电视终端创建第一会话,即电视终端会话,并获取电视终端的IP地址确定该第一会话的所属区域,为第一会话设置属性,属性可包括上述电视终端的设备编号、电视机型号和IP地址等信息。In the embodiment of the present invention, the TV terminal establishes a TCP connection with the server. The server refers to the access server in FIG. 1. The interactive process of the connection is shown in FIG. Bind the local Internet Protocol address (Internet Protocol, IP) and external port; the TV terminal creates a TCP connection through the above-mentioned network connection scheduler, initiates a Socket to the server, and completes the three-way handshake with the access server TCP connection. After the TCP connection success response sent by the access server, the TV terminal reports the device number and TV model of the machine; the access server creates the first session for the TV terminal, that is, the TV terminal session, and obtains the IP address of the TV terminal Determine the area to which the first session belongs, and set attributes for the first session. The attributes may include information such as the equipment number, TV model, and IP address of the above-mentioned TV terminal.

以上已创建了电视终端会话,为了区分同一电视终端前的多个用户,需要服务器在电视终端会话下创建对应的用户会话,在步骤S201之后,还包括:电视终端向所述服务器发送第二用户账号列表,所述第二用户账号列表包含M个用户账号,以使所述服务器在所述第一会话下创建与所述M个用户账号对应的M个第二会话,并且当接收到与所述第一会话下的第二会话对应的用户账号时,通过所述第一会话推送信息,M为大于等于1的整数。The TV terminal session has been created above. In order to distinguish multiple users in front of the same TV terminal, the server needs to create a corresponding user session under the TV terminal session. After step S201, it also includes: the TV terminal sends the second user session to the server. account list, the second user account list includes M user accounts, so that the server creates M second sessions corresponding to the M user accounts under the first session, and when receiving the When the user account corresponding to the second session under the first session is used, information is pushed through the first session, and M is an integer greater than or equal to 1.

作为本发明的一个实施例,电视终端发送第二用户账号列表具体过程如图4所示:As an embodiment of the present invention, the specific process of sending the second user account list by the TV terminal is shown in Figure 4:

在S401中,采集M个用户的人脸图像信息。In S401, face image information of M users is collected.

电视终端采集用户的人脸图像信息,当电视终端的摄像头检测到电视终端前有多个用户时,并发启动相应数量的线程,有M个用户则启动M个线程,每个线程采集一个用户的面部图像。The TV terminal collects the user's face image information. When the camera of the TV terminal detects that there are multiple users in front of the TV terminal, a corresponding number of threads are started concurrently. If there are M users, M threads are started, and each thread collects a user's face image information. facial image.

在S402中,将所述M个用户的人脸图像信息发送至所述服务器,以使所述服务器根据所述M个用户的人脸图像信息查找得到对应的M个用户账号。In S402, the face image information of the M users is sent to the server, so that the server searches for corresponding M user accounts according to the face image information of the M users.

电视终端将采集到的人脸图像信息向接入服务器发送,然后由人脸图像识别服务器进行人脸识别。人脸图像识别服务器将接收到的人脸图像信息与用户头像库中保存的图像进行对比,如果存在匹配的头像,获取其对应的用户账号,如果没有匹配的头像,保存该人脸图像信息并为其新建一个用户账号。The TV terminal sends the collected face image information to the access server, and then the face recognition server performs face recognition. The face image recognition server compares the received face image information with the images stored in the user avatar library, if there is a matching avatar, obtains its corresponding user account, if there is no matching avatar, saves the face image information and Create a new user account for it.

电视终端向服务器发送人脸图像信息的方式可以是运用P2P技术直接向人脸图像识别服务器发送,也可以是通过文件传输代理服务器向人脸图像识别服务器发送。图5示出了电视终端通过文件代理服务器向人脸图像识别服务器发送人脸图像信息的结构框图,首先文件代理服务器与人脸图像识别服务器进行Socket连接,连接成功后创建一个代理传输,设置其输出流向为接收方人脸图像识别服务器,同时人脸图像识别服务器通过接入服务器通知电视终端,接收方和文件传输代理服务器已建立好连接,然后文件代理服务器和电视终端也进行Socket连接,连接成功后,设置该代理传输的输入流向为发送方电视终端,最后电视终端激活数据流,人脸图像信息通过文件传输代理服务器传输给人脸图像识别服务器。The way for the TV terminal to send the face image information to the server may be to use P2P technology to directly send to the face image recognition server, or to send to the face image recognition server through a file transfer proxy server. Fig. 5 shows the structural block diagram of TV terminal sending face image information to face image recognition server through file proxy server, at first file proxy server and face image recognition server carry out Socket connection, create a proxy transmission after the connection is successful, set its The output flow is to the receiver's face image recognition server, and at the same time, the face image recognition server notifies the TV terminal through the access server that the receiver and the file transfer proxy server have established a connection, and then the file proxy server and the TV terminal also perform a Socket connection. After success, set the input flow direction of the proxy transmission to the sender TV terminal, and finally the TV terminal activates the data stream, and the face image information is transmitted to the face image recognition server through the file transfer proxy server.

在S403中,接收所述服务器发送的所述M个用户账号,并生成第二用户账号列表。In S403, the M user accounts sent by the server are received, and a second user account list is generated.

在S404中,向所述服务器发送所述第二用户账号列表。In S404, send the second user account list to the server.

在本发明实施例中,电视终端在接收到服务器返回的上述M个用户账号,生成第二用户账号列表后,再向服务器统一上报。这样可以保证服务器同时获取到在电视终端前的所有用户的用户账号,避免了当M个线程中有部分线程出现异常时,服务器不能获取到其对应用户的用户账号,在后续步骤中服务器只向其他用户推送信息而不能向该用户推送信息造成的用户体验不好的情况。In the embodiment of the present invention, after receiving the M user accounts returned by the server and generating the second user account list, the television terminal reports to the server in a unified manner. This can ensure that the server obtains the user accounts of all users in front of the TV terminal at the same time, and avoids that when some threads in the M threads are abnormal, the server cannot obtain the user accounts of its corresponding users. Other users push information but cannot push information to this user, resulting in poor user experience.

服务器根据第二用户账号列表在第一会话下创建与其中的M个用户账号对应的第二会话,第二会话即用户会话,在第一会话下的第二会话都将通过第一会话的连接通道进行信息推送,详细步骤在后续实施例中详述。The server creates a second session corresponding to the M user accounts in the first session according to the second user account list, the second session is the user session, and the second session under the first session will be connected through the first session The channel pushes information, and the detailed steps are detailed in subsequent embodiments.

在步骤S202中,向所述服务器发送第一用户账号列表,所述第一用户账号列表包含N个用户账号,所述N个用户账号分别属于正在所述电视终端面前的N个用户,以使所述服务器判断所述N个用户账号是否与所述第一会话对应,N为大于等于1的整数。In step S202, a first user account list is sent to the server, the first user account list includes N user accounts, and the N user accounts respectively belong to N users who are in front of the television terminal, so that The server judges whether the N user accounts correspond to the first session, where N is an integer greater than or equal to 1.

在服务器已经建立了第一会话与第二会话的对应关系后,电视终端定时采集用户的人脸图像信息,如每隔10秒采集一次,定时从服务器获取到第一用户账号列表,获取过程与上述获取第二用户账号列表的过程相同,然后电视终端定时将第一用户账号列表发送至服务器。由于电视终端前的用户会随着时间发生变化,第一用户账号列表包含的用户账号可以与第二用户账号列表中的相同,也可以不同。After the server has established the corresponding relationship between the first session and the second session, the TV terminal regularly collects the user's face image information, such as collecting once every 10 seconds, and regularly obtains the first user account list from the server. The acquisition process is the same as The above-mentioned process of obtaining the second user account list is the same, and then the TV terminal sends the first user account list to the server at regular intervals. Since the users in front of the TV terminal will change over time, the user accounts included in the first user account list may be the same as or different from those in the second user account list.

在步骤S103中,如果所述N个用户账号与所述第一会话对应,通过所述第一会话接收所述服务器推送的分别属于所述N个用户的信息,推送的所述信息为所述服务器根据所述N个用户账号的特征信息得到。In step S103, if the N user accounts correspond to the first session, the information pushed by the server respectively belonging to the N users is received through the first session, and the pushed information is the The server obtains it according to the feature information of the N user accounts.

在本发明实施例中,服务器通过查找,确定在第一会话下是否存在与上述N个用户账号对应的第二会话,如果存在则通过第一会话的连接通道给用户推送信息,电视终端的网络连接调度器统一管理网络连接,在第一会话的连接通道上接收多个用户不同的推送信息。In the embodiment of the present invention, the server determines whether there is a second session corresponding to the above-mentioned N user accounts under the first session by searching, and if so, pushes information to the user through the connection channel of the first session, and the network of the TV terminal The connection scheduler manages network connections in a unified manner, and receives different push information from multiple users on the connection channel of the first session.

图6示出了本发明实施例二提供的信息推送方法的实现流程,流程的执行主体为服务器,详述如下:Figure 6 shows the implementation process of the information push method provided by Embodiment 2 of the present invention, the execution subject of the process is the server, and the details are as follows:

在步骤S601中,与电视终端建立连接,创建连接的第一会话。In step S601, a connection is established with a television terminal, and a first session of the connection is established.

服务器与电视终端的连接过程在上述实施例中已详述,在此不再赘述。连接建立后,服务器创建第一会话的过程,即电视终端会话,如图7所示,与上述实施例对应,根据TCP协议创建非阻塞输入输出(Non-blocking Input Output,NIO)会话,打开NIO会话时创建connection,然后进行电视终端接入初始化,创建电视终端会话。The connection process between the server and the television terminal has been described in detail in the above embodiments, and will not be repeated here. After the connection is established, the process of the server creating the first session, that is, the TV terminal session, as shown in Figure 7, corresponds to the above-mentioned embodiment, creates a non-blocking input and output (Non-blocking Input Output, NIO) session according to the TCP protocol, and opens the NIO Create a connection during the session, and then initialize the TV terminal access to create a TV terminal session.

创建电视终端会话后,为了区分同一电视终端前的多个用户,服务器在电视终端会话下创建对应的用户会话,即第二会话,作为本发明的一个实施例,详细过程如图8所示:After the TV terminal session is created, in order to distinguish multiple users in front of the same TV terminal, the server creates a corresponding user session under the TV terminal session, that is, the second session. As an embodiment of the present invention, the detailed process is as shown in Figure 8:

在S801中,接收所述电视终端发送的第二用户账号列表,所述第二用户账号列表包含M个用户账号,M为大于等于1的整数。In S801, receive a second user account list sent by the television terminal, where the second user account list includes M user accounts, where M is an integer greater than or equal to 1.

第二用户账号列表的生成过程已在上述实施例详述,在此不再赘述。The process of generating the second user account list has been described in detail in the above embodiments, and will not be repeated here.

在S802中,在所述第一会话下创建与所述M个用户账号对应的M个第二会话。In S802, M second sessions corresponding to the M user accounts are created under the first session.

服务器接收到第二用户账号列表后,在第一会话下为其中的每一个用户账号创建一个用户会话,即第二会话,便于后续在第一会话的连接通道上面向用户推送信息。由以上步骤,每个电视终端对应一个电视终端会话,每个用户对应一个用户会话,在同一电视终端前用户的用户会话归属于同一个电视终端会话,会话管理的结构图如图9所示。After receiving the second user account list, the server creates a user session for each of the user accounts in the first session, that is, the second session, so as to facilitate subsequent push information to the user on the connection channel of the first session. According to the above steps, each TV terminal corresponds to a TV terminal session, and each user corresponds to a user session. The user sessions of users before the same TV terminal belong to the same TV terminal session. The structure diagram of session management is shown in FIG. 9 .

在步骤S602中,接收所述电视终端发送的第一用户账号列表,所述第一用户账号列表包含N个用户账号,所述N个用户账号分别属于正在所述电视终端面前的N个用户,N为大于等于1的整数。In step S602, receiving a first user account list sent by the TV terminal, the first user account list includes N user accounts, and the N user accounts respectively belong to N users who are in front of the TV terminal, N is an integer greater than or equal to 1.

在建立了第一会话与第二会话的对应关系后,服务器接收电视终端定时发送的第一用户账号列表,其中包含正在电视终端前观看节目的N个用户的用户账号。After the correspondence between the first session and the second session is established, the server receives the first user account list periodically sent by the TV terminal, which includes user accounts of N users who are watching programs in front of the TV terminal.

在步骤S603中,如果所述N个用户账号与所述第一会话对应,根据所述N个用户账号的特征信息,通过所述第一会话向所述电视终端推送分别属于所述N个用户的信息。In step S603, if the N user accounts correspond to the first session, according to the feature information of the N user accounts, push the TV terminal through the first session to the TV terminal Information.

作为本发明的一个实施例,在第一会话下创建了第二会话后,如图10所示,步骤S603具体为:As an embodiment of the present invention, after the second session is created under the first session, as shown in FIG. 10 , step S603 is specifically:

在S1001中,判断在所述第一会话下是否存在与所述N个用户账号对应的第二会话。在S1002中,如果存在与所述N个用户账号对应的第二会话,根据所述N个用户账号的特征信息,通过所述第一会话推送分别属于所述N个用户的信息。In S1001, determine whether there is a second session corresponding to the N user accounts under the first session. In S1002, if there are second sessions corresponding to the N user accounts, according to the feature information of the N user accounts, push information respectively belonging to the N users through the first session.

在本发明实施例中,服务器查找判断接收到的用户账号的第二会话归属于哪个第一会话,得到结果后,获取该用户账号的特征信息和可推荐的信息源,通过查找到的第一会话推送分别属于该N个用户的信息。如果用户离开电视终端前,第一用户账号列表中没有该用户的用户账号,则删除其在第一会话下对应的第二会话;如果有新用户出现在电视终端前,第一用户账号列表中包含该用户的用户账号,则在第一会话下添加与其对应的第二会话。在此后接收到第一用户账号列表时,都以此步骤更新第一会话下的第二会话。In the embodiment of the present invention, the server searches to determine which first session the second session of the received user account belongs to. The session pushes information respectively belonging to the N users. If before the user leaves the TV terminal, there is no user account of the user in the first user account list, then delete its corresponding second session under the first session; if a new user appears before the TV terminal, the first user account list will If the user account of the user is included, the corresponding second session is added under the first session. Afterwards, when the first user account list is received, the second session under the first session is updated in this step.

用户账号的特征信息由服务器在平常用户收看节目的过程中统计,包括但不限于该用户收看特定节目类型的时长、在特定时间段收看最多的节目类型等,根据特征信息从可推荐的信息源中选取推送信息的方式在此不做限定。The feature information of the user account is counted by the server during the normal user’s viewing of programs, including but not limited to the duration of the user’s viewing of a specific program type, the most watched program type in a specific time period, etc., according to the feature information from recommended information sources The method of selecting and pushing information in is not limited here.

在上述实施例描述的电视终端和服务器的系统中,服务器可针对电视终端推送信息,也可针对电视终端前的多个用户推送不同的信息,信息的传输都通过第一会话的连接通道完成。电视终端接收到推送的信息后,可以跑马灯或者弹出框的形式展示,如果是针对用户的,还可以将电视终端的屏幕分成多个小屏来展示不同用户的信息,或者采用裸眼3D技术配合摄像头对用户位置的监测将信息显示给相应的用户。In the TV terminal and server system described in the above embodiments, the server can push information to the TV terminal, or push different information to multiple users in front of the TV terminal, and the transmission of information is completed through the connection channel of the first session. After the TV terminal receives the pushed information, it can be displayed in the form of a marquee or a pop-up box. If it is targeted at the user, the screen of the TV terminal can be divided into multiple small screens to display the information of different users, or the naked-eye 3D technology can be used to cooperate. The camera monitors the user's location and displays the information to the corresponding user.

在本发明实施例中,电视终端与服务器建立连接,创建连接的第一会话,该电视终端将多个用户对应的用户账号发送至服务器,该服务器根据用户账号的特征信息,通过该第一会话向电视终端同时推送分别属于这些用户的信息,实现了同一电视终端,服务器对于不同的用户通过电视终端的第一会话推送不同的信息。In the embodiment of the present invention, the TV terminal establishes a connection with the server and creates a first session of connection. The TV terminal sends the user accounts corresponding to multiple users to the server, and the server uses the first session according to the characteristic information of the user accounts. Simultaneously pushing information belonging to these users to the TV terminal realizes that the same TV terminal pushes different information to different users through the first session of the TV terminal.

图11示出了本发明实施例三提供的信息推送装置的结构框图,该装置可以位于电视终端和服务器中,用于执行图2至图10描述的信息推送方法。为了便于说明,仅示出与本实施例相关的部分。FIG. 11 shows a structural block diagram of an information push device provided in Embodiment 3 of the present invention. The device can be located in a TV terminal and a server, and is used to execute the information push method described in FIGS. 2 to 10 . For ease of description, only the parts related to this embodiment are shown.

参照图11,在电视终端中,该装置包括:Referring to Figure 11, in the TV terminal, the device includes:

第一连接单元1101,与服务器建立连接,以使所述服务器创建连接的第一会话。The first connection unit 1101 is configured to establish a connection with a server, so that the server creates a connected first session.

第一发送单元1102,向服务器发送第一用户账号列表,第一用户账号列表包含N个用户账号,N个用户账号分别属于正在所述电视终端面前的N个用户,以使所述服务器判断这N个用户账号是否与第一会话对应,N为大于等于1的整数。The first sending unit 1102 sends a first user account list to the server, the first user account list includes N user accounts, and the N user accounts belong to N users who are in front of the TV terminal respectively, so that the server can determine the Whether the N user accounts correspond to the first session, N is an integer greater than or equal to 1.

第一接收单元1103,如果这N个用户账号与第一会话对应,通过第一会话接收服务器推送的分别属于所述N个用户的信息,推送的所述信息为服务器根据所述N个用户账号的特征信息得到。The first receiving unit 1103, if the N user accounts correspond to the first session, receives the information pushed by the server respectively belonging to the N users through the first session, and the pushed information is the information that the server pushes according to the N user accounts. feature information is obtained.

可选地,该装置还包括:Optionally, the device also includes:

第二发送单元,向服务器发送第二用户账号列表,第二用户账号列表包含M个用户账号,以使服务器在第一会话下创建与这M个用户账号对应的M个第二会话,并且当接收到与第一会话下的第二会话对应的用户账号时,通过第一会话推送信息,M为大于等于1的整数。The second sending unit sends a second user account list to the server, the second user account list includes M user accounts, so that the server creates M second sessions corresponding to the M user accounts under the first session, and when When the user account corresponding to the second session under the first session is received, information is pushed through the first session, and M is an integer greater than or equal to 1.

可选地,第二发送单元包括:Optionally, the second sending unit includes:

采集子单元,采集M个用户的人脸图像信息。The collection subunit collects face image information of M users.

图像发送子单元,将这M个用户的人脸图像信息发送至服务器,以使服务器根据这M个用户的人脸图像信息查找得到对应的M个用户账号。The image sending subunit sends the face image information of the M users to the server, so that the server can search and obtain the corresponding M user accounts according to the face image information of the M users.

用户账号接收子单元,接收服务器发送的这M个用户账号,并生成第二用户账号列表。The user account receiving subunit receives the M user accounts sent by the server, and generates a second user account list.

用户账号列表发送子单元,向服务器发送第二用户账号列表。The user account list sending subunit sends the second user account list to the server.

在服务器中,该装置包括:In the server, the device includes:

第二连接单元1104,与电视终端建立连接,创建连接的第一会话。The second connection unit 1104 is configured to establish a connection with the TV terminal, and create a first connected session.

第二接收单元1105,接收电视终端发送的第一用户账号列表,第一用户账号列表包含N个用户账号,这N个用户账号分别属于正在电视终端面前的N个用户,N为大于等于1的整数。The second receiving unit 1105 receives the first user account list sent by the TV terminal. The first user account list includes N user accounts. integer.

推送单元1106,如果这N个用户账号与所述第一会话对应,根据这N个用户账号的特征信息,通过第一会话向电视终端推送分别属于这N个用户的信息。The pushing unit 1106, if the N user accounts correspond to the first session, pushes information respectively belonging to the N users to the TV terminal through the first session according to the characteristic information of the N user accounts.

可选地,该装置还包括:Optionally, the device also includes:

第三接收单元,接收电视终端发送的第二用户账号列表,第二用户账号列表包含M个用户账号,M为大于等于1的整数。The third receiving unit receives the second user account list sent by the television terminal, the second user account list includes M user accounts, and M is an integer greater than or equal to 1.

会话创建单元,在第一会话下创建与这M个用户账号对应的M个第二会话。The session creating unit is configured to create M second sessions corresponding to the M user accounts under the first session.

推送单元1106包括:Push unit 1106 includes:

判断子单元,判断在第一会话下是否存在与这N个用户账号对应的第二会话。The judging subunit judges whether there is a second session corresponding to the N user accounts under the first session.

推送子单元,如果存在与这N个用户账号对应的第二会话,根据这N个用户账号的特征信息,通过第一会话推送分别属于这N个用户的信息。The push subunit, if there is a second session corresponding to the N user accounts, pushes the information respectively belonging to the N users through the first session according to the characteristic information of the N user accounts.

在本发明实施例中,电视终端与服务器建立连接,创建连接的第一会话,该电视终端将多个用户对应的用户账号发送至服务器,该服务器根据用户账号的特征信息,通过该第一会话向电视终端同时推送分别属于这些用户的信息,实现了同一电视终端,服务器对于不同的用户通过电视终端的第一会话推送不同的信息。In the embodiment of the present invention, the TV terminal establishes a connection with the server and creates a first session of connection. The TV terminal sends the user accounts corresponding to multiple users to the server, and the server uses the first session according to the characteristic information of the user accounts. Simultaneously pushing information belonging to these users to the TV terminal realizes that the same TV terminal pushes different information to different users through the first session of the TV terminal.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (10)

1. a kind of information-pushing method, it is characterised in that methods described includes:
Establish and connect with server, so that the server creates the first session of connection;
The first user account list is sent to the server, the first user account list includes N number of user account, described N number of user account is belonging respectively to N number of user just in face of television terminal, so that the server judges N number of user's account Whether number corresponding with first session, N is the integer more than or equal to 1;
If N number of user account is corresponding with first session, the server push is received by first session The information for being belonging respectively to N number of user, the spy of the described information of push for the server according to N number of user account Reference is ceased to obtain, and the characteristic information of the user account is counted by server during usual user watches program;
Wherein, it is described to include to the server the first user account list of transmission:
The human face image information of the N number of user of timing acquiring;
The human face image information of N number of user is sent to the server, so that the server is according to N number of user Human face image information search to obtain corresponding to N number of user account;
N number of user account that the server is sent is received, and generates the first user account list;
The first user account list is sent to the server.
2. the method as described in claim 1, it is characterised in that after the foundation connection with server, described to institute Before stating server the first user account list of transmission, methods described also includes:
Second user account list is sent to the server, the second user account list includes M user account, so that The server creates M corresponding with the M user account the second sessions under first session, and works as and receive During user account corresponding with the second session under first session, by the first session pushed information, M be more than etc. In 1 integer.
3. method as claimed in claim 2, it is characterised in that described to send second user account list bag to the server Include:
Gather the human face image information of M user;
The human face image information of the M user is sent to the server, so that the server is according to the M user Human face image information search to obtain corresponding to M user account;
The M user account that the server is sent is received, and generates second user account list;
The second user account list is sent to the server.
4. a kind of information-pushing method, it is characterised in that methods described includes:
Establish and connect with television terminal, create the first session of connection;
The first user account list that the television terminal is sent is received, the first user account list includes N number of user's account Number, N number of user account is belonging respectively to N number of user in face of the television terminal, and N is the integer more than or equal to 1;
If N number of user account is corresponding with first session, according to the characteristic information of N number of user account, pass through First session is belonging respectively to the information of N number of user, the feature letter of the user account to television terminal push Breath is counted by server during usual user watches program;
Wherein, the first user account list for receiving the television terminal and sending, including:
The human face image information for N number of user that television terminal is sent is received, and is believed according to the facial image of N number of user Breath lookup obtains corresponding N number of user account;
N number of user account is sent to the television terminal, so that the television terminal generates the first user account list;
Receive the television terminal and send the first user account list.
5. method as claimed in claim 4, it is characterised in that connected in described establish with television terminal, create the of connection After one session, before the first user account list for receiving the television terminal and sending, methods described also includes:
The second user account list that the television terminal is sent is received, the second user account list includes M user's account Number, M is the integer more than or equal to 1;
M the second session corresponding with the M user account is created under first session;
If N number of user account is corresponding with first session, according to the characteristic information of N number of user account, Being belonging respectively to the information of N number of user to television terminal push by first session includes:
Judge to whether there is the second session corresponding with the N number of user account under first session;
If there is the second session corresponding with the N number of user account, according to the characteristic information of N number of user account, lead to Cross the information that the first session push is belonging respectively to N number of user.
6. a kind of information push-delivery apparatus, it is characterised in that described device includes:
First connection unit, connected for being established with server, so that the server creates the first session of connection;
First transmitting element, for sending the first user account list, the first user account list bag to the server Containing N number of user account, N number of user account is belonging respectively to N number of user just in face of television terminal, so that the server Judge whether N number of user account is corresponding with first session, N is the integer more than or equal to 1;
First receiving unit, if corresponding with first session for N number of user account, connect by first session Receive the information for being belonging respectively to N number of user of the server push, the described information of push is the server according to institute The characteristic information for stating N number of user account obtains, and the characteristic information of the user account watches program by server in usual user During count;
Wherein, first transmitting element is specifically used for:
The human face image information of the N number of user of timing acquiring;
The human face image information of N number of user is sent to the server, so that the server is according to N number of user Human face image information search to obtain corresponding to N number of user account;
N number of user account that the server is sent is received, and generates the first user account list;
The first user account list is sent to the server.
7. device as claimed in claim 6, it is characterised in that described device also includes:
Second transmitting element, for sending second user account list, the second user account list bag to the server Containing M user account, so that the server creates M corresponding with the M user account the under first session Two sessions, and when receiving user account corresponding with the second session under first session, pass through first meeting Pushed information is talked about, M is the integer more than or equal to 1.
8. device as claimed in claim 7, it is characterised in that second transmitting element includes:
Subelement is gathered, for gathering the human face image information of M user;
Image transmission sub-unit, for the human face image information of the M user to be sent to the server, so that the clothes Business device M user account according to corresponding to the human face image information of the M user searches to obtain;
User account receiving subelement, the M user account sent for receiving the server, and generate second user Account list;
User account list transmission sub-unit, for sending the second user account list to the server.
9. a kind of information push-delivery apparatus, it is characterised in that described device includes:
Second connection unit, connected for being established with television terminal, create the first session of connection;
Second receiving unit, the first user account list sent for receiving the television terminal, first user account List includes N number of user account, and N number of user account is belonging respectively to N number of user in face of the television terminal, N and is Integer more than or equal to 1;
Push unit, if corresponding with first session for N number of user account, according to N number of user account Characteristic information, the information of N number of user, the user are belonging respectively to television terminal push by first session The characteristic information of account is counted by server during usual user watches program;
Wherein, second receiving unit is specifically used for:
The human face image information for N number of user that television terminal is sent is received, and is believed according to the facial image of N number of user Breath lookup obtains corresponding N number of user account;
N number of user account is sent to the television terminal, so that the television terminal generates the first user account list;
Receive the television terminal and send the first user account list.
10. device as claimed in claim 9, it is characterised in that described device also includes:
3rd receiving unit, the second user account list sent for receiving the television terminal, the second user account List includes M user account, and M is the integer more than or equal to 1;
Session creating unit, for creating M the second session corresponding with the M user account under first session;
The push unit includes:
Judgment sub-unit, for judging to whether there is the second meeting corresponding with the N number of user account under first session Words;
Subelement is pushed, for if there is the second session corresponding with the N number of user account, according to N number of user's account Number characteristic information, the information of N number of user is belonging respectively to by first session push.
CN201410004335.0A 2014-01-02 2014-01-02 A kind of information-pushing method and device Expired - Fee Related CN103747290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410004335.0A CN103747290B (en) 2014-01-02 2014-01-02 A kind of information-pushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410004335.0A CN103747290B (en) 2014-01-02 2014-01-02 A kind of information-pushing method and device

Publications (2)

Publication Number Publication Date
CN103747290A CN103747290A (en) 2014-04-23
CN103747290B true CN103747290B (en) 2018-03-27

Family

ID=50504272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410004335.0A Expired - Fee Related CN103747290B (en) 2014-01-02 2014-01-02 A kind of information-pushing method and device

Country Status (1)

Country Link
CN (1) CN103747290B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135679A (en) * 2014-07-31 2014-11-05 深圳市同洲电子股份有限公司 A program list generation method and device thereof
CN107528874B (en) * 2016-07-15 2020-06-16 腾讯科技(深圳)有限公司 Information pushing and playing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118298A (en) * 2013-02-21 2013-05-22 华为终端有限公司 Device and method for simultaneously playing multiple television programs
CN103324729A (en) * 2013-06-27 2013-09-25 北京小米科技有限责任公司 Method and device for recommending multimedia resources
CN103442285A (en) * 2013-08-21 2013-12-11 深圳Tcl新技术有限公司 Program pushing method, smart television, smart phone and background server

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005015902A1 (en) * 2003-08-06 2005-02-17 Matsushita Electric Industrial Co., Ltd. Program recommendation apparatus
CN100405832C (en) * 2004-12-17 2008-07-23 Tcl王牌电子(深圳)有限公司 TV set apparatus capable of simultaneously receiving and playing multi-channel programs
CN100455012C (en) * 2005-09-12 2009-01-21 中兴通讯股份有限公司 Television program recommending device and method thereof
JP5482206B2 (en) * 2010-01-06 2014-05-07 ソニー株式会社 Information processing apparatus, information processing method, and program
CN102970606B (en) * 2012-12-04 2017-11-17 深圳Tcl新技术有限公司 The TV programme suggesting method and device of identity-based identification
CN103139616A (en) * 2013-02-27 2013-06-05 中山大学 Personalization cloud recommendation method and system based on multi-user digital television program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118298A (en) * 2013-02-21 2013-05-22 华为终端有限公司 Device and method for simultaneously playing multiple television programs
CN103324729A (en) * 2013-06-27 2013-09-25 北京小米科技有限责任公司 Method and device for recommending multimedia resources
CN103442285A (en) * 2013-08-21 2013-12-11 深圳Tcl新技术有限公司 Program pushing method, smart television, smart phone and background server

Also Published As

Publication number Publication date
CN103747290A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
US20160112746A1 (en) Media Playback Method, Apparatus, and System
EP2712126A2 (en) Networking method, server end device, client end device and network system
EP3996355B1 (en) Method for transferring media stream and user equipment
CN103782571A (en) System and method for providing a message and an event based video services control plane
CN103067776A (en) Program-pushing method and system, intelligent display device, cloud server
CN105530535A (en) Method and system capable of realizing multi-person video watching and real-time interaction
CN103888539B (en) Bootstrap technique, device and the P2P caching systems of P2P cachings
CN103888488A (en) Method for sharing data based on WIFI
CN105992062A (en) Method and device for sharing media program
CN106453231A (en) Signaling obtaining and transmission method and device
CN104918132A (en) Method and system for smart television audio and video communication
CN103581199A (en) Method and system for showing services in client terminal under multi-screen interaction scene
CN109474646A (en) Communication connecting method, device, system and storage medium
CN111147817B (en) Video processing method, device, electronic device and storage medium
WO2013083052A1 (en) Method, device, and system for acquiring multicast address
CN103747290B (en) A kind of information-pushing method and device
CN103634695A (en) Method and system for receiving Google GCM push message by smart television
CN107920072A (en) A kind of multimedia sharing method and system based on data characteristics
CN109151517A (en) Shopping centre interactive approach, device, system, storage medium and computer equipment
KR101653237B1 (en) Method and system for providing contents service using multiple devices
CN104486639A (en) Community information publication mechanism and publication system
CN102222096B (en) Method and device for providing multi-media resource access service
CN108737477B (en) Cloud storage system, and media data balanced storage method and system
US20150067050A1 (en) Method and system for social networking in a multi-screen environment
CN104038721B (en) A kind of display control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180327

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载