Jump to content
C4 Forums | Control4

one way IP driver for STB , Lichting , and mediaplayer


kevinSV

Recommended Posts

I dont know if i am posting in the correct item, if not please move this.

Hi guys, i just started with C4 after the news of Philips pronto.

With the pronto i had a generic IP driver ( prontoscript ) that i could adapt to use it with most devices with IP control.

Now with C4 i want to try to do the same thing, i am NOT a scripter so bare with me. I have found a driver ( XBMC from Alan Chow ) that i want to use for this.

I have tried to adapt it to use it with my sattelite receiver but i am lacking the knowledge, can someone tell me what i am doing wrong and give me some tips.

When it works i will post it so others can use it

I want to than adapt the driver for my rako lighting and HDI dune media player ( all 1 way control )

This is the control protocol:

Control commands:

http://IP_OF_THE_DEVICE/web/remotecontrol?command={command}

116 Key "Power"

2 Key "1"

3 Key "2"

4 Key "3"

5 Key "4"

6 Key "5"

7 Key "6"

8 Key "7"

9 Key "8"

10 Key "1"

11 Key "0"

412 Key "previous"

407 Key "next

115 Key "volume up"

113 Key "mute"

402 Key "bouquet up"

114 Key "volume down"

174 Key "lame"

403 Key "bouquet down"

358 Key "info"

103 Key "up"

139 Key "menu"

105 Key "left"

352 Key "OK"

106 Key "right"

392 Key "audio"

108 Key "down"

393 Key "video"

398 Key "red"

399 Key "green"

400 Key "yellow"

401 Key "blue"

377 Key "tv"

385 Key "radio"

388 Key "text"

138 Key "help"

EXAMPLE:

http://I192.168.1.80/web/remotecontrol?command=139

sends MENU command to 192.168.1.80

Power commands:

http://IP_OF_THE_DEVICE/web/powerstate?newstate={powerstate_number}

0 = Standby

1 = Deepstandby

2 = Reboot

3 = Restart Enigma2

i116 = Wake-up (aus Standby --issued as a "remotecontrol" command)

Example

http://192.168.1.80/web/powerstate?newstate=2

Sends REBOOT to 192.168.1.80

I hope someone can help me with this.

Kevin

Link to comment
Share on other sites


I don't mind you using my xbmc driver as a learning tool however if you are planning on utilising more then 50% of the code it would be nice if you consult me first. In this case i don't mind but if you choose to utilise alot of the code please reference it back to me.

In regards to a generic ip drive it doesn't work like how pronto works. Control4 works via proxies. So a lighting proxy is extremely different to a media player proxy.

I recommend that you look into the driverworks section of the official dealer forum. This will give you a starting point as to how to learn driverworks.

Link to comment
Share on other sites

I don't mind you using my xbmc driver as a learning tool however if you are planning on utilising more then 50% of the code it would be nice if you consult me first. In this case i don't mind but if you choose to utilise alot of the code please reference it back to me.

In regards to a generic ip drive it doesn't work like how pronto works. Control4 works via proxies. So a lighting proxy is extremely different to a media player proxy.

I recommend that you look into the driverworks section of the official dealer forum. This will give you a starting point as to how to learn driverworks.

Thank you for your reply!

I will let the code reference back to you ( as it is now in the driver )

As i said i am no scripter, but about the proxy.. can i use a mediacenter proxy for a DVR sattelite receiver or will this not work?

I would think it should work like this, i see in the debug the correct commands are sent but the receiver is not responding

This is the LUA output when i press a button

ReceivedFromProxy [5001] : UP

Connected... Sending... g_URLPacket: GET /web/remotecontrol?command=103

offline

Do you have any idea whats going on?

If you want you can email me

kevinteunissen AT gmail.com

Kevin

Link to comment
Share on other sites

I know exactly whats going on. I wrote the driver.

Think of proxys as the user interface.

Some proxy's share similar commands and notifications. Its not as easy as you think it is. You could create generic ones for each proxy class but you will need to be a scripter. I would recommend you start by reading the driverworks sdk.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.