mysmartgrid/hexabus — Issue #69: Temperature Sensor not initialized after bus rescan
Author: gonium
Created: 2012-02-24 14:25:20+00:00
State: open
Labels: application

Behaviour: The first get request (via hexaswitch) returns a temperature of 85 deg C. Subsequent requests return an adequate reading. The serial console reads:

size of packet: 9
-- Temperature: Get value
CRC Error (lost connection?)
*** problems - rescanning bus ...
Scanning Bus for DS18X20
1 DS18X20 Sensor(s) available
Current temp: 85.0000 deg C
14 bytes sent.
size of packet: 9
-- Temperature: Get value
Current temp: 23.6875 deg C
14 bytes sent.
size of packet: 9
-- Temperature: Get value
Current temp: 23.6875 deg C
14 bytes sent.
size of packet: 9
-- Temperature: Get value
Current temp: 23.6875 deg C
14 bytes sent.