General Development

Mobile Bluetooth Connectivity – dartsman

dartsman

Member

Posts: 484
From: Queensland, Australia
Registered: 03-16-2006
I'm just wondering about Bluetooth connectivity from the PC to mobile devices. I am using C# and have been able to connect (using the SerialPort) to my own phone and send 'AT' commands to my phone to get information back from it.

My question is how do I know I'm connected to the correct phone? Like each time I connect and carry out AT commands, I've always been worried that other phones in the area might be asked as well. I know 2bros was looking into mobile connectivity and I would love to hear from him about this (even in other languages).

Also if anyone else knows anything about this I'd love to hear your thoughts on it. My main interest is in writing the program that can connect to my phone so that I could do faster J2ME development with the wireless toolkit (like a toolkit of command-line apps that do things like send a program to a phone, find my specific phone, etc.).

BTW 2bros, I sent you a PM and email a while ago but I don't think you've got them.

------------------
jonwarner.net

kenman

Member

Posts: 518
From: Janesville WI
Registered: 08-31-2006
I know that 2bros has actually been working on this and may have some suggestions for you. I am not sure that the PM system on the site works, I have not been able to send/recieve PM's for quite some time.

I'll send him a note to look over here to maybe give you some help if he can, but he is a very busy dude. . .

------------------
Howdy all! Check out http://art.twobrotherssoftware.com/shs.html, my latest CD.

If you ain't in the forums, you in the againstums :)

dartsman

Member

Posts: 484
From: Queensland, Australia
Registered: 03-16-2006
thanks

------------------
jonwarner.net

TwoBrothersSoftware

Member

Posts: 141
From: Janesville, Wi USA`
Registered: 08-05-2006
quote:
Originally posted by dartsman:
I'm just wondering about Bluetooth connectivity from the PC to mobile devices. I am using C# and have been able to connect (using the SerialPort) to my own phone and send 'AT' commands to my phone to get information back from it.

My question is how do I know I'm connected to the correct phone? Like each time I connect and carry out AT commands, I've always been worried that other phones in the area might be asked as well. I know 2bros was looking into mobile connectivity and I would love to hear from him about this (even in other languages).

Also if anyone else knows anything about this I'd love to hear your thoughts on it. My main interest is in writing the program that can connect to my phone so that I could do faster J2ME development with the wireless toolkit (like a toolkit of command-line apps that do things like send a program to a phone, find my specific phone, etc.).

BTW 2bros, I sent you a PM and email a while ago but I don't think you've got them.


Have not tried anything under C# - I find the java code a little troubling - although netbeans 6 beta 2 has lots of examples using it.

First bluetooth devices connect automatically. So those other phones are in the network somewhere.

In java you discover devices and they tell you thier name and unique ID (UID)

You then look for the service you want

the service then should know how to talk to each other,

Mike

dartsman

Member

Posts: 484
From: Queensland, Australia
Registered: 03-16-2006
thanks man, I'll give it a try hopefully this weekend.

Have you done any work on mobile devices themselves? like in J2ME? I would love to be able to make a J2ME class thats takes the current image on the mobile screen and save it to the phone itself as a jpg. Then I can take real screenshots on my mobile phone of my own apps.

------------------
jonwarner.net

TwoBrothersSoftware

Member

Posts: 141
From: Janesville, Wi USA`
Registered: 08-05-2006
quote:
Originally posted by dartsman:
thanks man, I'll give it a try hopefully this weekend.

Have you done any work on mobile devices themselves? like in J2ME? I would love to be able to make a J2ME class thats takes the current image on the mobile screen and save it to the phone itself as a jpg. Then I can take real screenshots on my mobile phone of my own apps.


The best way to do that is use an emulator - get netbeans it has one - and do a regular screen shot. Java in J2ME runs very much 'in the java sandbox' so I think a hack like that would be difficult.

But yes j2ME is an interesting and fun enviroment. Beggining J2me platform from novice to professional is the book I started with.

Newbeans 6 beta 2 has a nice bluetooth demo that I am looking at right now.

dartsman

Member

Posts: 484
From: Queensland, Australia
Registered: 03-16-2006
yeah, the only problem I have with running it through an emulator is that it's just not the real deal, plus I haven't been able to find an emulator that has my device's screen resolution (I've only recently figured out a very easy method of drawing to any resolution in C#, theory would be the same for J2ME so I'd just have to adapt it to my J2ME apps)..

I used to use NetBeans, I'll have to check it out again. Are the demo's you speak of with the mobility add-on or just Java examples?

------------------
jonwarner.net

TwoBrothersSoftware

Member

Posts: 141
From: Janesville, Wi USA`
Registered: 08-05-2006
quote:
Originally posted by dartsman:
yeah, the only problem I have with running it through an emulator is that it's just not the real deal, plus I haven't been able to find an emulator that has my device's screen resolution (I've only recently figured out a very easy method of drawing to any resolution in C#, theory would be the same for J2ME so I'd just have to adapt it to my J2ME apps)..

I used to use NetBeans, I'll have to check it out again. Are the demo's you speak of with the mobility add-on or just Java examples?


You have to install the mobility pack which is included with netbeans 6 beta 2. I think you can tweak the settings of the emulator. Ideally your program needs to ask the machine what resolution it supports - as every device is different.

Mike

spade89

Member

Posts: 561
From: houston,tx
Registered: 11-28-2006
hey how do you connect a phone directly(without bluetooth) and how do you configure it or back it up?

using linux i can use my cell phone(motorolla v360)to connect to the internet
(although it is 9.6kbps approximately) but i don't know how to do that in windows?

------------------
John 14:6

Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me.

dartsman

Member

Posts: 484
From: Queensland, Australia
Registered: 03-16-2006
Your phone probably would have come with a USB cable and a CD, install the software on the CD and then you should just be able to backup your phone to the computer.

2bros, if you are on msn and don't mind having a good ole yarn on there I've love it if you would add me. mine is my [CCN username]@hotmail.com

------------------
jonwarner.net