cAT icon indicating copy to clipboard operation
cAT copied to clipboard

CAT_RETURN_STATE_ERROR in cat_service loop

Open Halo3fanz opened this issue 1 year ago • 1 comments

Hi,

I'm running cAT on a host nRF52811 MCU attempting to communicate with a Quectel BC660 AT module. I've established UART communication prior to this and now I want to add cAT to easily send and handle AT commands.

This is my code, part of a larger codebase: cAT_handler.zip

I keep getting CAT_RETURN_STATE_ERROR (-1) in the main loop and as far as I can tell, none of my write, read or run functions are called. For now, I'm just trying to send and receive responses for a simple AT+CPIN? command to check for a SIM card. Can you tell me what I'm doing wrong here?

Halo3fanz avatar Apr 03 '23 05:04 Halo3fanz

cAT cannot be used to communicate with any external AT module. with cAT You can write firmware to make Your own AT-based module. Its dedicated for host devices, not for AT-devices clients.

marcinbor85 avatar Sep 07 '23 09:09 marcinbor85