I have made LoRa SPI driver using ESP-IDF for LoRa module from NiceRF and it worked well. When I tried to use the same driver for E22-400M22S module from Ebyte, it did not work well. It failed to set LoRa module to TX/RX mode. GetStatus command returned 2 for chip mode and 5 for command status. Other commands worked successfully. When I tried to use another SX126x driver library using Arduino framework, it worked well for ebyte LoRa module but failed to set to TX/RX mode for NiceRF module. So it seems to me that E22-400M22S only works well with Arduino SPI and not with ESP-IDF SPI, and vice versa for NiceRF module. I need to work with ESP-IDF. Can someone help me to solve this problem?
Thank you.