lwcell icon indicating copy to clipboard operation
lwcell copied to clipboard

AT Messages Debug

Open yldzmuhammed opened this issue 6 years ago • 3 comments

Hello,

Is it possible to see sended and received at messages between mcu and module?

I enabled all the debug modes but no luck.

I dont want to make any changes on the library functions. But i think it could add on the received data process function. Am i correct?

yldzmuhammed avatar Jan 02 '20 11:01 yldzmuhammed

Library does not support this feature as not all commands are processed through same internal channel. if this is necessary, low-level driver shall implement this debug, part where you have to make your port for your architecture.

MaJerle avatar Jan 02 '20 19:01 MaJerle

Hi @MaJerle

In fact, it would be perfect if it could be possible.

Can you guide me how should i do this?

Using STM32F7 with keil and freertos (with CMSIS V2).

Edit: For transmitting commands from mcu, it is easy. just call debugger tx function. But what about for receive response from module? How it would be done?

If i am not wrong, you are receiving data via DMA. So i have to wait for all data come in.

Do i miss anything?

yldzmuhammed avatar Jan 02 '20 22:01 yldzmuhammed

Well, there is a function gsm_input_process which accepts received characters for processing. You can call your debugger rx function afterwards with same data to send these to your PC (or wherever you want).

Port for win32 supports this.

MaJerle avatar Jan 02 '20 22:01 MaJerle