Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. daulagari
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by daulagari

    • RE: Humidity / Temperature Sensor

      Currently I'm using rechargeable AAA, which will be switched soon, as the sensor is working fine.

      Why would you switch the batteries?

      5.2V / 4 = 1,3V so still quite full.

      These batteries are low-leakage batteries so provided the initial charge is fine and current consumption the lifespan should be good and at least 50% of that of good alkaline batteries

      posted in My Project
      daulagari
      daulagari
    • RE: antenna alignment

      If the sensor and the gateway are at the same level or about the same level I think using a half-wave dipole or "rubber duck" antenna pointed vertically is a good idea.

      That will focus the energy in the horizontal plane and not into the ground or to the air giving about 2 dBi of gain.

      posted in Hardware
      daulagari
      daulagari
    • RE: MQTT Gateway + wi-fi instead of ethernet

      Although it should not be too difficult to make the MQTT Gateway with WiFi work on hardware and software level it is a bad idea on system level:

      WiFi and MySensensor NRF24L01+ use the same 2.4 GHz band and with the antennas close a transmit from one will block the other and vice-versa.

      posted in Controllers
      daulagari
      daulagari
    • RE: antenna alignment

      @shabba You ask for the plane for the antenna but to for that it is handy to describe your house or setup, one or multiple floors, concrete walls etc?

      posted in Hardware
      daulagari
      daulagari
    • RE: [security] Introducing signing support to MySensors

      @rvendrame:

      • The ZWave paper you point to describes a problem implementation, not the protocol itself it seems to me:

      The root cause of this issue was lack of state validation
      in the key exchange protocol handler programmed in the Z-
      Wave door lock firmware.

      • Yes, if you lose your normal key anybody that knows to which lock it belongs can break in.
      • But, if your key has no information on to which lock it belongs to the risk is small, the same is true for a remote.
      posted in Development
      daulagari
      daulagari
    • RE: Can't send message over arduino serial monitor

      You should not typ "\n"!
      It means that you should press enter on your keyboard.

      On Linux I saw that I have to send "\r\n" instead of "\n".
      "\r\n" (Carriage return, Line feed) is the Windows return, "\n" only the Linux return.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: nRF24L01 + and 433MHz RF on the same Gateware

      What kind of protocol is the 433 MHz RF running?

      posted in General Discussion
      daulagari
      daulagari
    • RE: Windows GUI/Controller for MySensors

      @tekka : Thanks, things work now fine! 👍

      posted in Controllers
      daulagari
      daulagari
    • RE: Windows GUI/Controller for MySensors

      Did do some more experimenting using a sort of Ethernet gateway (actual the relayed Serial gateway data) and see that MYSController.exe can connect but once it prints the first data it gives the "File not open." error and no further data is printed.

      So it does not look like a serial port issue but something else.

      Did not know Lazarus but it looks pretty good!

      posted in Controllers
      daulagari
      daulagari
    • RE: Windows GUI/Controller for MySensors

      I have AutoFW disabled.

      The funny thing is that things do not work at all if I do not get the "File not open" error.
      No, rebooting the gateway does not make the "Gateway startup complete" message re-appear.

      Did watch the serial port using interceptty and see data is passed so it seems like Wine is not passing it.

      posted in Controllers
      daulagari
      daulagari
    • RE: 2.0 Discussion: Units, sensor types and protocol

      Would be good to move the last five message into a separate thread...

      posted in Announcements
      daulagari
      daulagari
    • RE: 2.0 Discussion: Units, sensor types and protocol

      Yes, signing, when properly done, is for sure a good begin.

      How many bytes are you using for the truncated MAC and nonce?

      The AES block size is 128 bytes, so 16 bytes so I do not see why that would not fit.

      Encryption is already some kind of authentication is a sense that if you can successfully decode the message you can be sure that the other side knows the shared secret, just like in the cause of your SHA25-HMAC.

      posted in Announcements
      daulagari
      daulagari
    • RE: 2.0 Discussion: Units, sensor types and protocol

      what benefit is there from encryption vs signing in the MySensors case?

      If you have a lock or door sensor do you want others to know when it is opened or closed?

      Signing is quite expensive if you look at additional payload size, you need a big counter to prevent replay and a big MAC to prevent attacks. I think that when encrypting things you can do it with the same additional payload and maybe even a less.

      posted in Announcements
      daulagari
      daulagari
    • RE: Windows GUI/Controller for MySensors

      Doing OTA did work once but trying a second time did not work out yet.

      I found that it is important the user that runs "wine MYSController.exe" must have access to the port ~/.wine/dosdevices/COMx links to:

      $ ls -als /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_*
      0 lrwxrwxrwx 1 root root 13 25 jan 09:38 /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9SZN99X-if00-port0 -> ../../ttyUSB0
      

      Is not good ("root root"), I changed the link to to:

      $ ls -asl /dev/ttyUSB0 
      0 crw-rw---- 1 root dialout 188, 0 25 jan 11:34 /dev/ttyUSB0
      

      In the debug log I see the 0;0;3;0;14;Gateway startup complete. message but no messages from the sensor.

      Looks like the "File not open." window I am getting and:

      fixme:comm:set_queue_size insize 4096 outsize 0 unimplemented stub
      

      I am seeing on the command line has something to do with it.

      NB: Seems like the GUI is programmed using TK. How about compiling it for Linux?

      posted in Controllers
      daulagari
      daulagari
    • RE: Otabootloader upload ?

      What kind of error do you get?

      posted in Development
      daulagari
      daulagari
    • RE: How does Vera display complex nodes

      @olaeke : Thanks!

      So in total four devices meaning, the Node itself and a device for every (Child)-Sensor. Makes sense.

      Just wondering what other Controllers are doing here. I think at least some completely ignore the child node numbering and either put all values without context or all values under the Node.

      posted in Vera
      daulagari
      daulagari
    • How does Vera display complex nodes

      Suppose I have a Node with:

      • Node ID = 7
      • Child nodes 3, 11, and 21:
      • Child node 3 sends a presentation S_TEMP followed by a set V_TEMP
      • Child node 11 sends a presentation S_POWER followed by a set V_WATT, V_KWH and V_VOLTAGE
      • Child node 21 sends a set V_TEMP, V_HUM, V_PRESSURE, V_RAIN, V_DIRECTION and V_UV

      How is that displayed in Vera?

      posted in Vera
      daulagari
      daulagari
    • RE: Minimal design thoughts

      That chip is still only for authentication, only it's with aes-128 message auth instead of sha 256

      If I have a look at the datasheet I see:

      Opcode Name        Description
      0x06   Encrypt     Encrypts 16 or 32 bytes of plaintext data provided by the Host.
      0x07   Decrypt     Decrypts 16 or 32 bytes of data provided by the Host after verifying the integrity MAC.
      

      So it does encrypt/decrypt.

      The CryptoCape board has both ATSHA204A and ATAES132 where the ATAES132 can "Encrypt up to a 32 byte packet at a time with AES-128-CCM"

      Not sure if it is handy to have the integrity MAC combined as that does require 16 additional bytes, but that is the same story for SHA-256.

      posted in Hardware
      daulagari
      daulagari
    • RE: child-sensor-id = 255

      Okay, clear, thanks!

      posted in Controllers
      daulagari
      daulagari
    • RE: issues with light lux sensor and trinket pro

      Did you have a look at the serial output of the Light Lux Sensor sketch on the Trinket?

      posted in Vera
      daulagari
      daulagari
    • RE: child-sensor-id = 255

      mentioned on the api page to only use 0-254.

      Yes I now see...

      But that does not describe child-sensor-id = 255 😉

      posted in Controllers
      daulagari
      daulagari
    • child-sensor-id = 255

      Seems like child-sensor-id = 255 is a special value as I see:

      2015/01/24 19:04:18 [MySensors] < 1;255;0;0;17;1.4.1
      2015/01/24 19:04:18 [MySensors] Node 1, sensor 255 is presenting itself as Arduino node device
      2015/01/24 19:04:18 [MySensors] < 1;255;3;0;6;0
      2015/01/24 19:04:18 [MySensors] Providing node 1.255 config: M
      2015/01/24 19:04:18 [MySensors] > 1;255;3;0;1;M
      2015/01/24 19:04:20 [MySensors] < 1;255;3;0;11;Light Lux Sensor
      2015/01/24 19:04:20 [MySensors] No support for I_SKETCH_NAME Internal message yet.
      2015/01/24 19:04:20 [MySensors] < 1;255;3;0;12;1.0
      2015/01/24 19:04:20 [MySensors] No support for I_SKETCH_VERSION Internal message yet.
      2015/01/24 19:04:20 [MySensors] < 1;0;0;0;16;1.4.1
      2015/01/24 19:04:20 [MySensors] Node 1, sensor 0 is presenting itself as Light sensor
      2015/01/24 19:04:20 [MySensors] < 1;0;1;0;23;21
      2015/01/24 19:04:20 [MySensors] Set value '21' for node 1
      

      Would be good to have this documented on http://www.mysensors.org/build/serial_api

      posted in Controllers
      daulagari
      daulagari
    • RE: issues with light lux sensor and trinket pro

      From the same schematics I have of the same PB1 to PB5 mapping:

      Arduino_Nano_PB_mapping.png

      The pins not available for use on the trinket pro are chip pins PD2 (INTO) and PD7 (AIN1)

      Above you mentioned D 2 and D 7 but indeed it looks like PD2 (INTO) and PD7 (AIN1) and these are also not connected on the Arduino Nano.

      Did you have a look at the serial output of the sketch?

      posted in Vera
      daulagari
      daulagari
    • RE: issues with light lux sensor and trinket pro

      In my schematic of an Arduino Nano D7 is connected to pin 10 and http://www.mysensors.org/build/connect_radio is written with the Arduino Nano in mind:

      Arduino_Nano_pinout.png

      posted in Vera
      daulagari
      daulagari
    • RE: MQTT Gateway - works, pings but no messages while listening to broker
      <<C0 00 
      >>D0 00
      

      is a MQTT hartbeat

      The 0;0;3;0;9 are gateway log messages.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: issues with light lux sensor and trinket pro

      If the Trinklet has no D7 how did you connect the NRF24L01+ transceiver CSN/CS pin?

      posted in Vera
      daulagari
      daulagari
    • RE: Waterproof Temp Sensor with dht humidty/temp sensor

      Hi @cleight

      To help you further it would be good if you can post the errors you are getting and add a link to the Dallas temperature sensor you are trying to use.

      posted in My Project
      daulagari
      daulagari
    • RE: issues with light lux sensor and trinket pro

      My LightLuxSensor sketch has:

      #define CHILD_ID_LIGHT 0
      #define LIGHT_SENSOR_ANALOG_PIN 0
      

      The CHILD_ID_LIGHT is used for gw.present(CHILD_ID_LIGHT, S_LIGHT_LEVEL); indicating that the node should request an address/use the address in EEPROM.

      The LIGHT_SENSOR_ANALOG_PIN is used in the LightSensor but not in the LightLuxSensor so can be ignored.

      First time I see a Trinket Pro 5V, but I see no reason things should not be working.
      How about the radio, is that connected fine?

      posted in Vera
      daulagari
      daulagari
    • RE: Minimal design thoughts

      It's a crypto authentication device

      As discussed in the security thread I think authentication alone can be useful but encryption is providing both security and a reasonable form of authentication so why not go for an encryption IC instead of the ATSHA204A.

      Atmel has a nice IC doing AES:

      http://www.atmel.com/devices/ATAES132.aspx

      A bit larger (8 pins SOIC), but reasonable cheap € 0,782 (@10)

      It is also part of CryptoCape, so there should be some software support for it.

      posted in Hardware
      daulagari
      daulagari
    • RE: Windows GUI/Controller for MySensors

      I can not select the serial port yet, so could not test it further, likely have to do some mapping in wine.

      Took some time to find out but after:

      • Adding a mapping from the Linux serial port to the Wine dosdevice configuration:
        ln -s /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_* ~/.wine/dosdevices/COM3

      • Adding to ~/.wine/system.reg:

          [Hardware\\Devicemap\\Serialcomm] 1231984861
          @=""
          "Serial0"="COM1"
          "Serial1"="COM2"
          "Serial2"="COM3" 
      

      I could start MYSController.exe and select COM3 and get:

      File_not_open.png

      But after pressing OK things look to work however:

      Gateway_startup_complete.png

      @tekka : Thanks!

      posted in Controllers
      daulagari
      daulagari
    • RE: Controller IP auto-discovery for EthernetGW

      @Zen : Agreed UPnP is overkill (but would be cool), your approach is much simpler and therefore better but what would be good is to standardize on something so Controller can add support for it.

      posted in Feature Requests
      daulagari
      daulagari
    • RE: Controller IP auto-discovery for EthernetGW

      What about UPnP? 😉

      posted in Feature Requests
      daulagari
      daulagari
    • RE: Windows GUI/Controller for MySensors

      @tekka

      here is the first alpha version of the MYSController

      👍

      Saw it was a Windows executable but did give it a try on Linux:

      wine MYSController.exe
      

      And the GUI comes up nicely!

      I can not select the serial port yet, so could not test it further, likely have to do some mapping in wine.

      posted in Controllers
      daulagari
      daulagari
    • RE: Sensor taking the status of a blinking led of an alarm system

      is there a nice way to add code? Do I really have to add 4 spaces before every line?

      Yes, that is the way to format code.

      But ... knowing some tools there is no need to do it by hand. In vi/vim:

      :%s/^/    /
      posted in Development
      daulagari
      daulagari
    • RE: Smallest sensor with greatest battery

      Not replacing the battery is not possible, most normal batteries are empty after eight years also if you do not use them.

      posted in General Discussion
      daulagari
      daulagari
    • RE: knowing RF from sensor

      What is the brand of these door sensors? A photo can also help.

      But unlikely you can use them out-of-the-box with MySensors...

      posted in General Discussion
      daulagari
      daulagari
    • RE: Have the Controller search for sensors

      Hi @rdevine,

      1, 2, 3 look fine to me.\

      On:

      1. The controller that will receive the information will be a Raspberry Pi 2.0 Model B 512MB.
      2. On the controller I am uncertain as to the software that will be placed on the controller.

      There is some debat about terminology but I think most people on this forum agree that the controller is something like Vera, OpenHAB, DomotiGa, PiDome etc. For the whole list (answer to #5), see all entries under Select Controller. Many of these controllers can run on your Raspberry.

      Between the controller and the sensors is the gateway, see under Select Gateway. Before you ask why the Raspberry can not be a gateway, see Port of MySensors Library 1.4 to Raspberry or do a search for Raspberry but for sure a Arduino gateway will be the simplest.

      posted in Controllers
      daulagari
      daulagari
    • RE: Have the Controller search for sensors

      I am not sure if I can follow you.

      Is there a way to enable the controller to be the one that searches for the sensors?

      Why would you want to do that, sensors will have to report eventually their values to the gateway/controller, so I see no problem having them register with the gateway/controller.

      This would allow for the sensor to be smaller by having the large antenna be placed on the controller.

      A large antenna is most of the times a very directional antenna, is that what you mean?

      posted in Controllers
      daulagari
      daulagari
    • RE: Windows GUI/Controller for MySensors

      Yes, looks really nice!

      Seems to be written in TK so cross-platform, even better!

      posted in Controllers
      daulagari
      daulagari
    • RE: Arduino 220V AC wattmeter

      If you want something simple, see http://gizmosnack.blogspot.se/2014/11/power-plug-energy-meter-now-wireless.html.

      posted in My Project
      daulagari
      daulagari
    • RE: Battery power sensor acting strange

      I see in your code that before the battery level is sent the temperature is sent:

       // Only send data if temperature has changed and no error
       if (lastTemperature[i] != temperature && temperature != -127.00) {
           // Send in the new temperature
           gw.send(msg.setSensor(i).set(temperature,1));
       }
      

      Could it be that when measuring the battery voltage just after the temperature data has been sent the battery voltage is temporary lower?

      A way to test that is to add a delay before sending the temperature.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: NRF24L01+ with external antenna - don't work

      Some questions:

      • What is the distance between the node and the gateway?
      • Did you point the antenna towards the gateway?
      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Battery Powered Distance Sensor reports incorrect

      The only thing I can guess is the Stepup module is emitting a frequency that the SR04 is picking up as the "echo" to the "ping" it sends out on trigger.

      Can you post a photo of how your setup looks like?

      If it is really interference shielding might help.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Keep getting "st=fail" despite both 3.3V regulator and decoupling capacitors

      I agree with @griffinsaic, power is most likely your issue but another thing to check is interference, see the Issues with multiple gateways + choosing frequency / channel thread.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: DIY Outdoor LED

      They never mention CRI so I figure that they'd have to be the worst of the bunch, no better than 65 or 70. But perhaps it doesn't matter for the purpose?

      I think a good CRI is important for the kitchen, with a low CRI you have the chance that food does not look that attractive anymore. A low CRI most of the times translates in poor red colors but I think that is not soon a problem for the front of the house.

      For much more background see A close look at the Color Rendering Index (CRI, or Ra).

      posted in General Discussion
      daulagari
      daulagari
    • RE: Node Child and MQTT Subscribe

      In MQTT you can use wildcards so you can subscribe to everything published.

      I am not familiar to myMQTT but I know mosquitto_sub and that can be quite handy for debugging.

      posted in Development
      daulagari
      daulagari
    • RE: PIR sensor with nRF24L01+ transmitter gives false alarms if supply voltage over 2,98 volts

      Looking at http://www.instructables.com/id/PIR-Motion-Sensor-Tutorial/ I see the PIR has a BIS0001 IC on it and according to it's datasheet it has a supply voltage of 3 ~ 5 Volt.

      You write you have the voltage regulator of the PIR removed, then it is luck it is working when powering it below 3 Volt 😉

      One other thing I see in the datasheet is:

      Description    |          Range     | Unit
      Input voltage  |  Vss-0.3~ Vdd+0.3  |  V
      

      Could it be that if you supply power at a voltage over 2,98 volts you come outside this range?

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Sensor on gateway

      It should be possible to connect sensors to the gateway and pass it to the controller but I have not seen anybody doing it so probably you will have to write/merge the code yourself.

      posted in General Discussion
      daulagari
      daulagari
    • RE: Relay for PCB relay node

      Looking at the datasheet of the IRM-05-5 the Derating Curve shows that for 70 degrees the load drops to 0% so it looks like it has thermal protection.

      posted in Hardware
      daulagari
      daulagari
    • RE: Relay & Sensor Battery powered

      For the size and cost I think you better chose an AC powered device.

      Additional to the link posted by @m26872, @petewill just posted full instructions on how to build this on $8 Lamp (Outlet) "Smart Plug" Module

      posted in Hardware
      daulagari
      daulagari
    • RE: Relay for PCB relay node

      Do you suggest to use an optocoupler for safety?

      I do not see why you would want to use and optocoupler unless some part of the circuit can be touched but like @ServiceXp asks, more crucial is how you are going to convert from 230V to 5V.

      posted in Hardware
      daulagari
      daulagari
    • RE: My 1AA battery sensor

      @klim : Nice idea and thanks for documenting it here!

      Following @tbowmo I am wondering what is the effect of the stepup converter very close to the antenna; although the converter will work in the kHz range, it harmonics can be in the 2.4 GHz range and quite loud, so it could be that some channels are worse than others. Also the coil can induct currents in the traces of the NRF24L01 board.

      I am not so worried about the metal of the battery, that will impact the antenna pattern and maybe the impedance but the overall energy transmitted will be largely the same.

      But, that is all theory would be good to know if you see any drawback.

      I do not see a capacitor on the NRF24L01 board between the 3.3V and GND. Looks like you have one on the board but I think you can improve things by adding a low-ESR capacitor on the NRF24L01 board see http://www.mysensors.org/build/connect_radio

      posted in My Project
      daulagari
      daulagari
    • RE: nRF24LE1 full controller to control devices and sensors reading!!

      Yes, very nice IC. From the datasheet:

      Key Features:

      • nRF24L01+ 2.4 GHz transceiver (250 kbps, 1 Mbps and 2 Mbps air data rates)
      • Fast microcontroller (8051 compatible)
      • 16 kB program memory (on-chip OTP)
      • 1 kB data memory (on-chip RAM)
      • 1 kB OTP data memory
      • AES encryption HW accelerator
      • 16-32 bit multiplication/division co-processor (MDU)
      • 6–12 bit ADC
      • High flexibility IOs
      • Serves a set of power modes from ultra low power to a power efficient active mode
      • Several versions in various QFN packages

      There is also a variant that has 16 kB flash instead of OTP.

      16 kB is not that much, would a simple MySensors sensor fit in that?

      posted in Hardware
      daulagari
      daulagari
    • RE: Transmitting only battery status

      Looking at your log it looks like the node is requesting a Node ID from the gateway but the gateway is not providing it meaning the sensor will execute the normal code.

      255;255;3;0;3;
      

      See http://www.mysensors.org/build/serial_api, this is an internal message of the type I_ID_REQUEST.

      The Node ID is normally provided by a controller.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: How to get relay state?

      On http://www.mysensors.org/build/relay you will find apart from the Relay also a RelayWithButtonActuator Example.

      Do you have some kind of feedback from the relay indicating it's status? If so, connect that to the button input and done!

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Sensor radio vs Bluetooth ?

      Bluetooth indeed hops around in the 2.4 GHz band split in 100 kHz bands but Bluetooth has an algorithm to stay out channel that are occupied. For that to work, Bluetooth has off coarse to see the other "user" and if the channel is not used that often that can take time or will not work.

      But .. provided that Bluetooth stays out the band you are using for MySensors there is still a possible problem in that the nRF24L01+ (like almost all 2.4 receiving IC's) has a wide-band LNA followed by a mixer followed by filtering and more gain. The wide-band will see both the Bluetooth and the Signal Of Interest (SOI) and if the level of Bluetooth if much larger than the SOI things will also go wrong.

      So if you have Bluetooth at 50 cm, it will probably come in around -30 dBm, the nRF24L01+ can receive signals up to -85/-94 dBm and this kind of level differences can give problems, see also Table 7 of the nRF24L01+ datasheet.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: How long a cable can one have between the uC and a sensor?

      If you are really worried about things as inductance, reflections, capacitance and impedance why not provide the sensors a somewhat higher voltage and have the sensor a "big" capacitor and a voltage regulator bringing the voltage back to 5/3.3 Volts.

      posted in Hardware
      daulagari
      daulagari
    • RE: importing graphics to eagle

      A search on the Internet gave me:

      http://www.instructables.com/id/Adding-Custom-Graphics-to-EAGLE-PCB-Layouts/

      posted in Hardware
      daulagari
      daulagari
    • RE: Can't load from Codebender :-(

      Which browser do you use?

      See http://www.mysensors.org/build/arduino:

      Some browsers might need some extra care to get the plugin working.

      I also read:

      The code compiles on cloud server with all libraries installed and ready to use.

      So did you get the code from http://www.mysensors.org/build/ethernet_gateway ?

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Nothing on serial monitor on MySensor sketches

      send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:

      Seems like your node is requesting a id from a controller, see for example http://forum.mysensors.org/topic/531/using-an-uno-for-sensor-with-negative-results

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Full-Duplex Network

      Main goal is speed and reliability.

      Speed is no goal for me me using MySensors, I see one second reaction time as no problem.

      Reliability is I think everybody cares about and for that it can be good to use/scan multiple frequencies as the 2.4 GHz band can be quite crowded.

      I'll do more tests regarding distance and orientation between radios.

      That would be good; if you come to some conclusions it would be great I you can share them.

      posted in My Project
      daulagari
      daulagari
    • RE: Full-Duplex Network

      @sfam:

      what you think minimum distance should be?

      Hard to say, I do not know what is the radiation pattern of the antennas and orientation can make a big difference.

      The best thing you can do is either accept the reduced range or experiment moving the antennas out of each other and changing their orientation relative to each other.

      Still a nice idea to make a full-duplex link. Do you have any special plans with it?

      posted in My Project
      daulagari
      daulagari
    • RE: Two questions from a newbie

      What if my neighbour also discovers this site and starts to build a network?

      Like @tbowmo indicated you can select another channel.

      If you are worried about your neighbor controlling your lamps or listening to your messages, have a look at http://forum.mysensors.org/topic/9/security

      posted in General Discussion
      daulagari
      daulagari
    • RE: Full-Duplex Network

      I am wondering if with a setup as you point out above you can really have full duplex in real life scenarios.

      The two antennas are very close together and I think the isolation is less than 10 dB. The architecture of the receiver is that it has a wide-band LNA so suppose you are receiving a signal at -70 dBm and the other radio is transmitting at 0 dBm. With 10 dB antenna isolation that means it couples in at -10 dBm.

      The -10 dBm (although on a other frequency) will clip the wide-band LNA so that you will no longer be able to decode the -70 dBm wanted signal anymore.

      I can claim around 50% increase in transfer rate speeds and even better improvement in round-trip time between 2 nodes.

      I am surprised... What kind of distance is there between the two nodes?

      posted in My Project
      daulagari
      daulagari
    • RE: Powering LED strip lighting

      0.2 Watt per LED seems reasonable, so 60 Watt or 5A @ 12 V per strip.

      If you want to have not too much voltage drop over the 20/8 feet you should use a cable that has low resistance, only 1 Ohm gives 5 Volts voltage drop...

      Maybe better to run 110/230 Volts to the strip and have the power supply there.

      posted in General Discussion
      daulagari
      daulagari
    • RE: Powering LED strip lighting

      How much current does these strips draw?
      I read it is 12 Volts but what counts for wiring is the current...

      posted in General Discussion
      daulagari
      daulagari
    • RE: nRF24L01+PA

      I test standard module (PCB antenna ) and module with external antenna..
      same result .. if use standard module then 30m is distance +- few meter .. with external antenna also same distance ..

      30 meter is less than I would expect for two antennas seeing each other and enough clearance but to give some meaningful feedback a photo would help.

      I solder big capacitor to mule 2200uF , 6.3V .. and power 3V for node and 3.3V for gateway ..

      A big capacitor is not better, what counts is ESR (or the "Freq. measured" in the table) and the capacitor being big enough. The higher the frequency the better the capacitor can "reject" high frequency noise on the power supply.

      posted in General Discussion
      daulagari
      daulagari
    • RE: nRF24L01+PA

      Free space is a good start but like indicated there are still numerous gotchas:

      • How is the powering/decoupling of the radio's
      • Are the antennas pointed to each other
      • How high are the antenna placed above ground

      What is the range you get?
      Some photo would be nice.

      posted in General Discussion
      daulagari
      daulagari
    • RE: Non Polarized Capacitor .22 uF rated 400 volt

      I have been unassembling TV's when I was young and still have quite some high voltage capacitors from that 😉

      But looking at:

      https://www.conrad.nl/nl/componenten/componenten-passief/condensatoren/keramische-condensatoren.html?filterNominale+spanning~~V=400

      .22 uF = 220 nF = 220.000 pF seems not that easy to get.

      Still, with a bit searching:

      http://www.ebay.com/itm/0-22uf-220nf-275vac-X-type-capacitor-x-2-/300649967406

      posted in Hardware
      daulagari
      daulagari
    • RE: nRF24L01+PA

      Guys, please have a look at http://forum.mysensors.org/topic/182/standard-versus-lna-pa-radio-modules

      Ignoring antenna effects, if only one side has a ePA + LNA your link budget is only 2.6 dB better. In open air 6 dB means doubling the distance, in other environments you need often 10 dB extra to double distance.

      posted in General Discussion
      daulagari
      daulagari
    • RE: Arduino with ethernet shield direct connect to openhab without NFR

      Depending on what gateway you use, another solution could be to implement an MQTT client on Arduino, see http://knolleary.net/arduino-client-for-mqtt/

      posted in Hardware
      daulagari
      daulagari
    • RE: nRF24L01+PA

      on e-shop write 1km ..

      Can you provide the link?

      but I have same distance like standard module with PCB antenna..

      Like I wrote, I am not 100% surprised. What is the range you get?

      Have also a look at http://forum.mysensors.org/topic/182/standard-versus-lna-pa-radio-modules

      posted in General Discussion
      daulagari
      daulagari
    • RE: nRF24L01+PA

      I have the module in use but did not directly compare the range with an normal module.

      That is also almost impossible because the antennas are different and with things working on 2.4 GHz, moving an unit just 5 centimeter can make a huge difference.

      posted in General Discussion
      daulagari
      daulagari
    • RE: relay actuator ...

      but how can I send relay state after power on?

      Power on of what?

      If the node is powered on I assume the state is always the same probably off.

      If the gateway is powered on while the node was already on I think there is currently no way for the gateway to request the state.

      Still, if you want to know the state it makes sense to add a "sensor" that could also be used to see if maybe the power is lost.

      posted in Development
      daulagari
      daulagari
    • RE: Raspberry Pi and MQTT-OpenHAB

      I can nothing say about OpenHAB or PiDome but:

      Started!
      0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
      0;0;3;0;9;version mismatch 
      0;0;3;0;9;read: 0-0-0 s=0,c=0,t=0,pt=0,l=0:
      0;0;3;0;9;version mismatch
      

      Does not look good, it seems an error from the gateway.

      posted in General Discussion
      daulagari
      daulagari
    • RE: MySensored 230v motion sensor with light level

      Good example you to work with 230 Volts relatively safe without too much effort!

      No way to use the on board power for the Arduino?

      Yes that should be possible but maybe less safe.

      posted in My Project
      daulagari
      daulagari
    • RE: MQTT-SN

      I think that:

      • It does overlap with MySensors for the wireless network. MQTT-SN assumes a network that provides a bi-directional data transfer service between any node and a particular one (a gateway). MySensors wireless network could provide data transfer but the message are really tailored to transport sensor and actuator values.
      • MQTT-SN for the gateway - controller interface is not needed MQTT is for that more than fine

      That said I like the idea of MQTT-SN but for it a "transparent network" makes more sense.

      posted in General Discussion
      daulagari
      daulagari
    • RE: My first working Switch with Battery and Temperature ..

      @dzairo: Nice piece of work and looking at the schematics with enough attention to decoupling and powering the device!

      power consumption is 7uA .

      I assume that is sleep current. Do you know anything about the average consumption over say one hour?

      but want support 4x button.. then need litle help how to use it ..

      I think I can not directly help you with this but it would be good to know to which pins the buttons are connected, that is not readable from the schematics above.

      posted in My Project
      daulagari
      daulagari
    • RE: nRF24L01+PA

      I assume you have an antenna connected, right?

      With an antenna[*] comes directivity so if things are not pointed correctly you can indeed get less range than using a normal board.

      [*] Unless you use invented an isotropic radiator 😉

      posted in General Discussion
      daulagari
      daulagari
    • RE: Arduino 220V AC wattmeter

      yes the zwave chip and license and dev kits are expensive and proprietary...

      Any idea what piece of the pricing is due to the zwave chip and license?
      Is that in the order of 2, 5, 10 or 15 Euro/Dollar?

      On implementing it using MySensors: As this is 230/110 Volts, I think a housing is essential. In that sense I think I would start buying a cheap energy/watt meter from Ebay, opening it and replace the electronics by your own electronics.

      posted in My Project
      daulagari
      daulagari
    • RE: Gateway/sensor Range Advice

      @Dan-S. What kind of walls/floors do you have?

      Here in Holland, concrete is quite standard and concrete contains metal; I see that typically it is not possible to cross two walls/floors reliable with WiFi, so that should also count for MySensors. Range is best if antennas can "see" each other directly (through a door/stairwell).

      Yes, a repeater can not sleep and can therefore not really be battery operated.

      Can you run a cable from your basement to the middle floor?

      posted in Hardware
      daulagari
      daulagari
    • RE: Arduino 220V AC wattmeter

      Look at the fibaro wall plug
      Thats exactly what i want aldo then for less money or a arduino based plug.

      That is quite challenging goal!

      If you do not mind the form size it should be possible and the component cost could be lower.

      ZWave devices are quite expensive (is that the Zwave license?) but companies have the economies of scale so they can spread fixed cost over more units and get volume discount on components.

      posted in My Project
      daulagari
      daulagari
    • RE: DomotiGA

      @diamantmatch Too bad this is not working.

      The serial port did work for me some weeks back but I have been busy to transition to an Ethernet gateway (not done yet). Let me get the serial gateway back up and give it a try.

      Which version of DomotiGa are you using?

      posted in DomotiGa
      daulagari
      daulagari
    • RE: MySensors Controller

      First, how do I connect the serial gateway to the Pi? Usb to usb or usb to GPIO?

      If you make the serial gateway using an Arduino Nano you can just connect the USB of the Nano to the USB of you Raspberry Pi; you should see it using lsusb as:

      ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
      

      An it should enumerate as ttyUSB, but better try "ls /dev/serial/by-id/"

      Second, do I need the OTA stuff to get it to work if I only want to collect some data? I dont see the point but I might have missed something.

      No it is not needed. The OTA stuff is meant for Over-The-Air updates.

      posted in Controllers
      daulagari
      daulagari
    • RE: 2.0 Discussion: Units, sensor types and protocol

      Yes, indeed interesting reading also in the light of controllers.

      posted in Announcements
      daulagari
      daulagari
    • RE: Air Quality: CO2 Sensor MH-Z14

      Nice, thanks, good to have to monitor in-house CO2 levels and global warming...

      Quite an expensive sensor, what are your plans with it?

      posted in My Project
      daulagari
      daulagari
    • RE: Arduino Yun, Linino, OpenWRT

      @humblehacker : Yes, I think I misunderstood your point.

      The promise that embedded Linux/OpenWRT holds (e.g Linino, Yun etc...) is it doesnt require "porting" anything at all!

      Let's see, based on what you wrote above ("I wonder how difficult it would be to integrate the MySensors library with the bridge Library?") it seems you are not completely sure.

      The controller then needs to either host a heavy native application or it needs to connect to a web service.

      Can a Raspberry Pi "host a heavy native application" in your mind?

      I think a Raspberry Pi is great as controller and think Linino/Yun/OpenWRT would be too thin.

      posted in Controllers
      daulagari
      daulagari
    • RE: Arduino Yun, Linino, OpenWRT

      However, the major disadvantage to the hardware serial approach is it requires a separate controller like the Raspberry Pi to connect to the cloud. As cheap as the RPi is, it still seems like a suboptimal use of something with the capabilities of a full PC.

      Many controllers can run on a PC.

      For me the serial, Ethernet and MQTT gateway are simple and cheap enough not wanting it to port to some kind of other platform. Although porting is maybe simple it is additional effort that I think can be spent better.

      posted in Controllers
      daulagari
      daulagari
    • RE: Communication problem (maybe)

      As you can see i'm getting way more than 1 reading a second. I think this is happening because of the rounding up/down of the temperature readings.

      Yes, clear, if you do not want this you need to change the if to something like:

      if (abs(lastTemperature[i] - temperature) >= 0.5 && temperature != -127.00) {
      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Controller to Sensor communication problem

      So, now I replay with 255:255:3;0;4;1 instead of 255;255;3;0;4;0 and when I get the request 1;10;2;0;3;1.4.1

      Yes I think node-id 0 should not be used.

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Minimal design thoughts

      Is it necessary to use solar power? A couple of standard AA batteries, is probably good for 2000mAh, and with a consumption of below 50uA, you got battery power for 4-5 years..

      Sounds great, 4-5 years without changing batteries but will that be real? The bad thing is that if true it take 4-5 years to prove it.

      Also the sun doesn't shine inside my house

      But a solar cell does not need solar to generate (some) current unless your house is completely dark 😉

      But yes, if it is only 2-3 year going with rechargeable batteries is overkill.

      posted in Hardware
      daulagari
      daulagari
    • RE: Communication problem (maybe)

      So this tells me, that if you only have "1-way send" battery nodes in the mesh eg. temp sensors, then the "intelligent" mesh works fine, but as soon as you introduce main powered "recieve" nodes to the setup, it starts to fail (big time!).

      Good observation but what is the difference between the "1-way send" battery nodes and the main powered "receive" nodes? Is it that the main powered nodes do send more often messages and therefore the network gets flooded?

      I am not sure how this is related to "i decided to reset all the nodes. Starting with the temp nodes and the relay at the end."

      On:

      The only problem now is that i'm getting flooded with temp readings! Anyone know of a simple solution to only have reading every 1 min without killing the radio?

      In there sketch there is:

      // Fetch and round temperature to one decimal
      float temperature = static_cast<float>(static_cast<int>((gw.getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;
      
      // Only send data if temperature has changed and no error
      if (lastTemperature[i] != temperature && temperature != -127.00) {
      
        // Send in the new temperature
        gw.send(msg.setSensor(i).set(temperature,1));
        lastTemperature[i]=temperature;
      }
      

      Right?

      Is the temperature changing every minute??

      posted in Troubleshooting
      daulagari
      daulagari
    • RE: Minimal design thoughts

      @tbowmo Very nice design!

      Personally I would make something similar but with the option to charge things using an external solar cell or just a charger. With the new generation of low-leakage NiMH rechargeable batteries I am very tempted using these to power the sensor.

      posted in Hardware
      daulagari
      daulagari
    • RE: MySensors power consumption

      @dopustko

      arduino works at 1MHZ directly connected to batteries, DHT22 is connected to step up regulator which is switched on only when measure is taken.

      Nice arrangement 👍

      I have been thinking to do something like it but did not come to it yet.
      One question: What kind of step up convertor do you use and how do you switch it?

      posted in Hardware
      daulagari
      daulagari
    • RE: Lua Startup Failure (*SOLVED*)

      @rafael.brasilia: Did you try powering the clones using an external power supply connected to Vin.

      That solved some problems I had getting an Ethernet gateway up-and-running.

      posted in Vera
      daulagari
      daulagari
    • RE: Help to Beginner..

      what is s=255 , or c=3 , pt=0 , l=0 ... where I can finid more information about this ?

      AFAIK this is not documented somewhere .. apart from the source files.

      posted in Hardware
      daulagari
      daulagari
    • RE: Help to Beginner..

      in original serial communication example is 6 value in string : 12;6;0;0;3;1.4\n
      But I received only 5 ...

      The 6th "value" is the payload, see Message Structure Elements at http://www.mysensors.org/build/serial_api, just like "Gateway startup complete." is the payload for the "0;0;3;0;14;Gateway startup complete. " message.

      node-id;child-sensor-id = 255;255 means something like broadcast. It is for example used for nodes that do not have an address yet.

      Lines starting with "read: " are strictly no protocol messages, they are debug output of the gateway.

      posted in Hardware
      daulagari
      daulagari
    • RE: Help to Beginner..

      On:

      Where I can find more information about serial protocol ... what does mean data from gateway?

      Have a look at http://www.mysensors.org/build/serial_api

      Where I can find more information about protocol .. if want make own code for sensor .. but not in arduino platform .. but for AVR Studio (GCC .. WinAVR) ..

      You can download and probably did download the source code from github so why don't you try to get that working on the AVR Studio?

      posted in Hardware
      daulagari
      daulagari
    • RE: Minimal design thoughts

      Right now, board dimensions with Si7021, 328p, spi flash, no stepup, is down to 15x21mm (smaller than the radio module).

      Nice, that sounds really like a minimal module!

      posted in Hardware
      daulagari
      daulagari
    • RE: Simplest DB storing controller

      Looks like you are looking for something like the MySensors cloud service, see http://www.mysensors.org/build/raspberry but I guess that will not happen soon.

      Not sure if there is a way to do something like SSL, but if so you could use the Ethernet gateway and connect to some kind of "closest server".

      posted in Controllers
      daulagari
      daulagari