formtapez / ZigUP

CC2530 based multi-purpose ZigBee Relais, Switch, Sensor and Router
314 stars 73 forks source link

ds18b20 not giving measurements #26

Open sbruynin opened 3 years ago

sbruynin commented 3 years ago

I loaded the latest firmware to a CC2350+2195 but cannot get the temperature sensor to work. I tried router and enddevice firmware and connected a ds18b20 sensor to P0_7.

Zigbee2MQTT:info 2021-05-05 17:38:35: MQTT publish: topic 'zigbee2mqtt/0x00124b001adfb0a3', payload '{"0000000000000000":-999.99,"adc_volt":6.17,"cpu_temperature":10.53,"dig_input":1,"external_humidity":null,"external_temperature":null,"linkquality":0,"reason":"timer","s0_counts":0,"state":"OFF"}' I can get messages from P1.3 (switch), from P2.0 (dig in) and from timer but not from P0.7

I guess this value pair should be the sensor reading: "0000000000000000":-999.99 or "external_temperature":null Do I need to configure the ds18b20 elsewhere?

sbruynin commented 3 years ago

This is a Zbos sniffer output of what I receive from the ZigUP module. Can somebody give me a hint on where to look in the code to correct the DS18b20 measurement.

210508 ZigUP trace

formtapez commented 3 years ago

Did you connected the sensor like this? image

sbruynin commented 3 years ago

Yes, but I didn't use the board as draw above (yet). I used a CC2530+CC2591. I don' t know enough of the EBYTE E18-MS1 versus the module I used to understand if the problem comes from there. I also tried a DHT22, that gave same result.

sbruynin commented 3 years ago

Sensor data is connected to P0_7 of the CC2530 with a pull_up of 4K7.

sbruynin commented 3 years ago

I ordered some E18-MS1 chips to test. I assume the CC2350 with amplifier causes the problem. Somebody some ideas what the difference can be?