| Reply | « Previous Thread | Next Thread » |
|
Hi all!
I have a program that uses BlueCove to search and connect to bluetooth devices, and then use AT commands to do call control. A connection to a device is made like this Code:
String url = "btspp://006057D6441F:1;authenticate=false;encrypt=false;master=true"; streamConnection = (StreamConnection) Connector.open(url); InputStream inputStream = streamConnection.openInputStream(); OutputStream outputStream = streamConnection.openOutputStream(); in = new InputStreamReader(inputStream); out = new OutputStreamWriter(outputStream); The writing is done like this: Code:
out.write("AT\r");
out.flush();
Code:
while((b = in.read()) != -1) {
if(b == 13) // parse each line
break;
buffer.append((char)b);
}
parseData(buffer.toString());
Is there anything I have to do to initialize the N80/N82/N90/N95 before I send the commands? Any help is appreciated! Thanks in advance! Frank |
|
Sorry, I think I have fixed it by using :2 instead of :1 in the connection url.. And it still works with SonyEricsson too
![]() At least I hope this will help someone else as well! |
|
I highly recommend do to a service search for the Dial-Up Networking and if that fails for the Headset UUID. You cannot be sure there is an AT command interface on a fixed channel ID as you use.
|
|
Thank you for your reply! I will try to follow your suggestion! Although I might have quite a way to go before I understand how to find a specific service
![]() |
|
Thanks, ":2" really helped me with my problem.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| sending and receiving AT GSM commands | ervalerio | Mobile Java General | 2 | 2008-10-13 15:08 |
| Bluetooth (virtual) serial port: not for AT commands? | smb@nokia | Bluetooth Technology | 9 | 2008-03-23 13:33 |
| How to activated the bluetooth interface for sending GPRS data to bluetooth printer | Loner77 | Bluetooth Technology | 0 | 2004-04-12 13:25 |
| How to activated the bluetooth interface for sending GPRS data to bluetooth printer | Loner77 | Bluetooth Technology | 0 | 2004-04-12 13:23 |
| AT commands and Bluetooth SPP | btnokdev | Bluetooth Technology | 2 | 2003-04-16 19:55 |