Navigation

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

    Posts made by still

    • Multiple data sent, only one received

      Have a power meter pulse sensor and it counts perfect. Actually my light sensor is analog compared to the example that is digital, but the changes was easy to do.
      The Ardruino is connected via USB to my Domoticz computer. The problem is that the wattMsg is not received but the other two kwhMsg and pcMsg are reveived. I have checked the DB that the counter is saved in the database.
      I can use the kwhMsg i Domoticz but the wattMsg is just shown the first message sent but not continuously.

      If I check the serial port it look likes this
      $ sudo cat /dev/ttyACM-ElCounter
      0;1;1;0;17;1892
      0;1;1;0;24;580825
      0;1;1;0;18;580.8250

      The Domoticz Node display look like below
      Some stange things.

      • The is looks that the only children (#1) inlcudes both data (watt and kwh)
      • wattMsg have ID 0000000 and kwhMsg has ID 0000001
      • During the debugging I have seen that the presentation() function is never called.

      Any ideas? Where to start?

      0_1485898452261_upload-96a53d65-8441-4da0-886a-1547871cd6a9
      0_1485898736916_upload-9022f03c-0e98-4331-acac-7f6a9669bcad

      posted in Troubleshooting
      still
      still
    • Modularisation of library?

      Wouldn't it good to do some modularisation the mysensor library so it is possible to just use that parts that is needed and not always to be bind to some specific Arduino hardware?

      posted in General Discussion
      still
      still
    • RE: Using just the serial interface

      No one?

      First. I don't have any radio interface...
      Second, micro pro isn't supported

      So, When I don't have any radio sensors I just want to send local attached sensor data to the controller.
      Can I configure the library to just send my data? Or can someone describe how much communication are made with the controller. Are there any more messages rather the presentation and actual data that need to be sent? Any "handshake"?

      posted in General Discussion
      still
      still
    • RE: Using just the serial interface

      @mfalkvidd sure....
      I just took the example EnergeMeterPulseSensor.ino compiled and flashed it. It looked to work at some amount.
      But when I have the sensor on an analog input rather a digital input I had to do some changes. So when I was to download the changed version at the first time it wasn't possible. It failed. So after some tries I reflashed the bootloader. And now I could download again
      But only once.... Then it failed again. So reflash the bootloader again and it worked.. once....
      So after some tries I removed the MySensor.h include and comment out all the related errors after now I could upload multiple times. So I guess there is some code that writing at wrong registers or similar.

      Some other notes..
      When I don't have any radio I removed MY_RADIO_xxxx. I know I tried to set the MY_GATEWAY_SERIAL but no success.
      But please note that I don't remember every detail I did but I tried some different configurations but not any worked. All ended in destroyed bootloader.

      So I did my own message creation functions according to the API but the controller don't want to accept it fully and therefore this questions about the communication protocol sequence..

      posted in General Discussion
      still
      still
    • Using just the serial interface

      I just started with MySensors and Domoticz
      I have a Arduino Micro Pro with a ATmega32u4 that I understand now that isn't supported by MySensor library. I tried first to use the whole MySensor lib first but that destroyed the bootloader. Repared now....

      I neither need to have any radio gateway functionality so the idea was to just use the serial interface to communicate to Domoticz/Controller. So I implemented some messages from 2.0 API. And something shows up in Domoticz but it doesn't really work so I guess that there are more APIs that needs to be implemented but which ones?
      Are there any documentation that describes the handshake sequence?

      posted in General Discussion
      still
      still