Navigation

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

    sineverba

    @sineverba

    Hardware Contributor

    23
    Reputation
    156
    Posts
    822
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    sineverba Follow
    Hardware Contributor

    Best posts made by sineverba

    • RE: 💬 Building a Raspberry Pi Gateway

      Hi to all,
      tonight I made update from 2.2.0 RC2 to 2.2.0 (stable) on my Raspberry PI3.
      It is a live system (my heater control).

      By the way the update is very simple.

      First of all, backup or better CLONE your PI.

      1 - Disable the daemon with

      sudo systemctl stop mysgw.service && sudo systemctl disable mysgw.service
      

      2 - Make a copy of the MySensors folder ( I made a copy with the name of version coming, so...)

      cp -r MySensors MySensorsX.X.X(rc2)/
      

      (the slash at the end means "It's a folder!"

      3 - Remove the MySensors folder

      sudo rm -r MySensors
      

      4 - Git the "new" MySensors folder && configure it as usual. Remember to activate the daemon and see on Domoticz (for example) the gateway with new version 🙂

      posted in Announcements
      sineverba
      sineverba
    • RE: Multi Node project (MySensors noob) =RASPBERRY GATEWAY PROBLEM=

      @lassivv said in Multi Node project (MySensors noob) =RASPBERRY GATEWAY PROBLEM=:

      Thx for info @sineverba but not help anything, same error message still.

      I try with his kind configure:

      ./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my-transport=nrf24 --my-rf24-irq-pin=15
      

      Get this error back

      mysgw: Starting gateway...
      mysgw: Protocol version - 2.1.1
      mysgw: MCO:BGN:INIT GW,CP=RNNG--Q,VER=2.1.1
      

      Try the DEVELOPMENT branch, not the master.

      I had my head broken on this with PI rev2.

      How I get all working?

      First of all, I did try on another raspbian the lib TMR20 and his "gettingstarted".

      If all work with there, simpler at beginning than mysensors, I re-flashed a raspbian and:

      1. Setup with raspi-config the SPI
      2. Changed password to pi user
      3. Installed git
      4. sudo apt-get update (not upgrade, for info)
      5. gitted from DEVELOPMENT branch
      6. ./configured

      and boom! All work.

      After, I use rpi-clone and I did other tweaks on my distro (timezone, ssh, cron for backup, etc etc etc etc)

      posted in My Project
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson only one word. Try. Really, you are lost in 1 cm of water. Try. And if it doesn't work, open your topic, showing exactly your sketches and what have you done.

      posted in Announcements
      sineverba
      sineverba
    • RE: Issues between Wifi (router) and NRF24L01

      It seems that moving to last channel all nodes and gateways solved my trouble.

      In this moment wifi is under heavy load (upload several video from several phones and tablet) and traffic leds never light the infamous red... neither nodes lost their gateway 🙂 🙂

      posted in Hardware
      sineverba
      sineverba
    • RE: Recommendation for PCB fab?

      @neverdie Limited 50mm x 50mm at 5$, 100x100 15$. So, for small pcb price is same. For bigger, price is insane bytheway including DHL ship. From China to Italy, 3 days. Fantastic!

      posted in General Discussion
      sineverba
      sineverba
    • RE: 💬 Building a Raspberry Pi Gateway

      @sineverba

      @sineverba said in 💬 Building a Raspberry Pi Gateway:

      Going crazy here.
      I did get success with MySensors and first Arduino node on a fresh Raspbian (last image) and branch development. All ok!

      Now I want re-do on other SD (same Pi, same WIring, same Radio). I did put "old" sd on a secure location and re-start from scratch.

      I did compile with:

      ./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020
      

      and answer is:

      [SECTION] Detecting target machine.
        [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l.
      [SECTION] Detecting SPI driver.
        [OK] SPI driver detected:BCM.
      [SECTION] Detecting init system.
        [OK] init system detected: systemd.
      [SECTION] Saving configuration.
      [SECTION] Cleaning previous builds.
      [OK] Finished.
      

      Make ends with no error.

      The debug

      sudo ./bin/mysgw –d
      

      locks here:

      mysgw: Starting gateway...
      mysgw: Protocol version - 2.2.0-beta
      

      And no other lines.

      I Repeat, same PI, same Radio, same wiring. If I try other SD, all goes ok and I can use it on domoticz.

      Thank you

      OK, re-re-done on fresh install and all went ok.

      I think that problem was when I deleted the PI default user and created another one.

      I did follow the gordon guide: https://gordonlesti.com/change-default-users-on-raspberry-pi/

      Probably a permission issues changing or not changing root?

      Thank you

      posted in Announcements
      sineverba
      sineverba
    • RE: Step-by-step procedure to connect the NRF24L01+ to the GPIO pins and use the Raspberry as a Serial Gateway (MySensors 1.x)

      TROUBLESHOOTING
      If you get this error

      pi@Domoticz3:~/Raspberry$ sudo /etc/init.d/PiGatewaySerial start
      [....] Starting PiGatewaySerial (via systemctl): PiGatewaySerial.serviceFailed to start PiGatewaySerial.service: Unit PiGatewaySerial.service failed to load: No such file or directory.
       failed!
      

      or this error

      pi@raspberrypi ~ $ sudo /usr/local/sbin/PiGatewaySerial
      sudo: /usr/local/sbin/PiGatewaySerial: command not found
      

      you have probably forgotten to run sudo make install. Read the instructions again, and follow them this time 🙂

      In my case I did need simply to restart. I did "make install" but I did need to restart 😉 😉

      posted in Hardware
      sineverba
      sineverba
    • Atmega328+Pro Mini+Nano bootloader uploader

      Hi to all!
      Want to share one of my project.

      https://www.openhardware.io/view/544/Arduino-Atmega-Bootloader-Uploader

      This is an Arduino shield to burn bootloader to the 3 different elements of family: an Atmega328, a Pro Mini and finally a Nano.

      It is fully tested and working. I'm very happy with this for burn Optiboot on the nodes of my house.

      I hope it will help someone.

      Have a good day!

      posted in My Project
      sineverba
      sineverba
    • RE: 💬 Building a Raspberry Pi Gateway

      @gohan
      I can and I will try, of sure. But, why do you think that something will change? My hardware is too old?

      posted in Announcements
      sineverba
      sineverba
    • RE: Can please someone check if my schema for RFM69 is right?

      @sundberg84 said in Can please someone check if my schema for RFM69 is right?:

      @sineverba - 1 rule of debugging, remove as much as possible.
      Can you try to use a 3.3v MCU directly with your breakout board? That way you can eliminate that the problem might be level shifting and work down the wiring to a minimum?

      sure golden rule.
      It works. Now it works. Directly on a 3v3 mini. Removed all level shifter. Now it works.
      Thank you for the support!

      posted in Hardware
      sineverba
      sineverba

    Latest posts made by sineverba

    • RE: 💬 Battery Powered Sensors

      @Sebex I run all my nodes with 2xAA rechargable NiMh (or 1 x LifePo4) with Si7021.

      1. Use MiniCore bootloader (https://github.com/MCUdude/MiniCore)
      2. Set BOD at 1.8V for NiMh
      3. Set speed @8Mhz 🙂

      Enjoy your 1 or 2 years node life at transmit every 5 minutes.

      PS Remove the LED and the regulator, of course 😉

      PPS I use spare AtMega328p on custom PCB board, but same result with a couple of Nano without regulator.

      posted in Announcements
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson Last time. Please.
      REMOVE
      WHITELISTING
      FROM
      YOUR
      SKETCH

      Clear EEPROM and paste here output of debug. No other.

      posted in Announcements
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson Don't need all copy and paste, enough link :).

      Btw, before move to Home Assistant, where is the output of debug of MySensors?

      sudo mysgw -d

      Of course, you need before stop service.

      Resetting the node, what you get in debug?

      When ALL ok, move to HomeAssistant.

      And remember, after check that debug is ok...

      sudo make install && sudo systemctl enable mysgw.service && sudo systemctl start mysgw.service

      posted in Announcements
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson This is the serial OF GATEWAY. Not your Arduino. You need to put serial of GATEWAY.

      Please, first of all, DONT' USE WHITELISTING. And pay attention: if you enabled it, remove it and:

      1 - clear eeprom
      2 - flash eeprom with keyes
      3 - reload sketch (without whitelisting)

      posted in Announcements
      sineverba
      sineverba
    • RE: 💬 NRF24 to RFM69 adapter

      @alowhum thank you 🙂

      posted in OpenHardware.io
      sineverba
      sineverba
    • RE: 💬 NRF24 to RFM69 adapter

      Oh, you are right. I will edit the description. My "prerequisites" - overall for battery powered sensors node - is to have the node at 3v3 (or less). This is the reason because I never thought to level converter 🙂
      Thank you for nice work 🙂

      posted in OpenHardware.io
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson only one word. Try. Really, you are lost in 1 cm of water. Try. And if it doesn't work, open your topic, showing exactly your sketches and what have you done.

      posted in Announcements
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson And, last all, you can use the mysensors debug options. Try. Try. Try! This is the best option offered to you to learn. Try!
      At max, nothing works 😉

      posted in Announcements
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson

      Let's summarize. Last time.

      1. compile gateway with weak security (make your research, also in my github guide, there is 😉 )
      2. create the 3 keyes for gateway
      3. set the 3 keyes for gateway.
      4. clean your EEPROM arduinos with the sketch present in my guide and in examples of library
      5. set the keyes in EEPROM arduinos.

      Stop. End. Fin. Fine. These steps are MANDATARY. You NEED to do.

      You will have in EEPROM the keyes (arduino) and in gateway.

      From now, you select:

      a) Do I need security? Perfect, in sketch arduino add #define bla bla bla on top with security and other stuff.
      b) Do I NOT need security? Perfect, in sketch arduino DON'T ADD #define bla bla related to security.

      posted in Announcements
      sineverba
      sineverba
    • RE: 💬 Security & Signing

      @pepson you need to setup gateway with weak security.

      You need generate keyes and set in gateway.

      You need to personalize nodes with the sketch and set keyes on Arduino EEPROM.

      From now, you have two ways: Your node need security? Set use security bla-bla on top with other define(s).

      Don't Need security? Don't define use security.

      Simpler than ever.

      posted in Announcements
      sineverba
      sineverba