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. Development
  3. Wireless nRF24L01+ sniffer for MySensors

Wireless nRF24L01+ sniffer for MySensors

Scheduled Pinned Locked Moved Development
omgsnifferwiresharknrf24l01+
108 Posts 19 Posters 70.0k Views 18 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.
  • marceltrapmanM marceltrapman

    For those following this topic I have not solved it but it could be related to this:
    Upgrade to 8.1 and stuff stops working (not what most people would call an "up"-grade).

    marceltrapmanM Offline
    marceltrapmanM Offline
    marceltrapman
    Mod
    wrote on last edited by
    #20

    OK, for those of you on Windows 8.1 this will probably not work 'out of the box'.

    For me, a Mac user, the following solution makes complete sense :-P

    You have to install or repair Microsoft Essentials and the dll will be available.
    Don't ask me why but it works!

    Fulltime Servoy Developer
    Parttime Moderator MySensors board

    I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
    I have a FABtotum to print cases.

    1 Reply Last reply
    0
    • marceltrapmanM Offline
      marceltrapmanM Offline
      marceltrapman
      Mod
      wrote on last edited by
      #21

      Everything works now.

      Did not see any packets coming in though but I remember having an issue with a couple of Uno's and I am not sure if this was one of them.

      Anyway, I will do some more testing tomorrow.
      Very exited :)

      Fulltime Servoy Developer
      Parttime Moderator MySensors board

      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
      I have a FABtotum to print cases.

      YveauxY 2 Replies Last reply
      0
      • marceltrapmanM marceltrapman

        Everything works now.

        Did not see any packets coming in though but I remember having an issue with a couple of Uno's and I am not sure if this was one of them.

        Anyway, I will do some more testing tomorrow.
        Very exited :)

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #22

        @marceltrapman Great you got it working man!
        In the meantime, please have a look at the last part I wrote, detailing the use of Wireshark and the sniffer: http://yveaux.blogspot.nl/2014/07/nrf24l01-sniffer-part-3.html

        For tonight I'm totally done with this sniffer -- Aaaarghhh! ;-)

        Btw. Could you also post stuff you had to do to get it working (just a wrapup) to my blog, to keep stuff together? Thanks!

        http://yveaux.blogspot.nl

        marceltrapmanM 1 Reply Last reply
        0
        • YveauxY Yveaux

          @marceltrapman Great you got it working man!
          In the meantime, please have a look at the last part I wrote, detailing the use of Wireshark and the sniffer: http://yveaux.blogspot.nl/2014/07/nrf24l01-sniffer-part-3.html

          For tonight I'm totally done with this sniffer -- Aaaarghhh! ;-)

          Btw. Could you also post stuff you had to do to get it working (just a wrapup) to my blog, to keep stuff together? Thanks!

          marceltrapmanM Offline
          marceltrapmanM Offline
          marceltrapman
          Mod
          wrote on last edited by
          #23

          @Yveaux When I am sure that everything really works (including my Uno/Radio) I will sure write a wrap-up to you blog!

          Fulltime Servoy Developer
          Parttime Moderator MySensors board

          I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
          I have a FABtotum to print cases.

          1 Reply Last reply
          0
          • marceltrapmanM marceltrapman

            @Yveaux Not a problem, I like being a pioneer and I greatly appreciate the efforts you put into this :)

            I thought I had everything in order this afternoon.
            Installed Visual C++ Redistributable Packages for Visual Studio 2012 SP 4 but forgot to test...

            Right now, whatever I use 'Visual C++ Redistributable Packages for Visual Studio 2012 SP 4' or (for testing purposes) 'Visual C++ Redistributable Packages for Visual Studio 2013' both x64 I still see the error message 'The program can't start because MSVCR110.dll is missing...'.
            A restart should not be necessary but even a restart did not help.

            Uninstalling all packages and reinstalling did not help either.

            Any idea?

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #24

            @marceltrapman said:

            both x64

            The console application is 32bits. I don't know if the 32 bits versions are included in the 64 bits installers...

            http://yveaux.blogspot.nl

            marceltrapmanM 1 Reply Last reply
            0
            • YveauxY Yveaux

              @marceltrapman said:

              both x64

              The console application is 32bits. I don't know if the 32 bits versions are included in the 64 bits installers...

              marceltrapmanM Offline
              marceltrapmanM Offline
              marceltrapman
              Mod
              wrote on last edited by marceltrapman
              #25

              @Yveaux said:

              The console application is 32bits. I don't know if the 32 bits versions are included in the 64 bits installers...

              That was not the issue...

              Below is the wrap-up that I also posted on your blog:

              There are 3 things that I bumped into though that I would like to share with you and those that decide to use the sniffer.

              1. Immediately after starting** 'Nrf24Sniff.exe -P6'** (the rest is default in my case) I got this error message 'The program can't start because MSVCR110.dll is missing...'. It basically complains that 'Visual C++ Redistributable Packages for Visual Studio 2012 SP 4' is not installed but that is not true. After doing a bit of searching I found that I needed to** install or repair 'Microsoft Essentials'**.
                Once this was done the program works as expected (don't ask me why, this must be pure MS genius).

              2. Once Wireshark was started like described I noticed that the Nrf24Sniff console window displayed a *'Wait for sniffer to restart' *message. The author mentions that this will only take a few seconds but in my case I actually needed to reset the Arduino for it to go away. No exception.

              3. After creating the correct setup in Wireshark I expected data to show up but it did not. I wondered why and ran a complete test to see that the Ardiuno was ok, radio sufficiently powered etc. but that was all ok. I then re-read the article and found that the author says 'when monitoring MySensors 1.4beta traffic (at non-default 1Mb/s)'. I completely missed this and that caused the issue.The MySensors 1.4beta is set to 250b/s by default. Once I started the sniffer like 'Nrf24Sniff.exe -P6 -r2' everything works as expected.

              Now I have to find some time to read the third article so that I understand what happens on my screen :)

              Anyway, good stuff and a big thank you goes to @Yveaux ...

              Fulltime Servoy Developer
              Parttime Moderator MySensors board

              I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
              I have a FABtotum to print cases.

              YveauxY 2 Replies Last reply
              0
              • epierreE Offline
                epierreE Offline
                epierre
                Hero Member
                wrote on last edited by
                #26

                @Yveaux can you do me a favour ? colord blind people cannot read red on black... they represent 10% of the population...

                Also, does your software runs under nano ;-)

                z-wave - Vera -> Domoticz
                rfx - Domoticz <- MyDomoAtHome <- Imperihome
                mysensors -> mysensors-gw -> Domoticz

                marceltrapmanM epierreE YveauxY 3 Replies Last reply
                0
                • epierreE epierre

                  @Yveaux can you do me a favour ? colord blind people cannot read red on black... they represent 10% of the population...

                  Also, does your software runs under nano ;-)

                  marceltrapmanM Offline
                  marceltrapmanM Offline
                  marceltrapman
                  Mod
                  wrote on last edited by
                  #27

                  @epierre said:

                  Also, does your software runs under nano ;-)

                  I can't think of a reason why it would not work.
                  Just try (once you can read the blog :) ).

                  Fulltime Servoy Developer
                  Parttime Moderator MySensors board

                  I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                  I have a FABtotum to print cases.

                  epierreE 1 Reply Last reply
                  0
                  • epierreE epierre

                    @Yveaux can you do me a favour ? colord blind people cannot read red on black... they represent 10% of the population...

                    Also, does your software runs under nano ;-)

                    epierreE Offline
                    epierreE Offline
                    epierre
                    Hero Member
                    wrote on last edited by
                    #28

                    @Yveaux ah a vb programmer... you need to install the msvcr110.dll msvcr110.dll t to make it start with wine. (does not work with mono...)

                    then I have wireshark but I don't understand what to do next...
                    "Connect Wireshark to \.\pipe\wireshark to continue..."

                    z-wave - Vera -> Domoticz
                    rfx - Domoticz <- MyDomoAtHome <- Imperihome
                    mysensors -> mysensors-gw -> Domoticz

                    YveauxY 1 Reply Last reply
                    0
                    • marceltrapmanM marceltrapman

                      @epierre said:

                      Also, does your software runs under nano ;-)

                      I can't think of a reason why it would not work.
                      Just try (once you can read the blog :) ).

                      epierreE Offline
                      epierreE Offline
                      epierre
                      Hero Member
                      wrote on last edited by epierre
                      #29

                      @marceltrapman yes but for the reason just above I can't... had to select all the text to read...

                       mono Nrf24Sniff.exe 
                       Cannot open assembly 'Nrf24Sniff.exe': File does not contain a valid CIL image.
                      

                      z-wave - Vera -> Domoticz
                      rfx - Domoticz <- MyDomoAtHome <- Imperihome
                      mysensors -> mysensors-gw -> Domoticz

                      marceltrapmanM 1 Reply Last reply
                      0
                      • epierreE epierre

                        @marceltrapman yes but for the reason just above I can't... had to select all the text to read...

                         mono Nrf24Sniff.exe 
                         Cannot open assembly 'Nrf24Sniff.exe': File does not contain a valid CIL image.
                        
                        marceltrapmanM Offline
                        marceltrapmanM Offline
                        marceltrapman
                        Mod
                        wrote on last edited by marceltrapman
                        #30

                        @epierre said:

                        @marceltrapman yes but for the reason just above I can't... had to select all the text to read...

                        I was really... Joking with you :)

                        BTW I can imagine that trying to make this work with wine will give you all sorts of issues that are hard to comment on for those that don't use it.

                        Fulltime Servoy Developer
                        Parttime Moderator MySensors board

                        I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                        I have a FABtotum to print cases.

                        1 Reply Last reply
                        0
                        • marceltrapmanM marceltrapman

                          @Yveaux said:

                          The console application is 32bits. I don't know if the 32 bits versions are included in the 64 bits installers...

                          That was not the issue...

                          Below is the wrap-up that I also posted on your blog:

                          There are 3 things that I bumped into though that I would like to share with you and those that decide to use the sniffer.

                          1. Immediately after starting** 'Nrf24Sniff.exe -P6'** (the rest is default in my case) I got this error message 'The program can't start because MSVCR110.dll is missing...'. It basically complains that 'Visual C++ Redistributable Packages for Visual Studio 2012 SP 4' is not installed but that is not true. After doing a bit of searching I found that I needed to** install or repair 'Microsoft Essentials'**.
                            Once this was done the program works as expected (don't ask me why, this must be pure MS genius).

                          2. Once Wireshark was started like described I noticed that the Nrf24Sniff console window displayed a *'Wait for sniffer to restart' *message. The author mentions that this will only take a few seconds but in my case I actually needed to reset the Arduino for it to go away. No exception.

                          3. After creating the correct setup in Wireshark I expected data to show up but it did not. I wondered why and ran a complete test to see that the Ardiuno was ok, radio sufficiently powered etc. but that was all ok. I then re-read the article and found that the author says 'when monitoring MySensors 1.4beta traffic (at non-default 1Mb/s)'. I completely missed this and that caused the issue.The MySensors 1.4beta is set to 250b/s by default. Once I started the sniffer like 'Nrf24Sniff.exe -P6 -r2' everything works as expected.

                          Now I have to find some time to read the third article so that I understand what happens on my screen :)

                          Anyway, good stuff and a big thank you goes to @Yveaux ...

                          YveauxY Offline
                          YveauxY Offline
                          Yveaux
                          Mod
                          wrote on last edited by
                          #31

                          @marceltrapman said:

                          Below is the wrap-up that I also posted on your blog:

                          Ok, thanks again man!

                          http://yveaux.blogspot.nl

                          1 Reply Last reply
                          0
                          • epierreE epierre

                            @Yveaux can you do me a favour ? colord blind people cannot read red on black... they represent 10% of the population...

                            Also, does your software runs under nano ;-)

                            YveauxY Offline
                            YveauxY Offline
                            Yveaux
                            Mod
                            wrote on last edited by Yveaux
                            #32

                            @epierre said:

                            @Yveaux can you do me a favour ? colord blind people cannot read red on black... they represent 10% of the population...

                            What is red on black? Some coloring in Wireshark?
                            If so, I don't choose the colors, Wireshark does! I just mark it as 'warning'.
                            Have a look at Edit->Preferences->User Interface->Font and colors to see if you can change it to your likings.

                            AH, now I see what you mean! The text on my blog :-)

                            Also, does your software runs under nano ;-)

                            I didn't test it, but don't see why it shouldn't!

                            http://yveaux.blogspot.nl

                            marceltrapmanM 1 Reply Last reply
                            0
                            • YveauxY Yveaux

                              @epierre said:

                              @Yveaux can you do me a favour ? colord blind people cannot read red on black... they represent 10% of the population...

                              What is red on black? Some coloring in Wireshark?
                              If so, I don't choose the colors, Wireshark does! I just mark it as 'warning'.
                              Have a look at Edit->Preferences->User Interface->Font and colors to see if you can change it to your likings.

                              AH, now I see what you mean! The text on my blog :-)

                              Also, does your software runs under nano ;-)

                              I didn't test it, but don't see why it shouldn't!

                              marceltrapmanM Offline
                              marceltrapmanM Offline
                              marceltrapman
                              Mod
                              wrote on last edited by
                              #33

                              @Yveaux said:

                              What is red on black? Some coloring in Wireshark?

                              It is your blog.
                              Mostly white on black but, when highlighted, also red on black...

                              Fulltime Servoy Developer
                              Parttime Moderator MySensors board

                              I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                              I have a FABtotum to print cases.

                              YveauxY 1 Reply Last reply
                              0
                              • marceltrapmanM marceltrapman

                                @Yveaux said:

                                What is red on black? Some coloring in Wireshark?

                                It is your blog.
                                Mostly white on black but, when highlighted, also red on black...

                                YveauxY Offline
                                YveauxY Offline
                                Yveaux
                                Mod
                                wrote on last edited by
                                #34

                                @marceltrapman Colors are not my top priority right now, but I'll put in on the list then. Thanks for the hint.

                                http://yveaux.blogspot.nl

                                1 Reply Last reply
                                0
                                • epierreE epierre

                                  @Yveaux ah a vb programmer... you need to install the msvcr110.dll msvcr110.dll t to make it start with wine. (does not work with mono...)

                                  then I have wireshark but I don't understand what to do next...
                                  "Connect Wireshark to \.\pipe\wireshark to continue..."

                                  YveauxY Offline
                                  YveauxY Offline
                                  Yveaux
                                  Mod
                                  wrote on last edited by
                                  #35

                                  @epierre It's not written in vb! Shame on your! It's pure hardcore C!
                                  If you get it to run on Linux (?) using Wine then let us know please!

                                  http://yveaux.blogspot.nl

                                  epierreE 1 Reply Last reply
                                  1
                                  • YveauxY Yveaux

                                    @epierre It's not written in vb! Shame on your! It's pure hardcore C!
                                    If you get it to run on Linux (?) using Wine then let us know please!

                                    epierreE Offline
                                    epierreE Offline
                                    epierre
                                    Hero Member
                                    wrote on last edited by
                                    #36

                                    @Yveaux yes I did... but I stopped here not knowing how to do it:

                                    Connect Wireshark to \.\pipe\wireshark to continue...
                                    

                                    z-wave - Vera -> Domoticz
                                    rfx - Domoticz <- MyDomoAtHome <- Imperihome
                                    mysensors -> mysensors-gw -> Domoticz

                                    YveauxY 1 Reply Last reply
                                    0
                                    • epierreE epierre

                                      @Yveaux yes I did... but I stopped here not knowing how to do it:

                                      Connect Wireshark to \.\pipe\wireshark to continue...
                                      
                                      YveauxY Offline
                                      YveauxY Offline
                                      Yveaux
                                      Mod
                                      wrote on last edited by
                                      #37

                                      @epierre It's in the blog: start a new command window and navigate to the wiresrak directory (c:\program files\wireshark)
                                      Then run:

                                       wireshark -k -i \\.\pipe\wireshark
                                      

                                      And it should automatically connect to the named pipe (which is written to from the nrf24sniff.exe tool) and start capturing.

                                      http://yveaux.blogspot.nl

                                      epierreE 1 Reply Last reply
                                      0
                                      • YveauxY Yveaux

                                        @epierre It's in the blog: start a new command window and navigate to the wiresrak directory (c:\program files\wireshark)
                                        Then run:

                                         wireshark -k -i \\.\pipe\wireshark
                                        

                                        And it should automatically connect to the named pipe (which is written to from the nrf24sniff.exe tool) and start capturing.

                                        epierreE Offline
                                        epierreE Offline
                                        epierre
                                        Hero Member
                                        wrote on last edited by
                                        #38

                                        @Yveaux yes but through wine are they POSIX compliant so my linux wireshark can connect to it ?

                                        z-wave - Vera -> Domoticz
                                        rfx - Domoticz <- MyDomoAtHome <- Imperihome
                                        mysensors -> mysensors-gw -> Domoticz

                                        YveauxY 1 Reply Last reply
                                        0
                                        • epierreE epierre

                                          @Yveaux yes but through wine are they POSIX compliant so my linux wireshark can connect to it ?

                                          YveauxY Offline
                                          YveauxY Offline
                                          Yveaux
                                          Mod
                                          wrote on last edited by
                                          #39

                                          @epierre I guess not, as Linux uses files as named pipes and \.\pipe\wireshark is not a regular Linux file path...
                                          Furthermore the Wireshark dissectors should compile on Linux, but I didn't test it.
                                          You could try to also run windows Wireshark through Wine, maybe the named pipes will pass the data along just fine...

                                          http://yveaux.blogspot.nl

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


                                          8

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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