Skip to main content
Topic: Turning your android phone in to a remote for your tv. (Read 2065 times) previous topic - next topic

Turning your android phone in to a remote for your tv.

I am trying to build a android app on my Note 2 to allow me to use my phone as a remote for my samsung tv.
I have got my app to see my device by adding this code in to the AndroidManifest.xml

Code: [Select]
        <activity
            android:name="android.orion_ir.DashBoard"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
               
                <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
            </intent-filter>
              <meta-data
      android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
      android:resource="@xml/device_filter" />
           
        </activity>

and in the XML file i have

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <!-- 0x2341 / Arduino -->
    <usb-device vendor-id="9025" />

    <!-- 0x10C4 / USB IR TOY -->
    <usb-device vendor-id="1240" product-id="64776" />
   
</resources>

No matter what I try, i can not send a simple command to the IR TOY 2 device.

the command I would like to send is

Device Code: 7 Function: 153 "On" = hex code 99
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689

This will turn on a samsung tv.

Can anyone help me figure this out?

Re: Turning your android phone in to a remote for your tv.

Reply #1
I wonder if I need to give up on the IR toy and use my Arduino...
the support for the IR toy has not been good so far.

Re: Turning your android phone in to a remote for your tv.

Reply #2
Generally the support here is just fine, but it seems to me that your're asking for support more on developing your app on Android than something that is purely IR toy-related.

So if you connect the 'toy to a pc, can you then issue the data that turns off the tv?  Or is it that part that is the problem? If so maybe you should start digging in that end and not involve the Android issues....

Re: Turning your android phone in to a remote for your tv.

Reply #3
There is already an app for that its called WatchON by Samsung. It should be on your phone, it came with my S4. If not you can download the app from the Samsung store. I don't think the Note 2 came with a IR sensor built in.

Re: Turning your android phone in to a remote for your tv.

Reply #4
thanks systemsyech. I will down load the WatchOn app and give it a try