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. Gurux Dlms Ansi C Profile Generic

gurux dlms ansi c profile generic

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 raghavendra , 8 March, 2019
Forums
Gurux.DLMS

i am using ansi c dlms code for development i am able to read all instantaneous values voltage,current etc but when i am trying to read profile generic eventlog and billing i am not able to read when i am used GXDLMS Director i am able to read profile generic event log and billing and load but meter responding and sending data to stack i am receiving frame and i am printed separately and compared with director frames what i did wrong i am not able to understand please guide me whatever i did and frame bellow i mentioned please refer

int main()
{
uart_init();
cl_init(&meterSettings,1,32,1,DLMS_AUTHENTICATION_LOW,"lnt1", DLMS_INTERFACE_TYPE_HDLC);
cosem_init(( gxObject* )&reg_profile, DLMS_OBJECT_TYPE_PROFILE_GENERIC,"0.0.99.98.0.255");
com_readRowsByEntry((gxProfileGeneric*)&reg_profile,1,1);

}
sent frame

7E A0 2C 03 41 54 AF 99 E6 E6 00 C0 01 C1 00 07 00 00 63 62 00 FF 02 01 02 02 04 06 00 00 00 01 06 00 00 00 01 12 00 01 12 00 00 84 39 7E
received frame
7E A0 5B 41 03 52 E5 37 E6 E7 00 C4 01 81 00 01 01 02 0D 09 0C 07 E0 09 07 FF 0E 00 04 FF 01 4A 00 11 07 05 00 00 1D 69 05 00 00 1D 69 05 00 00 1D 69 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 1A CA 7E

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Hi,

Hi,

You are reading one row and meter replies it like should be.
http://www.gurux.fi/GuruxDLMSTranslator?translate=7EA05B410352E537E6E70…

You need to loop buffer through. Check client example. I hope it helps you.

BR,

Mikko

raghavendra

7 years 3 months ago

Gurux dlms ansi c profile generic

When i am executing com_readrowbyentry function it is showing error "parameters are invalid" and retuns error 252
When i am debugged objectcapture and buffer size is zero but i am receiveing fram from energy meter and also when it is coming out of com_readrowbyentry the values are not updating stricture parameters but when i am reading instantaneous values com_read function not giving any error and after this function structure parameters of the object updated

raghavendra

7 years 3 months ago

Gurux dlms ansi c profile generic

Whatever gurux dlms ansi c stack is there it is not executing profile generic fram properly there is some issue in the stack bellow mentioned Fram i am getting from the L&T meter but this stack not executing this fram properly it is showing error please tell me how to solve
7E A0 5B 41 03 52 E5 37 E6 E7 00 C4 01 81 00 01 01 02 0D 09 0C 07 E0 09 07 FF 0E 00 04 FF 01 4A 00 11 07 05 00 00 1D 69 05 00 00 1D 69 05 00 00 1D 69 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 1A CA 7E

raghavendra

7 years 3 months ago

Gurux dlms ansi c profile generic

Hi sir ,

When i am sending Request to read profile generic data meter responds and i am getting fram but gurux dlms ansi c stack not executing fram properly there is some issue in stack i am getting data fram but stack returns error and values are not updating properly whatever fram i am getting from meter i am mentioned bellow please tell me how to solve
7E A0 5B 41 03 52 E5 37 E6 E7 00 C4 01 81 00 01 01 02 0D 09 0C 07 E0 09 07 FF 0E 00 04 FF 01 4A 00 11 07 05 00 00 1D 69 05 00 00 1D 69 05 00 00 1D 69 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 05 00 00 00 00 1A CA 7E

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Gurux dlms ansi c profile generic

Hi,

We are not working on weekends. Please, don't send the same question several times. I'll answer as soon as possible.

You need to read capture objects first. Attribute index 3. Without this info client don't know what kind of objects there are captured.

BR,

Mikko

raghavendra

7 years 3 months ago

In reply to Gurux dlms ansi c profile generic by Kurumi

Gurux dlms ansi c profile generic

Hi,
I am using attribute index 2 .but I am not able to read capture objects .how I can read capture objects any function is there to read capture objects

Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Gurux dlms ansi c profile generic

Hi,

There is a typo. Capture objects are in attribute index 3.

BR,
Mikko

  • 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