Multiple responses to AT commands

Hi, all,
I use an openWRT router and I am debugging EC25-E modem with AT commands with shell command “socat”.
example of usage:
root@OpenWrt:~# socat - /dev/ttyUSB2,crnl
AT+CFUN=1,1

I get response to my commands but responses are duplicated, many times:

root@OpenWrt:~# socat - /dev/ttyUSB2,crnl
ATI
ATI

Quectel

EC25

Revision: EC25EFAR06A10M4G

OK

ATI

Quectel

EC25

Revision: EC25EFAR06A10M4G

OK

Number of duplicates increases exponentially at each session, which is annoying and my impact the interpretation of respones analysing by scripts.

I don’t know if this is related to the modem or to socat command.
I am looking for another solution to send AT commands from OpenWRT shell.
Any ideas?

Thanks,

Try turning command echo off with ATE0

But perhaps there are two problems, and that will solve only one of them.

ATE0 command resolved the multiple echo, it’s perfect.
And I also resolved modem registration issue by enabling both IPv4 and IPv6. So all is fine.
Thank you!