Jump to content
C4 Forums | Control4

Driver reverse engineering?


Smwoodward

Recommended Posts

Could someone help me out reverse engineering a control4 driver?  I have attached the lua and xml file for someone to look over it.  I'm trying to determine exactly how it communicates with the alarm panel, which I believe it's over https://<ip_address>:12345 which I'm able to get status information and zone changes from the alarm panel over this connection with curl, but I'm also wanting to be able to send arm commands and such to the panel for other integrations.  I'm also having a bit of issue in determining what the format of the JSON is suppose to be.  This is likely due to my lack of knowledge of developing in C4.  

 

Thanks guys for the help.

Link to comment
Share on other sites


persistent SSL socket on port 12345.  When it connects it requests a summary is a JSON encoded packet.  Packet should bve something like this.

{"nonce": "", "action": "INFO", "info_type": "SUMMARY", "version": 0, "source": "C4","token":"whatever the token is in the driver's properties"}

Also did Qolsys provide this driver to you unencrypted as the one in the online database is encrypted.

Link to comment
Share on other sites

I got the driver from one of the groups I'm in.  

I can curl the IP:port of my panel and watch the information that it sends to me for sensors opening and such, but when trying to paste the packet in while curl is connected, I get nothing back. I did pull the token from the alarm panel and put that into the last field.

 

Link to comment
Share on other sites

3 hours ago, Smwoodward said:

I got the driver from one of the groups I'm in.  

I can curl the IP:port of my panel and watch the information that it sends to me for sensors opening and such, but when trying to paste the packet in while curl is connected, I get nothing back. I did pull the token from the alarm panel and put that into the last field.

 

Which group is that? Its probably best to reach out to the Qolsys guys to get official documentation them

Link to comment
Share on other sites

4 hours ago, Smwoodward said:

I got the driver from one of the groups I'm in.  

I can curl the IP:port of my panel and watch the information that it sends to me for sensors opening and such, but when trying to paste the packet in while curl is connected, I get nothing back. I did pull the token from the alarm panel and put that into the last field.

 

DIYers that cracked it? Possibly?

 

I have heard the driver encryption was broken.

Link to comment
Share on other sites

4 hours ago, alanchow said:

persistent SSL socket on port 12345.  When it connects it requests a summary is a JSON encoded packet.  Packet should bve something like this.

{"nonce": "", "action": "INFO", "info_type": "SUMMARY", "version": 0, "source": "C4","token":"whatever the token is in the driver's properties"}

Also did Qolsys provide this driver to you unencrypted as the one in the online database is encrypted.

Got what I needed, drivers are no longer needed and deleted. Thank you for your help. 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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