Issue with Sigfox Uplink Sequence Number Reset in Multi-Stack Application
Hello developers,
I am currently developing all-in-one AT slave firmware for STM32WLE5CCUX, which can handle both LoRaWAN and Sigfox AT commands. I have successfully implemented and tested AT slave drivers for LoRaWAN and Sigfox using the video linked below:
https://www.youtube.com/watch?v=HsrL-7WmhUE
In my application, I publish hourly data on the LoRaWAN server and Sigfox backend, one at a time. What I am doing is first transmitting the data to the Sigfox backend, then switching to the LoRaWAN stack to send the data to the LoRaWAN server. So far, everything has been working well.
Now, I want to implement one more stack, which is WMBUS, into my application.
For this purpose, I got the drivers for the MBUS stack from STACKFORCE and successfully implemented them into my application.
Now in my application, three different stacks are running. I am publishing hourly data on the LoRaWAN server, Sigfox backend, and MBUS collector, one at a time.
Everything has been working fine except for the problem with the Sigfox uplink (sequence number). The uplink from Sigfox arrives every time we transmit data from the node to the Sigfox backend. However, the sequence number resets to ZERO after reaching 21. It is expected to proceed to 22 but resets to 0 instead.
The message at the Sigfox backend server is:
Invalid message sequence from Device #3000ACC: expected 22, actual 0.
Below is a screenshot of the Sigfox backend server.

I don't know why this happens. If I simply exclude the WMBUS from my code, everything works fine.
I have no idea why this is occurring. Can anybody suggest a solution?
Below are the screen shorts of the memory occupies with WMBUS stack and Without WMBUSTACK.
Memory_without_WMBUS
Memory_with_WMBUS
Is this issue occurs due to the memory occupancy?
