I will have a look at this (and how I fixed
it) later
OK more from my problem with compilation LMIC. Here is one of tuttorials I was tryingto use https://www.instructables.com/id/Use-Lora-Shield-and-RPi-to-Build-a-LoRaWAN-Gateway/ . I’ve installed this library as recomended https://github.com/matthijskooijman/arduino-lmic. I was using sample scatch nto pload, just try to complile - https://github.com/dragino/Lora/tree/master/Lora%20Shield/Examples/lora_shield_ttn . and dhis is result>
C:\Users\Graphic\AppData\Local\Temp\ccsp3ZV4.ltrans0.ltrans.o: In function decodeBeacon': <artificial>:(.text+0x13ca): undefined reference to
table_get_ostime’
C:\Users\Graphic\AppData\Local\Temp\ccsp3ZV4.ltrans0.ltrans.o: In function decodeFrame': <artificial>:(.text+0x1cb0): undefined reference to
table_get_ostime’
:(.text+0x1ccc): undefined reference to table_get_ostime' C:\Users\Graphic\AppData\Local\Temp\ccsp3ZV4.ltrans0.ltrans.o: In function
rxschedInit.constprop.8’:
:(.text+0x1e80): undefined reference to table_get_u4' C:\Users\Graphic\AppData\Local\Temp\ccsp3ZV4.ltrans0.ltrans.o: In function
hal_enableIRQs’:
:(.text+0x206c): undefined reference to table_get_u2' C:\Users\Graphic\AppData\Local\Temp\ccsp3ZV4.ltrans0.ltrans.o: In function
LMIC_startJoining’:
:(.text+0x236a): undefined reference to `table_get_ostime’
collect2.exe: error: ld returned 1 exit status
Byly nalezené násobné knihovny “lmic.h”
Použitý: C:\Users\Graphic\Documents\Arduino\libraries\arduino-lmic-master
Nepoužitý: C:\Users\Graphic\Documents\Arduino\libraries\MCCI_LoRaWAN_LMIC_library
Byly nalezené násobné knihovny “SPI.h”
Použitý: C:\Users\Graphic\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.1\libraries\SPI
Byly nalezené násobné knihovny “SimpleTimer.h”
Použitý: C:\Users\Graphic\Documents\Arduino\libraries\SimpleTimer
Nepoužitý: C:\Users\Graphic\Documents\Arduino\libraries\SimpleTimer-master
exit status 1
Nastala chyba při kompilaci u desky Arduino/Genuino Mega or Mega 2560.
I guess problem is `table_get_ostime’, but !!! This samle was made directly for this type of board, so how someone can use system command which doesn’t work?
I tried Platform IO so it allowed me uplod but catch nothing… so nigths will be long
Thanks for your answer, can you give me a reference of gateway that can be work with TTN please
Hi,
I have Dragino LoRa/GPS Shield v1.3 and a Raspberry Pi based gateway. I have uploaded the OTAA example that comes with the arduino-lmic-master library. The pin mapping is the following:
// Pin mapping
const lmic_pinmap lmic_pins = {
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = 9,
.dio = {2, 6, 7},
};
The jumper configuration is as given in the wiki:
Once reset, the device sends the JOIN REQUEST. The gateways responds with JOIN_REPLY. However, the device does not seem to process that reply. In the console, the only events I see are EV_JOINING. This happens still after some time, when the JOIN REQUESTs are sent with higher SF.
Has anyone had the same problem? Any suggestions?
I’ve just solved the problem. It had to do with the clock error, which must be compensated by enlarging the reception window. In the setup function, I have added the following line:
LMIC_setClockError(MAX_CLOCK_ERROR * 1 / 100);
I am currently trying to set up an end node with the raspberry pi dragino hat as explained in this link https://wiki.dragino.com/index.php?title=Use_Lora/GPS_HAT_%2B_RaspberryPi_to_set_up_a_Lora_Node . Although I am initially trying to connect to a gateway on TTN my aim is to connect to a commercial IoT test bed in my country for research purposes.
My question is does anyone know how to get the device’s devEUI for these raspberry pi Lora/GPS hats? I know that on TTN you can generate one when registering a device but I’m trying to find a way of getting the devices’ unique EUI.
Also has anyone had any experience with implementing OTAA on these devices? From my understanding the example in the github repo uses devKeys and appKey meaning that it’s implementing ABP. I actually couldn’t find any example that uses OTAA at all. The example used in documentation is here: https://github.com/ernstdevreede/lmic_pi/blob/master/examples/thethingsnetwork-send-v1/thethingsnetwork-send-v1.cpp .
Besides this is there any other libraries that people have found useful with this specific module? Any help or insights are much appreciated.
Generally not a lot of people are using an RPi to create a node. The RPi is far to power hungry for most node purposes. As such documentation will be limited.
The Lora hat you are using does not have its own devEUI. You can use a EUI based on one of the mac addresses of your RPi.
Hello! I am having trouble with the lmic library and the dragino shield v 1.4. The problem is regarding to the SPI connection and has been already discussed here: https://github.com/matthijskooijman/arduino-lmic/issues/40. But only for version 1.1 - 1.3.
So compiling and uploading the example sketch (https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-abp/ttn-abp.ino), I get the following error:
Starting
FAILURE
/home/loratest/Arduino/libraries/arduino-lmic-master/src/lmic/radio.c:659
I changed of course the keys and that stuff but the problem is within the radio.c file. The author also mentioned a debug output as follow:
#ifdef CFG_sx1276_radio
Serial.print("Expected 0x12 from SX1276, read=0x");
Serial.println(v,HEX);
ASSERT(v == 0x12 );
#elif CFG_sx1272_radio
Serial.print("Expected 0x22 from SX1272, read=0x");
Serial.println(v,HEX);
ASSERT(v == 0x22);
#else
#error Missing CFG_sx1272_radio/CFG_sx1276_radio
#endif
I get the error as expected: “Expected 0x22 from SX1272, read=0x00”. Later on the following pinout is mentioned for dragino shield v1.2+ (https://github.com/dragino/Lora/blob/master/Lora%20Shield/hardware/v1.3/Lora%20Shield%20v1.3.sch.pdf).
// Pin mapping Dragino Shield V1.2 and V1.3
const lmic_pinmap lmic_pins = {
.nss = 10,
.rxtx = LMIC_UNUSED_PIN,
.rst = LMIC_UNUSED_PIN,
.dio = {2, 6, 7}
};
But this layout is not working for 1.4. Can someone help me to figure out a working pinlayout for the dragino shield v 1.4 with the lmic library?
I would be very thankful
In my case, I bought the EBAY E19E19-915M30S model which is SPI as the end node and dragino OLG02 as the gateway. My question is if it is possible to have a good result?
Sorry, but this is a big NO and NO.
The Ebyte module, figuring out from Google results as I can’t find a direct match, is one of their module to module only items - they do not do LoRaWAN.
You’ll see on the product page http://www.ebyte.com/en/product-view-news.aspx?id=223 that it does indeed use LoRa and it uses the same chips that LoRaWAN modules use, but it does not have any facilities built in for LoRaWAN
The Dragino OLG02 is a dual channel system which does not support the full 8 channels that LoRaWAN devices will expect, so when they transmit there is a good chance they won’t be heard. It also disrupts the other TTN devices that are in radio range of this system and they will loose data too.
You can see this highlighted on the Dragino web page https://www.dragino.com/products/lora/item/136-olg02.html
Also note that since these devices are in effect an SX1276 with a non-linear power amplifier added this means there is limited control of output power. Thus you may not be able to reduce the power to legal limits.
thanks for your reply,
Now the new question is if it would be possible to have results with another protocol different from loraWAN, since both are SPI?
How the LoRa devices communicate with each other in the radio sense has little to do with how the microcontrollers talk to the LoRa devices.
How is the question related to TTN\LoRaWan ?
Yes, you can use LoRa to LoRa - write you own protocol
Completely irrelevant
But as mentioned above, we only do LoRaWAN on this forum …
Hello,
I’m new to Dragino water leak sensor. Is there a way for me to read the leak detector transmission with a regular Lilygo Lora ESP32 board? I just need to read the information without a Lorawan.
Thank you
Technically this might be possible by using the same frequency, SF…
But this forum is dealing with LoRaWAN and TTS, if you don’t want to connect your sensor to TTS your question is offtopic for this forum.
See the answer in the other thread, which appears to be asking the same question.