Send downlink DevStatusReq mac command
Home › Forums › Conduit: mLinux Model › Send downlink DevStatusReq mac command
Tagged: DevStatusReq, downlink, end-deivice status, mac command
- This topic has 9 replies, 2 voices, and was last updated 1 year, 1 month ago by kirill.chugunov01@mail.ru.
-
AuthorPosts
-
September 5, 2023 at 12:20 pm #33510kirill.chugunov01@mail.ruParticipant
Hello,
I want to send the downlink messages for the end device and get status info about one. I’ve learnt the Lorawan specification and there have the special mac command DevStatusReq. This status can inform the network server and then my application of its status like battery level.
Also I’ve studed the Multitech documentation of lora communication. There’s describe of sending downstream messages like NewChannelReq (add new channel). But for DevStatusReq mac command by the Lorawan specification doesn’t give a special sending attributes (Channel Index, Frequency, Data rate Range).
So, could you describe how I should send DevStatusReqmac command to end-device? What I should the data send and what the format their?Thanks and Regards
Kirill- This topic was modified 1 year, 2 months ago by kirill.chugunov01@mail.ru.
- This topic was modified 1 year, 2 months ago by kirill.chugunov01@mail.ru.
October 12, 2023 at 2:26 pm #33528Jason ReissKeymaster> new Buffer(“06”, “hex”).toString(“base64”)
‘Bg==’$ mosquitto_pub -t “lora/DEV-EUI/down” -m ‘{“port”:0,”data”:”Bg==”}’
October 12, 2023 at 2:51 pm #33529kirill.chugunov01@mail.ruParticipantBut I’ve tried that. And this message only put in downlink message query in Multitech. This message don’t remove from that and I don’t see downlink packets in table Packets.
Why doesn’t my message remove from Multitech downlink message query?- This reply was modified 1 year, 1 month ago by kirill.chugunov01@mail.ru.
October 12, 2023 at 2:55 pm #33531Jason ReissKeymasterClass A device would wait for uplink.
October 12, 2023 at 3:06 pm #33532kirill.chugunov01@mail.ruParticipantHmm, what does it mean? Don’t I send a downlink message immediately? Or how I can force send downlink messages to end-device? Because I’m wanting get information from one at the moment
October 12, 2023 at 3:27 pm #33533Jason ReissKeymasterSee LoRaWAN Class A vs C devices.
October 12, 2023 at 3:52 pm #33534kirill.chugunov01@mail.ruParticipantThank’s a lot! I’ve read some article about class A and C devices. Class A have a short interval for sending oportunity. The network server can respond during the first receive window (RX1) or the second receive window (RX2). On the other hand class C devices have long RX2 and we can almost always send downlink message.
So, It means that the Multiteh downlink query messages wait for the next uplink message from class A device? And it starts sending message when open RX1 window.
October 12, 2023 at 3:55 pm #33535kirill.chugunov01@mail.ruParticipantAnd could you give answer. I always should try to send my downlink message only by port 0, don’t I?
October 13, 2023 at 4:53 am #33536Jason ReissKeymasterYes a Class A device can only receive downlinks after an uplink.
Port 0 is only used for MAC commands. Application downlinks can use any other port. Some ports at the top of the range (200-255) are reserved for LoRaWAN extension applications such as Multicast setup and Fragmentation.
October 13, 2023 at 5:57 am #33537kirill.chugunov01@mail.ruParticipantGreat! Thanks a lot, Jason. I will try your explanation.
-
AuthorPosts
- You must be logged in to reply to this topic.