Need help on CM12U (UK Version) , some error....

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
kevinlo
Member
Posts: 6
Joined: Sun Nov 19, 2006 12:21 am
Location: Hong Kong
Contact:

Need help on CM12U (UK Version) , some error....

Post by kevinlo »

I'm testing HouseBot v2.32 , sometime if i try to send X10 command to CM12U , it will have following error :

[Debug] Sending X10 Command - Begin
[Debug] Sending X10 Command Part 1
[Debug] --> Read Pending... WriteData. 2 bytes
[Debug] Writing [2] bytes [04 ea]
[Debug] CSerialPort::ReadData() is requesting 1 bytes and there are only 0 bytes [] in the [Solicited] read buffer. Waited 10 seconds.
[Debug] The [Unsolicited] Buffer contains 0 bytes [].
[Debug] Error reading COM port. Error = Insufficient data in read buffer
[Debug] Due to an error, Device [Living Room B4] Property [Direct X10 Command] DID NOT change.

But the error happen ramdomly. Sometime work , sometime have error.
And I alrady use ActiveHome test the CM12U , it work , no problem and already check with the CM12U's internal clock .

Can anyone help me ?
Thank you so much.

Kevin Lo
yaccri
HouseBot Special Member
Posts: 304
Joined: Wed May 07, 2003 2:19 pm
Location: Tel-Aviv, Israel
Contact:

Post by yaccri »

Kevin,

This is just a wild guess: Are you using a USB->RS232 converter?
kevinlo
Member
Posts: 6
Joined: Sun Nov 19, 2006 12:21 am
Location: Hong Kong
Contact:

Post by kevinlo »

Yes , I am using USB to Serial Converter
yaccri
HouseBot Special Member
Posts: 304
Joined: Wed May 07, 2003 2:19 pm
Location: Tel-Aviv, Israel
Contact:

Post by yaccri »

Some converters cause problems.
If you have a 'normal' serial port on this computer, I suggest that you try it and see what happens.
You may also want to try to add a *powered* USB hub. This may solve power problems caused by USB devices.
kevinlo
Member
Posts: 6
Joined: Sun Nov 19, 2006 12:21 am
Location: Hong Kong
Contact:

Post by kevinlo »

I didn't have Normal Serial Port on my Laptop.

I already try Targus Laptop Port Replication w/ Power Supplied. and Keyspan USB -> Serial Converter , same result.
yaccri
HouseBot Special Member
Posts: 304
Joined: Wed May 07, 2003 2:19 pm
Location: Tel-Aviv, Israel
Contact:

Post by yaccri »

I don't use X10, so I'm only guessing here.

The error message looks like a communication error.
You may want to check if:
- Is it possible to decrese the communication speed? Some devices allow to set the coomunication speed.
- When does the problem occur? Do you activate some devices when it happens? Shutters and other engines may cause interferences.
- Do you run a long serial cable?
- Do you have high voltage cables running alongside communication lines?
- If you have other USB devices connected to the USB hub, try to disconnect them and see if it has any effect.
kevinlo
Member
Posts: 6
Joined: Sun Nov 19, 2006 12:21 am
Location: Hong Kong
Contact:

Post by kevinlo »

yaccri wrote:I don't use X10, so I'm only guessing here.

The error message looks like a communication error.
You may want to check if:
- Is it possible to decrese the communication speed? Some devices allow to set the coomunication speed.
- When does the problem occur? Do you activate some devices when it happens? Shutters and other engines may cause interferences.
- Do you run a long serial cable?
- Do you have high voltage cables running alongside communication lines?
- If you have other USB devices connected to the USB hub, try to disconnect them and see if it has any effect.
Thanks Yaccri.
If I use CM12U USB version , the problem is improve a lot. Around send 30 ~ 40 X10 command will happen one error.

If I use CM12U RS232 version and connect to on-board \ add-on PCI serial port , the problem solve. I test to send over 100 X10 command , never have this errror.

So I think the problem is cause by USB --> RS232 convertor .

Thanks
Post Reply