Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 78
» Latest member: tomksoft
» Forum threads: 200
» Forum posts: 943

Full Statistics

Online Users
There are currently 24 online users.
» 0 Member(s) | 24 Guest(s)

Latest Threads
openHAB2 binding
Forum: Host Software (Integration)
Last Post: GoHoHa
12-13-2017, 11:10 AM
» Replies: 2
» Views: 1,557
How can I increase the tr...
Forum: General Questions
Last Post: breaker27
11-07-2017, 08:26 AM
» Replies: 1
» Views: 8,694
Shutter Control device pl...
Forum: News
Last Post: breaker27
10-11-2017, 06:58 AM
» Replies: 0
» Views: 1,047
3D printer
Forum: General tips & tricks for assembling hardware
Last Post: Inhumierer
01-30-2017, 05:51 AM
» Replies: 3
» Views: 3,326
Forum and PHP version upd...
Forum: News
Last Post: Inhumierer
12-14-2016, 12:45 AM
» Replies: 1
» Views: 1,401
openhab binding
Forum: Host Software (Integration)
Last Post: mcjobo
10-08-2016, 04:17 AM
» Replies: 49
» Views: 25,859
Movement detector
Forum: Future devices
Last Post: Inhumierer
06-03-2016, 08:31 PM
» Replies: 23
» Views: 14,130
Heater thermostat (Honeyw...
Forum: Future devices
Last Post: GoHoHa
05-17-2016, 04:48 AM
» Replies: 22
» Views: 24,508
Tea Maker device now desc...
Forum: News
Last Post: breaker27
04-03-2016, 08:37 PM
» Replies: 0
» Views: 3,911
FHEM Parser error
Forum: Host Software (Integration)
Last Post: breaker27
04-02-2016, 11:27 PM
» Replies: 13
» Views: 4,400

 
  Field Time
Posted by: esa1966 - 12-17-2015, 05:14 PM - Forum: Improvements for existing devices - Replies (1)

Dear,
Firstly , congratulation for your work and the description of the protocol.

I work for a international company in Building Automation.
The system is very reliable and made for the industry.

1) Our SCADA is more or less the equivalent to a FHEM or OPENHAB. It's a server with SQL DB.
2) The Field CTRL are equivalent to Node (HVAC, SECURITY, ...)
3) A Gateway make the link between the SCADA and the CTRL (the Serial gateway or Ethernet gateway)

When the SCADA is shutdown for maintenance reasons the CTRL must stay functional (access control, HVAC, ...). It can also be down due to power outage or a network issue.

For my home system, I can also imagine that when I go on holiday, I can shutdown the server.
In case of an intrusion into my home, and if an alarm is generated off line, I need to know the real time when it occurred. Two weeks ago, I got a issue with a customer because a stealing had been made when the network was done. I was able to give the real time when it happened.

For my house, to monitor my gas meter, I build a CTRL equipped with a EEPROM AT24C32 and a RTC DS1307. It keeps +/- the last 60 days of data (one value at the end of the day) and the last week of measures (each 0.1 m3) (FIFO).
The goal is to send the measure when the server is back (I can have a pointer the the last data sent in the FIFO).

I can imagine (like our SCADA) to have two columns for date/time : a date/time when the data are recorded in the DB and a FIELD time that come from the CTRL.
The CTRL are synchronized each day at midnight (for those that have a RTC).

I didn't have seen a Timestamp in the protocol.
Is it something planned/possible?

Print this item

  Date Time Stamps
Posted by: AndreasR - 09-20-2015, 07:06 AM - Forum: Improvements for existing devices - Replies (3)

How about the possibility to send date time values to devices. Sometimes a device will do some other things where it could be helpful to have current time. I have such a device which is at the moment equipped with a DCF77 decoder but also acts as a Smarthomatic Power Switch. If the Smarthomatic protocol could deliver a timestamp to the device I could save the DCF77 stuff. The timestamp could be sent for example by FHEM.

Regards Andreas

Print this item

  Monitoring Electricity or Gas Meters
Posted by: AndreasR - 09-20-2015, 06:59 AM - Forum: Improvements for existing devices - Replies (5)

How about a feature to read this meters. The results could be evaluated by FHEM.
A (digital) Electrictiy meter often can be read out by an Infrared protocol. A Gas meter often has a magnetic signal which can generate pulses by a reed contact. What is missing is an extension of the protocol to transfer counter values and a software which decodes the infrared protocol or counts the gas meter pulses. I guess the environment sensor hardware could do this.

Regards Andreas

Print this item

  SoilMoistureMeter: Create new message for sending raw value?
Posted by: breaker27 - 03-02-2015, 06:44 AM - Forum: Improvements for existing devices - No Replies

For debugging, I send the raw value of the sensor (the frequency of the oscillator circuit) as temperature, using the existing "HumdityTemperature" message. Currently, this can be enabled by uncommenting a line in source code. It means I misuse this message, because it is not really the temperature.

Because I now find it interesing to have the raw value as default, I would like to know what you think about it.

- Do you think it's useful to have the raw value as a default? (I would then prefer to create an appropriate new message telling that this is the raw value / frequency...)
- Or do you think it's for "debugging only"? (If this is the case, I would continue to misuse the HumidityTemperature message.)

Please note that one raw value does not say much, because the values differ from plant (soil) to plant... So it seems it's more or less for debugging and to understand / verify the resulting humidity percentage.

The disadvantage of a new message is also that it has to be understood by FHEM etc.

See the attached screenshot on how the raw value looks like at one of my plants.



Attached Files Thumbnail(s)
   
Print this item

  Some suggestions in ADC handling
Posted by: arohde - 01-05-2015, 08:19 AM - Forum: Improvements for existing devices - Replies (7)

Hi,

here are some suggestions in ADC Handling:

1. Why only measuring up to 1.1V? I know, this is the internal reference voltage of an AtMega328P, but why not changing the function read_adc, to use it with other devices too?
I'm working at the moment on a new device which is based on your generic maxi board (i etched it a time ago and now it's not anymore in your git)
I want to measure voltages between 0 and 5V and not only between 0 and 1.1V. So imho it would be nice to have a function like

uint16_t read_adc(uint8_t channel, bool vcc_ref)

if vcc_ref is true we initialize the ADC to use VCC as reference and if vcc_ref is false, we use the internal 1.1V reference

I also added for my device an new GPIO-Message (11), which is named AnalogPortXT, which is the same like AnalogPort, but is 16 Bits long.

What do you think about my suggestions?

Print this item

  dimmer make pwm_lookup available to e2p
Posted by: mcjobo - 12-29-2014, 07:23 PM - Forum: Improvements for existing devices - Replies (4)

Hi
I'd like to use the existing dimmer device to control a led strip. I want to directly control the led strip with the uC pwn via a mosfet driver. But for that I want to control the pwn in the full range from completely off to completely on. What I would need for that is to control the pwm_lookup table. Would it be possible to have that lookup table defined in the e2p definitions? Pretty much like the brightness_translation table.
mcjobo

Print this item

  Moisture meter measurement drift with batt & temp?
Posted by: Inhumierer - 10-26-2014, 09:19 PM - Forum: Improvements for existing devices - Replies (5)

The moisture meter generates a frequency depending on the moisture around the plate condenser, and this frequency is measured to determine if the plant needs some water. Correct?
The frequency changes by the amount of water, but how much does the frequency change by temperature and by lower battery voltage? Did someone check?

I bought 3 moisture sensors Vegetronix VG400 (?) a year ago, which are "low cost high precision", about 40,- € each Dodgy
They need a constant power supply voltage, and wires. I may use up to 25 or 30, so I'd prefer the SHC ones, as one can imagine Big Grin

If you want to connect more than one plate condenser, I assume it is good to have it located near the Schmitt trigger. And how do you prevent the condenser PCB from oxydation inside the plant pot?

Print this item

  Know other OneWire sensors?
Posted by: breaker27 - 05-26-2014, 01:02 AM - Forum: Improvements for existing devices - Replies (11)

Do any of you know any nice OneWire sensors which should be supported in the EnvSensor (or an SHC device in general) except the DS18S20?

Currently, I only know the DS18S20 temperature sensor as a typical OneWire device, and after a quick search I only found some other temp sensors and some EEPROMs with OneWire, but no other type of sensor which is specifically unique or nice...

Print this item

  Multiple DS7505 thermal sensors
Posted by: Inhumierer - 05-24-2014, 10:41 PM - Forum: Improvements for existing devices - Replies (2)

Anyone planning to support more than one DS7505 attached to the EnvSensor? Anyone interested in this, except me? Wink

The DS7505 got 3 address pins, which can be tied to GND or Vcc, giving 8 possible I2C addresses, from 0x48 to 0x4f. Actually only the first address 0x48 is used.

I took a glance view at the source, and I think it will be no great deal to move the used variables into arrays of 8. When measure_temperature_i2c is called and DS7505 is used, a loop would walk through the 8 possible I2C addresses, and lm75_wakeup needs to return the status from i2c_write and skip the rest if the chip couldn't be initialized.

Print this item

  step-up power converter for SRF02
Posted by: breaker27 - 05-07-2014, 06:21 AM - Forum: Improvements for existing devices - Replies (5)

Because the SRF02 needs 5V, which we don't have from 2 batteries directly, I implemented a possibility to power a voltage converter for the SRF02.

Intro is here (website) (image also at the picture gallery at the top).
Detailed description is here (wiki).

It works well here.

The functionality is also supported by the current develop source. (not in 0.6.0-rc.1)

What do you think about the solution to power the regulator with PD5? Should it be configurable? Currently, I "switch" the pin on whenever a SRF02 measurement is necessary. (If no regulator is connected, this doesn't matter, only the "measurement" takes a little more time...)

Print this item