Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: mihirvora16 on April 07, 2009, 01:26:26 PM

Title: receiving requests from multiple mobiles simultaneously and sending files
Post by: mihirvora16 on April 07, 2009, 01:26:26 PM
 we are using wcl -demo .
we are receiving request as file-name from the mobile device ( using a j2me application) to the server-pc on serialport client.

then we are sending the requested file from pc to mobile using  bluetoothOPPClient demo of wcl.

we have done this sucessfully for one mobile.its working fine.

we want to support 2 or 3 mobiles on the same server pc.

how can we do this?

can we receive requests from 2 or more mobiles simultaneously and then send the requested files one after another.

we tried by running the same program twice and using different com-ports for each instance. but there were problems.

plz help

[attachment deleted by admin]
Title: Re: receiving requests from multiple mobiles simultaneously and sending files
Post by: Mike Petrichenko on April 07, 2009, 01:34:57 PM
You should use more than 1 component to do so. Each component will handle 1 connection.
Title: Re: receiving requests from multiple mobiles simultaneously and sending files
Post by: mihirvora16 on April 07, 2009, 01:56:27 PM
cant we receive requests from different mobiles on the same serial -port?

n plz explain the use of " getSelectedRAdio" function in the bluetoothOPP demo
Title: Re: receiving requests from multiple mobiles simultaneously and sending files
Post by: Mike Petrichenko on April 07, 2009, 02:17:29 PM
No, you can't.

GetSelectedRadio() checks the listview with detected API and creates the wclBluetoothRadio instace with specified API to use it then.
Title: Re: receiving requests from multiple mobiles simultaneously and sending files
Post by: mihirvora16 on April 07, 2009, 02:19:45 PM
how to have multiple components. if we have the list of suppose 3 mobiles( bt addresses) can we start the 3 components simultaneously at the startup of project ?

plz help. we dont know abt the mutlithreading in vb.net
Title: Re: receiving requests from multiple mobiles simultaneously and sending files
Post by: Mike Petrichenko on April 07, 2009, 03:07:51 PM
Yes, create 3 wclXXXClient component and connect them to different devices.

It does not require multithreading