Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuota-test-01 McGroupSetupReq Not happening (Need Help).. #827

Closed
sathishkumarparthiban opened this issue Nov 20, 2019 · 12 comments
Closed

Comments

@sathishkumarparthiban
Copy link

Hi ,
I'm trying to get the fuota-test-01 example to work. Steps i followed.

  1. Created a device on the loraserver (OTAA).
  2. Waited for the device to Join via OTAA.
  3. After joining created a firmware update job using "create frimware update job" button .

After this i dont see "McGroupSetupReq & Ans" happening. after sometime i get a error message saying "The device failed to provision the remote multicast setup". (attached image)

Project : fuota-test-01
Board : B-L072Z-LRWAN1
Gateway : n-fuse 868Mhz (IN865-867 region).
Server: loraserver

I
image

@EduardoPfeifer
Copy link

Following...

@mluis1
Copy link
Contributor

mluis1 commented Nov 27, 2019

Last week I tried for the first time the recent implementation of the FUOTA packages by ChirpStack.
I wasn't able either to completely run the test up until completion.

In my case the Multicast session was setup correctly but, then the Fragmentation session setup failed.

  1. The end-device answered that there was not enough memory available on FragSessionSetupAns.
  2. I increased the acceptable memory size by changing FRAG_MAX_NB and FRAG_MAX_SIZE.
  3. Re-compiled the code and tried again and this time the end-device reported success on FragSessionSetupAns
  4. The end-device switched to Class C but, didn't receive the downlinks.
  5. I tried to analyze if the parameters provided by the server were correct and I noticed some strange values were provided by FragSessionSetupReq.
    Unfortunately, I didn't had the time to investigate further as I had to move to another project.
    Once my current tasks are finished I will try to understand and debug what is going on.

Please, remark that for the embedded side I'm confident that there is no issue (but, we never know) as this firmware has been used by different network stack providers while performing interoperability tests. All the network stack providers being part of those tests reported that everything was OK for the tested scenario.

On the other side the FUOTA support on ChirpStack is pretty recent and I currently don't know what is the development status of this feature on the server.

Please note, that the first tests done on the packages provided by this repository were done using a previous version of ChirpStack and by following the instructions provided by this mbed project. I had to change the loraserver.js file in order to make it work.
Please refer, to issue #640 for changes done on loraserver.js.

@sathishkumarparthiban
Copy link
Author

Hi mluis,

Thanks for the reply and i had used your modification on the loraserver.js file to run it.
I found that the msgs for "202" are not been posted to mqtt topics. so the loraserver.js script couldnt start the mcgroupreq..
I have posted here with my finding but apparently the post wasnt relative there and i need to close .
ARMmbed/mbed-os-example-lorawan-fuota#10

Can you show me your output of the loraserver.js on a successful run??

@mluis1
Copy link
Contributor

mluis1 commented Nov 27, 2019

Please refer to the readme.md file under fuota-test-01 directory on this project.

The readme.md file provides the full log of a successful session using the loraserver.js file.

@KaDw
Copy link
Contributor

KaDw commented Nov 30, 2019

@mluis1

The end-device switched to Class C but, didn't receive the downlinks.

I had similar issues . Make sure that gateway_ID in packet forwarder and ChirpStack Application Server (in Gateway configuration tab) are the same.

@sathishkumarparthiban
You will always get message on the ChirpStack side that update failed because FRAGMENTATION_FRAG_STATUS_REQ is not actually send. You can see that isAnswerDelayed is set to true and then, in line 429 there should be a code that is supposed to send this response with random delay.

@darkfader
Copy link

I was trying FUOTA as well and got:

[76831.401] ###### ===== Switch to Class C done.  ===== ######

then some class C downlink frame...
and then

[76839.864] ###### =========== FRAG_DECODER ============ ######
[76839.864] ######               FINISHED                ######
[76839.865] ###### ===================================== ######
[76839.865] STATUS      : -2
[76839.865] CRC         : 00000000

It will receive several more downlink frames, but doesn't handle them because the state it FRAG_SESSION_NOT_STARTED.

It also doesn't switch back to class A (and set IsMcSessionStarted to false).

@sathishkumarparthiban
Copy link
Author

sathishkumarparthiban commented Dec 6, 2019

@KaDw
On the gateway when i execute loraserver.js it listens for all the topics and filters for the msgs

i get the Clocksync on the topic "join"
Something like "application/1/device/badcfe0000000051/join"
So i edited the loraserver.js to also listen for this msg.

// only interested in rx for now...
   if (!((/\/rx$/.test(topic))||(/\/join$/.test(topic)))) return;

After this i can see the msg flow , but i dont get the fPort parameters in the msg.

msg {"applicationID":"1","applicationName":"STM_BOARD","deviceName":"STM_BOARD_DEV","devEUI":"badcfe0000000051","devAddr":"01eaeffd","rxInfo":[{"gatewayID":"333833304bffffffff","uplinkID":"6ab0042a-9a51-4a9a-8001-3ff8e72cf815","name":"MY_CHN_GW_001","rssi":-103,"loRaSNR":8,"location":{"latitude":0,"longitude":0,"altitude":0}}],"txInfo":{"frequency":865402500,"dr":0}}
topic application/1/device/badcfe0000000051/join
Rx application/1/device/badcfe0000000051/join {
  applicationID: '1',
  applicationName: 'STM_BOARD',
  deviceName: 'STM_BOARD_DEV',
  devEUI: 'badcfe0000000051',
  devAddr: '01eaeffd',
  rxInfo: [
    {
      gatewayID: '333833304bffffffff',
      uplinkID: '6ab0042a-9a51-4a9a-8001-3ff8e72cf815',
      name: 'MY_CHN_GW_001',
      rssi: -103,
      loRaSNR: 8,
      location: [Object]
    }
  ],
  txInfo: { frequency: 865402500, dr: 0 }
}
device found
port is
undefined

msg {"applicationID":"1","applicationName":"STM_BOARD","deviceName":"STM_BOARD_DEV","devEUI":"badcfe0000000051","rxInfo":[{"gatewayID":"333833304bffffffff","uplinkID":"6ad49160-5a09-48d7-8c84-a56674db193f","name":"MY_CHN_GW_001","rssi":-113,"loRaSNR":5.8,"location":{"latitude":0,"longitude":0,"altitude":0}}],"txInfo":{"frequency":865402500,"dr":0},"adr":true,"fCnt":28,"fPort":1,"data":"FQ=="}
topic application/1/device/badcfe0000000051/rx
Rx application/1/device/badcfe0000000051/rx {
  applicationID: '1',
  applicationName: 'STM_BOARD',
  deviceName: 'STM_BOARD_DEV',
  devEUI: 'badcfe0000000051',
  rxInfo: [
    {
      gatewayID: '333833304bffffffff',
      uplinkID: '6ad49160-5a09-48d7-8c84-a56674db193f',
      name: 'MY_CHN_GW_001',
      rssi: -113,
      loRaSNR: 5.8,
      location: [Object]
    }
  ],
  txInfo: { frequency: 865402500, dr: 0 },
  adr: true,
  fCnt: 28,
  fPort: 1,
  data: 'FQ=='
}
device found
port is
1

@KaDw
Copy link
Contributor

KaDw commented Dec 6, 2019

@sathishkumarparthiban Sorry can't help you with loraserver.js script. Newest versions of loraserver (I think 3.0+) supports FUOTA from user interface, and this is what I'm using.

@sathishkumarparthiban
Copy link
Author

@KaDw thats fine.. How do you debug the msg flow on the gateway with user interface..

The problem i see is that my gateway isn't responding back for the device time sync. I'm able find this when i debugged the code from the script...
Is there a way for the user interface to have a verbose log or something similar to see where its getting stuck??

@KaDw
Copy link
Contributor

KaDw commented Dec 6, 2019

@mluis1
Copy link
Contributor

mluis1 commented Mar 23, 2020

Just to inform that I was able to successfully run the fuota-test-01 with ChirpStack.

The interoperability test specification provided by the LoRa-Alliance uses a 1KB file which is split in 21 fragments of 50 bytes with a redundancy of 5 fragments.
The fuota-test-01 example is setup with these settings.
The below link provides a zip containing the binary test file.
fuota-test-01-original-file.zip

The ChirpSatck server on the other hand takes the 1KB file and splits it into fragments of maximum payload size for the used datarate.
In case a DR5 (SF7BW125) is used to download the file it means that one must change FRAG_MAX_SIZE definition on FragDecoder.h file from 50 to 255

Run the test using ChirpStak:

  1. Modify FragDecoder.h
  2. Compile and flash the fuota-test-01 example.
  3. Power off the end-device
  4. On ChirpStack server "CREATE FIRMWARE UPDATE JOB"
    image
  5. Power on the end-device
  6. wait up until the process finishes.

Note I used the code provided on develop branch (commit b4b37db) and just changed the FragDecoder.h file.
The used platform was a NucleoL476 and an SX1261MBXBAS shield.

Below the end-device serial terminal output

Click to expand!

###### ===================================== ######

Application name   : fuota-test-01
Application version: 1.0.0
GitHub base version: 4.4.3

###### ===================================== ######

DevEui      : 09-50-32-59-24-50-6C-59
AppEui      : 00-00-00-00-00-00-00-00
AppKey      : 2B 7E 15 16 28 AE D2 A6 AB F7 15 88 09 CF 4F 3C


###### =========== MLME-Request ============ ######
######               MLME_JOIN               ######
###### ===================================== ######
STATUS      : OK

###### =========== MLME-Confirm ============ ######
STATUS      : OK
###### ===========   JOINED     ============ ######

OTAA

DevAddr     :  0052798E


DATA RATE   : DR_3


###### =========== MLME-Request ============ ######
######            MLME_DEVICE_TIME           ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        1   ===== ######

CLASS       : A

TX PORT     : 202
TX DATA     : UNCONFIRMED
01 34 A1 A3 4B 00

DATA RATE   : DR_3
U/L FREQ    : 868100000
TX POWER    : 0
CHANNEL MASK: 00FF


###### =========== MLME-Confirm ============ ######
STATUS      : OK

###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        0  ===== ######
RX WINDOW   : 1
RX PORT     : 202
RX DATA     :
01 21 00 00 00 00

DATA RATE   : DR_3
RX RSSI     : -61
RX SNR      : 12


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        2   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
07

DATA RATE   : DR_3
U/L FREQ    : 868100000
TX POWER    : 0
CHANNEL MASK: 00FF


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        1  ===== ######
RX WINDOW   : 1
RX PORT     : 200
RX DATA     :
02 00 C0 FC B4 13 C8 93 81 50 5E 7B 81 1E A2 2E
88 A5 8C 4D C0 92 00 00 00 00 FF FF FF FF

DATA RATE   : DR_3
RX RSSI     : -62
RX SNR      : 11


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK
ID          : 0
McAddr      : 13B4FCC0
McKey       : C8-93-81-50-5E-7B-81-1E-A2-2E-88-A5-8C-4D-C0-92
McFCountMin : 0
McFCountMax : 4294967295
SessionTime : 0
SessionTimeT: 0
Rx Freq     : 0
Rx DR       : DR_0

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        3   ===== ######

CLASS       : A

TX PORT     : 200
TX DATA     : UNCONFIRMED
02 00

DATA RATE   : DR_5
U/L FREQ    : 867300000
TX POWER    : 3
CHANNEL MASK: 00FF


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        2  ===== ######
RX WINDOW   : 1
RX PORT     : 0

DATA RATE   : DR_5
RX RSSI     : -62
RX SNR      : 14


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        4   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
93

DATA RATE   : DR_5
U/L FREQ    : 867300000
TX POWER    : 5
CHANNEL MASK: 00FF


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        3  ===== ######
RX WINDOW   : 1
RX PORT     : 0

DATA RATE   : DR_5
RX RSSI     : -59
RX SNR      : 14


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        5   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
19

DATA RATE   : DR_5
U/L FREQ    : 867700000
TX POWER    : 7
CHANNEL MASK: 00FF


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        4  ===== ######
RX WINDOW   : 1
RX PORT     : 201
RX DATA     :
02 01 05 00 EF 00 C8 00 00 00 00

DATA RATE   : DR_5
RX RSSI     : -61
RX SNR      : 16


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        6   ===== ######

CLASS       : A

TX PORT     : 201
TX DATA     : UNCONFIRMED
02 00

DATA RATE   : DR_5
U/L FREQ    : 867900000
TX POWER    : 7
CHANNEL MASK: 00FF


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        7   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
D6

DATA RATE   : DR_5
U/L FREQ    : 868500000
TX POWER    : 7
CHANNEL MASK: 00FF


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        8   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
78

DATA RATE   : DR_5
U/L FREQ    : 868300000
TX POWER    : 7
CHANNEL MASK: 00FF


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME        9   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
B7

DATA RATE   : DR_5
U/L FREQ    : 867500000
TX POWER    : 7
CHANNEL MASK: 00FF


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        5  ===== ######
RX WINDOW   : 1
RX PORT     : 200
RX DATA     :
04 00 B6 A2 A3 4B 06 D2 AD 84 05

DATA RATE   : DR_5
RX RSSI     : -60
RX SNR      : 14

Time2SessionStart: 104000 ms

###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK
ID          : 0
McAddr      : 13B4FCC0
McKey       : C8-93-81-50-5E-7B-81-1E-A2-2E-88-A5-8C-4D-C0-92
McFCountMin : 0
McFCountMax : 4294967295
SessionTime : 1584980022
SessionTimeT: 6
Rx Freq     : 869525000
Rx DR       : DR_5

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME       10   ===== ######

CLASS       : A

TX PORT     : 200
TX DATA     : UNCONFIRMED
04 00 68 00 00

DATA RATE   : DR_5
U/L FREQ    : 867700000
TX POWER    : 7
CHANNEL MASK: 00FF


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME       11   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
54

DATA RATE   : DR_5
U/L FREQ    : 868300000
TX POWER    : 7
CHANNEL MASK: 00FF


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME       12   ===== ######

CLASS       : A

TX PORT     : 1
TX DATA     : UNCONFIRMED
8E

DATA RATE   : DR_5
U/L FREQ    : 868100000
TX POWER    : 7
CHANNEL MASK: 00FF



###### ===== Switch to Class C done.  ===== ######


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        0  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 01 00 6A B8 00 4D 25 18 2F 58 65 89 6B AF 34
E0 07 AB 6A 8E 24 33 CC F7 50 B1 DF E4 16 0A 2B
E0 19 6B F4 88 B0 50 AF D5 05 BF FC BF 48 C9 1A
72 E8 4B 49 21 05 AD 36 44 7D 0E 92 25 96 B2 1A
6A B1 6A 0D 89 A9 83 F1 96 E6 23 24 CE 65 2A ED
59 BF B9 E1 9F BF 59 45 E4 6D F6 A9 9F 1D F2 73
93 68 3C E6 92 01 9D 53 86 E2 5B E8 9F 04 ED B0
FE 2C 23 EE B2 11 C1 C0 EB B5 20 05 07 07 3F DB
89 8D D7 20 47 95 F7 8F 05 CC 3B CE 63 DC BF 8E
23 0F 1F 0B 1B 3A B6 8F 03 12 F7 91 34 40 BE 32
94 F7 D8 3D 7E 9E D3 28 05 12 7C 9B 91 51 FC 94
61 8C BE AB 44 11 5E A1 36 C0 11 42 CD 31 A3 86
EC 43 11 BB C5 E7 EE 04 3C 9D F2 F2 8E E9 A4 63
7C 9A 8C EC EA 65 F6 2C 20 22 81 05 F2 D3 04 2D
55 21 CE 58 F0 94 E0 D7 E7 75 8B CC 49 7D 99 04
97 6F

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### =========== FRAG_DECODER ============ ######
######               PROGRESS                ######
###### ===================================== ######
RECEIVED    :     1 /     5 Fragments
                239 /  1195 Bytes
LOST        :             0 Fragments


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        1  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 02 00 CE 50 E4 93 2F C9 9C 0E 6B AD EA 00 F9
60 F8 9A D3 93 A0 49 96 BF DB C1 B2 DC 52 AB 73
61 69 66 51 9F 6E F8 AD 33 6D 58 CB E0 E6 A9 45
40 DA 87 CD 92 BB 84 C5 91 77 57 11 60 14 FB 2E
CF DF B0 91 29 77 58 39 97 50 EA E8 42 1C 31 7F
BA 35 3F D9 6A 9D 3C 1A 84 7A 27 9F 8B A7 25 C0
39 84 C8 06 53 DF D7 89 DD F2 D3 DA 19 A6 B3 9C
CC 09 C4 BB 42 42 A1 58 CB 72 C8 FD 4D 24 E6 8A
F9 A2 FD 8B 86 23 5B 07 29 BE 08 5D DC B1 B0 30
71 94 FC 34 3F 43 BF 75 0F 82 36 CC 4C 07 97 D7
61 BF 82 8A F5 CD 08 B5 77 F2 38 44 15 6D 1C A2
CD B2 C3 57 D8 6D D2 A0 25 14 05 11 75 1D 07 C0
65 BE 73 73 7A 79 CD 67 E7 09 C5 20 9E 03 89 01
F3 E7 CB E9 25 28 30 9F E7 FC B5 BB E8 66 40 2C
1E CF 25 43 D1 4F FB 44 88 50 E8 5D 6F 83 EF 08
B7 E3

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 13


###### =========== FRAG_DECODER ============ ######
######               PROGRESS                ######
###### ===================================== ######
RECEIVED    :     2 /     5 Fragments
                478 /  1195 Bytes
LOST        :             0 Fragments


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        2  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 03 00 07 85 53 DB 8E B0 73 A0 4A 02 93 4F 84
EA 6D 3F 5F EE EF D7 EB 3A 16 3A 50 2D 9B 69 D0
2F B3 3D 92 59 0F 3A A9 7F 84 2D 92 FE D0 98 F9
E6 98 08 18 11 73 60 F9 2B F8 C4 D2 A1 AB 7A 03
5A 7D BA 78 75 23 03 C1 52 FB 38 56 86 C0 76 20
50 81 AC C4 21 06 84 CF 03 AB AF 73 E9 A4 01 7C
DB D4 A6 AC 94 46 8F AB 5A DA 32 BF 4A C5 6D CE
5A 36 C4 4F BB BE 38 37 33 24 60 07 1C AC CC 15
3B 35 EA B5 8D 4E D5 6F EB B4 7A 20 F9 29 34 6E
67 25 BA 30 A4 C0 36 99 BF A3 98 4B BB F1 6D C7
0E D5 31 65 4D 14 E7 5E 87 7E 22 35 13 82 43 5B
1C C9 1B FB 2D 92 0B C9 30 87 BD 26 8D 37 C2 B8
2D DC 05 DB 8F 67 C1 B7 FC 47 01 EE DB BA 84 B4
C7 60 C4 BF 9C 66 B2 01 C6 E5 3D 1F 38 4D E1 8B
49 23 4A 9D 53 75 71 D3 6D 58 AC 38 77 50 A0 E0
72 C8

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### =========== FRAG_DECODER ============ ######
######               PROGRESS                ######
###### ===================================== ######
RECEIVED    :     3 /     5 Fragments
                717 /  1195 Bytes
LOST        :             0 Fragments


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        3  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 04 00 75 A7 22 6E E8 9A C4 81 7F D7 11 92 F0
84 32 D8 40 B3 8A F2 9F D6 02 FC 14 52 F1 02 D2
DC 70 41 CD 7A 22 ED E4 7D DA 6B AE 65 81 30 F6
4B 1A 25 04 B7 90 CB 81 CA B1 C6 68 A5 2E 52 2C
68 3E 68 F9 52 FB A2 60 DB 9E 40 CA 6E 5B 54 B2
45 CE 4B 8B 7C DA E3 2F 95 E5 72 EB 47 9B AE 3A
04 6A EF 57 C7 2D 57 25 B7 B2 B0 41 B1 3A 6C 5F
5B 0F A1 B4 9C A5 2B 26 83 DF 2F 76 6D 7F 29 57
43 D7 CC 6D 9B 25 82 4C DB AB A2 20 78 FC F2 A4
27 A3 90 78 6D 99 D9 C0 94 EC 11 FD 0E 33 6C 1B
9F 0C 49 10 B3 AA 61 30 BE 57 CB 7C 86 07 A4 59
3A 6F 62 78 FA 5D C5 8D E3 5B 3F E8 0B F2 8E 60
FE 0F 84 08 92 2E A1 FA DF 73 B5 C6 7E 87 26 5E
24 B9 7A 72 E2 87 68 45 12 6B 07 4A 80 F6 1C AC
7F C6 25 15 66 CB 31 C4 4A 37 04 66 61 A8 12 27
04 1D

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### =========== FRAG_DECODER ============ ######
######               PROGRESS                ######
###### ===================================== ######
RECEIVED    :     4 /     5 Fragments
                956 /  1195 Bytes
LOST        :             0 Fragments


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        4  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 05 00 A6 67 52 8E FD D5 B2 EA 0A 12 79 59 EF
7D 8A E4 72 E0 41 46 54 8C 38 AB 24 18 DE 3C 62
92 86 13 DF F3 CF 48 87 57 8D 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### =========== FRAG_DECODER ============ ######
######               PROGRESS                ######
###### ===================================== ######
RECEIVED    :     5 /     5 Fragments
               1195 /  1195 Bytes
LOST        :             0 Fragments


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        5  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 06 00 6D 3D 53 96 AB A8 5C F8 2F 8B F8 E0 B0
0A 6A 94 35 60 CB E4 27 CD 46 8B 8F C9 8D 63 FB
CF AA 56 66 D1 BF 6A 06 AA 81 92 6E 41 98 51 E3
94 70 43 51 30 76 CD CF 6F 85 CA 40 84 3D C8 19
30 CC D0 75 FC 8A 80 30 C4 1D 1B 72 48 A5 5C CD
09 3E 15 25 BE B9 DD 8A E7 C6 59 DA 76 B9 F3 0F
48 BC 9A 4A 06 47 12 F8 DC 38 69 57 D5 C1 80 7E
A4 1A E7 A1 09 AF F9 F7 D8 91 40 02 1B AB F3 CE
B2 B8 3D 95 CA DB 22 E0 EE 78 41 EE 9A F5 8B E0
44 2A A5 3B BF FA 80 16 BC B1 6F DA 8F B1 D3 F5
9A 22 E9 58 33 8A 34 76 82 6C 5E AE 82 D3 BF CF
7D 45 A5 50 69 83 55 68 06 47 AC 64 40 06 61 3E
C1 9F 14 60 4A 80 2F B3 C0 DA F3 1C 55 53 20 D7
BB FA 48 53 76 03 44 2D E6 C7 BC 1A CA 9E E5 A6
1C 02 84 C5 A3 E1 91 04 8A 2D 27 F4 3E 2D 39 E4
E5 A7

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### =========== FRAG_DECODER ============ ######
######               PROGRESS                ######
###### ===================================== ######
RECEIVED    :     6 /     5 Fragments
               1434 /  1195 Bytes
LOST        :             0 Fragments


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        6  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 07 00 6D 3D 53 96 AB A8 5C F8 2F 8B F8 E0 B0
0A 6A 94 35 60 CB E4 27 CD 46 8B 8F C9 8D 63 FB
CF AA 56 66 D1 BF 6A 06 AA 81 92 6E 41 98 51 E3
94 70 43 51 30 76 CD CF 6F 85 CA 40 84 3D C8 19
30 CC D0 75 FC 8A 80 30 C4 1D 1B 72 48 A5 5C CD
09 3E 15 25 BE B9 DD 8A E7 C6 59 DA 76 B9 F3 0F
48 BC 9A 4A 06 47 12 F8 DC 38 69 57 D5 C1 80 7E
A4 1A E7 A1 09 AF F9 F7 D8 91 40 02 1B AB F3 CE
B2 B8 3D 95 CA DB 22 E0 EE 78 41 EE 9A F5 8B E0
44 2A A5 3B BF FA 80 16 BC B1 6F DA 8F B1 D3 F5
9A 22 E9 58 33 8A 34 76 82 6C 5E AE 82 D3 BF CF
7D 45 A5 50 69 83 55 68 06 47 AC 64 40 06 61 3E
C1 9F 14 60 4A 80 2F B3 C0 DA F3 1C 55 53 20 D7
BB FA 48 53 76 03 44 2D E6 C7 BC 1A CA 9E E5 A6
1C 02 84 C5 A3 E1 91 04 8A 2D 27 F4 3E 2D 39 E4
E5 A7

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### =========== FRAG_DECODER ============ ######
######               FINISHED                ######
###### ===================================== ######
STATUS      : -2
CRC         : ECB2A918


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        7  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 08 00 BB F7 C6 FD C7 53 58 8F 14 7A FB 92 09
E4 CA 42 93 20 2A BB 09 69 D9 3D A6 8E A3 A9 A1
BD 19 27 9C E5 4C 15 49 4E B7 33 65 85 67 99 B3
0B C0 A2 C9 25 2B 4F 44 5B C6 91 79 C5 3A A9 02
A7 E1 D8 68 7B 8C FA 59 4C CE AA 22 2C 47 65 CD
FF FB 74 52 16 47 DF 35 11 9F 55 74 CC 3C 8B FA
3D EE 27 51 94 F2 80 AC 6A 40 63 9B A8 9C DF C3
97 06 65 0F DE E7 8A 7E 48 AD E7 8B 20 5B CF DD
BA 75 31 E6 1D 06 D9 4B F2 15 AA 7D A4 4D 42 94
56 37 6C 4C 52 DA 66 B5 9B 6E 27 31 42 34 FB CC
FE B3 CB 9A 46 67 69 85 C9 A5 F3 38 93 6A B8 FB
F7 DD A1 2F 22 30 17 2D C6 4F 3A F9 7E EF 89 A0
9B B1 F7 7B E8 57 6C 9D 38 7A 70 E6 E0 84 AF 5F
D7 5E B1 9B C7 AF 58 DA F5 97 B2 F1 68 90 5C 80
61 09 00 56 B7 84 CA 80 C2 67 EC 3B 0E 2B FD 2F
B3 FE

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        8  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 09 00 C9 D5 B7 48 A1 79 EF AE 21 AF 79 4F 7D
8A 95 A5 8C 7D 4F 9E 7D 85 CD FB E2 F1 C9 C2 A3
4E DA 5B C3 C6 61 C2 04 4C E9 75 59 1E 36 31 BC
A6 42 8F D5 83 C8 E4 3C BA 8F 93 C3 C1 BF 81 2D
95 A2 0A E9 5C 54 5B F8 C5 AB D2 BE C4 DC 47 5F
EA B4 93 1D 4B 9B B8 D5 87 D1 88 EC 62 03 24 BC
E2 50 6E AA C7 99 58 22 87 28 E1 65 53 63 DE 52
96 3F 00 F4 F9 FC 99 6F F8 56 A8 FA 51 88 2A 9F
C2 97 17 3E 0B 6D 8E 68 C2 0A 72 7D 25 98 84 5E
16 B1 46 04 9B 83 89 EC B0 21 AE 87 F7 F6 FA 10
6F 6A B3 EF B8 D9 EF EB F0 8C 1A 71 06 EF 5F F9
D1 7B D8 AC F5 FF D9 69 15 93 B8 37 F8 2A C5 78
48 62 76 A8 F5 1E 0C D0 1B 4E C4 CE 45 B9 0D B5
34 87 0F 56 B9 4E 82 9E 21 19 88 A4 D0 2B A1 A7
57 EC 6F DE 82 3A 8A 97 E5 08 44 65 18 D3 4F E8
C5 2B

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        9  ===== ######
RX WINDOW   : C Multicast
RX PORT     : 201
RX DATA     :
08 0A 00 1F 1F 22 23 CD 82 EB D9 1A 5E 7A 3D C4
64 35 73 2A 3D AE C1 53 21 52 4D CB B6 E7 08 F9
3C 69 2A 39 F2 92 BD 4B A8 DF D4 52 DA C9 F9 EC
39 F2 6E 4D 96 95 66 B7 8E CC C8 FA 80 B8 E0 36
02 8F 02 F4 DB 52 21 91 4D 78 63 EE A0 3E 7E 5F
1C 71 F2 6A E3 65 BA 6A 71 88 84 42 D8 86 5C 49
97 02 D3 B1 55 2C CA 76 31 50 EB A9 2E 3E 81 EF
A5 23 82 5A 2E B4 EA E6 68 6A 0F 73 6A 78 16 8C
CA 5A 1B 4D DC B0 75 C3 DE 67 99 EE 1B 20 4D 2A
04 AC 8F 73 76 A3 6F 4F 97 FE E6 6C 3A 73 D2 29
0B FB 91 2D CD 34 B2 18 BB 45 B7 E7 17 56 58 CD
5B E3 DC D3 BE 4C 9B 2C D5 9B 2E AA C6 C3 2D E6
12 4C 95 B3 57 C9 4F FE E3 EE 47 34 F0 6E 82 3D
58 23 F6 9E 08 E2 9E 69 32 49 86 4F 72 25 18 81
2A E7 EB 4D 96 5F D1 13 AD 42 8F AA 28 D5 8B 23
93 72

DATA RATE   : DR_5
RX RSSI     : -50
RX SNR      : 14



###### ===== Switch to Class A done.  ===== ######


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME       13   ===== ######

CLASS       : A

TX PORT     : 201
TX DATA     : UNCONFIRMED
05 18 A9 B2 EC

DATA RATE   : DR_5
U/L FREQ    : 867300000
TX POWER    : 7
CHANNEL MASK: 00FF


###### ========== MCPS-Indication ========== ######
STATUS      : OK

###### =====  DOWNLINK FRAME        6  ===== ######
RX WINDOW   : 1
RX PORT     : 201
RX DATA     :
01 01

DATA RATE   : DR_5
RX RSSI     : -60
RX SNR      : 15


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME       14   ===== ######

CLASS       : A

TX PORT     : 201
TX DATA     : UNCONFIRMED
01 00 06 00 00

DATA RATE   : DR_5
U/L FREQ    : 868500000
TX POWER    : 7
CHANNEL MASK: 00FF


###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ===================================== ######
STATUS      : OK

###### =========== MCPS-Confirm ============ ######
STATUS      : OK

###### =====   UPLINK FRAME       15   ===== ######

CLASS       : A

TX PORT     : 201
TX DATA     : UNCONFIRMED
05 18 A9 B2 EC

DATA RATE   : DR_5
U/L FREQ    : 868100000
TX POWER    : 7
CHANNEL MASK: 00FF

Below the final status provided by ChirpStack.
image
image

@mluis1 mluis1 closed this as completed Apr 20, 2020
@MarkoRimac
Copy link

MarkoRimac commented Jul 23, 2020

Hello,

has anyone tried FUOTA process using Chirpstack server and fuota-test-01 example lately? I've been trying to set it up and test it but have come to an issue I can't overcome.

Im using LmHelper files provided by semtech that implement FUOTA steps (Multicast, clock sync and fragmentation) but seem to have an issue of having different MC_NWK_S_KEY and MC_APP_S_KEY being generated on end-device side and on application server side.
I've provided the same APP_KEY(GEN_APP_KEY in my case, cause lorawan version 1.0.3) to both end device and server side which is needed to obtain two MC keys needed, as it states in lorawan multicast specification. I've set up LORAWAN version to 1.0.3 in application server device configuration because it says so in commissioning.h file that came with the semtechs lib implementing lora stack.

Did anyone else come across the same issue or at least can confirm that the example is working with Chirpstack server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants