Problem writing day_profile_table with multiple blocks

3 posts / 0 new
Last post
AndreasAtPowel
Problem writing day_profile_table with multiple blocks

Hi

We are trying to set the day_profile_table with quite a lot data, which causes the data to be sent in two packets. After sending the two packets with day_profile_table data, we try to set the week_profile_table, but then we get an error back from the meter. Can you please help us and see if we are doing something wrong? This is the first time that we send something in more than one packet, so I guess that we might do something wrong there...

//first packet day_profile_table
char peer0_9[] = { /* Packet 6740 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0xc8,
0xc1, 0x02, 0xc1, 0x00, 0x14, 0x00, 0x00, 0x0d,
0x00, 0x00, 0xff, 0x09, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x81, 0xb4, 0x01, 0x03, 0x02, 0x02,
0x11, 0x00, 0x01, 0x04, 0x02, 0x03, 0x09, 0x04,
0x17, 0x3b, 0x2f, 0x00, 0x09, 0x06, 0x00, 0x00,
0x0a, 0x00, 0x64, 0xff, 0x12, 0x00, 0x03, 0x02,
0x03, 0x09, 0x04, 0x03, 0x3b, 0x2f, 0x00, 0x09,
0x06, 0x00, 0x00, 0x0a, 0x00, 0x64, 0xff, 0x12,
0x00, 0x04, 0x02, 0x03, 0x09, 0x04, 0x09, 0x3b,
0x2f, 0x00, 0x09, 0x06, 0x00, 0x00, 0x0a, 0x00,
0x64, 0xff, 0x12, 0x00, 0x03, 0x02, 0x03, 0x09,
0x04, 0x0f, 0x3b, 0x2f, 0x00, 0x09, 0x06, 0x00,
0x00, 0x0a, 0x00, 0x64, 0xff, 0x12, 0x00, 0x04,
0x02, 0x02, 0x11, 0x01, 0x01, 0x04, 0x02, 0x03,
0x09, 0x04, 0x17, 0x3b, 0x2f, 0x00, 0x09, 0x06,
0x00, 0x00, 0x0a, 0x00, 0x64, 0xff, 0x12, 0x00,
0x03, 0x02, 0x03, 0x09, 0x04, 0x03, 0x3b, 0x2f,
0x00, 0x09, 0x06, 0x00, 0x00, 0x0a, 0x00, 0x64,
0xff, 0x12, 0x00, 0x04, 0x02, 0x03, 0x09, 0x04,
0x09, 0x3b, 0x2f, 0x00, 0x09, 0x06, 0x00, 0x00,
0x0a, 0x00, 0x64, 0xff, 0x12, 0x00, 0x03, 0x02,
0x03, 0x09, 0x04, 0x0f, 0x3b, 0x2f, 0x00, 0x09,
0x06, 0x00, 0x00, 0x0a, 0x00, 0x64, 0xff, 0x12,
0x00, 0x04, 0x02, 0x02, 0x11, 0x03, 0x01, 0x04,
0x02, 0x03, 0x09, 0x04, 0x17, 0x3b, 0x2f, 0x00 };

char peer1_9[] = { /* Packet 6792 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x07,
0xc5, 0x02, 0xc1, 0x00, 0x00, 0x00, 0x01 };

//second packet day_profile_table
char peer0_10[] = { /* Packet 6795 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x4d,
0xc1, 0x03, 0xc1, 0x01, 0x00, 0x00, 0x00, 0x02,
0x44, 0x09, 0x06, 0x00, 0x00, 0x0a, 0x00, 0x64,
0xff, 0x12, 0x00, 0x03, 0x02, 0x03, 0x09, 0x04,
0x03, 0x3b, 0x2f, 0x00, 0x09, 0x06, 0x00, 0x00,
0x0a, 0x00, 0x64, 0xff, 0x12, 0x00, 0x04, 0x02,
0x03, 0x09, 0x04, 0x09, 0x3b, 0x2f, 0x00, 0x09,
0x06, 0x00, 0x00, 0x0a, 0x00, 0x64, 0xff, 0x12,
0x00, 0x03, 0x02, 0x03, 0x09, 0x04, 0x0f, 0x3b,
0x2f, 0x00, 0x09, 0x06, 0x00, 0x00, 0x0a, 0x00,
0x64, 0xff, 0x12, 0x00, 0x04 };

char peer1_10[] = { /* Packet 6811 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x08,
0xc5, 0x03, 0xc1, 0xfa, 0x00, 0x00, 0x00, 0x02 };

//week_profile_table
char peer0_11[] = { /* Packet 6817 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x26,
0xc1, 0x01, 0xc1, 0x00, 0x14, 0x00, 0x00, 0x0d,
0x00, 0x00, 0xff, 0x08, 0x00, 0x01, 0x01, 0x02,
0x08, 0x09, 0x05, 0x77, 0x65, 0x65, 0x6b, 0x30,
0x11, 0x01, 0x11, 0x03, 0x11, 0x01, 0x11, 0x03,
0x11, 0x01, 0x11, 0x03, 0x11, 0x00 };

char peer1_11[] = { /* Packet 6869 */
0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x04,
0xc5, 0x01, 0xc1, 0xfa };

Regards
Helena

AndreasAtPowel
It looks like it´s working

It looks like it´s working today, so maybe it was just something temporary last week...

Regards
Helena

kurumi
kurumi's picture
Helena

Hi Helena,

Thanks for this info. I check the bytes and they look correct. Let me know if this happens again.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org