Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperature Sensor not initialized after bus rescan #69

Open
gonium opened this issue Feb 24, 2012 · 4 comments
Open

Temperature Sensor not initialized after bus rescan #69

gonium opened this issue Feb 24, 2012 · 4 comments
Assignees

Comments

@gonium
Copy link
Member

gonium commented Feb 24, 2012

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.

@ghost ghost assigned domke Feb 24, 2012
@gonium
Copy link
Member Author

gonium commented Feb 24, 2012

On development branch, commit 7e8ae40

@EmbeddedBrains
Copy link

This behavior ist quite normal. In case of reqesting a temperature value without triggering a conversion, you will receive the default reading. This is +85°C (datasheet DS18S20 page 2 "The power-on reset value of the temperature register is +85°C")

@domke
Copy link
Contributor

domke commented Feb 24, 2012

jep, this is my theory as well. I will consider to update the code to make sure to trigger a conversion bevor returning a reading.

@paalsteek
Copy link
Contributor

What's the state of this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants