Ticket #1112 (new)

Opened 6 years ago

Last modified 5 years ago

Temperature sensor monitoring on nodes

Reported by: valentt Owned by: Musti
Priority: normal Milestone: Next milestone
Component: telemetry Version:
Keywords: Cc:
Related nodes: Realization state:
Blocking: Effort: normal
Blocked by: Security sensitive: no

Description (last modified by valentt) (diff)

Currently temperature monitoring is missing as a feature because there is no package that can do this...

There is support only in web UI but actual package is missing.

Kostko said that there is some reason why digitemp package was removed, why? Is there some other replacing it? Was it broken?

I found only one other package that could replace digitemp...

Also there in no special reason not to include digitemp as an additional package in package repo for people who would like to use it, right?

Change History

comment:1 Changed 6 years ago by mitar

  • Owner changed from kostko to Musti
  • Milestone set to 3.0b
  • Component changed from firmware to telemetry
  • Description modified (diff)
  • Summary changed from temperature sensor monitoring on nodes to Temperature sensor monitoring on nodes

comment:2 Changed 6 years ago by valentt

  • Description modified (diff)

comment:3 follow-up: ↓ 4 Changed 6 years ago by kostko

AFAIK, current development regarding sensors is focused on our custom platform for sensor nodes, more information about it can be found here and in #1068. If I remember correctly, we have had several issues with digitemp (hanging while reading data from sensor) and it is also specialized for specific sensors while we want to support many different ones.

Also there in no special reason not to include digitemp as an additional package in package repo for people who would like to use it, right?

Well, as I see it, anything that is included should be supported by us and I believe that we don't want to support something that is being replaced anyway. The current sensgw can already be used and there is also a nodewatcher script for its reporting that is compatible with nodewatcher v2, so there is no reason not to use it.

comment:4 in reply to: ↑ 3 Changed 6 years ago by valentt

Ok, I understand why including something what is not supported makes no sense, and that is clearly a good strategy.

Could I be a beta tested and troubleshooter for digitemp? I had some experience with it and had no issues so far.

I think that sensor gateway is great idea, but needing to have sensor gateway in the first place could turn off some people from even starting playing with temperature sensors, I know that it would turn me off if I couldn't have done it myself with few cheap parts.

Having digitemp coupled with a really simple circuit for temperature measurement should be first step and then "gradudate" people to using sensors gateway later after they get their feet wet...

How does this sound to you?

comment:5 Changed 6 years ago by mitar

You should really talk with Musti about this.

comment:6 Changed 6 years ago by Musti

digitemp is out of the question, since modifications in openwrt do not allow the serial port to be used for bit-banging. That is why we moved to sensgw. you can troubleshoot that :)

comment:7 Changed 6 years ago by valentt

Musti but I haven't user serial port ever for connecting sensors, I use usb port and cheap usb-to-serial adapter and that has worked great for me on wr703n router that lots of people have...

I had to read and learn about bit-banging because I haven't heard that term before ;)

I see that bit-banging can emulate most protocols using regular GPIO pins, but haven't seen people mention bit-banging serial port... and my guess is that bit-banging isn't an issue if I use USB and usb-to-serial adapters, right?

Please explain because I'm noob ;)

Last edited 6 years ago by valentt (previous) (diff)

comment:8 Changed 6 years ago by Musti

Serial port is on most routers anyway, we dont use USB because the ones with USB are too expensive. Much easier to directly solder the arduinot ot he serial port with a few wires.

digitemp emualtes 1-wire protocol over serial port by bit-banging method. In newer openwrt releases/ recent ar71xx devices this is not possible anymore.

comment:9 Changed 6 years ago by valentt

I got digitemp working just fine under stable openwrt 12.09, r36088:

# digitemp_DS9097 -i -s /dev/ttyUSB0 
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Turning off all DS2409 Couplers
Searching the 1-Wire LAN
28E1DA9A030000FD : DS18B20 Temperature Sensor
ROM #0 : 28E1DA9A030000FD
Wrote .digitemprc

and I can read 1-wire sensor without any issues that I can see:

# digitemp_DS9097 -a -q
Jun 19 19:42:22 Sensor 0 C: 29.50 F: 85.10

How can I troubleshoot further issues that you have seen?

I have done this test with usb-to-serial adapter that uses kmod-usb-serial-cp210x on TP-Link WR1043ND router.

comment:10 Changed 6 years ago by valentt

I have used sensor and usb-to-serial converter directly connected for "poor man's temperature station" which you can see on my blog.

Last edited 6 years ago by valentt (previous) (diff)

comment:11 Changed 6 years ago by valentt

Just installed latest firmware on wr703 and used usb2serial adapter that uses kmod-usb-serial-cp210x module and used dallas DS18B20 1-Wire sensor on in without problems. I'll show you tomorrow in Rijeka ;)

comment:12 Changed 5 years ago by kostko

  • Milestone changed from 3.0b to Next milestone
Note: See TracTickets for help on using tickets.