| ARRIS Enterprises, Inc. Confidential Information |
Network ServiceThe network service facilitates network access for applications. A network can be accessed either by Ethernet or Wi-Fi depending on what hardware resources are available. Only one network is accessible at any given time. This network is called the boot network by the network service. This is the same network that the STB uses during boot, hence its name. The boot networkThe boot network will always use Ethernet if it is connected. If Wi-Fi is available it will only be used as long as Ethernet has no link. The network settings of the platform's boot network are the same settings that can be accessed from the boot loader menu. The STB's network components (network interface, gateway etc) are configured by the network service based on the settings provided by the user either through the boot loader menu or through the TOI API. Since the boot network is used when booting from both Ethernet and Wi-Fi it is important that it is configured so that the boot server / boot image can be reached. Network CapabilitiesSince the KreaTV platform may support simultaneous access to multiple networks in the future, and due to differences in hardware configurations, each network represented in the network service has a set of network capabilities associated with it. The network capabilities determine what kind of functionality is available and what settings the network will accept. For example, if the network has Wi-Fi capabilities it will accept Wi-Fi settings and allow the user to perform Wi-Fi related operations, such as scans, on that network. See this page for a complete set of capabilities. It is important that an application respects a network's capabilities! Network StateA network can be in any of four states:
TOI API Overview
The service is accessed through the
The entry point to a network is the
TOI usage examplesThis section will illustrate a couple of common use cases using TOI together with the boot network. Check if the network is readyA network is ready when it has link and at least one configured IP address. This information is available in the network information.
It is possible to be notified when the state changes by listening for the `network info changed` event.
Scan Wi-Fi
Use the
Connect to Wi-Fi
Use the
See
TOI Network Service Interface
|