Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


lovemeabyssinia

8 posts

Wannabe Geek


#36530 27-Jun-2009 08:40
Send private message

hi there,

i wrote a code that will create a connection between my nokia 6300 mobile and Bluesoleil on my pc. i just want the mobile to be the server and the pc a client using the btspp. i want to connect to the bluesoleil and send a text from the mobile. However, the mobile can not get connected to the pc. it'll just stuck after asking my confirmation to connect. By the way, i've set both serial port A and B on the Bluesoleil.  What could be the problem? is there any tutorial on this topic?

the connection could not be established. it just stop responding when it executes the acceptAndOpen() method.

what do you guys suggest?

Create new topic
freitasm
BDFL - Memuneh
79294 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #228724 27-Jun-2009 09:00
Send private message

Is the SPP on the PC an Incoming port?




Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 




lovemeabyssinia

8 posts

Wannabe Geek


  #228729 27-Jun-2009 09:17
Send private message

i've a bluetooth dongle on my pc detected by the Bluesoleil 2.7.0.8 VoIP. i set the serial port A and B on the bluesoleil. is it not enough?

freitasm
BDFL - Memuneh
79294 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #228730 27-Jun-2009 09:28
Send private message

IIRC Serial Ports are uni-directional - either Incoming or Outgoing. If you are expecting a connection from another device then it should be Incoming (or Server in some software).





Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 




lovemeabyssinia

8 posts

Wannabe Geek


  #228739 27-Jun-2009 09:58
Send private message

i want the mobile device to act as a server. I've set the Serial Port A and B on the Bluesoleil. i want my pc (Bluesoleil) to act as a client. my problem is that the acceptAndOpen() can not proceed. What do you recommend me, then?

freitasm
BDFL - Memuneh
79294 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #228742 27-Jun-2009 10:15
Send private message

Reading the description again - and not knowing where the code is running... Are you iniiating the connection from a program on your PC or Mobile?





Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 


lovemeabyssinia

8 posts

Wannabe Geek


  #228743 27-Jun-2009 10:22
Send private message

Sorry sir, i am initiating the connection from the mobile. Which means, the connection code is on the mobile

lovemeabyssinia

8 posts

Wannabe Geek


  #228749 27-Jun-2009 10:54
Send private message

here is the code that is supposed to establish the connection

LocalDevice device;
UUID uuid = new UUID("F0E0D0C0B0A000908070605040302010", false);//spp

try {
device = LocalDevice.getLocalDevice();
device.setDiscoverable(DiscoveryAgent.GIAC);

service = (StreamConnectionNotifier) Connector.open("btspp://localhost:" + uuid.toString() + ";name=BTClient;authorize=true");
ServiceRecord record = device.getRecord(service);
device.updateRecord(record);
bluetoothConnection = service.acceptAndOpen();
dataOut = bluetoothConnection.openDataOutputStream();
dataIn = bluetoothConnection.openDataInputStream();
System.out.println("Client Connected!");

} catch (Exception ioe) {
System.out.println("Excetpion stating BTServer: " + ioe.getMessage());
ioe.printStackTrace();
error(ioe.getMessage());
}

however, the execution stops at acceptAndOpen()

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.