AllJoyn basic services include the Onboarding,notification and Control panel three major items. These three are also the most basic, most common parts of writing apps.
Onboarding
Provides a standard way for devices to access a WiFi network.
There are two roles defined here:
Onboarder (Login): An app that runs on a smart device.
Onboardee (Lander): A device that is ready to be added to the network.
Basic process
Onboarder discovery device needs to log on to the network
Connection, and provide configuration information
Onboardee Verify that you can log on to the network and notify the Onboarder results
Notifications
Notification Service Framework functions: Send and receive people's readable information through simple and standard interfaces.
Characteristics:
Its contents are in text format
It works in a way that spans devices, across systems, and across connections.
Send-side notifications can be prioritized
The receiving side can configure the type of receive notification.
An example of a refrigerator door that is not closed:
When the refrigerator door is not closed for more than 5 minutes, the refrigerator will send this information in the form of notification to the TV.
This is notification's frame diagram.
Here you can see more clearly where the notification service is located throughout the system. It provides an interface to the upper-level app, which can be communicated to the core in one place in the middle.
Control Panel
It is primarily an infrastructure interface that provides remote access to devices.
- Among them, the system is divided into the controller and the controlled person.
- The control Panel Framework provides control interfaces externally by the controller.
- The controller uses these interfaces to send commands to the controlled person and to obtain the return result.
An example of controlling the temperature of a refrigerator
The app sends instructions to the fridge to get the current temperature, the fridge returns to the current temperature, and the app commands to change the refrigerator temperature.
Frame diagram for Control Panel
As you can see clearly, Control panel is completely defined in the upper-level app, and the interface is also provided by the app.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Open source project AllJoyn basic services