CN113473231B - Television starting method and device - Google Patents

Television starting method and device Download PDF

Info

Publication number
CN113473231B
CN113473231B CN202010243607.8A CN202010243607A CN113473231B CN 113473231 B CN113473231 B CN 113473231B CN 202010243607 A CN202010243607 A CN 202010243607A CN 113473231 B CN113473231 B CN 113473231B
Authority
CN
China
Prior art keywords
data packet
packet
television
server
identifier
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.)
Active
Application number
CN202010243607.8A
Other languages
Chinese (zh)
Other versions
CN113473231A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202010243607.8A priority Critical patent/CN113473231B/en
Publication of CN113473231A publication Critical patent/CN113473231A/en
Application granted granted Critical
Publication of CN113473231B publication Critical patent/CN113473231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4436Power management, e.g. shutting down unused components of the receiver
    • 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/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a television starting method and a television starting device, which are applied to a television, wherein the method comprises the following steps: when the television is in standby, receiving a first data packet sent by a server, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet; and if the first data packet is determined to be the wake-up packet according to the packet identification, controlling the television to start. The method is used for waking up the television in the wide area network and improving user experience.

Description

Television starting method and device
Technical Field
The embodiment of the invention relates to the technical field of televisions, in particular to a television starting method and device.
Background
At present, when the television is in a standby state, the smart phone can wake up the television through the router, so that films, music, pictures and the like in the smart phone are pushed to the television.
In the related art, the method for waking up the television by the smart phone through the router includes: the intelligent mobile phone, the router and the television are in the same local area network, and the intelligent mobile phone sends a data packet to the router; the router forwards the data packet to the television; after receiving the data packet, the television analyzes the data packet to obtain a set value of a General-purpose input/output (GPIO) port, and wakes up when the set value is determined to be "1".
In the method, when the smart phone wakes up the television through the router, the smart phone and the television are required to be in the same local area network, and if the smart phone and the television are not in the same local area network, the smart phone cannot wake up the television through the router.
Disclosure of Invention
The application provides a television starting method and device, which are used for waking up a television in a wide area network and improving user experience.
In a first aspect, the present application provides a method for powering on a television, which is applied to a television, and includes: when the television is in standby, receiving a first data packet sent by a server, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet; and if the first data packet is determined to be the wake-up packet according to the packet identification, controlling the television to start.
In one possible implementation manner, the television comprises a WiFi module, wherein a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module has a general purpose input/output GPIO port; if the first data packet is determined to be a wake-up packet according to the packet identification, controlling the television to start up, including: analyzing the first data packet according to the lightweight protocol stack program to obtain a packet identifier; if the first data packet is determined to be a wake-up packet according to the packet identification, determining a set value of the GPIO port according to the packet identification; and controlling the starting of the television according to the set value.
In another possible implementation manner, before receiving the first data packet sent by the server, the method further includes: sending a second data packet to the server, wherein the second data packet indicates that the television is connected with the server when in standby; receiving a third data packet sent by the server, wherein the third data packet indicates that the server is connected with the television in standby; and sending a fourth data packet to the server, wherein the fourth data packet indicates that the television is connected with the server when in standby.
In another possible embodiment, the third data packet has a preset format, and the third data packet includes at least one of a packet length and a packet identification; after receiving the third data packet sent by the server, the method further includes: if the preset format is the first format, determining that the third data packet is a heartbeat packet; or if the packet length in the third data packet is the first length, determining that the third data packet is a heartbeat packet; and if the packet identifier in the third data packet is the first identifier, determining that the third data packet is a heartbeat packet.
In another possible embodiment, before sending the second data packet to the server, the method further includes: and transmitting registration information to the server, wherein the registration information comprises at least one of the name, the number and the MAC address of the television.
In another possible implementation manner, after the television is controlled to be turned on, the method further includes: and sending a fifth data packet to the server, wherein the fifth data packet comprises a state code, and the state code indicates that the television is started.
In a second aspect, the present application provides a method for starting up a television, which is applied to a server, and includes:
receiving a sixth data packet sent by the terminal, wherein the sixth data packet comprises wake-up information and the MAC address of the television; determining a first data packet according to the wakeup information and the MAC address, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wakeup packet; and sending the first data packet to the television.
In one possible implementation, determining the first data packet according to the wake-up information and the television identification includes: determining the packet identification according to the wake-up information; determining the address information of the television according to the MAC address; and determining the first data packet according to the packet identification and the address information.
In another possible implementation manner, before receiving the sixth data packet sent by the terminal, the method further includes:
receiving a second data packet sent by the television, wherein the second data packet indicates that the television is connected with the server when in standby; transmitting a third data packet to the television, wherein the third data packet indicates that the server is connected with the television in standby; and receiving a fourth data packet sent by the television, wherein the fourth data packet indicates that the television is connected with the server when in standby.
In another possible embodiment, the second data packet has a preset format, and the second data packet includes at least one of a packet length and a packet identification; after receiving the second data packet sent by the television, the method further comprises: if the preset format is the first format, determining that the second data packet is a heartbeat packet; or if the packet length in the second data packet is the first length, determining that the second data packet is a heartbeat packet; and if the packet identifier in the second data packet is the first identifier, determining that the second data packet is a heartbeat packet.
In another possible implementation manner, before receiving the second data packet sent by the television, the method further includes: and receiving registration information sent by the television, wherein the registration information comprises at least one of the name, the number and the MAC address of the television.
In another possible implementation manner, after the first data packet is sent to the television, the method further includes: and receiving a fifth data packet sent by the television, wherein the fifth data packet comprises a state code, and the state code indicates the television to be started.
In a third aspect, the present application provides a television startup device, applied to a television, including: the television comprises a receiving module and a control module, wherein the receiving module is used for receiving a first data packet sent by a server when the television is in standby, the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet; and the control module is used for controlling the television to start if the first data packet is determined to be a wake-up packet according to the packet identification.
In one possible implementation manner, the television comprises a WiFi module, wherein a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module has a general purpose input/output GPIO port; the control module is specifically used for: analyzing the first data packet according to the lightweight protocol stack program to obtain a packet identifier; if the first data packet is determined to be a wake-up packet according to the packet identification, determining a set value of the GPIO port according to the packet identification; and controlling the starting of the television according to the set value.
In another possible embodiment, the apparatus further comprises: the sending module is used for sending a second data packet to the server, and the second data packet indicates that the television is connected with the server when in standby; the receiving module is also used for receiving a third data packet sent by the server, and the third data packet indicates that the server is connected with the television in standby; the sending module is also used for sending a fourth data packet to the server, wherein the fourth data packet indicates that the television is connected with the server when in standby.
In another possible embodiment, the third data packet has a preset format, and the third data packet includes at least one of a packet length and a packet identification; the apparatus further comprises: the determining module is used for determining that the third data packet is a heartbeat packet if the preset format is the first format after the third data packet sent by the server is received; or if the packet length in the third data packet is the first length, determining that the third data packet is a heartbeat packet; and if the packet identifier in the third data packet is the first identifier, determining that the third data packet is a heartbeat packet.
In another possible implementation, the sending module is further configured to: before sending the second data packet to the server, registration information is sent to the server, wherein the registration information comprises at least one of the name, the number and the MAC address of the television.
In another possible implementation, the sending module is further configured to: after the television is controlled to be started, a fifth data packet is sent to the server, wherein the fifth data packet comprises a state code, and the state code indicates the television to be started.
In a fourth aspect, the present application provides a television startup device, applied to a server, including: the system comprises a receiving module, a determining module and a sending module, wherein the receiving module is used for receiving a sixth data packet sent by a terminal, and the sixth data packet comprises wake-up information and the MAC address of a television; the determining module is used for determining a first data packet according to the awakening information and the television identifier, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or an awakening packet; the sending module is used for sending the first data packet to the television.
In one possible implementation, the determining module is specifically configured to: determining a packet identifier according to the wake-up information; determining the address information of the television according to the MAC address; and determining the first data packet according to the packet identification and the address information.
In another possible implementation manner, the receiving module is specifically configured to receive a second data packet sent by the television before receiving the sixth data packet sent by the terminal, where the second data packet indicates that the television is connected to the server when the television is in standby; the sending module is specifically configured to send a third data packet to the television, where the third data packet indicates that the server is connected with the television in standby; the receiving module is specifically configured to receive a fourth data packet sent by the television, where the fourth data packet indicates that the television is connected to the server when the television is in standby.
In another possible embodiment, the second data packet has a preset format, and the second data packet includes at least one of a packet length and a packet identification; the determining module is further configured to, after receiving the second data packet sent by the television, further include: if the preset format is the first format, determining that the second data packet is a heartbeat packet; or if the packet length in the second data packet is the first length, determining that the second data packet is a heartbeat packet; and if the packet identifier in the second data packet is the first identifier, determining that the second data packet is a heartbeat packet.
In another possible implementation manner, the receiving module is further configured to receive registration information sent by the television before receiving the second data packet sent by the television, where the registration information includes at least one of a name, a number, and a MAC address of the television.
In another possible implementation manner, the receiving module is further configured to receive a fifth data packet sent by the television after the first data packet is sent to the television, where the fifth data packet includes a status code, and the status code indicates that the television is turned on.
In a fifth aspect, the present application provides a television power-on device, including: at least one processor and memory; the memory stores computer-executable instructions; at least one processor executes computer-executable instructions stored in a memory, causing the at least one processor to perform the television power-on method as in any of the first aspects.
In a sixth aspect, the present application provides a television power-on device, including: at least one processor and memory; the memory stores computer-executable instructions; at least one processor executes computer-executable instructions stored in a memory, causing the at least one processor to perform the television power-on method as in any of the second aspects.
In a seventh aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the television power-on method of any of the first aspects.
In an eighth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the television power-on method of any of the second aspects.
The application provides a television starting method and device, wherein the method comprises the following steps: the server receives a sixth data packet sent by the terminal, wherein the sixth data packet comprises wake-up information and the MAC address of the television; the server determines a first data packet according to the awakening information and the MAC address, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or an awakening packet; the server sends a first data packet to the television; when the television is in standby, if the television determines that the first data packet is a wake-up packet according to the packet identification, the television is started. In the process, after the server receives the sixth data packet sent by the terminal, the first data packet is sent to the television, so that the television is started according to the first data packet, the terminal wakes up the television in the wide area network, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic structural diagram of a conventional television booting system provided in the present application;
fig. 2 is a schematic structural diagram of a television startup system provided in the present application;
FIG. 3 is a flowchart illustrating a method for powering on a television according to the present application;
FIG. 4 is a flowchart of a method for maintaining connection between a server and a television set provided in the present application;
fig. 5 is a second flowchart of a television starting method provided in the present application;
fig. 6 is a schematic structural diagram of a motor starting device provided in the present application;
fig. 7 is a schematic structural diagram of a motor starting device provided in the present application;
fig. 8 is a schematic structural diagram of another motor starting device provided in the present application;
fig. 9 is a schematic hardware structure of a motor starting device provided in the present application;
fig. 10 is a schematic hardware structure of another motor starting device provided in the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 1 is a schematic structural diagram of a conventional television booting system provided in the present application. As shown in fig. 1, the existing television power-on system 10 includes: the wireless communication system comprises a television 101, a router 102 and a terminal 103, wherein a WIFI module is arranged in the television 101, and the television 101, the router 102 and the terminal 103 are in a local area network. Alternatively, the terminal 103 may be any one of a smart phone, a tablet computer, a desktop computer with a wireless transceiver module, and the like.
Specifically, the WIFI module is a wireless transceiver module that defines a physical layer and a media access control address (Media Access Control Address, MAC) layer according to the WIFI protocol (802.11 n/g/ac).
In practical application, the existing television starting-up system has the following starting-up method: in a lan, when the tv 101 is in a dc standby state, the terminal 103 sends a magic packet to the router 102, and the router 102 forwards the magic packet (corresponding to the physical layer and the MAC layer) to the WIFI module, where the WIFI module includes a WIFI firmware program (defining the physical layer and the MAC layer), and the WIFI firmware program performs data analysis on the magic packet to obtain an analysis result. Further, the GPIO port of the WIFI module is set to be 0 or 1 according to the analysis result, and when the GPIO port is set to be 1, the starting-up of the television can be realized. In the above process, since the TCP/IP protocol layer is not defined in the WIFI firmware program, the television 101 and the terminal 103 that are not in the same lan cannot communicate, that is, the terminal sends the magic packet to the television 101, and cannot wake up the television 101 (that is, control the television to start up) through the WIFI module.
In order to solve the above problems, the present application provides a television startup system, so that a data packet sent by a terminal can wake up a television through a WIFI module.
Fig. 2 is a schematic structural diagram of a television startup system provided in the present application. As shown in fig. 2, the television power-on system 20 includes: television 201, router 202, server 203, router 204 and terminal 205. The tv 201, the router 202, the server 203, the router 204 and the terminal 205 are in a wide area network, the tv 201 includes a WIFI module, and a TCP/IP protocol layer is defined in a firmware program of the WIFI module (i.e., the firmware program includes a preset TCP/IP lightweight protocol stack program).
In practical application, when the television 201 is in a direct current standby state, the TCP/IP light protocol stack program in the WIFI module keeps the television 201 connected to the server 203, and after the server 203 receives a data packet from the terminal 205, the server 203 is ensured to send the data packet for powering on the television 201 to the television 201. In the present application, the TCP/IP lightweight protocol stack program in the WIFI module keeps the tv 201 connected to the server 203, so that after the terminal 205 sends a data packet for waking up the tv 201 to the server 203, the server 203 can wake up the tv 201 through the WIFI module according to the data packet.
On the basis of fig. 2, a television starting method provided in the present application will be described below with reference to fig. 3. Specifically, please refer to the embodiment of fig. 3.
Fig. 3 is a flowchart of a television power-on method provided in the present application. As shown in fig. 3, the television booting method in this embodiment includes:
s301: and the server receives a sixth data packet sent by the terminal, wherein the sixth data packet comprises wake-up information and the MAC address of the television.
Specifically, the server receives the sixth packet sent by the terminal through a router (such as router 202 in fig. 2). The server is a special server built for realizing the terminal to wake up the television in the wide area network, and can be used for managing the equipment information of the television, distributing the received data packet and the like.
Alternatively, the sixth data packet may have a format as shown in table 1 below.
TABLE 1
IP head UDP header Pack length MAC address Wake-up information Check value
The source address of the IP header is the IP address of the terminal, and the destination address of the IP header is the IP address of the server. The UDP header indicates that the data packet is a data packet encapsulated according to the user datagram protocol (User Datagram Protocol, UDP). Alternatively, the UDP header may be replaced with a TCP header that indicates that the data packet is a data packet encapsulated according to the transmission control protocol (Transmission Control Protocol, TCP). The packet length is equal to the sum of the length of the MAC address, the length of the wake-up information, and the length of the check value, which can be used to verify that the data packet is correct. The wake-up information includes a wake-up value, a name of the television, a unique identification code (such as a phone number, etc.), etc. The check value is used to check the integrity of the data packet.
The wake-up information in the sixth data packet and the MAC address of the television are obtained from the server by the terminal through the wide area network or obtained from the television by the terminal through the lan.
S302: and the server determines a first data packet according to the wakeup information and the MAC address, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wakeup packet.
Specifically, a packet identifier is determined according to the wake-up information, address information of the television is determined according to the MAC address, and a first data packet is determined according to the packet identifier and the address information. See fig. 4 for a detailed description of the determination of the first data packet in the embodiment 5.
The packet identifier may be a first identifier or a second identifier, where the first identifier indicates that the data packet is a heartbeat packet, and the second identifier indicates that the data packet is a wake-up packet. Alternatively, the first identifier may be 0 and the second identifier may be 1. The address information may be an IP address or a port number of the television.
For example, the first data packet may have a format as shown in table 2 below.
TABLE 2
IP head UDP header Pack length Bag identification Check value
The source address of the IP header is the IP address of the server, and the destination address of the IP header is the IP address of the television. The packet length is used to verify the integrity of the data packet, where the packet length is equal to the sum of the lengths of the information following it, e.g. the packet length in table 2 is equal to the sum of the length of the packet identity and the length of the check value. The UDP header has the same meaning as the UDP header shown in table 1, and the check value has the same meaning as the check value header shown in table 1, and will not be described here.
Optionally, the first data packet may further comprise a packet identification value for identifying a special packet that is a connection between the maintenance server and the television set, or between the server and the terminal, the packet identification value typically being a predefined special value. Optionally, if the packet identification value is located after the packet length, the packet length is equal to the sum of the length of the packet identification value, the length of the packet identification and the length of the check value.
S303: the server sends a first data packet to the television.
S304: when the television stands by, if the television determines that the first data packet is a wake-up packet according to the packet identification, the television is started.
When the television is on standby, the television receives the first data packet sent by the server through a router (such as router 204 shown in fig. 2). Specifically, when the packet identifier is determined to be the second identifier, the first data packet is determined to be a wake-up packet.
Optionally, whether to start up may be further determined according to a packet length of the first data packet or a preset format of the first data packet.
For example, when the packet length of the first data packet is a second length, the first data packet is determined to be a wake-up packet, and the second length is a preset length of the wake-up packet sent by the server to the smart television.
For example, when the first data packet has a preset format as shown in table 2, it is determined that the first data packet is a wake-up packet.
The television starting method provided by the embodiment comprises the following steps: the server receives a sixth data packet sent by the terminal, wherein the sixth data packet comprises wake-up information and the MAC address of the television; the server determines a first data packet according to the awakening information, the MAC address and the IP address, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or an awakening packet; the server sends a first data packet to the television; when the television is in standby, if the television determines that the first data packet is a wake-up packet according to the packet identification, the television is started. In the process, after the server receives the sixth data packet sent by the terminal, the first data packet is sent to the television, so that the television is started according to the first data packet, the terminal wakes up the television in the wide area network, and user experience is improved.
Before the television receives the first data packet sent by the server, the connection is maintained between the server and the television by sending a heartbeat packet. The method of maintaining the connection between the server and the television will be described with reference to fig. 4. Specifically, please refer to fig. 4.
Fig. 4 is a flowchart of a method for maintaining connection between a server and a television set provided in the present application. As shown in fig. 4, the television starting method provided in this embodiment includes:
s401: the television sends registration information to the server, wherein the registration information comprises at least one of the name, the number and the MAC address of the television.
The name is a default name or a custom name, and the number may be a number of a television.
In one possible implementation, the server receives the registration information and stores the registration information to a preset location in a memory provided in the server.
S402: the television sends a second data packet to the server, the second data packet indicates that the television is connected with the server when in standby, the second data packet has a preset format, and the second data packet comprises at least one of packet length and packet identification.
Specifically, the IP address of the server is stored in the television, and the television may send the second data packet to the server according to the IP address of the server.
For example, the second data packet may have a format as shown in table 3 below.
TABLE 3 Table 3
IP head UDP header Pack length Bag identification Index value State code Check value
The source address of the IP header is the IP address of the television set and the destination address of the IP header is the IP address of the server.
The packet length is equal to the sum of the length of the packet identity, the length of the index value, the length of the status code and the length of the check value.
The index value is used to identify the number of heartbeat packets.
The status code indicates whether the server can wake up the television. For example, the status code is OK, indicating that the server may wake up the television, and the status code is FAIL, indicating that the server may not wake up the television.
The UDP header has the same meaning as the UDP header shown in table 1, the packet identifier has the same meaning as the packet identifier in table 2, and the check value has the same meaning as the check value shown in table 1, and no detailed description is given here.
For example, the second data packet may also have a format as shown in table 4 below.
TABLE 4 Table 4
IP head Port number Pack length Bag identification Index value State code Check value
The IP header, packet length, packet identifier, index value, status code, and check value are the same as the corresponding values shown in table 3, and will not be described here again. Specifically, the port numbers include a source port number and a destination port number, the source port number is a port number of the server, and the destination port number is a port number of the television.
In practice, if the packet identifier in the second data packet is the first identifier, the index value is 1, and the status code is OK, the identifier tv sends a heartbeat packet to the server, and informs the server that it can wake up the tv.
S403: the server determines that the second data packet is a heartbeat packet according to at least one of a preset format, a packet length and a packet identifier of the second data packet.
In a possible implementation method, after receiving the second data packet, the server determines that the second data packet is a heartbeat packet according to at least one of a preset format, a packet length and a packet identifier of the second data packet, including:
if the preset format is the first format, determining that the second data packet is a heartbeat packet; or alternatively, the process may be performed,
if the packet length in the second data packet is the first length, determining that the second data packet is a heartbeat packet;
and if the packet identifier in the second data packet is the first identifier, determining that the second data packet is a heartbeat packet.
The first length is the length of a heartbeat packet sent to the server by the preset intelligent television.
It should be noted that, before receiving the second data packet, the method further includes: the server judges whether the second data packet is received within the first preset duration, if yes, the method shown in S403 is executed, and if not, exception handling is performed, where the exception handling includes: and sending abnormal information to the terminal, wherein the abnormal information prompts that the connection between the server and the television is interrupted, and the terminal cannot wake up the television through the server.
Alternatively, the first preset duration may be 1 second, 2 seconds, or the like, which is not limited in this application.
S404: the server sends a third data packet to the television, the third data packet indicates that the server is connected with the television in standby, the third data packet has a preset format, and the third data packet comprises at least one of packet length and packet identification.
If the format of the second packet is shown in table 3, the format of the third packet is shown in table 5.
TABLE 5
IP head UDP header Pack length Bag identification Index value Check value
The source address of the IP header is the IP address of the server and the destination address of the IP header is the IP address of the television. The UDP header, packet length, packet identifier, index value, and check value are the same as the corresponding values in table 3, and will not be described here again.
If the format of the second data packet is shown in table 4, the format of the third data packet is shown in table 6.
TABLE 6
IP head Port number Pack length Bag identification Index value Check value
The IP header, packet length, packet identifier, index value, and check value are the same as those shown in table 5, and will not be described here again. Specifically, the port number includes a source port number and a destination port number, where the source port number is a port number of the television, and the destination port number is a port number of the server.
It should be noted that, the third data packet is the same as the second data packet, so as to ensure that the television and the server receive and send data packets in the process of maintaining connection.
S405: the television determines the third data packet as a heartbeat packet according to at least one of a preset format, a packet length and a packet identifier in the third data packet.
In one possible implementation manner, after receiving the third data packet, determining that the third data packet is a heartbeat packet according to at least one of a preset format, a packet length and a packet identifier in the third data packet includes:
if the preset format is the first format, determining that the third data packet is a heartbeat packet; or alternatively, the process may be performed,
if the packet length in the third data packet is the first length, determining that the third data packet is a heartbeat packet; and if the packet identifier in the third data packet is the first identifier, determining that the third data packet is a heartbeat packet.
S406: the television sends a fourth data packet to the server, and the fourth data packet indicates that the television is connected with the server when in standby.
Wherein the fourth data packet may be identical to the second data packet.
Specifically, when the fourth data packet is the same as the second data packet, the television sends the second data packet to the service at a fixed first time interval. In practice, if the intelligent television does not receive the corresponding third data packet after sending the second data packet, continuing to send the second data packet at the first time interval, recording the number of times of sending the second data packet after not receiving the corresponding third data packet, and determining the connection terminal of the television and the server if the determined number of times is greater than or equal to a preset number of times threshold.
Alternatively, the first time interval may be 1 millisecond, 2 milliseconds, etc., and the preset number of times threshold may be 3 times, 4 times, 5 times, etc. The first time interval and the preset time threshold are not limited.
In practice, the tv sends a second data packet to the server, the index value in the second data packet is increased by 1, after the tv receives the third data packet replied by the server, the index value is reduced by 1, and then the next second data packet is sent to the server, if the tv does not receive the third data packet replied by the server after sending the second data packet to the server, the index value (index value is increased by 1) is updated, and the next second data packet sent to the server includes the updated index value (2), and if the index value after multiple updates is greater than or equal to the preset frequency threshold, the connection terminal of the tv and the server is determined.
The method for maintaining connection between the server and the television provided by the embodiment comprises the following steps: the television sends registration information to the server, wherein the registration information comprises at least one of the name, the number and the MAC address of the television; the television sends a second data packet to the server, the second data packet indicates that the television is connected with the server when in standby, the second data packet has a preset format, and the second data packet comprises at least one of packet length and packet identification; the server determines that the second data packet is a heartbeat packet according to at least one of a preset format, a packet length and a packet identifier of the second data packet; the server sends a third data packet to the television, the third data packet indicates that the server is connected with the television in standby, the third data packet has a preset format, and the third data packet comprises at least one of packet length and packet identification; the television determines the third data packet as a heartbeat packet according to at least one of a preset format, a packet length and a packet identifier in the third data packet; the television sends a fourth data packet to the server, and the fourth data packet indicates that the television is connected with the server when in standby. In the method, when the television is in standby, the server and the television can maintain connection through the heartbeat packet, so that a router between the server and the television can maintain mapping of the wide area network and the intranet, and the terminal in the wide area network can wake up the television.
In the process of maintaining connection between the server and the television, the television starting method provided in the present application is described in further detail below with reference to fig. 5.
Fig. 5 is a flowchart of a television starting method provided in the present application. As shown in fig. 5, the television startup method in this embodiment includes:
s501: and the terminal sends a sixth data packet to the server, wherein the sixth data packet comprises wake-up information and the MAC address of the television.
Optionally, the terminal may send the sixth data packet to the server at regular time, so as to improve stability of data packet transmission and success rate of waking up the television. Wherein N is greater than or equal to 2.
S502: the server determines a packet identifier according to the awakening information; determining the address information of the television according to the MAC address; and determining a first data packet according to the packet identifier and the address information, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet.
Specifically, after receiving the sixth data packet, the server analyzes the wake-up information in the sixth data packet to obtain a wake-up value, and determines the wake-up value as a packet identifier.
Specifically, the server searches an IP address or port number of the television set matched with the MAC address in a database maintained by the server according to the MAC address, and determines the matched IP address and/or port number of the television set as address information of the television set.
Optionally, the service may further search the database maintained by the server for the IP address or port number of the television set that matches the MAC address according to the unique identification code such as the number, the name, and the like of the television set included in the wake-up information, and determine the IP address and/or port number of the matched television set as the address information of the television set.
Specifically, the packet identifier, the address information and the like are encapsulated to obtain a first data packet.
S503: the server sends a first data packet to the television.
Optionally, the server sends the first data packet to the television according to the MAC address and the IP address of the television. Alternatively, the server may send the first data packet M times to the television, where M is greater than or equal to 1.
In practice, if the server does not receive the fifth data packet sent by the television according to the first data packet, the first data packet may be sent to the television next time. Thereby ensuring that the television can correctly and completely receive the first data packet.
S504: and the intelligent television analyzes the first data packet according to the lightweight protocol stack program to obtain a packet identifier.
Specifically, the television comprises a WiFi module, a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module is provided with a general purpose input/output GPIO port.
S505: if the intelligent television determines that the first data packet is a wake-up packet according to the packet identification, the set value of the GPIO port is determined according to the packet identification.
In particular, the packet identity may be determined as a set value. For example, the packet identifier is a first identifier 0, a set value is determined to be 0, the packet identifier is a second identifier 1, and a set value of the GPIO port is determined to be 1.
S506: and starting the intelligent television according to the set value.
Specifically, when the set value is 1, the smart television is started.
S507: the intelligent television sends a fifth data packet to the server, wherein the fifth data packet comprises a state code, and the state code indicates the television to start.
Wherein the fifth data packet has the format shown in table 3 or the format shown in table 4.
It should be noted that the status code in the fifth data packet is FAIL, that is, the server may not wake up the television (i.e., the television is turned on).
S508: and the server determines the starting up of the television according to the state code.
Further, after receiving the fifth data packet sent by the television, the server determines that the television is started according to the state code FAIL.
The television starting method provided by the embodiment comprises the following steps: the terminal sends a sixth data packet to the server, wherein the sixth data packet comprises wake-up information and the MAC address of the television; the server determines a packet identifier according to the awakening information; determining the address information of the television according to the MAC address; determining a first data packet according to the packet identifier and the address information, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet; the server sends a first data packet to the television; the intelligent television analyzes the first data packet according to the lightweight protocol stack program to obtain a packet identifier; if the intelligent television determines that the first data packet is a wake-up packet according to the packet identification, determining a set value of the GPIO port according to the packet identification; the intelligent television controls the television to start according to the set value; the intelligent television sends a fifth data packet to the server, wherein the fifth data packet comprises a state code, and the state code indicates the television to start; and the server determines the starting up of the television according to the state code. In the method, after the server receives the sixth data packet sent by the terminal, the server sends the first data packet to the television, so that the television is started according to the first data packet, and the terminal in the wide area network can wake up the television, and further user experience is improved.
Fig. 6 is a schematic structural diagram of a motor starting device provided in the present application. The motor starting device 10 is arranged in a television. As shown in fig. 6, the motor starting-up device 10 includes: the television comprises a receiving module 11 and a control module 12, wherein the receiving module 11 is used for receiving a first data packet sent by a server when the television is in standby, the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet; the control module 12 is configured to control the television to start if it is determined that the first data packet is a wake-up packet according to the packet identifier.
In one possible implementation manner, the television comprises a WiFi module, wherein a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module has a general purpose input/output GPIO port; the control module is specifically used for: analyzing the first data packet according to the lightweight protocol stack program to obtain a packet identifier; if the first data packet is determined to be a wake-up packet according to the packet identification, determining a set value of the GPIO port according to the packet identification; and controlling the starting of the television according to the set value.
The television starting device 10 provided in the present application can execute the technical scheme that the television can execute in the above method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
Fig. 7 is a schematic structural diagram of a motor starting device provided in the present application. As shown in fig. 7, the motor starting-up device 10 further includes: the sending module 13 is used for sending a second data packet to the server, wherein the second data packet indicates that the television is connected with the server when in standby; the receiving module 11 is further configured to receive a third data packet sent by the server, where the third data packet indicates that the server is connected to the television set during standby; the sending module 13 is further configured to send a fourth data packet to the server, where the fourth data packet indicates that the television is connected to the server when the television is in standby.
In another possible embodiment, the third data packet has a preset format, and the third data packet includes at least one of a packet length and a packet identification; the apparatus further comprises: the determining module 14, where the determining module 14 is configured to determine, after receiving the third data packet sent by the server, that the third data packet is a heartbeat packet if the preset format is the first format; or if the packet length in the third data packet is the first length, determining that the third data packet is a heartbeat packet; and if the packet identifier in the third data packet is the first identifier, determining that the third data packet is a heartbeat packet.
In another possible embodiment, the sending module 13 is further configured to: before sending the second data packet to the server, registration information is sent to the server, wherein the registration information comprises at least one of the name, the number and the MAC address of the television.
In another possible embodiment, the sending module 13 is further configured to: after the television is controlled to be started, a fifth data packet is sent to the server, wherein the fifth data packet comprises a state code, and the state code indicates the television to be started.
The television starting device 10 provided in the present application can execute the technical scheme that the television can execute in the above method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
Fig. 8 is a schematic structural diagram of another motor starting device provided in the present application. As shown in fig. 8, the motor starting device 20 is disposed in a server, and the motor starting device 20 includes: the device comprises a receiving module 21, a determining module 22 and a sending module 23, wherein the receiving module 21 is used for receiving a sixth data packet sent by a terminal, and the sixth data packet comprises wake-up information and a MAC address of a television; the determining module 22 is configured to determine, according to the wake-up information and the MAC address, a first data packet, where the first data packet includes a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet; the transmitting module 23 is configured to transmit the first data packet to the television.
In one possible implementation, the determining module 22 is specifically configured to: determining a packet identifier according to the wake-up information; determining the address information of the television according to the MAC address; and determining the first data packet according to the packet identification and the address information.
In another possible implementation manner, the receiving module 21 is specifically configured to receive a second data packet sent by the television before receiving the sixth data packet sent by the terminal, where the second data packet indicates that the television is connected to the server during standby; the sending module 23 is specifically configured to send a third data packet to the television, where the third data packet indicates that the server is connected to the television in standby; the receiving module 21 is specifically configured to receive a fourth data packet sent by the television, where the fourth data packet indicates that the television is connected to the server during standby.
In another possible embodiment, the second data packet has a preset format, and the second data packet includes at least one of a packet length and a packet identification; the determining module 22 is further configured to, after receiving the second data packet sent by the television, further include: if the preset format is the first format, determining that the second data packet is a heartbeat packet; or if the packet length in the second data packet is the first length, determining that the second data packet is a heartbeat packet; and if the packet identifier in the second data packet is the first identifier, determining that the second data packet is a heartbeat packet.
In another possible implementation manner, the receiving module 21 is further configured to receive registration information sent by the tv set before receiving the second data packet sent by the tv set, where the registration information includes at least one of a name, a number, and a MAC address of the tv set.
In another possible implementation, the receiving module 21 is further configured to receive a fifth data packet sent by the television after the first data packet is sent to the television, where the fifth data packet includes a status code, and the status code indicates that the television is turned on.
The television starting device 20 provided in the present application can execute the technical scheme that the server can execute in the above method embodiment, and its implementation principle and beneficial effects are similar, and will not be described herein again.
Fig. 9 is a schematic hardware structure of a motor starting device provided in the present application. The television starting device 30 is arranged in the television. As shown in fig. 9, the television power-on device 30 includes: at least one processor 31 and a memory 32. The processor 31 and the memory 32 are connected by a bus 33.
In a specific implementation, at least one processor 31 executes computer-executable instructions stored in a memory 32, such that at least one processor 31 performs a television power-on method as described above.
The specific implementation process of the processor 31 may be referred to the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Fig. 10 is a schematic hardware structure of another motor starting device provided in the present application. The television power-on device 40 is disposed in the server. As shown in fig. 10, the television power-on device 40 includes: at least one processor 41 and a memory 42. The processor 41 and the memory 42 are connected by a bus 43.
In a specific implementation, at least one processor 41 executes computer-executable instructions stored in a memory 42, such that at least one processor 41 performs a television power-on method as described above.
The specific implementation process of the processor 41 can be referred to the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiments shown in fig. 9-10, it should be understood that the processor may be a central processing unit (in english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (in english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (in english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise high speed RAM memory or may further comprise non-volatile storage NVM, such as at least one disk memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and when the processor executes the computer execution instructions, the television starting method executable by the television is realized.
The application also provides another computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when the processor executes the computer executable instructions, the television starting method executable by the server is realized.
The computer readable storage medium described above may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). The processor and the readable storage medium may reside as discrete components in a device.
The division of units is merely a logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of blockchain units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, a blockchain device, or the like) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features can be replaced equivalently; such modifications and substitutions do not depart from the spirit of the invention.

Claims (13)

1. The television starting method is characterized by being applied to a television and comprising the following steps of:
when the television is in standby, a first data packet sent by a server is received, wherein the first data packet comprises a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet; the first data packet is determined by the server according to the wake-up information and the MAC address in the sixth data packet sent by the terminal, and the packet identification is determined by the server according to the wake-up information;
analyzing the first data packet to obtain the packet identifier, and controlling the television to start if the first data packet is determined to be a wake-up packet according to the packet identifier;
The television comprises a WiFi module, wherein a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module is provided with a general purpose input/output GPIO port; if the first data packet is determined to be a wake-up packet according to the packet identifier, controlling the television to start up, including:
analyzing the first data packet according to the lightweight protocol stack program to obtain the packet identifier;
if the first data packet is determined to be a wake-up packet according to the packet identification, determining a set value of the GPIO port according to the packet identification;
and controlling the television to start according to the set value.
2. The method of claim 1, further comprising, prior to receiving the first data packet sent by the server:
sending a second data packet to the server, wherein the second data packet indicates that the television is connected with the server when in standby;
receiving a third data packet sent by the server, wherein the third data packet indicates that the server is connected with the television in standby;
and sending a fourth data packet to the server, wherein the fourth data packet indicates that the television is connected with the server when in standby.
3. The method of claim 2, wherein the third data packet has a preset format, the third data packet including at least one of a packet length and a packet identification; after receiving the third data packet sent by the server, the method further includes:
if the preset format is the first format, determining that the third data packet is a heartbeat packet; or alternatively, the process may be performed,
if the packet length in the third data packet is the first length, determining that the third data packet is a heartbeat packet; or alternatively, the process may be performed,
and if the packet identifier in the third data packet is the first identifier, determining that the third data packet is a heartbeat packet.
4. A method according to claim 3, further comprising, prior to sending the second data packet to the server:
and sending registration information to the server, wherein the registration information comprises at least one of the name, the number and the MAC address of the television.
5. The method of any one of claims 1 to 4, further comprising, after controlling the television to be turned on:
and sending a fifth data packet to the server, wherein the fifth data packet comprises a state code, and the state code indicates the television to be started.
6. The television starting-up method is characterized by being applied to a server and comprising the following steps:
Receiving a sixth data packet sent by a terminal, wherein the sixth data packet comprises wake-up information and an MAC address of a television; the television comprises a WiFi module, wherein a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module is provided with a general purpose input/output GPIO port;
determining a first data packet according to the wakeup information and the MAC address, wherein the first data packet comprises a packet identifier, the packet identifier indicates that the data packet is a heartbeat packet or a wakeup packet, and the packet identifier is determined according to the wakeup information;
and sending the first data packet to the television, so that the television analyzes the first data packet according to the lightweight protocol stack program to obtain the packet identifier, and controlling the television to start according to the set value of the GPIO port determined by the packet identifier when the first data packet is determined to be a wake-up packet according to the packet identifier.
7. The method of claim 6, wherein determining the first data packet based on the wake-up information and the MAC address comprises:
determining the packet identification according to the wake-up information;
determining the address information of the television according to the MAC address;
And determining the first data packet according to the packet identification and the address information.
8. The method of claim 6, further comprising, prior to receiving the sixth data packet sent by the terminal:
receiving a second data packet sent by the television, wherein the second data packet indicates that the television is connected with the server when in standby;
transmitting a third data packet to the television, wherein the third data packet indicates that the server is connected with the television in standby;
and receiving a fourth data packet sent by the television, wherein the fourth data packet indicates that the television is connected with the server in standby.
9. The method of claim 8, wherein the second data packet has a preset format, the second data packet including at least one of a packet length and a packet identification; after receiving the second data packet sent by the television, the method further comprises:
if the preset format is the first format, determining that the second data packet is a heartbeat packet; or alternatively, the process may be performed,
if the packet length in the second data packet is the first length, determining that the second data packet is a heartbeat packet; or alternatively, the process may be performed,
and if the packet identifier in the second data packet is the first identifier, determining that the second data packet is a heartbeat packet.
10. The method of claim 9, further comprising, prior to receiving the second data packet transmitted by the television set:
and receiving registration information sent by the television, wherein the registration information comprises at least one of the name, the number and the MAC address of the television.
11. The method of any of claims 6-10, further comprising, after transmitting the first data packet to the television set:
and receiving a fifth data packet sent by the television, wherein the fifth data packet comprises a state code, and the state code indicates the television to be started.
12. A TV starting device is applied to a TV set and comprises: a receiving module and a control module, wherein,
the receiving module is used for receiving a first data packet sent by a server when the television is in standby, wherein the first data packet comprises a packet identifier, the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet, the first data packet is determined by the server according to wake-up information and an MAC address in a sixth data packet sent by a received terminal, and the packet identifier is determined by the server according to the wake-up information;
The control module is used for analyzing the first data packet to obtain the packet identifier, and controlling the television to start if the first data packet is determined to be a wake-up packet according to the packet identifier;
the television comprises a WiFi module, wherein a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module is provided with a general purpose input/output GPIO port;
the control module is specifically configured to parse the first data packet according to the lightweight protocol stack program to obtain the packet identifier;
if the first data packet is determined to be a wake-up packet according to the packet identification, determining a set value of the GPIO port according to the packet identification;
and controlling the television to start according to the set value.
13. A TV starting device is applied to a server and comprises: a receiving module, a determining module and a transmitting module, wherein,
the receiving module is used for receiving a sixth data packet sent by the terminal, wherein the sixth data packet comprises wake-up information and an MAC address of the television; the television comprises a WiFi module, wherein a firmware program of the WiFi module comprises a preset lightweight protocol stack program, and the WiFi module is provided with a general purpose input/output GPIO port;
The determining module is configured to determine a first data packet according to the wake-up information and the MAC address, where the first data packet includes a packet identifier, and the packet identifier indicates that the data packet is a heartbeat packet or a wake-up packet, and the packet identifier is determined according to the wake-up information;
the sending module is configured to send the first data packet to the television, so that the television parses the first data packet according to the lightweight protocol stack procedure to obtain the packet identifier, and when the first data packet is determined to be a wake-up packet according to the packet identifier, controls the television to start according to the set value of the GPIO port determined by the packet identifier.
CN202010243607.8A 2020-03-31 2020-03-31 Television starting method and device Active CN113473231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010243607.8A CN113473231B (en) 2020-03-31 2020-03-31 Television starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010243607.8A CN113473231B (en) 2020-03-31 2020-03-31 Television starting method and device

Publications (2)

Publication Number Publication Date
CN113473231A CN113473231A (en) 2021-10-01
CN113473231B true CN113473231B (en) 2023-08-08

Family

ID=77865591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010243607.8A Active CN113473231B (en) 2020-03-31 2020-03-31 Television starting method and device

Country Status (1)

Country Link
CN (1) CN113473231B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257872A (en) * 2021-12-16 2022-03-29 海信视像科技股份有限公司 Display device, awakening method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036349A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Method for maintaining connection of terminal and network server, terminal and network server
CN103905213A (en) * 2014-03-27 2014-07-02 华为技术有限公司 Standby method, intelligent household devices and standby system
CN105354044A (en) * 2014-08-21 2016-02-24 阿里巴巴集团控股有限公司 Application awakening method and apparatus
CN105872391A (en) * 2016-06-15 2016-08-17 华为技术有限公司 Control method, control device and control system for IP (Internet Protocol) Camera
CN106095056A (en) * 2016-06-02 2016-11-09 珠海市魅族科技有限公司 A kind of method waking up system up and terminal
CN106550438A (en) * 2015-09-22 2017-03-29 联芯科技有限公司 Limit method and system, the mobile device of periodic wakeup
CN110557263A (en) * 2018-05-31 2019-12-10 华为技术有限公司 standby control method, system, terminal equipment and relay equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036349A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Method for maintaining connection of terminal and network server, terminal and network server
CN103905213A (en) * 2014-03-27 2014-07-02 华为技术有限公司 Standby method, intelligent household devices and standby system
CN105354044A (en) * 2014-08-21 2016-02-24 阿里巴巴集团控股有限公司 Application awakening method and apparatus
CN106550438A (en) * 2015-09-22 2017-03-29 联芯科技有限公司 Limit method and system, the mobile device of periodic wakeup
CN106095056A (en) * 2016-06-02 2016-11-09 珠海市魅族科技有限公司 A kind of method waking up system up and terminal
CN105872391A (en) * 2016-06-15 2016-08-17 华为技术有限公司 Control method, control device and control system for IP (Internet Protocol) Camera
CN110557263A (en) * 2018-05-31 2019-12-10 华为技术有限公司 standby control method, system, terminal equipment and relay equipment

Also Published As

Publication number Publication date
CN113473231A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
US20210272566A1 (en) Communication Method, Server, and Device
US10602448B2 (en) Remote wakeup method, connection server, and networking apparatus having sleep mode
WO2019204572A1 (en) Task processing method, apparatus, and system
CN110944371B (en) Paging configuration adjustment method, terminal, network equipment and storage medium
US9781597B2 (en) Electronic device and network connection method of electronic device
US11658870B2 (en) Method and apparatus for restoring network device to factory defaults, and network device
US20230161541A1 (en) Screen projection method and system
CN113473231B (en) Television starting method and device
JP5813891B2 (en) Processing method and processing apparatus for automatically setting Internet access mode
WO2017076331A1 (en) Startup method and device
WO2021036558A1 (en) Wireless network connection method and related apparatus
CN107864042B (en) Application program awakening method and device
US10945207B2 (en) Beacon signal processing system and filtering method of reducing wake-up frequency
WO2019129271A1 (en) Method for electronic device authentication and firmware update, and electronic device
US8238233B2 (en) Maintaining network services across multiple physical interfaces
JP2013187906A (en) Management methods and related computer systems, and machine-readable storage mediums using the same
US20230126360A1 (en) Wifi network access method, communication method, peripheral apparatus, and storage medium
US10939374B2 (en) Method and apparatus for remotely waking up a device connected to a network
US9877285B2 (en) Method and system for device aware power save
US20140215034A1 (en) Processing Method and Processing Device for Automatically Setting Internet Access Mode
US20180102974A1 (en) Flow entry delivering method, flow entry storage method, related apparatus, and related system
US11771983B2 (en) Information system, service server, management server, information processing method, and recording medium
EP4210289A1 (en) Device abnormality monitoring method and device
CN110337137B (en) Data packet filtering method, device and system
CN111464688B (en) Working mode switching method and device

Legal Events

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