2024-05-12 01:09 PM
Hello everyone,
I'm currently working on a project involving the STM32F205RGTx MCU and the E220-400T22D LoRa module. I'm trying to send the command "C0 04 01 09" from my STM32 to the LoRa module, but it seems that the command isn't being recognized correctly by the LoRa module.
Setup Details:
Issue: Despite ensuring correct physical connections and UART settings, the LoRa module does not seem to acknowledge or respond correctly to the command sent. I've tried checking and rechecking my code and connections but haven't had any luck.
Questions:
Thanks in advance for your time and help!
2024-05-12 01:43 PM
I think you miss the point, this stuff isn't sent as ASCII characters with spaces
uint8_t data[] = { 0xC0,0x040,0x01,0x09 };
HAL_UART_Transmit(huart, data, sizeof(data), 500);
2024-05-12 02:00 PM
Firstly, thank you very much for taking the time to respond to my query and for your suggestion regarding the byte-oriented data transmission. I followed your advice and adjusted my code to send the command "C0 04 01 09" as a byte array directly:
uint8_t buff_send[] = {0xC0, 0x04, 0x01, 0x09};
HAL_UART_Transmit(&huart2, buff_send, sizeof(buff_send), 1000);
Unfortunately, I'm still facing issues with the LoRa module not recognizing the command. Here's what I've done following your suggestion: