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. Forums
  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 4 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, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin