• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Serial data source help - parsing stream with regex

    User help
    2
    3
    2.0k
    Loading More Posts
    • 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.
    • K
      kierantimberlake
      last edited by

      I am trying to parse a data stream from a WXT520 weather station and a few other connected devices. I got the instruments on our weather station to connect through a single serial port, and send data points on individual lines with unique prefixes and terminators. I have been having trouble getting this data stream to parse correctly with the Serial module in MA, and have a feeling I am getting something wrong with the regex, and/or point identifier index. I have yet to see a clear example of how to set up a serial data source in MA on this forum. Perhaps someone can help?

      An example of the serial output from our weather station is posted below. I'd like to map each data type to a unique point. I am using the most recent version of MA with the latest 1.1.4 Serial module running on Ubuntu 14.041 x64. I have confirmed that the serial port permissions are set correctly.

      Weather station example output (includes one of each point):

      
      Ta=24.4C
      Ua=42.0P
      Pa=1021.1H
      Dn=281D
      Dm=332D
      Dx=074D
      Sn=0.4M
      Sm=0.8M
      Sx=1.3M
      Si=15.94W
      Rc=0.00M
      Rd=10s
      Ri=0.0M
      Hc=0.0M
      Hd=0s
      Hi=0.0M
      Rp=0.0M
      Th=24.0C
      Vh=12.2N
      Vs=12.1V
      Vr=3.495V
      
      
      1 Reply Last reply Reply Quote 0
      • jeremyhJ
        jeremyh
        last edited by

        Hi,

        Have you tried using regexpal.com or regerx.com to verify your regex expression gives you the expected results?

        Cheers

        1 Reply Last reply Reply Quote 0
        • First post
          Last post