RAK811-N can't join GW
i'm totally beginner with LORA stuff, so please sorry for my ignorance !
i'm playing with my new RAK811-N module. i update the version to 188.8.131.52
i have a simple gateway type LoraGO port, which i think but not sure, right connected to TTN. i can see some data in the TTN application data page.
i send to the RAK811-N the followings configuration :
then i'm wainting for "at+rcv=2,0,0" before trying any data
i never receive it !! instead, sometime i receive "at+rcv=6,0,0"
i see that on TTN page :
so i suppose that i'm right connected, because app_eui and dev_eui are right ..?
please what i'm missing to ?
what need i do now to send data to TTN ?
thanks for any help, regards
Yes, looks like you joined the network. What happens if you now issue a "at+send=1,1,010101"? You should see the 010101 payload on the device data page and get a confirmation on the serial monitor.
Hello Edi, thanks for your reply .. i'm totally disapointed !
well i read in this forum that i do not try to send anything until i receive
"at+rcv=3,0,0" (and same in the document "How To Connect LoRa
RAK811-N To The Things Network V1.0.pdf"
anyway, after the OTAA configuration i add 20 seconds delay before try to send with "at+send=1,1,010101".
during this 20 seconds, i see in the TTN console (what i suppose is the right connection) :
then in the application tab :
but on my serial monitor, i see "ERROR-6"
1/ did i miss something in the node configuration ?
2/ you say "like you joined the network" ==> so the problem is not in my gateway ?? or it may ?
in the main loop, i try to send every 20seconds. sometime i receive "at+recv=6,0,0" and after that, the error message become ERROR-5
thanks for your support, the RAK team seem not responsive !
OK, you are not joined. The messages you see on the GW log are all join messages (with the arrow icon). ERROR-5 means you are not joined. ERROR-6 means that the MAC is busy. Do you get the -6 just after join?
I'll look deeper into it in 3 hours, now I have some firefighter training. Can you expand a pair of join request/response from the gateway monitor and post a screenshot?
time to time, the arrow is green in the gateway log :
ERROR-6 is every time i try to send :
then after several try, ERROR-5
some for me, time to lunch ! will be back later
thanks again to take some time to help me
Hm, strange. Can you also expand the message just before the join accepted (the Join Request). I once could not join because the node was too close to the gateway.
To be honest, with a fresh RAK811, I usually only do a at+get_config=dev_eui to set the dev_eui in ttn, then I do a at+set_config=app_key, an at+set_config=app_eui (but I think this is not necessary, as the app_eui is not needed for otaa) and an at+join=otaa... It sometimes takes up to 5 seconds until the join accepted arrives.
I just checked the config from scratch (I did a at+reload to reset the RAK811):
Oh, I just saw it now: your frequency is rather strange... channel 0 would be 868.100 MHz. Usualy, I see joins on Channel 1 (868.300 MHz), but that should be no problem. What gateway do you operate? Is it a singele channel or a multi channel?
here it is, same configuration as before.
yes it take 3/5 secondes before i see that on TTN page :
what i suspect is a problem with my gateway !
it is a simple LoraGO port : https://sandboxelectronics.com/?product=lorago-dock-single-channel-lorawan-gateway
and i'm sort sure if it fully compatible !? can't find usefull information
do you have an idea about this gateway ?
i will do a test with at+reload ..
Yes, it seams your GW and Node are apart far enough. Maybe try to set your gateway to channel 1 (868.300MHz) and only use the commands I used to configure the RAK811? Sorry, I got no experience with single channel GWs
Ah, and it might be a good idea to set the channel mask if you only got a single channel GW:
at+set_config=mask:0,0001 for channel 0 or
at+set_config=mask:0,0002 for channel 1
But as I said, I got no experience with singel channel GWs... maybe I should order one, just for education
at+reload : nothing better
what is the command to set "channel1, 868.300MHz" ?
i try the mask at+set_config=mask:0,0002
but i receive ERROR-1
.. but in fact... wich channel is available on this GW !?...
need to have a look in the arduino code !
i ordered this single channel GW just for my proof of concept prototype. i wish to rder a better one, but later !
which one do you suggest ? one with a RPI3 + ??... but there a lot off possibility and i'm not sure which one to choose
I love! the RAK831, they got a very good performance. But the set Antenna is not too good. If you got some experience, I reccomend to build a groundplane or coco antenna. Else look for a good 868MHz antenna you can get. I got one fibre glass 868MHz from RAK, but I measured it to have a center frequency of 913MHz...
If you want, I can join with your settings to see if on TTN side, everything is ok.
is that possible to create a second temporary user in TTN account ?
there is not too much configuration in TTN account, so i suppose that all right.
i have more doubt about the LoraGO GW configuration !
what is the command to set "channel0, 868.100MHz" ?
i try the mask at+set_config=mask:0,0001
but i receive ERROR-1 ==> so what it the right mask to set up channel 0 please ?
868.100 is the specified frequency in the arduino firmware, i set up before compiling and flash my GW.
Sorry, it's at+set_config=ch_mask:0,0001
i see the "join accept" :
but even the ERROR-6 just after the at+send command (ther is 20 seconds between the join and the send command, which is enough to see the join accept in the TTN page) !
do you use a RAK811 or a RAK811-N (as me) ?
I use the RAK811, so I don't need an additional microcontroller
Do you have any other gateway in your region where you can go to and try to join your 811? Once joined, it stays joined.
no nearest GW is about 30km !
well i plan to use RAK811 too withtout second CPU.. can you point me to a good tutorial to set up the right tool chain please ?
well i will have a look to the arduino GW firmware .. but not so confident
some users report that the RAK811-N fw is bugged .. some others say it's working ..
if you have any idea please don't hesitate !