On Wed, Feb 19, 2020 at 04:26:57PM -0300, Florian Wehmeyer wrote:
> 
> Hi Bernd,
> 
> do you know that the RFM95 is based on the Semtech Sx1276 chip? There is
> a driver available at Nuttx, as Greg said, only a "dumb spi driver".

Well - yes and no.
They are based on the HopeRF RF96 chip, but this is a licensed Semtech
SX1276 clone, so technically they are identic.

> On semtech site is abundant info available, also the LoRaWAN stack can
> be downloaded there. It should not be too complicated to port this into
> Nuttx (for a LoRa node device, for a gateway maybe more).

Well - for a propper gateway you need different hardware anyways.
(I personally use Raspberries with RAK831 modules)
The most interesting part for NuttX would be node.
If you are just doing point to point the current driver is sufficient.

> 
> Time-critical should also be no problem in NuttX, other than with the
> Linux SPI driver.

You can get away with just simply sending if you do ABP and uplink only.
However OTAA is the better solution.
It might be a less critical factor - to my understanding it is only
important for the receive windows and you might get away with just
activating the receiver longer than needed.
On a pi you consume a lot of power anyways, but for a propper node
you likely want to save power.
In my case with the SAM4E I even have ethernet and LoRa is just a used as
a backup messaging in case of power and/or network failure.
It is also intended to get the code running and maybe do some low power
node later.

> I also plan to make some tests on this as soon as I receive the Sx1276
> dev Kit.

I've already rolled my own PCB - lol.
Porting the existing driver to my own board isn't that difficult.
Just changing GPIO and and interrupt from stm32 to sam34.

> 
> On 19/02/2020 12:14, Bernd Walter wrote:
> >On Wed, Feb 19, 2020 at 02:33:19PM +0100, Philippe Coval wrote:
> >>Hi,
> >>
> >>I can share a personnal experience of using LoRaWAN on mcu.
> >>I also used a RN2483 module that handle serial commands,
> >In my case I have an RFM95W module connected to an SAM4E controller.
> >Those are quite common modules and having full support would be valueable.
> >Until now I'm running some things network gateways and played with arduino.
> >It is however more a fun project, so not sure how much time I put into 
> >this.
> >Also no idea yet on how difficult it would be to add full LoRaWAN support
> >into the existing framework, especially since I'm not familar with the
> >MAC layer.
> >I know that there is some time critical requirement to receive data,
> >which is a prerequisite for OTAA, so probably has to be done on the
> >driver side.
> >Another option would be to hack the IBM LMIC driver into my code, which
> >would be more a "works for me" approuch.
> >Also the IBM code is under the "Eclipse Public License v1.0", which I'm
> >not familar with.
> >This is for me to use it in maybe commercial products, but also if parts
> >can be taken to create NuttX code.
> >At the first look it seems to be similar permissive as a BSD license, which
> >sounds good.
> >
> >>It worked at least for this TizenRT demo:
> >>http://purl.org/tizen-rt-lpwan-20180204rzr#
> >>
> >>I also shared some hints about using RN2483 that should also apply to 
> >>NuttX
> >>
> >>https://www.slideshare.net/SamsungOSG/tizen-rt-a-lightweight-rtos-platform-for-lowend-iot-devices/25
> >>
> >>Would that help ?
> >>
> >>Regards
> >>
> >>
> >>On Tue, Feb 18, 2020 at 2:55 PM Gregory Nutt <spudan...@gmail.com> wrote:
> >>
> >>>>I'm a bit confused about the state of LoRa support in NuttX.
> >>>>I've seen a few configs with STM32 controllers.
> >>>>And there is apps/examples/sx127x_demo
> >>>>So far everything looks as if there is only radio support, but no
> >>>>LoRaWAN implementation to send and receive messages from the things
> >>>>network.
> >>>That is truly.  Only a dumb serial driver has been contributed.
> >>>
> >>
> >>--
> >>--
> >>gpg:0x467094BC
> >>xmpp:philippe.coval....@gmail.com
> >>https://elinux.org/User:RzR
> 
> --
> Florian Wehmeyer
> TFW Tech Solutions
> 

-- 
B.Walter <be...@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.

Reply via email to