Results 1 to 8 of 8

Thread: Android based remote control for the PBO Core

  1. #1
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,080

    Default Android based remote control for the PBO Core

    Here's a project that I started about 6 months ago that I never been able to really finished because I have been too busy with other project. Despite the fact that this project is imcomplete it is quite useable. The main issue right now is the lack of support for both portrait and landscape mode and it might look a little weird (big or small) on Android devices depending of the device screen density. I am not even sure that there is a need for an app like this remote control therefore I am releasing as is and will fix issues as per user request only.

    In order for the app to work properly it also needs a hook (communication) into the PBO so that the control characters can be send to the PBO from the Android device therefore you wil need to copy the attached link ("Androidremote.cgi) file to your PBO /tmp/www/cgi-bin/ directory (You will need write access (Yaffs or overmount required)). You also need to modify two lines in your /usr/local/etc/rcS file as follow:

    ./RootApp DvdPlayer&
    ./DvdPlayer&

    to

    tail -f /tmp/ir | ./RootApp DvdPlayer&
    tail -f /tmp/ir | ./DvdPlayer&


    Once you first start the app you will be require to enter your PBO IP address before you can communicate with your PBO wirelessly.

    Beware that there are still a few keys that haven't been mapped; therefore some functions may not work. I provided a location on the one of the view to enter your own character and pressing the execute button will sent this character to the PBO. Please report any new found functions/characters so that I may hard code them into the Android remote.

    Anyhow here's the link to the Android app: http://dl.dropbox.com/u/15169815/PBORC/PBO%20RC.apk

    and the link to the cgi-bin file: http://dl.dropbox.com/u/15169815/PBO...roidremote.cgi

    Here's some screenshot:

    http://dl.dropbox.com/u/15169815/PBO...ot/remote1.png
    http://dl.dropbox.com/u/15169815/PBO...ot/remote2.png
    http://dl.dropbox.com/u/15169815/PBO...ot/remote3.png
    http://dl.dropbox.com/u/15169815/PBO...t/settings.png
    http://dl.dropbox.com/u/15169815/PBO...nshot/help.png


    Enjoy!!!

    Please report any issues you may have on this forum or my email address (See about tab on the app menu options).

    Snappy
    Last edited by snappy46; 07-05-2012 at 04:34 AM.

  2. #2
    Join Date
    Aug 2010
    Posts
    1,044

    Default

    There are universal firmware that has the web remote function working. I have not tried it on my android though, but I think it should work.

  3. #3
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,080

    Default

    Quote Originally Posted by tourist View Post
    There are universal firmware that has the web remote function working. I have not tried it on my android though, but I think it should work.
    Just for info purposes; this app is not web based the cgi script is only used to capture the data sent by the Android application and forward it to the DvdPlayer app thru the intermediary of the /tmp/ir file. Most web based remote control need to be used from an internet browser which display the data (web page with buttons) sent by the cgi script. I can not think of any reasons why a web based remote would not work using an Android browser although the web page might be a little small or off the screen and need to be scroll to access the proper buttons. I never tried a web based remote on my android tablet.

    Cheers !!!

  4. #4
    Join Date
    Jul 2013
    Posts
    4

    Default

    Quote Originally Posted by snappy46 View Post
    Just for info purposes; this app is not web based the cgi script is only used to capture the data sent by the Android application and forward it to the DvdPlayer app thru the intermediary of the /tmp/ir file. Most web based remote control need to be used from an internet browser which display the data (web page with buttons) sent by the cgi script. I can not think of any reasons why a web based remote would not work using an Android browser although the web page might be a little small or off the screen and need to be scroll to access the proper buttons. I never tried a web based remote on my android tablet.

    Cheers !!!
    I tried this and it doesn't work. Neither the browser app nor this android app.
    Also, there is no /tmp/ir file in my pbo

  5. #5
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,080

    Default

    Quote Originally Posted by ps3nes View Post
    I tried this and it doesn't work. Neither the browser app nor this android app.
    Also, there is no /tmp/ir file in my pbo
    This does work but you need to have the correct setup.

    1) Copy the android.cgi to the /tmp/www/cgi-bin directory (If you do have a firmware yhat uses squashfs then you need to overmount your cgi-bin directory first.)

    2) Make the appropriate changes to your /usr/local/etc/rcS file as per first post.

    That's it now you are good to go. The /tmp/ir file won't exist until you do that.

  6. #6
    Join Date
    Aug 2013
    Location
    California
    Posts
    2

    Default

    Would it be possible to be given the source to the apk or have it provided via github?
    How were you able to determine the IR mapping?

  7. #7
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,080

    Default

    Quote Originally Posted by calibumm View Post
    Would it be possible to be given the source to the apk or have it provided via github?
    How were you able to determine the IR mapping?
    I mainly use this link http://www.patriotmemory.com/forums/...60&postcount=1 for the mapping and a little bit of trial and error. As far as the source code is concerned.... Well it is absolutely atrocious and a total mess since I threw this together simply as a quick test and ignore a lot of the coding ethics. I'll see what I can do about cleaning up the code so that it ressemble at least somewhat the code of someone that knew what he was doing.

    Cheers!!!

  8. #8
    Join Date
    Aug 2013
    Location
    California
    Posts
    2

    Default

    Quote Originally Posted by snappy46 View Post
    I mainly use this link http://www.patriotmemory.com/forums/...60&postcount=1 for the mapping and a little bit of trial and error. As far as the source code is concerned.... Well it is absolutely atrocious and a total mess since I threw this together simply as a quick test and ignore a lot of the coding ethics. I'll see what I can do about cleaning up the code so that it ressemble at least somewhat the code of someone that knew what he was doing.

    Cheers!!!
    Don't worry about the source.
    The link provided for the mapping was very helpful.
    Thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •