Alljoyn ON vs. ControlPanelBrowser

asked 2015-04-28 14:41:38 -0700

AllJoyner gravatar image

I have been using the Alljoyn ON and ControlPanelBrowser android apps for testing purposes while hooking up various devices to Arduino Yun and programming them using Alljoyn.js

For some reason when I run two or more different alljoyn scripts on the same Arduino board, Alljoyn ON only opens the latest one being ran and closes the previous one, while on the ControlPanelBrowser they all show up. Why is this happening? The only way i was able to get two of them show in Alljoyn ON was when i added one in rc.local and then manually ran the second one and even if i add both of them in rc.local such as:

alljoynjs --name "SampleApp1" /usr/share/alljoyn.js/sampleApp1.js &

alljoynjs --name "SampleApp2" /usr/share/alljoyn.js/sampleApp2.js &

only one of the will show up in Alljoyn ON and both of them in ControlPanelBrowser.

I would not mind using the ControlPanelBrowser for testing but its problem is that it crashes every time i go back into main activity and try to render widgets of a different device. I get the following error:
"Unfortunately ControlPanelBrowser has stopped". Why does it crash, this is never the case with the Alljoyn ON?

Thank you

edit retag flag offensive close merge delete


Given that you are finding a crash with ControlPanelBrowser application, its best if you can file a JIRA ticket at: https://jira.allseenalliance.org/browse/ASABASE with information viz. the version of the apk you are using.

praveenb ( 2015-05-02 00:17:22 -0700 )edit

Ok but can you answer the questions I had? Im really confused whats the differennce between the two apps. I ran into another issue, Im using a lininoIO pwm function to control a servo motor on a press of a button and in ControlPanelBrowser it works fine but in AlljoynON it doesnt.

AllJoyner ( 2015-05-07 07:31:37 -0700 )edit

The differences that I know are: (a) AllJoynOn was last built with 14.06 release, while ControlPanelBrowser would have been updated to use the latest Base Services release (b) AllJoynOn is built using all available services viz. config, controlpanel, notification and onboarding.

praveenb ( 2015-05-17 03:38:50 -0700 )edit

Can you send me a link where i can download the latest version of AlljoynON? Maybe thats the problem, I downloaded it a while ago from an old alljoyn website, so I probably dont have the latest version. Thanks

AllJoyner ( 2015-05-19 06:59:07 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-01 12:48:39 -0700

bspencer gravatar image

The issue that you are seeing is that when you run the alljoyn.js applications on your machine they are advertising the same AppId & DeviceId because they are using the same persistence file that saves the AppId & DeviceId once generated on first run. Dashboard (previsouly AllJoyn On) tracks the AppId+DeviceId so that it renders 1 tile for an application that matches these values. This is why 1 tile is shown. You can start the alljoyn.js application using the flag '--nvram-file <nvram_file>' and that will cause a new random AppId/DeviceId to be made.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools



Asked: 2015-04-28 14:41:38 -0700

Seen: 237 times

Last updated: Oct 01 '15