Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. RFM69 problems

RFM69 problems

Scheduled Pinned Locked Moved Troubleshooting
34 Posts 5 Posters 14.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Cliff KarlssonC Offline
    Cliff KarlssonC Offline
    Cliff Karlsson
    wrote on last edited by
    #20

    Ok, after trying again I extracted Arduino-development to a separate folder in my sketchbook location witout replacing anything. I then got an error saying it could not find Mysensors.h so I copied it to the Gatewayserial folder and now it complies but gives me the error you specified hek. So how do I solve this? is not the gatewayserial sketch ready to complie as is?

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #21

      Oh, sorry I just copied part of the sketch above when I got the compile error.

      When compiling the whole file it works fine here.

      1 Reply Last reply
      0
      • Cliff KarlssonC Offline
        Cliff KarlssonC Offline
        Cliff Karlsson
        wrote on last edited by
        #22

        Ok so I should use the serialgateway sketch from the arduino master? I did not find any other serialgateway sketch in arduino development than the one I posten.

        hekH 1 Reply Last reply
        0
        • Cliff KarlssonC Cliff Karlsson

          Ok so I should use the serialgateway sketch from the arduino master? I did not find any other serialgateway sketch in arduino development than the one I posten.

          hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #23

          @Cliff-Karlsson said:

          Ok so I should use the serialgateway sketch from the arduino master?

          No, you're using the right one.

          I extracted Arduino-development to a separate folder in my sketchbook location witout replacing anything. I then got an error saying it could not find Mysensors.h so I copied it to the Gatewayserial folder

          You must replace the WHOLE MySensors library folder. Not just copying the MySensors.h.

          1 Reply Last reply
          0
          • Cliff KarlssonC Offline
            Cliff KarlssonC Offline
            Cliff Karlsson
            wrote on last edited by
            #24

            Ok, tried again and I think I got it right this time as I got three tabs in the arduino IDE when opening the serialgateway-sketch, before I only got one tab.

            But now I have the same error as you shown hek, what does this mean:

            #if !defined(MY_GATEWAY_FEATURE) && !defined(MY_RADIO_FEATURE)
            	#error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
            #endif
            

            I already have this in the gateway sketch:

            #define MY_RADIO_RFM69
            
            #define MY_GATEWAY_SERIAL
            
            1 Reply Last reply
            0
            • Cliff KarlssonC Offline
              Cliff KarlssonC Offline
              Cliff Karlsson
              wrote on last edited by
              #25

              Ahh, finally. I used the sketchbook location for everything like it says in the info for 1.5. When I copied all the development libraries into the Arduino libraries folder it worked.

              1 Reply Last reply
              0
              • Cliff KarlssonC Offline
                Cliff KarlssonC Offline
                Cliff Karlsson
                wrote on last edited by
                #26

                I tried changing computers and it seems to work better now, But I just realized something where or how do I set the frequency of the rfm radio?

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #27

                  Put one of these in your sketch

                  #define MY_RFM69_FREQUENCY   RF69_433MHZ
                  #define MY_RFM69_FREQUENCY   RF69_868MHZ
                  #define MY_RFM69_FREQUENCY   RF69_915MHZ
                  

                  I should probably try to find some time starting to document the 1.6 features. But most of them is already easy to find by reading MyConfig.h.

                  1 Reply Last reply
                  0
                  • Cliff KarlssonC Offline
                    Cliff KarlssonC Offline
                    Cliff Karlsson
                    wrote on last edited by
                    #28

                    @hek said:

                    #define MY_RFM69_FREQUENCY RF69_868MHZ

                    ok, if I dont specify this in my sketch will it default to either frequency?

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #29

                      It'll default to RF69_868MHZ

                      1 Reply Last reply
                      0
                      • Cliff KarlssonC Offline
                        Cliff KarlssonC Offline
                        Cliff Karlsson
                        wrote on last edited by
                        #30

                        Ok, all my radios is 868Mhz so the problem is something else. I always get similar errors from the serial monitor after complying sensor-sketches.

                        Starting sensor (1.6.0-beta)
                        Radio init successful.
                        send: 7-7-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=fail:1.6.0-beta
                        send: 7-7-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
                        send: 7-7-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=fail:Relay
                        send: 7-7-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0
                        send: 7-7-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=fail:
                        Init complete, id=7, parent=0, distance=1
                        

                        What does this mean? It says radio init successful, but can it still be radio problems?

                        1 Reply Last reply
                        0
                        • hekH Offline
                          hekH Offline
                          hek
                          Admin
                          wrote on last edited by
                          #31

                          Well, do you receive any messages on the gateway side?

                          1 Reply Last reply
                          0
                          • Cliff KarlssonC Offline
                            Cliff KarlssonC Offline
                            Cliff Karlsson
                            wrote on last edited by
                            #32

                            Well I changed the CHILD_ID_LIGHT to 7 in the lightlux sensor sketch, I don't know if that was right. But nothing shows up in domoticz.

                            I get this from serial monitor:

                            Starting sensor (1.6.0-beta)
                            Radio init successful.
                            send: 7-7-0-0 s=255,c=0,t=17,pt=0,l=10,sg=0,st=fail:1.6.0-beta
                            send: 7-7-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
                            send: 7-7-0-0 s=255,c=3,t=11,pt=0,l=16,sg=0,st=fail:Light Lux Sensor
                            send: 7-7-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0
                            send: 7-7-0-0 s=7,c=0,t=16,pt=0,l=0,sg=0,st=fail:
                            Init complete, id=7, parent=0, distance=1
                            54612
                            send: 7-7-0-0 s=7,c=1,t=23,pt=3,l=2,sg=0,st=fail:54612
                            find parent
                            send: 7-7-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
                            
                            1 Reply Last reply
                            0
                            • Cliff KarlssonC Offline
                              Cliff KarlssonC Offline
                              Cliff Karlsson
                              wrote on last edited by
                              #33

                              I dont't know how many times I have tried to fix my rfm69 issues but no success.

                              I have got a new raspberry pi 2 controller, formatted/reinstalled my pc, bought a powered usb hub, changed my serialgateway and resoldering sensor-nodes and gateways several times.

                              The gateway seems too start up fine, but when I power any sensor I get this in domoticz log:

                              015-11-16 21:07:18.763 Domoticz V2.3603 (c)2012-2015 GizMoCuz
                              2015-11-16 21:07:18.763 Build Hash: 95def9c, Date: 2015-11-16 18:45:30
                              2015-11-16 21:07:18.764 System: Raspberry Pi
                              2015-11-16 21:07:18.765 Startup Path: /home/pi/domoticz/
                              2015-11-16 21:07:19.058 Sunrise: 07:55:00 SunSet:15:15:00
                              2015-11-16 21:07:19.058 EventSystem: reset all events...
                              2015-11-16 21:07:19.104 Active notification subsystems: (0/10)
                              2015-11-16 21:07:19.244 Webserver started on port: 8181
                              2015-11-16 21:07:19.303 Webserver started on port: 443
                              2015-11-16 21:07:19.321 Started shared server on: 0.0.0.0
                              2015-11-16 21:07:21.323 Hardware Monitor: Started
                              2015-11-16 21:07:21.325 EventSystem: reset all events...
                              2015-11-16 21:07:21.326 EventSystem: reset all device statuses...
                              2015-11-16 21:07:21.328 EventSystem: Started
                              2015-11-16 21:07:22.325 MySensors: Using serial port: /dev/ttyUSB0
                              2015-11-16 21:07:23.797 MySensors: Gateway Ready...
                              2015-11-16 21:07:23.872 MySensors: Gateway Version: 1.6.0-beta
                              2015-11-16 21:07:24.323 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:07:41.272 Incoming connection from: 192.168.0.24
                              2015-11-16 21:07:45.202 1-Wire support available (By Kernel)...
                              2015-11-16 21:08:04.752 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:08:34.800 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:09:04.837 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:09:34.886 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:10:04.923 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:10:34.971 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:11:05.008 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:11:35.056 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:12:05.095 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:12:35.146 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:13:05.198 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:13:35.249 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:14:05.301 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:14:35.352 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:15:05.404 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:15:35.455 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:16:05.507 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:16:35.545 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:17:05.598 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:17:35.644 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:18:05.694 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:18:35.732 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:19:05.784 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:19:35.822 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:20:05.871 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:20:35.909 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:21:05.958 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:21:35.996 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:22:06.047 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:22:36.086 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:23:06.138 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:23:36.177 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:24:06.229 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:24:23.700 Error: Serial Port closed!... Error: End of file
                              2015-11-16 21:24:23.818 MySensors: retrying in 30 seconds...
                              2015-11-16 21:24:36.269 Hardware Monitor: Fetching data (System sensors)
                              2015-11-16 21:24:52.821 MySensors: Using serial port: /dev/ttyUSB0
                              2015-11-16 21:24:52.822 Error: MySensors: Error opening serial port!
                              2015-11-16 21:24:53.822 MySensors: retrying in 30 seconds...
                              2015-11-16 21:25:06.318 Hardware Monitor: Fetching data (System sensors)
                              

                              And when I look at the serial gateway options the usb port (/dev/ttyUSB0) is blank. I have to remove the usb cable and insert it again or reboot to get the usb port back.

                              1 Reply Last reply
                              0
                              • GertSandersG Offline
                                GertSandersG Offline
                                GertSanders
                                Hardware Contributor
                                wrote on last edited by
                                #34

                                why not connect the NRF24 directly to your Raspi2 and run PiSerialGateway on Raspi itself ?

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                21

                                Online

                                11.7k

                                Users

                                11.2k

                                Topics

                                113.1k

                                Posts


                                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • MySensors
                                • OpenHardware.io
                                • Categories
                                • Recent
                                • Tags
                                • Popular