We need to communicate meter using the MQTT interface.
One dought is there if a meter is connected using MQTT broker, In that case how to identify the profile generic data received from the meter and other request's responses.
You can send only one request at time to the meter, so you know what you have read and what is the response. There is no identifier on the received data.
As per my understanding once the meter publishes a message to MQTT broker then the broker will send data to a meter. And in Subscriber, we get the response.
Consider the following scenario :
Now before getting a large profile generic response if we publish request message again in that case how we can identify that which response will be receive?
You can ask only one request at time from the meter. If your idea is that the message is lost, you re-send the request after a timeout. There is a message counter in HDLC frames and invalid messages are skipped.
Now I want to send a request to multiple meters using the MQTT media interface and subscribe on topic where all responses will be receiving from meters.
In that case how to identify response and parse accordingly. Because when we receive the response we do not know which request's response received.
Hi,
Hi,
You can send only one request at time to the meter, so you know what you have read and what is the response. There is no identifier on the received data.
BR,
Mikko
Hi Mikko,
Hi Mikko,
As per my understanding once the meter publishes a message to MQTT broker then the broker will send data to a meter. And in Subscriber, we get the response.
Consider the following scenario :
Now before getting a large profile generic response if we publish request message again in that case how we can identify that which response will be receive?
Hi,
Hi,
You can ask only one request at time from the meter. If your idea is that the message is lost, you re-send the request after a timeout. There is a message counter in HDLC frames and invalid messages are skipped.
BR,
Mikko
Hi Mikko,
Hi Mikko,
Thanks for the update.
Now I want to send a request to multiple meters using the MQTT media interface and subscribe on topic where all responses will be receiving from meters.
In that case how to identify response and parse accordingly. Because when we receive the response we do not know which request's response received.
Can you please provide an update asap.
Hi,
Hi,
Each NIC has a unique topic. Using that topic you know who is the sender.
BR,
Mikko