WO2017097093A1 - 家庭物联网的实现方法及机顶盒、物联网服务器 - Google Patents

家庭物联网的实现方法及机顶盒、物联网服务器 Download PDF

Info

Publication number
WO2017097093A1
WO2017097093A1 PCT/CN2016/106014 CN2016106014W WO2017097093A1 WO 2017097093 A1 WO2017097093 A1 WO 2017097093A1 CN 2016106014 W CN2016106014 W CN 2016106014W WO 2017097093 A1 WO2017097093 A1 WO 2017097093A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
element device
top box
set top
internet
Prior art date
Application number
PCT/CN2016/106014
Other languages
English (en)
French (fr)
Inventor
付贤会
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017097093A1 publication Critical patent/WO2017097093A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • 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/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals

Definitions

  • the present disclosure relates to network technologies, for example, to a method for implementing a home Internet of Things, a set top box, and an Internet of Things server.
  • IPTV Internet Protocol Television
  • set-top boxes have spread to every home and are provided by the operators as basic devices.
  • the family Internet of Things is also developing at a high speed. From the simple Internet of Things to the unified networking requirements of all the different network access devices in the home, there is a need to select a device as a home edge router and media center to achieve the docking requirements of the home Internet of Things to the Internet and improve the user experience.
  • a method for implementing a home Internet of Things, applied to a set top box comprising:
  • the set top box connects the network element device to the home Internet of Things through the home internal area network, and accesses the wide area network as an edge router of the home Internet of Things;
  • the set top box acquires at least one of status information and data of the network element device, and uploads at least one of the obtained status information and data of the network element device to an Internet of Things server in the wide area network.
  • the set top box connects the network element device to the home Internet of things through the home internal area network, including:
  • the set top box serves as address information of the edge router
  • the set top box acquires state information of the network element device, including:
  • the set-top box receives the online response message returned by the registered network element device, and sets the online state of the network element device that returns the online response message in the registered network element device to online, and the online state of the network element device that does not return the online response message Offline.
  • the set top box acquires status information of the network element device, and further includes:
  • the set-top box acquires the detection result of the status of the device by the online network element device from the probe response message, or performs calculation according to the parameters of the probe request message and the probe response message, and acquires the set top box and the online network element device.
  • the set top box acquires status information of the network element device, including one or more of the following conditions:
  • the set top box periodically acquires state information of the network element device
  • the set top box acquires status information of the network element device and displays it to the user according to a user instruction;
  • the set top box acquires state information of the network element device according to an instruction of the Internet of Things server;
  • the method further includes at least one of the following steps:
  • the status information is uploaded to the IoT server.
  • the set-top box acquires the data of the network element device, and uploads the data of the network element device to the Internet of Things server in the wide area network, including:
  • the set top box receives the video data uploaded by the camera and saves it locally, or uploads the video data to the Internet of Things server for storage.
  • the method further includes:
  • a data packet is transmitted between the set top box and the Internet of Things server in a unified format
  • the set-top box After receiving the data packet in the format specified by the home network local area network, the set-top box converts the data packet of the home internal area network specified format sent by the network element device into the data packet of the unified format, Said that the Internet of Things server sends;
  • the set-top box After receiving the data packet in the unified format sent by the Internet of Things server, the set-top box converts the data packet in the unified format into a data packet in a format specified by the home network local area network of the target network element device, to the target The NE device sends it.
  • the unified format data packet includes one or more of the following fields:
  • the Internet of Things server is implemented by a server having at least one of an electronic program guide EPG and a content distribution network CDN in a network protocol television IPTV system.
  • a method for implementing a home Internet of Things, applied to an Internet of Things server comprising:
  • the IoT server receives the user instruction, and sends the user instruction for the target network element device to the target network element device through the set top box;
  • the IoT server receives at least one of information and data of the target network element device uploaded by the set top box, and provides at least one of the received information and data of the target network element device to a user.
  • the receiving, by the IoT server, the information about the target network element device uploaded by the set top box comprising: receiving a response message of the target network element device uploaded by the set top box to a user instruction;
  • the IoT server provides the received data of the target network element device to the user, including:
  • the video data of the camera is sent to the user.
  • the method further includes:
  • the Internet of Things server provides a user with access to the home Internet of Things, establishes a connection with the user through the wide area network, and allows the user to log in to the management interface of the home Internet of Things after the identity verification of the user is passed.
  • the IoT server is implemented by a server having at least one of an electronic program guide EPG and a content distribution network CDN in the IPTV system.
  • a set top box which is an edge router of a home Internet of Things, comprising:
  • An external interface configured to enable communication between the set top box and the IoT server in the wide area network
  • the internal interface is configured to implement communication between the set top box and the network element device of the home Internet of things through the home internal area network;
  • An access module configured to access the network element device to the home Internet of Things through a home internal area network
  • An acquiring module configured to acquire at least one of status information and data of the network element device
  • the transceiver module is configured to send an instruction to the network element device, and upload at least one of status information and data of the network element device to the Internet of Things server in the wide area network.
  • the access module includes:
  • the monitoring unit is set to enter a listening state after being powered on;
  • the response unit is configured to send a response message to the network element device after receiving the broadcast message that is sent by the network element device to send the network element device attribute, and carry the set top box in the response message.
  • Address information as an edge router
  • a registration unit configured to: after receiving the registration request message sent by the network element device, register the network element device to the device management system according to the device type information carried in the registration request message, and send the network element device to the network
  • the metadevice sends a response message carrying the registration result.
  • the collecting module includes:
  • a status query unit configured to send an online status query message to the registered network element device
  • the status setting unit is configured to receive the online response message returned by the registered network element device, and set the online status of the network element device that returns the online response message in the registered network element device to be online, and the network element device that does not return the online response message Online status is set to offline.
  • the collecting module further includes:
  • the probe requesting unit is configured to send a probe request message to the online network element device, and receive a probe response message returned by the online network element device;
  • the detecting processing unit is configured to obtain, from the probe response message, a detection result of the status of the device by the online network element device, or perform calculation according to parameters of the probe request message and the probe response message, and acquire the set top box and the online The detection result of the channel state between the network element devices.
  • the acquiring module acquires status information of the network element device, including one or more of the following conditions:
  • the acquiring module further includes at least one of the following steps:
  • the status information is uploaded to the IoT server.
  • the collecting module includes:
  • a data requesting unit configured to: according to the configuration information or the instruction of the Internet of Things server, determine that the video data of the camera needs to be acquired, and when the camera is online, send a data upload request message to the camera;
  • the data processing unit is configured to receive the video data uploaded by the camera and save it locally, or upload the video data to the Internet of Things server for storage.
  • the set top box further includes:
  • a format conversion module configured to convert, after receiving the data packet in the format specified by the home network local area network, the data packet of the home internal area network specified format sent by the network element device into the data in the unified format Transmitting, to the Internet of Things server, and receiving the data packet in the unified format sent by the Internet of Things server, converting the data packet in the unified format into a format specified by the home network local area network of the target network element device A data packet is sent to the target network element device.
  • the unified format data packet includes one or more of the following fields:
  • An Internet of Things server the Internet of Things server being disposed in a wide area network and connected to the set top box, comprising:
  • a user interface module configured to receive a user instruction, and provide at least one of information and data of the target network element device to a user;
  • the set-top box interface module is configured to send, by the user interface module, user instructions for the target network element device to the target network element device by using the set-top box, and receive information and data of the target network element device uploaded by the set-top box At least one of them.
  • the user interface module includes:
  • the information providing unit is configured to provide the information of the target network element device to the user, where the information of the target network element device includes a response message of the target network element device to the user instruction;
  • a first data providing unit configured to: after receiving an instruction for the user to view the historical video data, send the historical video data to the user if the historical video data is saved;
  • the second data providing unit is configured to: after receiving the instruction that the user views the real-time video data, send the video data that is being uploaded by the set-top box to the user, or send an instruction for uploading video data to the target camera through the set-top box interface module. And transmitting video data of the target camera received by the set top box interface module to a user.
  • the user interface module further includes:
  • the login management unit is configured to provide a user with access to the home Internet of things, establish a connection with the user through the wide area network, and allow the user to log in to the management interface of the home Internet of Things after the identity verification of the user is passed.
  • the IoT server is implemented by a server having at least one of an electronic program guide EPG and a content distribution network CDN in the IPTV system.
  • the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the above method.
  • the present disclosure also provides a set top box, the set top box comprising:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method of implementing the home Internet of Things described above for a set top box.
  • the present disclosure also provides an Internet of Things server, the Internet of Things server comprising:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the implementation of the home Internet of Things described above for an Internet of Things server method.
  • the above solution can easily and conveniently implement the docking requirements of the home Internet of things to the Internet and improve the user experience.
  • FIG. 1 is a flow chart of a method of an embodiment of the present disclosure
  • FIG. 2 is a block diagram of a set top box according to an embodiment of the present disclosure
  • Embodiment 3 is a flow chart of a method according to Embodiment 2 of the present disclosure.
  • FIG. 4 is a block diagram of an Internet of Things server according to Embodiment 2 of the present disclosure.
  • FIG. 5 is a schematic diagram of networking of a set top box as a service system of a home edge router
  • FIG. 6 is a schematic diagram of networking of a set top box as a home edge router
  • FIG. 7 is a schematic diagram of a data packet format between a set top box and an Internet of Things server
  • Figure 8 is a flow chart of the set-top box monitoring and dynamic access of the air-conditioning device
  • FIG. 9 is a flow chart of online query and status detection of a network element device by a set top box
  • Figure 10 is a flow chart of the set top box querying the refrigerator temperature control system and adjusting the temperature of the freezer compartment;
  • Figure 11 is a flow chart for acquiring camera video data
  • FIG. 12 is a schematic diagram showing the hardware structure of a set top box according to Embodiment 4 of the present disclosure.
  • FIG. 13 is a schematic diagram showing the hardware structure of an Internet of Things server according to Embodiment 5 of the present disclosure.
  • This embodiment relates to a method for implementing a home Internet of Things, which is applied to a set top box, as shown in FIG.
  • step 110 the set top box connects the network element device to the home Internet of Things through the home internal area network, and accesses the wide area network as an edge router of the home Internet of Things.
  • the set-top box is used as the home Internet of Things edge router, and the network element device is connected to the home Internet of Things, and the network access point does not need to be separately wired.
  • the Internet of Things server of the present embodiment uses a server having at least one of an electronic program guide (EPG) and a content delivery network (CDN) connected to the set top box in the IPTV system. (defined as EPG-CDN) implementation, using the set-top box (STB) supporting EPG-CDN server as the background server for home network access, easy to remote control and data transmission of mobile phones, computer users, not only capacity but also No need to re-wire the network, but also provide a unified, A guaranteed user experience.
  • EPG-CDN electronic program guide
  • STB set-top box
  • the set-top box accesses the network element device to the home Internet of things through the home internal area network, and may include:
  • the set-top box sends a response message to the network element device, and the set-top box is used as the edge in the response message, if the set-top box receives the broadcast message that is sent by the network element device and carries the attribute of the network element device. Address information of the router;
  • step 120 the set top box acquires at least one of status information and data of the network element device, and uploads at least one of the obtained status information and data of the network element device to the wide area network. IoT server.
  • the set top box acquires state information of the network element device, and may include one or more of the following conditions:
  • the set top box periodically acquires state information of the network element device
  • the set top box acquires status information of the network element device and displays it to the user according to a user instruction;
  • the set top box acquires state information of the network element device according to an instruction of the Internet of Things server;
  • the method further includes at least one of the following steps:
  • the status information is uploaded to the IoT server.
  • the set-top box acquires the status information of the network element device, which may include:
  • the set-top box receives the online response message returned by the registered network element device, and sets the online state of the network element device that returns the online response message in the registered network element device to online, and the online state of the network element device that does not return the online response message Offline.
  • the set-top box acquires the state information of the network element device, and may further include:
  • the set-top box acquires the detection result of the status of the device by the online network element device from the probe response message, or performs calculation according to the parameters of the probe request message and the probe response message, and acquires the set top box and the online network element device.
  • the set-top box acquires the data of the network element device, and uploads the data of the network element device to the Internet of Things server in the wide area network, which may include:
  • the set top box receives the video data uploaded by the camera and saves it locally, or uploads the video data to the Internet of Things server for storage.
  • the method can also include:
  • a data packet is transmitted between the set top box and the Internet of Things server in a unified format
  • the set-top box After receiving the data packet in the format specified by the home network local area network, the set-top box converts the data packet of the home internal area network specified format sent by the network element device into the data packet of the unified format, Said that the Internet of Things server sends;
  • the set-top box After receiving the data packet in the unified format sent by the Internet of Things server, the set-top box converts the data packet in the unified format into a data packet in a format specified by the home network local area network of the target network element device, to the target The NE device sends it.
  • the embodiment further provides a set top box, which is used as an edge router of the home Internet of Things.
  • the set top box includes: an external interface 10, an internal interface 20, an access module 30, an acquisition module 40, and a transceiver module. 50.
  • the external interface 10 is arranged to enable communication between the set top box and the IoT server in the wide area network.
  • the internal interface 20 is configured to enable communication between the set top box and the network element device of the home Internet of Things through the home internal area network.
  • the access module 30 is configured to access the network element device to the home Internet of Things through a home internal local area network.
  • the collecting module 40 is configured to acquire at least one of status information and data of the network element device.
  • the transceiver module 50 is configured to send an instruction to the network element device, and upload at least one of status information and data of the network element device to an Internet of Things server in the wide area network.
  • the access module 30 includes: a listening unit, a response unit, and a registration unit.
  • the listening unit is set to enter the listening state after power-on.
  • the response unit is configured to send a response message to the network element device after receiving the broadcast message that is sent by the network element device to send the network element device attribute, and the set top box is carried in the response message.
  • the address information of the edge router is configured to send a response message to the network element device after receiving the broadcast message that is sent by the network element device to send the network element device attribute, and the set top box is carried in the response message.
  • the registration unit is configured to: after receiving the registration request message sent by the network element device, register the network element device to the device management system according to the device type information carried in the registration request message, and send the network element device to the network element The device sends a response message carrying the registration result.
  • the collection module includes: a status query unit and a status setting unit.
  • the status query unit is configured to send an online status query message to the registered network element device
  • the status setting unit is configured to receive the online response message returned by the registered network element device, and set the online status of the network element device that returns the online response message in the registered network element device to online, and the online network device that does not return the online response message is online.
  • the status is set to offline.
  • the collection module further includes: a probe request unit and a probe processing unit.
  • the probe requesting unit is configured to send a probe request message to the online network element device, and receive a probe response message returned by the online network element device.
  • the detection processing unit is configured to obtain, from the probe response message, a detection result of the status of the device by the online network element device, or perform calculation according to parameters of the probe request message and the probe response message, and acquire the set top box and the online network.
  • the detection result of the channel state between the meta-devices is configured to obtain, from the probe response message, a detection result of the status of the device by the online network element device, or perform calculation according to parameters of the probe request message and the probe response message, and acquire the set top box and the online network.
  • the acquiring module acquires status information of the network element device, including one or more of the following conditions:
  • the acquiring module further includes at least one of the following steps:
  • the status information is uploaded to the IoT server.
  • the collection module includes: a data request unit and a data processing unit.
  • the data requesting unit is configured to acquire video data of the camera according to the configuration information or the instruction of the Internet of Things server, and send the data upload request message to the camera when the camera is online.
  • the data processing unit is configured to receive the video data uploaded by the camera and save it locally, or upload the video data to the Internet of Things server for storage.
  • the set top box further includes:
  • a format conversion module configured to convert, after receiving the data packet in the format specified by the home network local area network, the data packet of the home internal area network specified format sent by the network element device into the data in the unified format Transmitting, to the Internet of Things server, and receiving the data packet in the unified format sent by the Internet of Things server, converting the data packet in the unified format into a format specified by the home network local area network of the target network element device A data packet is sent to the target network element device.
  • Type field load length field; opcode field; message sequence number field; message transmission time field; and padding field.
  • the embodiment relates to a method for implementing a home Internet of Things, which is applied to an Internet of Things server, which uses at least one of an electronic program guide EPG and a content distribution network CDN in an IPTV system. Server implementation.
  • the IoT server receives the user instruction, and sends the user instruction for the target network element device to the target network element device through the set top box.
  • the Internet of Things server receives at least one of information and data of the target network element device uploaded by the set top box, and at least one of information and data of the target network element device to be received. Provided to the user.
  • the IoT server receives the information of the target network element device uploaded by the set top box, and includes: receiving a response message of the target network element device uploaded by the set top box to a user instruction.
  • the IoT server provides the received data of the target network element device for use.
  • Households including:
  • the video data of the camera is sent to the user.
  • the method in this embodiment may further include: the Internet of Things server may further provide a user with an access to the home Internet of things, establish a connection with the user through the wide area network, and allow the user after the identity verification of the user is passed. Log in to the management interface of the home Internet of Things.
  • the embodiment further provides an Internet of Things server, which is disposed in the wide area network and connected to the set top box.
  • the IoT server is implemented by a server having at least one of an electronic program guide EPG and a content distribution network CDN in the IPTV system.
  • the Internet of Things server includes a user interface module 70 and a set top box interface module 80.
  • the user interface module 70 is configured to receive user instructions and provide at least one of information and data of the target network element device to the user.
  • the set-top box interface module 80 is configured to send, by the user interface module, user instructions for the target network element device to the target network element device by using the set-top box, and receive information and data of the target network element device uploaded by the set-top box. At least one of them.
  • the user interface module includes: an information providing unit, a first data providing unit, and a second data providing unit.
  • the information providing unit is configured to provide information of the target network element device to the user, where the information of the target network element device includes a response message of the target network element device to the user instruction.
  • the first data providing unit is configured to, after receiving an instruction for the user to view the historical video data, send the historical video data to the user if the historical video data is saved.
  • the second data providing unit is configured to: after receiving an instruction for the user to view the real-time video data, send the video data that the set-top box is uploading to the user, or send an instruction for uploading the video data to the target camera through the set-top box interface module, Sending video data of the target camera received by the set top box interface module to a user.
  • the user interface module further includes: a login management unit.
  • the login management unit is configured to provide a user with access to the home Internet of things, establish a connection with the user through the wide area network, and allow the user to log in to the management interface of the home Internet of things after the identity verification of the user is passed.
  • the Internet of Things system of this example is shown in FIG. 5, and includes a network element device, a set top box, and an Internet of Things server.
  • This example includes the home Internet of Things access, status acquisition (such as online status query, device status detection and channel status detection), information or data upload and remote control processes.
  • the home Internet of Things (such as TVs, camcorders, projectors, microphones, and other smart home devices) through the home internal LAN (such as Wireless Fidelity (wifi) network, Bluetooth, Near Field Communication (Near Field Communication, NFC), ZigBee) access to the set-top box, the set-top box as the edge router of the home Internet of Things, uplink access to the Internet (Internet) through the home network access point provided by operators (such as Telecom, Mobile and China Unicom) to communicate with the Internet of Things server.
  • LAN such as Wireless Fidelity (wifi) network, Bluetooth, Near Field Communication (Near Field Communication, NFC), ZigBee) access to the set-top box, the set-top box as the edge router of the home Internet of Things, uplink access to the Internet (Internet) through the home network access point provided by operators (such as Telecom, Mobile and China Unicom) to communicate with the Internet of Things server.
  • the uplink interface supported by the example set top box includes one or more of an Ethernet port and a wifi interface; the home network module that can be supported includes one or more of wifi (as AP), Bluetooth, Ethernet, and NFC. .
  • the set-top box is responsible for the access of the IoT network element device after the boot, the online status query of the network element device, the network channel state detection, the device control, and the information or data uploading, protocol conversion and the like. As a node between the network element device and the Internet of Things server, the set-top box can shield the difference between the internal LAN accessed by the network element device through the conversion between the two interface protocols.
  • Figure 6 shows an exemplary networking diagram of a set top box as an edge router.
  • the set-top box has dual network, wireless access point and Bluetooth (Vinus 4.0) access capability, can be used as a home NFC smart switch center, but also can access zigbee network equipment and 900MHz low-frequency wireless equipment.
  • the electric fan is connected to the set top box via Bluetooth.
  • the TV is connected to the set-top box through a High Definition Multimedia Interface (HDMI).
  • the home surveillance camera is connected to the set top box via Wireless Local Area Networks (WLAN).
  • the water heater is connected to the set top box through the home NFC intelligent switch center.
  • the washing machine is connected to the set top box via Bluetooth.
  • the microwave oven is connected to the set top box via Bluetooth.
  • the air conditioner is connected to the set top box via Bluetooth.
  • the set-top box can also connect more network element devices to the home Internet of Things.
  • the set-top box unifies a variety of different network access modes in the home, providing a unified control and data channel for the EPG or CDN, which is convenient for subsequent access by the user.
  • the set top box and the object The data packet is transmitted between the networked servers in a unified format; after receiving the data packet in the format specified by the home network local area network, the set top box converts the data packet of the home internal area network specified format sent by the network element device Transmitting, to the IoT server, the data packet of the unified format; and receiving, by the set top box, the data packet of the unified format sent by the Internet of Things server, converting the data packet of the unified format into a target network element
  • the data packet in the format specified by the home intra-network of the device is sent to the target network element device.
  • the device information control packet unified format is 20 bytes. among them:
  • Field 0, 1 is: type (TYPE) field, length is 2 bytes.
  • the detection device online status is 0x180A
  • the network speed detection is 0x180B, which allows device developers to customize.
  • the rules are as follows:
  • 0x1800-0x1809 is a reserved field, and the protocol is extended
  • 0x180A-0x187F is a system field for gradually adding a protocol identifier
  • Fields 2, 3 are: load length field (including TYPE field).
  • Fields 4, 5, and 6 are: reserved fields.
  • the field 7 is: an opcode, where 0x01 is a set-top box querying the slave device; 0x00 is a slave device replying to the set-top box;
  • Fields 8, 9 are: message sequence number.
  • Fields 10, 11, 12, and 13 are: message transmission time, optional.
  • Subsequent fields are padding fields and are included in the load length field calculation range.
  • the IoT server of this example is implemented by the server EPG-CDN of the IPTV system.
  • the EPG-CDN provides a unified external interface, accepts remote access and control of the user, and provides the user with a uniform access address of the WAN.
  • the EPG-CDN can communicate user instructions to the set top box, and can also receive at least one of information from the set top box (such as response information to the user command, online status information of the network element device, etc.) and data, at least one of the information and the data.
  • One is provided to the user and the media storage service is also provided.
  • the user can access the EPG-CDN portal through a network device such as a mobile device (such as a mobile phone) or a conventional device (desktop, notebook), send a user command, and the set-top box can transfer the command from the EPG-CDN.
  • a network device such as a mobile device (such as a mobile phone) or a conventional device (desktop, notebook)
  • the set-top box can transfer the command from the EPG-CDN.
  • the user can control the opening and closing of the electric fan through the visual interface of the application (APP).
  • the set-top box controls the power-on and power-off functions of the electric fan through the home NFC intelligent switch center.
  • the user controls the washing machine washing through the visual interface of the mobile phone APP, and the set top box issues a working instruction to the washing machine through Bluetooth.
  • the user wants to call the lunch break of the old child at home, and the set top box sends the video stream of the home surveillance camera to the mobile terminal through the wireless wifi.
  • Example 2 On the basis of the example IoT system, the flow of the set-top box monitoring and the network element device (taking the air-conditioning device as an example) to dynamically access the Internet of Things is added, as shown in FIG. 8 .
  • the set top box is in a guardian listening state
  • the air conditioner After the air conditioner is installed and connected to the power supply, it sends an access probe request and actively broadcasts the online message of its own device attributes.
  • the set-top box After receiving the broadcast message of the air conditioner, the set-top box uses its own information as the information of the edge router (such as Internet Protocol (IP)/Media Access Control (MAC)/Domain Name System (Domain Name). System, DNS, and other address information) are sent to the air conditioner;
  • IP Internet Protocol
  • MAC Media Access Control
  • Domain Name Domain Name System
  • the air conditioner receives the response message from the set top box, switches from the broadcast to the unicast message, and initiates a registration request message to the set top box;
  • the set top box receives the registration request message from the air conditioner, registers the air conditioner to the device management system according to the type of the device in the message, and responds to the air conditioner to notify the device that the registration has succeeded;
  • the set-top box proposed in the third example performs the process of online query and status detection of the network element device. As shown in Figure 9, the process includes:
  • the set top box displays the Internet of Things view and the diagnostic interface according to user instructions;
  • the set-top box After receiving the user's instruction to update the device status, the set-top box goes to the registered device (including photo Initiating an online status inquiry request by a camera, an air conditioner, and a refrigerator;
  • the camera device answers the online message
  • the air conditioner responds to the online message
  • the refrigerator device answers the online message
  • the set top box re-updates the online display icon, highlights the device icon that answers the online message, and the device icon that does not answer the online message is half gray;
  • the set top box lists the information that the camera device can diagnose.
  • the set top box detects that the user selects the network speed detection and sends a network speed detection command to the camera device.
  • the camera responds to the network speed detection command of the set top box; the set top box calculates the network delay by calculating the time difference between sending the network speed detection command and receiving the response command, and displays it on the television;
  • the set top box lists the information that the air conditioner class can diagnose, and the set top box detects that the user selects the motor detection and issues a motor state detection command to the air conditioner;
  • the air conditioner responds to the set-top box motor state detection command, indicating that there is no abnormality for 300 days; the set-top box displays the response content of the air conditioner on the TV, waiting for the user to operate.
  • This example 4 relates to the process of querying the refrigerator temperature control system and adjusting the temperature of the freezer compartment of the refrigerator. As shown in Figure 10, the process includes:
  • the user initiates a home smart system connection request
  • the EPG-CDN responds to the user request and verifies the validity of the user identity
  • the user initiates a query for a temperature request of the freezer compartment of the refrigerator
  • the EPG-CDN After receiving the user instruction, the EPG-CDN forwards the user instruction to the set top box;
  • the set-top box receives the instruction sent by the EPG-CDN, converts it into the format of the internal message of the Internet of Things, and sends it to the refrigerator;
  • the refrigerator receives the temperature inquiry command, obtains the information of the current freezer, and reports the message to the set top box;
  • the set-top box receives the message from the refrigerator, extracts the temperature value, generates a data packet in a unified format, and returns Return to EPG-CDN;
  • the EPG-CDN responds to the user's operation and returns the temperature of the user's current freezer compartment.
  • the user sends a temperature adjustment command to the EPG-CDN to raise the freezer compartment by 2 ° C;
  • the EPG-CDN receives the user command and issues a temperature adjustment command to the set top box
  • the set top box sends a temperature adjustment command to the refrigerator
  • the set-top box reports the response of the temperature adjustment to the EPG-CDN
  • EPG-CDN responds to user temperature adjustment operations
  • the fifth example is a process of acquiring camera video data.
  • the interaction between the STB and the network camera includes:
  • the set-top box periodically queries whether the camera is online
  • the feedback is online
  • the set-top box After the camera receives feedback, the set-top box actively sends a state detection packet to detect the network speed capability.
  • the camera feeds back the network speed detection package of the set top box
  • the set-top box calculates the current network speed and determines whether there is a packet loss; if there is a packet loss, the network packet loss alarm is sent to the EPG-CDN;
  • the set top box determines whether the user setting needs to save historical data (for example, the default configuration is to save 30 days of historical data), and it is assumed that historical data needs to be saved;
  • the set top box initiates a data upload request to the camera and receives data from the camera;
  • the set-top box After receiving the camera data, the set-top box requests the EPG-CDN to save and classify the home user data, and continues to receive the camera data.
  • Example 5 the interaction between the user and the EPG-CDN includes:
  • the user requests access to the EPG-CDN;
  • the EPG-CDN responds to the user request and verifies the validity of the user identity
  • the EPG-CDN calculates the corresponding media data by the user requesting the time point; if the data exists, the data is sent to the user, and if the data does not exist, the prompt information is returned;
  • the EPG-CDN determines whether the set-top box is uploading camera data, and if the set-top box is uploading camera data, the media data is sent to the user;
  • the EPG-CDN actively requests the set-top box to upload data
  • the set top box receives the upload data request and requests the camera to upload the data
  • the set top box receives the data uploaded by the camera and sends it to the EPG-CDN, waiting for the user's instruction.
  • Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
  • the set top box includes:
  • At least one processor 60 which is exemplified by a processor 60 in FIG. 12; and a memory 61, may further include a communication interface 62 and a bus 63.
  • the processor 60, the communication interface 62, and the memory 61 can complete communication with each other through the bus 63.
  • Communication interface 62 can be used for information transfer.
  • the communication interface 62 may include an internal interface 10 and an external interface 20 in the set top box, wherein the internal interface 10 may be a wired transmission interface (eg, the television is connected to the set top box through the HDMI interface), or may be a wireless transmission interface (eg, The fan is connected to the set top box via Bluetooth; the external interface 10 can be a wired transmission interface (eg, the RJ45 interface of the set top box is connected to the wide area network through a network cable).
  • the processor 60 can call the logic instructions in the memory 61 to perform the method applied to the set top box in the above embodiments.
  • logic instructions in the memory 61 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 61 is used as a computer readable storage medium for storing software programs and computers. Executing a program, such as a program instruction or module corresponding to a method applied to a set top box in an embodiment of the present disclosure.
  • the processor 60 executes the function application and the data processing by executing the software program, the instruction or the module stored in the memory 61, that is, the implementation method of the home Internet of things applied to the set top box in the above method embodiment.
  • the memory 61 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 61 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the IoT server includes:
  • At least one processor 70 which is exemplified by a processor 70 in FIG. 13; and a memory 71, may further include a communication interface 72 and a bus 73.
  • the processor 70, the communication interface 72, and the memory 71 can complete communication with each other through the bus 73.
  • Communication interface 72 can be used for information transfer.
  • the communication interface 72 can include a user interface and a set top box interface in the Internet of Things server, wherein the user interface can be a wired transmission interface (eg, a local area network user transmits instructions to the Internet of Things server through the RJ45 interface and the network cable); the set top box interface can be wired transmission Interface (for example, the RJ45 interface of the set-top box is connected to the IoT server through a network cable).
  • the processor 70 can call the logic instructions in the memory 71 to perform the method applied to the Internet of Things server in the above embodiment.
  • logic instructions in the memory 71 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 71 is a computer readable storage medium, and can be used to store a software program, a computer executable program, a program instruction or a module corresponding to a method applied to the Internet of Things server in the embodiment of the present disclosure.
  • the processor 70 executes the function application and the data processing by running the software program, the instruction or the module stored in the memory 71, that is, the implementation method of the home Internet of things applied to the Internet of Things server in the above method embodiment.
  • the memory 71 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 71 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the technical solution of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) Performing all or part of the steps of the method of the embodiments of the present disclosure.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random storage memory (RAM), a magnetic disk, or an optical disk.
  • the implementation method of the home Internet of things and the set top box and the Internet of Things server provided by the embodiments of the present disclosure can realize the docking requirement of the home Internet of things to the Internet simply and conveniently, and improve the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Small-Scale Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开提供了一种家庭物联网的实现方法及机顶盒、物联网服务器,机顶盒通过家庭内部局域网将网元设备接入家庭物联网,并作为家庭物联网的边缘路由器接入广域网;以及所述机顶盒获取所述网元设备的状态信息和数据中的至少一种,将获取的所述网元设备的状态信息和数据中的至少一种上传给所述广域网中的物联网服务器。

Description

家庭物联网的实现方法及机顶盒、物联网服务器 技术领域
本公开涉及网络技术,例如,涉及一种家庭物联网的实现方法及机顶盒、物联网服务器。
背景技术
随着网路协定电视(Internet Protocol Television,IPTV)的大规模普及,机顶盒已经普及到每个家庭,并作为基础设备由运行商提供。同时,家庭物联网也在高速发展。从简单的物联网到家庭内部所有不同网络接入设备的统一组网需求已经出现,需要选择一种设备作为家庭边缘路由器和媒体中心,以实现家庭物联网到互联网的对接要求和改善用户体验。
另外,当前市面上的家庭物联网产品,多个厂家没有实现统一的规范和协议,导致市面上的产品不能互联互通;同时由于多个家庭物联网产品不能互联互通,导致用户在使用多个厂家的模组时,需要引入多个家庭网关或者网络接入管理组件,进而导致用户易用性变差。
发明内容
一种家庭物联网的实现方法,应用于机顶盒,包括:
机顶盒通过家庭内部局域网将网元设备接入家庭物联网,并作为所述家庭物联网的边缘路由器接入广域网;以及
所述机顶盒获取所述网元设备的状态信息和数据中的至少一种,将获取的所述网元设备的状态信息和数据中的至少一种上传给所述广域网中的物联网服务器。
可选地,所述机顶盒通过家庭内部局域网将网元设备接入家庭物联网,包括:
所述机顶盒上电后,进入监听状态;
所述机顶盒如收到所述网元设备通过家庭内部局域网发送的携带该网元设备属性的广播消息,则向所述网元设备发送应答消息,在所述应答消息中携带 所述机顶盒作为边缘路由器的地址信息;以及
所述机顶盒如收到所述网元设备发送的注册请求消息,根据所述注册请求消息中携带的设备类型信息,将所述网元设备注册到设备管理系统,并向所述网元设备发送携带注册结果的响应消息。
可选地,所述机顶盒获取所述网元设备的状态信息,包括:
所述机顶盒向已注册网元设备发送在线状态查询消息;以及
所述机顶盒接收已注册网元设备返回的在线应答消息,将已注册网元设备中返回在线应答消息的网元设备的在线状态置为在线,未返回在线应答消息的网元设备的在线状态置为离线。
可选地,所述机顶盒获取所述网元设备的状态信息,还包括:
所述机顶盒向在线网元设备发送探测请求消息,接收所述在线网元设备返回的探测响应消息;以及
所述机顶盒从所述探测响应消息中获取所述在线网元设备对设备状态的探测结果,或者根据所述探测请求消息和探测响应消息的参数进行计算,获取对所述机顶盒和在线网元设备之间信道状态的探测结果。
可选地,所述机顶盒获取所述网元设备的状态信息,包括以下一种或多种情况:
所述机顶盒周期性地获取所述网元设备的状态信息;
所述机顶盒根据用户指令,获取所述网元设备的状态信息并展示给用户;以及
所述机顶盒根据所述物联网服务器的指令,获取所述网元设备的状态信息;
所述机顶盒获取所述网元设备的状态信息后,所述方法还包括以下步骤中的至少一个:
将所述状态信息保存在本地,
将所述状态信息上传给所述物联网服务器。
可选地,所述机顶盒获取所述网元设备的数据,将所述网元设备的数据上传给所述广域网中的物联网服务器,包括:
所述机顶盒根据配置信息或所述物联网服务器的指令,确定需获取摄像机的视频数据且所述摄像机在线时,向所述摄像机发送数据上传请求消息;以及
所述机顶盒接收所述摄像机上传的视频数据后保存在本地,或者将所述视频数据上传到所述物联网服务器保存。
可选地,所述方法还包括:
所述机顶盒和物联网服务器之间采用统一格式的数据包传递信息;
所述机顶盒接收到所述网元设备发送的家庭内部局域网规定格式的数据包后,将所述网元设备发送的家庭内部局域网规定格式的数据包转换为所述统一格式的数据包,向所述物联网服务器发送;以及
所述机顶盒接收到所述物联网服务器发送的所述统一格式的数据包后,将所述统一格式的数据包转换为目标网元设备所在的家庭内部局域网规定格式的数据包,向所述目标网元设备发送。
可选地,所述统一格式的数据包包括以下一种或多种字段:
类型字段;
负载长度字段;
操作码字段;
报文序号字段;
报文发送时间字段;以及
填充字段。
可选地,所述物联网服务器采用网路协定电视IPTV系统中具有电子节目指南EPG和内容分发网络CDN中至少一种功能的服务器实现。一种家庭物联网的实现方法,应用于物联网服务器,包括:
物联网服务器接收用户指令,将针对目标网元设备的用户指令通过机顶盒发送给所述目标网元设备;以及
所述物联网服务器接收所述机顶盒上传的所述目标网元设备的信息和数据中的至少一种,将接收的所述目标网元设备的信息和数据中的至少一种提供给用户。
可选地,所述物联网服务器接收所述机顶盒上传的所述目标网元设备的信息,包括:接收所述机顶盒上传的所述目标网元设备对用户指令的响应消息;
所述物联网服务器将接收的所述目标网元设备的数据提供给用户,包括:
接收到用户查看历史视频数据的指令时,如保存有所述历史视频数据,将所述历史视频数据发送给用户;以及
接收到用户查看实时视频数据的指令时,将所述机顶盒正在上传的所述视频数据发送给用户,或通过所述机顶盒向目标摄像机发送上传视频数据的指令,接收所述机顶盒上传的所述目标摄像机的视频数据并发送给用户。
可选地,所述方法还包括:
所述物联网服务器为用户提供访问所述家庭物联网的入口,通过广域网建立与用户的连接,对用户的身份验校通过后,允许用户登录到所述家庭物联网的管理界面。
可选地,所述物联网服务器采用IPTV系统中具有电子节目指南EPG和内容分发网络CDN中至少一种功能的服务器实现。
一种机顶盒,所述机顶盒作为家庭物联网的边缘路由器,包括:
外部接口,设置为实现机顶盒与广域网中的物联网服务器之间的通信;
内部接口,设置为通过家庭内部局域网实现机顶盒与家庭物联网的网元设备之间的通信;
接入模块,设置为通过家庭内部局域网将网元设备接入所述家庭物联网;
采集模块,设置为获取所述网元设备的状态信息和数据中的至少一种;以及
收发模块,设置为向网元设备下发指令,及将所述网元设备的状态信息和数据中的至少一种上传给所述广域网中的物联网服务器。
可选地,所述接入模块包括:
监听单元,设置为在上电后进入监听状态;
应答单元,设置为在收到所述网元设备通过家庭内部局域网发送的携带该网元设备属性的广播消息后,向所述网元设备发送应答消息,在所述应答消息中携带所述机顶盒作为边缘路由器的地址信息;以及
注册单元,设置为在收到所述网元设备发送的注册请求消息后,根据所述注册请求消息中携带的设备类型信息,将所述网元设备注册到设备管理系统,并向所述网元设备发送携带注册结果的响应消息。
可选地,所述采集模块包括:
状态查询单元,设置为向已注册网元设备发送在线状态查询消息;
状态设置单元,设置为接收已注册网元设备返回的在线应答消息,将已注册网元设备中返回在线应答消息的网元设备的在线状态置为在线,未返回在线应答消息的网元设备的在线状态置为离线。
可选地,所述采集模块还包括:
探测请求单元,设置为向在线网元设备发送探测请求消息,接收所述在线网元设备返回的探测响应消息;以及
探测处理单元,设置为从所述探测响应消息中获取所述在线网元设备对设备状态的探测结果,或者根据所述探测请求消息和探测响应消息的参数进行计算,获取对所述机顶盒和在线网元设备之间信道状态的探测结果。
可选地,所述采集模块获取所述网元设备的状态信息,包括以下一种或多种情况:
周期性地获取所述网元设备的状态信息;
根据用户指令,获取所述网元设备的状态信息并展示给用户;以及
根据所述物联网服务器的指令,获取所述网元设备的状态信息;
所述采集模块获取所述网元设备的状态信息后,还包括以下步骤中的至少一个:
将所述状态信息保存在本地,
将所述状态信息上传给所述物联网服务器。
可选地,所述采集模块包括:
数据请求单元,设置为根据配置信息或所述物联网服务器的指令,确定需获取摄像机的视频数据且所述摄像机在线时,向所述摄像机发送数据上传请求消息;以及
数据处理单元,设置为接收所述摄像机上传的视频数据后保存在本地,或者将所述视频数据上传到所述物联网服务器保存。
可选地,所述机顶盒还包括:
格式转换模块,设置为在接收到所述网元设备发送的家庭内部局域网规定格式的数据包后,将所述网元设备发送的家庭内部局域网规定格式的数据包转换为所述统一格式的数据包,向所述物联网服务器发送;及接收到所述物联网服务器发送的所述统一格式的数据包后,将所述统一格式的数据包转换为目标网元设备所在家庭内部局域网规定格式的数据包,向所述目标网元设备发送。
可选地,所述统一格式的数据包包括以下一种或多种字段:
类型字段;
负载长度字段;
操作码字段;
报文序号字段;
报文发送时间字段;以及
填充字段。
一种物联网服务器,所述物联网服务器设置在广域网中并与机顶盒连接,包括:
用户接口模块,设置为接收用户指令,及将所述目标网元设备的信息和数据中的至少一种提供给用户;
机顶盒接口模块,设置为将所述用户接口模块接收的针对目标网元设备的用户指令通过所述机顶盒发送给目标网元设备,及接收所述机顶盒上传的所述目标网元设备的信息和数据中的至少一种。
可选地,所述用户接口模块包括:
信息提供单元,设置为将所述目标网元设备的信息提供给用户,所述目标网元设备的信息包括所述目标网元设备对用户指令的响应消息;
第一数据提供单元,设置为接收到用户查看历史视频数据的指令后,如保存有所述历史视频数据,将所述历史视频数据发送给用户;以及
第二数据提供单元,设置为接收到用户查看实时视频数据的指令后,将所述机顶盒正在上传的所述视频数据发送给用户,或者通过所述机顶盒接口模块向目标摄像机发送上传视频数据的指令,将所述机顶盒接口模块接收的所述目标摄像机的视频数据发送给用户。
可选地,所述用户接口模块还包括:
登录管理单元,设置为为用户提供访问所述家庭物联网的入口,通过广域网建立与用户的连接,对用户的身份验校通过后,允许用户登录到所述家庭物联网的管理界面。
可选地,所述物联网服务器采用IPTV系统中具有电子节目指南EPG和内容分发网络CDN中的至少一种功能的服务器实现。本公开还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述方法。
本公开还提供了一种机顶盒,该机顶盒包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述应用于机顶盒的家庭物联网的实现方法。
本公开还提供了一种物联网服务器,该物联网服务器包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述应用于物联网服务器的家庭物联网的实现方法。
上述方案可以简单、方便地实现家庭物联网到互联网的对接要求,改善用户体验。
附图说明
图1是本公开实施例一方法的流程图;
图2是本公开实施例一机顶盒的模块图;
图3是本公开实施例二方法的流程图;
图4是本公开实施例二物联网服务器的模块图;
图5是机顶盒作为家庭边缘路由器的业务系统的组网示意图;
图6是机顶盒作为家庭边缘路由器的组网示意图;
图7是机顶盒和物联网服务器之间数据包格式的示意图;
图8是机顶盒监听及空调设备动态接入的流程图;
图9是机顶盒对网元设备进行在线查询和状态探测的流程图;
图10是机顶盒查询冰箱温控系统以及调节冰箱冷冻室温度的流程图;
图11是获取摄像机视频数据的流程图;
图12是本公开实施例四的机顶盒的硬件结构示意图;以及
图13是本公开实施例五的物联网服务器的硬件结构示意图。
具体实施方式
为使本公开的技术方案更加清楚明白,下文中将结合附图对本公开的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例一
本实施例涉及一种家庭物联网的实现方法,应用于机顶盒,如图1所示。
在步骤110中,机顶盒通过家庭内部局域网将网元设备接入家庭物联网,并作为家庭物联网的边缘路由器接入广域网。
本步骤中,以机顶盒作为家庭物联网边缘路由器,将网元设备接入家庭物联网,不需要对网络接入点进行单独布线。此外,本实施例的所述物联网服务器采用IPTV系统中与所述机顶盒连接的具有电子节目指南(Electronic Program Guide,EPG)和内容分发网络(Content Delivery Network,CDN)中至少一种功能的服务器(定义为EPG-CDN)实现,利用机顶盒(Set Top Box,STB)配套的EPG-CDN服务器作为家庭网络接入的后台服务器,便于手机、电脑用户的远程控制和数据传送,不但容量大而且也不需要重新布网络,还能提供统一的、 有保障的用户体验。
本步骤中,所述机顶盒通过家庭内部局域网将网元设备接入所述家庭物联网,可包括:
所述机顶盒上电后,进入监听状态;
所述机顶盒如收到所述网元设备通过家庭内部局域网发送的携带该网元设备属性的广播消息,则向所述网元设备发送应答消息,在所述应答消息中携带所述机顶盒作为边缘路由器的地址信息;以及
所述机顶盒如收到所述网元设备发送的注册请求消息,根据所述注册请求消息中携带的设备类型信息,将所述网元设备注册到设备管理系统,并向所述网元设备发送携带注册结果的响应消息。
在步骤120中,所述机顶盒获取所述网元设备的状态信息和数据中的至少一种,将获取的所述网元设备的状态信息和数据中的至少一种上传给所述广域网中的物联网服务器。
本步骤中,所述机顶盒获取所述网元设备的状态信息,可包括以下一种或多种情况:
所述机顶盒周期性地获取所述网元设备的状态信息;
所述机顶盒根据用户指令,获取所述网元设备的状态信息并展示给用户;以及
所述机顶盒根据所述物联网服务器的指令,获取所述网元设备的状态信息;
所述机顶盒获取所述网元设备的状态信息后,所述方法还包括以下步骤中的至少一个:
将所述状态信息保存在本地,
将所述状态信息上传给所述物联网服务器。
本步骤中,所述机顶盒获取所述网元设备的状态信息,可包括:
所述机顶盒向已注册网元设备发送在线状态查询消息;以及
所述机顶盒接收已注册网元设备返回的在线应答消息,将已注册网元设备中返回在线应答消息的网元设备的在线状态置为在线,未返回在线应答消息的网元设备的在线状态置为离线。
本步骤中,所述机顶盒获取所述网元设备的状态信息,还可包括:
所述机顶盒向在线网元设备发送探测请求消息,接收所述在线网元设备返回的探测响应消息;以及
所述机顶盒从所述探测响应消息中获取所述在线网元设备对设备状态的探测结果,或者根据所述探测请求消息和探测响应消息的参数进行计算,获取对所述机顶盒和在线网元设备之间信道状态的探测结果。
本步骤中,所述机顶盒获取所述网元设备的数据,将所述网元设备的数据上传给所述广域网中的物联网服务器,可包括:
所述机顶盒根据配置信息或所述物联网服务器的指令,确定需获取摄像机的视频数据且所述摄像机在线时,向所述摄像机发送数据上传请求消息;以及
所述机顶盒接收所述摄像机上传的视频数据后保存在本地,或者将所述视频数据上传到所述物联网服务器保存。
所述方法还可包括:
所述机顶盒和物联网服务器之间采用统一格式的数据包传递信息;
所述机顶盒接收到所述网元设备发送的家庭内部局域网规定格式的数据包后,将所述网元设备发送的家庭内部局域网规定格式的数据包转换为所述统一格式的数据包,向所述物联网服务器发送;以及
所述机顶盒接收到所述物联网服务器发送的所述统一格式的数据包后,将所述统一格式的数据包转换为目标网元设备所在的家庭内部局域网规定格式的数据包,向所述目标网元设备发送。
相应地,本实施例还提供一种机顶盒,所述机顶盒作为家庭物联网的边缘路由器,如图2所示,包括:外部接口10,内部接口20,接入模块30,采集模块40以及收发模块50。
外部接口10设置为实现机顶盒与广域网中的物联网服务器之间的通信。
内部接口20设置为通过家庭内部局域网实现机顶盒与家庭物联网的网元设备之间的通信。
接入模块30设置为通过家庭内部局域网将网元设备接入所述家庭物联网。
采集模块40设置为获取所述网元设备的状态信息和数据中的至少一种。
收发模块50设置为向网元设备下发指令,及将所述网元设备的状态信息和数据中的至少一种上传给所述广域网中的物联网服务器。
可选地,所述接入模块30包括:监听单元,应答单元以及注册单元。
监听单元设置为在上电后进入监听状态。
应答单元设置为在收到所述网元设备通过家庭内部局域网发送的携带该网元设备属性的广播消息后,向所述网元设备发送应答消息,在所述应答消息中携带所述机顶盒作为边缘路由器的地址信息。
注册单元设置为在收到所述网元设备发送的注册请求消息后,根据所述注册请求消息中携带的设备类型信息,将所述网元设备注册到设备管理系统,并向所述网元设备发送携带注册结果的响应消息。
可选地,所述采集模块包括:状态查询单元和状态设置单元。
状态查询单元设置为向已注册网元设备发送在线状态查询消息;
状态设置单元设置为接收已注册网元设备返回的在线应答消息,将已注册网元设备中返回在线应答消息的网元设备的在线状态置为在线,未返回在线应答消息的网元设备的在线状态置为离线。
可选地,所述采集模块还包括:探测请求单元以及探测处理单元。
探测请求单元设置为向在线网元设备发送探测请求消息,接收所述在线网元设备返回的探测响应消息。
探测处理单元设置为从所述探测响应消息中获取所述在线网元设备对设备状态的探测结果,或者根据所述探测请求消息和探测响应消息的参数进行计算,获取对所述机顶盒和在线网元设备之间信道状态的探测结果。
可选地,所述采集模块获取所述网元设备的状态信息,包括以下一种或多种情况:
周期性地获取所述网元设备的状态信息;
根据用户指令,获取所述网元设备的状态信息并展示给用户;以及
根据所述物联网服务器的指令,获取所述网元设备的状态信息。
所述采集模块获取所述网元设备的状态信息后,还包括以下步骤中的至少一个:
将所述状态信息保存在本地,
将所述状态信息上传给所述物联网服务器。
可选地,所述采集模块包括:数据请求单元和数据处理单元。
数据请求单元设置为根据配置信息或所述物联网服务器的指令,获取摄像机的视频数据且所述摄像机在线时,向所述摄像机发送数据上传请求消息。
数据处理单元设置为接收所述摄像机上传的视频数据后保存在本地,或者将所述视频数据上传到所述物联网服务器保存。
可选地,所述机顶盒还包括:
格式转换模块,设置为在接收到所述网元设备发送的家庭内部局域网规定格式的数据包后,将所述网元设备发送的家庭内部局域网规定格式的数据包转换为所述统一格式的数据包,向所述物联网服务器发送;及接收到所述物联网服务器发送的所述统一格式的数据包后,将所述统一格式的数据包转换为目标网元设备所在家庭内部局域网规定格式的数据包,向所述目标网元设备发送。
本实施例中的上述统一格式的数据包,可包括以下一种或多种字段:
类型字段;负载长度字段;操作码字段;报文序号字段;报文发送时间字段;以及填充字段。
实施例二
如图3所示,本实施例涉及一种家庭物联网的实现方法,应用于物联网服务器,所述物联网服务器采用IPTV系统中具有电子节目指南EPG和内容分发网络CDN中至少一种功能的服务器实现。
在步骤210中,物联网服务器接收用户指令,将针对目标网元设备的用户指令通过机顶盒发送给所述目标网元设备。
在步骤220中,所述物联网服务器接收所述机顶盒上传的所述目标网元设备的信息和数据中的至少一种,将接收的所述目标网元设备的信息和数据中的至少一种提供给用户。
本步骤中,所述物联网服务器接收所述机顶盒上传的所述目标网元设备的信息,包括:接收所述机顶盒上传的所述目标网元设备对用户指令的响应消息。
本步骤中,所述物联网服务器将接收的所述目标网元设备的数据提供给用 户,包括:
接收到用户查看历史视频数据的指令时,如保存有所述历史视频数据,将所述历史视频数据发送给用户;以及
接收到用户查看实时视频数据的指令时,将所述机顶盒正在上传的所述视频数据发送给用户,或通过所述机顶盒向目标摄像机发送上传视频数据的指令,接收所述机顶盒上传的所述目标摄像机的视频数据并发送给用户。
本实施例中的所述方法还可以包括:所述物联网服务器还可以为用户提供访问所述家庭物联网的入口,通过广域网建立与用户的连接,对用户的身份验校通过后,允许用户登录到所述家庭物联网的管理界面。
本实施例还提供了一种物联网服务器,所述物联网服务器设置在广域网中并与机顶盒连接。可选地,所述物联网服务器采用IPTV系统中具有电子节目指南EPG和内容分发网络CDN中至少一种功能的服务器实现。如图4所示,所述物联网服务器包括:用户接口模块70和机顶盒接口模块80。
用户接口模块70设置为接收用户指令,及将所述目标网元设备的信息和数据中的至少一种提供给用户。
机顶盒接口模块80设置为将所述用户接口模块接收的针对目标网元设备的用户指令通过所述机顶盒发送给目标网元设备,及接收所述机顶盒上传的所述目标网元设备的信息和数据中的至少一种。
可选地,所述用户接口模块包括:信息提供单元,第一数据提供单元以及第二数据提供单元。
信息提供单元设置为将所述目标网元设备的信息提供给用户,所述目标网元设备的信息包括所述目标网元设备对用户指令的响应消息。
第一数据提供单元设置为接收到用户查看历史视频数据的指令后,如保存有所述历史视频数据,将所述历史视频数据发送给用户。
第二数据提供单元设置为接收到用户查看实时视频数据的指令后,将所述机顶盒正在上传的所述视频数据发送给用户,或者通过所述机顶盒接口模块向目标摄像机发送上传视频数据的指令,将所述机顶盒接口模块接收的所述目标摄像机的视频数据发送给用户。
可选地,所述用户接口模块还包括:登录管理单元。
登录管理单元设置为为用户提供访问所述家庭物联网的入口,通过广域网建立与用户的连接,对用户的身份验校通过后,允许用户登录到所述家庭物联网的管理界面。
下面用应用中的示例对本公开的实施例进行说明。
示例一
本示例的物联网系统如图5所示,包括网元设备、机顶盒和物联网服务器。本示例中包括家庭物联网的接入、状态获取(如在线状态查询、设备状态探测和信道状态探测)、信息或数据上传和远程控制等流程。
家庭物联网的网元设备(如电视、摄像机、投影仪、麦克风等智能家居设备)通过家庭内部局域网(如无线保真(Wireless Fidelity,wifi)网络、蓝牙、近距离无线通信(Near Field Communication,NFC)、ZigBee)接入机顶盒,机顶盒作为家庭物联网的边缘路由器,上行通过运行商(如电信、移动和联通)提供的家庭网络接入点接入因特网(Internet),与物联网服务器通信。
本示例机顶盒支持的上行接口包括以太网口、wifi接口中的一种或多种;可以支持的家庭内部网络模块包括wifi(作为AP)、蓝牙、以太网、和NFC中的一种或多种。机顶盒负责开机后物联网网元设备的接入、网元设备在线状态查询、网络信道状态探测、设备控制以及信息或数据上传、协议转换等处理。机顶盒作为网元设备和物联网服务器之间的节点,通过两个接口协议之间的转换可以屏蔽网元设备接入的内部局域网的区别。
图6所示是机顶盒作为边缘路由器的一个示例性的组网图。机顶盒具备双网络,具备无线接入点和蓝牙(Version 4.0)接入能力,可作为家庭NFC智能开关中心,也可接入zigbee网络设备和900MHz低频无线设备。图6中,电风扇通过蓝牙接入机顶盒。电视机通过高清晰度多媒体接口(High Definition Multimedia Interface,HDMI)接入机顶盒。家庭监控摄像机通过无线局域网络(Wireless Local Area Networks,WLAN)接入机顶盒。热水器通过家庭NFC智能开关中心接入机顶盒。洗衣机通过蓝牙接入机顶盒。微波炉通过蓝牙接入机顶盒。空调通过蓝牙接入机顶盒。机顶盒还可以将更多的网元设备接入家庭物联网。
本示例一中,机顶盒在家庭内部把多种不同的网络接入方式统一,为EPG或CDN提供统一的控制和数据通道,便于用户后续访问。可选地,机顶盒和物 联网服务器之间采用统一格式的数据包传递信息;机顶盒接收到所述网元设备发送的家庭内部局域网规定格式的数据包后,将所述网元设备发送的家庭内部局域网规定格式的数据包转换为所述统一格式的数据包,向所述物联网服务器发送;以及机顶盒接收到所述物联网服务器发送的所述统一格式的数据包后,将所述统一格式的数据包转换为目标网元设备所在的家庭内部局域网规定格式的数据包,向所述目标网元设备发送。
如图7所示,上述统一格式的数据包的示例性的定义如下:设备信息控制包统一格式为20字节。其中:
字段0,1为:类型(TYPE)字段,长度为2字节。
已定义:探测设备在线状态为0x180A,网络速度探测为0x180B,允许设备开发者自定义,规则如下:
0x1800-0x1809为保留字段,协议扩充使用;
0x180A-0x187F为系统字段,用于逐步添加协议标识符;以及
0x1880-0x18FE预留,用于设备制造者定制协议。
字段2,3为:负载长度字段(包含TYPE字段在内)。
字段4,5,6为:保留字段。
字段7为:操作码(opcode),其中,0x01为机顶盒向从设备查询;0x00为从设备回复机顶盒;
字段8,9为:报文序号。
字段10,11,12,13为:报文发送时间,可选项。
后续字段为填充字段,包含在负载长度字段计算范围。
本示例的物联网服务器采用IPTV系统的服务器EPG-CDN实现,EPG-CDN提供统一的对外接口,接受用户的远程访问和控制,为用户提供广域网统一的访问地址。EPG-CDN可以把用户指令传达给机顶盒,也可以接收来自机顶盒的信息(如对用户指令的响应信息、网元设备在线状态信息等)和数据中的至少一种,将信息和数据中的至少一种提供给用户,还可提供媒体存储业务。这样用户就可以通过移动设备(如手机)、传统设备(台式机、笔记本)等网络设备访问EPG-CDN的入口,发送用户指令,由机顶盒把来自于EPG-CDN的命令转 发给智能家居设备,从而及时准确地获取家庭智能设备的状态,也可以快速获取STB上传并存储在EPG-CDN服务器上的历史数据和信息。
例如,用户可以通过手机应用(Application,APP)可视化界面控制电风扇的开启和关闭,此时机顶盒通过家庭NFC智能开关中心,控制电风扇的通电和断电功能。又如,用户通过手机APP可视化界面控制洗衣机洗衣,此时机顶盒通过蓝牙给洗衣机下达工作指令。又如,用户希望调用查看家里小孩老人的午休情况,此时机顶盒通过无线wifi把家庭监控摄像机的视频流发送给手机终端。
示例二
示例二在示例一物联网系统的基础上,增加了机顶盒监听和网元设备(以空调设备为例)动态接入物联网络的流程,如图8所示。
机顶盒处于守护监听状态;
空调安装完成并接上电源后,发送接入探测请求,主动广播自身设备属性的上线消息;
机顶盒收到空调的广播消息后,把自身的信息作为边缘路由器的信息(如网络之间互连的协议(Internet Protocol,IP)/媒体访问控制(Media Access Control,MAC)/域名系统(Domain Name System,DNS)等地址信息)下发给空调设备;
空调设备收到来自机顶盒的应答信息,从广播切换到单播消息,发起向机顶盒的注册请求消息;
机顶盒收到来自空调设备的注册请求消息,根据消息中的设备类型,将空调设备注册到设备管理系统,并应答空调设备,告知设备已注册成功;以及
完成注册后,回到守护监听状态,等待其他设备的接入。
示例三
本示例三提出的机顶盒进行网元设备在线查询和状态探测的流程。如图9所示,该流程包括:
机顶盒根据用户指令显示物联网视图以及诊断界面;
等待用户指令,获取历史接入数据、并和EPG-CDN服务器进行数据同步,下载对应的设备图标的用户界面(User Interface,UI)视图,显示在线设备;
接收到用户发起更新设备状态的指令后,机顶盒向注册过的设备(包括摄 像机、空调和冰箱)发起在线状态查询请求;
摄像机设备应答在线消息;
空调设备应答在线消息;
冰箱设备应答在线消息;
机顶盒重新更新在线显示图标,将应答在线消息的设备图标高亮,未应答在线消息的设备图标半灰;
等待用户指令;
假定用户焦点移动到摄像机图标,机顶盒罗列出摄像机类设备可诊断的信息,机顶盒检测到用户选中网速检测,向摄像机设备发出网速探测命令;
摄像机应答机顶盒的网速探测命令;机顶盒通过计算发送网速探测命令和接收应答命令的时间差,计算出网络延时,并显示在电视上;
假定用户焦点移动到空调图标,机顶盒罗列出空调类设备可诊断的信息,机顶盒检测到用户选中电机检测,向空调设备发出电机状态探测命令;以及
空调设备应答机顶盒电机状态探测命令,表示300天未有异常;机顶盒在电视上展示空调的应答内容,等待用户操作。
示例四
本示例四涉及机顶盒查询冰箱温控系统以及调节冰箱冷冻室温度的流程。如图10所示,该流程包括:
用户发起家居智能系统连接请求;
EPG-CDN对用户请求响应并校验用户身份有效性;
用户身份有效性校验通过后,等待用户请求;
用户发起查询冰箱冷冻室的温度请求;
EPG-CDN接收到用户指令后,把用户指令转发给机顶盒;
机顶盒收到EPG-CDN发送来的指令,转换为物联网内部消息的格式,发送到冰箱;
冰箱收到温度查询指令,获取当前冷冻室的信息,上报消息给机顶盒;
机顶盒收到冰箱的消息,把温度值提取出来,生成统一格式的数据包并返 回给EPG-CDN;以及
EPG-CDN响应用户操作,返回给用户当前冰箱冷冻室的温度。
如果用户下班回家需要解冻冷冻室的排骨,需要将冰箱的温度值上调5℃(如调整到-5℃),以便后续快速进行解冻和做饭,执行以下处理:
用户向EPG-CDN发送将冰箱冷冻室调高2℃的温度调节指令;
EPG-CDN收到用户指令,下发温度调节指令到机顶盒;
机顶盒把温度调节指令发送给冰箱;
冰箱完成冷冻室的温度调整后,上报消息给机顶盒;
机顶盒上报温度调整完成的响应给EPG-CDN;
EPG-CDN响应用户温度调整操作;以及
等待用户指令。
示例五
如图11所示,本示例五是获取摄像机视频数据的流程。
其中,STB和网络摄像机间的交互包括:
机顶盒周期查询摄像机是否在线;
当摄像机收到机顶盒的网络在线查询请求后,反馈已在线;
当摄像机收反馈已在线后,机顶盒主动发送状态探测包,对网速能力进行探测;
摄像机反馈机顶盒的网速探测包;
机顶盒计算当前网络速度,以及判断是否存在丢包;如果存在丢包,将向EPG-CDN进行网络丢包告警;
机顶盒判断用户设置是否需要保存历史数据(例如,默认配置为保存30天历史数据),这里假定需要保存历史数据;
机顶盒向摄像机发起数据上传请求并接收来自摄像机的数据;以及
机顶盒收到摄像机数据后,向EPG-CDN请求家庭用户数据保存并归类,并继续接收摄像机数据。
本示例五中,用户和EPG-CDN间的交互包括:
用户请求接入EPG-CDN;
EPG-CDN对用户请求响应并校验用户身份有效性;
用户身份有效性校验通过后,等待用户指令;
如果用户请求查看历史数据,EPG-CDN通过用户请求时间点,计算相应的媒体数据;如果数据存在,发送数据给用户,如果数据不存在,返回提示信息;
如果用户请求实时数据,EPG-CDN判断机顶盒是否正在上传摄像机数据,如果机顶盒正在上传摄像机数据,发送媒体数据到用户;
如果机顶盒当前未上传摄像机数据,EPG-CDN主动要求机顶盒上传数据;
机顶盒收到上传数据请求,要求摄像机上传数据;以及
机顶盒接收摄像机上传的数据,并发送到EPG-CDN,等待用户指令。
实施例三
本公开实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。
实施例四
本公开实施例提供了机顶盒的硬件结构示意图。参见图12,该机顶盒包括:
至少一个处理器(processor)60,图12中以一个处理器60为例;和存储器(memory)61,还可以包括通信接口(Communications Interface)62和总线63。其中,处理器60、通信接口62、存储器61可以通过总线63完成相互间的通信。通信接口62可以用于信息传输。通信接口62可以包括机顶盒中的内部接口10和外部接口20,其中,内部接口10可以是有线传输接口(如,电视机通过HDMI接口接入机顶盒中),也可以是无线传输接口(如,电风扇通过蓝牙接入机顶盒);外部接口10可以是有线传输接口(如,机顶盒的RJ45接口通过网线连接至广域网)。处理器60可以调用存储器61中的逻辑指令,以执行上述实施例中的应用于机顶盒的方法。
此外,上述的存储器61中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器61作为一种计算机可读存储介质,可用于存储软件程序、计算机可 执行程序,如本公开实施例中应用于机顶盒的方法对应的程序指令或模块。处理器60通过运行存储在存储器61中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的应用于机顶盒的家庭物联网的实现方法。
存储器61可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器61可以包括高速随机存取存储器,还可以包括非易失性存储器。
实施例五
本公开实施例提供了物联网服务器的硬件结构示意图。参见图13,该物联网服务器包括:
至少一个处理器(processor)70,图13中以一个处理器70为例;和存储器(memory)71,还可以包括通信接口(Communications Interface)72和总线73。其中,处理器70、通信接口72、存储器71可以通过总线73完成相互间的通信。通信接口72可以用于信息传输。通信接口72可以包括物联网服务器中的用户接口和机顶盒接口,其中,用户接口可以是有线传输接口(如,局域网用户通过RJ45接口和网线将指令传输到物联网服务器);机顶盒接口可以是有线传输接口(如,机顶盒的RJ45接口通过网线连接至物联网服务器)。处理器70可以调用存储器71中的逻辑指令,以执行上述实施例中的应用于物联网服务器的方法。
此外,上述的存储器71中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器71作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中应用于物联网服务器的方法对应的程序指令或模块。处理器70通过运行存储在存储器71中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的应用于物联网服务器的家庭物联网的实现方法。
存储器71可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器71可以包括高速随机存取存储器,还可以包括非易失性存储器。
本公开的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(Read-only Memory,ROM)、随机存储存储器(Random-Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开实施例的技术方案本质上可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM或RAM、磁碟、光盘)中,包括一个或多个指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开每个实施例所述的方法。
工业实用性
本公开实施例提供的家庭物联网的实现方法及机顶盒、物联网服务器,简单、方便地实现家庭物联网到互联网的对接要求,改善用户体验。

Claims (26)

  1. 一种家庭物联网的实现方法,应用于机顶盒,包括:
    机顶盒通过家庭内部局域网将网元设备接入家庭物联网,并作为所述家庭物联网的边缘路由器接入广域网;以及
    所述机顶盒获取所述网元设备的状态信息和数据中的至少一种,将获取的所述网元设备的状态信息和数据中的至少一种上传给所述广域网中的物联网服务器。
  2. 如权利要求1所述的方法,其中:
    所述机顶盒通过家庭内部局域网将网元设备接入家庭物联网,包括:
    所述机顶盒上电后,进入监听状态;
    所述机顶盒如收到所述网元设备通过家庭内部局域网发送的携带该网元设备属性的广播消息,则向所述网元设备发送应答消息,在所述应答消息中携带所述机顶盒作为边缘路由器的地址信息;以及
    所述机顶盒如收到所述网元设备发送的注册请求消息,根据所述注册请求消息中携带的设备类型信息,将所述网元设备注册到设备管理系统,并向所述网元设备发送携带注册结果的响应消息。
  3. 如权利要求1或2所述的方法,其中:
    所述机顶盒获取所述网元设备的状态信息,包括:
    所述机顶盒向已注册网元设备发送在线状态查询消息;以及
    所述机顶盒接收已注册网元设备返回的在线应答消息,将已注册网元设备中返回在线应答消息的网元设备的在线状态置为在线,未返回在线应答消息的网元设备的在线状态置为离线。
  4. 如权利要求3所述的方法,其中:
    所述机顶盒获取所述网元设备的状态信息,还包括:
    所述机顶盒向在线网元设备发送探测请求消息,接收所述在线网元设备返回的探测响应消息;以及
    所述机顶盒从所述探测响应消息中获取所述在线网元设备对设备状态的探测结果,或者根据所述探测请求消息和探测响应消息的参数进行计算,获取对所述机顶盒和在线网元设备之间信道状态的探测结果。
  5. 如权利要求1或2或4所述的方法,其中:
    所述机顶盒获取所述网元设备的状态信息,包括以下一种或多种情况:
    所述机顶盒周期性地获取所述网元设备的状态信息;
    所述机顶盒根据用户指令,获取所述网元设备的状态信息并展示给用户;以及
    所述机顶盒根据所述物联网服务器的指令,获取所述网元设备的状态信息;
    所述机顶盒获取所述网元设备的状态信息后,所述方法还包括以下步骤中的至少一个:
    将所述状态信息保存在本地,
    将所述状态信息上传给所述物联网服务器。
  6. 如权利要求1所述的方法,其中:
    所述机顶盒获取所述网元设备的数据,将所述网元设备的数据上传给所述广域网中的物联网服务器,包括:
    所述机顶盒根据配置信息或所述物联网服务器的指令,确定需获取摄像机的视频数据且所述摄像机在线时,向所述摄像机发送数据上传请求消息;以及
    所述机顶盒接收所述摄像机上传的视频数据后保存在本地,或者将所述视频数据上传到所述物联网服务器保存。
  7. 如权利要求1所述的方法,所述方法还包括:
    所述机顶盒和物联网服务器之间采用统一格式的数据包传递信息;
    所述机顶盒接收到所述网元设备发送的家庭内部局域网规定格式的数据包后,将所述网元设备发送的家庭内部局域网规定格式的数据包转换为所述统一格式的数据包,向所述物联网服务器发送;以及
    所述机顶盒接收到所述物联网服务器发送的所述统一格式的数据包后,将所述统一格式的数据包转换为目标网元设备所在的家庭内部局域网规定格式的数据包,向所述目标网元设备发送。
  8. 如权利要求7所述的方法,其中:
    所述统一格式的数据包包括以下一种或多种字段:
    类型字段;
    负载长度字段;
    操作码字段;
    报文序号字段;
    报文发送时间字段;以及
    填充字段。
  9. 如权利要求1-4、6-8中任一所述的方法,其中:
    所述物联网服务器采用网路协定电视IPTV系统中具有电子节目指南EPG和内容分发网络CDN中的至少一种功能的服务器实现。
  10. 一种家庭物联网的实现方法,应用于物联网服务器,包括:
    物联网服务器接收用户指令,将针对目标网元设备的用户指令通过机顶盒发送给所述目标网元设备;以及
    所述物联网服务器接收所述机顶盒上传的所述目标网元设备的信息和数据中的至少一种,将接收的所述目标网元设备的信息和数据中的至少一种提供给 用户。
  11. 如权利要求10所述的方法,其中:
    所述物联网服务器接收所述机顶盒上传的所述目标网元设备的信息,包括:接收所述机顶盒上传的所述目标网元设备对用户指令的响应消息;
    所述物联网服务器将接收的所述目标网元设备的数据提供给用户,包括:
    接收到用户查看历史视频数据的指令时,如保存有所述历史视频数据,将所述历史视频数据发送给用户;以及
    接收到用户查看实时视频数据的指令时,将所述机顶盒正在上传的所述视频数据发送给用户,或通过所述机顶盒向目标摄像机发送上传视频数据的指令,接收所述机顶盒上传的所述目标摄像机的视频数据并发送给用户。
  12. 如权利要求10所述的方法,所述方法还包括:
    所述物联网服务器为用户提供访问所述家庭物联网的入口,通过广域网建立与用户的连接,对用户的身份验校通过后,允许用户登录到所述家庭物联网的管理界面。
  13. 如权利要求10-12中任一所述的方法,其中:
    所述物联网服务器采用IPTV系统中具有电子节目指南EPG和内容分发网络CDN中至少一种功能的服务器实现。
  14. 一种机顶盒,所述机顶盒作为家庭物联网的边缘路由器,包括:
    外部接口,设置为实现机顶盒与广域网中的物联网服务器之间的通信;
    内部接口,设置为通过家庭内部局域网实现机顶盒与家庭物联网的网元设备之间的通信;
    接入模块,设置为通过家庭内部局域网将网元设备接入所述家庭物联网;
    采集模块,设置为获取所述网元设备的状态信息和数据中的至少一种;以 及
    收发模块,设置为向网元设备下发指令,及将所述网元设备的状态信息和数据中的至少一种上传给所述广域网中的物联网服务器。
  15. 如权利要求14所述的机顶盒,其中:
    所述接入模块包括:
    监听单元,设置为在上电后进入监听状态;
    应答单元,设置为在收到所述网元设备通过家庭内部局域网发送的携带该网元设备属性的广播消息后,向所述网元设备发送应答消息,在所述应答消息中携带所述机顶盒作为边缘路由器的地址信息;以及
    注册单元,设置为在收到所述网元设备发送的注册请求消息后,根据所述注册请求消息中携带的设备类型信息,将所述网元设备注册到设备管理系统,并向所述网元设备发送携带注册结果的响应消息。
  16. 如权利要求14或15所述的机顶盒,其中:
    所述采集模块包括:
    状态查询单元,设置为向已注册网元设备发送在线状态查询消息;以及
    状态设置单元,设置为接收已注册网元设备返回的在线应答消息,将已注册网元设备中返回在线应答消息的网元设备的在线状态置为在线,未返回在线应答消息的网元设备的在线状态置为离线。
  17. 如权利要求16所述的机顶盒,其中:
    所述采集模块还包括:
    探测请求单元,设置为向在线网元设备发送探测请求消息,接收所述在线网元设备返回的探测响应消息;以及
    探测处理单元,设置为从所述探测响应消息中获取所述在线网元设备对设 备状态的探测结果,或者根据所述探测请求消息和探测响应消息的参数进行计算,获取对所述机顶盒和在线网元设备之间信道状态的探测结果。
  18. 如权利要求14-17任一所述的机顶盒,其中:
    所述采集模块获取所述网元设备的状态信息,包括以下一种或多种情况:
    周期性地获取所述网元设备的状态信息;
    根据用户指令,获取所述网元设备的状态信息并展示给用户;以及
    根据所述物联网服务器的指令,获取所述网元设备的状态信息;
    所述采集模块获取所述网元设备的状态信息后,还包括以下步骤中的至少一个:
    将所述状态信息保存在本地,
    将所述状态信息上传给所述物联网服务器。
  19. 如权利要求14所述的机顶盒,其中:
    所述采集模块包括:
    数据请求单元,设置为根据配置信息或所述物联网服务器的指令,确定需获取摄像机的视频数据且所述摄像机在线时,向所述摄像机发送数据上传请求消息;以及
    数据处理单元,设置为接收所述摄像机上传的视频数据后保存在本地,或者将所述视频数据上传到所述物联网服务器保存。
  20. 如权利要求14所述的机顶盒,所述机顶盒还包括:
    格式转换模块,设置为在接收到所述网元设备发送的家庭内部局域网规定格式的数据包后,将所述网元设备发送的家庭内部局域网规定格式的数据包转换为所述统一格式的数据包,向所述物联网服务器发送;及接收到所述物联网服务器发送的所述统一格式的数据包后,将所述统一格式的数据包转换为目标 网元设备所在家庭内部局域网规定格式的数据包,向所述目标网元设备发送。
  21. 如权利要求20所述的机顶盒,其中:
    所述统一格式的数据包包括以下一种或多种字段:
    类型字段;
    负载长度字段;
    操作码字段;
    报文序号字段;
    报文发送时间字段;以及
    填充字段。
  22. 一种物联网服务器,所述物联网服务器设置在广域网中并与机顶盒连接,包括:
    用户接口模块,设置为接收用户指令,及将所述目标网元设备的信息和数据中的至少一种提供给用户;
    机顶盒接口模块,设置为将所述用户接口模块接收的针对目标网元设备的用户指令通过所述机顶盒发送给目标网元设备,及接收所述机顶盒上传的所述目标网元设备的信息和数据中的至少一种。
  23. 如权利要求22所述的物联网服务器,其中:
    所述用户接口模块包括:
    信息提供单元,设置为将所述目标网元设备的信息提供给用户,所述目标网元设备的信息包括所述目标网元设备对用户指令的响应消息;
    第一数据提供单元,设置为接收到用户查看历史视频数据的指令后,如保存有所述历史视频数据,将所述历史视频数据发送给用户;以及
    第二数据提供单元,设置为接收到用户查看实时视频数据的指令后,将所 述机顶盒正在上传的所述视频数据发送给用户,或者通过所述机顶盒接口模块向目标摄像机发送上传视频数据的指令,将所述机顶盒接口模块接收的所述目标摄像机的视频数据发送给用户。
  24. 如权利要求23所述的物联网服务器,其中:
    所述用户接口模块还包括:
    登录管理单元,设置为为用户提供访问所述家庭物联网的入口,通过广域网建立与用户的连接,对用户的身份验校通过后,允许用户登录到所述家庭物联网的管理界面。
  25. 如权利要求22-24任一所述的物联网服务器,其中:
    所述物联网服务器采用IPTV系统中具有电子节目指南EPG和内容分发网络CDN中至少一种功能的服务器实现。
  26. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-13中任一项的方法。
PCT/CN2016/106014 2015-12-08 2016-11-16 家庭物联网的实现方法及机顶盒、物联网服务器 WO2017097093A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510897381.2 2015-12-08
CN201510897381.2A CN106856443A (zh) 2015-12-08 2015-12-08 家庭物联网的实现方法及机顶盒、物联网服务器

Publications (1)

Publication Number Publication Date
WO2017097093A1 true WO2017097093A1 (zh) 2017-06-15

Family

ID=59013704

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/106014 WO2017097093A1 (zh) 2015-12-08 2016-11-16 家庭物联网的实现方法及机顶盒、物联网服务器

Country Status (2)

Country Link
CN (1) CN106856443A (zh)
WO (1) WO2017097093A1 (zh)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049128A (zh) * 2019-04-19 2019-07-23 欧普照明股份有限公司 基于物联网的户外照明的控制系统
CN110515306A (zh) * 2019-06-29 2019-11-29 深圳市九洲电器有限公司 一种智能家居安全防护方法、装置及系统、融合平台
CN112235617A (zh) * 2020-09-25 2021-01-15 烽火通信科技股份有限公司 基于机顶盒WiFi实现EasyMesh的组网方法与机顶盒
CN112468567A (zh) * 2020-10-22 2021-03-09 杭州智尔科技有限公司 一种物联网数据传输方法、装置及电子设备
CN112787884A (zh) * 2020-12-28 2021-05-11 北京小米移动软件有限公司 组网方法及装置、存储介质
CN112788557A (zh) * 2019-11-08 2021-05-11 华为技术有限公司 一种物联网传感器管理方法以及无线访问点
CN113282176A (zh) * 2021-06-15 2021-08-20 华帝股份有限公司 智能家电的控制方法、装置、计算机设备及可读存储介质
CN113938865A (zh) * 2021-03-10 2022-01-14 海信(山东)冰箱有限公司 一种冰箱的终端管理系统及方法
CN114071652A (zh) * 2020-07-31 2022-02-18 青岛海信电子产业控股股份有限公司 一种绑定关系的建立方法以及相关设备
CN114500689A (zh) * 2022-01-30 2022-05-13 合肥美的电冰箱有限公司 总线通信方法、装置、通信板、家电设备及存储介质
CN114745259A (zh) * 2020-12-23 2022-07-12 深圳Tcl新技术有限公司 一种智能设备批量配网方法、设备及计算机可读存储介质
WO2023143554A1 (zh) * 2022-01-29 2023-08-03 维沃移动通信有限公司 Pin的组建方法及设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107318177A (zh) * 2017-07-25 2017-11-03 王勇 语音交互无线路由局域物联网
CN109429243B (zh) 2017-08-22 2022-12-27 阿里巴巴集团控股有限公司 监测配网设备的网络接入状态的方法、装置和系统
CN108289307B (zh) * 2017-12-27 2021-02-26 瑞斯康达科技发展股份有限公司 一种终端设备的数据处理方法及系统、设备
CN110300038A (zh) * 2018-03-23 2019-10-01 中兴通讯股份有限公司 一种智能家居设备的通信方法、线卡、设备及存储介质
CN112003686B (zh) * 2020-07-24 2022-03-29 新华三大数据技术有限公司 一种消息格式协商方法及装置
CN113038078A (zh) * 2021-03-08 2021-06-25 广东九联科技股份有限公司 一种支持onvif协议的机顶盒远程监控方法及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360010A (zh) * 2008-09-19 2009-02-04 中山大学 一种基于互联网服务站的机顶盒远程监控方法
US20110173668A1 (en) * 2010-01-08 2011-07-14 Embarq Holdings Company, Llc System and method for controlling home devices via a set top box
CN103326908A (zh) * 2013-06-24 2013-09-25 四川九洲电器集团有限责任公司 一种基于xmpp服务器的智能家居控制方法及装置
CN103605717A (zh) * 2013-11-14 2014-02-26 四川长虹电器股份有限公司 用户生活数据挖掘系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217618B (zh) * 2008-01-11 2010-09-15 南京图格科技发展有限公司 机顶盒工作状态实时采集方法
CN102611740B (zh) * 2012-02-02 2014-12-17 中山大学 一种基于机顶盒的网络同步视频系统及方法
CN104640237B (zh) * 2013-11-13 2018-09-14 中国电子科技集团公司第十五研究所 一种物联网系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360010A (zh) * 2008-09-19 2009-02-04 中山大学 一种基于互联网服务站的机顶盒远程监控方法
US20110173668A1 (en) * 2010-01-08 2011-07-14 Embarq Holdings Company, Llc System and method for controlling home devices via a set top box
CN103326908A (zh) * 2013-06-24 2013-09-25 四川九洲电器集团有限责任公司 一种基于xmpp服务器的智能家居控制方法及装置
CN103605717A (zh) * 2013-11-14 2014-02-26 四川长虹电器股份有限公司 用户生活数据挖掘系统

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049128A (zh) * 2019-04-19 2019-07-23 欧普照明股份有限公司 基于物联网的户外照明的控制系统
CN110515306A (zh) * 2019-06-29 2019-11-29 深圳市九洲电器有限公司 一种智能家居安全防护方法、装置及系统、融合平台
CN112788557A (zh) * 2019-11-08 2021-05-11 华为技术有限公司 一种物联网传感器管理方法以及无线访问点
CN112788557B (zh) * 2019-11-08 2022-11-18 华为技术有限公司 一种物联网传感器管理方法以及无线访问点
CN114071652A (zh) * 2020-07-31 2022-02-18 青岛海信电子产业控股股份有限公司 一种绑定关系的建立方法以及相关设备
CN114071652B (zh) * 2020-07-31 2024-04-30 海信集团控股股份有限公司 一种绑定关系的建立方法以及相关设备
CN112235617B (zh) * 2020-09-25 2022-07-08 烽火通信科技股份有限公司 基于机顶盒WiFi实现EasyMesh的组网方法与机顶盒
CN112235617A (zh) * 2020-09-25 2021-01-15 烽火通信科技股份有限公司 基于机顶盒WiFi实现EasyMesh的组网方法与机顶盒
CN112468567A (zh) * 2020-10-22 2021-03-09 杭州智尔科技有限公司 一种物联网数据传输方法、装置及电子设备
CN114745259A (zh) * 2020-12-23 2022-07-12 深圳Tcl新技术有限公司 一种智能设备批量配网方法、设备及计算机可读存储介质
CN114745259B (zh) * 2020-12-23 2024-02-06 深圳Tcl新技术有限公司 一种智能设备批量配网方法、设备及计算机可读存储介质
CN112787884A (zh) * 2020-12-28 2021-05-11 北京小米移动软件有限公司 组网方法及装置、存储介质
US11805468B2 (en) 2020-12-28 2023-10-31 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for networking
CN113938865A (zh) * 2021-03-10 2022-01-14 海信(山东)冰箱有限公司 一种冰箱的终端管理系统及方法
CN113282176B (zh) * 2021-06-15 2024-03-26 华帝股份有限公司 智能家电的控制方法、装置、计算机设备及可读存储介质
CN113282176A (zh) * 2021-06-15 2021-08-20 华帝股份有限公司 智能家电的控制方法、装置、计算机设备及可读存储介质
WO2023143554A1 (zh) * 2022-01-29 2023-08-03 维沃移动通信有限公司 Pin的组建方法及设备
CN114500689A (zh) * 2022-01-30 2022-05-13 合肥美的电冰箱有限公司 总线通信方法、装置、通信板、家电设备及存储介质
CN114500689B (zh) * 2022-01-30 2023-09-08 合肥美的电冰箱有限公司 总线通信方法、装置、通信板、家电设备及存储介质

Also Published As

Publication number Publication date
CN106856443A (zh) 2017-06-16

Similar Documents

Publication Publication Date Title
WO2017097093A1 (zh) 家庭物联网的实现方法及机顶盒、物联网服务器
AU2017272191B2 (en) Efficient communication for devices of a home network
US9596603B2 (en) Distributed bulk onboarding process
US10001759B2 (en) Method and apparatus for automatically generating an events dictionary in an internet of things (IOT) network
EP3713157B1 (en) Time variant data profile for a fabric network
US9628691B2 (en) Method and apparatus for identifying a physical IoT device
US9843886B2 (en) User interactive application enabled gateway
US9704113B2 (en) Method and apparatus for setting user preferences or device configuration
EP3145161B1 (en) Automatic wireless access network configuration synchronization method and apparatus
US20150339917A1 (en) Triggering commands on a target device in response to broadcasted event notifications
US20150071216A1 (en) Allowing mass re-onboarding of headless devices
US11221596B2 (en) Hub for managing networked household appliances
JP2023029838A (ja) 通信ネットワークにおける自動サービス登録
EP3563544B1 (en) Automatic device pairing
WO2015024349A1 (zh) 一种基于物联网标识服务的异构智能家电互通控制方法
CN103634657A (zh) 电视同步移动终端wifi连接设置的方法和装置
EP3906654A1 (en) Optimizing interaction between applications and devices in a communications network
CN113794996B (zh) 设备通信、设备控制方法、装置、电子设备和存储介质
EP2936891B1 (en) Method, control node, gateway and computer program for enabling communication with a newly detected device
WO2019120188A1 (zh) 一种自动切换通信方式的方法、终端及智能设备
Sakai et al. Virtual personal area network system for integrating pans with different standards and locations
Cohen et al. IEEE 1905.1: Convergent digital home networking
WO2020024303A1 (zh) 数据采集方法及装置

Legal Events

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

Ref document number: 16872285

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16872285

Country of ref document: EP

Kind code of ref document: A1