Skip to main content
Home
for DLMS smart meters

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

2 months 2 weeks 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

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/17/2025 - 13:03
    Gurux.DLMS.Python 1.0.182
  • Wed, 06/04/2025 - 13:35
    gurux.dlms.c 9.0.2506.0401
  • Fri, 05/30/2025 - 08:30
    gurux.dlms.c 9.0.2505.3001
  • Tue, 05/27/2025 - 08:10
    Gurux.Serial.Android 2.0.12
  • Mon, 05/26/2025 - 08:39
    gurux.dlms.c 9.0.2505.2601

New forum topics

  • Day profile action item add error (String is not recognized as valid DateTime value)
  • Create gateway protocol in c
  • Error while reading event log object
  • GXDLMS Simulator – AssociationLogicalName Not Listed
  • Failed to read meter through raspberry pi 5 and probe
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin