IoT Experiment 4 AllJoyn Internet of Things experiment mobile phone LAN control equipment

Source: Internet
Author: User

AllJoyn Open Source IoT Protocol framework, official description is a common software framework and system service core set that enables interoperability between connected devices, and is a software application that creates dynamic near-end networks across manufacturers . Qualcomm has donated the project to an organization called the "AllSeen Alliance", which is overseen by the Linux Foundation, the broadest cross-industry alliance to date to drive home and industrial IoT applications and innovation (more information about www.allseen.org).

The AllJoyn includes core and service framework parts, and the service is based on core, with one instance for core and service tutorials.

3.4.1 Core part of the experiment

Hardware Inventory

(1) Triton (embedded device)

(2) Micro USB cable

(3) wireless hotspot (ie wireless router)

Software tools

Arduino IDE Software

Operation Steps

1. Copy the myalljoyn.apk from the Android/test_app path and install to the phone and run;

2. At this point the phone interface will have a progress bar finding Led service.please wait ..., that is, waiting for the device side to join the link.

3. Copy the AllJoyn library to the Arduino library directory

4. Open the Aj_ledservice.ino sample program from the example->alljoyn options category, Arduino IDE menu bar file.

And the red line circled out of the place, change your own wireless router SSID and password.

5. In the menu bar tool, select the Arduino due and select the correct serial number, upload the sample program, and open the serial debugging assistant, see some printing information, such as connecting to the network, waiting for the phone to connect and so on.

6, in the mobile phone side prompt connection successful (the interface has success information), you can control the Triton board on the switch by the button of the mobile phone side.

7, the source code of the device side is Aj_ledservice.ino, Due_led.cpp and Due_led.h, which alljoyn the main business logic code in Due_led.cpp, Aj_ Ledservice.ino just initializing the WiFi network

8, mobile phone-side Android source code in the android/src/myalljoyn/path, based on this source can develop a variety of other rich applications, such as control relays, motors and so on.

3.4.2 Services Part

Hardware Inventory

(1) Triton (embedded device)

(2) Micro USB cable

(3) wireless hotspot (ie wireless router)

Software tools

Arduino IDE Software

Operation Steps

1. Copy the alljoynon-1.01.11.apk from the Android/test_app path (Alljoynon is a Qualcomm design application) to the phone and run;

2, after running the mobile phone software interface, indicating that no equipment has been found

3. Copy the Services library to the Arduino library directory

4. Open the Service.ino sample program from the example->service options category, Arduino IDE menu bar file.

And the red line circled out of the place, change your own wireless router SSID and password.

5. In the menu bar tool, select the Arduino due and select the correct serial number, upload the sample program, and open the serial debugging assistant, see some printing information, such as connecting to the network, waiting for the phone to connect and so on. After a successful connection such as:

6, through the Mobile phone button and slide bar can control the Triton board led switch and led progress bar display,:

Description: In the device I have added a notification Service to the phone random message, in the actual process is to have an alarm to send messages, if you think the message is annoying can be set on the phone to ignore messages such as, note that the Yes

or by modifying the device-side code.

7, we compiled the apk for android/test_app/controlpanelbrowser.apk; source code is Android\src\alljoyn-controlpanel-14.02.00-rel\java\ Samples\controlpanelbrowser

The Internet of Things experiment 5 real-time control of the Arduino device on the Android phone's external network.

IoT Experiment 4 AllJoyn Internet of Things experiment mobile phone LAN control equipment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.