💬 Building a Serial Gateway
-
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... -
@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. I did not know cause I have a PI1. Btw, what about serial port name and out of the box working? Or need some edit on PI config?
Edit: I did read your answer late ;-)
-
Is MY_RX_MESSAGE_BUFFER_FEATURE auto enabled for a gw using serial or do I need to add #define MY_RX_MESSAGE_BUFFER_FEATURE in the sketch before uploading?
I have looked this page + https://www.mysensors.org/build/connect_radio + https://www.mysensors.org/download/sensor_api_20#configuration and still not sure.....Anyone know? -
Is MY_RX_MESSAGE_BUFFER_FEATURE auto enabled for a gw using serial or do I need to add #define MY_RX_MESSAGE_BUFFER_FEATURE in the sketch before uploading?
I have looked this page + https://www.mysensors.org/build/connect_radio + https://www.mysensors.org/download/sensor_api_20#configuration and still not sure.....Anyone know?@skywatch it is not enabled by default.
https://www.mysensors.org/apidocs-beta/group__RF24SettingGrpPub.html#gafe2f4565dfa8473846dfc82d417c8147The default value is in parenthesis after the name, if there is a default value. Example:

means that the default value for MY_RF24_PA_LEVEL is RF24_PA_HIGH
There is nothing after

which means it is not set by default. -
Thanks for reply. Maybe I wasn't too clear, so here is more info.
Today I made a serial gw with a pro mini as the nrf24 attached to pi directly is suspected of problems with MyController.
In the wiring diagram on the build page it shows the IRQ from the nrf24 to the promini as connected. But this is not enabled by default in the MYSGW code.
So, to make the NRF24 IRQ work, I need to add #define MY_RX_MESSAGE_BUFFER_FEATURE and #define MY_RF24_IRQ_PIN.......Or is it #define MY_RX_MESSAGE_BUFFER_FEATURE(ENABLED) #define MY_RF24_IRQ_PIN(D2) ???
I just want to enable the irq from the nrf24 to help with message flow. -
Thanks for reply. Maybe I wasn't too clear, so here is more info.
Today I made a serial gw with a pro mini as the nrf24 attached to pi directly is suspected of problems with MyController.
In the wiring diagram on the build page it shows the IRQ from the nrf24 to the promini as connected. But this is not enabled by default in the MYSGW code.
So, to make the NRF24 IRQ work, I need to add #define MY_RX_MESSAGE_BUFFER_FEATURE and #define MY_RF24_IRQ_PIN.......Or is it #define MY_RX_MESSAGE_BUFFER_FEATURE(ENABLED) #define MY_RF24_IRQ_PIN(D2) ???
I just want to enable the irq from the nrf24 to help with message flow. -
@mntlvr you have now posted variants of the same questions in three places. This means efforts to help you will be split into three places. People will waste time helping you in one thread, not knowing the discissions in the other threads. This will waste people's time. Please only post your question in one place.
-
@mntlvr you have now posted variants of the same questions in three places. This means efforts to help you will be split into three places. People will waste time helping you in one thread, not knowing the discissions in the other threads. This will waste people's time. Please only post your question in one place.
@mfalkvidd
Well I thought since you wrote this you could answer the question
I have searched entire site for answer and can not find one and since you posted the build last year you would be the one who could answer it -
@mfalkvidd
Well I thought since you wrote this you could answer the question
I have searched entire site for answer and can not find one and since you posted the build last year you would be the one who could answer it