yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] davidchu2000:
Hi,

I tried the sample code posted in this thread. It works only if I used

LineCallParams.dwBearerMode = LINEBEARERMODE_VOICE;

LineCallParams.dwMediaMode = LINEMEDIAMODE_INTERACTIVEVOICE;

combination. I got the RING message. However, the original:

LineCallParams.dwBearerMode = LINEBEARERMODE_VOICE;

LineCallParams.dwMediaMode = LINEMEDIAMODE_DATAMODEM;

didn't seem to work.

Do I miss something? (I think I have successfully killed the cprog.exe already)

Thanks,

- David
[Windows Mobile Development and Hacking General] vangelderp:
That means you are making a voice call.

So is the problem that you can not make a data(modem) type call ?

Check that you have data enabled on your SIM and also that under Settings -> Connections -> CSD Line Type it is set correctly. In the UK it is 9600 bps(v.32) and Non-tranparent, but I was told it is v110 is the states.

Let me know how you get on.
[Windows Mobile Development and Hacking General] Peter Beedell:
Is there any chance that somebody could compile this TAPI code as an object I could consume in C#? I have tried, but I am not even able to compile the example in C++... it's just not my world!

I would be eternally gratefull - and I bet a whole bunch of other guys who just want to quickly establish a data connection over GSM from C# (or VB?) would be also! It should have been in the phone.dll if you ask me!
[Windows Mobile Development and Hacking General] nutitija:
compiled sample

Hey could somebody compile the tapi code for me in eVc++ or MFC ?? because i am really struggling. Plus what is toolbox.h i dont seem to have it ?? can somebody please help ??

thanks guys
[Windows Mobile Development and Hacking General] vangelderp:
This is an old post of mine, don't worry about Toolbox.h that was for the program I was writing and it has nothing to do with Tapi.

This sample code was not meant to compile, after you you won't have function VTPrint but I hope you can guess that just shows text. It was just posted to demonstate the order of functions needed to get a modem connection.

I built all this Tapi code into a DLL and I have it all presented with the eVC 3.0 build files in this post, this code will compile as presented and is just a zip of all the project files of a single sample application.

http://xdaforums.com/viewtopic.php?t=18978

Have a look there.

Cheers

Paul
[Windows Mobile Development and Hacking General] nutitija:
during a data call when using TAPI can u make some kind of AT command request ??? and retrieve the data from that answer ??? And do i need some TAPI app on the remote unit to send the data back ?

i am trying to access a remote unit ( GPS RX and GSM TX )
[Windows Mobile Development and Hacking General] vangelderp:
I don't really understand your question that well.

But AT commands have nothing to do with TAPI, so any question saying can TAPI send an AT command for etc -- The answer must be no.

All TAPI does is gives a Handle that can be used with ReadFile and WriteFile for receiving and sending data over the modem.

So TAPI will dial a number and establish a DataModem connection, then on Connect it can provide the handle for you to direct read/write requests to. Once the link is established you just treat the handle as if it was a file handle returned from a CreateFile command.

As said earlier all this has nothing to do with AT commands.
[Windows Mobile Development and Hacking General] nutitija:
During a data call should ic onnect via COM 1 or COM 9 if i'm using TAPI ?? Would you have any sample code i could have a look at ? I'm a bit lost at the moment .... with LineGetID too ...
[Windows Mobile Development and Hacking General] IIIu30uD:
you can't use COM2 or COM9 via TAPI cause COM2 and COM9 masked by RIL

about lineGetID look http://xdaforums.com/viewtopic.php?t=9761
[Windows Mobile Development and Hacking General] nutitija:
ok thanks - so if i cant use COM1 or COM9 in this case then i'm guessing that i shall pass a string (lpszPortName) just like the example on this post.

// Open the serial port.
hPort = CreateFile (lpszPortName, // Pointer to the name of the port
GENERIC_READ | GENERIC_WRITE,
// Access (read-write) mode
0, // Share mode
NULL, // Pointer to the security attribute
OPEN_EXISTING,// How to open the serial port
0, // Port attributes
NULL); // Handle to port with attribute
// to copy

But what should the string lpszPortName be initialized to ? Or am i totally wrong ?[/quote]
[Windows Mobile Development and Hacking General] IIIu30uD:
L"COM9:" for COM9

but not with TAPI

with TAPI you have not open any COM-ports

you must use lineGetID
[Windows Mobile Development and Hacking General] nutitija:
//PART 7 - TIMEOUT AND DCB SETTINGS

PortDCB.BaudRate = 115200;
PortDCB.fBinary = TRUE;
PortDCB.fParity = FALSE;
PortDCB.fOutxCtsFlow = FALSE;
PortDCB.fOutxDsrFlow = FALSE;
PortDCB.fDtrControl = DTR_CONTROL_ENABLE;
PortDCB.fDsrSensitivity = FALSE;
PortDCB.fTXContinueOnXoff = FALSE;
PortDCB.fOutX = FALSE;
PortDCB.fInX = FALSE;
PortDCB.fErrorChar = FALSE;
PortDCB.fNull = FALSE;
PortDCB.fRtsControl = RTS_CONTROL_DISABLE;
PortDCB.fAbortOnError = FALSE;
PortDCB.ByteSize = 8;
PortDCB.Parity = NOPARITY;
PortDCB.StopBits = ONESTOPBIT;

if (!SetCommState (hPort, &PortDCB))
{
MessageBox (_T("unable to configure com port "));
return FALSE;
}

GetCommTimeouts (hPort, &CommTimeouts);

CommTimeouts.ReadIntervalTimeout = MAXDWORD;
CommTimeouts.ReadTotalTimeoutMultiplier = 0;
CommTimeouts.ReadTotalTimeoutConstant = 0;
CommTimeouts.WriteTotalTimeoutMultiplier = 20;
CommTimeouts.WriteTotalTimeoutConstant = 1000;

if (!SetCommTimeouts (hPort, &CommTimeouts))
{
MessageBox (_T("unable to set comport parameters"));
return FALSE;
}

Are the COM and Timeout settings necessary when using TAPI ? because i am getting an error message at the !setCommState function.

I use lineGetID to retrieve the Handle to the Comm then i try to use readFile but the operation is unsuccesful.

Anyhelp from out there ? thanks.
[Windows Mobile Development and Hacking General] IIIu30uD:
Are you sure that you call lineGetID only after connection?
[Windows Mobile Development and Hacking General] nutitija:
Maybe you are right. I just do lineMakeCall then do lineGetId without waiting for a LINECALLSTATE_CONNECTED message.

I think its because i have troubles implementing the lineCallBackFunc() i dont understand the parameters that need to be passed to it.

void CALLBACK lineCallbackFunc(
DWORD dwDevice, DWORD dwMsg, DWORD dwCallbackInstance,
DWORD dwParam1, DWORD dwParam2, DWORD dwParam3)
{

Anyhelp for this ?? Cheers.
[Windows Mobile Development and Hacking General] nutitija:
I have come through a lot of posts on other forums saying they could not SetCommTimeouts either !!!!

I'm guessing there would be a problem with the Handle. A bit annoying as the lineGetId function returns succesfully so i'm having doubts if this technique is actually possible to implement. Maybe RIL would be easier to use ??

Is TAPI integrated with any GSM capable device ? Because i am trying to contact a remote unit installed in a car that just spits out and NMEA stream.
[Windows Mobile Development and Hacking General] mairaeva:
faster handshake or holding the data call

Hi I m trying to switch between voice and data call quikly (2 different phone numbers).

I can make a voice call, terminate it, and then make a data call in order to switch between them, however, the handshake at the data call beginning takes too much time (approx 25s).

It seems like holding (linehold) the data call won t work.

Is there a way to have a faster handshake (I don t need the whole 9600 bandwith) ? Or to hold and unhold the data call quickly ?

THANX FOR YOUR HELP
[Windows Mobile Development and Hacking General] nutitija:
sorry - when doing a datacall the normal handshake takes 25 - 30 secondes there is no way to make it quicker. maybe GPRS as it is always conencted to the base station
[Windows Mobile Development and Hacking General] mairaeva:
thanx nutitija.

Indeed it seems like it s impossible to male the handshake quicker.

I ve tried the GPRS method, however switching between GPRS and GSM data call is impossible : the xda are class B phones and cannot use GPRS and GSM simultaneously.

In order to switch one has to close the GSM (lineclose) do the GPRS data com and then close the GPRS (how to do that ?) and re open the GSM line to remake the call (lineopen, linemakecall, ...)

By the way, does anyone managed to receive an incoming DATA call ?

THANX FOR YOUR HELP
[Windows Mobile Development and Hacking General] ryhor:
Yes we manage incoming DATA call

look this link

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=141905&SiteID=1
[Windows Mobile Development and Hacking General] mairaeva:
the link you gave me demonstrates that we have to disable the "cprog.exe" which I already kill.

How to answer an incoming data call ?

Thank you.
[Windows Mobile Development and Hacking General] ryhor:
as I know - you have to register your function "in TAPI" (or you can do same in "in RIL").

read more here

http://xdaforums.com/viewtopic.php?p=7857&highlight=#7857
[Windows Mobile Development and Hacking General] patel.nandan:
can any 1 please tell me how can i use the above posted TAPI code in my C# Application?

any kind of help will be appreciated....

Thanks in advance.
[Windows Mobile Development and Hacking General] rain:
RIL makes the call silently...

For a C++ sample take a look at

Windows CE Tools\wce420\POCKET PC 2003\Samples\Win32\Cellcore\CeDialer\

Make a static library out of it and use it in your C# app.

Good luck

Raul
[Windows Mobile Development and Hacking General] patel.nandan:
Hi Raul

thaks for ur above suggetion

but i am not able to run a code in c#.

please give me any other suggetion which can help me make a data call using C#.

any kind of help will be appreciated.

Thanks in advance
[Windows Mobile Development and Hacking General] rain:
Well you need to take out the part you're interested in and make a dynamic Win32 library that exports the procedures for you.

Then in your C# code interface the library like you would do with any other :)

//for example

[DllImport("MyTAPI.dll", EntryPoint = "MakePhoneCall")]

private static extern int APIMakePhoneCall();

//where APIMakePhoneCall - opens the line ,negociate the TAPI version,

and makes the call

Or find a wrap library for TAPI. ;)

Or wait until we launch our wrap of the RIL library on www.teksoftco.com

Cheers,

Raul
[Windows Mobile Development and Hacking General] patel.nandan:
Well raul,

still i am not able to do wht u have posted above.

please explain me.

but i need to ask you follwing things .is using that code

1)Will this code able to send the sender's voice as data to receiver.

2) if possible then can i be able to manupulate a voice which is going/receiving as a data at any end?

please reply ASAP.

Thank You
[Windows Mobile Development and Hacking General] rain:
Hi,

the sample that i pointed out its a simple phone dialer with the 10 digits + # and * . You enter the number in an editbox and dial by pressing the dial button.

Going further, C# is based on several dynamic libraries that export to you all the wrap classes...its all written in C++.

For writing a dll you need to go to start-> new Project-> SmartDevice-> dll and select bellow export symbols.

You need to export VOID MakePhoneCall (LPCTSTR lpszPhoneNum)

and VOID CurrentLineClose () in this sample's case.

Moving forward to voice command dial ... you need to write a separate module using wave API but it will only help you for voice recording and recognition.

The voice comming from the speaker during a call needs to intercepted at a lower level (by writing your own audio driver) but HTC has locked this path so...

Good luck

Raul
[Windows Mobile Development and Hacking General] patel.nandan:
Hi Raul,

i really apreciate ur help,

but still i am getting the problem to make that code run in c#.

see i am a new for TAPI and based on ur all post and ur reply i think u have very indepth knowledge for TAPI.

i am struggling with this data call issue since last 15 days and i have to finish other phase of project including this data call feature.

so if u have any sample or any small project on data call for mobile technology then please let me know.

i am in big trouble now.

if u will help in this issue it will be very great help for me.
[Windows Mobile Development and Hacking General] rain:
Ok,

lets take it step by step.

1) what exactly do you want to achieve?

a)a data outgoing call

b)a voice outgoing call

for a) the code is here all packed up

http://xdaforums.com/viewtopic.php?t=18978

in a dll and you already have an Visual Basic sample that is interfacing the dll just like you're supposed to in C#

for b) i can pack you a dll

Please detail what you want to achieve ;)

Cheers,

Raul
[Windows Mobile Development and Hacking General] patel.nandan:
Hi Raul,

i wanna do (a).

wht exactly i want to do is, i need to create 1 application for windows mobile which can make a data call and also receive a data call.

but i want open my own dialer and my own receiver.

i dont want to go with OEM dialer/receiver.

so please let me know how i can take it further with that link.
[Windows Mobile Development and Hacking General] rain:
Hi,

Take the dll from the ARMRel folder and put it togheter with your app on the device.

You need to use something like

#region Imports

[DllImport("ez_tapi.dll", EntryPoint = "Ez_tapi_Dial")]

private static extern int MyTAPIDial(string szPhoneNumber);

#endregion

So now MyTAPIDial will be a pointer (instance) to that function exported by the dll (you can check out the functions the dll is exporting in the *.def file)

You need to make the dll import part for every API you want to use from that dll.

Check the ez_tapi.cpp file for the headers of the functions so you can declare corectly your pointers (instances).

Take my advice and install eVC or the Visual C++ part for Visual Studio as C# is limited and you will most probably need some straight API C++ dll in the future and start making some simple apps just to get the idea of it...

Nobody say its easy but C# is not the world...

Cheers,

Raul
[Windows Mobile Development and Hacking General] patel.nandan:
Ok Raul,

Thank you so much for ur help.

i will try it and let u know the progress.
[Windows Mobile Development and Hacking General] patel.nandan:
hi,

as per ur last post my application will work for dialing data call

but now i am facing problem with receiving data call.

with the dialer i am able to make a data call but the receiving end device not accepting the data call.

so now i think i need to make one recogniser(receiver) which recognise the data call and pops up with the accept and reject option.

so this is the status...

so do u know how to recognise this data call at receiving end?
[Windows Mobile Development and Hacking General] rain:
Glad to hear ;)

Now what you need to do its a little debug work...

The TAPI initialization and callback setting on the answering device its the same ... the thing you need to intercept in your TAPI callback is the incoming data call.

http://www.teksoftco.com/forum/viewtopic.php?t=20

points to a debug function i use quite often -> you can add it after each line in the dll. Make a simple application on the answering machine and add debug lines in the TAPI Callback so you can see the values of the function parameters at entry point when incoming data call occures.

A case or if statement to threat it and you should be almost there ;)

Good luck!

Raul
[Windows Mobile Development and Hacking General] pavanp:
CeDialer

I wanted to know ,what exactly Cedialer(sample program in SDK) does ..??

Could you plzz tell me ,can i test it on emulator or we have to use device.....

Thank you,
[Windows Mobile Development and Hacking General] satya_wolverine:
Caller ID retrieval

Hi i am pretty new to the GSM world and its terminology, there are few things i would like to know

(1). Is it possible to retrieve the ID of the caller using the TAPI

(2). Does GSM have any mechanism to retrieve the coordinates of the caller's location(IP or some means of tracking) assuming that the caller doesnot have a GPS built into his phone

i want to do a final year project for WM6 using which i should be able to determine the ID of the caller and his location, if i get the coordinates of his location then the next step would be calling the google Maps API with the coordinates, please help out
[Windows Mobile Development and Hacking General] emamarz:
help me!!!!!

Hello guys,

I need to make a data call using c #. I followed the above steps and I managed to make the call using ez_tapi.dll but when I go to send these data are not sent. Why?

I think the problem is the handle value "mHandle" I noticed to be zero. Am I wrong?

help me please ...
[HTC Rezound] Gig103:
Does anyone know what might cause this? Is it a problem with my USB port? I noticed it with my home and my work wall chargers.

Before I call Verizon (whom it has been reported is out of Rezounds, and I'm unlocked/rooted), I was hoping for some advice.

Thanks.
[HTC Rezound] Gig103:
An update -- now after I unplug it from an actual PC, sometimes the USB/Charge and USB Debugging symbols remain in the Notifications bar. Could that mean the pins on my actual microUSB port are defective? I've now tested with a 2.1A wall unit too, and every charger I've tried has been a new USB cord.

Oh and just to rule out software I tried in Safe Mode too, no help. Anyone have an idea aside from calling up Verizon (which I will do after my long weekend out of town)?
[HTC Rezound] PhantasmRezound:
I've developed the same issue on both of mine I've had. My solution was to simply run a kernel with a Force AC Charge option built in. Have to be careful, however, as the option may cause excessive heating of the battery if you do any intense usage under charging status (playing a game, trying to run GPS navigation, etc.) It rarely poses an issue, but just a heads-up.
[HTC Rezound] jgvargas75:
You should never use your phone while charging it alwYs turn it off and set it down. When you are charging ylur phone resistors and capacitors are heatingbup your phone now if you are on it talking on it basicly you are heating up the whole board and if it gets hit enough it will losen the solder from the joint and may cause a chip creep effect on the board causi ng varios problems that are very hard to troubleshoot
[HTC Rezound] jcampolo:
USB cable

Try a different USB cable. I've had cables that would charge only, no data. Drove me nuts, I thought it was HTC drivers. Swapped cables fixed it.
[HTC Rezound] shrike1978:
The charger is presenting itself in a way that looks like USB. This is very common because iDevices will not charge at all unless the charger does this, so if a manufacturer wants to support iPhones/iPads, they make the charger in this way. Unfortunately, Android devices limit themselves to 500mA when the charger is made like this. Yes, many kernels have fast charge options that make the phone ignore this, but my advice is to get a charger made specifically for Android. Use the one that came in your HTC box as a wall charger if you can. Get the Verizon branded car charger...it charges Android devices correctly.
[HTC Rezound] PhantasmRezound:
Yeah, there are many chargers that leave the USB contacts active. Thing is, I've had an HTC branded one that used to show AC at first turn USB on me... Everything else shows USB too unless I force AC in the kernel. Seems like some other condition, degradation or something.
[HTC Rezound] Gig103:
Thanks for the responses so far. I have tried three different wall chargers, each with a different USB cable. Other phones show AC but not mine. At the moment, plugged into the HTC wall wart, I am being asked of I want "charge only" or "disk drive".

Could this be a software related issue? It was mentioned that some ROMS have a force - AC but I am on the newest non Global RUU, unlocked S On, and rooted with TWRP as recovery.
[HTC Rezound] Gig103:
Bump -- is there any chance the RUU and then unlocking and putting TWRP on could cause this issue? Verizon is trying to get me to run a factory reset to "fix it".

Ugh.
[HTC EVO 3D] XandroidX:
http://news.cnet.com/8301-1035_3-57573783-94/a-new-dimension-samsung-galaxy-s4-may-have-3d-camera/

http://www.android.gs/galaxy-s4-3d-camera/

Apperently, Samsung patent a ne 3D camera tech

I'm still have my Evo 3D its holding strong, my contract is up and if this rumor is true, when I upgrade to the Samsung Galaxy S4 I will be able to continue capturing 3D pictures. Maybe we can finally have 3D games developers might take 3D more seriously because its a Samsung
[HTC EVO 3D] ipsuvedi:
I think no....SGSIV is not going to have 3d camera...yes there is 3d effect in camera function ...which is not real 3d... but 3d effect....i got this news from trusted sourse...

I can also confirm otherthing that Galaxy s iv wiil have..

Hardware:

Octacore Exynos 5 SoC

PowerVR SXG 544

2 gb ram

16/32/64 memory

4.99 PHOLED display

13mp back +2mp front Camera

Metal like side cover

Curved body from back side

2600 mAh battery

138 gram weight

S4 software specs:

Front back camera simultenious pic and vid taking

Eye tracking

Finger tracking

Helth programme

Gesture traking

Tilt traking

Pic or vid sending from front and back camera when emergency..

Remote controll

Daily exercise programmes

3d, photosphree, pano etc modes in camera

Jb 4.2.1 at launch

And more...

All these are Confirmed Galaxy s4 features i got from trusted source

If you dont beleive me....just remember me...wait one more day..you will know the same on official annoucement

But 3d is only effect for camera..not 3d cam or display...:cool:

Please click Thank if i Helped U anyhow"
[HTC EVO 3D] Miqas:
Its called Dual Camera, it has 3d effect. I think that will be abble to take a 3d shot, but it doesnt have 3d screen like evo3d.
[HTC EVO 3D] ipsuvedi:
As you can see my reply that i already mentioned thst before launch...and now after launch all the specs i wrote came true...:D
[HTC EVO 3D] DjDom:
That was pretty accurate.

Well done.
[Samsung Galaxy Fit GT 5670] anonymooos:
what's up guys !!

i've rooted my cell with superoneclick on froyo os and back it up then i installed gingerbread ... but when i try to install WCM it gives me ""unable to connect :error 5"" on odin ... is that mean my phone is not rooted anymore ?? what shoold i do to install it ??
[Samsung Galaxy Fit GT 5670] Rohit02:
Dude its CWM. ;)

you installed gingerbread rite?? was it wrkng fine?? if yes then you have rooted it correctly dunno wats the prob then.. also have a look at this GalaxyFitpedia
[Samsung Galaxy Fit GT 5670] anonymooos:
i fixed the prob only on rebooting my lap i' don't know where the prob is coming from ... but it's ok ... i installed gb nightly V9 but i thing it's not working well bcz of the devlopers ... i reboot my phone after the first installation it dnt reconise the sim card ... and also after unlockoing the device it stocks on android logo so i take it off and going back to gingerbread waiting for the right costum rom ... have you any idea about that ?? and if you can suggest me a good costum rom ...
[Samsung Galaxy Fit GT 5670] Rohit02:
Dude aokp by Ravi was WIP, so it had bugs.

Go for cm10.1 latest build its the smoothest and fastest rom till now, like official cm7 :)

use crossbreeder script and int2ext4+ and just relax ;)
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] soulzero:
When it's playing at its highest or second highest level te phone will vibrate to the music..

Why is it doing this? This is with the phone speaker of course.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] Glebun:
like, the actual vibration motor is going off? or speaker crackling?
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] soulzero:
Yes the actual vibration motor.. This is using poweramp.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] CalInTheZone:
Disable Auto-haptic.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] DjeMBeY:
Visualisation 4D effect :D cool :D
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] soulzero:
So it is a feature! Pretty cool.