發表文章

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

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 will not have the latest feature. F

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/HelTecAutomation/ASR650x-Arduino/blob/master/