Log in

View Full Version : Queued Message for SubDevices


sandor
May 13th, 2018, 07:33 AM
Hello,

I want to add the queued message handle for my dimmer system but as I see in the standard the queued_message_get is addressed only for the root device. If one of my sub-device have message to collect do I simple reply with the corresponding PID and modify the sub-device field in the reply message?


Sandor
www.pls.hu

sblair
May 13th, 2018, 08:57 PM
Yes, that is correct. The intent of this is to reduce the amount of polling needed so QUEUED_MESSAGEs are sent only to the root device and the response can be either from the root or the sub-device by setting the Sub-Device field accordingly in the response.

sandor
May 14th, 2018, 02:10 AM
Thank You Scott! ;)

zano_villa
January 20th, 2026, 08:10 AM
Hello,
just about QUEUED and STATUS MESSAGES.
Explicitly in ANSI1.20-2025, it is written that the Message Count field in QUEUED MESSAGES defines the number of messages, excluding STATUS MESSAGES, that are queued in the responder.
Does it mean that STATUS MESSAGES can not queued like any other message, but they can be delivered to controller only as the last message of the queue, or otherwise by the specific STATUS_MESSAGE PID?

sblair
January 20th, 2026, 04:46 PM
I believe that the correct intent is to collect all the queued messages first and then after that you'll receive any status messages. If you determine it is more important to return a status message first, I don't see anything that prevents you from doing that. They key thing is that you wouldn't change the Message Count since that is only counting queued messages not including status messages.

zano_villa
January 21st, 2026, 06:36 AM
Hello,
about STATUS MESSAGE IDs definitions.
In RDM standard I see that DataValue1 & 2 shall be integers, but I would need to show voltage and current with decimal digits.
Is it possible in any way?


Thank you

ericthegeek
January 23rd, 2026, 08:22 AM
You can use the "Prefix" field of SENSOR_DEFINITION.

For example, if you need to display 6.3 volts, then you can use PREFIX_DECI in SENSOR_DEFINITION and return the integer 63 in SENSOR_VALUE.

Depending on how much precision you need, you could also use PREFIX_MILLI and return the integer 6300.

When using prefixes, it's up to the controller's User Interface to determine how to display the data. For my second example, the controller might display "6300 mV", or it might display "6.300 V". Or it might let the user configure how the data is displayed.

ericthegeek
January 23rd, 2026, 08:29 AM
Should have read more carefully - you're asking about Status Messages, not sensors.

Status messages use printf()-style string substitution. You can include the prefix in the string returned by STATUS_ID_DESCRIPTION.

Example: "Output range is %d mV"