Jump to content
C4 Forums | Control4

KNX Driver to control Zennio termostat


D.Mitry

Recommended Posts

Hello All,

 

I am new guy in Control4 driver development and need some help.

 

I have learned "Driver Development Essentials and Templates" videos and configured environment.

 

Then I have tested KNX_Network and KNX_Switch (Light_V2) with my HC-800 and my KNX test network - all working.

 

After that I have decided to use KNX_Switch as template for my KNX_Temp_Control driver.

 

Using DriverEditor, Main, Proxies, Capabilities, Connections tabs were changed.

 

During code modification, I have met some difficults.

 

Code examples and function calls:

 

KNX_BINDING_ID = 1

........................

 

SendToProxy(KNX_BINDING_ID, "SEND_TO_KNX", tParams)

........................

 

SendToProxy(KNX_BINDING_ID, "REQUEST_STATUS", tNetworkParams)

 

......and so on

 

As I know Binding ID equal to 1 is - Control Bindings        = 1 -> 999 - not proxy.

 

But it is used with SendToProxy function:

 

C4:SendToProxy(idBinding, strCommand, strParam)

 

Function called from DriverWorks driver to send a Control4 BindMessage to the proxy

bound to the specified binding.

 

Parameters

idBinding - Binding ID for the proxy you wish to send to

 

This is first fing which confused me.

 

Second thing is, if this connection is proxy, althought its id is 1, where can find description of commands and notifications?

 

For example, from code I see commands, like "REQUEST_STATUS", "SEND_TO_KNX"

 

 

Can anybody help me with these isses or correct me if I am wrong.

 

Thanks in advance,

Dmitry

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.