Seite 1 von 1

Small MyPhoneExplorer for PDA

Verfasst: Fr 24. Okt 2008, 23:15
von BartolomeoPL
I'm trying to make program like MyPhoneExplorer but for Windows Mobile 6.
Is it possible? Is it possible to connect by BT with phone?
Main ideas are:
- calling by PDA (using typed number or chosed contact from PDA, not phone - phone like modem only).
- receiveing connections by PDA. Using PDA's speaker and mic of course.
- sending and receiveing SMS (maybe... it is not so very important).

But... how to do it? Where can i get information about methodes? I dont know how to connect to phone, maybe there are some plugins and so on for MSVisual studio?

and sorry for my english... :oops:

Verfasst: Sa 25. Okt 2008, 06:19
von FJ
First you should find a way to connect to other devices with Bluetooth and the service "Serial connection". If this is done you can open a serial Port (like a modemport) and you can do anything what you want with the connected phone. Check the developerpages of SE, there you'll find the AT-Commandlinerefrence.

Verfasst: Sa 25. Okt 2008, 10:34
von BartolomeoPL
Oh thx you for tip :) .
But - I'm Delphi programmer. More: I made only database applications :(
So everything is new there:
- MS Visual studio, and C#
- connecting to device
- and so on... ;)

I checked developerpages of SE before I post here, but i cant find anything...
I please (if you have some time) can you get me link to AT-Commandlinerefrence ? If it is important my phone is SE K800i...

Verfasst: Sa 25. Okt 2008, 12:07
von FJ
If you don't know how to connect a modem then you have to learn it. Its a general task, not my job to explain this to you - besides this i think its very diffrent how Windows accesses a modem.

Did you ever heard from Google ? If you search for "AT-Commandlinerefrence" then this is the 2nd match: https://developer.sonyericsson.com/getD ... ocId=65054

Verfasst: Di 28. Okt 2008, 20:32
von BartolomeoPL
Ok I connect but... how read answer? I do it this way:

Code: Alles auswählen

COM.Open(); // COM is component of System.IO.Ports
if (COM.IsOpen) label1.Text = "Connected"; //...  yea it is connected - as on PDA as on phone there are icons of BT connection.
COM.WriteLine("AT*=?");
System.Threading.Thread.Sleep(500);
label2.Text = COM.ReadLine();
And component label2 get text... : "AT*=?" .
What is wrong???

Verfasst: Di 28. Okt 2008, 22:46
von FJ
OK, you are on the right way. I'm using other sources so i cannot tell you whats exactly the problem. I would try the command AT+CBC cause your command could take longer than 500ms.

Maybe it would be better to make communication eventbased so you could also register incoming sms and other tasks. MyPhoneExplorer does it this way:
- send the data to the phone
- always listen to DataArrival (i don't know if your library support this) and write the incoming data to a buffer
- go into a loop and check if the buffer is filled.

Verfasst: Mi 29. Okt 2008, 01:21
von BartolomeoPL
Ok, mistake was in this line:

Code: Alles auswählen

COM.WriteLine("AT*=?[color=red]/r[/color]");
And viewing is now:

Code: Alles auswählen

while (COM.BytesToRead != 0)
    {
          listBox1.Items.Add(COM.ReadLine());
    }
But first line is always my sended command, it is normal?
To delete it i read first line just after COM.WriteLine .
Hmm it is not very smart... isnt it?

I have something like DataReceived event.
Thx for your help :D .

Verfasst: Mi 29. Okt 2008, 19:07
von FJ
The first line is always the command which you sent - thats normal.

In MyPhoneExplorer i made for normal AT-Commands a parser. The Answer is complete when the phone sends a single line with OK, ERROR, NO CARRIER,...
Please check the Commandlinerefrence for all possible answers - and don't forget +CMS and +CME-errors.

install MPE on WM to connect SE via bluetooth

Verfasst: Di 5. Okt 2010, 05:31
von frahman
Is this mean that MPE can installed on WM and accessed SE to do things like MPE installed on PC ?
:shock:

regards

Verfasst: Di 5. Okt 2010, 16:19
von FJ
The last post was in 2008 so i think BartolomeoPL is no more working on this idea