Concox CRX PRO+ 4G - External Battery Voltage (GT06)

Alexandre K. 6 months ago

I checked the information coming from this device and noticed that the external battery voltage information was appearing randomly in the device's returns to the server.

It comes with the attribute 'adc1'. The server needs to reference this attribute in the pop-up information with the common name: 'External Battery Voltage', and keep it fixed when it doesn't appear in the next update, updating it periodically. Other information is also included.

Including the possibility of an alert if it doesn't come within an acceptable value (e.g., below 11.0 volts).

The CONCOX CRX PRO+ 4G protocol is GT06.

Alexandre K. 6 months ago

I believe other devices using GT06 share the same type of external battery voltage announcement. That's why it doesn't always come with updates (constantly).

Anton Tananaev 6 months ago

You should use computed attributes and attribute copying to achieve what you want.

jps1972 3 days ago

Hi,

I tried to create a computed attributes to assign into device, the "adc1" into power variable, but nothing is appers, should I do anything more?
Thank you.

Regards

Anton Tananaev 3 days ago

Have you linked it to your device?

jps1972 2 days ago

Yes, its linked.
In log said that:

WARN: Attribute computation error - org.traccar.handler.ComputedAttributesHandler.computeAttribute:155@1:1 variable 'adc1' is undefined - Variable (ComputedAttributesHandler:156 < *:168 < BasePositionHandler:34

what is not true, because attribute is present.
Any idea?

Thank you.

Anton Tananaev 2 days ago

It must be true for that position.