[SOLVED] Gateway & Node communication work when on W10 but not on my Ubuntu Computer



  • Hi everyone, I’m new in MySensors community, and I hope you can help me !

    I’m using an homemade Ubuntu 16.04LTS Server with JeeDom installed on and I’m tring to connect MySensors Gateway and Node. I’m using MySensors 2.3.0 library.

    For my GW, I’m using a serial GW made with Arduino Nano (chinese clone) with NRF24L01+ & 2dbi antenna (chinese clone also). On this GW I put a 47µF capacitor as recommanded
    My GW look like the GW in the official MySensors Site https://www.mysensors.org/build/serial_gateway in Demonstration part.
    I haven’t made any change in the sktech that I upload in my GW, GatewaySerial.ino

    For my Node, I’m using a Arduino Pro Mini (chinese clone) with NRF24L01+ & 2dbi antenna (chinese clone also) with the 47µF capacitor.
    This Node is Battery powered (2xAA) with a step-up voltage regulator (0.8-3.3 to 3.3v) and a BMP280

    When I plug the GW on my Windows 10 Computer, openning the Arduino IDE (1.8.4), and openning Serial port monitor @115200, let the GW start then power up my node I have this output :

    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.3.0
    0;255;3;0;9;4 TSM:INIT
    0;255;3;0;9;6 TSF:WUR:MS=0
    0;255;3;0;9;14 TSM:INIT:TSP OK
    0;255;3;0;9;17 TSM:INIT:GW MODE
    0;255;3;0;9;20 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;23 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.0
    0;255;3;0;9;28 MCO:BGN:STP
    0;255;3;0;9;34 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;7552 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;7558 TSF:MSG:BC
    0;255;3;0;9;7560 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;7564 TSF:CKU:OK,FCTRL
    0;255;3;0;9;7567 TSF:MSG:GWL OK
    0;255;3;0;9;8007 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;9566 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;9572 TSF:MSG:BC
    0;255;3;0;9;9575 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;9578 TSF:CKU:OK,FCTRL
    0;255;3;0;9;9581 TSF:MSG:GWL OK
    0;255;3;0;9;9989 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;11582 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;11588 TSF:MSG:BC
    0;255;3;0;9;11590 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;11594 TSF:CKU:OK,FCTRL
    0;255;3;0;9;11597 TSF:MSG:GWL OK
    0;255;3;0;9;11972 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;13597 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;13603 TSF:MSG:BC
    0;255;3;0;9;13606 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;13609 TSF:CKU:OK,FCTRL
    0;255;3;0;9;13614 TSF:MSG:GWL OK
    0;255;3;0;9;13956 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;25640 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;25648 TSF:MSG:BC
    0;255;3;0;9;25650 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;25654 TSF:PNG:SEND,TO=0
    0;255;3;0;9;25657 TSF:CKU:OK
    0;255;3;0;9;25660 TSF:MSG:GWL OK
    0;255;3;0;9;25761 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;27657 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;27663 TSF:MSG:BC
    0;255;3;0;9;27666 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;27670 TSF:CKU:OK,FCTRL
    0;255;3;0;9;27673 TSF:MSG:GWL OK
    0;255;3;0;9;27740 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;29672 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;29679 TSF:MSG:BC
    0;255;3;0;9;29681 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;29685 TSF:CKU:OK,FCTRL
    0;255;3;0;9;29688 TSF:MSG:GWL OK
    0;255;3;0;9;30746 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    0;255;3;0;9;31688 TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;31694 TSF:MSG:BC
    0;255;3;0;9;31697 TSF:MSG:FPAR REQ,ID=255
    0;255;3;0;9;31700 TSF:CKU:OK,FCTRL
    0;255;3;0;9;31704 TSF:MSG:GWL OK
    0;255;3;0;9;32730 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    

    So I think that my GW & Node are Working (My Node doesn’t have a Node ID, maybe should I fix it ? Node ID set to 1)

    But when I did the same thing on my Ubuntu computer I have this :

    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.3.0
    0;255;3;0;9;4 TSM:INIT
    0;255;3;0;9;6 TSF:WUR:MS=0
    0;255;3;0;9;14 TSM:INIT:TSP OK
    0;255;3;0;9;17 TSM:INIT:GW MODE
    0;255;3;0;9;20 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;23 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.0
    0;255;3;0;9;28 MCO:BGN:STP
    0;255;3;0;9;34 MCO:BGN:INIT OK,TSP=1
    u¥ä‰ütúóa¸°š[àó;ñ
    

    It’s look like the bautrate isn’t the good one.

    I’ve try to :

    • change my GW by a Pro Mini @34800 (by changing the MySensor.h)
    • Fix my bautrate directly in Ubuntu

    but it’s the same …

    Edit :
    Log of my node, Radio appares to not work, i will try to change my Radio module and keep browsing the web for help on this ...

     
     __  __       ____
    |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
    | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
    | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
    |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
            |___/                      2.3.0
    
    16 MCO:BGN:INIT NODE,CP=RNNNA---,VER=2.3.0
    26 TSM:INIT
    28 TSF:WUR:MS=0
    34 TSM:INIT:TSP OK
    36 TSM:INIT:STATID=1
    38 TSF:SID:OK,ID=1
    40 TSM:FPAR
    77 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    2088 !TSM:FPAR:NO REPLY
    2091 TSM:FPAR
    2127 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    4136 !TSM:FPAR:NO REPLY
    4139 TSM:FPAR
    4175 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6184 !TSM:FPAR:NO REPLY
    6187 TSM:FPAR
    6223 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    8232 !TSM:FPAR:FAIL
    8235 TSM:FAIL:CNT=1
    8237 TSM:FAIL:DIS
    8239 TSF:TDI:TSL
    18241 TSM:FAIL:RE-INIT
    18243 TSM:INIT
    18249 TSM:INIT:TSP OK
    18253 TSM:INIT:STATID=1
    18255 TSF:SID:OK,ID=1
    18257 TSM:FPAR
    18294 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    20303 !TSM:FPAR:NO REPLY
    20305 TSM:FPAR
    20342 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    22351 !TSM:FPAR:NO REPLY
    22353 TSM:FPAR
    22390 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    24399 !TSM:FPAR:NO REPLY
    24401 TSM:FPAR
    24438 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    26447 !TSM:FPAR:FAIL
    26449 TSM:FAIL:CNT=2
    26451 TSM:FAIL:DIS
    26454 TSF:TDI:TSL
    36458 TSM:FAIL:RE-INIT
    36460 TSM:INIT
    36466 TSM:INIT:TSP OK
    36470 TSM:INIT:STATID=1
    36472 TSF:SID:OK,ID=1
    36474 TSM:FPAR
    36511 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    38520 !TSM:FPAR:NO REPLY
    38522 TSM:FPAR
    38559 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    40568 !TSM:FPAR:NO REPLY
    40570 TSM:FPAR
    40607 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    42616 !TSM:FPAR:NO REPLY
    42618 TSM:FPAR
    42655 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    44664 !TSM:FPAR:FAIL
    44666 TSM:FAIL:CNT=3
    44668 TSM:FAIL:DIS
    44670 TSF:TDI:TSL
    54675 TSM:FAIL:RE-INIT
    54677 TSM:INIT
    54683 TSM:INIT:TSP OK
    54687 TSM:INIT:STATID=1
    54689 TSF:SID:OK,ID=1
    54691 TSM:FPAR
    54728 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    56737 !TSM:FPAR:NO REPLY
    56739 TSM:FPAR
    56776 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    58785 !TSM:FPAR:NO REPLY
    58787 TSM:FPAR
    58824 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    60833 !TSM:FPAR:NO REPLY
    60835 TSM:FPAR
    60872 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    62881 !TSM:FPAR:FAIL
    62883 TSM:FAIL:CNT=4
    62885 TSM:FAIL:DIS
    62887 TSF:TDI:TSL
    72890 TSM:FAIL:RE-INIT
    72892 TSM:INIT
    72898 TSM:INIT:TSP OK
    72902 TSM:INIT:STATID=1
    72904 TSF:SID:OK,ID=1
    72906 TSM:FPAR
    72943 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    74952 !TSM:FPAR:NO REPLY
    74954 TSM:FPAR
    74991 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    77000 !TSM:FPAR:NO REPLY
    77002 TSM:FPAR
    77039 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    79048 !TSM:FPAR:NO REPLY
    79050 TSM:FPAR
    79087 TSF:MSG:SEND,1-1-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    81096 !TSM:FPAR:FAIL
    81098 TSM:FAIL:CNT=5
    81100 TSM:FAIL:DIS
    81102 TSF:TDI:TSL
    
    

    Thank You for reading and helping.

    PS : Sorry for my English I’m French.



  • ~~I solved this problem with :

    • Deleting Mysensor from Jeedom
    • Adding it and fresh install of dependency~~

    It was my connection between my chinese clone of Arduino Nano and my computer, the baud rate wasn't stable switch between 1200 and 115200.

    To see the baud rate of a serial port on Ubuntu, use this command : stty -F /dev/ttyXXX

    I replace it by a real Arduino Uno, and it work perfectly.

    I also change my radio frequency

    Thank for reading !

    Does anyone know hw to put this thread as Solved ?


  • Mod

    Great work @arnaud, thanks for posting the solution.

    To edit the topic title, edit your first post and change the title at the top


Log in to reply
 

Suggested Topics

  • 3
  • 6
  • 5
  • 6

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts