Charmed Quark Systems
Google
WWW CharmedQuark.com

Go Back   Charmed Quark Systems > General Discussion > Beta Driver Development
Register FAQ Members List Calendar Mark Forums Read

Beta Driver Development Discussion of new drivers, finding someone to write a new driver, etc...

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2009, 08:22 AM
Fonceur Fonceur is offline
 
Join Date: Sep 2008
Location: Canada
Posts: 1,057
Default Field Generator - Beta version

The motivation of this CQC driver, is to provide a way to interact with applications developed outside the constraints of CML, through a TCP connection (Encoding: UTF-8). The flow goes something like this:
  • SomeApp.exe creates a TCP server on port 9600 and starts listening.
  • A FieldGenerator instance establishes a TCP connection on port 9600.
  • Following a successful connection, SomeApp.exe issues the command: "<STX>AppVersion|1.2<ETX>".
  • FieldGenerator is now "connected to the device" and ready for use.
  • SomeApp.exe creates various fields in FieldGenerator.
  • SomeApp.exe sets the field values in FieldGenerator.
  • A template is created in the interface editor to display the fields from the FieldGenerator instance.
  • Using the interface viewer, the user gets to see the states of SomeApp.exe.
  • Writing to the fields of FieldGenerator sends back a message (over TCP) to SomeApp.exe.

The instructions are provided on the Wiki.
Attached Files
File Type: cqcdrvpack FieldGenerator_0.6.5.CQCDrvPack (8.4 KB, 27 views)

Last edited by Fonceur : 03-24-2009 at 09:57 AM.
Reply With Quote
  #2  
Old 02-24-2009, 11:08 AM
Dean Roddey's Avatar
Dean Roddey Dean Roddey is offline
Administrator
 
Join Date: Aug 2002
Location: Mountain View, CA
Posts: 32,465
Default

Actually you can't use anything other than alphanum, underscore, and hyphen for field names anyway.
__________________
Dean Roddey
Software Geek Extraordinaire
Reply With Quote
  #3  
Old 02-24-2009, 11:15 AM
gacevich gacevich is offline
 
Join Date: Jun 2007
Location: Charlotte, NC
Posts: 914
Default

fonceur, what application do you have in mind that caused u to develop this driver?
Reply With Quote
  #4  
Old 02-24-2009, 12:02 PM
Fonceur Fonceur is offline
 
Join Date: Sep 2008
Location: Canada
Posts: 1,057
Default

Quote:
Originally Posted by gacevich
fonceur, what application do you have in mind that caused u to develop this driver?
1) I have developed some addons for BeyondTV, which rely on a .dll to access the BTV API, but recreating all those SOAP calls in CML would be way too painful... While I don't plan on writing that BeyondTV plugin just yet (or for a few months), I figured I might as well get that part done now...

2) For development, I need a driver that will act like a "CQC variable driver", but when a template is re-imported on a different machine won't jump to an existing and unrelated variable driver. This will be a second driver, but will use much of the same logic, just without the TCP part...

3) Tallus LLC (i.e. DavidL) is planning some "Home Automation neutral" applications, which can be used with CQC, MainLobby, HomeSeer, etc., so this driver would be the way in...
Reply With Quote
  #5  
Old 02-24-2009, 12:07 PM
gacevich gacevich is offline
 
Join Date: Jun 2007
Location: Charlotte, NC
Posts: 914
Default

thanks. as a btv user, i was hoping you would say that.
Reply With Quote
  #6  
Old 02-24-2009, 07:50 PM
brotsten brotsten is offline
 
Join Date: Jun 2006
Location: Poulsbo, Washington
Posts: 395
Default

All three of the BTV users can get excited now.

We are patiently waiting for the opportunity to sneer at all those yappy Sage types!

Brian
Reply With Quote
  #7  
Old 02-25-2009, 03:58 AM
gacevich gacevich is offline
 
Join Date: Jun 2007
Location: Charlotte, NC
Posts: 914
Default

and when the hdpvr becomes stable with btv we will really have something to crow about.
Reply With Quote
  #8  
Old 02-25-2009, 08:06 AM
SomeWhatLost SomeWhatLost is offline
 
Join Date: Dec 2006
Location: Illinois
Posts: 1,123
Default

just come over to the dark side.... its much better over here... we have sage hd extenders....
they are very nice...
__________________
NOTE: As one wise professional something once stated, I am ignorant & childish, with a mindset comparable to 9/11 troofers and wackjob conspiracy theorists. so don't take anything I say as advice...
disagree with Dean at your own peril...
Reply With Quote
  #9  
Old 02-25-2009, 01:28 PM
brotsten brotsten is offline
 
Join Date: Jun 2006
Location: Poulsbo, Washington
Posts: 395
Default

Quote:
Originally Posted by SomeWhatLost
just come over to the dark side.... its much better over here... we have sage hd extenders....
they are very nice...

No thanks, I tried it. I liked a lot of it's functions, but it's not nearly as intuitive as BTV.

Brian
Reply With Quote
  #10  
Old 02-25-2009, 01:40 PM
SomeWhatLost SomeWhatLost is offline
 
Join Date: Dec 2006
Location: Illinois
Posts: 1,123
Default

Quote:
Originally Posted by brotsten
No thanks, I tried it. I liked a lot of it's functions, but it's not nearly as intuitive as BTV.

Brian
true...

but one of these days, you will succumb to the dark side
__________________
NOTE: As one wise professional something once stated, I am ignorant & childish, with a mindset comparable to 9/11 troofers and wackjob conspiracy theorists. so don't take anything I say as advice...
disagree with Dean at your own peril...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:19 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.