💬 Building a Serial Gateway
-
This thread contains comments for the article "Building a Serial Gateway" posted on MySensors.org.
-
I have two questions ...
one) this sketch only works with version mysensors_v2.0 it?
two) all the old skeck are no longer usable?
thank you -
I have two questions ...
one) this sketch only works with version mysensors_v2.0 it?
two) all the old skeck are no longer usable?
thank youone) this sketch only works with version mysensors_v2.0 it?
Correct
two) all the old skeck are no longer usable?
They are still usable. All nodes in a sensor network need to run the same major MySensor version. If you want to stay on version 1.5, you can continue using the 1.5 sketches.
-
you have been very kind, you also tell me, where can I find the old serial sketches compatible for mysensors version 1.5?
-
you have been very kind, you also tell me, where can I find the old serial sketches compatible for mysensors version 1.5?
@Michel---It you're welcome :)
Download 1.5.4 from https://www.mysensors.org/download or select the 1.5.4 tag on Github, https://github.com/mysensors/MySensors/tree/1.5.4 -
@Michel---It you're welcome :)
Download 1.5.4 from https://www.mysensors.org/download or select the 1.5.4 tag on Github, https://github.com/mysensors/MySensors/tree/1.5.4@mfalkvidd I wanted to see if you were ready :satisfied: It can help someone
-
If i want to update the gateway to 2.1, do i just need to download the master and reupload this scetch to it?
Do i need to do that to all my sensors aswell?
i am on 2.0 right now -
If i want to update the gateway to 2.1, do i just need to download the master and reupload this scetch to it?
Do i need to do that to all my sensors aswell?
i am on 2.0 right now@meanmrgreen yes re-uploading after updating the MySensors library is all you need to do. I recommend updating through the Library Manager (if you use the Arduino IDE) instead of manually downloading from github though.
You can mix nodes with 2.0 and 2.1 so there is no immediate need to update your nodes.
See https://forum.mysensors.org/topic/5691/upgrade-to-2-1-0/2 and https://forum.mysensors.org/topic/5651/mysensors-2-1-0-released for more information.
-
I don't seem to be able to get it to work when loading the SerialGateway sketch onto a Mega 2560 board... I have tried to find out where to change the pins for the SPI connection, as the pin location is different than on the Nano, but can't seem to find it. Does the library autodetect which pins to use on various boards?
-
I don't seem to be able to get it to work when loading the SerialGateway sketch onto a Mega 2560 board... I have tried to find out where to change the pins for the SPI connection, as the pin location is different than on the Nano, but can't seem to find it. Does the library autodetect which pins to use on various boards?
-
Is it possible to update the article with a code example for a gateway that also uses NodeManager?
-
Is it possible to use an Arduino Mini Pro instead of a UNO? I did try with a Mini + FTDI232 (the red card) but cannot see nothing on PI serial. Thank you!
-
Is it possible to use an Arduino Mini Pro instead of a UNO? I did try with a Mini + FTDI232 (the red card) but cannot see nothing on PI serial. Thank you!
@sineverba I had issues incorporating the Sensebender Gateway, as originally planned so used one a Pro-mini as a stopgap gateway to the Pi, and it hasn't skipped a beat... It is a 3.3v 16MHz version however, you would need a level shifter on the serial if you were to use a 5v Pro-mini...
-
@sineverba I had issues incorporating the Sensebender Gateway, as originally planned so used one a Pro-mini as a stopgap gateway to the Pi, and it hasn't skipped a beat... It is a 3.3v 16MHz version however, you would need a level shifter on the serial if you were to use a 5v Pro-mini...
@zboblamont It is a 3.3v 8mhz. So do you mean use It connected via GPIO of PI? How do you power It?
-
@zboblamont It is a 3.3v 8mhz. So do you mean use It connected via GPIO of PI? How do you power It?
@sineverba Serial Tx to Rx and vice versa, ground and 3.3 from Pi...
-
@sineverba Serial Tx to Rx and vice versa, ground and 3.3 from Pi...
@zboblamont ok, and PI can safely Power It with his radio? If right Remember, max of PI are 50mA .... From a GPIO.....
Another question, please, what the port serial name? Pi recognises It out of the box?
-
@zboblamont ok, and PI can safely Power It with his radio? If right Remember, max of PI are 50mA .... From a GPIO.....
Another question, please, what the port serial name? Pi recognises It out of the box?
@sineverba You are not powering the gateway from the Pi's data pins, you are tapping off the 3v3 power on the Pi's power supply.
On the Pi3 (same as the Pi2), the 3v3, gnd, tx, and rx are grouped on the outside row making it all neat. -
@zboblamont ok, and PI can safely Power It with his radio? If right Remember, max of PI are 50mA .... From a GPIO.....
Another question, please, what the port serial name? Pi recognises It out of the box?
@sineverba I forgot to add, this gateway has a RFM69, so powers it no problem.
If I remember correctly the input was selected on the Pi in Domoticz as ttyS0...