Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Cannot enter Sprint ## CDMA codes on dialer, need DIAG mode! [solved]


  • Please log in to reply
18 replies to this topic

#1 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 21 March 2011 - 06:26 PM

I am running CM 7.1 RC2 on my HTC Hero.  When I enter ## codes (##3282#, ##3424#, etc) on my dialer keypad nothing happens.  Is there a way to fix this?

If there ISN'T an easy way to fix the ## codes, is there at least a work around so I can put the phone into ##DIAG# mode so I can use tools like QXDM/QPST/CDMA WS??

Edited by ki1022, 22 March 2011 - 04:48 AM.


#2 JWag12787

JWag12787
  • Members
  • 88 posts
  • Country:
    us - United States
  • Device Model:
    HTC Hero CDMA (Sprint)
  • CM Version:
    CyanogenMod 7
  • Recovery Image:
    ClockworkMod

Posted 21 March 2011 - 10:05 PM

View Postki1022, on 21 March 2011 - 06:26 PM, said:

I am running CM 7.1 RC2 on my HTC Hero.  When I enter ## codes (##3282#, ##3424#, etc) on my dialer keypad nothing happens.  Is there a way to fix this?

If there ISN'T an easy way to fix the ## codes, is there at least a work around so I can put the phone into ##DIAG# mode so I can use tools like QXDM/QPST/CDMA WS??

The only solution I have, when I need to do that, is this:
* Nandroid Backup
* Install Sense ROM
* Do The Commands
* Recover Nandroid Backup

Sorry it isn't easier :(

#3 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 21 March 2011 - 10:13 PM

View PostJWag12787, on 21 March 2011 - 10:05 PM, said:

The only solution I have, when I need to do that, is this:
* Nandroid Backup
* Install Sense ROM
* Do The Commands
* Recover Nandroid Backup

Sorry it isn't easier :(

Yeah, that is what I have been doing also.  Definitely a pain the butt, it takes like 20 mins.

Is there any sort of universal EPST.apk in development anywhere?

#4 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 22 March 2011 - 04:46 AM

View Postki1022, on 21 March 2011 - 10:13 PM, said:

Yeah, that is what I have been doing also.  Definitely a pain the butt, it takes like 20 mins.

Is there any sort of universal EPST.apk in development anywhere?

I just found a method to do it!!

If you have shell/ssh access to your phone, enter this command:

echo 1 > /dev/qct_diag_enable

..and your phone should go into USB diag mode. when you are done just:

echo 0 > /dev/qct_diag_enable

Nice!

Unfortunately the nice menus that come from the ## dialer codes still don't work, but this method is still good enough for me.

Edited by ki1022, 22 March 2011 - 04:49 AM.


#5 frozndevl

frozndevl
  • Members
  • 5 posts
  • Device Model:
    HTC EVO
  • CM Version:
    7.0 rc2
  • Recovery Image:
    Amon_RA

Posted 24 March 2011 - 08:28 PM

View Postki1022, on 22 March 2011 - 04:46 AM, said:

I just found a method to do it!!

If you have shell/ssh access to your phone, enter this command:

echo 1 > /dev/qct_diag_enable

..and your phone should go into USB diag mode. when you are done just:

echo 0 > /dev/qct_diag_enable

Nice!

Unfortunately the nice menus that come from the ## dialer codes still don't work, but this method is still good enough for me.
I don't have a hero, but I've got an EVO. Would something similar work for my device?

#6 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 25 March 2011 - 05:20 AM

I'm not positive, but I think this should work on any HTC Cdma phones.

#7 Geewiz

Geewiz
  • Donators
  • 92 posts
  • Country:
    us - United States
  • Device Model:
    Nexus S 4G
  • CM Version:
    CM 10 M2
  • Recovery Image:
    ClockworkMod

Posted 25 March 2011 - 08:21 PM

View PostJWag12787, on 21 March 2011 - 10:05 PM, said:

The only solution I have, when I need to do that, is this:
* Nandroid Backup
* Install Sense ROM
* Do The Commands
* Recover Nandroid Backup

Sorry it isn't easier :(

What Sense ROM would be considered the best to flash if all you're interested in is updating PRL and radios, etc.?  I've been using Fresh..

#8 frozndevl

frozndevl
  • Members
  • 5 posts
  • Device Model:
    HTC EVO
  • CM Version:
    7.0 rc2
  • Recovery Image:
    Amon_RA

Posted 25 March 2011 - 09:20 PM

View Postfrozndevl, on 24 March 2011 - 08:28 PM, said:

I don't have a hero, but I've got an EVO. Would something similar work for my device?
Does the file just need to exist to go into diag mode? I've created the file, but nothing happens. Also, what were using with the DIAG codes? I'm trying to use QPST and it's not registering.

#9 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 03 April 2011 - 07:05 PM

View Postfrozndevl, on 25 March 2011 - 09:20 PM, said:

Does the file just need to exist to go into diag mode? I've created the file, but nothing happens. Also, what were using with the DIAG codes? I'm trying to use QPST and it's not registering.

Yeah, those above commands will create the file if it doesnt exist and either write a "1" or a "0" to it.  If the file=1 then diag mode is on, if the file=0 then diag mode in off.  It works pretty instantaneously for me.  I have an HTC Hero on CM 7.0.0 RC2.  Depending on what mod you have, the file path might be different.  Try different variations, ie: /dev/, /system/dev, /??

#10 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 03 April 2011 - 07:11 PM

View Postki1022, on 03 April 2011 - 07:05 PM, said:

Yeah, those above commands will create the file if it doesnt exist and either write a "1" or a "0" to it.  If the file=1 then diag mode is on, if the file=0 then diag mode in off.  It works pretty instantaneously for me.  I have an HTC Hero on CM 7.0.0 RC2.  Depending on what mod you have, the file path might be different.  Try different variations, ie: /dev/, /system/dev, /??


Also, this should be obvious but make sure you have the right communications drivers installed on your PC first.

#11 frozndevl

frozndevl
  • Members
  • 5 posts
  • Device Model:
    HTC EVO
  • CM Version:
    7.0 rc2
  • Recovery Image:
    Amon_RA

Posted 04 April 2011 - 02:40 PM

View Postki1022, on 03 April 2011 - 07:11 PM, said:

Also, this should be obvious but make sure you have the right communications drivers installed on your PC first.
I have to assume that I have the correct drivers if I am able to use QPST when a Sense ROM is installed. Also, basic question, how can I tell if diag mode is enabled? On a Sense rom, the DIAG screen shows up, would I just have to detect my ports here?

Also, tried a few variations, but both / and /system are read-only.

#12 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 05 April 2011 - 03:19 PM

View Postfrozndevl, on 04 April 2011 - 02:40 PM, said:

I have to assume that I have the correct drivers if I am able to use QPST when a Sense ROM is installed. Also, basic question, how can I tell if diag mode is enabled? On a Sense rom, the DIAG screen shows up, would I just have to detect my ports here?

Also, tried a few variations, but both / and /system are read-only.

yeah, you already have the right drivers then.  How exactly are you going about entering the command?  You have to do it from a root terminal or ssh, I don't think it will work by creating a file in Root Explorer, etc.

#13 Fwuffywabbit

Fwuffywabbit
  • Members
  • 1 posts
  • Device Model:
    Motorola Droid
  • CM Version:
    Moto Droid
  • Recovery Image:
    TWRP

Posted 12 April 2011 - 12:29 AM

I am in a similar boat.  I have an HTC Desire and can't get it into diag mode.  I ran the command through terminal emulator as su and it doesn't say anything.  Just moves to the next line like it completed but then what?
I tried dialing ##DIAG# but it didn't do anything other than try to call the number.

Suggestions?

#14 gdemi

gdemi
  • Members
  • 1 posts
  • Device Model:
    droid
  • CM Version:
    2.2.1
  • Recovery Image:
    ClockworkMod

Posted 12 April 2011 - 03:22 PM

View Postki1022, on 22 March 2011 - 04:46 AM, said:

I just found a method to do it!!

If you have shell/ssh access to your phone, enter this command:

echo 1 > /dev/qct_diag_enable

..and your phone should go into USB diag mode. when you are done just:

echo 0 > /dev/qct_diag_enable

I have a Hero with CM7.0.0-RC2, and I  am using the above with ADB, simply bring up "ADB Shell", and do a copy/paste  on either of the above commands, it will immediately turn DIAG Mode on or off (causing ADB to exit), I monitor the Ports in Device Manager (Windows XP) and watch the "HTC Diagnostic Interface" port turn on and off.

#15 jrizzelcincy

jrizzelcincy
  • Members
  • 1 posts
  • Device Model:
    droid eris
  • CM Version:
    cyanogen cm7
  • Recovery Image:
    Amon_RA

Posted 13 April 2011 - 09:50 PM

View Postki1022, on 22 March 2011 - 04:46 AM, said:

I just found a method to do it!!

If you have shell/ssh access to your phone, enter this command:

echo 1 > /dev/qct_diag_enable

..and your phone should go into USB diag mode. when you are done just:

echo 0 > /dev/qct_diag_enable

Nice!

Unfortunately the nice menus that come from the ## dialer codes still don't work, but this method is still good enough for me.
hey thanks this works great on the eris as  well!!
you can do it from terminal emulator just type su first give it su permission and type it in with it plugged in to the computer and start QPST!!!

#16 Automator_0

Automator_0
  • Members
  • 1 posts
  • Device Model:
    HTC Eris
  • CM Version:
    CyanogenMod 6.0.0-Desirec-RC1
  • Recovery Image:
    ClockworkMod

Posted 19 May 2011 - 03:36 PM

Thank you!!! I am so burnt on the nandroid shuffling....now just gotta get epst working....i almost got it working.....

Sent from my Eris FroshedYo v11

#17 m4f1050

m4f1050
  • Members
  • 2 posts
  • Country:
    us - United States
  • Device Model:
    Shift4G,ZT-C97,RK3066
  • CM Version:
    CM7,CM10
  • Recovery Image:
    ClockworkMod

Posted 27 July 2011 - 03:06 AM

Try this:



To enable diag mode:

echo 1 > /sys/devices/virtual/usb_composite/diag/enable



To disable diag mode:

echo 0 > /sys/devices/virtual/usb_composite/diag/enable

#18 ki1022

ki1022
  • Members
  • 17 posts
  • Country:
    us - United States
  • Device Model:
    HTC Evo 4G
  • CM Version:
    CM 7.2.0 RC1
  • Recovery Image:
    ClockworkMod

Posted 26 October 2011 - 04:57 PM

View Postm4f1050, on 27 July 2011 - 03:06 AM, said:

Try this:



To enable diag mode:

echo 1 > /sys/devices/virtual/usb_composite/diag/enable



To disable diag mode:

echo 0 > /sys/devices/virtual/usb_composite/diag/enable

Since starting this thread I have since upgraded to an Evo and the above method worked for me.  Thanks

#19 ziauddin

ziauddin
  • Members
  • 1 posts
  • Device Model:
    |3|
  • CM Version:
    5.5
  • Recovery Image:
    Cyanogen

Posted 12 May 2013 - 09:36 PM

View Postki1022, on 21 March 2011 - 06:26 PM, said:

I am running CM 7.1 RC2 on my HTC Hero.  When I enter ## codes (##3282#, ##3424#, etc) on my dialer keypad nothing happens.  Is there a way to fix this?

If there ISN'T an easy way to fix the ## codes, is there at least a work around so I can put the phone into ##DIAG# mode so I can use tools like QXDM/QPST/CDMA WS??

*#*#3424#*#* will do it