CN106658186B - The method for realizing the synchronous UI operation of smart television network switching - Google Patents

The method for realizing the synchronous UI operation of smart television network switching Download PDF

Info

Publication number
CN106658186B
CN106658186B CN201610961209.3A CN201610961209A CN106658186B CN 106658186 B CN106658186 B CN 106658186B CN 201610961209 A CN201610961209 A CN 201610961209A CN 106658186 B CN106658186 B CN 106658186B
Authority
CN
China
Prior art keywords
network
state
user
state machine
smart television
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610961209.3A
Other languages
Chinese (zh)
Other versions
CN106658186A (en
Inventor
范长昊
朱武星
刘军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610961209.3A priority Critical patent/CN106658186B/en
Publication of CN106658186A publication Critical patent/CN106658186A/en
Application granted granted Critical
Publication of CN106658186B publication Critical patent/CN106658186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local 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/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43632Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43637Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to smart television network settings technologies, and it discloses a kind of methods for realizing the synchronous UI operation of smart television network switching, solve the problems, such as exist by the way of blocking wait-for-response when handover network in traditional technology.In the present invention, the state of bottom trawl performance is read according to linux network protocol stack by building carrier state machine.Trawl performance is in the link layer of linux network protocol stack.User is operated by UI, is called the interface of linux network protocol stack application layer, is read the network-driven state of link layer, and then state machine makes correctly response and display to the operation of user.This method ensure that bottom network interface card normally can be enabled or be closed, while user UI operation smooth can not block, and smart television user is made to obtain better user experience.

Description

The method for realizing the synchronous UI operation of smart television network switching
Technical field
The present invention relates to smart television network settings technologies, and in particular to a kind of realization smart television network switching synchronization UI The method of operation.
Background technique
Modern smart television connection internet function has been an important functional component.When having on smart television When two kinds of network accesses of gauze network and wireless network all provide, user is needed to select to switch wired or nothing when network settings The network of line mode networks.The process of switching is actually that bottom enables wired network adapter, closes wireless network card, or enables Wireless network card, the process for closing wired network adapter.Enabled or closing wifi wireless network card needs certain response time, if net The once-through operation response of card has not been completed, and goes operation enabled again immediately or closes, it is possible to system be caused to block crash.
Conventional way is to block wait-for-response when switching in the prior art, i.e., once-through operation is just in handoff procedure Middle user cannot operate switching again, be unable to the UI operation of continuous response user.
Summary of the invention
A kind of smart television network switching synchronous UI operation is realized the technical problems to be solved by the present invention are: providing Method solves the problems, such as exist by the way of blocking wait-for-response when handover network in traditional technology.
The technical solution adopted by the present invention to solve the technical problems is:
The method for realizing the synchronous UI operation of smart television network switching, comprising the following steps:
A, state machine is constructed, and input when user carries out network switching is received and saved by state machine;
B, system changes the interface UI, the network type that display user is selecting;
C, system judges whether current bottom network interface card corresponds to the network type that user currently selects, if it is not, then entering net Network switching flow: the network state event sniffer of starting state machine monitors network state, changes when listening to network state After event, a kind of corresponding state of setting state machine;
D, system application layer program passes through the state of timer polling status machine, inquires state machine always and changes into completion It is enabled/complete closed state until, then system calls lower layer's network interface function handover network to save to current state machine use The selected network type in family;
E, when state machine state is to complete enabled/completion closed state, judge whether current network is newest defeated with user The network type entered is identical, if identical, change UI and is shown as the currently enabled network type completed and Off Timer, no Then, it continues to execute through automatic regular polling state machine state come the operation of handover network type.
As advanced optimizing, the state machine is the class that four kinds of states are stored with int type variable " state ", Four kinds of states include: to complete enabled state, enabled state is being arranged, is completing closed state, closed state is being arranged.
As advanced optimizing, in step A, the input of user is saved by the mode bit of state machine, when user is having Line and it is wireless between when selecting switching, the mode bit inside state machine is inputted with user to be changed.
As advanced optimizing, in step C, the network state event sniffer of state machine according to linux network protocol stack, The state for reading bottom trawl performance, to monitor network state.
As advanced optimizing, the network state event sniffer is one of machine class for receiving network event Member function, building when state machine to operating system register, when bottom network interface card driving condition change and to upper layer send thing After part, which can be called automatically by operating system.
The beneficial effects of the present invention are: waiting bottom-layer network state switching method relative to common obstruction, the present invention is protected Having demonstrate,proved bottom network interface card normally can enable or close, while user UI operation smooth can not block, and make smart television user Better user experience is obtained, hardware is adaptable, and exploitativeness is strong.
Detailed description of the invention
Fig. 1 is the state transition diagram of state machine;
Fig. 2 is the method flow diagram for realizing the synchronous UI operation of smart television network switching.
Specific embodiment
The present invention is intended to provide a kind of method for realizing the synchronous UI operation of smart television network switching, solves in traditional technology When handover network by the way of blocking wait-for-response there are the problem of.In the present invention, by constructing carrier state machine foundation Linux network protocol stack reads the state of bottom trawl performance.Trawl performance is in the link layer of linux network protocol stack.With Family is operated by UI, is called the interface of linux network protocol stack application layer, is read the network-driven state of link layer, then shape State machine makes correctly response and display to the operation of user.This method ensure that bottom network interface card normally can be enabled or be closed It closes, while user UI operation smooth can not block, and smart television user is made to obtain better user experience.
In specific implementation, the state machine constructed in the present invention is one and stores four kinds of shapes with int type variable " state " (enabled completion is enabled, enabled, disabled completion closing is being arranged in enabling, pass is being arranged in disabling for state Close) class, constructed in system initialization, initial state state be enabled.Switching such as Fig. 1 institute of four kinds of states of state machine Show, is decided by bottom network interface card driving condition.When bottom layer driving state changes, it is sent to by the event that a state changes Upper layer.State machine monitors network state by event sniffer.After listening to network state change event, state machine is set State is corresponding a kind of in four kinds of states.Event sniffer is one of machine class for receiving member's letter of network event Number is registered in state machine building to operating system, and after bottom state changes and sends event, which can be by operating system It is automatic to call.
System makes respective response according to the different conditions of state machine: 1, if state machine be in be arranged it is enabled/just In setting closed state, application program launching timer --- timer is a timer class to system registry, registers this The function for specifying timing time to execute after when timer.Timer recycles timing, and each timing time executes after to be referred to Fixed function.The polling status machine state in the execution function of timer, being polled to state machine always, to change into completion enabled/complete Until closed state, system calls lower layer's network interface function, and the user that handover network to current state machine saves selects net Network type;2, if state machine is in complete that enabled/closed state is arranged, immediately begins to the net that handover network is selected to user Network type.Network switching calls the interface of linux network protocol stack application layer, acts on the network-driven in link layer.
As shown in Fig. 2, the method for realizing the synchronous UI operation of smart television network switching in the present invention, including following implemented Step:
(1) by state machine receive and save user carry out network switching when input, user when network type is arranged, The state that user inputs is stored in the static static variable " NetType " that one is opened up in advance.Then system changes UI, The network type (wire/wireless) that display user is selecting.
(2) system judges whether current bottom network interface card corresponds to the network type that user currently selects, if it is not, then entering net Network switching flow: the network state event sniffer of starting state machine monitors network state, changes when listening to network state After event, a kind of corresponding state of setting state machine;
(3) system application layer program passes through the state of timer polling status machine, inquires state machine always and has changed into Until at enabled/completion closed state, then system calls lower layer's network interface function handover network to save to current state machine The selected network type of user;
(4) when state machine state be complete setting it is enabled/closed state when, judge current network whether the user with preservation The network type selection of input is identical.If identical, change UI and be shown as the currently enabled network type (wired/nothing completed Line), and Off Timer.Otherwise it returns to step 3 and continues to execute operation by state machine handover network type.
Embodiment 1:
By taking user is switched to WIFI wireless network from cable network as an example comprising following implementation steps:
(1) receiving user input selection network is WIFI, and preservation NetType is WIFI.
(2) change UI and show that current network is WIFI, prompt enabling WIFI.
(3) current state is judged for wifi_disabled, starts handover network to wifi.And starts timer poll and work as Preceding network state.
It (4) is wifi_enabled when inquiring current network state, UI shows that WIFI is enabled and finishes, Off Timer.
Embodiment 2:
If user is switched to WIFI wireless network from cable network, bottom this time switches when not completing also, Yong Huji Continuous operation switches back into cable network, then it includes following implementation steps:
(1) receiving user input selection network is WIFI, saves network state WIFI.
(2) change UI and show that current network is WIFI, prompt enabling WIFI.
(3) current state is judged for wifi_disabled, starts handover network to wifi.And starts timer poll and work as Preceding network state.
(4) user's input is switched to cable network, save network state be it is wired, change UI and show that current network is to have Line prompts enabling cable network.
(5) it is network-like to continue starting timer poll waiting if state is wifi_enabling for polled network state State conversion.When state is converted to wifi_enabled, compares current network state and user inputs the state saved, compare hair The network of existing current network and user input selection is not identical.
(6) starting is switched to cable network, and starts timer poll current network state.
It (7) is wifi_disabled when inquiring current network state, UI shows that cable network is enabled and finish that it is fixed to close When device.

Claims (4)

1. the method for realizing the synchronous UI operation of smart television network switching, which comprises the following steps:
A, state machine is constructed, and input when user carries out network switching is received and saved by state machine;
B, system changes the interface UI, the network type that display user is selecting;
C, system judges whether current bottom network interface card corresponds to the network type that user currently selects, if it is not, then cutting into network Change of current journey: the network state event sniffer of starting state machine monitors network state, changes event when listening to network state Afterwards, the corresponding a kind of state of setting state machine;
D, system application layer program is by the state of timer polling status machine, and inquiring state machine always and changing into completion makes Until energy/completion closed state, then system calls the user that saves to current state machine of lower layer's network interface function handover network Selected network type;
E, when state machine state is to complete enabled/completion closed state, judge what whether current network was newly entered with user Network type is identical, if identical, change UI and is shown as the currently enabled network type completed and Off Timer, otherwise, It continues to execute through automatic regular polling state machine state come the operation of handover network type;
In step C, the network state event sniffer of state machine reads bottom trawl performance according to linux network protocol stack State, to monitor network state.
2. realizing the method for the synchronous UI operation of smart television network switching as described in claim 1, which is characterized in that the shape State machine is the class that four kinds of states are stored with int type variable " state ", four kinds of states include: complete enabled state, Enabled state is being set, is completing closed state, closed state is being set.
3. realizing the method for the synchronous UI operation of smart television network switching as described in claim 1, which is characterized in that step A In, the input of user is saved by the mode bit of state machine, when user is when wired and wireless selection switches, in state machine The mode bit in portion is inputted with user to be changed.
4. realizing the method for the synchronous UI operation of smart television network switching as described in claim 1, which is characterized in that the net Network state event monitor is one of machine class for receiving the member function of network event, and in building, state machine is to behaviour Make system registry, when bottom network interface card driving condition changes and after to upper layer transmission event, which can be adjusted automatically by operating system With.
CN201610961209.3A 2016-10-27 2016-10-27 The method for realizing the synchronous UI operation of smart television network switching Active CN106658186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610961209.3A CN106658186B (en) 2016-10-27 2016-10-27 The method for realizing the synchronous UI operation of smart television network switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610961209.3A CN106658186B (en) 2016-10-27 2016-10-27 The method for realizing the synchronous UI operation of smart television network switching

Publications (2)

Publication Number Publication Date
CN106658186A CN106658186A (en) 2017-05-10
CN106658186B true CN106658186B (en) 2019-08-13

Family

ID=58820573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610961209.3A Active CN106658186B (en) 2016-10-27 2016-10-27 The method for realizing the synchronous UI operation of smart television network switching

Country Status (1)

Country Link
CN (1) CN106658186B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332971B (en) * 2017-05-19 2020-08-28 海信视像科技股份有限公司 Method and device for controlling wireless display of intelligent display equipment
CN108924652B (en) * 2018-07-02 2020-04-28 四川长虹电器股份有限公司 Method for detecting television signal change

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812609A (en) * 2005-01-26 2006-08-02 乐金电子(中国)研究开发中心有限公司 Multi-function mobile telephone and network state setting method thereof
CN101138256A (en) * 2005-06-06 2008-03-05 中兴通讯股份有限公司 Cooperative method for protection recovery between layered network in automatic exchange optical network
CN102638487A (en) * 2011-03-02 2012-08-15 中国科学院地质与地球物理研究所 High-performance data transmission method for large telemetric seismic instrument
CN105246169A (en) * 2015-09-11 2016-01-13 深圳创锐思科技有限公司 Wireless connection method, wireless connection device and wireless terminal
CN105578505A (en) * 2015-12-14 2016-05-11 美的集团股份有限公司 State management method of wireless communication module and wireless communication module
CN105744367A (en) * 2016-03-08 2016-07-06 四川长虹电器股份有限公司 Rapid wireless networking method on Android TV

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664851B2 (en) * 2006-07-14 2010-02-16 At&T Intellectual Property, I, L.P. Systems, methods, and computer products for an event-driven network service switching utility

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812609A (en) * 2005-01-26 2006-08-02 乐金电子(中国)研究开发中心有限公司 Multi-function mobile telephone and network state setting method thereof
CN101138256A (en) * 2005-06-06 2008-03-05 中兴通讯股份有限公司 Cooperative method for protection recovery between layered network in automatic exchange optical network
CN102638487A (en) * 2011-03-02 2012-08-15 中国科学院地质与地球物理研究所 High-performance data transmission method for large telemetric seismic instrument
CN105246169A (en) * 2015-09-11 2016-01-13 深圳创锐思科技有限公司 Wireless connection method, wireless connection device and wireless terminal
CN105578505A (en) * 2015-12-14 2016-05-11 美的集团股份有限公司 State management method of wireless communication module and wireless communication module
CN105744367A (en) * 2016-03-08 2016-07-06 四川长虹电器股份有限公司 Rapid wireless networking method on Android TV

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TD_SCDMA_GSM网络互切换的优化研究;潘超;《广东通信技术》;20110915;46-49
依托站点状态的两级轮询控制系统时延特性分析;官铮;《自动化学报》;20160722;第42卷(第8期);1207-1213

Also Published As

Publication number Publication date
CN106658186A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN104539504B (en) A kind of event triggering method and device
CN104853373B (en) A kind of Working mode switching method and device of wireless module
CN107484217A (en) Method, mobile terminal and the storage medium of switching registration IP multimedia subsystem
CN106658186B (en) The method for realizing the synchronous UI operation of smart television network switching
US20170199501A1 (en) Supporting Virtually Simultaneous Operation of Dual Wireless Protocols in a Single Device
CN105828402B (en) A kind of blind reorientation method and core net, base station
CN105210421B (en) Method for operating terminal in multi-carrier systems
CN104380818B (en) The method, apparatus and wireless telecom equipment made a response to paging message
CN112911637A (en) Data traffic management method and device
CN106376027A (en) Method for processing abnormity about access of mobile phone to network
US20150351034A1 (en) Wireless Access Point Control Method, Related Device, and System
CN105992294A (en) User terminal, method and device for processing circuit switch services under LTE (long term evolution) system
TWI551162B (en) A method, system, and device for reporting mobile information
KR101638275B1 (en) Communication processing method, device, program, and recording medium
CN111065111B (en) Method and device for concurrently reporting multiple measurement events
CN105025373B (en) Television set, tele-control system and its control method
CN110679178B (en) Cell reselection process assistance and apparatus therefor
WO2018019058A1 (en) Wireless access point switching method and apparatus, and terminal
CN101466130A (en) Control method and device for network connection
CN105578505A (en) State management method of wireless communication module and wireless communication module
WO2023011538A1 (en) Information reporting method, terminal and network side device
CN107465995B (en) Communication mode switching method and intelligent password equipment
CN105792241A (en) Automatic test system and method and mobile terminal
CN106210871B (en) Network switching system and method for smart television
CN105827786B (en) The multimode mutual operation method and device of double-standby terminal

Legal Events

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