HDLC Payload length 128 to 2030

2 posts / 0 new
Last post
Ashok_Chowdary
HDLC Payload length 128 to 2030

Hi,
HDLC Maxpayload lenth not working when we give other than 128(like 256/512...) in gurux client. client not able to download objects from meter. it throws error GET objects failed.
in blue book it says like
"The maximum value of the attributes max_info_field_length_transmit and max_info_field_length_receive has been increased from 128 to 2030 for efficiency reasons."

Kurumi
Kurumi's picture

Hi,

I believe that this fails because your frame buffer size is too small. If you increase the frame size you must increase the HDLC buffer size. I just did try with the default example. The client did try to connect using a frame size of 1024 and the server returned that the max frame size is 128. The client can always propose max values, but the meter decides what values are used.

Change HDLC_BUFFER_SIZE and this is updated automatically.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi