Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1334)

Side by Side Diff: components/onc/docs/onc_spec.md

Issue 2818593003: [CrOS Tether] Add tether network properties (battery percentage, carrier, and signal strength) to t… (Closed)
Patch Set: Ran git cl format. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/test/data/network/tether.onc ('k') | components/onc/onc_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Open Network Configuration 1 # Open Network Configuration
2 2
3 [TOC] 3 [TOC]
4 4
5 ## Objective 5 ## Objective
6 6
7 We would like to create a simple, open, but complete format to describe 7 We would like to create a simple, open, but complete format to describe
8 multiple network configurations for WiFi, Ethernet, Cellular, 8 multiple network configurations for WiFi, Ethernet, Cellular,
9 Bluetooth/WiFi-Direct, and VPN connections in a single file format, in order 9 Bluetooth/WiFi-Direct, and VPN connections in a single file format, in order
10 to simplify and automate network configuration for users. 10 to simplify and automate network configuration for users.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 * **WiMAX** 223 * **WiMAX**
224 * (required if **Type** is *WiMAX*, otherwise ignored) - 224 * (required if **Type** is *WiMAX*, otherwise ignored) -
225 [WiMAX](#WiMAX-type) 225 [WiMAX](#WiMAX-type)
226 * WiMAX settings. 226 * WiMAX settings.
227 227
228 * **Cellular** 228 * **Cellular**
229 * (required if **Type** is *Cellular*, otherwise ignored) - 229 * (required if **Type** is *Cellular*, otherwise ignored) -
230 [Cellular](#Cellular-type) 230 [Cellular](#Cellular-type)
231 * Cellular settings. 231 * Cellular settings.
232 232
233 * **Tether**
234 * (required if **Type** is *Tether*, otherwise ignored) -
235 [Tether](#Tether-type)
236 * Tether settings.
237
233 * **Type** 238 * **Type**
234 * (required if **Remove** is *false*, otherwise ignored) - **string** 239 * (required if **Remove** is *false*, otherwise ignored) - **string**
235 * `Allowed values are` *Cellular*, 240 * `Allowed values are` *Cellular*,
236 *Ethernet*, *WiFi*, 241 *Ethernet*, *WiFi*,
237 *WiMAX* and *VPN*. 242 *WiMAX* and *VPN*.
238 * Indicates which kind of connection this is. 243 * Indicates which kind of connection this is.
239 244
240 * **ConnectionState** 245 * **ConnectionState**
241 * (optional, read-only) - **string** 246 * (optional, read-only) - **string**
242 * The current connection state for this network, provided by the system. 247 * The current connection state for this network, provided by the system.
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 * **RetriesLeft** 1424 * **RetriesLeft**
1420 * (optional) - **integer** 1425 * (optional) - **integer**
1421 * If **LockType** is empty 1426 * If **LockType** is empty
1422 or *sim-pin*, then this property represents 1427 or *sim-pin*, then this property represents
1423 the number of attempts remaining to supply a correct PIN before the 1428 the number of attempts remaining to supply a correct PIN before the
1424 PIN becomes blocked, at which point a PUK provided by the carrier would 1429 PIN becomes blocked, at which point a PUK provided by the carrier would
1425 be necessary to unlock the SIM (and **LockType** 1430 be necessary to unlock the SIM (and **LockType**
1426 changes to *sim-puk*). 1431 changes to *sim-puk*).
1427 1432
1428 1433
1434 ## Tether Networks
1435
1436 For Tether connections, **Type** must be set to *Tether* and the
1437 field **Tether** must be set to an object of type [Tether](#Tether-type).
1438
1439 Used for representing a tether hotspot provided by an external device, e.g.
1440 a phone.
1441
1442 ### Tether type
1443
1444 * **BatteryPercentage**
1445 * (optional, read-only) - **integer**
1446 * The battery percentage of the device providing the tether hotspot in the
1447 range [0, 100].
1448
1449 * **Carrier**
1450 * (optional, read-only) - **string**
1451 * The name of the cellular carrier when the hotspot is provided by a
1452 cellular connection.
1453
1454 * **SignalStrength**
1455 * (optional, read-only) - **integer**
1456 * The current signal strength for the hotspot's connection in the range
1457 [0, 100]. Note that this value refers to the strength of the signal
1458 between the external device and its data provider, not the strength of the
1459 signal between the current device and the external device.
1460
1461
1429 ## Bluetooth / WiFi Direct Networks 1462 ## Bluetooth / WiFi Direct Networks
1430 1463
1431 This format will eventually also cover configuration of Bluetooth and WiFi 1464 This format will eventually also cover configuration of Bluetooth and WiFi
1432 Direct network technologies, however they are currently not supported. 1465 Direct network technologies, however they are currently not supported.
1433 1466
1434 1467
1435 ## Certificates 1468 ## Certificates
1436 1469
1437 Certificate data is stored in a separate section. Each certificate may be 1470 Certificate data is stored in a separate section. Each certificate may be
1438 referenced from within the NetworkConfigurations array using a certificate 1471 referenced from within the NetworkConfigurations array using a certificate
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1768 is transmitted or saved to disk should be secure. On client device, when 1801 is transmitted or saved to disk should be secure. On client device, when
1769 user names for connections that are user-specific are persisted to disk, 1802 user names for connections that are user-specific are persisted to disk,
1770 they should be stored in a location that is encrypted. Users can also opt in 1803 they should be stored in a location that is encrypted. Users can also opt in
1771 these cases to not save their user credentials in the config file and will 1804 these cases to not save their user credentials in the config file and will
1772 instead be prompted when they are needed. 1805 instead be prompted when they are needed.
1773 1806
1774 ## Authors 1807 ## Authors
1775 1808
1776 * pneubeck@chromium.org 1809 * pneubeck@chromium.org
1777 * stevenjb@chromium.org 1810 * stevenjb@chromium.org
OLDNEW
« no previous file with comments | « chromeos/test/data/network/tether.onc ('k') | components/onc/onc_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698