Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Really simple CML driver questions
Of course - bit of brain fade there. Dont do this often enough that I forget more and more
Mykel Koblenz
Illawarra Smart Home
Reply
I have just compiled my driver with no errors but its doing something really strange that I can't figure out why.

I start the driver "Go" and it starts as it should, enters the start method and ten executes Simulate().

This takes me to the InitlaizeOther method where the local are all established and it gets the  four values provided in the manifest.  There are still some other things to do in this method but instead of continuing on it goes back to the Start method and returns a 0 and completes.

I checked against another similar known working driver and everything looks like its right but the other driver works and this one doesn't.

I've attached it here.  This one has me totally stumped.


Attached Files
.zip   Prowl.zip (Size: 5.52 KB / Downloads: 1)
Mykel Koblenz
Illawarra Smart Home
Reply
Generally that means it's throwing an exception in InitializeOther(), which you aren't catching. So actually it had ended due to the exception. and the next go just restarted it. Right click on the editor and select the option for reporting exceptions at the point where they are thrown. And also generally you want to put a Try/Catch around the whole InitializeOther contents, log something there that indicates that that method failed and including the exception text, and then return a failure status. If you don't catch the exception, it propagates back to the base class which (in the normal course of events) would just try again next time to get the driver to load.
Dean Roddey
Explorans limites defectum
Reply
Back at it again

A SMS driver I have has been broken by the provider moving to TLS. No biggie as the API is the some just using https now. So I went through and updated the driver and I now get an error

Code:
{
    CIDSChan, CIDSChan_SChan.cpp.1116, Failed/Cannot Do, Error: 5017/0/0
    The server requires a client certificate. Name=Secure Client Data Source
      <CQCDrvDev> CIDSChan_SChan.cpp - 790

}
10/10 06:06:31-Zeus01, CQCDrvDev, CIDMacroDbgThread1
{
    CQCGenDrvS, MEng.User.CQC.Drivers.SMS.SMSGlobal.DriverImpl.324, Status/App Status
    <GetIncomingData>: [DISCONNECT] The server requires a client certificate. Name=Secure Client Data Source
}

This is after a SendGET. initially SendGET was for http only and DoSSLGET had to be used but I saw that it was depricated and that SendGET handles SSL now - so I am still using that but I dont understand why I am getting the error.

Mick
Mykel Koblenz
Illawarra Smart Home
Reply
It's not finding a certificate for the target server. If you are doing HTTPS in the URL, then you would generally want to use the versions of the GET, POST, etc... methods that take a data source, the 'RU' ones for re-usable i.e. they create persistent HTTP 1.1 type connections as well. You indicate in the data source object setup what the target host is, and it does the certificate lookup. They may require a 1.1 style connection as well, so that's another reason for using the UR versions.

Give that a try if you haven't already.
Dean Roddey
Explorans limites defectum
Reply
I used the SendRUGET and it requires a data source.

So I added that but it needs to set up (TCPSetup) which needs a IPEndpoint.

I am getting stuck with this - I am not sure on what to do with the IPEndPoint
Mykel Koblenz
Illawarra Smart Home
Reply
That is just the host name and port that you are going to connect to, which is the same as what is in the URL.
Dean Roddey
Explorans limites defectum
Reply
OK, got it working.

the URL was api.smsglobal.com and that didn't work but smsglobal.com did so I have got it working - not sure I understand it all but its working so I'll just leave it at that and be happy that I can send an SMS now.
Mykel Koblenz
Illawarra Smart Home
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ClickPLC driver now failing after upgrade znelbok 2 440 09-21-2020, 10:48 PM
Last Post: znelbok
  Pentair driver tom 5 1,092 08-02-2020, 11:29 PM
Last Post: kblagron
  Marantz receiver driver (IP) dlmorgan999 6 1,104 05-15-2020, 03:32 PM
Last Post: dlmorgan999
  Variables Driver Client gReatAutomation 4 877 04-25-2020, 12:46 PM
Last Post: gReatAutomation
  A couple of quick questions with design and states ghurty 7 1,036 04-21-2020, 11:50 AM
Last Post: Dean Roddey
  Reconfig of Driver Causes Built In Triggers to Fire gReatAutomation 2 680 03-25-2020, 04:09 PM
Last Post: gReatAutomation
  Lutron RadioRA2 Driver and Lutron Visor Control gReatAutomation 29 8,068 03-19-2020, 01:03 PM
Last Post: gReatAutomation
  Timers Driver / Field Time Image / Seconds gReatAutomation 1 643 03-16-2020, 05:48 PM
Last Post: Dean Roddey
  Problem with Accesssing Variables Driver Client Interface kblagron 5 1,241 03-05-2020, 02:24 PM
Last Post: kblagron
  ISYv2 Driver - FanLinc simplextech 4 1,340 02-04-2020, 06:55 PM
Last Post: simplextech

Forum Jump:


Users browsing this thread: 1 Guest(s)