Navigation

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

    pdkwork

    @pdkwork

    2
    Reputation
    6
    Posts
    2
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    pdkwork Follow

    Best posts made by pdkwork

    • RE: Heltec Lora32 V2 Gateway

      @FarmerEd Thanks for the information. Sorry I was traveling and just saw your posts. I did try a node but I think I was still in my setup confusion so it may not have been transmitting correctly. I will check and set one up. It is also a Heltec device but is not sleeping right now.
      @toigo Thanks for the information on no sleep yet. I was going to use it with batteries so now I will need to rethink this.

      posted in Hardware
      pdkwork
      pdkwork
    • RE: Heltec Lora32 V2 Gateway

      Success! In all my testing and trying new settings, I missed that I had commented out on the gateway the frequency setting. It was noobie mistake and I want to thank all of you for your help. I ended up using @FarmerEd's sketches to get my gateway and sensor to work.

      Thanks again.

      posted in Hardware
      pdkwork
      pdkwork

    Latest posts made by pdkwork

    • RE: Heltec Lora32 V2 Gateway

      Success! In all my testing and trying new settings, I missed that I had commented out on the gateway the frequency setting. It was noobie mistake and I want to thank all of you for your help. I ended up using @FarmerEd's sketches to get my gateway and sensor to work.

      Thanks again.

      posted in Hardware
      pdkwork
      pdkwork
    • RE: Heltec Lora32 V2 Gateway

      It the 868-915 version. I am in the US so I thought I should use 915. 915 works using the Heltec example sketches.

      posted in Hardware
      pdkwork
      pdkwork
    • RE: Heltec Lora32 V2 Gateway

      I am using the Heltec LoRa32 V2 of the board. IRQ number is set to 26 and IRQ pin is also 26. I don’t understand why the code is reporting no acknowledgement from the radio. I see ?TSF and ?TSM in the log. Is that normal for you?

      posted in Hardware
      pdkwork
      pdkwork
    • RE: Heltec Lora32 V2 Gateway

      I have now tried a sensor node based on the same Heltec chip and it is stuck in a Find Parent loop. I have the gateway setup matching @FarmerEd post.

      The serial output is below

      67 TSM:INIT
      68 TSF:WUR:MS=0
      69 RFM95:INIT
      76 RFM95:INIT:PIN,CS=18,IQP=26,IQN=26,RST=14
      92 RFM95:PTX:LEVEL=13
      94 TSM:INIT:TSP OK
      96 TSM:FPAR
      97 RFM95:SWR:SEND,TO=255,SEQ=0,RETRY=0
      149 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2157 !TSM:FPAR:NO REPLY
      2159 TSM:FPAR
      2160 RFM95:SWR:SEND,TO=255,SEQ=1,RETRY=0
      2212 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      4220 !TSM:FPAR:NO REPLY
      4222 TSM:FPAR
      4223 RFM95:SWR:SEND,TO=255,SEQ=2,RETRY=0
      4275 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      6283 !TSM:FPAR:NO REPLY
      6285 TSM:FPAR
      6286 RFM95:SWR:SEND,TO=255,SEQ=3,RETRY=0
      6338 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      8346 !TSM:FPAR:FAIL
      8347 TSM:FAIL:CNT=1
      8349 TSM:FAIL:DIS
      8351 TSF:TDI:TSL
      8352 RFM95:RSL
      18354 TSM:FAIL:RE-INIT
      18356 TSM:INIT
      18357 RFM95:INIT
      18364 RFM95:INIT:PIN,CS=18,IQP=26,IQN=26,RST=14
      18379 RFM95:PTX:LEVEL=13
      18381 TSM:INIT:TSP OK
      18383 TSM:FPAR
      18384 RFM95:SWR:SEND,TO=255,SEQ=0,RETRY=0
      18437 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      20444 !TSM:FPAR:NO REPLY
      20446 TSM:FPAR
      20447 RFM95:SWR:SEND,TO=255,SEQ=1,RETRY=0
      20500 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      22507 !TSM:FPAR:NO REPLY
      22509 TSM:FPAR
      22510 RFM95:SWR:SEND,TO=255,SEQ=2,RETRY=0
      22563 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      24570 !TSM:FPAR:NO REPLY
      24572 TSM:FPAR
      24573 RFM95:SWR:SEND,TO=255,SEQ=3,RETRY=0
      24626 ?TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      26633 !TSM:FPAR:FAIL
      26634 TSM:FAIL:CNT=2
      

      It seems that the chip is not transmitting. I have been using Home Assistant for 3 years but just now I am trying MySensors. I have added the integration in HA and connected it the gateway.

      I did try to set a Parent but it just continues in another endless loop. I don't know where to go from here.

      posted in Hardware
      pdkwork
      pdkwork
    • RE: Heltec Lora32 V2 Gateway

      @FarmerEd Thanks for the information. Sorry I was traveling and just saw your posts. I did try a node but I think I was still in my setup confusion so it may not have been transmitting correctly. I will check and set one up. It is also a Heltec device but is not sleeping right now.
      @toigo Thanks for the information on no sleep yet. I was going to use it with batteries so now I will need to rethink this.

      posted in Hardware
      pdkwork
      pdkwork
    • Heltec Lora32 V2 Gateway

      I have been trying for days now to get this chip to work as a gateway. I have two of the same chip and have tested the Lora with the Heltec example sketches and both will send and receive so the hardware works.
      I have also done extensive searches on the forum and I did find settings that are stated to work but don't seem to work for me.
      One posting that looked promising is https://forum.mysensors.org/topic/10654/my-sensors-with-heltec-v2?_=1642102471786&lang=en-US

      I continue to get this output:
      34 MCO:BGN:INIT GW,CP=RLNGF---,FQ=240,REL=255,VER=2.3.2
      40 TSF:LRT:OK
      41 TSM:INIT
      42 TSF:WUR:MS=0
      43 RFM95:INIT
      50 RFM95:INIT:PIN,CS=18,IQP=26,IQN=26,RST=14
      65 RFM95:PTX:LEVEL=13
      67 TSM:INIT:TSP OK
      69 TSM:INIT:GW MODE
      70 TSM:READY:ID=0,PAR=0,DIS=0
      73 MCO:REG:NOT NEEDED
      1204 GWT:TIN:CONNECTING...
      2207 GWT:TIN:CONNECTING...
      3210 GWT:TIN:CONNECTING...
      3212 GWT:TIN:IP: 192.168.3.62
      3217 MCO:BGN:STP
      3689 MCO:BGN:INIT OK,TSP=1
      3691 TSM:READY:NWD REQ
      3693 RFM95:SWR:SEND,TO=255,SEQ=0,RETRY=0
      3746 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
      900043 TSF:SAN:OK

      I think the problem is the 3746 line which shows no acknowledgement from the local radio. It does not appear to be transmitting.

      My settings are:
      #include <Arduino.h>
      #include "secrets.h"

      // ******************** HELTEC Lora32 Defines ****************************
      #include "heltec.h"
      #define HELTEC
      #define BAND 915E6 //you can set band here directly,e.g. 868E6,915E6
      String networkIP(IPAddress ip);

      // ************************* Display Defines *****************************
      #include "display_oled.h"
      using namespace display_OLED;
      displayOLED display;

      // ************************ MySensors Defines ****************************
      #define MY_DEBUG //!< Enable debug prints to serial monitor

      // Enable and select radio type attached
      //#define MY_RADIO_RF24 //!< nRF24L01 radio driver
      //#define MY_RADIO_NRF5_ESB //!< nRF5 radio driver (RF24 compatible)
      //#define MY_RADIO_RFM69 //!< RFM69 radio driver
      #define MY_RADIO_RFM95 //!< RFM95 radio driver
      #define MY_DEBUG_VERBOSE_RFM95
      #define MY_RFM95_RST_PIN 14
      #define MY_RFM95_CS_PIN 18
      #define MY_RFM95_IRQ_PIN 26
      #define MY_RFM95_IRQ_NUM MY_RFM95_IRQ_PIN
      //#define MY_RFM95_IRQ_NUM digitalPinToInterrupt(26)
      //#define MY_SOFT_SPI_MOSO_PIN 19
      #define MY_SOFT_SPI_MOSI_PIN 27
      #define MY_SOFT_SPI_SCK_PIN 5
      #define MY_RFM95_FREQUENCY (RFM95_915MHZ)
      #define MY_TRANSPORT_STATE_TIMEOUT_MS (3*1000ul)
      #define RFM95_RETRY_TIMEOUT_MS (3000ul)
      #define MY_RFM95_MODEM_CONFIGURATION RFM95_BW125CR45SF128

      #define MY_GATEWAY_ESP32

      #define MY_WIFI_SSID SECRET_SSID
      #define MY_WIFI_PASSWORD SECRET_PASS

      // Set the hostname for the WiFi Client. This is the hostname
      // it will pass to the DHCP server if not static.
      #define MY_HOSTNAME "LoRa32_Gateway"

      // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
      //#define MY_IP_ADDRESS 192,168,1,100

      // If using static ip you can define Gateway and Subnet address as well
      //#define MY_IP_GATEWAY_ADDRESS 192,168,1,1
      //#define MY_IP_SUBNET_ADDRESS 255,255,255,0

      // The port to keep open on node server mode
      #define MY_PORT 5003

      // How many clients should be able to connect to this gateway (default 1)
      #define MY_GATEWAY_MAX_CLIENTS 2

      #include <MySensors.h>

      void setup()
      {
      Heltec.begin(true /DisplayEnable Enable/, false /LoRa Enable/, true /Serial Enable/);

      // Setup screen
      display.init();
      display.displayPrint("Gateway", 0, 0, 2);
      display.displayPrint(networkIP(WiFi.localIP()), 128, 16, 2, TEXT_ALIGN_RIGHT);

      }

      void loop()
      {
      display.updateDisplay();
      }

      String networkIP(IPAddress ip)
      {
      String LocalIP;
      //IPAddress ip = WiFi.localIP();
      for (int i = 0; i < 4; i++)
      {
      LocalIP += i ? "." + String(ip[i]) : String(ip[i]);
      delay(10);
      }
      return LocalIP;
      }

      Does anyone have setting that work and what do you get at least initially at startup to see if it is working?

      Thanks

      posted in Hardware
      pdkwork
      pdkwork