CN105611362B - The method for controlling set-top box by intelligent terminal - Google Patents
The method for controlling set-top box by intelligent terminal Download PDFInfo
- Publication number
- CN105611362B CN105611362B CN201610091303.8A CN201610091303A CN105611362B CN 105611362 B CN105611362 B CN 105611362B CN 201610091303 A CN201610091303 A CN 201610091303A CN 105611362 B CN105611362 B CN 105611362B
- Authority
- CN
- China
- Prior art keywords
- top box
- broadcast message
- intelligent terminal
- udp broadcast
- status indicator
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 claims description 4
- 239000000284 extract Substances 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
- H04N21/41265—The peripheral being portable, e.g. PDAs or mobile phones having a remote control device for bidirectional communication between the remote control device and client device
Abstract
The present invention relates to set-top box technique fields, provide a kind of method for controlling set-top box by intelligent terminal, comprising: set-top box is sent out the udp broadcast message of MAC Address and status indicator including set-top box;The status indicator of set-top box is set slave mode by intelligent terminal, and intelligent terminal sends the udp broadcast message including the MAC Address of top box and the status indicator of updated set-top box to set-top box;If whether the MAC Address in the udp broadcast message that set-top box receives is identical as the MAC Address of its own, the udp broadcast message of the status indicator including set-top box is sent to intelligent terminal;The udp broadcast message that intelligent terminal receives only includes the status indicator of the status indicator of heading information and set-top box and set-top box when being slave mode, then it represents that is successfully established control between intelligent terminal and set-top box and links.Intelligent terminal in the present invention convenient and efficient can control set-top box.
Description
Technical field
The invention belongs to set-top box technique field, in particular to a kind of method that set-top box is controlled by intelligent terminal.
Background technique
With the fast development of intelligent terminal technology, smart electronics product has become in for people's lives indivisible one
Divide, such as the electronic products such as tablet computer, smart phone, these electronic products are providing the same of convenient experience for people's lives
When, also change people's lives habit.Currently, set-top box generally use traditional remote controler come to set-top box carry out operation and
Control has many limitations in operation, lacks flexibility, can only one-way communication, Function Extension can not be carried out.
In view of the above deficiencies, occur some methods with mobile phone control set-top box in the prior art, wherein set-top box and hand
ICP/IP protocol is used between machine, but ICP/IP protocol data traffic volume is larger, if mobile phone operates continuously, when set-top box is in numerous
When busy condition, it is easy delay, influences user experience.
Summary of the invention
[technical problems to be solved]
The object of the present invention is to provide a kind of methods for controlling set-top box by intelligent terminal, conveniently to machine top
Box is controlled.
[technical solution]
The present invention is achieved by the following technical solutions.
The present invention relates to a kind of methods for controlling set-top box by intelligent terminal, comprising steps of
A, intelligent terminal is connect in same local area network with set-top box, is based between the intelligent terminal and set-top box
Udp protocol communication;
B, the listening port of intelligent terminal and the listening port of set-top box are preset, the status indicator of set-top box is initialized
For uncontrolled state, the status indicator of the set-top box includes slave mode and uncontrolled state;
C, start listening port after set-top-box opening, be sent out the first udp broadcast message, the first udp broadcast report
Text includes heading information and the first set top box information, and first set top box information includes MAC Address and the machine top of set-top box
The status indicator of box;
D, intelligent terminal starts listening port, after intelligent terminal receives the first udp broadcast message of set-top box transmission,
The MAC Address of the set-top box in the first udp broadcast message and the status indicator of set-top box are extracted, with saving the MAC of set-top box
Location simultaneously sets slave mode for the status indicator of set-top box, and intelligent terminal sends the second udp broadcast message to set-top box, described
Second udp broadcast message includes heading information and the second set top box information, and second set top box information includes intelligent terminal
The status indicator of the MAC Address of the set-top box of preservation and updated set-top box;
E, it after set-top box receives the second udp broadcast message that intelligent terminal is sent, extracts in the second udp broadcast message
MAC Address and set-top box status indicator, by the MAC Address of MAC Address and current set top box in the second udp broadcast message
It is compared, the status indicator of the set-top box in the second udp broadcast message is if the same assigned to current set top box, currently
Set-top box sends third udp broadcast message to intelligent terminal, and the third udp broadcast message includes heading information and third machine
Top box information, the third set top box information include the status indicator of set-top box;
F, after intelligent terminal is received again by the third udp broadcast message of set-top box, if third udp broadcast message only includes
When the status indicator of the status indicator of heading information and set-top box and set-top box is slave mode, intelligent terminal is sent out to set-top box
The 4th udp broadcast message is sent, the 4th udp broadcast message includes head information and the 4th set top box information, the 4th machine top
Box information includes the status indicator and key value of set-top box;
G, after set-top box receives the 4th udp broadcast message, if the machine in the 4th udp broadcast message after heading information
The status indicator of top box is slave mode, then by the key value in the 4th udp broadcast message change into that set-top box can identify by
Key control code calls the interface function of set-top box functionality control to control set-top box by key control code.
As a preferred embodiment, the 4th udp broadcast message in the step F further include intelligent terminal whether
The return of Successful Operation set-top box identifies, and in the step G, after successfully controlling set-top box, set-top box is to intelligent end
End returns to the return mark of Successful Operation set-top box.
As another preferred embodiment, the intelligent terminal is smart phone or tablet computer.
[beneficial effect]
Technical solution proposed by the present invention has the advantages that
Set-top box in the present invention is based on udp protocol with intelligent terminal and communicates, according to the technical solution of the present invention, intelligence
Energy terminal convenient and efficient can control set-top box.
Detailed description of the invention
Fig. 1 is the schematic diagram for the method that set-top box is controlled by smart phone that the embodiment of the present invention one provides.
Fig. 2 is the udp broadcast message UDP (mac that the embodiment of the present invention one provides;Ctrl_status data structure)
Schematic diagram.
Fig. 3 is the udp broadcast message UDP (save_top_mac_buff that the embodiment of the present invention one provides;temp_
Ctrl_status data structure schematic diagram).
The data structure signal that Fig. 4 is the udp broadcast message UDP (ctrl_status) that the embodiment of the present invention one provides
Figure.
Fig. 5 is the udp broadcast message UDP (ctrl_status that the embodiment of the present invention one provides;Ctrl_key data)
Structural schematic diagram.
Specific embodiment
It to make the object, technical solutions and advantages of the present invention clearer, below will be to a specific embodiment of the invention
Carry out clear, complete description.
Fig. 1 is the schematic diagram for the method that set-top box is controlled by smart phone that the embodiment of the present invention one provides.Such as Fig. 1 institute
Show, this approach includes the following steps.
Smart phone: connecting by step (1) in same local area network with set-top box, wherein smart phone and set-top box it
Between based on udp protocol communicate.
Step (2): the listening port of smart phone and the listening port of set-top box are preset, set-top box is initialized
Status indicator ctrl_status is 0, and wherein the status indicator of set-top box includes slave mode and uncontrolled state, status indicator
Ctrl_status is that 0 state of a control for indicating set-top box state is uncontrolled state, and status indicator ctrl_status is 1
The state of a control for indicating set-top box state is slave mode.In addition, definition character type array ack_buffer [n] is for saving machine
The MAC Address of top box, wherein n=18.
Step (3): starting listening port after set-top-box opening, is sent out udp broadcast message UDP (mac;ctrl_
Status), wherein udp broadcast message UDP (mac;It ctrl_status) include heading information and set top box information, wherein machine
Top box information includes the MAC Address of set-top box and the status indicator ctrl_status of set-top box.Fig. 2 is udp broadcast message UDP
(mac;Ctrl_status data structure), as shown in Fig. 2, the information after heading information followed by is exactly set-top box
MAC Address and set-top box status indicator ctrl_status, such as set top box information 89:52:33:35:7a:130, wherein
89:52:33:35:7a:13 is the MAC Address of set-top box, and MAC Address is stored in the ack_ of array ack_buffer [] respectively
Buffer [0] ... ack_buffer [16], 0 is the value of set-top box status indicator ctrl_status.
Step (4): smart phone starts listening port, when smart phone receives the udp broadcast message of set-top box transmission
UDP(mac;Ctrl_status after), udp broadcast message UDP (mac is extracted;The MAC of set-top box in ctrl_status)
The MAC Address of set-top box is stored in array save_ctrl_mac_ by the status indicator ctrl_status of location and set-top box
The save_ctrl_mac_buffer [0] of buffer [], save_ctrl_mac_buffer [1] ... save_ctrl_mac_
In buffer [16], status indicator temp_ctrl_ is assigned to after the status indicator ctrl_status of set-top box is added 1
Status, then, smart phone send udp broadcast message UDP (save_top_mac_buff to set-top box;temp_ctrl_
Status), wherein udp broadcast message UDP (save_top_mac_buff;It temp_ctrl_status) include heading information
And set top box information, Fig. 3 are udp broadcast message UDP (save_top_mac_buff;Temp_ctrl_status data knot)
Structure, as shown in figure 3, set top box information includes the MAC Address for the set-top box that smart phone saves and the shape of updated set-top box
State mark.
Step (5): set-top box receives the udp broadcast message UDP (save_top_mac_buff of smart phone transmission;
Temp_ctrl_status after), udp broadcast message UDP (save_top_mac_buff is extracted;temp_ctrl_status)
In MAC Address and set-top box status indicator, by udp broadcast message UDP (save_top_mac_buff;temp_ctrl_
Status the MAC Address in) is compared with the MAC Address of current set top box, i.e., the ack_ by digital ack_buffer [0] ...
Buffer [16] and save_ctrl_mac_buffer [0], save_ctrl_mac_buffer [1] ... save_ctrl_mac_
Buffer [16] is compared one by one, if the same by udp broadcast message UDP (save_top_mac_buff;temp_
Ctrl_status the status indicator temp_ctrl_status of the set-top box in) is assigned to the status indicator of current set top box
Ctrl_status, current set top box send udp broadcast message UDP (ctrl_status) to smart phone, wherein udp broadcast report
Literary UDP (ctrl_status) includes heading information and set top box information, and Fig. 4 is udp broadcast message UDP (ctrl_status)
Data structure, as shown in figure 4, set top box information only includes the status indicator ctrl_status of set-top box.
Step (6): after smart phone is received again by the udp broadcast message UDP (ctrl_status) of set-top box, if
Udp broadcast message UDP (ctrl_status) only includes the status indicator ctrl_status and UDP of heading information and set-top box
When the status indicator ctrl_status of set-top box in broadcasting packet UDP (ctrl_status) is 1, smart phone and machine are indicated
Control link between top box, which is established, to be completed, and smart phone sends udp broadcast message UDP (ctrl_ to set-top box at this time
status;Ctrl_key), wherein udp broadcast message UDP (ctrl_status;It ctrl_key) include head information and set-top box letter
Breath, Fig. 5 are udp broadcast message UDP (ctrl_status;Ctrl_key data structure), as shown in figure 5, set top box information packet
Include the status indicator ctrl_status and key value ctrl_key of set-top box.
(7) set-top box receives udp broadcast message UDP (ctrl_status;Ctrl_key after), if the UDP received
Broadcasting packet UDP (ctrl_status;Ctrl_key the status indicator ctrl_status of the set-top box in) after heading information
It is 1, then by udp broadcast message UDP (ctrl_status;Ctrl_key the key value ctrl_key in) changes into set-top box can
The key control code of identification calls the interface function of set-top box functionality control to control set-top box by key control code,
If udp broadcast message UDP (ctrl_status;Ctrl_key the status indicator ctrl_ of the set-top box in) after heading information
Status is not 1, then set-top box no longer receives key value ctrl_key, and set-top box is not by the control of smart phone.
As can be seen from the above embodiments, the set-top box in the embodiment of the present invention and intelligent terminal are carried out based on udp protocol
Communication, technical solution through the embodiment of the present invention, intelligent terminal convenient and efficient can control set-top box.
It is to be appreciated that the embodiment of foregoing description is a part of the embodiments of the present invention, rather than whole embodiments, also not
It is limitation of the present invention.Based on the embodiment of the present invention, those of ordinary skill in the art are not making the creative labor premise
Under every other embodiment obtained, belong to protection scope of the present invention.
Claims (3)
1. a kind of method for controlling set-top box by intelligent terminal, it is characterised in that comprising steps of
A, intelligent terminal is connect in same local area network with set-top box, is assisted between the intelligent terminal and set-top box based on UDP
View communication;
B, the listening port of intelligent terminal and the listening port of set-top box are preset, it is non-for initializing the status indicator of set-top box
Slave mode, the status indicator of the set-top box include slave mode and uncontrolled state;
C, start listening port after set-top-box opening, be sent out the first udp broadcast message, the first udp broadcast message packet
Heading information and the first set top box information are included, first set top box information includes the MAC Address and set-top box of set-top box
Status indicator;
D, intelligent terminal starts listening port, after intelligent terminal receives the first udp broadcast message of set-top box transmission, extracts
The status indicator of the MAC Address of set-top box in first udp broadcast message and set-top box out, saves the MAC Address of set-top box simultaneously
Slave mode is set by the status indicator of set-top box, intelligent terminal sends the second udp broadcast message to set-top box, and described second
Udp broadcast message includes heading information and the second set top box information, and second set top box information includes that intelligent terminal saves
Set-top box MAC Address and updated set-top box status indicator;
E, it after set-top box receives the second udp broadcast message that intelligent terminal is sent, extracts in the second udp broadcast message
The status indicator of MAC Address and set-top box, by the MAC Address of MAC Address and current set top box in the second udp broadcast message into
Row compares, and the status indicator of the set-top box in the second udp broadcast message is if the same assigned to current set top box, current machine
Top box sends third udp broadcast message to intelligent terminal, and the third udp broadcast message includes heading information and third machine top
Box information, the third set top box information include the status indicator of set-top box;
F, after intelligent terminal is received again by the third udp broadcast message of set-top box, if third udp broadcast message only includes message
When the status indicator of the status indicator of head information and set-top box and set-top box is slave mode, intelligent terminal sends the to set-top box
Four udp broadcast messages, the 4th udp broadcast message include heading information and the 4th set top box information, the 4th machine top
Box information includes the status indicator and key value of set-top box;
G, after set-top box receives the 4th udp broadcast message, if set-top box in the 4th udp broadcast message after heading information
Status indicator is slave mode, then by the key value in the 4th udp broadcast message change into that set-top box can identify by key control
Code calls the interface function of set-top box functionality control to control set-top box by key control code.
2. the method according to claim 1 for controlling set-top box by intelligent terminal, it is characterised in that in the step F
4th udp broadcast message further includes that whether the return of Successful Operation set-top box identifies intelligent terminal, in the step G, works as success
After controlling set-top box, set-top box returns to the return mark of Successful Operation set-top box to intelligent terminal.
3. the method according to claim 1 for controlling set-top box by intelligent terminal, it is characterised in that the intelligent terminal
For smart phone or tablet computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610091303.8A CN105611362B (en) | 2016-02-18 | 2016-02-18 | The method for controlling set-top box by intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610091303.8A CN105611362B (en) | 2016-02-18 | 2016-02-18 | The method for controlling set-top box by intelligent terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105611362A CN105611362A (en) | 2016-05-25 |
CN105611362B true CN105611362B (en) | 2018-12-07 |
Family
ID=55990852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610091303.8A Active CN105611362B (en) | 2016-02-18 | 2016-02-18 | The method for controlling set-top box by intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105611362B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107659833A (en) * | 2016-07-26 | 2018-02-02 | 中兴通讯股份有限公司 | A kind of method and device of set top box operations |
CN106371340A (en) * | 2016-10-09 | 2017-02-01 | 深圳市美贝壳科技有限公司 | Method for mobile end to perform precise remote control operation on intelligent device |
CN106792621A (en) * | 2016-12-12 | 2017-05-31 | 东软集团股份有限公司 | The method of lookup equipment, apparatus and system |
CN108307367A (en) * | 2018-01-29 | 2018-07-20 | 上海康斐信息技术有限公司 | A kind of method and system after remote controler upgrading with set-top box Hui Lian |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024525A (en) * | 2012-12-27 | 2013-04-03 | 深圳市茁壮网络股份有限公司 | Set-top box and method of controlling the same by mobile terminal |
CN103513810A (en) * | 2012-06-29 | 2014-01-15 | 深圳市快播科技有限公司 | Method and system for controlling adapter with mobile terminal simulating mouse |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100888478B1 (en) * | 2007-03-08 | 2009-03-12 | 삼성전자주식회사 | Method of Processing Action, Method of Controlling Controlled Device, Controlled Device and Control Point |
CN103369385A (en) * | 2012-03-29 | 2013-10-23 | 东方有线网络有限公司 | Method for displaying set-top box program information and controlling set-top box based on intelligent terminal |
CN103281581B (en) * | 2013-05-31 | 2016-12-28 | 成都三零凯天通信实业有限公司 | By man-machine interactive system and the method for smart mobile phone Voice command IP Set Top Box |
CN103475907B (en) * | 2013-09-23 | 2017-01-25 | 珠海迈科智能科技股份有限公司 | Multi-screen control method and device |
CN104580289B (en) * | 2013-10-15 | 2018-03-23 | 中国移动通信集团公司 | A kind of methods, devices and systems being controlled to user equipment |
CN104812020B (en) * | 2015-03-25 | 2018-10-26 | 小米科技有限责任公司 | Control the method, apparatus and system of smart machine access network |
-
2016
- 2016-02-18 CN CN201610091303.8A patent/CN105611362B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103513810A (en) * | 2012-06-29 | 2014-01-15 | 深圳市快播科技有限公司 | Method and system for controlling adapter with mobile terminal simulating mouse |
CN103024525A (en) * | 2012-12-27 | 2013-04-03 | 深圳市茁壮网络股份有限公司 | Set-top box and method of controlling the same by mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105611362A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105611362B (en) | The method for controlling set-top box by intelligent terminal | |
WO2020207435A1 (en) | Measurement method, measurement configuration method, terminal and network device | |
CN108009136B (en) | Message correction method, mobile terminal and computer readable storage medium | |
WO2011153863A1 (en) | Method, terminal and system for displaying text in instant messaging system | |
CN103607779A (en) | Multi-screen coordination intelligent input system and realization method thereof | |
CN102724716A (en) | Long connection method based on Proxy server | |
CN107370810A (en) | Push channel system of selection, server and terminal device | |
CN106126109A (en) | Method for information display and terminal for chat application | |
CN103974110A (en) | Method for inputting characters into intelligent set top box through mobile terminal | |
CN111935517B (en) | Awakening method and device of intelligent set top box, electronic equipment and storage medium | |
CN107079393A (en) | The power consumption control method and wearable device of wearable device | |
CN204425656U (en) | A kind of radio roaming system based on WiFi | |
CN101587373B (en) | Method, system and device for displaying input information | |
CN106330397B (en) | method and device for realizing data interaction by ZigBee and Modbus RTU (remote terminal Unit) protocols | |
CN106130889B (en) | The processing method of timed reminding message in a kind of instant messaging | |
CN110149398B (en) | User management method for intelligent door lock of intelligent home | |
CN105099836A (en) | BLE intelligent node control method and system | |
CN101562798A (en) | Method and system for realizing network management by short messages | |
CN104618872B (en) | A kind of information processing method | |
CN108184221B (en) | Composite exchange method for zigbee node control data | |
CN109219081B (en) | Network optimization method after ZigBee coordinator is re-networked | |
CN101963903B (en) | Addressee showing method and addressee showing system | |
CN206993223U (en) | A kind of smart card administrative system and intelligent terminal based on intelligent terminal | |
WO2023015604A1 (en) | Communication methods and system, smart terminal, communication sub-devices, device, and medium | |
CN201360355Y (en) | Wireless transmission device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20160525 Assignee: Sichuan Changhong Xinwang Technology Co.,Ltd. Assignor: SICHUAN CHANGHONG ELECTRIC Co.,Ltd. Contract record no.: X2023980043949 Denomination of invention: Method of controlling set-top boxes through intelligent terminals Granted publication date: 20181207 License type: Common License Record date: 20231030 |
|
EE01 | Entry into force of recordation of patent licensing contract |