• 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 usage

    User help
    2
    6
    2.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.
    • R
      ray
      last edited by

      I wonder if Serial Data Source can communicate with a device with the following format.

      Request Packet Format:
      ID# + Length + Command + Address + CS
      Each item is one byte
      ID# : Device ID #
      Length: 5
      CS: Check Sum

      Receive Packet Format:
      ID# + Length + Command + Reply Data + CS
      ID# (1 byte): Echo of Request
      Length (1 byte): 8 or 132
      1 Byte 1 Byte 1 Byte 1 to 128 Bytes 1 Byte
      Command (1 byte): Echo of Request
      CS: Check Sum
      Reply: 4 or 128 Bytes

      What are the Message Terminator, Message Regex, Point Identifier Index in this case ?
      How to configure it ?
      Thanks !

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        I suspect it isn't possible. The checksum is probably not a standard value that you can use to delimit one message from another, and you cannot use a captured piece of a regular expression to define a length argument later in the same regular expression.

        You could use it to send to the devices. What is the form of the checksum? Some arbitrary 8 bits?

        Your best bet is to just write your own serial parser module, or we are of course available to write this sort of module for some development money to cover the cost of our time.

        1 Reply Last reply Reply Quote 0
        • phildunlapP
          phildunlap
          last edited by

          It may actually be a simple code modification. We could just run the regex twice to capture the length argument the first time and capture values from a second run. This module's source is public, so you could attempt this yourself. You will also need to remove the message terminator from datasource validation and a few other places, if you do this.

          1 Reply Last reply Reply Quote 0
          • R
            ray
            last edited by

            If I make the request packet to be fixed data, CS is fixed too. Can the Serial Data Source works in this case ?

            1 Reply Last reply Reply Quote 0
            • phildunlapP
              phildunlap
              last edited by

              Sending the data (what I'm thinking of as the request) is not the issue. You could send any data by using the Point Identifier in the data point details as the Device ID # and setting values to that point. Unless the data returning from the device also is fixed (which would probably make it uninteresting) the checksum will not be fixed and we'll still have a problem of telling one message from the next, or knowing if we've finished reading a message.

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