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
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

How does a string parameter store binary data?

79 views7 hours agoXML
1
Khoo Chee Yang [SLC] [DevOps Advocate]280 13 hours ago 2 Comments

I have a device that sends binary data. This binary data populates a read parameter of rawtype (other) and type (string). Does dataminer convert the binary data into an ascii string or does it leave it alone?

Laurens Moutton [SLC] [DevOps Enabler] Answered question 7 hours ago
Laurens Moutton [SLC] [DevOps Enabler] commented 13 hours ago

Through what connector connection type is the binary data received? Is it through SNMP connection (e.g. octetstring type), or through an HTTP connection type, websocket, (smart)-serial connection?

Khoo Chee Yang [SLC] [DevOps Advocate] commented 12 hours ago

Hi Laurens!
It is through serial connection

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Maria Correa [SLC] [DevOps Advocate]227 Posted 9 hours ago 0 Comments

Hello!
I believe it leaves it alone.
According to the Dataminer ECS XML agent on copilot CLI:

With rawtype="other" + type="string", DataMiner treats the value as an opaque byte sequence. It does not interpret, transcode, or null-terminate the data. What the device sends is what gets stored in the parameter.

If you need to process the binary data, you'd typically trigger a QAction on that parameter and handle the conversion yourself using protocol.GetParameter(), which returns it as a string (byte array marshalled as a .NET string).

Maria Correa [SLC] [DevOps Advocate] Answered question 9 hours ago
0
Laurens Moutton [SLC] [DevOps Enabler]9.82K Posted 7 hours ago 0 Comments

Hi,

Data entering from a serial response stores the raw bytes into the parameter without modifying them.

The way these bytes are displayed back depends e.g. if the unicode option is active or not as it will try to interpret these bytes as text characters depending on the used code page.

If a protocol.GetParameter() is called, there has already been conversion applied to the returned result as it expects it to be a string. Converting back the raw bytes based on that string could mean that some bytes are not as expected anymore.

Getting the raw bytes in a QAction as they were received in the response can be done by calling protocol.GetData as documented here

Regards,

Laurens Moutton [SLC] [DevOps Enabler] Answered question 7 hours ago
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
Privacy Policy • Terms & Conditions • Contact

© 2026 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