¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Andriod TV control


 

Anyone can guide me to how to control an Andriod TV via IP (like using a remote control) through SIMPL??


 

What TV?


 

Xiaomi

?

If anyone wants a job to help me code this into Crestron application, I'd be happy to employ him!


 

Which exact TV series??


 

They are all Xiaomi TV P1E


 

hat project explains the API pretty well.


 

Guys, were you able to control it?
I have a collage just asking for this exact thing and he is not being able to control the tv with the described api.
TV is responding to pings, so it's alive.

Thanks


 

I tried with a Crestron certified programmer this whole morning to try to get it work, it doesn't... very frustrating.

Whatever commands we sent has no response from the TV.

Lost, don't know what to do next. Sigh.?


 

I?d give IRUSB a try.
It?s more aimed towards Android based media player boxes, but it should work on any Android based device with a supported USB port.

Cheers,
Thorsten


 

IRUSB or the various others will work to control the TV, but you wont be able to control power or input shifts. Also, the IRUSB will often "wake" TV's up that have been powered off, so you are likely better off with the github repo suggested earlier.


 

¿ªÔÆÌåÓý

Good point ¨C true.

?

Cheers,

Thorsten

?

Von: [email protected] <[email protected]> Im Auftrag von richard.k.mullins@...
Gesendet: Montag, 20. M?rz 2023 02:26
An: [email protected]
Betreff: Re: [crestron] Andriod TV control

?

IRUSB or the various others will work to control the TV, but you wont be able to control power or input shifts. Also, the IRUSB will often "wake" TV's up that have been powered off, so you are likely better off with the github repo suggested earlier.


 

but did the github api worked for any of you?
I'm not there to try, but this colleage says tv is not responding to anything except to pings...


 

No not really, I tried the github various methods, didn't work out.

It seems that one has to go through the ADB (Andriod Debug Bridge) route to get things going (I read some developers from China, they write in Chinese) but I'm not too good at ADB so I didn't pursue further.

If anyone by chance to be able to control an Andriod TV, please share your experience ok? Thank you in advance!


 

I have some progress with ADB, I managed to connect to my Andriod TV via ADB (Andriod Debug Bridge), that's easy.
?
Once connected, I managed to send remote control keystroke commands to the TV too.
?
adb shell input keyevent 3 (home)
adb shell input keyevent 22 (right key)
adb shell input keyevent 21 (left key)
... etc
?
Now how do I turn this shell commands into Crestron code? Any help will be very much appreciated!


 

On Sat, Mar 25, 2023 at 04:38 AM, <lo@...> wrote:
Once connected, I managed to send remote control keystroke commands to the TV too.
What was the connection type?


 

Currently connected via TCP/IP through port 5555 (ADB port)

Even though the TCP/IP connection is established, I'm not sure if my AP4 processor is talking (or established handshake) to the TV, as I don't know how to establish a connection to the TV like the following command:

adb connect 192.168.18.64:5555

If connection is established, the TV will show that "Allow USB debugging?" message, currently I'm not getting such message, thus my connection was probably a failure still.

Help!!!


 

Here is an idea. Connect to TV from your PC by using a Crestron processor as a TCP/IP relay/traffic sniffer (hopefully data isn't encrypted):

Add TCP Server at :5555

Add TCP client to actual TV.

Cross connect the TX-RX; RX-TX of the 2 devices

Add some logic to connect TCP client to Android TV when TCP server gets a client connected.

Connect your PC adb shell to the Crestron's TCP server and observe traffic in debugger. Hopefully the handshake will be visible there and you can duplicate that in your actual program.

?

If this helps/works, please share full details about this project once complete (may be even upload your module). Thanks.