Seeed-Studio / LoRaWan-E5-Node

Applications on LoRa-E5 mini/ LoRa-E5 Development Kit with v1.1.0 STM32Cube MCU Package for STM32WL series(SDK)
61 stars 27 forks source link

How to setup multicast transmission with Chirpstack #24

Open be-mar opened 1 week ago

be-mar commented 1 week ago

Hi all, I want to establish multicast communication between chirpstack server and WIO-e5 mini modules.

Currently as a test base I'm using Lorawan-end-node. Unicast communication in class C works perfectly but seems like multicast messagess doesn't reach my debug module.

I've debugger connected to WIO-e5 development kit. Each time I try to send message from chirpstack using swagger API debugger doesn'y stop in defined breakpoint. I assume there is a problem with keys.

Could someone give me a guidence how to setup proper multicast communication? Thanks

mingzhangqun commented 1 week ago

Hello, I would like to confirm with you whether it is one node transmission to multiple chirpstacks? Did you correctly add nodes to each chirpstack? Can you provide your detailed configuration?

be-mar commented 1 week ago

Sorry for late reply. One chirpstack server - to two C class devices.

Not sure what you are asking about but here:

Gateway works as a packet forwarder: image

Gateway is defined in chirpstack: image

Unicast frames are visible here: image Thing is that when I use api to post a multicast message the message itself is not visible in that log...

Device profile defined here: image

Class C support enabled image

Devices attached to application: image

Mulitcast group with defined devices: image

And gateway: image

Config of multicast group: image

Unicast messages from end device: image image

mingzhangqun commented 1 week ago

Make sure your module has multicast enabled. https://files.seeedstudio.com/products/317990687/res/LoRa-E5%20AT%20Command%20Specification_V1.0%20.pdf Image

be-mar commented 1 week ago

I tried to use this function for stock chip by typing at commands. Nothing happened. Then I decided to build lora-end-node project and manually define keys in se-identity.h but same. I can set breakpoints and see only unicast messages

be-mar commented 1 week ago

BTW. I use OTAA activation. Does it matter?

mingzhangqun commented 6 days ago

I tried to use this function for stock chip by typing at commands. Nothing happened. Then I decided to build lora-end-node project and manually define keys in se-identity.h but same. I can set breakpoints and see only unicast messages

Can you tell me all your detailed commands?

be-mar commented 4 days ago
  1. AT
  2. AT+ ID= DevEui, read and set in chiprstack server
  3. AT+KEY=APPKEY, generated from chirpstack server
  4. AT+ CLASS= C
  5. AT+LW=MC,"ON", "00075126", "5c476f6789fb4e1f27e7af998f628d82","e64507a08270a7110343b8eeb69f4c6e" //values from screenshots
  6. AT+ MODE= LWOTAA
  7. AT+ JOIN

image

And later I can send unicast messages in both directions image

mingzhangqun commented 2 days ago

Ok, thank you for your reply. I will analyze this problem next week.