<div dir="ltr">Friends, small help.<div><br></div><div>mmcli -m 0 shows 'ttyUSB3; as primary whereas ttyUSB4 as part of ports as below. [Why two devices, I am not understanding. but I went ahead].</div><div><br></div><div><br></div><div>System | device: '/sys/devices/pci0000:00/0000:00:16.0/usb1/1-1/1-1.1'<br></div><div><div> | drivers: 'option1, huawei_cdc_ncm'</div><div> | plugin: 'Huawei'</div><div> | primary port: 'ttyUSB3'</div><div> | ports: 'ttyUSB3 (at), ttyUSB4 (at), wwan1 (net)'</div></div><div><br></div><div>Then I confimed USB3 and USB4 is used by my modem vendor as below</div><div><br></div><div><div>root@vyos:/opt/vyatta/share/ppp/network# grep PRODUCT= /sys/bus/usb-serial/devices/ttyUSB3/../uevent</div><div>PRODUCT=12d1/1506/102</div><div>root@vyos:/opt/vyatta/share/ppp/network# grep PRODUCT= /sys/bus/usb-serial/devices/ttyUSB4/../uevent</div><div>PRODUCT=12d1/1506/102</div></div><div><br></div><div>1. The first problem is when I run AT commands in ttyUSB3 is not responding. So proceded with ttyUSB4 and the following commands worked perfectly till before connection error.</div><div><br></div><div><div>echo -e "ATZ\r" > /dev/ttyUSB4</div><div>echo -e "AT+COPS?\r" > /dev/ttyUSB4<br></div><div>echo -e "AT+COPS=0,2\r" > /dev/ttyUSB4</div><div>echo -e "AT+COPS?\r" > /dev/ttyUSB4</div><div>echo -e "ATZ\r" > /dev/ttyUSB4<br></div><div>echo -e "AT+CGDCONT?\r" > /dev/ttyUSB4</div><div>
<div style="text-align:start;text-indent:0px;text-decoration-style:initial;text-decoration-color:initial"><div>echo -e 'AT+CGDCONT=1,"IP","<a href="http://airtelgprs.com">airtelgprs.com</a>","",0,0,0,0,0,0' > /dev/ttyUSB4<br></div><div><br></div></div>
</div><div>tr -s "\n" < /dev/ttyUSB4</div><div><br></div><div>While connecting by "echo -e 'ATD*99***1#' > /dev/ttyUSB4" modem is returning ERROR.</div></div><div><br></div><div>2. As a workaround, I went with mmcli --simple-connect, which is throwing 'ttyUSB3' device is closed. </div><div><br></div><div><div>root@vyos:/opt/vyatta/share/ppp/network# mmcli -m 0 --simple-connect="apn=<a href="http://airtelgprs.com">airtelgprs.com</a>"</div><div>error: couldn't connect the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Serial.OpenFailed: Could not open serial device ttyUSB3: it has been forced close'</div></div><div><br></div><div>So I can establish the connection. Could anyone please guide me.</div><div><br></div><div>Thanks</div><div>Subbu</div><div><br></div></div>