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. Controllers
  3. Vera
  4. "Choose the Serial Port" error with MySensors and RFXtrx433?

"Choose the Serial Port" error with MySensors and RFXtrx433?

Scheduled Pinned Locked Moved Vera
29 Posts 6 Posters 8.9k Views 6 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.
  • Aron SjöbergA Offline
    Aron SjöbergA Offline
    Aron Sjöberg
    wrote on last edited by
    #1

    Hi!

    I'm just starting with MySensors and have built a Serial Gateway using a Arduino Nano. I have a Vera Edge with a RFXtrx to control my 433mhz devices. I have a powered USB-port connected to the Veras single USB port to be able to have both RFXtrx transceiver and USB drive for DataMine2.

    I have successfully uploaded the MySensors files for UI7 and created the MySensors device.

    However, after I change the baud rate to 115200 for the MySensors device and reload the Vera, my RFXtrx stop working. I get a "RFXtrx plugin : Choose the Serial Port" error message. When I change the baud rate for the RFXtrx to 38400 (as it should be) and reload the My Sensors device stop working and I get a "MySensors plugin : Choose the Serial Port" error.

    It seems I can only have either MySensors or RFXtrx enabled at the same time? The port seems to be the same (3481)? Is this the issue?

    Is it possible to have both MySensors and RFXtrx on Vera?

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

      It should be possible to have both at the same time. Maybe the two devices draw too much power from the Vera USB port?

      Aron SjöbergA 1 Reply Last reply
      0
      • miroM Offline
        miroM Offline
        miro
        wrote on last edited by
        #3

        I borrow this thread...

        When I plug in my (mysensor Gateway) direct into vera edge it works perfect.
        When I plug in my (RFXtrx) direct into vera edge it works perfect.

        When I connect them to my usb hub that I bought, no one of them will work?

        Mysensors GW are not changing when I click on start and stop for inclusion mode.
        RFXtrx are not sending commands to the lamps. I click on one lamp that is off, and nothing happends.

        It is a 4-ports 3.0 USB hub with separate power suply, brand new.

        Could someone help me?

        1 Reply Last reply
        0
        • hekH hek

          It should be possible to have both at the same time. Maybe the two devices draw too much power from the Vera USB port?

          Aron SjöbergA Offline
          Aron SjöbergA Offline
          Aron Sjöberg
          wrote on last edited by
          #4

          @hek: I don't think so. The hub is powered (5V, 2.5A) and the RFXtrx works fine. Does the Serial Gateway draw very much power?

          Have ANYONE got RFXtrx and MySensors Serial Gateway to work using an USB hub? Is it possible at all?

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

            It depends on if you use the amplified radio or not. The vanilla version shouldn't be much of a problem.

            If the both work individually I can't see any other problem (unless Vera has trouble enumerating more than one usb device).

            Maybe you could measure the power consumption on the devices.

            1 Reply Last reply
            0
            • Aron SjöbergA Offline
              Aron SjöbergA Offline
              Aron Sjöberg
              wrote on last edited by
              #6

              Hmm... I'm using the vanilla version av the gateway. Measured the power consumption and the powered USB hub should be able to provide enough power for both devices. There must be some configuration error, but I can't figure out what. The Vera can use both the RFXtrx and a USB drive (for logs) at the same time, also using the single USB port with a powered hub.

              I don't have the technological skill to troubleshoot this, but until you can confirm there is another user that have gotten Vera to work with both a connected RFXtrx AND MySensors gateway this seems to be an issue.

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

                The next logical step would probably be to ssh into the Vera box to see which devices hat pops up using lsusb when you plug in/out devices.

                But as the vera Luup engine is closed source we don't really know what it does.

                Do you have another usb hub laying around to test with?

                1 Reply Last reply
                0
                • Aron SjöbergA Offline
                  Aron SjöbergA Offline
                  Aron Sjöberg
                  wrote on last edited by
                  #8

                  I think I have another powered hub laying around! Will try when I get home from work. I can check the 1usb-folder as well.

                  1 Reply Last reply
                  0
                  • Aron SjöbergA Aron Sjöberg

                    Hmm... I'm using the vanilla version av the gateway. Measured the power consumption and the powered USB hub should be able to provide enough power for both devices. There must be some configuration error, but I can't figure out what. The Vera can use both the RFXtrx and a USB drive (for logs) at the same time, also using the single USB port with a powered hub.

                    I don't have the technological skill to troubleshoot this, but until you can confirm there is another user that have gotten Vera to work with both a connected RFXtrx AND MySensors gateway this seems to be an issue.

                    MagnusM Offline
                    MagnusM Offline
                    Magnus
                    wrote on last edited by
                    #9

                    @Aron-Sjöberg Did you solve your problem? I have a mysensors serial gateway, a rfxtrx433e and a USB stick connected to my Vera (Edge) through an externally powered USB hub (plexgear). They all work just fine.

                    1 Reply Last reply
                    0
                    • miroM Offline
                      miroM Offline
                      miro
                      wrote on last edited by
                      #10

                      @Magnus

                      Do you have this one?

                      https://www.kjell.com/se/sortiment/dator-natverk/datortillbehor/usb-tillbehor/usb-hubbar/plexgear-usb-hubb-4-vags-med-stromforsorjning-p68296

                      I don`t have a second hub to try with so I need to buy a new one...

                      MagnusM 1 Reply Last reply
                      0
                      • miroM miro

                        @Magnus

                        Do you have this one?

                        https://www.kjell.com/se/sortiment/dator-natverk/datortillbehor/usb-tillbehor/usb-hubbar/plexgear-usb-hubb-4-vags-med-stromforsorjning-p68296

                        I don`t have a second hub to try with so I need to buy a new one...

                        MagnusM Offline
                        MagnusM Offline
                        Magnus
                        wrote on last edited by
                        #11

                        @miro
                        I've got this one
                        https://www.kjell.com/se/sortiment/dator-natverk/datortillbehor/usb-tillbehor/usb-hubbar/plexgear-usb-3-0-hubb-4-vags-p61062

                        It's been up running for a year now.

                        1 Reply Last reply
                        0
                        • Aron SjöbergA Offline
                          Aron SjöbergA Offline
                          Aron Sjöberg
                          wrote on last edited by
                          #12

                          No, still have the same issue with port conflict with the RFXtrx... :(

                          I'm going to try another hub and build the serial gateway again.

                          1 Reply Last reply
                          0
                          • Aron SjöbergA Offline
                            Aron SjöbergA Offline
                            Aron Sjöberg
                            wrote on last edited by
                            #13

                            Argh!

                            I finally received my new USB-hub and tried a new serial gateway I built.

                            I STILL get the same error. I can't seem to have both my RFXtrx433E and the MySensor gateway connected (and working) at the same time.

                            @Magnus, could you post a screenshot of your settings in Vera Edge?

                            MagnusM 1 Reply Last reply
                            0
                            • miroM Offline
                              miroM Offline
                              miro
                              wrote on last edited by
                              #14

                              I bought this one: https://www.kjell.com/se/sortiment/dator-natverk/datortillbehor/usb-tillbehor/usb-hubbar/plexgear-usb-hubb-7-vags-med-stromforsorjning-p68616

                              Now all is working fine for me.

                              1 Reply Last reply
                              0
                              • Aron SjöbergA Aron Sjöberg

                                Argh!

                                I finally received my new USB-hub and tried a new serial gateway I built.

                                I STILL get the same error. I can't seem to have both my RFXtrx433E and the MySensor gateway connected (and working) at the same time.

                                @Magnus, could you post a screenshot of your settings in Vera Edge?

                                MagnusM Offline
                                MagnusM Offline
                                Magnus
                                wrote on last edited by Magnus
                                #15

                                @Aron-Sjöberg
                                My config below:
                                0_1487014260023_upload-8c1c7a47-553e-4710-bd9d-6492dcabd120

                                BartEB Aron SjöbergA 2 Replies Last reply
                                1
                                • MagnusM Magnus

                                  @Aron-Sjöberg
                                  My config below:
                                  0_1487014260023_upload-8c1c7a47-553e-4710-bd9d-6492dcabd120

                                  BartEB Offline
                                  BartEB Offline
                                  BartE
                                  Contest Winner
                                  wrote on last edited by
                                  #16

                                  @Magnus just a wild guess.

                                  Did you try to compile the MySensors GW with baudrate set to 38400 so they both use the same baudrate?

                                  Aron SjöbergA 1 Reply Last reply
                                  1
                                  • BartEB BartE

                                    @Magnus just a wild guess.

                                    Did you try to compile the MySensors GW with baudrate set to 38400 so they both use the same baudrate?

                                    Aron SjöbergA Offline
                                    Aron SjöbergA Offline
                                    Aron Sjöberg
                                    wrote on last edited by
                                    #17

                                    @BartE Hmm... I didn't know you could choose the baudrate? I just followed the instructions on the website (https://www.mysensors.org/build/serial_gateway) but when I check the code I can clearly read that there is something in the sketch about the baud rate:

                                    // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
                                    #if F_CPU == 8000000L
                                    #define MY_BAUD_RATE 38400
                                    #endif
                                    

                                    However, I use the recommended Arduino Nano for my Vera Serial Gateway, not Arduino Pro Mini 3.3V or SenseBender.

                                    How would I change the baud rate for the MySensor gateway if I can't use 38400 because it is used by my RFXtrx433E?

                                    BartEB 1 Reply Last reply
                                    0
                                    • MagnusM Magnus

                                      @Aron-Sjöberg
                                      My config below:
                                      0_1487014260023_upload-8c1c7a47-553e-4710-bd9d-6492dcabd120

                                      Aron SjöbergA Offline
                                      Aron SjöbergA Offline
                                      Aron Sjöberg
                                      wrote on last edited by
                                      #18

                                      @Magnus Thank you for your trouble! Did you photoshop your screenshot or can you configure two different serial port devices at the same time? I only have one instance I can change settings for?

                                      Otherwise my settings seems to be the same as yours.

                                      0_1487025233505_Untitled.jpg

                                      MagnusM 1 Reply Last reply
                                      0
                                      • Aron SjöbergA Aron Sjöberg

                                        @BartE Hmm... I didn't know you could choose the baudrate? I just followed the instructions on the website (https://www.mysensors.org/build/serial_gateway) but when I check the code I can clearly read that there is something in the sketch about the baud rate:

                                        // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
                                        #if F_CPU == 8000000L
                                        #define MY_BAUD_RATE 38400
                                        #endif
                                        

                                        However, I use the recommended Arduino Nano for my Vera Serial Gateway, not Arduino Pro Mini 3.3V or SenseBender.

                                        How would I change the baud rate for the MySensor gateway if I can't use 38400 because it is used by my RFXtrx433E?

                                        BartEB Offline
                                        BartEB Offline
                                        BartE
                                        Contest Winner
                                        wrote on last edited by
                                        #19

                                        @Aron-Sjöberg said in "Choose the Serial Port" error with MySensors and RFXtrx433?:

                                        Add this line

                                        #define MY_BAUD_RATE 38400
                                        

                                        above the #include <SPI.h>

                                        1 Reply Last reply
                                        0
                                        • miroM Offline
                                          miroM Offline
                                          miro
                                          wrote on last edited by
                                          #20

                                          @Aron-Sjöberg

                                          Have you restart luup after you connected both usb-ports?

                                          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.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