How to connect Desire S to PC and use AT Command - HTC Desire S

Hi guys,
I want to connect Desire S to the PC and type some AT command (i.e Hayes command, e.g ATDT, ATH...)
So what I have to do:
- what cable to use? may be standard USB cable
- Should I install any driver so that PC can recognize our device as a modem?
- what software to use to enter AT command?
Thanks for your concern.

vndnguyen said:
Hi guys,
I want to connect Desire S to the PC and type some AT command (i.e Hayes command, e.g ATDT, ATH...)
So what I have to do:
- what cable to use? may be standard USB cable
- Should I install any driver so that PC can recognize our device as a modem?
- what software to use to enter AT command?
Thanks for your concern.
Click to expand...
Click to collapse
please post in the right forum. This should belong in Q&A. reported.

vndnguyen said:
Hi guys,
I want to connect Desire S to the PC and type some AT command (i.e Hayes command, e.g ATDT, ATH...)
So what I have to do:
- what cable to use? may be standard USB cable
- Should I install any driver so that PC can recognize our device as a modem?
- what software to use to enter AT command?
Thanks for your concern.
Click to expand...
Click to collapse
connect your phone and install HTC drivers.it will also install modem in virtual COM port. find port from phone and modern option in control panel.them install hyper terminal application and connect to given port.you can also use putty

vndnguyen said:
Hi guys,
I want to connect Desire S to the PC and type some AT command (i.e Hayes command, e.g ATDT, ATH...)
So what I have to do:
- what cable to use? may be standard USB cable
- Should I install any driver so that PC can recognize our device as a modem?
- what software to use to enter AT command?
Thanks for your concern.
Click to expand...
Click to collapse
You might find it useful to have a read of this page.

so can I type the AT commands directly on the phone?

vndnguyen said:
so can I type the AT commands directly on the phone?
Click to expand...
Click to collapse
I don't see why not. They can be done via ADB Shell, so should be able to be done locally as well.

SimonTS said:
You might find it useful to have a read of this page.
Click to expand...
Click to collapse
Thanks Simon for the great article. It seems to be what I'm looking for.
I have read entire article, also have look on the link http://www.androidjavadoc.com/1.0_r1_src/constant-values.html
however I cannot realize how to send a simple AT command to the phone.
I see with the command "ATD xxxxxxx" we have to type:
$ service call phone 1 s16 "xxxxxxx"
OR
$ service call phone 2 s16 "xxxxxxx"
But I don't know what difference between 1 and 2?
And I also don't know how to implement another commands, e.g "ATH", "AT+CREG=1" or "AT+CIMI"...
Do you have any suggestions?

Related

ADB Device not found, HELP !!!!!!

Hello, Today i have installed Cyanogenmod 11. But after rebooting i connected my mobile to PC and in command prompt
i gave a command " adb devices" and the list is empty. :crying: This happened after flashing CM11. HELP !!!!!
I can access internal memory as a media device.
Did you enable the ADB?
cyrus_ae said:
Did you enable the ADB?
Click to expand...
Click to collapse
As above.
You'll need ADB active on the phone.
And a new / updated version of the ADB drivers / tools on your desktop.
Also, you will get a dialog prompt on the phone to confirm a security encrypted key (to allow ADB between your desktop and your phone)
This is something Google introduced on 4.1 (I think) which, if is not set, will end in a "devices not found" when trying to use ADB
dubidu said:
As above.
You'll need ADB active on the phone.
And a new / updated version of the ADB drivers / tools on your desktop.
Also, you will get a dialog prompt on the phone to confirm a security encrypted key (to allow ADB between your desktop and your phone)
This is something Google introduced on 4.1 (I think) which, if is not set, will end in a "devices not found" when trying to use ADB
Click to expand...
Click to collapse
Thanks for replay
Actually it worked till I flash CM11 using CWM Recovery. Problem came after flashing .
srujan21 said:
Thanks for replay
Actually it worked till I flash CM11 using CWM Recovery. Problem came after flashing .
Click to expand...
Click to collapse
Revoke all USB authorisation.
Try reconnecting.
And authorize when prompted!
If it doesnt work!
Also Please post Does your device show up in device manager? IF yes by what name? Is there an ADB Interface?
deej_roamer said:
Revoke all USB authorisation.
Try reconnecting.
And authorize when prompted!
If it doesnt work!
Also Please post Does your device show up in device manager? IF yes by what name? Is there an ADB Interface?
Click to expand...
Click to collapse
Its working, Thanks
ADB Device not found
deej_roamer said:
Revoke all USB authorisation.
Try reconnecting.
And authorize when prompted!
If it doesnt work!
Also Please post Does your device show up in device manager? IF yes by what name? Is there an ADB Interface?
Click to expand...
Click to collapse
i had same problem, plz help me
vardhanram said:
i had same problem, plz help me
Click to expand...
Click to collapse
The thing you are quoting is solution my friend. It also has a question if solution doesn't work. Please answer that

How to enable USB debuggin with broken touchscreen?

Hi
I have a old nexus with broken touchscreen . I want to use it via mirror on pc.
unfortunatly USB debuggin wasn't enable so i can't install any app.
any tips?
thanks
PS: i saw many use usb adapter to connect a mouse but i don't have it
EDIT: right now i just need a rom/kernel with USB debugging mode enabled by default
the screen still works , only the touch screen is broken
power , and volume bottons still work
the device is rooted
If it's only installing apps you could install them via recovery. (as zip)
Or you could check for a cheap replacement touchscreen.
nonameleft4me said:
If it's only installing apps you could install them via recovery. (as zip)
Or you could check for a cheap replacement touchscreen.
Click to expand...
Click to collapse
thanks for the answer!
sorry i forgot to mention that i need USB debuggin for make the app works correctly.
I'm trying now to find out what rom i have installed and maybe then find a kernel with OTG support . (yes i found a otg cable )
i'm not a expert of rooting
I think google has an app called voice control. Not sure how operational it is though. Supposedly you can control the entire system via voice.
nonameleft4me said:
I think google has an app called voice control. Not sure how operational it is though. Supposedly you can control the entire system via voice.
Click to expand...
Click to collapse
i need to unlock the phone and tap on the widget "search" to start voice command .
I think the best way is to find a way to enable OTG and then use a usb mouse
Boot into Recovery and mount*Data*partition.
Open a shell on PC and type:
adb pull /data/property/persist.sys.usb.config ~/
Repace*~/*with home directory of your OS.
Open that file in a text editor and you would possibly see*mtp*written there. Change it to*mtp,adb.
Note that sometimes Android doesn't understand the text file changes if the line terminator is "DOS Terminators" which Notepad would probably do on Windows (mine is Linux so no issue here).
In that case, I would suggest not using*adb pullbut doing:
adb shell echo 'mtp,adb' > /data/property/persist.sys.usb.config
You may verify that the*echo*command overwrote the file by using:
adb pull /data/property/persist.sys.usb.config ~/
and seeing the file's content in some text editor.
Unmount*Data*and reboot into Android OS. USB Debugging would probably be enabled.
Sent from my Aqua Trend using Tapatalk
Itzabhaysingj said:
Boot into Recovery and mount*Data*partition.
Open a shell on PC and type:
adb pull /data/property/persist.sys.usb.config ~/
Repace*~/*with home directory of your OS.
Open that file in a text editor and you would possibly see*mtp*written there. Change it to*mtp,adb.
Note that sometimes Android doesn't understand the text file changes if the line terminator is "DOS Terminators" which Notepad would probably do on Windows (mine is Linux so no issue here).
In that case, I would suggest not using*adb pullbut doing:
adb shell echo 'mtp,adb' > /data/property/persist.sys.usb.config
You may verify that the*echo*command overwrote the file by using:
adb pull /data/property/persist.sys.usb.config ~/
and seeing the file's content in some text editor.
Unmount*Data*and reboot into Android OS. USB Debugging would probably be enabled.
Sent from my Aqua Trend using Tapatalk
Click to expand...
Click to collapse
thanks!
i tryed
1) i went in recovery mode
2) i connect via usb the nexus4 to my pc
3)went in "mounts and storage"
4)then "mount /data"
5)in cmd i tryed your command "adb pull /data/property/persist.sys.usb.config" but i says i'm unauthorized
i checked via command "adb devices" and it return a alphanumerica string plus "unauthorized"
i tryed then to
Reboot your phone into recovery mode.
Connect it to your computer.
Open the terminal and type:
cd ~/.android
adb push adbkey.pub /data/misc/adb/adb_keys
adb shell reboot
but it still says error : device unauthorizated . please check the confirmation dialog on your device
i tryed also with a different version of adb and now gives me after "adb devices" an "offline" response
NB: if i connect the phone (not in recovery mode) via usb i can copy files in and out (i can explore onlyfew folders) , maybe this could help.
hartman11 said:
i tryed also with a different version of adb and now gives me after "adb devices" an "offline" response
NB: if i connect the phone (not in recovery mode) via usb i can copy files in and out (i can explore onlyfew folders) , maybe this could help.
Click to expand...
Click to collapse
Sorry but this could not help... Now only thing you can do is connect any USB mouse to your phone via otg cable (as it is not costly also), and you can also try USB gamepad. I also have used USB gamepad before when my touchscreen was not working.
Second thing you can do is download any android device manager for your PC like mobogenie or mobilego they directly install any app from play store to you android device, through USB.And I don't think they need USB debugging option to be enabled.
Sent from my Aqua Trend using Tapatalk
my problem is not installing an app (i could do it in recovery mode with a .zip) but enabling the USB debuggin
I have a otg cable but not the "Y" type ( the one with power source ) , also i don't know if OTG is supported by my kernel . I would like to install maybe another kernel which has OTG support and usb debuggin mode enable by default but i don't know what kind of rom i have D:
right now i just need a rom/kernel with USB debugging mode enabled by default
up

Bloatware Apps Removal via ADB

Hello Everyone,
I would like to learn how to remove bloatware Apps from my Android phone.
I have tried using "ADB commands" but for some reason my computer doesn't recognize/find my Android phone when I connect it to it.
Please help.
Thanks in advance
Download drivers for samsung and enabled adb developer option then type following "adb devices" press enter and should see serial number indicating phone connected via adb
petiolarissean said:
Download drivers for samsung and enabled adb developer option then type following "adb devices" press enter and should see serial number indicating phone connected via adb
Click to expand...
Click to collapse
Hello, and Thanks
I have done that exactly, but it still doesn't work.
And I can't figure out why is not working.
I have installed the Samsung driver, allowed the ADB function on my phone from "Developer Options" etc.
In addition to the advices by petiolarissean , check whether the driver works well, please.
In the 'Devices Manager' of your Windows, check the driver for your Android phone.
If this doesn't work yet, change an usb cable and then try again.
Only to have mentioned it:
So-called bloatware typically is housed in Android's locations /system and/or /system/priv--apps what only can get accessed by Android's root-user after successfully mounted as RW.
James_Watson said:
In addition to the advices by petiolarissean , check whether the driver works well, please.
In the 'Devices Manager' of your Windows, check the driver for your Android phone.
If this doesn't work yet, change an usb cable and then try again.
Click to expand...
Click to collapse
Thanks for your help
I think I will buy a new USB cable and give it a try, hopefully it will work.
Have a nice day
Sorry late reply.I have like 5 different phone.Hard core modder.
This question help alot
Even though you csnt get adb working
Can you still move files from your phone to pc or computer.Or nothing ay all.Your answr will tell me your problem

Question ADB TCPIP mode w/o cable

I've been looking around for a way to enable ADB TCPIP mode without cable, and I just couldn't find something that works without rooting the device first. The Tasker trick is waaay too complicated, and I couldn't make it work on my Pixel 7 Pro.
When root is available, things look simple: run "setprop persist.adb.tcp.port 5555" or modify /system/build.prop to include a line to that effect. Assume that I go to the trouble of rooting my phone, and make the requisite change in /system/build.prop, will I be able to un-root afterward while keeping the change I made intact?
Edit: here's a wild thought: maybe I can actually tinker with the official Android factory image, hence add the requisite line to /system/build.prop in vitro, as it were, repackage the whole thing as a modified image, and then flash it onto my (unrooted) phone. Will that work? Or does the flashing process check the checksum before flashing?
Aqua1ung said:
I've been looking around for a way to enable ADB TCPIP mode without cable, and I just couldn't find something that works without rooting the device first. (...)
Click to expand...
Click to collapse
Does the simple method described in the thread below not work?
How to install ADB on Windows, macOS, and Linux
A step-by-step guide to get you started with the Android Debug Bridge tool.
www.xda-developers.com
ze7zez said:
Does the simple method described in the thread below not work?
How to install ADB on Windows, macOS, and Linux
A step-by-step guide to get you started with the Android Debug Bridge tool.
www.xda-developers.com
Click to expand...
Click to collapse
For one, my adb doesn't seem to know the "adb pair" command ("adb: unknown command pair"). Moreover, the IP address provided by the "Pair with device" menu is funny, along the lines of 100.xxx.xxx.xxx, hence it's not an usual 192.168.xxx.xxx. Finally, this doesn't really lend itself to scripting, as the pairing code changes all the time.
Aqua1ung said:
For one, my adb doesn't seem to know the "adb pair" command ("adb: unknown command pair"). Moreover, the IP address provided by the "Pair with device" menu is funny, along the lines of 100.xxx.xxx.xxx, hence it's not an usual 192.168.xxx.xxx. Finally, this doesn't really lend itself to scripting, as the pairing code changes all the time.
Click to expand...
Click to collapse
Are your tools up to date? What is the output of:
Code:
adb version
Code:
Android Debug Bridge version 1.0.41
Version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/adb
Aqua1ung said:
Code:
Android Debug Bridge version 1.0.41
Version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/adb
Click to expand...
Click to collapse
Update your tools, you should be on 33:
Code:
Android Debug Bridge version 1.0.41
Version 33.0.3-8952118
Installed as /usr/lib/android-sdk/platform-tools/adb
I have a script for that, I forgot to include it...
Edit: can't attach it for some reason, anyways, here's a link to my git: update_platform_tools
Thanks. This is what I am getting when attempting to pair:
Code:
[email protected]:~$ adb pair 100.78.124.214:32989
Enter pairing code: 521129
error: unknown host service
Aqua1ung said:
Thanks. This is what I am getting when attempting to pair:
Code:
[email protected]:~$ adb pair 100.78.124.214:32989
Enter pairing code: 521129
error: unknown host service
Click to expand...
Click to collapse
Do you have your phone and PC connected via wifi to the same router?
ze7zez said:
Do you have your phone and PC connected via wifi to the same router?
Click to expand...
Click to collapse
Same router, yes, though my PC is on a wired connection.
Aqua1ung said:
Same router, yes, though my PC is on a wired connection.
Click to expand...
Click to collapse
I checked on my Windows PC and it does not connect when the PC is connected via cable.
It works when both devices are connected via WiFi.
ze7zez said:
I checked on my Windows PC and it does not connect when the PC is connected via cable.
It works when both devices are connected via WiFi.
Click to expand...
Click to collapse
I was about to see if I could do that, lol, my box is wired as well
ze7zez said:
I checked on my Windows PC and it does not connect when the PC is connected via cable.
It works when both devices are connected via WiFi.
Click to expand...
Click to collapse
Thank you. Anyway, it may not be of much help, as this procedure needs to be repeated after each reboot, and is not scriptable. I, for one, am interested in writing a script. For now, it's easier for me to connect the phone via USB and run my script every time after reboot.
About the rooting/un-rooting questions I was asking in the OP, any opinions about those?
Aqua1ung said:
Thank you. Anyway, it may not be of much help, as this procedure needs to be repeated after each reboot, and is not scriptable. I, for one, am interested in writing a script. For now, it's easier for me to connect the phone via USB and run my script every time after reboot.
About the rooting/un-rooting questions I was asking in the OP, any opinions about those?
Click to expand...
Click to collapse
As for things you can do with root, I have nothing to offer, in fact, I am totally against it. It just causes unnecessary problems with the device.
However, you *may* be able to modify the stock rom with an Android ROM Kitchen, emphasis on the "may".
Aqua1ung said:
(...) then flash it onto my (unrooted) phone. Will that work? Or does the flashing process check the checksum before flashing?
Click to expand...
Click to collapse
So what's would the point of OTA file signatures if anyone could modify the original ROM with dangerous changes?
Aqua1ung said:
Thanks. This is what I am getting when attempting to pair:
Code:
[email protected]:~$ adb pair 100.78.124.214:32989
Enter pairing code: 521129
error: unknown host service
Click to expand...
Click to collapse
It worked fine for me after killing adb ($ adb kill-server)
Tasker and LADB app are working on my P7P perfectly, no cable required, no root - more info here.

USB port please help

If a USB port is disabled on a device and I'm unable to adb into it, is there any file or method I can try to enable USB port? When I ADbB devices it reads unauthorized. If I try and ADB mount I get the ADB help screen.. please help
DjPlaymysong14 said:
If a USB port is disabled on a device and I'm unable to adb into it, is there any file or method I can try to enable USB port? When I ADbB devices it reads unauthorized. If I try and ADB mount I get the ADB help screen.. please help
Click to expand...
Click to collapse
How did you find out that the USB port is disabled? With the command 'adb devices' what is the output? Do you get an alphanumeric output along with "unauthorised"? If so, it doesn't mean that the USB port is disabled. It means that the prompt on your device (when you use the command) asking whether to allow the adb connection has not been approved.
If you don't get the prompt, then search for a solution for that.
TNSMANI said:
How did you find out that the USB port is disabled? With the command 'adb devices' what is the output? Do you get an alphanumeric output along with "unauthorised"? If so, it doesn't mean that the USB port is disabled. It means that the prompt on your device (when you use the command) asking whether to allow the adb connection has not been approved.
If you don't get the prompt, then search for a solution for that.
Click to expand...
Click to collapse
Ok so it's not approved, so my follow up question if I'm allowed to see that is there a way to get approved so I can delete the partitions?
DjPlaymysong14 said:
Ok so it's not approved, so my follow up question if I'm allowed to see that is there a way to get approved so I can delete the partitions?
Click to expand...
Click to collapse
Is adb the only way to do phone to phone using terminal prompts? Is there a back door into the target device if ADB don't work?
DjPlaymysong14 said:
Ok so it's not approved, so my follow up question if I'm allowed to see that is there a way to get approved so I can delete the partitions?
Click to expand...
Click to collapse
as I already said, Search is your friend.
DjPlaymysong14 said:
Is adb the only way to do phone to phone using terminal prompts? Is there a back door into the target device if ADB don't work?
Click to expand...
Click to collapse
ADB for phone to phone? I don't understand the question. ADB will work if it is authorised on your device.

Categories

Resources