Navigation

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

    Topics created by dzairo

    • dzairo

      RFM69HW radio speed
      General Discussion • • dzairo  

      4
      0
      Votes
      4
      Posts
      155
      Views

      mfalkvidd

      @dzairo no need to modify MyConfig.h. Just add the define to your sketch, if you want to override the default setting. Additional documentation: https://www.mysensors.org/apidocs/group__RFM69Newgrp.html#ga70bef975c2c3070e34c24770f7f301b9
    • dzairo

      OrangePi Zero
      MyNodes.NET • • dzairo  

      6
      0
      Votes
      6
      Posts
      2254
      Views

      dzairo

      ehm.. sorry .. not read older post.. but may be..
    • dzairo

      Send directly and to gateway
      General Discussion • • dzairo  

      1
      0
      Votes
      1
      Posts
      599
      Views

      No one has replied

    • dzairo

      Reboot Node
      General Discussion • node id watchdog reboot • • dzairo  

      2
      0
      Votes
      2
      Posts
      1598
      Views

      AWI

      @dzairo search the Web for rebooting arduino from code. There are many ways each with its own (dis) advantages.
    • dzairo

      Maximum for .sleep
      General Discussion • sleep • • dzairo  

      3
      0
      Votes
      3
      Posts
      1551
      Views

      dzairo

      oh it's really long .. thanks.
    • dzairo

      32 I2C Relay
      My Project • relay i2c pcf8574 • • dzairo  

      1
      1
      Votes
      1
      Posts
      1732
      Views

      No one has replied

    • dzairo

      Ethernet Gateway
      General Discussion • ethernet gateway • • dzairo  

      4
      0
      Votes
      4
      Posts
      1591
      Views

      dzairo

      Hi . Here is my example .. working with my code for Relay board 32 relay by I2C IO expander. #include <MySensor.h> #include <SPI.h> // Define version #define VSN "v1.0" // Define Name #define NAME "Test" // Define Sensor - button #define BLU 1 // Button Left Up #define BLD 2 // Button Left Down #define BRU 3 // Button Right Up #define BRD 4 // Button Right Down // Sensor objects MySensor gw; void setup() { // eeprom_write_byte((uint8_t*)EEPROM_NODE_ID_ADDRESS, (byte)255); gw.begin(incomingMessage,AUTO); // Node ID auto .. if not used gateway , Node ID must define manualy gw.sendSketchInfo( NAME, VSN ); // Name and version gw.present(BLU, S_LIGHT); gw.present(BLD, S_LIGHT); gw.present(BRU, S_LIGHT); gw.present(BRD, S_LIGHT); } void loop() { gw.process(); } void incomingMessage(const MyMessage &message) { if (message.type == V_LIGHT) { MyMessage response (message.getByte(),V_LIGHT) ; // message.getByte() = payload define what relay want change state response.setDestination(1); // My Relay Board gw.send(response); } }```
    • dzairo

      Re-assign ID
      General Discussion • myscontroller reassign id • • dzairo  

      3
      0
      Votes
      3
      Posts
      1510
      Views

      dzairo

      [2016-04-27 20:55:10.973 Info] INFO *** Logging START *** [2016-04-27 20:55:10.974 Info] VERSION MYSController 0.1.2.282 [2016-04-27 20:55:33.569 Info] NODE New node discovered, node id=2 [2016-04-27 20:55:33.570 Info] CHILD New child discovered, node id=2, child id=internal [2016-04-27 20:55:33.570 Info] DEBUG Assigned firmware=Blink to node=2 [2016-04-27 20:55:33.571 Info] INFO BL version=257 [2016-04-27 20:55:33.572 Info] INFO Send FW info to node 2: type=A, version=1, blocks=0x02C8, CRC=0xB718 [2016-04-27 20:55:33.573 Info] TX 2;0;4;0;1;0A000100C80218B7 [2016-04-27 20:55:33.574 Info] RX 2;255;4;0;0;0A000100C80218B70101 [2016-04-27 20:55:33.655 Info] SIGNING Node 2 does not require signing [2016-04-27 20:55:33.656 Info] SIGNING MYSController is not signing [2016-04-27 20:55:33.656 Info] TX 2;255;3;0;15;0 [2016-04-27 20:55:33.658 Info] RX 2;255;3;0;15;0 [2016-04-27 20:55:33.658 Info] DEBUG Update child id=255, type=ARDUINO_NODE [2016-04-27 20:55:33.659 Info] RX 2;255;0;0;17;1.5.4 [2016-04-27 20:55:33.662 Info] TX 2;255;3;0;6;M [2016-04-27 20:55:33.663 Info] RX 2;255;3;0;6;0 [2016-04-27 20:55:35.671 Info] RX 2;255;3;0;11;Bin.Sensor Sleep [2016-04-27 20:55:35.674 Info] RX 2;255;3;0;12;1.0 [2016-04-27 20:55:35.676 Info] CHILD New child discovered, node id=2, child id=3 [2016-04-27 20:55:35.677 Info] DEBUG Update child id=3, type=DOOR [2016-04-27 20:55:35.678 Info] RX 2;3;0;0;0; [2016-04-27 20:55:35.679 Info] CHILD New child discovered, node id=2, child id=4 [2016-04-27 20:55:35.679 Info] DEBUG Update child id=4, type=DOOR [2016-04-27 20:55:35.681 Info] RX 2;4;0;0;0; [2016-04-27 20:55:35.722 Info] RX 2;3;1;0;16;1 [2016-04-27 20:55:35.745 Info] RX 2;255;3;0;0;79 [2016-04-27 20:55:40.876 Info] RX 2;4;1;0;16;0 [2016-04-27 20:55:41.375 Info] RX 2;4;1;0;16;1 [2016-04-27 20:55:42.819 Info] RX 2;3;1;0;16;0 [2016-04-27 20:55:43.461 Info] RX 2;3;1;0;16;1 [2016-04-27 20:55:54.189 Info] TX 2;0;3;0;13;0 [2016-04-27 20:56:13.510 Info] REPO FW "Blink" loaded. t=10, v=1, blocks=712, crc=0xB718 [2016-04-27 20:56:13.523 Info] REPO FW "TimeReporter" loaded. t=20, v=1, blocks=840, crc=0x4AC5 [2016-04-27 20:56:13.542 Info] REPO FW "Sensebender Micro" loaded. t=100, v=1, blocks=1344, crc=0x3482 [2016-04-27 20:56:13.552 Info] REPO FW "Sensebender Blink" loaded. t=110, v=1, blocks=768, crc=0x1314 [2016-04-27 20:56:13.552 Info] REPO FW repository loaded. Items=4 [2016-04-27 20:56:17.551 Info] TX 2;0;3;0;13;0 [2016-04-27 20:57:00.075 Info] CHILD New child discovered, node id=2, child id=3 [2016-04-27 20:57:00.076 Info] RX 2;3;1;0;16;0 [2016-04-27 20:57:00.439 Info] RX 2;3;1;0;16;1 [2016-04-27 20:57:02.092 Info] CHILD New child discovered, node id=2, child id=4 [2016-04-27 20:57:02.094 Info] RX 2;4;1;0;16;0 [2016-04-27 20:57:02.363 Info] RX 2;4;1;0;16;1
    • dzairo

      Help with ACK ..
      Hardware • ack • • dzairo  

      1
      0
      Votes
      1
      Posts
      860
      Views

      No one has replied

    • dzairo

      More sensor in One chart
      MyNodes.NET • • dzairo  

      5
      0
      Votes
      5
      Posts
      1614
      Views

      derwish

      @dzairo Each node has a description in the editor (in the context menu). There is a link to a description of all the nodes. Installation on RPi is not different from installing on Ubuntu. MyNodes - Install in Ubuntu (ASP.NET5) – 03:11— My Nodes I'm waiting for Microsoft will release a new ASP.NET framework. Then the installation process on Linux will be simplified.
    • dzairo

      Security for mySensors
      Hardware • xtea secure • • dzairo  

      16
      0
      Votes
      16
      Posts
      10918
      Views

      dzairo

      I don't know .. but ideally is if nrf24l01 set ack with payload .. and this payload will contain random number or rtc time .. encrypted with xtea . all node or repeater if receive ack then got this number or rtc time .. and use in next packet .. nrf24l01 chip can make 50%work alone .. node if send data packet then wait for hardware ack . and this ack can contain payload .. this payload will be starting point ..gw will generate actual payload for ack sequence .. It's just idea ..
    • dzairo

      nRF24L01+PA+LNA
      General Discussion • • dzairo  

      35
      0
      Votes
      35
      Posts
      39054
      Views

      Oitzu

      @karl261 with the original nrf24l01+ modules this is correct, yes. To save battery use the lowest setting that still works without transmitting errors.
    • dzairo

      migrate to cc1101..
      General Discussion • • dzairo  

      4
      0
      Votes
      4
      Posts
      2126
      Views

      dzairo

      rf69 look very good .. big tx tower , hardware security etc.. but ho to use with MySensors , who have schematic , code example ..etc.. is possible buy this in eu? or in slovakia or czech republik?? regards .. 868mhz or 433mhz
    • dzairo

      Stand alone radio relay
      General Discussion • controller serialgateway serial protocol • • dzairo  

      2
      0
      Votes
      2
      Posts
      1527
      Views

      RJ_Make

      @dzairo Can't help you with the project as it's way over my pay grade, but it sounds interesting. Good Luck!
    • dzairo

      Serial Gateway as Controller
      General Discussion • controller serialgateway serial protocol • • dzairo  

      8
      0
      Votes
      8
      Posts
      3512
      Views

      dzairo

      Hi. It's long time .. but standard function is : gw.processRadioMessage(); and I make changes in source code in MyGateway.cpp to this : char MyGateway::processRadioMessage() { char isMessage=0; if (process()) { // A new message was received from one of the sensors isMessage=1; MyMessage message = getLastMessage(); if (mGetCommand(message) == C_PRESENTATION && inclusionMode) { rxBlink(3); } else { rxBlink(1); } // Pass along the message from sensors to serial line serial(message); } checkButtonTriggeredInclusion(); checkInclusionFinished(); return isMessage; } But in new library is not file MyGateway.cpp .. then I don't now .. using is : if (gw.processRadioMessage()==1) {..} regards.. there is possible make easy gateway .. controler .. to control only light for example.. then we don't need external controller .. etc..
    • dzairo

      nRF24L01+PA
      General Discussion • • dzairo  

      22
      0
      Votes
      22
      Posts
      13795
      Views

      dzairo

      Hi all I find this : nRF24L01 range test (arduino) – 17:36— iforce2d and this : https://www.youtube.com/watch?v=5Xhvphsj1ms and now say me what is wrong in my testing.. I must contact video producer for question.. regards.
    • dzairo

      My first working Switch with Battery and Temperature ..
      My Project • temperature battery switch binary • • dzairo  

      5
      1
      Votes
      5
      Posts
      3723
      Views

      BulldogLowell

      @dzairo there is a nice PinChangeInterrupt library that you may want to look at.
    • dzairo

      relay actuator ...
      Development • relay • • dzairo  

      3
      0
      Votes
      3
      Posts
      1866
      Views

      dzairo

      I have it ,look to my project.. project from example directory working .. but if power on node then register to gateway but not send actual state of relay .. I do it ..
    • dzairo

      Serial terminal
      Controllers • serialgateway serial protocol • • dzairo  

      10
      3
      Votes
      10
      Posts
      5175
      Views

      andy5211d

      Hi dzairo, Just wondering if you still monitor this thread. If so would love to know how to install the ComPort component so I can modify and use your terminal code. For some reason I don't have any luck with adding it to the IDE. thanks, Andy.
    • dzairo

      my serial gateway
      Hardware • serialgateway • • dzairo  

      1
      2
      Votes
      1
      Posts
      1126
      Views

      No one has replied

    • dzairo

      How does it work? Sleep , WDG ..
      General Discussion • watchdog sleep time • • dzairo  

      10
      0
      Votes
      10
      Posts
      3974
      Views

      dzairo

      yeah , I will test it .. thanks . If button change then send packet with ACK , and wait .. if not ack received then error .. rebards
    • dzairo

      payload ACK
      Feature Requests • ack payload ack payload • • dzairo  

      3
      0
      Votes
      3
      Posts
      3292
      Views

      dzairo

      ...no .. I know .. but I must explain this .. : I know .. receiver on first upload data for TX Fifo .. and listen .. if receive valid packet then send ack with data from TX fifo . but I mean this : repeater periodicaly contact gateway and udate some easy data .. for example date time , network structure , how many node are in network , if some registered node are visible or not , etc .. and if see gateway .. this is example : my node is not directly connected to gateway .. byt by two repeater .. all repeate every 10minutes ask for gateway just for easy ping only ACK , if receive ACK then know all information what I wrote.. but will know that see gateway .. and update ACK payload .. if my sensor node send data to gateway and don't want ACK .. then received hardware ACK and will know that last 10minutes repeater seen gateway .. yes it's not for 100% .. but wery efective .. to inform all other sensor node but not network load . only sensor node that really need to know 100% if gateway received packet use ACK for gateway.. look I'm not tested .. but in fact ... if sensor send data trought repeater and repeater not see gateway .. still received hardware ACK ?? why ?? not efective contact repeater what don't see gateway.. then i have this idea.. this will be very efective network.. I thinks that serial gateway need RTC on I2C and some small ram .. and inform automaticaly network for this information.. gateway will do more important work
    • dzairo

      Detect who wake up sensor .. INT0,INT1 or timeout..
      Development • • dzairo  

      4
      0
      Votes
      4
      Posts
      1843
      Views

      hek

      yep!
    • dzairo

      Serial Gateway halt!
      Development • • dzairo  

      12
      0
      Votes
      12
      Posts
      2650
      Views

      dzairo

      Hi. I do same what you ... but still not working ... BUt then I use different gateway PCB board .. and right now working .. may be hardware problem.. OK.. I will test it .. and will see.. best regards..
    • dzairo

      help to manual sed sensor ID ..
      Development • serialgateway serial protocol • • dzairo  

      14
      0
      Votes
      14
      Posts
      8753
      Views

      dzairo

      Hi all... This is important for all ... Hek I find problem with manual node ID setting .. Your code is optimized for ATmega328P 16Mhz - 115200 serial speed .. and here is problem ... big problem !! 16MHz -115200 is in normal speed : 3.549% ERROR , and in double speed : 2.124% ERROR with no calibrated 8Mhz internal RC oscilator is normal speed : 8.507% ERROR and in double speed : 3.549% then in fact .. no problem to send data from MCU to PC .. problem send data from PC to MCU .. solution : for sensor node or repeater .. we don't need received data from UART .. then can use 115200 with internal RC oscilator .. for serial gateway is need to send and received data from to MCU with controller .. then use scrystal 16Mhz (as orginal code ) or use better crystall : 7.3728Mhz , 11.0592Mhz , 14.7456Mhz ... with this crystall is ERROR 0% ... or use lower speed for serial gateway for example 38400bps ... sorry for all .. but I'm not thinking about it .. and problem was all time in hardware .. interesting is that if generate own bootloader for my node then first time I set 115200 bps speed and my software show error more then 8.5% ERROR ..and I must change speed to 38400 ... now it's working .. if node send request for new ID then I send it regards.
    • dzairo

      Help with Sketch
      Development • • dzairo  

      1
      0
      Votes
      1
      Posts
      629
      Views

      No one has replied

    • dzairo

      Serial protocol..
      Development • serialgateway serial protocol • • dzairo  

      6
      0
      Votes
      6
      Posts
      3203
      Views

      dzairo

      Hi. I do it .. change configuration in MyCOnfig.h (disable debug) and now gateway not send encoded message . But right now I test my serial board and have problem .. If send fast many packet from my sensor (INT0 and INT1) then serial gateway halt .. and no more data received from sensor and output string to uart .. I must reset MCU and all work again.. what is problem ?? Problem is in serial gateway .. after reset all work good .. any idea?? regards.
    • dzairo

      Help to Beginner..
      Hardware • sensor board rc 8mhz • • dzairo  

      10
      0
      Votes
      10
      Posts
      6614
      Views

      dzairo

      Hi.... hehe... I must decode it from source code?? hmmmm... interesting... where I need to write my question? power down mode .. every 1 sec wake up .. using timer2 32kHy crystal 2.make sensor with more sensor type in one device .. for example .. temperature , energy meter, bin input state.. etc..