MySensors Problem version and nodes

Moderator: leecollings

Post Reply
tommyken
Posts: 7
Joined: Thursday 12 March 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

MySensors Problem version and nodes

Post by tommyken »

Hello everyone,

Im stuck at the installation of Mysensors to domoticz.
I have setup a test set with a serial connection between NRF2401+ and Rpi B+
Through Rpi i linked USB to ttyUSB30. And hardware to ttyUSB30 and BAUD 115200

As node i'm testing with Arduino nano connected with NRF2401+

I followed the instructions on :
https://forum.mysensors.org/topic/2437/ ... 1-x?page=1

and

https://www.mysensors.org/build/raspberry

i'm using DOMOTICZ V3.5877 (Rpi B+) only mysensors for test

What i've seen in domoticz, there's not version number mentioned for mysensors. just a question mark symbol, like Version ?
Is this normal ?

Result on Raspberry Pi

pi@testdomo:~/MySensors $ sudo ./bin/mysgw -d
mysgw: Starting gateway...
mysgw: Protocol version - 2.1.0-beta
mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.0-beta
mysgw: TSF:LRT:OK
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: TSM:INIT:TSP OK
mysgw: TSM:INIT:GW MODE
mysgw: TSM:READY:ID=0,PAR=0,DIS=0
mysgw: MCO:REG:NOT NEEDED
mysgw: Listening for connections on 0.0.0.0:5003
mysgw: MCO:BGN:STP
mysgw: MCO:BGN:INIT OK,TSP=1
mysgw: TSF:MSG:READ,1-1-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
mysgw: TSF:MSG:BC
mysgw: TSF:MSG:FPAR REQ,ID=1
mysgw: TSF:PNG:SEND,TO=0
mysgw: TSF:CKU:OK
mysgw: TSF:MSG:GWL OK
mysgw: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
mysgw: TSF:MSG:READ,1-1-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
mysgw: TSF:MSG:PINGED,ID=1,HP=1
mysgw: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
mysgw: TSF:MSG:READ,1-1-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
mysgw: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
mysgw: TSF:MSG:READ,1-1-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.0.0
mysgw: TSF:MSG:READ,1-1-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
mysgw: TSF:MSG:READ,1-1-0,s=3,c=0,t=0,pt=0,l=0,sg=0:
mysgw: TSF:MSG:READ,1-1-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
mysgw: TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
mysgw: TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=2,l=2,sg=0:1
mysgw: TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=2,l=2,sg=0:0
mysgw: TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=2,l=2,sg=0:1

And through Arduino serial monitor:
Request registration...
TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
TSP:MSG:READ 0-0-1 s=255,c=3,t=27,pt=1,l=1,sg=0:1
Node registration=1
Init complete, id=1, parent=0, distance=1, registration=1
TSP:MSG:SEND 1-1-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=ok:1
TSP:MSG:SEND 1-1-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=ok:0
TSP:MSG:SEND 1-1-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=ok:1


However i cant find or add devices in domoticz site, Ive tried 'Allow for 5 minutes' function in Settings - Setup

According the log i got this:
2016-12-23 17:25:54.665 Domoticz V3.5877 (c)2012-2016 GizMoCuz
2016-12-23 17:25:54.670 Build Hash: 15b013c, Date: 2016-11-10 16:44:33
2016-12-23 17:25:54.671 System: Raspberry Pi
2016-12-23 17:25:54.671 Startup Path: /home/pi/domoticz/
2016-12-23 17:25:54.983 Active notification subsystems: http (1/12)
2016-12-23 17:25:54.988 WebServer(HTTP) started on address: :: with port 8080
2016-12-23 17:25:55.011 WebServer(SSL) started on address: :: with port 443
2016-12-23 17:25:55.022 Proxymanager started.
2016-12-23 17:25:55.026 Starting shared server on: :::6144
2016-12-23 17:25:55.029 TCPServer: shared server started...
2016-12-23 17:25:55.029 RxQueue: queue worker started...
2016-12-23 17:25:57.033 EventSystem: reset all events...
2016-12-23 17:25:57.035 EventSystem: reset all device statuses...
2016-12-23 17:25:57.037 EventSystem: Started
2016-12-23 17:25:58.035 MySensors: Using serial port: /dev/ttyUSB30

Did i forgot something or is something missing ?

Thanks in advance!!!! Keep up the fantastic work !!!!
peerkersezuuker
Posts: 70
Joined: Monday 14 December 2015 22:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Mierlo
Contact:

Re: Problem version and nodes

Post by peerkersezuuker »

Hello,
Sorry no solution here, but it looks a lot like my problem viewtopic.php?f=42&t=15028
Gr. Peer
User avatar
gizmocuz
Posts: 2541
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Problem version and nodes

Post by gizmocuz »

I would leave for now the 'accept new hardware' checkbox enabled, until you receive sensors

i see the gateway is also accepting TCP connections ? ( 0.0.0.0:5003)
Did you try connecting a telnet session to port 5003 ? If that works and the messages are looking like normal mysensors messages, then
in domoticz you need to use the LAN option
This is not looking like normal MySensors messages:
mysgw: MCO:BGN:INIT OK,TSP=1
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2541
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Problem version and nodes

Post by gizmocuz »

Maybe i have to build myself one.... will do so
Quality outlives Quantity!
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: MySensors Problem version and nodes

Post by Justintime »

.
Last edited by Justintime on Saturday 24 December 2016 12:41, edited 1 time in total.
tommyken
Posts: 7
Joined: Thursday 12 March 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belgium
Contact:

Re: MySensors Problem version and nodes

Post by tommyken »

Hi Gizmo,

Thank you for your advice and commenting about the port. I think i've found it. But i'm checking. I'll keep it posted which is the specific solution about this problem.

With the lan option and instead 0.0.0.0 i've using localhost or 127.0.0.1 and port 5003 (all three possibilities works)
After a few activations like SPI and serial i've found a new option in raspi-config

I'm guessing this is the solution (however it works for me)
Domoticz with hardware : MySensors Gateway with LAN interface
sudo raspi-config
  • 5 Interfacing Options Configure connections to peripher
  • P8 Remote GPIO Enable/Disable remote access to G
Thanks Gizmo
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest