surely there's people who've built something using this before right, there has to be some documentation, now that youve identified the chip ill try to look for something myself too, I'll update this forum when I have something. Thanks!
any code implemented for commercial organizations (say making smart meters) would probably be proprietary and not generally available
one would expect documentation detailing the programming interface with perhaps sample code (typically in C++, Python, etc)
try emailing sales@hoperf.com
I ran this and it output nothing, I rechecked to make sure that the pin connections were right and they were so I'm not really sure whats going on
I'll try this
Since the quoted sketch starts with;
void setup()
{
Serial.begin(115200);
Serial.println(F("85_SX127X_LoRa_Device_Check Starting"));
You should at least the startup message, so if you see 'nothing' then you have a fairly basic issue with the Arduino ...........
Ok no sorry thats my fault, I made a mistake this is what it outputs
15:42:51.445 -> ets Jul 29 2019 12:21:46
15:42:51.445 ->
15:42:51.445 -> rst:0x8 (TG1WDT_SYS_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
15:42:51.491 -> configsip: 0, SPIWP:0xee
15:42:51.491 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:42:51.491 -> mode:DIO, clock div:1
15:42:51.491 -> load:0x3fff0030,len:1344
15:42:51.491 -> load:0x40078000,len:13964
15:42:51.491 -> load:0x40080400,len:3600
15:42:51.491 -> entry 0x400805f0
15:42:51.631 -> 85_SX127X_LoRa_Device_Check Starting
It outputs this over and over again
So your board is reseting when you start SPI, sounds like a wiring\pin problem .........
I dont have any modules connected to it so I'm guessing its a pin setup problem right? I looked at the documentation and setup the pins in the following way:
#define NSS 13 //LoRa device select
#define NRESET 15 //can be left not connected for this test program
#define SCK 7 //for ESP32
#define MISO 11 //for ESP32
#define MOSI 12 //for ESP32
Here's an image of the pin description in the docs, have I gone wrong somewhere?
When a reference is made to 'pin' numbers, its intended that the GPIO pin number is used.
Your particular board might have the MISO pin as physical pin with a label 11 but you need to know the GPIO number .........
On a ESP32 NodeMCU type microcontroller the normal SPI pins are GPIOs;
#define SCK 14
#define MISO 12
#define MOSI 13
Ahhh okay I see, my bad ill fix that and try again
did you get any information from HopeRF?
the documentation on the e thingZkit Mini appears to be very sparse - there is usually at least documentation mapping module pins to GPIO
looking on the Hoperf LoRaWAN webpage
the RFM6505 is not even listed
there is a link to the RFM6501 which may help
any particular reason why the thingZkit Mini was selected?
No, I'm still waiting on a response
I dont know, when I was assigned to the project I was given a task and 2 boards that could help me accomplish it. One was the thingZkit mini and the other one was an Arduino Uno with a Dragino LA66 lorawan shield. Since I couldnt initially figure out the thingZkit mini I decided to try the Uno. I got really far with it but I faced many issues that made it impossible to complete the task.
The task was to send GPS data from NMEA sentences to TTN using the neo6m GPS sensor. When I tried using an AT Software Serial, I couldnt accomplish this because the GPS sensor was already eating up a Serial Port, and LMIC literally would not work because the Uno didnt have enough memory.
try the shield on a Mega ? it has more flash (256kB vers 32kB) and SRAM (8kB vers 2kB)
I cannot check if it will work - my Dragino lorawan shield 1.4 is no longer working - serial monitor displays
Starting
CFG_eu868
Packet queued
314298: EV_JOINING
435753: EV_TXSTART
829436: EV_JOIN_TXCOMPLETE: no JoinAccept
and LoRaWAN gateway shows no data
however, TTGO LoRa32 SX1276 OLED and Feather 32u4 LoRa work OK using same DevEUI, etc
Sorry I'm not sure what a mega is
Is there a board that you would recommend for this that can also be programmed in another language like python or rust. I haven't written a lot of C and I'm not confident writing production level code in that language. I know for a fact that you can use python on a Raspberry Pi but I don't know what module I would need to pick for it to work with my existing indoor dragino lorawan gateway and TTN. If I cant get this to work, I will have to recommend a board to my manager.
Arduino Mega similar to UNO but with more IO, Flash and SRAM - I thought if you had one handy you could try the LoRa shield on it
there is Micro Python but it requires a powerful microcontroller, e.g. ESP32, RPi RP2040, STM32, etc
not used it myself so no idea if it would be suitable for your project
if you have a Raspberry Pi 4 etc and want to use Python and LoRaWAN have a look at a RPi LoRa HAT
what is your project ? if you are working on a commercial production project you would probably end up building a custom PCB or at minimum using an industrial quality microcontroller board
I dont have one handy but I can surely get my company to get one.
I'll look into these
I'll look into this too
All the details for the project haven't been revealed to me but I've been told to get data from a GPS sensor, a dht11 sensor and a few others to PowerBI, using LoRaWAN to route it to TTN and then to PowerBI. The stuff after getting the data to TTN has been figured out but I'm still struggling with GPS data.
sound like require a powerful microcontroller such as a ESP32 to support LoRaWAN and with spare hardware ports for the GPS
have a look at the TTGO-BEAM an ESP32 tracker board with both a LoRa radio and onboard GPS
there is sample code
Be aware that LoRaWAN\TTN is not well suited to general GPS or tracker type applications, due to the fair useage policy restrictions.
As a general guide you would want to limit the transmission of GPS data to LoRaWAN\TTN at no more than once per hour.
Thank you so much I will definitely look at this!
There might be other things I might be missing too, because I didnt know about this at all. Are you refering to TTN's fair usage policy? If not where can I read about these restrictions?