Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Node
  3. Octet-string Manipulation

Octet-string manipulation

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By lara.wakim , 3 February, 2021
Forums
General discussion

Hello Mikko,

We are trying to use the octet-string as type to store date-time values but we are facing some difficulties.

In fact, we created an object of type gxData with value type octet-string:

int addTimeStampBillingPeriod1Contract1LastReset()
{
int ret;
const unsigned char ln[6] = { 0, 0, 94, 34, 11, 255 };
if ((ret = INIT_OBJECT(timeStampBillingPeriod1Contract1LastReset, DLMS_OBJECT_TYPE_DATA, ln)) == 0)
{
static char DT[12] = "012345678901";
GX_OCTET_STRING(timeStampBillingPeriod1Contract1LastReset.value, DT, sizeof(DT));
}
return ret;
}

We are reaching sometimes a value of type gxtime or uint32(epoch time) and we want to update the value of the above object (type octet-string) based on the new value (type gxtime or uint32). We didn't know which function to use and how to do it. If you please guide us.

Best Regards,

Lara Wakim

lara.wakim

5 years 9 months ago

Hi,

Hi,

We have another question concerning the clock object. Supposing that we enabled the daylight saving and we want to initialize either the end or the begin time to the last Sunday of a certain month (for example Date of last Sunday in October). How are we supposed to write this? is it even implemented or not yet?

We noticed that you have extra info like "DLMS_DATE_TIME_EXTRA_INFO_LAST_DAY" but this means the last day of a specified month but it didn't mean the last Sunday in this month. So maybe we should add in this enumeration this case.

Best Regards,

Lara Wakim

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Association refresh related issue
  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
More

Who's new

  • amir.jradi
  • JOEBID€N123
  • yogibear
  • Eric@li
  • Asier Sierra
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin