Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Serial protocol..

Serial protocol..

Scheduled Pinned Locked Moved Development
serialgatewayserial protocol
6 Posts 3 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dzairo
    wrote on last edited by
    #1

    Hi all.
    Today I look to source code and try understand serial protocol format..
    I understand it .. but not all.. then I have qestion..
    0;0;3;0;14;Gateway startup complete.
    if good understand then Gateway startup complete. is Payload , or comment...? or what is it ?
    14 is Internal sub-type - I_GATEWAY_READY.
    why gateway send this string Gateway startup complete. if string format contain sub-type ?

    Then if power up my sensor then received this from serial gateway:
    0;0;3;0;9;read: 32-32-0 s=255,c=0,t=17,pt=0,l=3:1.4
    and again this :
    32;255;0;0;17;1.4

    Question is why serial gateway send packet twice and first is decoded?

    I want make own controler in delphi and need idea how to easy received and decodet all data packet from serial gateway .
    I can test all data from serial gateway if contain special string .. but may be exist more easy way..
    may be is possible disable in serial gateway send decoded packet..

    regards.

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      The "gateway startup complete" was initially just a debug message.

      @John (PiDome) proposed to give this message a special internal type to distinguish it from the rest of the debug messages.

      0;0;3;0;9 is jut plain debug messages. You can turn them off when compiling your gateway (or log them in your application log).

      1 Reply Last reply
      0
      • JohnJ Offline
        JohnJ Offline
        John
        Plugin Developer
        wrote on last edited by
        #3

        True, the main reason for this request/proposal was with the use of a special type the controller connected knows when the gateway is ready to handle data to be send/receive.

        It previously was a debug message then you to parse a debug message (if I remember correct). If the debugging was turned of there was no way to determine properly when the gateway could handle messages to be send to the nodes.

        My Domotica project: http://www.pidome.org

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dzairo
          wrote on last edited by dzairo
          #4

          Hi.
          ehm... I want plain message only .. no debug information ..
          is it possible ?

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #5

            @hek said:

            You can turn them off when compiling your gateway

            In MyConfig.h

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dzairo
              wrote on last edited by dzairo
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              26

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular