BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 05-24-2007, 10:46 AM   #1 (permalink)
New Member
Join Date: Feb 2006
Location: Colombia
Model: 8800
Carrier: Cingular
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I interrupt a phonecall through AT Commands?

Please Login to Remove!


What I need to do is the next:
Cancell and active call
Launch a new call and then send a dtmf tone (like the phone extension)
I have already done it with the java class EventInjector, but this class is only available in Blackberry Pearl and Blackberry 8800, and only works fine
in 8800 model, that`s why Im trying other methods.
I have read that I could done this tasks using AT Commands. I know the command ATH can cancel a phone call.
The problem that I have now is that I can not get the available com ports in the simulator using the next code:
String ports = System.getProperty("microedition.commports");"Available ports: "+ports,
Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), 3000,
Status.GLOBAL_STATUS, true, false, 2);
This shows nothing.
Im trying to send the AT command like this:
CommConnection commConn;
commConn = (CommConnection)"comm:COM4;" +"baudrate=115200", Connector.READ_WRITE,true);
iStream = commConn.openInputStream();
oStream = commConn.openOutputStream();
String sMessage = "ATH";

This throws a nullpointer exception.

When I look at the Device Manager I can see a port called RIM Virtual Serial Port(COM4).

Can anybody help me please with this problem?
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Siemens-6es7331-7kf02-0ab0-e1-SIMATIC-s7-6es7-331-7kf02-0ab0-Analog-Input SM331
Siemens-6es7331-7kf02-0ab0-e1-SIMATIC-s7-6es7-331-7kf02-0ab0-Analog-Input SM331 pictureSIEMENS NEW TP177 6AV6 640-0CA11-0AX1 6AV6640-0CA11-0AX1 HMI Touch Screen
SIEMENS NEW TP177 6AV6 640-0CA11-0AX1 6AV6640-0CA11-0AX1 HMI Touch Screen pictureUsed 1Pc Siemens Power 6SE7022-1EP50-Z Tested
Used 1Pc Siemens Power 6SE7022-1EP50-Z Tested pictureSIEMENS 544-562-40 4" Immersion Temp Sensor AA0944
SIEMENS 544-562-40 4Siemens Vacuum Pump Blower Servo Motor Elmo-C G 2BH1
Siemens Vacuum Pump Blower Servo Motor Elmo-C G 2BH1 picture

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.