Skip to content
  • 0 Votes
    12 Posts
    6k Views
    T
    @AWI @Hoffan @sundberg84 I can see both sketches are working, this is what the gateway prints out: 0;0;3;0;14;Gateway startup complete. 0;0;3;0;9;read: 105-105-0 s=255,c=0,t=18,pt=0,l=5:1.5.1 105;255;0;0;18;1.5.1 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=6,pt=1,l=1:0 105;255;3;0;6;0 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=11,pt=0,l=5:Relay 105;255;3;0;11;Relay 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=12,pt=0,l=3:1.0 105;255;3;0;12;1.0 0;0;3;0;9;read: 105-105-0 s=1,c=0,t=3,pt=0,l=0: 105;1;0;0;3; 0;0;3;0;9;read: 105-105-0 s=2,c=0,t=3,pt=0,l=0: 105;2;0;0;3; 0;0;3;0;9;read: 105-105-0 s=3,c=0,t=3,pt=0,l=0: 105;3;0;0;3; 0;0;3;0;9;read: 105-105-0 s=4,c=0,t=3,pt=0,l=0: 105;4;0;0;3; Is this correct?
  • 0 Votes
    16 Posts
    18k Views
    G
    @catcher Thanks, I tried this Perl script and it is working out of the box with OpenHAB2! And I'm sending with MySensors 2.
  • 0 Votes
    9 Posts
    6k Views
    D
    One last thing I'd like to clarify after re-reading my previous post. The correct send string I entered in the terminal is without trailing ";" - like it was supposed before. As mentioned, the problem has been the BAUD rate of 156k with 8MHz crystal.. So the correct command which will change the PWM -Dimmer level on node 3 to 50% is: 3;0;1;0;3;50\n
  • 0 Votes
    3 Posts
    7k Views
    B
    Does this help: http://forum.mysensors.org/topic/748/manual-assigning-node-id-s-for-network-with-repeaters I agree with you that the serial messages are not perfectly documented, but realise that this site has been made (as far as I know) by a bunch of people that share their 'love' for home automation..... boozz
  • 0 Votes
    2 Posts
    2k Views
    RJ_MakeR
    @dzairo Can't help you with the project as it's way over my pay grade, but it sounds interesting. Good Luck!
  • 0 Votes
    8 Posts
    4k Views
    D
    Hi. It's long time .. but standard function is : gw.processRadioMessage(); and I make changes in source code in MyGateway.cpp to this : char MyGateway::processRadioMessage() { char isMessage=0; if (process()) { // A new message was received from one of the sensors isMessage=1; MyMessage message = getLastMessage(); if (mGetCommand(message) == C_PRESENTATION && inclusionMode) { rxBlink(3); } else { rxBlink(1); } // Pass along the message from sensors to serial line serial(message); } checkButtonTriggeredInclusion(); checkInclusionFinished(); return isMessage; } But in new library is not file MyGateway.cpp .. then I don't now .. using is : if (gw.processRadioMessage()==1) {..} regards.. there is possible make easy gateway .. controler .. to control only light for example.. then we don't need external controller .. etc..
  • Serial terminal

    Controllers serialgateway serial protocol
    10
    3 Votes
    10 Posts
    5k Views
    A
    Hi dzairo, Just wondering if you still monitor this thread. If so would love to know how to install the ComPort component so I can modify and use your terminal code. For some reason I don't have any luck with adding it to the IDE. thanks, Andy.
  • help to manual sed sensor ID ..

    Development serialgateway serial protocol
    14
    0 Votes
    14 Posts
    9k Views
    D
    Hi all... This is important for all ... Hek I find problem with manual node ID setting .. Your code is optimized for ATmega328P 16Mhz - 115200 serial speed .. and here is problem ... big problem !! 16MHz -115200 is in normal speed : 3.549% ERROR , and in double speed : 2.124% ERROR with no calibrated 8Mhz internal RC oscilator is normal speed : 8.507% ERROR and in double speed : 3.549% then in fact .. no problem to send data from MCU to PC .. problem send data from PC to MCU .. solution : for sensor node or repeater .. we don't need received data from UART .. then can use 115200 with internal RC oscilator .. for serial gateway is need to send and received data from to MCU with controller .. then use scrystal 16Mhz (as orginal code ) or use better crystall : 7.3728Mhz , 11.0592Mhz , 14.7456Mhz ... with this crystall is ERROR 0% ... or use lower speed for serial gateway for example 38400bps ... sorry for all .. but I'm not thinking about it .. and problem was all time in hardware .. interesting is that if generate own bootloader for my node then first time I set 115200 bps speed and my software show error more then 8.5% ERROR ..and I must change speed to 38400 ... now it's working .. if node send request for new ID then I send it regards.
  • Serial protocol..

    Development serialgateway serial protocol
    6
    0 Votes
    6 Posts
    3k Views
    D
    Hi. I do it .. change configuration in MyCOnfig.h (disable debug) and now gateway not send encoded message . But right now I test my serial board and have problem .. If send fast many packet from my sensor (INT0 and INT1) then serial gateway halt .. and no more data received from sensor and output string to uart .. I must reset MCU and all work again.. what is problem ?? Problem is in serial gateway .. after reset all work good .. any idea?? regards.
  • 0 Votes
    3 Posts
    2k Views
    daulagariD
    So, now I replay with 255:255:3;0;4;1 instead of 255;255;3;0;4;0 and when I get the request 1;10;2;0;3;1.4.1 Yes I think node-id 0 should not be used.
  • Beginner user: serial protocol help

    Troubleshooting serial protocol
    19
    0 Votes
    19 Posts
    7k Views
    A
    @sigolhi This helps me a lot, but I'm not using RPi but olinuxino-lime a10 (european ARM board) regards

29

Online

11.7k

Users

11.2k

Topics

113.1k

Posts