Page 1 of 1

Insufficient data in read buffer

Posted: Fri Aug 13, 2010 4:34 am
by allanstevens
Hi,

I have just upgrade my HouseBot server to a new dual core atom, but am getting an issue with my CM12U.

Seems to all work fine, then after a few hours I will start getting the following error:

Error reading COM port. Error = Insufficient data in read buffer

If I disable/enable the hardware device in HouseBot it's back working. Then after a few hours it will start again.

I have done a trace and can see the errors, but does not mean much to me, does anyone have any ideas?

Code: Select all

August 12, 2010	5:36:31 PM	CM12U	Debug	Sending X10 Command - Begin
August 12, 2010	5:36:31 PM	CM12U	Debug	Sending X10 Command Part 1
August 12, 2010	5:36:31 PM	CM12U	Debug	--> Read Pending... WriteData. 2 bytes
August 12, 2010	5:36:31 PM	CM12U	Debug	Writing [2] bytes [04 61]
August 12, 2010	5:36:31 PM	CM12U	Debug	Read [1] bytes [65]
August 12, 2010	5:36:31 PM	CM12U	Debug	Sending X10 Command Part 1 ACK
August 12, 2010	5:36:31 PM	CM12U	Debug	--> Read Pending... WriteData. 1 bytes
August 12, 2010	5:36:32 PM	CM12U	Debug	Writing [1] bytes [00]
August 12, 2010	5:36:32 PM	CM12U	Debug	Reading X10 Command Part 1 ACK
August 12, 2010	5:36:32 PM	CM12U	Debug	Read [1] bytes [55]
August 12, 2010	5:36:32 PM	CM12U	Debug	Sending X10 Command Part 2
August 12, 2010	5:36:32 PM	CM12U	Debug	--> Read Pending... WriteData. 2 bytes
August 12, 2010	5:36:33 PM	CM12U	Debug	Writing [2] bytes [06 62]
August 12, 2010	5:36:33 PM	CM12U	Debug	Read [1] bytes [68]
August 12, 2010	5:36:33 PM	CM12U	Debug	Sending X10 Command Part 2 ACK
August 12, 2010	5:36:33 PM	CM12U	Debug	--> Read Pending... WriteData. 1 bytes
August 12, 2010	5:36:33 PM	CM12U	Debug	Writing [1] bytes [00]
August 12, 2010	5:36:33 PM	CM12U	Debug	Reading X10 Command Part 2 ACK
August 12, 2010	5:36:43 PM	CM12U	Debug	CSerialPort::ReadData() is requesting 1 bytes and there are only 0 bytes [] in the [Solicited] read buffer.  Waited 10 seconds.
August 12, 2010	5:36:43 PM	CM12U	Debug	The [Unsolicited] Buffer contains 0 bytes [].
August 12, 2010	5:36:44 PM	CM12U	Error	Error reading COM port.  Error = Insufficient data in read buffer
August 12, 2010	5:42:50 PM	CM12U	Debug	Sending X10 Command - Begin
August 12, 2010	5:42:50 PM	CM12U	Debug	Sending X10 Command Part 1
August 12, 2010	5:42:50 PM	CM12U	Debug	--> Read Pending... WriteData. 2 bytes
August 12, 2010	5:42:50 PM	CM12U	Debug	Writing [2] bytes [04 61]
August 12, 2010	5:43:01 PM	CM12U	Debug	CSerialPort::ReadData() is requesting 1 bytes and there are only 0 bytes [] in the [Solicited] read buffer.  Waited 10 seconds.
August 12, 2010	5:43:01 PM	CM12U	Debug	The [Unsolicited] Buffer contains 0 bytes [].
August 12, 2010	5:43:01 PM	CM12U	Error	Error reading COM port.  Error = Insufficient data in read buffer
August 12, 2010	5:43:34 PM	CM12U	Debug	Sending X10 Command - Begin
August 12, 2010	5:43:34 PM	CM12U	Debug	Sending X10 Command Part 1
August 12, 2010	5:43:34 PM	CM12U	Debug	--> Read Pending... WriteData. 2 bytes
August 12, 2010	5:43:34 PM	CM12U	Debug	Writing [2] bytes [04 67]
August 12, 2010	5:43:44 PM	CM12U	Debug	CSerialPort::ReadData() is requesting 1 bytes and there are only 0 bytes [] in the [Solicited] read buffer.  Waited 10 seconds.
August 12, 2010	5:43:44 PM	CM12U	Debug	The [Unsolicited] Buffer contains 0 bytes [].
August 12, 2010	5:43:44 PM	CM12U	Error	Error reading COM port.  Error = Insufficient data in read buffer
August 12, 2010	5:46:11 PM	CM12U	Debug	Sending X10 Command - Begin
August 12, 2010	5:46:11 PM	CM12U	Debug	Sending X10 Command Part 1
August 12, 2010	5:46:11 PM	CM12U	Debug	--> Read Pending... WriteData. 2 bytes
August 12, 2010	5:46:11 PM	CM12U	Debug	Writing [2] bytes [04 61]
August 12, 2010	5:46:22 PM	CM12U	Error	Error reading COM port.  Error = Insufficient data in read buffer
August 12, 2010	5:55:07 PM	CM12U	Error	Unknown data received [4d].
Thanks for reading,
Allan

Re: Insufficient data in read buffer

Posted: Sat Aug 14, 2010 4:53 pm
by ScottBot
The trace appears to show that the plugin times-out waiting for the CM12 to respond. It actually looks as though the CM12 stops responding entirely after that moment.

Is it connected to a COM port, or to a USB->COM port?

Re: Insufficient data in read buffer

Posted: Thu Aug 19, 2010 4:44 pm
by allanstevens
Hi Scott,

Thanks for your reply. I think I have found what is causing the issue. The new motherboard (this -> http://www.jetwaycomputer.com/NF96.html) has the option to have a plug-in daughter card that has another 4 rs232 ports.

Unfortunately it seems that this is causing the issues with the CM12U. I have since found that I am also getting issues with my CurrentCost energy monitor. When I unplug the daughter card all seems to work fine. So I have contacted Jetway for some advice, lets see what happens.

Thanks again,
Allan