[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

keypress

How can I get the input key from a phone pad after connected ? Is it ASCII code ?

Andrew
0
andrewyu
Asked:
andrewyu
  • 5
  • 2
  • 2
  • +1
1 Solution
 
OttaCommented:
This seems to be a popular question, i.e.,
http://www.experts-exchange.com/topics/comp/os2/programming/Q.10071985
asks a quite-similar question,
but nobody has (yet) answered that question.
0
 
publicCommented:
Phone key pad generates touch tone electrical tones, or switch breaks in pulse mode. Neither is ascii code, or can be directly read by a computer. You need youch tone decoder box with a computer interface.
0
 
andrewyuAuthor Commented:
But, are they ASCII code after decode by modem ?

Andrew
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
OttaCommented:
> Neither is ascii code, or can be directly read by a computer.

Huh?  I just checked my voice-mail, and
the computer asked me to use the keypad to enter my "password".

Obviously, that computer was(!) able to convert the tones
generated by the keypresses into some sort (ASCII?) of codes,
so that my password could be verified ?!?!
0
 
andrewyuAuthor Commented:
If I read this from com port which is connect to modem, is it ascii code ?

Andew
0
 
rbrCommented:
If your modem has a MFT-convertion, this could be read in from the serial port. I used such a modem long time ago and it returned the numerical value of the key (not ascii). It depends on your modem.
0
 
andrewyuAuthor Commented:
What is MFT ?

Is the Hayes modem support this ?

Andrew
0
 
andrewyuAuthor Commented:
What is MFT ?

Is the Hayes modem support this ?

Anyway, thank you very much !

Andrew
0
 
rbrCommented:
MFT=are the tone codes you telephone sends when a key is pressed. This has nothing to do with a Hayes modem. I had a PSI Comstation (sorry I don't know which model) which was able to convert this codes.
0
 
andrewyuAuthor Commented:
So, after the Hayes modem decode the tone and send to the serial port, are they ASCII code ?

Andrew
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 5
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now