Second setup, choosing a radio
-
@projectMarvin said in Second setup, choosing a radio:
Looking at:
it does look as though there is a possible OTA mechanism:
DFU = LOW and FRST = LOW: Enter bootloader with OTA, to upgrade with a mobile application such as Nordic nrfConnect/Toolbox
but if it requies a mobile phone application... it sounds a bit inconvenient, similar to what berkseo was alluding to. Nordic's software efforts always seem to assume Bluetooth, which is frustrating, because the hardware itself obviously doesn't have to rely on Bluetooth per se.
However, at the bottom it does seem to give you the option of crafting your own bootloader, and so that might be a way to do it right:
How to compile and build
You should only continue if you are looking to develop bootloader for your own. You must have have a J-Link available to "unbrick" your device.
I get the impression amazon's FreeRTOS may (?) also offer a way to FOTA update an nRF52840.
I haven't looked into Thread, but the nRF52840 supposedly supports Thread, and maybe (?) by now Thread is mature enough to have FOTA.
@NeverDie Here is a nordic fota over thread example.
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fthread_example_dfu.html&cp=7_3_2_10_4_0
They also support using a dongle or DK with a raspberry as a border router.Nordics documentation is fairly extensive and quite easy to search, I like it :)
The nrf52840 DK is kind of the standard example hardware for openthread so they have plenty of examples. -
From what I gather Particle had a FOTA for their nrf52840 modules, but they ruined it by making it a monthly paid subscription service. Too bad.
@NeverDie I read something about that Particle discontinued their BLE mesh boards :/
-
@NeverDie I read something about that Particle discontinued their BLE mesh boards :/
@projectMarvin said in Second setup, choosing a radio:
@NeverDie I read something about that Particle discontinued their BLE mesh boards :/
At least in part. Hackaday says Particle discontinued their Xenons.
-
@projectMarvin said in Second setup, choosing a radio:
@NeverDie I read something about that Particle discontinued their BLE mesh boards :/
At least in part. Hackaday says Particle discontinued their Xenons.
@NeverDie said in Second setup, choosing a radio:
@projectMarvin said in Second setup, choosing a radio:
@NeverDie I read something about that Particle discontinued their BLE mesh boards :/
At least in part. Hackaday says Particle discontinued their Xenons.
-
@projectMarvin
indeed nrf52 + mysensors fota is not officially supported.
When I tried fota, I used nordic/Adafruit (secure) bootloader and derived it (because we used adafruit core + mysensors).
That was a while ago.. but actually I prefer and need subghz.
Unfortunately I'm working on others fun projects so I don't have time to work on nrf5 for the moment.Sure using mobile app for fota is not convenient. better code a server-side app, micro service, for this task.
-
So after spending some time reading on the forum I have kind of shifted toward rfm69 with a sensebender ethernet mqtt gateway.
However this comes with new concerns.
The only rfm69 frequency I can use is 433 MHz, which means huge antennas. Even coiled they are pretty big.
Searching Taobao (chinese aliexpress) the rfm69 modules are quite uncommon and so I'm worried that they are already a bit aged.
Also the majority of the ones listed are the C version with a different pinout than the version used by sensebender.
The sensebender gateway is aging, it 5 years old with the last update 3 years ago.
This is not negative, I'm just wondering if it's still a good gw for a new system or will it soon be considered old and lacking?I'm not sure what the development plan is for mysensors, will we keep using nrf24 and rfm forever or is there any plan to shift towards something newer?
-
@projectMarvin
why can't you use other freq than 433?-
Even if rfm69 is not very new, there are lot of choices on aliexpress for cheap with different variants( freq and footprints). RFM69 works great for longer range vs nrf24/52.
-
RFM69HCW variant is footprint compatible with RFM95W.
-
MySensors new driver is RFM69<->RFM95 communication compatible
-
RFM95 is more expensive, a bit more power efficient (especially in RX mode, but so far there is no listenmode in MySensors, so that's not a big detail)
About the sensebender gw, I have one but actually I use my own gw designs (because I can). But I don't think SAMD mcu is "obsolete" for a good gw :)
Personally I prefer an external gw (Serial or ethernet), than radio module directly connected to rpi.
For the moment, afaik, MySensors plan is still the same, and might remain the same for quite a while I think: arduino, nrf24, rfm69/95.
We (me especially) wanted to add others newer soc for subghz (like TI's) but it's not worth the effort, I'm too busy for supporting this.
So it's easier for the team to support what we use. -
-
@scalz said in Second setup, choosing a radio:
MySensors new driver is RFM69<->RFM95 communication compatible
Good to hear! That potentially gives us the best of both worlds.
On the cost front, the STM32WLE5 is the first single chip solution that has both an MCU and LoRa integrated onto a single die. What's interesting is that it appears to be priced lower than Semtech's standalone LoRa chips.
So much depends on price. The Fanstel top-end nRF52840 modules have range that's comparable to an RFM69, but at better data rates. They're pricier than what most people want to pay though, so that has all but ruined the uptake rate.
If Expressif were to offer a Wi-Fi 6 chip with WiFi-NOW capabilities, and which could sleep at ultra low power, then the promise of its gigabit speeds would be a game changer. Unfortunately, I'm not aware of any announced plans for them to do that.
-
@scalz said in Second setup, choosing a radio:
MySensors new driver is RFM69<->RFM95 communication compatible
Good to hear! That potentially gives us the best of both worlds.
On the cost front, the STM32WLE5 is the first single chip solution that has both an MCU and LoRa integrated onto a single die. What's interesting is that it appears to be priced lower than Semtech's standalone LoRa chips.
So much depends on price. The Fanstel top-end nRF52840 modules have range that's comparable to an RFM69, but at better data rates. They're pricier than what most people want to pay though, so that has all but ruined the uptake rate.
If Expressif were to offer a Wi-Fi 6 chip with WiFi-NOW capabilities, and which could sleep at ultra low power, then the promise of its gigabit speeds would be a game changer. Unfortunately, I'm not aware of any announced plans for them to do that.
@NeverDie
There are others soc with LORA integrated, often with tiny footprints.I agree about nrf and bitrate. I have bt840xe on one of my gw, not sure if I would use one on a coincell node :)
I mean nrf52840+external frontend is almost same rf power output as rfm69 at 13dB which would be a lot for a coincell, but rfm69 has better penetration and no potential coexistence problem with other protocol if using mysensors. Well, we are talking about differents beasts, depends on the usecase, there are pros&cons in both I think.Here, I'm quite happy with my cheap rfm69 modules, I get a very nice range, I don't need any repeater (a bit more than 2acres area, with nodes in different buildings and thick rock walls, metals obstacles etc).
-
@NeverDie
There are others soc with LORA integrated, often with tiny footprints.I agree about nrf and bitrate. I have bt840xe on one of my gw, not sure if I would use one on a coincell node :)
I mean nrf52840+external frontend is almost same rf power output as rfm69 at 13dB which would be a lot for a coincell, but rfm69 has better penetration and no potential coexistence problem with other protocol if using mysensors. Well, we are talking about differents beasts, depends on the usecase, there are pros&cons in both I think.Here, I'm quite happy with my cheap rfm69 modules, I get a very nice range, I don't need any repeater (a bit more than 2acres area, with nodes in different buildings and thick rock walls, metals obstacles etc).
@scalz said in Second setup, choosing a radio:
There are others soc with LORA integrated, often with tiny footprints.
Who? I've tried googling this, and all I find is STMicroelectronics. The rest are all SiP rather than SOC as far as I can tell.
-
@projectMarvin
why can't you use other freq than 433?-
Even if rfm69 is not very new, there are lot of choices on aliexpress for cheap with different variants( freq and footprints). RFM69 works great for longer range vs nrf24/52.
-
RFM69HCW variant is footprint compatible with RFM95W.
-
MySensors new driver is RFM69<->RFM95 communication compatible
-
RFM95 is more expensive, a bit more power efficient (especially in RX mode, but so far there is no listenmode in MySensors, so that's not a big detail)
About the sensebender gw, I have one but actually I use my own gw designs (because I can). But I don't think SAMD mcu is "obsolete" for a good gw :)
Personally I prefer an external gw (Serial or ethernet), than radio module directly connected to rpi.
For the moment, afaik, MySensors plan is still the same, and might remain the same for quite a while I think: arduino, nrf24, rfm69/95.
We (me especially) wanted to add others newer soc for subghz (like TI's) but it's not worth the effort, I'm too busy for supporting this.
So it's easier for the team to support what we use.@scalz said in Second setup, choosing a radio:
MySensors new driver is RFM69<->RFM95 communication compatible
Indeed this is very interesting!
Do you have any pointer to instructions on how to use this feature?
I am also currently working on my sencond MySensors setup and going the RFM95 route. My first setup was a RFM69, so if I can combine nodes from both without having two different gateways would be very convenient... it could also help in choosing the best hardware for each use case.
After some searching, the only thing I could find was this pull request in MySensors development branch, but I couldn't find any hint about how to make use of it:
https://github.com/mysensors/MySensors/pull/1414 -
-
@scalz said in Second setup, choosing a radio:
@projectMarvin
why can't you use other freq than 433?I'm currently in China, 915 and 868 are not legal here :/
- Even if rfm69 is not very new, there are lot of choices on aliexpress for cheap with different variants( freq and footprints). RFM69 works great for longer range vs nrf24/52.
Yes there are some, but even on aliexpress when you look at the sales numbers you will see that basically no one are buying the rfm69w/hw and quite few are selling them.
- RFM69HCW variant is footprint compatible with RFM95W.
Really? How does this work? Do you reprogram them?
Considering they are different size, different number of pins and have the pins in different positions.- MySensors new driver is RFM69<->RFM95 communication compatible
Does is also work with rfm69 <-> rfm96 & rfm98? (96/98 are 433 MHz :) )
If so this would be really interesting solution.- RFM95 is more expensive, a bit more power efficient (especially in RX mode, but so far there is no listenmode in MySensors, so that's not a big detail)
About the sensebender gw, I have one but actually I use my own gw designs (because I can). But I don't think SAMD mcu is "obsolete" for a good gw :)
Ok cool, might go for one then if I choose nrf24 or rfm69.
Personally I prefer an external gw (Serial or ethernet), than radio module directly connected to rpi.
Yes I agree, I want the gw to be independent preferably over ethernet.
For the moment, afaik, MySensors plan is still the same, and might remain the same for quite a while I think: arduino, nrf24, rfm69/95.
We (me especially) wanted to add others newer soc for subghz (like TI's) but it's not worth the effort, I'm too busy for supporting this.
So it's easier for the team to support what we use.Ok this makes sense, thank you for your answers :)
@NeverDie said in Second setup, choosing a radio:
If Expressif were to offer a Wi-Fi 6 chip with WiFi-NOW capabilities, and which could sleep at ultra low power
Then I would immediately buy a wifi6 ap, this would be amazing! :heart_eyes:
Even though I prefer a standalone solution like mysensors this would be to convenient to ignore :smile: -
@scalz said in Second setup, choosing a radio:
@projectMarvin
why can't you use other freq than 433?I'm currently in China, 915 and 868 are not legal here :/
- Even if rfm69 is not very new, there are lot of choices on aliexpress for cheap with different variants( freq and footprints). RFM69 works great for longer range vs nrf24/52.
Yes there are some, but even on aliexpress when you look at the sales numbers you will see that basically no one are buying the rfm69w/hw and quite few are selling them.
- RFM69HCW variant is footprint compatible with RFM95W.
Really? How does this work? Do you reprogram them?
Considering they are different size, different number of pins and have the pins in different positions.- MySensors new driver is RFM69<->RFM95 communication compatible
Does is also work with rfm69 <-> rfm96 & rfm98? (96/98 are 433 MHz :) )
If so this would be really interesting solution.- RFM95 is more expensive, a bit more power efficient (especially in RX mode, but so far there is no listenmode in MySensors, so that's not a big detail)
About the sensebender gw, I have one but actually I use my own gw designs (because I can). But I don't think SAMD mcu is "obsolete" for a good gw :)
Ok cool, might go for one then if I choose nrf24 or rfm69.
Personally I prefer an external gw (Serial or ethernet), than radio module directly connected to rpi.
Yes I agree, I want the gw to be independent preferably over ethernet.
For the moment, afaik, MySensors plan is still the same, and might remain the same for quite a while I think: arduino, nrf24, rfm69/95.
We (me especially) wanted to add others newer soc for subghz (like TI's) but it's not worth the effort, I'm too busy for supporting this.
So it's easier for the team to support what we use.Ok this makes sense, thank you for your answers :)
@NeverDie said in Second setup, choosing a radio:
If Expressif were to offer a Wi-Fi 6 chip with WiFi-NOW capabilities, and which could sleep at ultra low power
Then I would immediately buy a wifi6 ap, this would be amazing! :heart_eyes:
Even though I prefer a standalone solution like mysensors this would be to convenient to ignore :smile:@projectMarvin said in Second setup, choosing a radio:
I'm currently in China, 915 and 868 are not legal here :/
oki!
Yes there are some, but even on aliexpress when you look at the sales numbers you will see that basically no one are buying the rfm69w/hw and quite few are selling them.
Still it's available for ordering. I prefer using HCW and CW because they have a more compact footprint. but I ordered HW/W in the past on aliexpress too, no problem. works the same, only the pinout changes.
Really? How does this work? Do you reprogram them?
Considering they are different size, different number of pins and have the pins in different positions.Nope. RFM69HCW and RFM95 have same size and mapping, you can take a look in datasheets. Note: only HCW variant is compatible.
Does is also work with rfm69 <-> rfm96 & rfm98? (96/98 are 433 MHz :) )
If so this would be really interesting solution.Unfortunately, we test what we have in stock and use, so I've no idea about those 433mhz modules..maybe yes in theory, but I've never tried this setup.
-
@scalz said in Second setup, choosing a radio:
@projectMarvin
why can't you use other freq than 433?I'm currently in China, 915 and 868 are not legal here :/
- Even if rfm69 is not very new, there are lot of choices on aliexpress for cheap with different variants( freq and footprints). RFM69 works great for longer range vs nrf24/52.
Yes there are some, but even on aliexpress when you look at the sales numbers you will see that basically no one are buying the rfm69w/hw and quite few are selling them.
- RFM69HCW variant is footprint compatible with RFM95W.
Really? How does this work? Do you reprogram them?
Considering they are different size, different number of pins and have the pins in different positions.- MySensors new driver is RFM69<->RFM95 communication compatible
Does is also work with rfm69 <-> rfm96 & rfm98? (96/98 are 433 MHz :) )
If so this would be really interesting solution.- RFM95 is more expensive, a bit more power efficient (especially in RX mode, but so far there is no listenmode in MySensors, so that's not a big detail)
About the sensebender gw, I have one but actually I use my own gw designs (because I can). But I don't think SAMD mcu is "obsolete" for a good gw :)
Ok cool, might go for one then if I choose nrf24 or rfm69.
Personally I prefer an external gw (Serial or ethernet), than radio module directly connected to rpi.
Yes I agree, I want the gw to be independent preferably over ethernet.
For the moment, afaik, MySensors plan is still the same, and might remain the same for quite a while I think: arduino, nrf24, rfm69/95.
We (me especially) wanted to add others newer soc for subghz (like TI's) but it's not worth the effort, I'm too busy for supporting this.
So it's easier for the team to support what we use.Ok this makes sense, thank you for your answers :)
@NeverDie said in Second setup, choosing a radio:
If Expressif were to offer a Wi-Fi 6 chip with WiFi-NOW capabilities, and which could sleep at ultra low power
Then I would immediately buy a wifi6 ap, this would be amazing! :heart_eyes:
Even though I prefer a standalone solution like mysensors this would be to convenient to ignore :smile:@projectMarvin said in Second setup, choosing a radio:
Really? How does this work? Do you reprogram them?
Considering they are different size, different number of pins and have the pins in different positions.RFM69HCW and RFM9x are indeed pin-compatible. I've drawn a bunch of RFM modules with their pinouts a while back, because I couldn't find a good, clear comparison diagram including the pinout online. If there's interest in the original SVG files (i.e. to add them to the radio guide) or drawings of other modules, just let me know.

-
@BearWithBeard nice pic, could be added to the radio guide, sure
well, the thing to remember when you don't have any pic, is H (High power version) require more IC for RF because of the power amplifier whereas non-H (low power version) only has passives parts (res, capa etc).
And on non-C version (HW and W), there are pads close to the crystal. -
@BearWithBeard nice pic, could be added to the radio guide, sure
well, the thing to remember when you don't have any pic, is H (High power version) require more IC for RF because of the power amplifier whereas non-H (low power version) only has passives parts (res, capa etc).
And on non-C version (HW and W), there are pads close to the crystal.@scalz Yupp!
C - Compatible, fits RFM12B (69CW) and RFM22 (69HCW) footprints
W - Supposedly "Worldwide" / certified variants (I'm not certain on that)
H - High power, with amplifier (+20dBm, as opposed to +13)I just find it weird if the pinout is printed on the "backside" of a PCB so that you have to turn it around to look at it (breadboard prototyping). With these drawing, I have both the components and the pinout visible. I think visually, so I like having visual references at hand. :)
-
I suppose the pinouts may matter for legacy upgrades, but for new designs I presume you'd be better off using a LoRa module that comes with built-in metal shielding: better SNR and FCC (or equivalent) compliance. Also, the better LoRa modules come with TCXO's, which would be added benefit. None of the HopeRF's shown above have TCXO's or metal shielding. That's not to say they wouldn't work, but if it were me, I'd move on from those to something better, or at least more compliant.
-
I suppose the pinouts may matter for legacy upgrades, but for new designs I presume you'd be better off using a LoRa module that comes with built-in metal shielding: better SNR and FCC (or equivalent) compliance. Also, the better LoRa modules come with TCXO's, which would be added benefit. None of the HopeRF's shown above have TCXO's or metal shielding. That's not to say they wouldn't work, but if it were me, I'd move on from those to something better, or at least more compliant.
@NeverDie
lora modules are more expensive. You can find rfm69 for 1.8€ shipping included which work great and they are widely available compared to some lora modules.
I think it depends on projects goals.
But I agree with your points of course :) -
Here I'm sharing something I just learned which maybe most people aren't aware of: It used to be that the RFM69 was much faster than LoRa, but with Semtech's SX1280 chip, LoRa can sustain a datarate of up to 254kbps, which is close to the 300kbps maximum of an RFM69. And, I suspect that with LoRa's greater receive sensitivity, it might be able to attain its highest datarate more than the RFM69, under similar conditions. But the cherry on top is that also Included in the SX1280 chip is an FLRC modem which can get up to 1.3mbps.
In addition, the FSK modem that comes with the SX1280 has a top datarate of 2Mbps.
Now, granted, the SX1280 operates at 2.4Ghz, not the sub-1Ghz of previous LoRa or RFM69, but Semtech is claiming the SX1280 has extremely high immunity to both Wi-Fi and Bluetooth interference, well, at least in LoRa mode that is.
The SX1280 also has range finding built into it for asset tracking, so, at least to me, it sounds like an interesting chip. If the environment happens to support high speed communications, then you can use that, but if not, you can always fall back onto LoRa to get your packets through.
I've checked, and EByte has some SX1280 modules available on Aliexpress.