Closed gabbas1 closed 2 years ago
Hi @gabbas1 and @Mani-Sadhasivam,
I'm facing something similar. I can do the join in the network, but I dont receive the message back from the network server
I'm also using the nrf52840 and SX1276 with the zephyr 5.0. and my location uses the settings from australia 915MHz. Below is my prj.conf file
CONFIG_CPLUSPLUS=y CONFIG_REBOOT=y CONFIG_NEWLIB_LIBC=y
CONFIG_LOG=y CONFIG_USE_SEGGER_RTT=y CONFIG_RTT_CONSOLE=y CONFIG_UART_CONSOLE=n CONFIG_PRINTK=y
CONFIG_SPI=y CONFIG_SPI_NRFX=y CONFIG_SPI_1=y CONFIG_GPIO=y CONFIG_LORA=y CONFIG_LORA_SX12XX=y CONFIG_LORAWAN=y CONFIG_LORAMAC_REGION_AU915=y CONFIG_SHELL=y CONFIG_LORA_SHELL=y
Does someone has some tip?
Thanks
Hi @GABS9718,
can you show me your configuration for the lora-transceiver on spi in the "nrf52840dk-nrf52840.dts"-file. Mine is in "../zephyr/boards/arm/nrf52840dongle_nrf52840/" and it looks like this:
&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
sck-pin = <30>;
mosi-pin = <31>;
miso-pin = <29>;
cs-gpios = <&gpio0 28 GPIO_ACTIVE_LOW >;
lora: sx1276@0 {
compatible = "semtech,sx1276";
reg = <0>;
label = "sx1276";
reset-gpios = <&gpio0 4 GPIO_ACTIVE_LOW >;
dio-gpios = <&gpio0 3 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&gpio1 1 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH) >,
<&gpio1 11 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH) >,
<&gpio1 13 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH) >,
<&gpio1 5 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH) >,
<&gpio1 3 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH) >;
rfi-enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH >;
rfo-enable-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH >;
pa-boost-enable-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH >;
tcxo-power-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH >;
tcxo-power-startup-delay-ms = <5>;
spi-max-frequency = <1000000>;
};
};
Have you wired all of the DIO Pins from the SX1276 to the DK?
Thanks
Hi everyone,
i managed to make it work. On the Server-side (Chirpstack in my case) I had to change the Device-Profile of the node from LoRaWAN version 1.1.0 (latest) to 1.0.3. Now the joining process via OTAA works for me and data can be send/received.
@Mani-Sadhasivam can you say something about the implemented LoRaWAN version in Zepyhr?
LoRaWAN 1.1.x is not supported yet. I think we will wait for stable upstream support.
Hi, i am getting the same issue!
Did you find it ?
I am having the same problem. I am using nRF5340DK. On Helium Console appears Join Request and after Join Accepted. But the return of lorawan_join(&join_cfg) is -116 and sometimes -111. Should be 0.
Join Request: short-taupe-mole | -107 | -12.50 | 868.30 | SF12BW125 | May 1, 2023 9:07:36.895 PM
Join Accepted: short-taupe-mole | 16 | 0.00 | 868.30 | SF12BW125 | May 1, 2023 9:07:38.897 PM
This is my console:
[00:43:19.412,933] <27>[0m
It's being a little difficult because I am far from the gateway and sometimes it works and join, sometimes can't join.
this is my prj.conf
&spi4 { cs-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; lora0: sx1276@0 { compatible = "semtech,sx1276"; reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; dio-gpios = <&gpio1 11 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, //DIO-0 <&gpio1 12 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; //DIO-1 //<&gpio1 7 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; //DIO-2 power-amplifier-output = "pa-boost"; reg = <0>; spi-max-frequency = <1000000>; label = "sx1276"; };
};
Does anyone have done any progress?
are you looking for this ? https://lom204-cli-wisol.blogspot.com/2022/11/beta-fatal-error-o-objetivo-deste-blog.html
I took a look on this example you send me and it worked with nRF5340dk and Zephyr.
Here is the full code: https://github.com/flavioafferreira/lorawan
Thanks,
Flavio.
I am glad that I help you! Are from Brazil ?
I am brazilian but I live in Italy, how about you?
I am Brazilian too! Live in Blumenau S.C
Que legal, moro em Veneza, bom ter alguém para conversar. Aqui estou conectando esse kit de desenvolvimento em algum gateway da rede Helium. Funcionou agora mas creio que exista uma problema secundário de reset. Pois so' inicia a transmissão quando desconecto a energia do módulo SX1276.
tcpipchip @.***> escreveu no dia terça, 2/05/2023 à(s) 12:02:
I am Brazilian too! Live in Blumenau S.C
— Reply to this email directly, view it on GitHub https://github.com/zephyrproject-rtos/zephyr/issues/36553#issuecomment-1531205772, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK24B4MYPVMLCY6MHDGQJ5TXEDLVDANCNFSM47JZ4GEA . You are receiving this because you commented.Message ID: @.***>
▒[00:00:00.556,732]
Sleeping for 10s to try again to join network.
[00:00:15.205,169]
from Helium's Console: { "category": "uplink", "description": "Confirmed data up received", "device_id": "8d30b4b8-1bb1-4a10-932f-7a135da79243", "device_name": "Teste1", "id": "f2b3b7bb-5750-40ca-833d-440d4d03e884", "inserted_at": "2023-05-02T10:22:31", "organization_id": "371c630a-e4ac-4f65-a73c-3ed856d67b27", "reported_at": "1683022951844", "reported_at_naive": "2023-05-02T10:22:31", "router_uuid": "d5cc31a2-de6a-4fa6-8448-8e2b87fb488c", "sub_category": "uplink_confirmed", "updated_at": "2023-05-02T10:22:31", "fcnt_up": 3, "raw_packet": "gDYAAEiAAwAC+APziXATAYMWCouDdlk=", "payload": "aGVsbG93b3JsZA==", "payload_size": 10, "port": 2 }
Is the sx1276 connected to the correct gpio ?
Yes, it is. The data is being transmitted to Helium perfectly, but sometimes join's command return -116(fail). When I turn off and turn on the module, works once. There is other thing, the gateway is 3km from here. Maybe could be the signal be weak.
tcpipchip @.***> escreveu no dia terça, 2/05/2023 à(s) 13:16:
Is the sx1276 connected to the correct gpio ?
— Reply to this email directly, view it on GitHub https://github.com/zephyrproject-rtos/zephyr/issues/36553#issuecomment-1531292126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK24B4NOLLTOZWXS4WJ4DWDXEDUHXANCNFSM47JZ4GEA . You are receiving this because you commented.Message ID: @.***>
I discovered why sometimes it work and stop. It's not a module problem or antenna. It's because the duty cycle.
[00:23:18.820,251]
This specific duty cycle requirement of <1 % translates to a maximum of 36 seconds of TX on-time within one hour and a maximum length of 3.6 seconds for any single transmission.
There is an article, they describe how it works. https://www.sensorsportal.com/HTML/DIGEST/december_2013/PDF_vol_161/P_1743.pdf
If you go beyond 1% the system will give you this message:
I adjusted the delay between lorawan_send() and now it's perfect.
yes! I dont have problems because i installed the CHIRPSTACK
Hey Guys, @Mani-Sadhasivam
I am using the lorawan example (OTAA) and successfully can send a
join request
from the transceiver (Semtech SX1276 controlled by a nRF52840-dk). My LoRaWAN-GW receives the request and responds with ajoin accept
(See pictures).Somehow my transceiver doesn't seam to receive (or accept?!) the
join accept
:Also my (Chirpstack)-LoRaWAN-GW says that it received a packet (the request) and emitted another one (i guess the join accept):
Does anyone has an idea what could be wrong anyways?
PS: I have some other different LoRaWAN-Nodes (Raspi LoRa Node, RIOT LoRaWAN) up and running with the same setup and there are just working fine, so I dont think the gateway or Network-/Application-Server-Part is causing the problem.
Setup:
LoRaWAN Node
LoRaWAN GW
LoRaWAN Application/Network-Sevrer
With best regards, Sebastian