Kodi Community Forum
New FREE Control4 Driver Available (JSON) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: New FREE Control4 Driver Available (JSON) (/showthread.php?tid=128714)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


RE: New FREE Control4 Driver Available (JSON) - Ranger620 - 2013-09-09

(2013-08-02, 16:51)jbmedia Wrote: Any one else have issues with the in movie controls. Driver is flawless in menus but once a movie starts it all goes haywire. The transport controls are spotty and unpredictable.

Known issue?

I have the same issue. Menu navigation in XBMC is flawless but during movie playback once the the first command is issued, eg. pause or fast forward, it takes a number of seconds before another command like play will be accepted.

Is this a known issue?


RE: New FREE Control4 Driver Available (JSON) - brandonj - 2013-09-12

Yes, I just noticed the same problem. I am not sure when this cropped up, but it used to be okay. I am looking in to it right now.


RE: New FREE Control4 Driver Available (JSON) - brandonj - 2013-09-30

(2013-09-12, 04:37)brandonj Wrote: I am looking in to it right now.

I can only reproduce the problem with XBMC running on a raspberry pi. The commands actually get sent by the Control4 system, but the pi (or XBMC) drops it for some reason. I am guessing this is because the pi is using all its processing power to decode the video.

-Brandon


New FREE Control4 Driver Available (JSON) - zariaman - 2013-10-11

Which link is for the latest build of the driver?


RE: New FREE Control4 Driver Available (JSON) - Ronny_Adeo - 2013-12-12

Hi all,
I'm testing this driver with a generic XBMC media player, I need to change the port to 80 but now the response in Control4 is:

On Timer Expired
Attempting to reconnect to XBMC...
On Timer Expired
XBMC: polltimer test
Emit: {"id":137,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
On Timer Expired
SendToNetwork:{"id":137,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
On Timer Expired
On Timer Expired
XBMC: polltimer test
Emit: {"id":138,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
On Timer Expired
SendToNetwork:{"id":138,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
On Timer Expired
On Timer Expired
XBMC: polltimer test
XBMC: OnConnectionStatusChanged[6001 (80)]: OFFLINE
XBMC: not connected.
Failed to receive poll responses from XBMC... Disconnecting...
XBMC: OnConnectionStatusChanged[6001 (80)]: ONLINE
Connected to XBMC...


RE: New FREE Control4 Driver Available (JSON) - stif - 2013-12-13

Are you sure you changed the Json Port and not the HTTP Port?
I use OpenElec with HTTP Port 80 and Json Port 9090

I also created a Pull request on the Driver from brandonj (https://github.com/RDX/Drivers)
With the changes i made it is possible to navigate through the TV Channels in PVR mode now.
Just in case anybody is interested.

Cheers,
Stif


RE: New FREE Control4 Driver Available (JSON) - c4newb - 2014-01-02

having same issues as jbmedia. Driver is flawless in menus but once a movie starts it all goes haywire. clicking right or left after bringing up the OSD will step forward and backward rather than moving through the menu controls


RE: New FREE Control4 Driver Available (JSON) - Polonda - 2014-01-04

Driver seems to be working well, however I can only get WOL to send the pc to standby, it won't wake it back up. All Bios settings and network card settings have been checked. Any thoughts?

Update:I'm able to wake the computer from an app on my phone as well as with a Utility on my laptop. SO it appears the pc is configured correctly and the issue is on the C4 side of things. I tried the MAC address with and without the : .


RE: New FREE Control4 Driver Available (JSON) - stif - 2014-01-08

@c4newb: Your "Problem" is a feature Smile
But you can open the driver with notepad or any other text-editor and change the Keymapping in the differnet Modes (Navigation/Movie/Audio/.. - See Line 774 in original file)
I made a change to the driver myself in order to be able to navigate through the TV Channels: https://github.com/stif/Drivers/tree/master/XBMC-JSON

@WOL: I have the same problem; the device shuts down, but does not wake up anymore. I did packet sniffing and can verify the magic packet is sent by control 4, but xbmc does not respond to it.
Other WOL programs did work however (Motherbord is supporting WOL) and even with this Control4 Driver i can wake up XBMC, but only in 1 of 30 cases which is not satisfying..
If anyone have a solution to this please let me know.


RE: New FREE Control4 Driver Available (JSON) - Polonda - 2014-01-09

@WOL: I have the same problem; the device shuts down, but does not wake up anymore. I did packet sniffing and can verify the magic packet is sent by control 4, but xbmc does not respond to it.
Other WOL programs did work however (Motherbord is supporting WOL) and even with this Control4 Driver i can wake up XBMC, but only in 1 of 30 cases which is not satisfying..
If anyone have a solution to this please let me know.
[/quote]

If anyone can help with the WOL issue I would it would be GREATLY appreciated.


RE: New FREE Control4 Driver Available (JSON) - chris6128 - 2014-01-15

Does anyone have the WOL fully working? I have the same problem listed here, PC sleeps but doesn't wake. It worked the very first time that I set it all up but since then I am using the android app to wake. I love this driver, it does everything I need and a big thanks for making it free. Having the WOL working would be the icing on the cake.


RE: New FREE Control4 Driver Available (JSON) - Craig P - 2014-01-25

i have WOL working perfectly. This is the code snippet for the driver i created...

MAC = ""
C4:CreateNetworkConnection (6001, "255.255.255.255", 9)
C4:NetConnect(6001, 9, "UDP")

function ExecuteCommand(strCommand, tParams)
for i=1, 30 do
if (strCommand == "LUA_ACTION") then
if (tParams.ACTION == "Test MAC " .. i .." WOL") then
print("Test MAC " .. i .. " WOL")
MAC = Properties["MAC Address " .. i]
end
end
if (strCommand == "Send MAC " .. i .. " WOL") then
print("Send MAC " .. i .. " WOL")
MAC = Properties["MAC Address " .. i]
end
end

MAC = MAC:gsub(":", "") -- Remove any colons in the entered MAC addresses
MAC = MAC:gsub("-", "") -- Remove any dashes in the entered MAC addresses
MAC = tohex(MAC) -- Convert to HEX
packet = string.rep(string.char(255), 6) .. string.rep(MAC, 16) -- Build 'magic packet'.
hexdump (packet)
C4:SendToNetwork (6001, 9, packet)
C4:SendToNetwork (6001, 9, packet)
end


RE: New FREE Control4 Driver Available (JSON) - chris6128 - 2014-01-25

I gave up with it and found a free homemation WOL driver that I have programmed to wake my PC when "watch xbmc" is selected. Works a charm :)


RE: New FREE Control4 Driver Available (JSON) - Craig P - 2014-01-26

I made the Homemation driver. It was the first driver I did and was for getting my PC to boot into XBMC. Uses the same code as above. I just put that code into an XBMC driver I wrote for when C4 sends out the power command.

As long as it's working Smile


RE: New FREE Control4 Driver Available (JSON) - Polonda - 2014-01-31

(2014-01-25, 17:43)Craig P Wrote: i have WOL working perfectly. This is the code snippet for the driver i created...

MAC = ""
C4:CreateNetworkConnection (6001, "255.255.255.255", 9)
C4:NetConnect(6001, 9, "UDP")

function ExecuteCommand(strCommand, tParams)
for i=1, 30 do
if (strCommand == "LUA_ACTION") then
if (tParams.ACTION == "Test MAC " .. i .." WOL") then
print("Test MAC " .. i .. " WOL")
MAC = Properties["MAC Address " .. i]
end
end
if (strCommand == "Send MAC " .. i .. " WOL") then
print("Send MAC " .. i .. " WOL")
MAC = Properties["MAC Address " .. i]
end
end

MAC = MAC:gsub(":", "") -- Remove any colons in the entered MAC addresses
MAC = MAC:gsub("-", "") -- Remove any dashes in the entered MAC addresses
MAC = tohex(MAC) -- Convert to HEX
packet = string.rep(string.char(255), 6) .. string.rep(MAC, 16) -- Build 'magic packet'.
hexdump (packet)
C4:SendToNetwork (6001, 9, packet)
C4:SendToNetwork (6001, 9, packet)
end

So the question is.....how do I put this code in the driver. Not sure what to take out and what to add. Can someone update it?