Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

spaceLynk reading 14 byte HEX, how to preserve null characters?

SpaceLogic KNX Forum

Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • Light and Room Control
  • SpaceLogic KNX Forum
  • spaceLynk reading 14 byte HEX, how to preserve null characters?
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Thomas_Rohde
Sisko Thomas_Rohde Sisko
121
Erwin-vd-Zwart
Sisko Erwin-vd-Zwart Sisko
54
Heribert_Dölger
Lt. Commander Heribert_Dölger Lt. Commander
30
FZetina
Lt. Commander FZetina Lt. Commander
27
View All
Related Products
product field
SpaceLogic KNX - 4ʺ Touch Unit
product field
KNX Push Button Dynamic Labeling, universal
product field
Wiser for KNX : logic controller

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SpaceLogic KNX Forum
Solved
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-23 12:58 AM . Last Modified: ‎2024-07-15 12:04 AM

0 Likes
11
819
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-23 12:58 AM

spaceLynk reading 14 byte HEX, how to preserve null characters?

Hello all,

A KNX device have an object with the DPT 219.001 6 byte alarminfo, which is currently not supported directly by the spaceLynk. It can be read using DPT 16.002 14 byte HEX.

Our problem is that the spaceLynk discards null characters ('\0'), which makes it difficult to decode the data properly. Having logged the object I can see the raw data in the Object data column.


5016

We have tried string.format('%q') without success.


Is there any other way to get the raw data with all null characters read by a script for further processing?

Ole Morten
  • Thumbnail of SpaceLogic KNX - 4ʺ Touch Unit
    SpaceLogic KNX - 4ʺ Touch Unit
  • Thumbnail of KNX Push Button Dynamic Labeling, universal
    KNX Push Button Dynamic Labeling, universal
  • Thumbnail of Wiser for KNX : logic controller
    Wiser for KNX : logic controller
View products (3)
Tags (4)
  • Tags:
  • alarminfo
  • homelynk
  • knx
  • spacelynk
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-29 12:39 AM

0 Likes
0
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-29 12:39 AM

For instance, in an event-based script:

value = event.datahex

will retrieve the complete HEX value with all null characters.

Thanks to for pointing out the right direction.

Ole Morten

See Answer In Context

Reply
Replies 11
sesa299442
sesa299442 Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2014-10-23 11:06 PM

0 Likes
9
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-23 11:06 PM

What exactly do you need to do with this number?

Reply
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-23 11:41 PM

0 Likes
8
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-23 11:41 PM

Hi Tomas,

The 6 bytes in DPT 219.001 alarminfo represents different error states of the equipment. Our customer would like to monitor this information via the BMS system.

My thought is to split the complete HEX string into two groups (4 and 2 byte) that can be exported to BMS for further processing and decoding. That is however difficult to achieve as long as the length of the raw HEX string varies.

Let me know if you require more details.

Many thanks for your reply.

Ole Morten
Reply
lfiat
Ensign lfiat
Ensign

Posted: ‎2014-10-23 11:53 PM

0 Likes
7
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-23 11:53 PM

Hi Ole Morten,

May you test with this non official FW update (attached), it is for homeLYnk but it has to be possible to install in a spaceLYnk:

this update includes correction for DPT 16.002 14 byte HEX management.

Regards,


Lionel

Attachments
InstalUpadte-HL-FW1.2.1-14byte_datatype_fix_V1.0.lmup.zip
Reply
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-24 12:30 AM

0 Likes
6
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-24 12:30 AM

Thank you Lionel,

The update was installed and the spaceLynk rebooted.

Unfortunately, the value seems to be interpreted the same way as before the update was applied. Have I missed something?

5022

Ole Morten
Reply
sesa299442
sesa299442 Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2014-10-24 01:15 AM

0 Likes
5
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-24 01:15 AM

Can you try to use ASCII data type?

Reply
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-24 01:18 AM

0 Likes
4
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-24 01:18 AM

I have tried, the result is exactly the same as with HEX.

Null characters are discarded.

Ole Morten
Reply
sesa299442
sesa299442 Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2014-10-24 01:52 AM

0 Likes
3
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-24 01:52 AM

If you use ASCII, only zeros on right-hand side should be non-visible.

Actually the zeros are there, they are not just displayed in the view.

Reply
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-24 02:31 AM

0 Likes
2
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-24 02:31 AM

Thanks again,

Using either ASCII or HEX and the script below, with a raw value 0x000300000000 the alert says: "\3"

value = grp.getvalue('4/1/1')

str = string.format("%q", value)

alert(str)


Is there another format to use to make the zeros appear?

Ole Morten
Reply
sesa299442
sesa299442 Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2014-10-24 04:24 AM

0 Likes
1
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-24 04:24 AM

I do not know why you have the the slash "\" in your alert.

What do you get if you just print log(value) from your script?

Where did you read the "raw value"?

Give me one example of alert you are sending from KNX device:

-expected value in hex

-homelynk object data type

-current value in homeLYnk object list

-value in log (decoded value)

-value in log (object data)

-str from you script

-value from your script

And can you tell me which device you are communicate with?

Reply
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-24 06:01 AM

0 Likes
0
759
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-24 06:01 AM

Hello,

Attached is a document with the information you have reqested.

If you have time next week I can arrange so you can connect to the spaceLynk controller and have a look yourself. Let me know an appropriate time and I can email you details.

Ole Morten
Attachments
Reply
olemotor
Commander olemotor Commander
Commander

Posted: ‎2014-10-29 12:39 AM

0 Likes
0
760
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2014-10-29 12:39 AM

For instance, in an event-based script:

value = event.datahex

will retrieve the complete HEX value with all null characters.

Thanks to for pointing out the right direction.

Ole Morten
Reply
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of