How to send AT-Commands without pairing

9 views
Skip to first unread message

Ray-Kay

unread,
Jul 18, 2008, 5:46:00 AM7/18/08
to bluecove-users
Hallo,

I used a RFCOMM connection to send AT-Commands to a mobile:

String url = "btspp://001D286F27DB:
7;authenticate=false;encrypt=false;master=false";
StreamConnection connection = (StreamConnection)Connector.open(url);
outStream = connection.openOutputStream();
inStream = connection.openInputStream();
String at_command = "AT\r";
outStream.write(at_command.getBytes());

But the problem is now that this way required pairing on the devices
if I called Connector.open(url) ;( I don't want this pairing?
Did anybody know whether there is an another way to send at-commands
without pairing?

winzter143

unread,
Aug 21, 2008, 5:31:44 AM8/21/08
to bluecove-users
How to Use RFCOMM Connection.. there's any (DLL) file need it..???

thnx a lot.

DG

unread,
Aug 21, 2008, 10:37:31 AM8/21/08
to bluecove-users
Hi Ray-Kay,

I managed to get this working without pairing, but it was only on the
very old Nokia 6310i (for a college project as a proof of concept for
Bluetooth 1.1)

But I used the same code as below on this thread apart from 2 things!

1. I used BufferedInputReader (dunno if that will make a different,
but the normal InputReader gave my AT responses in binary, not acsii!

2. In the address, BT / Device address e.g
btspp://001D286F27DB:7;authenticate=false;encrypt=false;master=false"
- the number 7 is the channel.... there are 30 channels, I basically
started at number 30, and built and retried each one... for the Nokia
6310i it connected without any request, performed AT Command and gave
me response at channel 18. Dunno about other devices and other BT
protocols, probably too secure, but its definitely an avenue worth
trying!

I have been trying to get this working for about 2 months... my head
is in bits :O But got there in the end! :)


Good luck!
Reply all
Reply to author
Forward
0 new messages