jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Sun Mar 09, 2014 5:06 pm

CinemarDave wrote:In Family Manager have you entered the thermostat number in the address column? Aprilaire thermostats must be addressed by number.
Dave,

I thought it would be something stupid along those lines on my part. Defined the four thermostats in the Family Climate Manager with the "Network Address" as the thermostat ID and everything is working.

Does the driver support remote temperature sensors? Our 2nd thermostat has temperature sensors in each of the three bedrooms.

Thanks!

- Jeff

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Tue Mar 11, 2014 6:21 pm

Dave,

Okay, having a good overall experience here with the Aprilaire driver.
  • The communication baud rate (19200) does not stick between MLServer startup sessions, after a restart of MLServer and opening the driver the radio boxes for 9600/19200 are empty
  • The driver appears to be having a little trouble communicating with the thermostats upon initialization (see next bullet) could this be because I have 4? Every MLS startup results in some values not being loaded...
  • Design question, why on startup do you poll every thermostat individually? Simply issue commands such as "SN T?" and parse the responses for each populating those defined, the thermostats coordinate their response based upon ID # so there shouldn't be any collisions.
  • Figured out the driver does not poll but rather accepts unsolicited messages (Thank You! Finally someone did this right). As my thermostats were setup for polling, I don't know if there might be some benefit upon startup to ensure C1-8 are configured "ON" as mine were "OFF". I ended up shutting down MLS, firing up putty, and making the needed changes by hand, and restarting MLS.... (just a suggestion as it is a one time setup issue)
  • Can I get remote temperature sensor support? Maybe define them some how as sudo thermostats? They report nothing but the local Temp(F/C) or Humidity (%) and I have one in each of the bedrooms (3 total)
Thanks!

- Jeff

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Aprilaire Device Driver

Tue Mar 11, 2014 7:24 pm

The communication baud rate (19200) does not stick between MLServer startup sessions, after a restart of MLServer and opening the driver the radio boxes for 9600/19200 are empty
I'll fix that.
Design question, why on startup do you poll every thermostat individually?
That's how I thought it had to be done.
Simply issue commands such as "SN T?" and parse the responses
Do you have any mechanism to do that and capture the response so I can see what gets sent back?
Figured out the driver does not poll but rather accepts unsolicited messages (Thank You! Finally someone did this right). As my thermostats were setup for polling, I don't know if there might be some benefit upon startup to ensure C1-8 are configured "ON" as mine were "OFF". I ended up shutting down MLS, firing up putty, and making the needed changes by hand, and restarting MLS.... (just a suggestion as it is a one time setup issue)
What commands should it send when it connects?
Can I get remote temperature sensor support? Maybe define them some how as sudo thermostats? They report nothing but the local Temp(F/C) or Humidity (%) and I have one in each of the bedrooms (3 total)
Is that data being reported in the responses now or is it something that needs to be polled?

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Tue Mar 11, 2014 9:59 pm

Design question, why on startup do you poll every thermostat individually?
That's how I thought it had to be done.
Simply issue commands such as "SN T?" and parse the responses
Do you have any mechanism to do that and capture the response so I can see what gets sent back?
The response is no different then receiving the unsolicited messages except in this case the thermostats coordinate the response, it just seems more efficient to me but in this case I am wearing my manufacturing automation hat (been years).

Here is an example session I just did by hand:

Code: Select all

SN? SN1 SN2 SN3 SN4 SN CT? SN1 CT=0 SN2 CT=0 SN3 CT=0 SN4 CT=0 SN SCALE? SN1 SCALE=F SN2 SCALE=F SN3 SCALE=F SN4 SCALE=F SN T? SN1 T=75F SN2 T=77F SN3 T=76F SN4 T=80F SN RSM? SN1 RSM= SN2 RSM=M1:CT,XX M2:CT,XX M3:CT,XX SN3 RSM= SN4 RSM= SN R1S1? SN1 R1S1=-- SN2 R1S1=76F SN3 R1S1=-- SN4 R1S1=-- SN2 R1S1? SN2 R1S1=76F SN2 R2S1? SN2 R2S1=76F SN2 R3S1? SN2 R3S1=78F SN SH? SN1 SH=68F SN2 SH=68F SN3 SH=68F SN4 SH=68F SN SC? SN1 SC=79F SN2 SC=80F SN3 SC=76F SN4 SC=80F SN3 HVAC=G+Y1+W1-Y2-W2-B-O+
A minor observation, you do need to pause between commands. I attempted to cut-n-paste all of the commands from notepad into the comm session but it only accepted the first command and discarded the rest. Therefore, (wearing that hat again), I would consider the "SN?" command first to see what thermostats are on the network, then run the global query commands to initialize but not send the next command until the final thermostat had responded with a timeout in place should something unexpected happened.
Figured out the driver does not poll but rather accepts unsolicited messages (Thank You! Finally someone did this right). As my thermostats were setup for polling, I don't know if there might be some benefit upon startup to ensure C1-8 are configured "ON" as mine were "OFF". I ended up shutting down MLS, firing up putty, and making the needed changes by hand, and restarting MLS.... (just a suggestion as it is a one time setup issue)
What commands should it send when it connects?
I think the ability to turn these on/off would be "nice" but at a minimum you want to make sure C1-8 are on to enable unsolicited messages. This might be overkill as it is just a one time setup but according to the manual these are set off and must be turned on. You can always call out the thermostat specifically (SN?) but sometimes global is quicker.

Code: Select all

SN C1? SN1 C1=ON SN2 C1=ON SN3 C1=ON SN4 C1=ON SN C2? SN1 C2=ON SN2 C2=ON SN3 C2=ON SN4 C2=ON SN C1=OFF SN1 C1=OFF SN2 C1=OFF SN3 C1=OFF SN4 C1=OFF SN C1=ON SN1 C1=ON SN2 C1=ON SN3 C1=ON SN4 C1=ON
Can I get remote temperature sensor support? Maybe define them some how as sudo thermostats? They report nothing but the local Temp(F/C) or Humidity (%) and I have one in each of the bedrooms (3 total)
Is that data being reported in the responses now or is it something that needs to be polled?
Yeah, I have looked at the logs this evening and I don't see any unsolicited messages for the remote senors unfortunately. I may have to go without this feature though it was interesting to see (example above where "SN2 R3S1=78F" is the home office, always the warmest room in the house.

I have not had time to investigate the various status messages but does the driver/climate interpret the HVAC relays states? The example I happened to capture while getting the above details: "SN3 HVAC=G+Y1+W1-Y2-W2-B-O+" is an example of "Cooling" (then you have "Heating", "Emergency Heat", etc).

Thanks again!

- Jeff

PS: If I can replace our answering machine (have a couple potentials), import weather data from VWS, and get whole house paging working (aka; text to speech) I'll be all set to convert to a Cinemar/ISY solution!

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Wed Mar 12, 2014 9:36 am

Dave,

Let me know if you do not have the whole protocol document and I will forward you what I have...

- Jeff

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Aprilaire Device Driver

Wed Mar 12, 2014 10:54 am

The protocol document I have is from 2002. If yours is newer please email it to me.

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Wed Mar 12, 2014 5:42 pm

CinemarDave wrote:The protocol document I have is from 2002. If yours is newer please email it to me.
I doubt it is newer (copyright says 2002), but it's on the way.

Just a side note that even though we have heat pumps the thermostats do not control the cut-over it is built into the HVAC units themselves to either heat via heat pump (A/C run backwards) or natural gas (emergency).

- Jeff

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Sun May 04, 2014 4:24 pm

Dave,

Sorry, year-end school events (with associated travel) have been the priority the past month. This has been the first almost "free" weekend in over a month.

With the updated ISY driver I started looking into hooking the backdoor sensor and thermostats together again (it's all manual (aka; me) right now). Only to find out the thermostats are not functioning as expected through MLServer but work just fine if I shutdown MLServer and fire up a terminal session on COM4.

Here is the log file dump immediately after startup, very few responses being recorded as coming back:

Code: Select all

5/4/2014 4:06:38 PM ProcessCommand Cmd=[1~Status] Client=[] 5/4/2014 4:06:38 PM SendCommand TX: SN1|SN1 SCALE? 5/4/2014 4:06:43 PM SendCommand TX: SN1|SN1 T? 5/4/2014 4:06:48 PM SendCommand TX: SN1|SN1 OT? 5/4/2014 4:06:53 PM SendCommand TX: SN1|SN1 OH? 5/4/2014 4:06:53 PM ProcessResponse RX: (SN1) <<SN1 OH=--%>> 5/4/2014 4:06:53 PM SendCommand TX: SN1|SN1 SH? 5/4/2014 4:06:53 PM ProcessResponse RX: (SN1) <<SN1 SH=68F>> 5/4/2014 4:07:01 PM SendCommand TX: SN1|SN1 SC? 5/4/2014 4:07:01 PM ProcessResponse RX: (SN1) <<SN1 SC=79F>> 5/4/2014 4:07:01 PM SendCommand TX: SN1|SN1 SHUM? 5/4/2014 4:07:06 PM SendCommand TX: SN1|SN1 SDEH? 5/4/2014 4:07:09 PM ProcessResponse RX: (SN1) <<SN1 T=78F>> 5/4/2014 4:07:09 PM SendCommand TX: SN1|SN1 F? 5/4/2014 4:07:09 PM ProcessResponse RX: (SN1) <<SN1 F=AUTO>> 5/4/2014 4:07:09 PM SendCommand TX: SN1|SN1 M? 5/4/2014 4:07:14 PM ProcessCommand Cmd=[2~Status] Client=[] 5/4/2014 4:07:14 PM SendCommand TX: SN1|SN2 SCALE? 5/4/2014 4:07:19 PM SendCommand TX: SN1|SN2 T? 5/4/2014 4:07:55 PM SendCommand TX: SN1|SN2 OT? 5/4/2014 4:08:00 PM SendCommand TX: SN1|SN2 OH? 5/4/2014 4:08:05 PM SendCommand TX: SN1|SN2 SH? 5/4/2014 4:08:13 PM SendCommand TX: SN1|SN2 SC? 5/4/2014 4:08:18 PM SendCommand TX: SN1|SN2 SHUM? 5/4/2014 4:08:23 PM SendCommand TX: SN1|SN2 SDEH? 5/4/2014 4:08:28 PM SendCommand TX: SN1|SN2 F? 5/4/2014 4:08:33 PM SendCommand TX: SN1|SN2 M? 5/4/2014 4:08:33 PM ProcessResponse RX: (SN1) <<SN2 M=OFF>> 5/4/2014 4:08:33 PM ProcessCommand Cmd=[3~Status] Client=[] 5/4/2014 4:08:33 PM SendCommand TX: SN1|SN3 SCALE? 5/4/2014 4:08:38 PM SendCommand TX: SN1|SN3 T? 5/4/2014 4:08:39 PM ProcessResponse RX: (SN1) <<SN4 T=83F>> 5/4/2014 4:08:39 PM SendCommand TX: SN1|SN3 OT? 5/4/2014 4:08:43 PM ProcessResponse RX: (SN1) <<SN3 HVAC=G+Y1+W1-Y2-W2-B-O+>> 5/4/2014 4:08:43 PM SendCommand TX: SN1|SN3 OH? 5/4/2014 4:08:49 PM SendCommand TX: SN1|SN3 SH? 5/4/2014 4:08:49 PM ProcessResponse RX: (SN1) <<SN3 SH=68F>> 5/4/2014 4:08:49 PM SendCommand TX: SN1|SN3 SC? 5/4/2014 4:08:49 PM ProcessResponse RX: (SN1) <<SN3 SC=76F>> 5/4/2014 4:08:49 PM SendCommand TX: SN1|SN3 SHUM? 5/4/2014 4:08:54 PM SendCommand TX: SN1|SN3 SDEH? 5/4/2014 4:08:59 PM SendCommand TX: SN1|SN3 F? 5/4/2014 4:09:04 PM SendCommand TX: SN1|SN3 M? 5/4/2014 4:09:09 PM ProcessCommand Cmd=[4~Status] Client=[] 5/4/2014 4:09:09 PM SendCommand TX: SN1|SN4 SCALE? 5/4/2014 4:09:14 PM SendCommand TX: SN1|SN4 T? 5/4/2014 4:09:15 PM ProcessResponse RX: (SN1) <<SN4 SCALE=F>> 5/4/2014 4:09:15 PM SendCommand TX: SN1|SN4 OT? 5/4/2014 4:09:25 PM SendCommand TX: SN1|SN4 OH? 5/4/2014 4:09:30 PM SendCommand TX: SN1|SN4 SH? 5/4/2014 4:09:35 PM SendCommand TX: SN1|SN4 SC? 5/4/2014 4:09:40 PM SendCommand TX: SN1|SN4 SHUM? 5/4/2014 4:09:45 PM SendCommand TX: SN1|SN4 SDEH? 5/4/2014 4:09:50 PM SendCommand TX: SN1|SN4 F? 5/4/2014 4:10:01 PM SendCommand TX: SN1|SN4 M? 5/4/2014 4:16:32 PM ProcessResponse RX: (SN1) <<SN3 HVAC=G-Y1-W1-Y2-W2-B-O+>>
Keep in mind I use 19200 (not 9600) [driver dialog always has this wiped out]. Is the "TX" line what is being sent down the wire? If, yes, what is the "SN1|" part?

Next, the setting of the date/time is not working... could be related to the "SN1|" Part?

Code: Select all

5/4/2014 3:07:58 PM ProcessCommand Cmd=[1~SetDateTime] Client=[MyClient1] 5/4/2014 3:07:58 PM SendCommand TX: SN1|SN1 DATE=050414 5/4/2014 3:08:03 PM SendCommand TX: SN1|SN 1 TIME=1507 5/4/2014 3:08:13 PM ProcessCommand Cmd=[2~SetDateTime] Client=[MyClient1] 5/4/2014 3:08:13 PM SendCommand TX: SN1|SN2 DATE=050414 5/4/2014 3:08:18 PM SendCommand TX: SN1|SN 2 TIME=1508 5/4/2014 3:08:23 PM ProcessCommand Cmd=[3~SetDateTime] Client=[MyClient1] 5/4/2014 3:08:23 PM SendCommand TX: SN1|SN3 DATE=050414 5/4/2014 3:08:28 PM SendCommand TX: SN1|SN 3 TIME=1508 5/4/2014 3:08:33 PM ProcessCommand Cmd=[4~SetDateTime] Client=[MyClient1] 5/4/2014 3:08:33 PM SendCommand TX: SN1|SN4 DATE=050414 5/4/2014 3:08:38 PM SendCommand TX: SN1|SN 4 TIME=1508
Also, there is a space on command for the time part which is incorrect: "SN 4 TIME=1508" should be "SN4 TIME=1508" .... but all of this could be written simply as "SN TIME=1508" to hit all thermostats at once.

Let me know what else you need!

- Jeff

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Wed May 07, 2014 6:20 pm

Dave?

Am I crazy here or something, the only one with issues? I can open TeraTerm and type commands and receive responses just fine but the MLS Device Driver seems unable to do much of anything. I have everything configured for the major thermostat control task (triggered by the back door sensor after five minutes open through an ISY variable) except for thermostat control itself.

Seriously, let me know if it's me and/or I need to check all of the wiring....

- Jeff

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Aprilaire Device Driver

Wed May 07, 2014 6:46 pm

Sorry I have a zillion things I'm trying to juggle. I have fixed the 19.2 issue. Set up Team Viewer and email me the 9 digit TV ID and its password and let me work on your system.

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Wed May 07, 2014 9:50 pm

CinemarDave wrote:Sorry I have a zillion things I'm trying to juggle. I have fixed the 19.2 issue. Set up Team Viewer and email me the 9 digit TV ID and its password and let me work on your system.
PM sent with the details.

Not intending to be pushy, seriously, just used to your typical quick response!

Thanks!

- Jeff

jeffdoo
Intermediate
Intermediate
Posts: 334
Joined: Sat Aug 25, 2007 10:19 pm
Location: Huntersville, NC
Contact: Send private message

Re: Aprilaire Device Driver

Fri May 09, 2014 6:29 pm

Dave,

Thanks for the online session and taking time to debug the driver problem. I have not had a chance to exhaustively check over everything but I have data and I am able to turn the thermostats "Off" and back to "Auto" based upon the status of the ISY variable for the back door sensor.

Thanks!

- Jeff

AVDCORPNY
Expert
Expert
Posts: 607
Joined: Mon Oct 09, 2006 7:38 pm
Location: 3231 lafayette ave, bronx
Contact: Send private message

Re: Aprilaire Device Driver

Sun Feb 22, 2015 1:32 pm

Hi Dave , Could possible update driver to poll devices , right now i have to run a time that up status every 15 min, please let me know thank you mark

User avatar
AllonisDave
Founder
Founder
Posts: 11604
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: Aprilaire Device Driver

Mon Feb 23, 2015 7:41 pm

Updated Aprilaire driver now supports polling. Must be enabled in the driver if required.

AVDCORPNY
Expert
Expert
Posts: 607
Joined: Mon Oct 09, 2006 7:38 pm
Location: 3231 lafayette ave, bronx
Contact: Send private message

Re: Aprilaire Device Driver

Mon Feb 23, 2015 9:44 pm

CinemarDave wrote:Updated Aprilaire driver now supports polling. Must be enabled in the driver if required.
THANK YOU VERY MUCH Dave

Return to “MLServer 4 Device Drivers”

Who is online

Users browsing this forum: No registered users and 1 guest