EC25: Restrict access to the modem via the USB

Hi,

My team is working on EC25 modems and as a customer need, we are looking for a way to restrict access to the modem via the USB. We want to disable adb access, but there should also be a provision to re-enable it when required. Please let us know the process and changes that need to be made in the kernel files.

Thanks.

Are you using a Quecopen or a standalone solution? Please share complete firmware version by AT+QGMR.

Hi Rodney,

Thanks for your reply.
I am using EC25E device and QuecOpen EC25EFAR06A12M4G_OCPU_20.200.20.200 for SDK and base FW.

Best regards.

Hi,
Please try below command to disable adb.
at+qcfg=“usbcfg”,0x2C7C,0x0125,1,1,1,1,1,0,0

Hi Rodney,

Thanks for this solution. This works out for me. I just have a few final questions…

  1. If I were to disable the USB AT port, would I still be able to use the virtual AT port? And if no, then is there any other method to re-enable it?
  2. Among the other ports that are possible to disable (“diag”, “nmea”, “at_port”, “modem”, “rmnet”), will disabling any or all of them cause any trouble in re-enabling them?

Thanks and best regards.

What do you mean about virtual AT port? Are you using a Quecopen solution?