ptvoinfo / zigbee-configurable-firmware

PTVO firmware for CC2530, CC2531, and CC2652 Zigbee chips
https://ptvo.info/zigbee-configurable-firmware-features/
MIT License
211 stars 22 forks source link

Analog values with new UART sensor #233

Closed obrain17 closed 1 year ago

obrain17 commented 1 year ago

Floating point values are not transmitted correctly over the UART.

  1. Send this message to the UART:

image

  1. Correctly logged in Zigbee2Mqtt:

image

  1. I would expect the value 3DE147AE being sent to the UART:

image

  1. Instead AEAEAEAE is sent:

image

Also for other values always the last byte is repeated 4 times.

The other way it works correctly: Writing21 92 3D E1 47 AE 3B 01 to the terminal will result in:

Debug 2023-09-17 20:38:31 Received Zigbee message from 'UART', type 'attributeReport', cluster 'genAnalogInput', data '{"presentValue":0.10999999940395355}' from endpoint 3 with groupID 0
Info 2023-09-17 20:38:31 MQTT publish: topic 'zigbee2mqtt/UART', payload '{"l3":0.11,"linkquality":76}'
ptvoinfo commented 1 year ago

@obrain17 I've fixed both bugs related to the UART sensor.

obrain17 commented 1 year ago

Thank you for the quick reaction.

I just checked both Analog value and Level Control in both directions and all values are transmitted correctly.

So I am closing the issue now.