Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Smart Serial – Variable Data Length

Solved1.50K views25th August 2023smart-serial UDP
0
Aston Galvin [DevOps Enabler]220 25th August 2023 0 Comments

Hi fellow DataMiner's,

I am having some issues when receiving UDP data of variable length via smart-serial.

I have a protocol with two connections, one serial, and another a smart-serial which is configured to listen to "any" traffic on a specific port.

In the protocol I have the following response configured, targeting the smart-serial connection.

<Response id="1" options="Connection:1">
<Name>BroadcastMessage</Name>
<Description>Broadcast Message</Description>
<Content>
<Param>68</Param>
</Content>
</Response>

Following the guidance written in the docs here in the notice section it mentions the following.

In some cases, data received via a smart-serial connection is not delimited by a specific header and trailer. The data source can send all data as one package, without specific delimiters. In that case, we must define a response with a parameter of type "next param" to capture all data (and process it later on in e.g. a QAction).

So for the above content param, I did the following.

<Param id="68">
<Name>Message</Name>
<Description>Message</Description>
<Type>read</Type>
<Interprete>
<RawType>other</RawType>
<LengthType>next param</LengthType>
<Type>string</Type>
</Interprete>
</Param>

When a message is received on the smart-serial, it will correctly trigger the QAction to process the message, but unfortunately, the contents of the parameter are empty.

If I change the parameter to be of a fixed length like below.

<Param id="68">
<Name>Message</Name>
<Description>Message</Description>
<Type>read</Type>
<Interprete>
<RawType>other</RawType>
<LengthType>fixed</LengthType>
<Length>29</Length>
<Type>string</Type>
</Interprete>
</Param>

I am now able to see the full payload.

C0-A8-C0-8B-08-17-00-00-00-00-01-02-00-01-01-01-48-65-6C-6C-6F-20-57-6F-72-6C-64-21-00

Sadly this is not practical, and although the first 16 bytes can be accounted for the rest varies in length. I am also unable to utilise the header-tailer option as the payload does not contain a trailer.

Any help would be greatly appreciated.

Thanks

Aston Galvin [DevOps Enabler] Selected answer as best 25th August 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Simon Vandamme [SLC] [DevOps Advocate]942 Posted 25th August 2023 2 Comments

Hi Aston,

As soon as a response contains some 'next param' parameters, a read response action should be used in order to properly fill in those parameters.
Such action should be called by a before response trigger.
More info here: Creating commands and responses | DataMiner Docs
Are you using that?

Side question, quite typically, when receiving messages of variable length, the message itself indicates the length at a fix location. If this is the case, you can smooth the process by defining that in the protocol. More info on that can be found here: Creating commands and responses | DataMiner Docs

regards,

Tom Waterbley [SLC] [DevOps Catalyst] Edited comment 28th August 2023
Aston Galvin [DevOps Enabler] commented 25th August 2023

Hi Simon,

Thank you very much for your reply.
I was indeed missing the Read Response Action and is now working with this in place. Sadly the data being received doesn’t contain the payload length. The vendor does have this in place for TCP traffic, but these broadcast messages are only sent via UDP. Once again thanks for your help, I like easy fixes 🙂

Tom Waterbley [SLC] [DevOps Catalyst] commented 28th August 2023

Hi Aston, given that each UDP packet already contains all the required data, it’s advisable to also enable the ‘FlushPerDatagram’ option in the port settings. This setting ensures that DataMiner doesn’t buffer and aggregate multiple packets before transmitting them to the element.
See https://docs.dataminer.services/develop/schemadoc/Protocol/Protocol.PortSettings.FlushPerDatagram.html.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Alarm Dashboard PDF/CSV Export 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin