Quantcast
Channel: Control4Hacks » Control4
Viewing all 17 articles
Browse latest View live

Welcome!

$
0
0

Welcome to my blog!

2013 is starting and I came up with an idea to create a blog, just for fun.

I’m glad that you are at least looking for inner information regarding Control4 and other related stuff. It’s really important that we learn something every day. Learning is a wonderful subject that I always care about. Even though when you need to perform that shitty job everyday, look on the bright side and try to learn something from that.

The main information that I would like to share with you are my findings on Control4 home automation system. The first time that I had a contact with this awsome system was to create a driver for some product. I didn’t know anything about it

What the hell is Control4? And how can I create a driver for it? After a little research and  learning new script language, I was able to deliver what I was supposed to. But, this was the easy part. After that I was interested in hacking the device itself.

Who am I? My name is Bruno and I live in south of Brazil. Graduated in mechanical engineering with knowledge and certificated (PMP) in Project Management from PMI. I’m very self-taught oriented. Even I don’t work in computer area, my passion and hobby is to break, crack and hack things. I love to discover a new way to perform things and create new features on existing devices. I started to study the inner of software coding in 1998. I’ve coded in several languages, including Assembly. But, that’s another story…

Let’s break the story here!

Welcome and I hope you enjoy as much as like doing this!



Twitter Client Driver

$
0
0

Hello, I would like to introduce you my newest creation on Control4 drivers.

It is a Twitter Client, you can tweet and send direct messages through the Control4 system.

You may ask yourself, “Why the hell I need a twitter client?“. There are lots of answers on that. But the motivation that I have is about security. I want to know if there were any break on the magnet sensors and motion sensors while I was out of home. I also want to know when the garage door was opened, to know if somebody is arriving at home.

There are many situations that you want to know the events of your automation system quickly, like flood sensor in the basement, loss of power, pool engines events, door bell, etc.

You can have this information on your cell phone, website, any other desktop twitter client and so on.

This driver is avaliable for purchase, if you are interested (and if you are a Control4 dealer), please send an email – bruno.salvador@gmail.com.

Features:

  • - Send simple tweet;
  • - Send direct messages to anybody.

Control4 Direct Message Control4 Tweet

Thanks for your attention!

Best regards

Bruno Salvador


JVC D-ILA Projectors IP Driver

$
0
0

DLA-X70R

The newest JVC’s 4K projectors can get 2 million pixels and convert them to 8 million pixels. Just compare the areas in the picture bellow.

FullHD vs 4K

This projector and all JVC D-ILA based projectors can be controlled by TCP/IP.

I can offer you an TCP/IP Driver for those projectors, basically all projectors that has an ethernet connection can be controlled by this driver.

It supports all setups avaliable in the projector.

If your projector is not in this list, don’t worry, it can be supported

See the documentation bellow:

JVC D-ILA Projectors IP driver for Control4

Models supported over TCP/IP Network Connection, D-ILA Based.

[*] ,Setup:

1) The JVC projector must have a static IP address.
2) Make sure the projector is seen by the controller.
3) Add the IP address on Composer at Connections tab
4) The driver should connect automatically: The "Connected To Network" property should be TRUE and the projector model Identified.
5) Register the software to allow more than 24h of usage.

[*] Supported commands (some commands maybe not avaliable at your projector, check projector's user manual)

TEST_PATTERNS
GAMMA
GAMMA_VALUE
OFF_TIMER
LAMP_POWER
INFRARED_REMOTE_CODE
TRIGGER_OUTPUT_SET
CLEAR_MOTION_DRIVE
ANAMORPHIC
PICTURE_MODE_1 for X30/X70/X90/RS45/55/65 models
PICTURE_MODE_2 for X3/X7/X9/RS40/50/60 models
PICTURE_MODE_3 for HD350/750/550/950/990/RS10/20/15/25/35 models
COLOUR_PROFILE
_3D_FORMAT
_2D_TO_3D_CONVERSION
_3D_SUBTITLE_CORRECTION
LENSMEMORY

[*] Variable created by this driver are as follows (Values):

-Power_Status:
ON, OFF, COOLING and EMERGENCY
-Current_Input:
S-VIDEO, VIDEO, COMPONENT, COMPUTER(VGA), HDMI1 and HDMI2

[*] Event created by this driver are as follows:

- Projector_Input_Changed
- Projector_Power_Status_Changed

[*] Change log

v1.0.0 - 11/17/2012
- Initial release


This driver is avaliable for purchase, if you are a dealer, please send me an email in bruno.salvador@gmail.com.


(Brazil) 2way IP driver para SKY HD

$
0
0

!!This product is only avaliable for Brazil SKY Customers!!

sky-hdtv-baixa

Gostaria de apresentar a vocês o driver para o SKY TV controlado por IP, destinado para o Brasil somente.

Este driver pode controlar o decodificador da SKY com uma velocidade muito mais rápida que os drivers normais de infravermelho. Além de ter a possibilidade de mostrar a descrição do canal diretamente no navigator com um apertar de botão.

Quando você muda de canal, o número do canal e o nome aparecerá nas telas do control4.

Vantagens do driver IP:

  • Rapidez no envio do comando;
  • 2way, ou seja, é possível obter informações do canal;
  • Mais robusto a perdas de conexões se comparado ao olho de infra vermelho (que geralmente desgruda do posicionamento, perdendo o sinal)

Segue abaixo as conexões:

SKY Connections

Estas variaveis são continuamente atualizadas com as informações do canal que você está assistindo. Com isto você consegue usar estas informações para disparar eventos.

SKY Variables

O driver está disponível para teste por 24 horas, se quiser testá-lo, por favor me envie um email.

Abaixo segue a conclusão das operadoras de TV quanto a possibilidade de controlar por RS232 ou IP (não tive a oportunidade de trabalhar com Oi e Claro ainda):

  • SKY: aceita comandos via IP.
  • NET: não aceita comandos via IP/RS232
  • GVT TV: não aceita comandos via IP/RS232
  • Oi: ?
  • Claro: ?

Um abraço.

Bruno


Control4 System Manager

$
0
0

Hello again and I’m back from my trip since the beginning of February, but my new born are taking my time away and it is difficult to write on this blog, but I’ll keep it updated as much as I can.

Today I’ll discuss a little about one of controller’s software, called System Manager.

System Manager screenshot

Normally, the System Manager is used inside the Composer, to get some useful info about the controller that you are working on. There you can find information like network parameters (IP address, MAC address, DNS, etc) and check the status of the running processes and also enable or disable services.

That’s it, you cannot do much more on Composer with the System Manager.

In the background, the System Manager is responsible for several tasks like managing the process, managing wireless connections, SSL certificates, updates, etc. A detailed inner investigation of System Manager deserves a new topic that I want to publish one day.

But, what if you can do more? Like for instance, reboot the system remotelly? Get the timezone information for your driver? Set time and date! Yes, all those things that I’ve just listed is possible.

Let’s start a simple example here, using a software like Hercules to create TCP connection to our controller and send commands.

Write the IP address on the IP textbox, and write 5800 as Port, click in Connect.

After the connection you should send the “help” command in order to list all the avaliable commands on SystemManager, followed by carriage return, or 0x0D0A. In the end the command should be like this “help/r/n”.

Hercules screenshotYou can see all the commands listed


help Help (this command).
status Get enabled/disabled status.
quit Quit the session.
date Get/set date (MM/DD/YYYY).
time Get/set time (HH:MM:SS).
timezone Get/set timezone (zone name).
timezones Get list of timezones.
enable Enable daemon.
disable Disable daemon.
ntp NTP daemon (start|stop|restart|config_server|config_client).
ntpsync NTP Synchronize
oldupdate Update pre 1.3 release system
version Get package versions.
reboot Reboot machine.
suspend Stop daemon.
resume Start daemon.
nice Renice a daemon.
net Network configuration (see net help).
kill Kill daemon
shutdown Kill all daemons without restarting
restart Restart all enabled processes.
sysinfo Get system info (XML result).
procpoll Get process info (XML result).
syslog Configure logging.
tail Tail a file.
whoami Return IP of this connection.
cert Get certificate details.
OK

As you can see, there a lot of commands what we can use it.

Now, what about to have a driver to reboot the control4? I don’t think that this is useful on real life, but for example purposes is valid. Let’s create a driver that contains only one command, that is to reboot any control4 controller that we want.

filename: C4H_Reboot.c4i


<devicedata>
<copyright>Copyright 2013 Control4Hacks - All rights reserved.</copyright>
<name>Reboot</name>
<small>devices_sm/c4.gif</small>
<large>devices_lg/c4.gif</large>
<control>lua_gen</control>
<driver>DriverWorks</driver>
<proxy>C4H_Reboot</proxy>
<composer_categories>
 <category>other</category>
 </composer_categories>
 <manufacturer>Control4Hacks</manufacturer>
 <creator>Bruno Salvador</creator>
 <created>10/29/2012 11:45 AM</created>
 <modified>10/31/2012 10:00 PM</modified>
 <version>100</version>
 <model>Reboot 1.0</model>
 <front/>
 <back/>
 <top/>
 <bottom/>
 <left/>
 <right/>
 <config>
 <documentation>
Control4Hacks Reboot Driver 1.0

This driver allow the controller to reboot itself or another controller, by the IP Address.

This is a sample driver of the commands that you can get from the controller using this method.

</documentation><properties/>
 <actions/>
 <commands>
 <command>
 <name>REBOOT</name>
 <description>Reboot Control4 Controllers</description>
 <params>
 <param>
 <name>IP</name>
 <type>STRING</type>
 </param>
 </params>
 </command></commands>
 <script><![CDATA[
function Reboot(IP)
 local tcp = socket.tcp ()
 tcp:connect (IP, 5800)
 print('Connecting on ' .. IP)
 tcp:settimeout (0.5)
 print('Sending reboot command...')
 tcp:send ('reboot\r\n')

tcp:close ()
 return
end

function ExecuteCommand(Command, Parameters)
 if (Command == 'REBOOT') then
 Reboot(Parameters['IP'])
 end
end

]]></script></config><states/><connections/><capabilities/></devicedata>

On the programming tab, make any event to execute the command according to the picture below, IP textbox is the controller that you want to reboot. The IP 127.0.0.1 means that the program will reboot the controller where the driver is installed (current Composer controller connection). Replace this with the IP of the controller that you want.

!! BE CAREFUL !! Don’t do the same mistake as I did. I’ve programmed to reboot every time that the controller boot, so the controller got stuck on an infinite loop of restart. To solve this I had to connect with Hercules and suspend the director service, then manually remove the driver.

reboot_prog

You can also read useful info to use it on your driver with the sample bellow, which reads the network information of the controller.


local tcp = socket.tcp ()
 tcp:connect ('127.0.0.1', 5800)
 tcp:settimeout (0.5)
 tcp:send ('net iface eth0 real\r\n')
 local text = ''

repeat
 local data = tcp:receive ()
 text = text .. (value or '') .. '\r\n'
 until (value == nil)

Then you can work with the data to do what you want.

I was wondering…this connection don’t ask for password and there is no security check to access this commands. This is critical because any piece of software with 3 lines of LUA can create problems for the users. Imagine write a software to randomly reboot the controllers on the network. What if a house with security door locks that are programmed to unlock at 08:00 am, and you change the time in order to unlock at 04:00am? Paranoic? Maybe…

See you soon!


Customization on company logo for iPad

$
0
0

We have seen the customization of Control4 logo on the navigators, by changing the image file inside the flash file.

Today I’ll show you a small example of the replacement Control4′s logo with any picture that you want.

As this is not supported by Control4, you need to perform the customization each update of the MyHome app.

This customization can survive iPad iOS updates, but not MyHome app update.

Check a small example of it, note that the programming of control4 devices is not done yet.

With this procedure is possible to change all the images from the entire app.

Customized logo for MyHome iPad version 2.3

Customized logo for MyHome iPad version 2.3


How Control4 MyHome Authentication works – Part 1

$
0
0
An interesting topic is to understand how the webservice from https://apli.control4.com control all the MyHome licenses. MyHome licences were sold in bulk, called MyHome Site Licence, which used to cost around USD 499,00 for 50 devices (iPad, Android, PC) at … Continue reading

How Control4 MyHome Authentication works – Part 2

$
0
0
See Part 1: http://www.control4hacks.com/2013/07/09/how-control4-myhome-authentication-works-part-1/ In this post we will dig into the Authentication process of MyHome application for Control4.I will try to cover the maximum of details for the understanding of the process of authentication. The authentication process is based on … Continue reading

XBMC with Movie Scraper – Beta version

$
0
0
Hello, it has been a long time that I don’t post any driver here, but let me show you my newest creation for XBMC lovers (like me). I’ve coded a driver that control XBMC (nothing new here), but also I’ve … Continue reading

Control4 FreeNAS 9.1.0 Power Driver

$
0
0
The FreeNAS project is a open-source operational system to build NAS, and enable users to create their own NAS (Networked Attached Storage) device on almost any platform and legacy computers. If you have a old computer that you don’t know … Continue reading

Control4 WD TV Live IP Driver

$
0
0
        Follow us on Facebook   I’ve created this driver some time ago, now it’s tested and I can now release it. This Control4 driver allows you to control your WD TV Live Streaming Media Player over … Continue reading

[Update 2] Preview XBMC Media Scraper Control4 Driver – BETA 0.1.2

$
0
0
Hello everyone, here is short preview video of the XBMC Media Scraper Control4 Driver – BETA 0.1.2. Changelog ----------- v0.1.2 - 31.08.2013 + Added a Property to enable/disable scraper (useful when using more than one instance of the driver or if … Continue reading

J River Media Center IP Driver (MadVR-LAV filters)

$
0
0
by kidling. This is my second Driver made to htpc users get the best Image quality possible. XBMC has a very nice ui, but your player is worst than others directshow filters with LAV decoders, MadVR rendering, FFDshow or xy … Continue reading

KMTronic Relay Board – RS232 Driver

$
0
0
KMTronic Relay Board is a cheap board that has 8 relays controlled by RS232 commands. Now it is fully integrated in Control4 by using a simple driver that I’ve created. Control4 KMTronic Relay RS232 Driver ------------------------------------------------- This driver allow you … Continue reading

Onkyo TX-NR3010 – Tweak Control4 IP Driver

$
0
0
I have included some few features on Control4′s driver for the 9.2 receiver TX-NR3010 from Onkyo. Unfortunatelly Control4 did not included all possible options on the commands properties, so I have created the version 6 of current version 5 from … Continue reading

Control4 JVC D-ILA 4K and Full HD Projector IP Driver – Version 1.0.1

$
0
0
I’ve released a small update of this very awarded Control4 Driver. Control4 your JVC D-ILA projector with complete features integrated in Control4 system. Try it now! Integrate your 4K projector, send an email to bruno@control4hacks.com. The newest JVC’s 4K projectors can get … Continue reading

FREE – Pushover.net Driver – Another Notification service

$
0
0
 Download Driver This driver allows you to receive notifications from your Control4 system in your phone or tablet. Pushover’s notification system supports a ton of different apps, and its new interface makes browsing those apps a lot easier with its … Continue reading
Viewing all 17 articles
Browse latest View live