简体   繁体   中英

Galaxy Nexus execute AT commands?

Would it be possible to send AT commands to the Galaxy Nexus using Hyperterminal or an other program? If so, is there also a way to directly execute the commands on the phone?

I haven't send AT commands to the Galaxy Nexus, but it is possible with other mobile phones. They act like Plug and Pr/lay devices when you connect them to a Windows computer.

Plug the phone in, then check Windows Device Manager to see if there's a modem port for the phone.

If you can see the phone as a modem, then that's the port to which you can send AT commands via Hyperterminal.

I'm not aware of any phones that let you enter AT commands into the phone via its keypad (that's what you mean, isn't it?). The interface just isn't there.

If the phone shows up on the computer as a Windows Mobile Broadband device, you could also use Mobile Broadband API - documentation here. You would have to write some code for that. It depends on the driver support whether this is possible or not.

It's possible on Linux (haven't tried on Win), but you'll need root on your GNex:

  1. Connect rooted GNex to Linux PC with USB cable (debug mode and superuser access over adb must be enabled)
  2. Go into adb shell and change to root with su command:

    adb shell

    su

  3. as root execute the following:

    echo MODEM > /sys/devices/tuna_otg/usb_sel

This would drop you out of the adb shell and you should now have 7 new pseudo-tty devices in /dev named ttyACM[0-6]. You should now be able to use /dev/ttyACM0 to send AT commands to you GNex.

Personally, I use atinout to send the AT commands.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM