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. Troubleshooting
  3. Parsing the sensor data received by gateway and storing in DB

Parsing the sensor data received by gateway and storing in DB

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 1.6k 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.
  • J Offline
    J Offline
    Justin Lim
    wrote on last edited by
    #1

    I have received these lines of data in my serial gateway

    0;0;3;0;9;read: 1-1-0 s=2,c=1,t=16,pt=0,l=1:0
    1;2;1;0;16;0
    0;0;3;0;9;read: 1-1-0 s=0,c=1,t=4,pt=7,l=5:1007
    1;0;1;0;4;1007
    0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5:31.1
    1;1;1;0;0;31.1

    I would like to ask, how do I get these values into a variable, parse it and then store it into my database?

    I have an idea of using the gateway as a Web Client, and run a GET request towards a PHP file on my server. The file will parse all the data being sent and log it in the database, but now I'm stuck at categorizing the values into its respective fields.

    Any help is appreciated. Thanks in advance!

    tekkaT 1 Reply Last reply
    0
    • J Justin Lim

      I have received these lines of data in my serial gateway

      0;0;3;0;9;read: 1-1-0 s=2,c=1,t=16,pt=0,l=1:0
      1;2;1;0;16;0
      0;0;3;0;9;read: 1-1-0 s=0,c=1,t=4,pt=7,l=5:1007
      1;0;1;0;4;1007
      0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5:31.1
      1;1;1;0;0;31.1

      I would like to ask, how do I get these values into a variable, parse it and then store it into my database?

      I have an idea of using the gateway as a Web Client, and run a GET request towards a PHP file on my server. The file will parse all the data being sent and log it in the database, but now I'm stuck at categorizing the values into its respective fields.

      Any help is appreciated. Thanks in advance!

      tekkaT Offline
      tekkaT Offline
      tekka
      Admin
      wrote on last edited by
      #2

      @Justin-Lim A good starting point is the serial protocol. There you will find all information you need.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Justin Lim
        wrote on last edited by
        #3

        @tekka Wow cool that's what I've been looking for! Thanks!

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


        12

        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