Hello.
We are playing with a device (server) that is able to geneate data by its own. As this is a TCP connection, we are using WRAPPED mode. The thing is that the meter generates a message and to identify it, the device is using serverAddress=0 for these messages. Is there a way to filter them so they do not end in the general buffer?
As I'm using GXNet, all data is received and stored in the __handleReceivedData method and even if I use a listener, I'm notified but the data remains in the buffer. What should be my approach?
I'm thinking maybe having a custom GXNet where I can modify the __handleReceivedData method so I dont' play with your files.
I don't understand. What difference will make to set serverAddress to another value?
Can you point me where is the discard part? Right now it fails when I try to read an obis and what I have first in the buffer is that message. It fails in the getPdu as the command is unknown
You can use all other server address values, but server address zero means that the server address is unknown (No-station in DLMS standard) and I believe it will cause problems.
Hi,
Hi,
Is it possible that you use some other address than zero as a server address? If you can do it, the messages are automatically ignored.
Data is appended to the buffer when you are reading data synchronously and it's removed from the buffer when data is read with GXNet.receive method.
You can read data using count or setting eop (EndOfPacket) when data is read until eop is found.
BR,
Mikko
I don't understand. What
I don't understand. What difference will make to set serverAddress to another value?
Can you point me where is the discard part? Right now it fails when I try to read an obis and what I have first in the buffer is that message. It fails in the getPdu as the command is unknown
Hi,
Hi,
You can use all other server address values, but server address zero means that the server address is unknown (No-station in DLMS standard) and I believe it will cause problems.
BR,
Mikko