Onboarding Interface Definition
Release History
To access a previous version of this document, click the release version link below.
Release version | Date | What changed |
---|---|---|
14.02 | 2/28/2014 | Onboarding interface version 1 was added. |
14.06 | 6/30/2014 | No updates |
14.06 Update 1 | 9/29/2014 |
|
14.12 | 12/17/2014 | Cleanup to make requirements for methods and signals more clear. |
Definition Overview
The Onboarding interface is implemented by an application on a target device, referred to as an onboardee. A typical onboardee is an AllJoyn™ thin client device. This interface allows the onboarder to send the Wi-Fi credentials to the onboardee to allow it to join the personal access point.
Figure: Onboarding service framework architecture within the AllJoyn framework
NOTE: All methods and signals are considered mandatory to support the AllSeen Alliance Compliance and Certification program.
Onboarding Call Flows
Onboarding call flow using an Android onboarder
The following figure illustrates a call flow for onboarding an onboardee using an Android onboarder.
Figure: Onboarding a device using an Android onboarder
Onboarding call flow using an iOS onboarder
The following figure illustrates a call flow for onboarding an onboardee using an iOS onboarder.
Figure: Onboarding a device using an iOS onboarder
Error Handling
The method calls in the Onboarding interface use the AllJoyn error message handling feature (ER_BUS_REPLY_IS_ERROR_MESSAGE) to set the error name and error message.
Error name | Error message |
---|---|
org.alljoyn.Error.OutOfRange |
Value out of range |
org.alljoyn.Error.InvalidValue |
Invalid value |
org.alljoyn.Error.FeatureNotAvailable |
Feature not available |
Onboarding Interface
Interface name
Interface name | Version | Secured | Object path |
---|---|---|---|
org.alljoyn.Onboarding |
1 | yes | /Onboarding |
Properties
Property name | Signature | List of values | Read/Write | Description |
---|---|---|---|---|
Version | q |
Positive integers | Read-only | Interface version number |
State | n |
|
Read-only | The configuration state |
LastError | ns |
|
Read-only | The last error code and error message. Error_message is the error message received from the underlying Wi-Fi layer. |
Methods
The following methods are exposed by a BusObject that implements the Onboarding interface.
n ConfigWifi('ssn')
Message arguments
Argument | Parameter name | Signature | List of values | Description | |
---|---|---|---|---|---|
0 | SSID |
s |
N/A | Access point SSID | |
1 | passphrase |
s |
N/A | Access point passphrase in hex format | |
2 | authType |
n |
|
Authentication type.
|
Reply arguments
Argument | Parameter name | Return signature | List of values | Description |
---|---|---|---|---|
0 | status |
n |
The possible values for the connection result status are:
|
Description
Sends the personal AP information to the onboardee. When the authType is equal to -1 (any), the onboardee must try out all the possible authentication types it supports to connect to the personal AP.
Error reply
Error | Description |
---|---|
org.alljoyn.Error.OutOfRange |
Returned in the AllJoyn method call reply if authType parameter is invalid. |
Connect
Message arguments
None.
Reply arguments
This method does not have any reply message. It's a fire-and-forget method call.
Description
Tells the onboardee to connect to the personal AP. It is recommended that the onboardee use the concurrency feature, if it is available.
Offboard
Message arguments
None.
Reply arguments
This method does not have any reply message. It's a fire-and-forget method call.
Description
Tells the onboardee to disconnect from the personal AP, clear the personal AP configuration fields, and start the soft AP mode.
qa(sn) GetScanInfo
Message arguments
None.
Reply arguments
Argument | Parameter name | Return signature | List of values | Description |
---|---|---|---|---|
0 | age |
q |
positive number | Age of the scan information in minutes. Reflects how long ago the scan procedure was performed by the device. |
1 | scanList |
a(sn) |
The SSID string and one of the following values:
|
Array of records containing the SSID and authType.
|
Description
Scans all the Wi-Fi access points in the onboardee's proximity.
Error reply
Error | Description |
---|---|
org.alljoyn.Error.FeatureNotAvailable |
Returned in the AllJoyn response if the device does not support this feature. |
Signals
ConnectionResult(ns)
ConnectionResult signal is not a Sessionless signal.
Message arguments
Argument | Parameter name | Return signature | List of values | Description |
---|---|---|---|---|
0 | resultCode | n |
|
Connection result code. |
1 | resultMessage | s | string | Text that describes the connection result. |
Description
This signal is emitted when the connection attempt against the personal AP is completed. The signal is sent over the AllJoyn session established over the SoftAP link.
This signal will be received only if the concurrency feature is supported by the onboardee.
Introspect XML
<node xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.allseenalliance.org/schemas/introspect.xsd">
<interface name="org.alljoyn.Onboarding">
<property name="Version" type="q" access="read"/>
<property name="State" type="n" access="read"/>
<property name="LastError" type="(ns)" access="read"/>
<method name="ConfigureWifi">
<arg name="SSID" type="s" direction="in"/>
<arg name="passphrase" type="s" direction="in"/>
<arg name="authType" type="n" direction="in"/>
<arg name="status" type="n" direction="out"/>
</method>
<method name="Connect">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true" />
</method>
<method name="Offboard">
<annotation name="org.freedesktop.DBus.Method.NoReply" value="true" />
</method>
<method name="GetScanInfo">
<arg name="age" type="q" direction="out"/>
<arg name="scanList" type="a(sn)" direction="out"/>
</method>
<signal name="ConnectionResult">
<arg type="(ns)" />
</signal>
</interface>
</node>