I am operating a Grove board with a LoRa-E5-HF module. I have connected this board/module to TTN and am able to Join and send CMSGHEX commands among others via the module RxD, TxD. After I send a command the module emits response(s). See the example CMSGHEX below.
Module responses, especially the JOIN response, seem to vary somewhat in both content and timing. This makes creating software to parse module response somewhat of a problem.
Is there a document that lists all the possible responses and the time it may take for the module to respond? If not, is there an example C-language program that I can pick apart? A robust example of sending CMSGHEX, determining errors, and capturing the RX (if any) will be very appreciated.
Unfortunately, there isn’t a comprehensive official document listing all possible responses and their timings, but you can rely on the information provided in the LoRa-E5-HF AT Command Manual and user community resources.
Yes. I emphasize I am using LoRa-E5-HF module. I believe the responses below are specific to this module and not generally a part of the LoRaWAN specification. My “10 second delay” is how long my software blindly waits before processing its input buffer. The actual time for the module to emit a response is not shown, although it is less than 10 seconds.
JOIN attempt with no gateway just after power on, 10 second delay
Command: JOIN
+JOIN: Start
+JOIN: NORMAL
+JOIN: Join failed
+JOIN: Done
JOIN attempt with gateway present just after power on, 10 seconds delay
Command: JOIN
+JOIN: Start
+JOIN: NORMAL
+JOIN: Network joined
+JOIN: NetID 000013 DevAddr 26:0C:6E:00
+JOIN: Done
JOIN attempt with gateway present, already joined, 10 seconds delay