Small MyPhoneExplorer for PDA

For user who dont speak german please use this part of my forum
Antworten
BartolomeoPL

Small MyPhoneExplorer for PDA

Beitrag 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:
FJ
Site Admin
Beiträge: 32117
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag 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.
BartolomeoPL

Beitrag 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...
FJ
Site Admin
Beiträge: 32117
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag 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
BartolomeoPL

Beitrag 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???
FJ
Site Admin
Beiträge: 32117
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag 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.
BartolomeoPL

Beitrag 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 .
FJ
Site Admin
Beiträge: 32117
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag 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.
frahman
Beiträge: 2
Registriert: Mi 26. Mai 2010, 00:57
Wohnort: Indonesia

install MPE on WM to connect SE via bluetooth

Beitrag von frahman »

Is this mean that MPE can installed on WM and accessed SE to do things like MPE installed on PC ?
:shock:

regards
FJ
Site Admin
Beiträge: 32117
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol

Beitrag von FJ »

The last post was in 2008 so i think BartolomeoPL is no more working on this idea
Antworten