Stuck in Media.Receive

2 posts / 0 new
Last post
scicek
Stuck in Media.Receive

hello, i try to read Actaris SL7000. i use Gurux.DLMS.Net library. i take as reference ur example code.
when i try to send data there is no problem, i see transmitted data. but program stucks in Media.Receive Method included ReadDLMSPacket Method. i didnt change ReceiveParameters object because of i dont know how it work. Actually i can see that the meter send data but i dont read this data.
Where is the problem? How can i fix it?

Thanks...

Kurumi
Kurumi's picture

Hi,

Have you set eop for media and ReceiveParameters? Something like this:
media.Eop = (byte) 0x7e;
ReceiveParameters<byte[]> p = new ReceiveParameters<byte[]>();
e.Eop = (byte) 0x7e;

BR,
Mikko

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