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
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • 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
    • 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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Is there a way to convert CRC result in ASCII instead of hex?

Solved939 views2nd March 2023Connector crc serial protocol
7
Joachim Ally [SLC] [DevOps Enabler]1.57K 2nd March 2023 0 Comments

Dear Dojo Community,

Currently, I am developing a connector of the serial type.

Goal

In the documentation, the CRC check that is needed is explained like this:

There are also two examples included in the documentation, on which I indicated the CRC-part:

Current Code

What I tried to develop this was a CRC-param of type 'exor' and built the two sample messages:

  • The CRC-params:

  •   The commands:

Result

This did not get me the wanted result. It seems that I need an extra conversion to get the CRC-result in the format the device expects.

Workarounds

For the fixed commands that needs to be sent, I could hardcode the needed bytes. And for the responses, I could do a check via a QAction to verify if the response was correctly transmitted.

Question

Is there a way to achieve the wanted result without having to use this workarounds? I searched for an option in the documentation of the CRC-param, but did not find an option that could help me.

Joachim Ally [SLC] [DevOps Enabler] Selected answer as best 2nd March 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
5
Tom Waterbley [SLC] [DevOps Catalyst]8.93K Posted 2nd March 2023 1 Comment

Hi Joachim, could you please try with <RawType>numeric text</RawType> instead of <RawType>unsigned number</RawType>. At the bottom of the following page, there is an example that does exactly what you want. There 6D is being converted to 0x3644 in the data.

https://docs.dataminer.services/develop/devguide/Connector/ConnectionsSerialCreatingCommandsAndResponses.html#cyclic-redundancy-check-crc

Joachim Ally [SLC] [DevOps Enabler] Posted new comment 2nd March 2023
Joachim Ally [SLC] [DevOps Enabler] commented 2nd March 2023

Hi Tom, thank you very much for the solution and the link to the detailed documentation page. I confirm that this worked for me. 🙂

You are viewing 1 out of 1 answers, click here to view all answers.
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

© 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