Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Feather M0 and TTN
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M0 and TTN

by max246 on Sat Jul 04, 2020 11:40 am

I have got the Feather M0 with Lora which I wanted to hook it up to my lora pi hut.

For reference this is the board I am using: https://store.uputronics.com/index.php? ... duct_id=68

I have only one chip 899mhz, because I am in europe, and it does works when I run the single_chan_pkt_fwd software, here is the out:
Code: Select all | TOGGLE FULL SIZE
$ sudo ./single_chan_pkt_fwd
server: .address = router.eu.staging.thethings.network; .port = 1700; .enable = 1
server: .address = router.eu.thethings.network; .port = 1700; .enable = 0
Gateway Configuration
  SC Gateway (contact@whatever.com)
  Dragino Single Channel Gateway on RPI
  Latitude=0.00000000
  Longitude=0.00000000
  Altitude=10
Trying to detect module with NSS=11 DIO0=27 Reset=25 Led1=29
SX1276 detected, starting.
Gateway ID: b8:27:eb:ff:ff:xx:xx:xx
Listening at SF7 on 868.100000 Mhz.
-----------------------------------
stat update: 2020-07-04 15:20:26 GMT no packet received yet
stat update: 2020-07-04 15:20:56 GMT no packet received yet
stat update: 2020-07-04 15:21:26 GMT no packet received yet
stat update: 2020-07-04 15:21:56 GMT no packet received yet
stat update: 2020-07-04 15:22:26 GMT no packet received yet
Packet RSSI: -28, RSSI: -102, SNR: 9, Length: 23 Message:'.5...~..p.k....v....NK.'
rxpk update: {"rxpk":[{"tmst":915006722,"freq":868.1,"chan":0,"rfch":0,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","rssi":-28,"lsnr":9.0,"size":23,"data":"ADUXA9B+1bNw7WsRAAC2dpgAAItOS+s="}]}
stat update: 2020-07-04 15:22:56 GMT 1 packet received
stat update: 2020-07-04 15:23:26 GMT 1 packet received
stat update: 2020-07-04 15:23:56 GMT 1 packet received
stat update: 2020-07-04 15:24:26 GMT 1 packet received
stat update: 2020-07-04 15:24:56 GMT 1 packet received
stat update: 2020-07-04 15:25:26 GMT 1 packet received


On The Thing Network I can see the device showing up and it is working.

I have then use the ttn-otaa-feather-us915 sketch to try out the communication, I have changed to europe and used the following to setup the right frequency:
Code: Select all | TOGGLE FULL SIZE
    LMIC_setupChannel(1, 868100000, DR_RANGE_MAP(DR_SF12, DR_SF7),  BAND_CENTI);   


This is the output from the feather when I ran the code which should send hello world
Code: Select all | TOGGLE FULL SIZE
Starting
Packet queued
Packet queued
Packet queued
Packet queued
Packet queued
Packet queued
Packet queued
314356: EV_JOINING
349108: EV_TXSTART
742271: EV_JOIN_TXCOMPLETE: no JoinAccept
4482231: EV_TXSTART
4875396: EV_JOIN_TXCOMPLETE: no JoinAccept
8795633: EV_TXSTART
9188797: EV_JOIN_TXCOMPLETE: no JoinAccept
12966584: EV_TXSTART


I dont understand how the feather is not joining but when I start it ( not all the time ) i see this message on the PI :
Packet RSSI: -25, RSSI: -103, SNR: 10, Length: 23 Message:'.5...~..p.k....v....NK.'

and also I can see on the TTN console that a message came in.

Am I missing something? I can see in the console the device ID is correct and even the APP ID.

Note: Yes I did solder the jumper cable from pin 6 and I solder a wire of 82mm for the antenna.
I dont have another lora to confirm that the Pi allows other devices but I suppose if I get now and then these logs and the TTN console sees the gateway online, is not the PI the issue.

max246
 
Posts: 43
Joined: Sat Mar 17, 2012 4:46 pm

Re: Feather M0 and TTN

by max246 on Sun Jul 05, 2020 4:30 am

I think I figured it out, I was not aware how Lora really worked and with a friend he explined me that Lora sends over to multi band and my "cheap" lora gateway is only single channel.

Therefore I have use tinylora to look in to single channel mode 868.1mhz and also the gateway and it works.

One question that is still confused is the implementation of downlink in TinyLora, is there something ready?

max246
 
Posts: 43
Joined: Sat Mar 17, 2012 4:46 pm

Please be positive and constructive with your questions and comments.