• 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

    ASCII serial data source doesnt recognize message

    User help
    2
    3
    1.4k
    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.
    • A
      antonio.nobrega
      last edited by

      Hello everyone,

      I´m using datasource ASCII serial to read the COM port and get a string from it.

      My string is like this:

      L1,3,5,0,5,80,40,31,0,0,0,0,512,412,213,900<LF>

      I´ve made the datapoint REGEX to be on this syntax and tested it in some online regex testers (regexpal.com) :

      [^;,]*

      But when I turn on the datasource it displays a message of No Group 1.

      I´ve set the stop mode with the LF caracter.

      Anyone can give me an insight of what it may be occuring ?

      1 Reply Last reply Reply Quote 0
      • terrypackerT
        terrypacker
        last edited by terrypacker

        You will need to setup a capture group using parenthesis. By default Capture group 0 is everything and capture group 1 is the first set of ( ). I would start by using this pattern (.*) to capture everything. Hope this helps.

        1 Reply Last reply Reply Quote 0
        • A
          antonio.nobrega
          last edited by

          Hey terry it helped a lot.

          Now I´m able to get each field separatedly.

          I used the regex ^L1(?:,(\d+)){N} , where N is the column after L1 that I will get. Thanks so much for helping , hope this regex might be useful for somebody.

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