User avatar
jwr
Senior Member
Senior Member
Posts: 182
Joined: Sat Oct 25, 2008 12:13 pm
Contact: Send private message

Serial port reconnect logic?

Sun Mar 24, 2019 6:32 pm

I'm having a problem with the serial port connection (Global Cache) in the Carrier driver. Any time the connection drops it doesn't reconnect. I have to restart myServer to get it to reconnect. Can the same reconnect logic that was added to the rain 8 serial connection be added to the Carrier connection?

Thanks!

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

Re: Serial port reconnect logic?

Wed Mar 27, 2019 11:48 am

I just updated the Carrier driver to be more sensitive to network disconnects. Give the new version a try and let me know how it works.

User avatar
jwr
Senior Member
Senior Member
Posts: 182
Joined: Sat Oct 25, 2008 12:13 pm
Contact: Send private message

Re: Serial port reconnect logic?

Wed Mar 27, 2019 9:16 pm

Hi Dave,

Thanks for working on this. I tested the new version and it doesn't seem to reconnect. It noticed the device was disconnected at the end of the status requests for all the zones which was long after the network drop but it never reconnected. Here are excerpts from the log:

3/27/2019 8:58:21 PM RX:1 S1VACMINH:15%
3/27/2019 8:58:21 PM TX:1 S1VACMAXH?
3/27/2019 8:58:22 PM RX:1 S1VACMAXH:60%
3/27/2019 8:58:22 PM TX:1 S1VACFAN?
3/27/2019 8:58:24 PM RX:1 S1VACFAN:AUTO
3/27/2019 8:58:24 PM TX:1 S1CFGEM?
3/27/2019 8:58:25 PM RX:1 S1CFGEM:F
3/27/2019 8:58:25 PM TX:1 S1CFGAUTO?
3/27/2019 8:58:27 PM RX:1 S1CFGAUTO:ON
3/27/2019 8:58:27 PM TX:1 S1CFGTYPE?
3/27/2019 8:58:28 PM RX:1 S1CFGTYPE:HEATCOOL
3/27/2019 8:58:28 PM TX:1 S1CFGDEAD?
3/27/2019 8:58:30 PM RX:1 S1CFGDEAD:2
3/27/2019 8:58:30 PM TX:1 S1CFGCPH?
3/27/2019 8:58:31 PM RX:1 S1CFGCPH:4
3/27/2019 8:58:31 PM TX:1 S1CFGFAN?
3/27/2019 8:58:33 PM RX:1 S1CFGFAN:OFF
3/27/2019 8:58:33 PM ProcessCommand Cmd=[9~SystemStatus] Client=[]
3/27/2019 8:58:33 PM TX:1 S2OAT?
3/27/2019 8:58:39 PM TX:1 S2MODE?
3/27/2019 8:58:39 PM TX:1 S2HUMID?
3/27/2019 8:58:39 PM TX:1 S2DAY?
3/27/2019 8:58:39 PM TX:1 S2TIME?
3/27/2019 8:58:39 PM TX:1 S2FILTRLVL?
3/27/2019 8:58:39 PM TX:1 S2UVLVL?
3/27/2019 8:58:39 PM TX:1 S2HUMLVL?
<snip>
3/27/2019 8:58:39 PM TX:1 S2Z3OVR?
3/27/2019 8:58:39 PM TX:1 S2Z3OTMR?
3/27/2019 8:58:39 PM TX:1 S2Z3NAME?
3/27/2019 8:58:39 PM ProcessCommand Cmd=[12~Status] Client=[]
3/27/2019 8:58:39 PM TX:1 S2Z4RT?
3/27/2019 8:58:39 PM TX:1 S2Z4RH?
3/27/2019 8:58:39 PM TX:1 S2Z4FAN?
3/27/2019 8:58:39 PM TX:1 S2Z4HOLD?
3/27/2019 8:58:39 PM TX:1 S2Z4UNOCC?
3/27/2019 8:58:39 PM TX:1 S2Z4HTSP?
3/27/2019 8:58:39 PM TX:1 S2Z4CLSP?
3/27/2019 8:58:39 PM TX:1 S2Z4RHTG?
3/27/2019 8:58:39 PM TX:1 S2Z4OVR?
3/27/2019 8:58:39 PM TX:1 S2Z4OTMR?
3/27/2019 8:58:39 PM TX:1 S2Z4NAME?
3/27/2019 8:59:00 PM Network Remote Device 192.168.75.15 has disconnected.
3/27/2019 9:03:39 PM ProcessCommand Cmd=[1~SystemStatus] Client=[]
3/27/2019 9:03:39 PM TX:1 S1OAT?
3/27/2019 9:03:39 PM TX:1 S1MODE?
3/27/2019 9:03:39 PM TX:1 S1HUMID?

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

Re: Serial port reconnect logic?

Thu Mar 28, 2019 12:25 pm

I'm not sure why you are not seeing the new messages I put into the driver. You are logged into the Installer using the server subscription service? In any event I made a couple of more changes this morning. Install that version and see what it logs.

User avatar
jwr
Senior Member
Senior Member
Posts: 182
Joined: Sat Oct 25, 2008 12:13 pm
Contact: Send private message

Re: Serial port reconnect logic?

Thu Mar 28, 2019 10:40 pm

I am logging in from the Installer. I installed the latest (version. 5.0.7026.16857) and it's still not reconnecting. I'm seeing a little different behavior. When the device disconnects, it rapidly goes through the remaining zone queries in 1 or 2 seconds. I guess it's not waiting for a response at all. I had to restart myServer to get it to reconnect (at 9:17:20). BTW: I've noticed the Carrier device does drop requests from time to time as you can see in the log at 9:53:26. With this new driver it doesn't seem to retry a request and the reconnect doesn't work... After this drop, I get no more data until I restart myServer.

3/28/2019 9:06:23 PM TX:1 S1VACMAXH?
3/28/2019 9:06:25 PM RX:1 S1VACMAXH:60%
3/28/2019 9:06:25 PM TX:1 S1VACFAN?
3/28/2019 9:06:26 PM RX:1 S1VACFAN:AUTO
3/28/2019 9:06:26 PM TX:1 S1CFGEM?
3/28/2019 9:06:28 PM RX:1 S1CFGEM:F
3/28/2019 9:06:28 PM TX:1 S1CFGAUTO?
3/28/2019 9:06:29 PM RX:1 S1CFGAUTO:ON
3/28/2019 9:06:29 PM TX:1 S1CFGTYPE?
3/28/2019 9:06:31 PM RX:1 S1CFGTYPE:HEATCOOL
3/28/2019 9:06:31 PM TX:1 S1CFGDEAD?
3/28/2019 9:06:32 PM RX:1 S1CFGDEAD:2
3/28/2019 9:06:32 PM TX:1 S1CFGCPH?
3/28/2019 9:06:37 PM TX:1 No response from device within the allotted time frame. Dropping connection.
3/28/2019 9:06:38 PM TX:1 Attempting to reconnect to device.
3/28/2019 9:06:38 PM TX:1 S1CFGFAN?
3/28/2019 9:06:38 PM ProcessCommand Cmd=[9~SystemStatus] Client=[]
3/28/2019 9:06:38 PM TX:1 S2OAT?
3/28/2019 9:06:38 PM TX:1 S2MODE?
3/28/2019 9:06:38 PM TX:1 S2HUMID?
3/28/2019 9:06:38 PM TX:1 S2DAY?
3/28/2019 9:06:38 PM TX:1 S2TIME?
3/28/2019 9:06:38 PM TX:1 S2FILTRLVL?
3/28/2019 9:06:38 PM TX:1 S2UVLVL?
3/28/2019 9:06:38 PM TX:1 S2HUMLVL?
3/28/2019 9:06:38 PM TX:1 S2UVRMD?
3/28/2019 9:06:38 PM TX:1 S2HUMRMD?
3/28/2019 9:06:38 PM TX:1 S2BLIGHT?
3/28/2019 9:06:38 PM TX:1 S2VACAT?
<snip>
3/28/2019 9:11:39 PM TX:1 S2Z4HTSP?
3/28/2019 9:11:39 PM TX:1 S2Z4CLSP?
3/28/2019 9:11:39 PM TX:1 S2Z4RHTG?
3/28/2019 9:11:39 PM TX:1 S2Z4OVR?
3/28/2019 9:11:39 PM TX:1 S2Z4OTMR?
3/28/2019 9:11:39 PM TX:1 S2Z4NAME?
3/28/2019 9:11:59 PM Network Remote Device 192.168.75.15 has disconnected.
3/28/2019 9:17:20 PM TX:1 S1MODE?
3/28/2019 9:17:22 PM RX:1 S1MODE:AUTO
3/28/2019 9:17:22 PM TX:1 S1HUMID?
3/28/2019 9:17:23 PM RX:1 S1HUMID:OFF
3/28/2019 9:17:23 PM TX:1 S1DAY?
3/28/2019 9:17:25 PM RX:1 S1DAY:THURSDAY
3/28/2019 9:17:25 PM TX:1 S1TIME?
<snip>
3/28/2019 9:53:17 PM RX:1 S1VACMINT:68°F
3/28/2019 9:53:17 PM TX:1 S1VACMAXT?
3/28/2019 9:53:18 PM RX:1 S1VACMAXT:80°F
3/28/2019 9:53:18 PM TX:1 S1VACMINH?
3/28/2019 9:53:20 PM RX:1 S1VACMINH:15%
3/28/2019 9:53:20 PM TX:1 S1VACMAXH?
3/28/2019 9:53:21 PM RX:1 S1VACMAXH:60%
3/28/2019 9:53:21 PM TX:1 S1VACFAN?
3/28/2019 9:53:26 PM TX:1 No response from device within the allotted time frame. Dropping connection.
3/28/2019 9:53:27 PM TX:1 Attempting to reconnect to device.
3/28/2019 9:53:27 PM TX:1 S1CFGEM?
3/28/2019 9:53:28 PM TX:1 S1CFGAUTO?
3/28/2019 9:53:28 PM TX:1 S1CFGTYPE?
3/28/2019 9:53:28 PM TX:1 S1CFGDEAD?
3/28/2019 9:53:28 PM TX:1 S1CFGCPH?
3/28/2019 9:53:28 PM TX:1 S1CFGFAN?
3/28/2019 9:53:28 PM ProcessCommand Cmd=[9~SystemStatus] Client=[]
3/28/2019 9:53:28 PM TX:1 S2OAT?
3/28/2019 9:53:28 PM TX:1 S2MODE?

User avatar
jwr
Senior Member
Senior Member
Posts: 182
Joined: Sat Oct 25, 2008 12:13 pm
Contact: Send private message

Re: Serial port reconnect logic?

Mon Apr 08, 2019 9:20 pm

Hey Dave,

The version of the driver breaks the connection shortly after server startup and never reconnects. Is there anything that can be done to correct this?

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

Re: Serial port reconnect logic?

Tue Apr 09, 2019 11:34 am

Install the version that was just released and get TeamViewer installed and email me your TeamViewer ID and password. I need to see what it is doing first hand to really get to the bottom of this.

User avatar
jwr
Senior Member
Senior Member
Posts: 182
Joined: Sat Oct 25, 2008 12:13 pm
Contact: Send private message

Re: Serial port reconnect logic?

Mon Apr 15, 2019 10:07 pm

Hey Dave,

I'm not sure if you connected using Teamviewer or not. I did install the last version you mentioned and it seems to be working correctly. It has reconnected several time correctly. I'll let you know if anything changes.

User avatar
DavidL
Founder
Founder
Posts: 11909
Joined: Sat Feb 08, 2003 9:39 am
Location: Metamora, Michigan
Contact: Send private message

Re: Serial port reconnect logic?

Tue Apr 16, 2019 12:16 am

Nice. thanx for the update.

User avatar
jwr
Senior Member
Senior Member
Posts: 182
Joined: Sat Oct 25, 2008 12:13 pm
Contact: Send private message

Re: Serial port reconnect logic?

Tue Apr 23, 2019 11:45 pm

After letting this run for a while, I think there is a problem... Not sure if it's this driver or not. My machine becomes very sluggish after running a few hours. Using TaskManager I can see that myServer is taking up 100% of the CPU. Seems like something is spinning.

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

Re: Serial port reconnect logic?

Wed May 01, 2019 2:04 pm

Unload the Carrier driver and let it run for a while and see if the cpu issue goes away. Then let me know the results.

Return to “Climate Family Device Drivers”

Who is online

Users browsing this forum: No registered users and 1 guest