Re: [mh] One Wire sensors
H Plato <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
I use OWFS and the Onewire Xap Connector (OXC) that Gregg put together a while back. I’ve added in some functionality for solar sensors as well. I use OXC rather than reading the OWFS or the OneWire MH object to eliminate potential pause sources from my main loop. OXC just sends the data to the xAP hub, and MH just picks it up. I also log all the temps in RRDs, so that I can use the fancy weather station in IA7 to see all the temp data. I also set an RRD element to 1 or 0 if heating or cooling is on, so that I can overlay that on the temperatures: > On Dec 26, 2020, at 7:02 AM, Stephen Switzer <[email protected]> wrote: > > Several years ago, I ordered a serial to RJ11 adapter from ibutton(something), called the link 12, and a few temperature sensors that look like the standard TO-92 transistor package. I connected it to MH, added one sensor to the network and tried to see if it worked. I had plans to place sensors all around the house. > > However, I hadn't ever seen any response from the serial port and shelved the project. I decided to look at it again yesterday and discovered how it worked... sort of: > > > f=First \=Snif > n=Next |=Thru > r=Reset l=Level > b=Byt(NN+) ^=57600 > j=Bit(N+) `=38400 > p=BytW/P ,=19200 > ~=BitW/P x=BusLo > d=Aux+ $=Scan > z=Aux- *=List > &=Aux? h=Help > (=Extend > t=Type "=Iso > > > 420008003BE45B10 > !,420008003BE45B10 > > I found that at 9600 baud I can press h to see the help, and *, $ will also return data about the sensor that I have on the network. Wow! I finally have something to work with, but I can't figure out where to get the readings from. Pressing p, j or b all give a 1. One time I saw a B3, but it doesn't seem to be repeatable. It's 179 anyway... my server room rack better not be that temperature!! > > So, I continued and looked for some MH code to read the serial port data. I found several examples, but none of them seemed to be for reading the OW data directly from a serial port. All seemed to read a dump from an external program - and all from Windows. I'm running Linux. > > So, I looked a owfs: installed it, configured it the best that I could figure out and poked around the /run/owfs filesystem... > > root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp > 43.1086root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp > 91.3275root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp > 14.4802root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp > 94.4001root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp > 46.0749root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/latesttemp > 90.8667root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature > 36.8015root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature > 1.73821root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature > 31.6712root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature > 65.0987root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature > 27.7991root@avalanche:~# cat /run/owfs/bus.0/10.67C6697351FF/temperature > > Every time I checked values, it was something different. Perhaps this is because I twisted the sensors onto the wires, instead of a more secure connection? > > Either way, I'm getting SOMETHING... so I think it's time to ask: how do YOU gather OW data? Is there a module for MH to tread it directly, or should we use something external? > > Thank you all! > > -- > Best regards, > Steve Switzer > > --- > Get world-class business I.T. services and a phone system with awesome features that won't challenge your budget! > http://www.sbsROC.com <http://www.sbsroc.com/>________________________________________________________ > To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users > ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users