Page 1 of 1

1-Wire Thermocouple MAX31850 !!SOLVED!!

Posted: Wednesday 09 September 2015 10:52
by Rub87
Hello, I recently installed Domoticz on my RPI2, working great.

The next feature I wanted to add was to monitor 2 K-type thermocouples in my wood fired pizza oven.

I aquired some MAX31850, these are 1 wire thermocouple amplifiers. Wired them up togehter with a DSB12b20 for ambient temperature.

all sensor are working fine and I can see the values in the console, for instance here is temperature readout of a MAX31850:

pi@raspberrypi /sys/bus/w1/devices/3b-000000191a18 $ cat w1_slave
fd 7f 81 1b f0 ff ff ff 0c : crc=0c YES
fd 7f 81 1b f0 ff ff ff 0c t=2047812

Unfortunately Domoticz does not recognize the MAX31850 as device. It only finds the DS12B20. even if I add another 1-Wire under hardware it only displays the DS12B20..

Below are devices: 1 DS12B20 and 2 MAX31850

pi@raspberrypi /sys/bus/w1/devices $ ls
28-000006dc7fe7 3b-000000191a18 3b-000000191dab w1_bus_master1

Is there a way I can make the MAX31850 also work?

I think it will become a popular piece of equipment as these exist in almost any thermocouple type. also they are in my opinion much better than the MAX31855 which is SPI cannot be stacked.

Re: 1-Wire Thermocouple MAX31850

Posted: Wednesday 09 September 2015 11:20
by oopee
One workaround could be using FooGadget's wireless multi sensor http://foogadgets.tictail.com/. It should support MAX31850 and many other 1Wires too. If you don't mind to go wireless, that is.

Re: 1-Wire Thermocouple MAX31850

Posted: Wednesday 09 September 2015 11:35
by Rub87
That would be my last resort, but if nothing else works..

I think in the Domoticz code something has to be changed so that it also looks for other than 28-xxxxxxx devices. unfortunately I am not a programmer :(

Re: 1-Wire Thermocouple MAX31850

Posted: Wednesday 09 September 2015 21:52
by Rub87
http://owfs.org/index.php?page=ds1825

it seems OWFS has support for this, now I need to find out what it is and how I can use to work with domoticz

edit:
I found out after half a day of reading what OWFS is and how to install it. I made a fresh install with the Domoticz image as described in the wiki. then I installed OWFS. Now it seems that Domoticz is still using the Kernel instead of OWFS. does anyone know how I can tell Domoticz to use OWFS and not Kernel?

Code: Select all

2015-09-09 23:08:40.192 Domoticz V2.2563 (c)2012-2015 GizMoCuz
2015-09-09 23:08:40.193 System: Raspberry Pi
2015-09-09 23:08:40.193 Startup Path: /home/pi/domoticz/
2015-09-09 23:08:40.639 Sunrise: 07:06:00 SunSet:20:08:00
2015-09-09 23:08:40.769 1-Wire support available (By Kernel)...
2015-09-09 23:08:40.770 1-Wire: Using Kernel...
2015-09-09 23:08:40.770 1Wire: Added Device: 28-000006dc7fe7
2015-09-09 23:08:40.770 Error: 1Wire: Device not yet supported in Kernel mode (Please report!) ID:3b-000000191a18, family: 3B
2015-09-09 23:08:40.770 Error: 1Wire: Device not yet supported in Kernel mode (Please report!) ID:3b-000000191dab, family: 3B
2015-09-09 23:08:40.805 Active notification subsystems: (0/8)
2015-09-09 23:08:40.952 Webserver started on port: 8080
2015-09-09 23:08:42.155 Webserver started on port: 443
2015-09-09 23:08:44.979 OpenZWave: Starting...
2015-09-09 23:08:44.980 OpenZWave: Version: 1.3-293-ga4ea66b-dirty

Re: 1-Wire Thermocouple MAX31850

Posted: Friday 11 September 2015 10:09
by Rub87
After some more investigation, OWFS only works with USB --> I2C stick. which I dont have :/

Does someone know if I modify the file 1WireByKernel.cpp as found on https://github.com/domoticz/domoticz/tr ... ware/1Wire , how I could replace it in the pi? I tried to find it with sudo find / -name "*1Wire*" but it seems not to be there somewhere, I dont think it can be too hard to modify, as the output of the MAX31850 is very similarr as the output of a DS12B20..

Re: 1-Wire Thermocouple MAX31850

Posted: Thursday 08 October 2015 19:51
by Rub87
No one?

Re: 1-Wire Thermocouple MAX31850

Posted: Sunday 01 November 2015 17:09
by SaiQmon
Still any luck with max31850?

Re: 1-Wire Thermocouple MAX31850

Posted: Monday 02 November 2015 10:14
by Rub87
Nope, I dont have the skills nor time to find out myself how to get into the files inside the linux thing where the 1-wire thing is coded. if I could just replace the files with modified like on a windows pc it would be quite easy to copy paste 99% of the ds12b20 code and change only some minor things to make it work.

Re: 1-Wire Thermocouple MAX31850

Posted: Sunday 19 June 2016 20:12
by Rub87
No one? I can pay someone a few bucks if neccesary to add the MAX31850. I think for someone with minor coding skills it will be really easy as it really the same output as DS12B20..

Re: 1-Wire Thermocouple MAX31850

Posted: Saturday 06 February 2021 23:29
by Rub87
More then 4 years .. could please someone code that it would also allow family 3B-xxx also and not only 28-xxx

thanks!!

Re: 1-Wire Thermocouple MAX31850

Posted: Sunday 07 February 2021 10:00
by gizmocuz
In 4 years time, you should be able to build up a very good c++ coding skill. *g*
I have send you a email, let's see if we can get this supported

Re: 1-Wire Thermocouple MAX31850

Posted: Sunday 07 February 2021 10:14
by Rub87
I have built a lot of skills but not c++ coding :D

I think it could be as easy to search in the code the "Error: 1Wire: Device not yet supported in Kernel mode (Please report!)" and add the 3B to allowed device families. but yes I dont know in which file to do that, and if it is even possible without the need to recompile it..

Re: 1-Wire Thermocouple MAX31850

Posted: Sunday 07 February 2021 19:37
by Rub87
Working now in build 12922 .. THANKS!!!