"Choose the Serial Port" error with MySensors and RFXtrx433?
-
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.
-
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.
-
The next logical step would probably be to ssh into the Vera box to see which devices hat pops up using
lsusbwhen 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?
-
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.
-
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.
@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.
-
Do you have this one?
I don`t have a second hub to try with so I need to buy a new one...
-
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.
-
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?
-
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.
-
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?
@Aron-Sjöberg
My config below:

-
@Aron-Sjöberg
My config below:

-
@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?
@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 #endifHowever, 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?
-
@Aron-Sjöberg
My config below:

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

-
@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 #endifHowever, 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?
@Aron-Sjöberg said in "Choose the Serial Port" error with MySensors and RFXtrx433?:
Add this line
#define MY_BAUD_RATE 38400above the #include <SPI.h>
-
Have you restart luup after you connected both usb-ports?
-
@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.

@Aron-Sjöberg I can configure both ports at the same time. It looks exactly as in the posted picture.
@BartE I justfollowed the instructions on the website. This was probably a year ago and the code used for the serial GW was designed only for Arduino Nano 328p / 16MHz.
-
Thank you for your help!
Unfortunately nothing works. I have even tried to change the radio module from RFM69 to NRF24L01 to make sure it wasn't the connections that was badly soldered.
@Magnus Could you please post the sketch you use for your gateway? I tried to add #define MY_BAUD_RATE 38400 as @BartE suggested but this doesn't seem to make a difference.
I'm starting to think there is something wrong on Veras end. I don't get two different devices under the Serial Port configuration like @Magnus. You also have different ports (3482 for the serial gateway and 3481 for the RFXtrx).
As a last resort I guess I could install Domoticz on a RPi and import the devices to the Vera as virtual devices, but this seems like a hassle if it is possible for the gateway to work directly.
-
Have you ever confirmed that the MySensors USB gateway works without the RFXtrx attached? Or checked that you really have an FTDI chip on the MySensors USB gateway? This is the only chip that the Vera can detect out of the box. A complete reboot of your Vera might also help.
-
I'm using a Arduino Nano. How do I check if it is a genuine FTDI chip?