Receive Buffer Overflow Question

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
James D
Senior Member
Posts: 133
Joined: Wed Jun 06, 2007 3:30 pm
Location: Baja California

Receive Buffer Overflow Question

Post by James D »

HBERROR.jpg
HBERROR.jpg (18.04 KiB) Viewed 6564 times
I keep getting these Buffer Overflow Errors. They keep stopping my Zwave thermostat. What are the Buffer Overflow?
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Receive Buffer Overflow Question

Post by ScottBot »

The Z-Wave hardware interface has a memory buffer where it will keep incoming data until it can figure out what to do with it. Generally, the interface can identify the packet type and will know exactly what the data is. The buffer is 256 bytes long, which is enough room to handle any command. However, if for some reason the interface can't find the end of the data, the buffer will overflow and the interface will need to reset the input buffer.

The error that you are seeing before the buffer reset error is probably what is causing the issue. It's possible that the data being returned by the sensor is just not being handled correctly by the plugin. Do you know what kind of sensor and data is being returned?
Scott
James D
Senior Member
Posts: 133
Joined: Wed Jun 06, 2007 3:30 pm
Location: Baja California

Re: Receive Buffer Overflow Question

Post by James D »

I have only a Z-Wave thermostat (Wayne Dalton WDTC-20) and a ControlThink Zwave usb adapter on my Z-Wave network. I also downgraded the firmware on the ControlThink Zwave usb adapter to work with the Housebot program. How do I find what data is being returned? Any pointers will be appreciated.
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Receive Buffer Overflow Question

Post by ScottBot »

The best thing to do is to run a hardware interface trace. Sometimes it's tedious and difficult to determine much from the trace, but sometimes there's something interesting that shows up.
Scott
James D
Senior Member
Posts: 133
Joined: Wed Jun 06, 2007 3:30 pm
Location: Baja California

Re: Receive Buffer Overflow Question

Post by James D »

I can PM you the complete Interface trace, because .CSV files are not allowed on the forum. I can send it to you.
raptor_demon
Senior Member
Posts: 141
Joined: Tue Jul 07, 2009 12:55 pm
Location: NC

Re: Receive Buffer Overflow Question

Post by raptor_demon »

Hi I have noticed this with my Trane Z-wave Thermostat.

Let me know what you find.

Raptor
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Receive Buffer Overflow Question

Post by ScottBot »

James D wrote:I can PM you the complete Interface trace, because .CSV files are not allowed on the forum. I can send it to you.
You can send it to me at support @ cebotics.com
Scott
James D
Senior Member
Posts: 133
Joined: Wed Jun 06, 2007 3:30 pm
Location: Baja California

Re: Receive Buffer Overflow Question

Post by James D »

I sent you an email with that error trace.

Thanks.
James D
Senior Member
Posts: 133
Joined: Wed Jun 06, 2007 3:30 pm
Location: Baja California

Re: Receive Buffer Overflow Question

Post by James D »

Hey Raptor did you have to downgrade your firmware on your z-wave usb adaptor to get HouseBot to work with your thermostat?
I am just wondering if that is the key to these buffer overflow. Just a thought.
raptor_demon
Senior Member
Posts: 141
Joined: Tue Jul 07, 2009 12:55 pm
Location: NC

Re: Receive Buffer Overflow Question

Post by raptor_demon »

Hi,

No i did not, i have a Wayne Dalton USB z-wave stick.

I have enabled hardware tracing on the Z-wave adaptor so i should have some data there soon if needed.

Raptor
raptor_demon
Senior Member
Posts: 141
Joined: Tue Jul 07, 2009 12:55 pm
Location: NC

Re: Receive Buffer Overflow Question

Post by raptor_demon »

Was this ever resolved?
James D
Senior Member
Posts: 133
Joined: Wed Jun 06, 2007 3:30 pm
Location: Baja California

Re: Receive Buffer Overflow Question

Post by James D »

Wouldn't you know it. I sent my trace file to Scott, and since then I have not got any errors.
raptor_demon
Senior Member
Posts: 141
Joined: Tue Jul 07, 2009 12:55 pm
Location: NC

Re: Receive Buffer Overflow Question

Post by raptor_demon »

Weird, well i am still getting these, house bot also still crashes for no reason and i cannot figure out why.

Its frustrating becuase the whole this is becoming unreliable. :(
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Receive Buffer Overflow Question

Post by ScottBot »

raptor_demon wrote:Weird, well i am still getting these, house bot also still crashes for no reason and i cannot figure out why. (
If you can send me a dump file (found in the HouseBot dump directory), maybe it will shed some light on the crash. Send it to support at cebotics.com
Scott
Post Reply