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. I Want Function For ESW1

i want function for ESW1

By sekar , 31 March, 2025
Forums
Gurux DLMS for ANSI C

2E 5C 08 00 00 11 11 01 02 03 04 90 83 45 25 00 01 2C 00 4B 00 10 00 00 00 0B 02 00 19 04 2F 7D 2B 56 00 09 08 39 30 38 33 34 35 32 35 00 09 0B 4C 4E 54 39 30 38 33 34 35 32 35 00 04 02 04 00 00 12 00 00 00 12 00 43 00 12 00 66 00 12 00 00 00 12 00 D2 00 12 00 00 00 12 00 00 3C

in this event interrupt i got 04 02 04 00 in this length i got only 16bit but i need 128bit
i am not using malloc

i want below code to write ESW1 please correct me

int addESW_Status() {

int ret;

const unsigned char ln[6] = { 0, 0, 94, 91, 18, 255 };

if ((ret = INIT_OBJECT(event_status_word, DLMS_OBJECT_TYPE_DATA, ln)) == 0) {

GX_BITSTRING(event_status_word.value);

}
return ret;
}

Profile picture for user Kurumi

Kurumi

1 year 4 months ago

Hi, Get the latest version…

Hi,

Get the latest version. There is now event status word example.

https://github.com/Gurux/GuruxDLMS.c/blob/918587a059f24433ce0aec69c4bbd…

You need to update files under the development folder. There are a couple of changes to make this easier to use and bug fixs.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin