發表文章

目前顯示的是有「TTN」標籤的文章

LoraWAN TTN http data to gsheet

圖片
this one work, and can parsing field data with json, it first has to run setup.  also change your payload based on the data field. The problem I met is that the decode data is not shown, same as the down link url https://blog.squix.org/2017/07/thethingsnetwork-how-to-use-google-spreadsheet-to-log-data.html this one is another version originated form above.: https://github.com/Uspizig/Ttn-gooogle-script Nice one: https://github.com/avbentem/libelium-waspmote-lorawan  is a well documented project, there is a section of http to google sheet and run on latest V8 runtime of google app script. https://github.com/avbentem/libelium-waspmote-lorawan/blob/master/src/google-sheets/README.md the code will send email to sheet owner in case of any error. So make sure you adjust the field property correctly.  After modification of  row.push fields. part, it works pretty well. my little question is that since few days, my sensor node always resend 3-4 times as retry. I will look int...

LoraWan TTN device libraries, which one to use?

For the device side, if you search on arduino library manager, you will found a lot of libs with very similar names, arduino LMIC, LMIC arduino, lorawan LMIC...etc. if you look on git, there are plenty more...very confusing... I found this good discussion on TTN forum, it gives a clear view of available ones, and their stories, differences.(2020/10/14)   https://www.thethingsnetwork.org/forum/t/overview-of-lorawan-libraries-howto/24692 Currently there are 2 major parents of this kind of libraries: 1. LMiC from IBM   ‘LoRa MAC in C’   , which is a very old one. 2. Semtech LoRaMac-node  the complication:  1. LMIC has been ported to different frameworks. 2. on arduino, the lib mustly work with most MCU supported by arduino. But soem are adapted to specified MCU platform and sometimes different Mac chip. 3. Some of this lib is no longer supported, so you need to find the most updated. 4. Lora spec is upgrading, (slowly getting bigger). So not updated lib w...

LoraWan TTN deice part1: Heltec cube cell for AS2 frequency plan with OTAA

圖片
 Heltec has an arduino lib for their cube cell, which works, but the location of library is quite different from other lib. it will goes with board definition. And their also put some lora definition in the menu of arduino, such as region, mode,Class...etc  https://github.com/HelTecAutomation/ASR650x-Arduino/issues/81 I firstly install  https://github.com/HelTecAutomation/ASR650x-Arduino   with board manager, version 1.1, sensor, Lora, lorawan work fine, I can use it in my AS2 frequency plan.  on the day of writting this blog, heltec do note on the git that there is a AS2 frequency plan support. But it would be available form arduino board manager until their next release. But there is a  way to install it through git, which should work.  https://github.com/HelTecAutomation/ASR650x-Arduino/issues/145 To install via git in windows, they do provide good step by step tutorial.(I first uninstall cubecell from board manager)   https://github.com/HelTec...

How many LMIC for arduino are on the net??

I have been trying to work out the TTN in my region which is 923 AS2. spending some time to find out how to make a 1ch gateway, which take only 1ch and 1SF. Now it comes to the node side, most of examples use IBM LMIC and it's variation. IBM LMIC is based on ST MCU, so some porting to arduino IDE. They all have simillar name but with different modification.  and the function to call in arduino are the same, so be very careful to install.(I believe you better have only one on it.) 1. Matthijs Skooij https://github.com/matthijskooijman/arduino-lmic based on LMIC 1.5 providing raw example; used to send lora mac to other, for testing purpose. ttn-abp ttb-otaa No wiki page, but good explaination on readme.md 2. Thomas Telkamp https://github.com/tftelkamp He has 2 git on LMIC, 1. arduino-lmic-v1.5 noted deprecated, and refer reader to Matthijs one.US915/AU915 hybrid mode 2. LoRa-LMIC-1.51 folked from  Forked from  things4u/LoRa-LMIC-1.51  not sure what ...

TTN 1ch gateway, modif to 433Mhz

圖片
I have made a 1ch TTN gateway with the my heltec lora oled modules on hand. 1st, I found an working example with my boards from TTN forum: info are here:  http://ldsrc.blogspot.tw/2018/01/lorawan-working-example-from-network.html The major work of 1ch gateway is from here: but in the forum has better steps. http://things4u.github.io/ https://github.com/things4u/ESP-1ch-Gateway-v5.0 For gateway: 1. So, what I did to make it to 433Mhz, is to modify the frequency table in loraModem.h to like this: /* int freqs [] = {  868100000, // Channel 0, 868.1 MHz primary 868300000, // Channel 1, 868.3 MHz mandatory 868500000, // Channel 2, 868.5 MHz mandatory 867100000, // Channel 3, 867.1 MHz 867300000,  867500000,  867700000,  867900000,  868800000,  869525000 // Channel, for responses gateway (10%) // TTN defines an additional channel at 869.525Mhz using SF9 for class B. Not used }; ...

LoraWan working example from network search : Single Channel Gateway using Heltec WiFi LoRa 32 OLED and code for device

圖片
Found this post, but their device is for 868Mhz... The description below is much clear then the wiki of the code V5 https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-1/10247/128 by  CurlyWurly 1) Single Channel Gateway using Heltec WiFi LoRa 32 (with OLED display) Thanks  @Kersing Got the single channel gateway working on my Heltec WiFi LoRa 32 (with OLED display) https://www.aliexpress.com/item/868MHz-915MHz-SX1276-ESP32-LoRa-0-96-Inch-OLED-Display-Bluetooth-WIFI-Lora-Kit-32-Module/32835492243.html?ws_ab_test=searchweb0_0,searchweb201602_1_10152_10065_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_10340_10341_10548_10192_10541_10190_10084_10083_10307_10301_10303_10539_10312_10059_10313_10314_10184_10534_100031_10604_10603_10103_10605_10594_10596_10142_10107,searchweb201603_25,ppcSwitch_5&algo_expid=2ba45802-8bfd-4728-b9ca-e592aea6c379-19&algo_pvid=2ba45802-8bfd-4728-b9ca-e592aea6c379&rmStoreLevelAB=5 Very nice Just...