cdjackson / HABmin

A web admin console for openHAB home automation
http://www.cd-jackson.com/index.php/openhab/habmin
217 stars 51 forks source link

Zwave device startup - I have to plug out and plug in Aeon USB Stick to make it working correcly #201

Closed grzech1983 closed 8 years ago

grzech1983 commented 9 years ago

Hello,

I think that for almost always I'm struggling with first startup of OpenHAB for Aeon Labs Z-Wave USB Stick. It looks like almost every computer reboot (I'm running OH on Ubuntu server) I have to restart OpenHAB after it has initially started because Zwave device didn't "started" correctly. During this restart I have to go to this server plug out and plug in USB Stick again and then when OH will start Zwave network is starting to work as it should. Do you have any suggestions? I'm wondering if this is maybe some Ubuntu issue and I need to solve it by some commands which will reset USB port.

Log:

2015-01-09 07:12:52.984 ERROR o.o.b.z.i.p.ZWaveController$ZWaveReceiveThread[:1249]- Message is not valid, discarding 2015-01-09 07:12:53.554 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveReceiveThread[:1327]- Receive Message = 01 04 01 13 01 E8 2015-01-09 07:12:53.562 DEBUG o.o.b.z.i.p.ZWaveController[:171]- Message: class = SendData (0x13), type = Response (0x01), payload = 01 2015-01-09 07:12:53.565 DEBUG o.o.b.z.i.p.s.SendDataMessageClass[:35]- NODE 255: Sent Data successfully placed on stack. 2015-01-09 07:12:54.682 ERROR o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1176]- NODE 255: Timeout while sending message. Requeueing - 1 attempts left! 2015-01-09 07:12:54.683 DEBUG o.o.b.z.i.p.ZWaveController[:493]- Enqueueing message. Queue length = 3 2015-01-09 07:12:54.685 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1091]- Took message from queue for sending. Queue length = 2 2015-01-09 07:12:54.689 DEBUG o.o.b.z.i.p.SerialMessage[:232]- Assembled message buffer = 01 03 00 20 DC 2015-01-09 07:12:54.692 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1136]- NODE 255: Sending REQUEST Message = 01 03 00 20 DC 2015-01-09 07:12:57.627 DEBUG o.o.b.z.i.ZWaveActiveBinding[:101]- Zwave Network isn't ready yet! 2015-01-09 07:12:58.973 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveReceiveThread[:1327]- Receive Message = 01 01 01 2015-01-09 07:12:58.976 ERROR o.o.b.z.i.p.ZWaveController$ZWaveReceiveThread[:1249]- Message is not valid, discarding 2015-01-09 07:12:59.696 ERROR o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1176]- NODE 255: Timeout while sending message. Requeueing - 0 attempts left! 2015-01-09 07:12:59.697 DEBUG o.o.b.z.i.p.ZWaveController[:493]- Enqueueing message. Queue length = 3 2015-01-09 07:12:59.699 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1091]- Took message from queue for sending. Queue length = 2 2015-01-09 07:12:59.703 DEBUG o.o.b.z.i.p.SerialMessage[:232]- Assembled message buffer = 01 03 00 20 DC 2015-01-09 07:12:59.705 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1136]- NODE 255: Sending REQUEST Message = 01 03 00 20 DC 2015-01-09 07:13:01.967 ERROR o.o.b.z.i.p.ZWaveController$ZWaveReceiveThread[:1360]- Got an exception during receiving. exiting thread. java.lang.ArrayIndexOutOfBoundsException: 1 at org.openhab.binding.zwave.internal.protocol.ZWaveController$ZWaveReceiveThread.run(ZWaveController.java:1313) 2015-01-09 07:13:01.969 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveReceiveThread[:1362]- Stopped Z-Wave receive thread 2015-01-09 07:13:02.629 DEBUG o.o.b.z.i.ZWaveActiveBinding[:101]- Zwave Network isn't ready yet! 2015-01-09 07:13:03.570 WARN o.o.b.z.i.p.ZWaveController$WatchDogTimerTask[:1396]- Threads not alive, respawning 2015-01-09 07:13:03.576 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1205]- Stopped Z-Wave send thread 2015-01-09 07:13:03.599 INFO o.o.b.z.i.p.ZWaveController[:465]- Disconnected from serial port 2015-01-09 07:13:03.617 INFO o.o.b.z.i.p.ZWaveController[:383]- Connecting to serial port /dev/zwave 2015-01-09 07:13:03.637 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveReceiveThread[:1261]- Starting Z-Wave receive thread 2015-01-09 07:13:03.638 INFO o.o.b.z.i.p.ZWaveController[:396]- Serial port is initialized 2015-01-09 07:13:03.641 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1085]- Starting Z-Wave send thread 2015-01-09 07:13:03.641 DEBUG o.o.b.z.i.p.SerialMessage[:108]- NODE 255: Creating empty message of class = SerialApiSoftReset (0x08), type = Request (0x00) 2015-01-09 07:13:03.645 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1091]- Took message from queue for sending. Queue length = 1 2015-01-09 07:13:03.647 DEBUG o.o.b.z.i.p.SerialMessage[:232]- Assembled message buffer = 01 03 00 08 F4 2015-01-09 07:13:03.649 DEBUG o.o.b.z.i.p.SerialMessage[:232]- Assembled message buffer = 01 03 00 07 FB 2015-01-09 07:13:03.653 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1136]- NODE 255: Sending REQUEST Message = 01 03 00 07 FB 2015-01-09 07:13:07.630 DEBUG o.o.b.z.i.ZWaveActiveBinding[:101]- Zwave Network isn't ready yet! 2015-01-09 07:13:08.657 ERROR o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1176]- NODE 255: Timeout while sending message. Requeueing - 2 attempts left! 2015-01-09 07:13:08.658 DEBUG o.o.b.z.i.p.ZWaveController[:493]- Enqueueing message. Queue length = 2 2015-01-09 07:13:08.659 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1091]- Took message from queue for sending. Queue length = 1 2015-01-09 07:13:08.662 DEBUG o.o.b.z.i.p.SerialMessage[:232]- Assembled message buffer = 01 03 00 07 FB 2015-01-09 07:13:08.664 DEBUG o.o.b.z.i.p.ZWaveController$ZWaveSendThread[:1136]- NODE 255: Sending

cdjackson commented 9 years ago

This is most likely the bug with the Aeon stick. Many people have this problem - not only with openhab. I believe Aotec have a new test version of software which you might be able to get by emailing their support.

grzech1983 commented 9 years ago

I've received 3.08 firmware (vs 3.07 firmware available on their website).

casperleenheer commented 9 years ago

Can you share it? Thanks.

Op Mon Jan 26 2015 at 15:33:39 schreef grzech1983 <notifications@github.com

:

I've received 3.08 firmware (vs 3.07 firmware available on their website).

— Reply to this email directly or view it on GitHub https://github.com/cdjackson/HABmin/issues/201#issuecomment-71468869.

grzech1983 commented 9 years ago

Give me some e-mail and I'll sent it to you.

casperleenheer commented 9 years ago

casperleenheer @ gmail... Thanks.

Op Mon Jan 26 2015 at 15:43:18 schreef grzech1983 <notifications@github.com

:

Give me some e-mail and I'll sent it to you.

— Reply to this email directly or view it on GitHub https://github.com/cdjackson/HABmin/issues/201#issuecomment-71470395.

grzech1983 commented 9 years ago

Sent. Firmware has "20111220" in its name so it doesn't look like it has been updated for a long time.

casperleenheer commented 9 years ago

No, indeed. Any changelog?

Op Mon Jan 26 2015 at 15:53:56 schreef grzech1983 <notifications@github.com

:

Sent. Firmware has "20111220" in its name so it doesn't look like it has been updated for a long time.

— Reply to this email directly or view it on GitHub https://github.com/cdjackson/HABmin/issues/201#issuecomment-71472139.

casperleenheer commented 9 years ago

Ok. I'm running on 3.8 now... So far so good :-)

Op Mon Jan 26 2015 at 16:15:09 schreef Casper Leenheer < casperleenheer@gmail.com>:

No, indeed. Any changelog?

Op Mon Jan 26 2015 at 15:53:56 schreef grzech1983 < notifications@github.com>:

Sent. Firmware has "20111220" in its name so it doesn't look like it has

been updated for a long time.

— Reply to this email directly or view it on GitHub https://github.com/cdjackson/HABmin/issues/201#issuecomment-71472139.

hdonis commented 9 years ago

Hey guys would one of you mind sending me that the firmware update you received? I'm having similar problems with my aeon z-wave stick.

hdonis@yahoo.com

Thanks in advance for the help.

cdjackson commented 9 years ago

I’m using the standard firmware, but I believe Aeon support will send you a new version if you ask - at least that’s what Ive read on the OZW forum.

cdjackson commented 8 years ago

stale issue