MaJerle / lwcell

Lightweight cellular modem host AT library
MIT License
411 stars 154 forks source link

AT Messages Debug #23

Open yldzmuhammed opened 4 years ago

yldzmuhammed commented 4 years ago

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?

MaJerle commented 4 years ago

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.

yldzmuhammed commented 4 years ago

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?

MaJerle commented 4 years ago

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.