Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway connection failed on MS 2.0 beta #10

Closed
andreacioni opened this issue Apr 16, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@andreacioni
Copy link

commented Apr 16, 2016

Hi Tim,

I'll report here the Francois issue just to remeber to take a look at it.

Additional info:

  • He has RFM69 radio
  • Manually send message: 0;0;3;0;2; and 0;255;3;0;2; has no effects

Attached log:

12:49:05.469 [DEBUG] [nsors.handler.MySensorsBridgeHandler] - Initialization of the MySensors Bridge
12:49:05.543 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB0 [baudRate:115200]
12:49:06.140 [INFO ] [smarthome.event.ItemAddedEvent ] - Item 'mysensors_bridge_ser_bb7302f6' has been added.
12:49:06.390 [DEBUG] [col.serial.MySensorsSerialConnection] - Successfully connected to serial port.
12:49:06.446 [INFO ] [rthome.event.ItemThingLinkAddedEvent] - Link 'mysensors_bridge_ser_bb7302f6-mysensors:bridge-ser:bb7302f6' has been added.
12:49:09.409 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0-beta)
12:49:09.426 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;Radio init successful.
12:49:09.434 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;14;Gateway startup complete.
12:49:09.441 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;Init complete, id=0, parent=0, distance=0
12:49:09.506 [DEBUG] [g.mysensors.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
12:49:10.488 [WARN ] [ome.core.thing.internal.ThingManager] - Initializing handler for thing 'mysensors:bridge-ser:bb7302f6' takes more than 5000ms.
12:49:10.763 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
12:49:10.767 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 40;1;1;0;16;1
12:49:11.676 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
12:49:11.680 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 40;1;1;0;16;1
12:49:11.778 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;read: 40-40-0 s=0,c=1,t=23,pt=2,l=2,sg=0:72
12:49:11.783 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 40;0;1;0;23;72
12:49:11.792 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;read: 40-40-0 s=5,c=1,t=38,pt=7,l=5,sg=0:3.07
12:49:11.796 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 40;5;1;0;38;3.07
12:49:11.838 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;read: 40-40-0 s=5,c=1,t=38,pt=7,l=5,sg=0:3.07
12:49:11.843 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 40;5;1;0;38;3.07
12:49:11.861 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;read: 40-40-0 s=255,c=3,t=0,pt=1,l=1,sg=0:100
12:49:11.866 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 40;255;3;0;0;100
12:49:12.079 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;read: 66-66-0 s=1,c=1,t=24,pt=5,l=4,sg=0:3579898
12:49:12.083 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 66;1;1;0;24;3579898
12:49:14.409 [ERROR] [s.internal.MySensorsBridgeConnection] - Cannot start reading/writing thread, probably sync message (I_VERSION) not received
12:49:14.410 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!
12:49:14.412 [DEBUG] [g.mysensors.protocol.MySensorsWriter] - Stopping Writer thread
12:49:14.418 [WARN ] [g.mysensors.protocol.MySensorsWriter] - Writer thread interrupted
12:49:14.428 [DEBUG] [g.mysensors.protocol.MySensorsReader] - Stopping Reader thread
12:49:14.528 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:bb7302f6' changed from INITIALIZING to OFFLINE

Forum discussion

@tobof

This comment has been minimized.

Copy link
Owner

commented Apr 19, 2016

Ok, I've updated a serial gateway (without RF) to the most recent development version.

Here is an excerpt of the OH2 startup:

2016-04-19 16:34:07.526 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;Starting gateway (R-NGA-, 2.0.0-beta) 2016-04-19 16:34:07.526 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;14;Gateway startup complete. 2016-04-19 16:34:07.526 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;11;RelaisKeller 2016-04-19 16:34:07.526 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;12;2.0 2016-04-19 16:34:07.526 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;0;0;0;5; 2016-04-19 16:34:07.526 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;1;0;0;5; 2016-04-19 16:34:07.527 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;2;0;0;5; 2016-04-19 16:34:07.527 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;3;0;0;5; 2016-04-19 16:34:07.527 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;4;0;0;5; 2016-04-19 16:34:07.537 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;5;0;0;3; 2016-04-19 16:34:07.537 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;6;0;0;3; 2016-04-19 16:34:07.537 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;7;0;0;13; 2016-04-19 16:34:07.537 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;9;Init complete, id=0, parent=0, distance=0 2016-04-19 16:34:07.609 [DEBUG] [g.mysensors.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2; 2016-04-19 16:34:07.615 [DEBUG] [g.mysensors.protocol.MySensorsReader] - 0;255;3;0;2;2.0.0-beta 2016-04-19 16:34:07.616 [DEBUG] [s.internal.MySensorsBridgeConnection] - Good,Gateway is up and running! (Ver:2.0.0-beta) 2016-04-19 16:34:07.624 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:MySGWKeller' changed from INITIALIZING to ONLINE

Everything is working as expected!

@andreacioni

This comment has been minimized.

Copy link
Author

commented Apr 19, 2016

The best thing, by now, is to allow user to omit (as you say on MS forum) the check. We can do it by adding a configuration entry on the binding config.

@andreacioni

This comment has been minimized.

Copy link
Author

commented Apr 20, 2016

Now can omit check on startup.

@andreacioni andreacioni reopened this Apr 23, 2016

@andreacioni

This comment has been minimized.

Copy link
Author

commented Apr 24, 2016

The problem seems to be related only to version 2.0 beta used with RFM69 module

@tobof tobof closed this Oct 4, 2016

tobof pushed a commit that referenced this issue Dec 21, 2016

[Onkyo] Fix various issues (openhab#1529)
Fixes various issues for Onkyo binding
* Fix lookup of listening modes & audio sources below #10
* Adds several missing listening modes
* Adds several missing sources
* Fix Exceptions statusUpdateReceived in case of N/A
* Fix issue when looking up sources for zone2

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.