Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CBUS CGate Driver
#41
Unfortunately I havent kept my version of CQC uptodate so I cant test but I did find this post

http://www.charmedquark.com/vb_forum/sho...hp?t=11674

which suggests the DefBindLocal is no longer available and so I need to modify the driver.

I'll have alook next week and if your willing to do trial and error we may be able to resolve.

The problem code is here

Method GetCommResource() Returns Boolean
Begin

If (GetVerboseLevel() >= VerboseLvls.High)
LogMsg(">>GetCommResource");
EndIf;


If (!m_Sock.GetIsBound())
Try
m_Sock.DefBindLocal(SockProtos.TCP);


EndTry;

Catch
If (GetVerboseLevel() >= VerboseLvls.Low)
LogMsg1( "Exception in GetCommResource(), ErrorText=%(1)", $Exception.GetErrorText() );
EndIf;

Return False;

EndCatch;
EndIf;

If (!m_EvtSock.GetIsBound())
Try
m_EvtSock.DefBindLocal(SockProtos.TCP);


EndTry;

Catch
If (GetVerboseLevel() >= VerboseLvls.Low)
LogMsg1( "Exception in GetCommResource(), ErrorText=%(1)", $Exception.GetErrorText() );
EndIf;

Return False;

EndCatch;
EndIf;

If (GetVerboseLevel() >= VerboseLvls.High)
LogMsg("<<GetCommResource");
EndIf;

Return True;
EndMethod;
Reply
#42
I'll fix it for you later today and update the first post. The fix is easy, but I need to look at what type of socket it is. Are they datagram sockets or stream sockets? If stream sockets, just remove the binding calls (and related try/catch blocks around them) altogether since they aren't needed. If they are datagram sockets being used to listen, then we'll have to have a bind but a slightly different one.
Dean Roddey
Software Geek Extraordinaire
Reply
#43
Thanks very much for the prompt response & actions Dean & Martin. C-Gate uses TCP sockets, so to answer Dean's question, I believe that they will be stream sockets.
Regards, Brad.
Reply
#44
If that's true, just remove those binding calls and probably it'll be happy. If not, let me know.
Dean Roddey
Software Geek Extraordinaire
Reply
#45
Oops, I didn't notice he said next week before he'd get a chance to look at it. I updated the first post with a 'SocketBinding' version. Give that a try. Import the package and do a reconfigure on the driver to pick up the changes.
Dean Roddey
Software Geek Extraordinaire
Reply
#46
Thanks Dean, it works perfectly!
Reply
#47
A really old thread but something i am just trying now.

How does the Trigger field work?
Mykel Koblenz
Illawarra Smart Home
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  SNMP Driver wuench 115 255,789 01-01-2018, 05:18 PM
Last Post: Dean Roddey
  Sony Bravia TV Driver znelbok 6 188 12-27-2017, 08:03 AM
Last Post: jkmonroe
  Samsung SmartTV driver? sic0048 3 267 12-17-2017, 11:51 AM
Last Post: Dean Roddey
  Vantage Controls Driver for Infusion System KenC 3 870 10-23-2017, 12:10 PM
Last Post: Dean Roddey
  Another SMS Driver - SMS Global, one for everyone else znelbok 21 6,144 10-21-2017, 07:19 PM
Last Post: znelbok
  Monoprice Blackbird 4x4 HDMI Switcher - Driver request batwater 9 5,268 10-14-2017, 05:30 PM
Last Post: rtarver
  XBMC Driver wuench 419 124,530 07-02-2017, 11:04 AM
Last Post: Dean Roddey
  IMAP Email Driver whozeawhat 11 2,687 06-14-2017, 11:53 AM
Last Post: whozeawhat
  Which JVC Projector Driver indygreg 29 6,780 05-12-2017, 08:29 AM
Last Post: Dean Roddey
  Amazon Echo Hue Simulator Driver wuench 101 24,874 05-02-2017, 09:38 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)