Hi guys, For android, have a look at this http://developer.android.com/guide/topics/wireless/bluetooth.html#ConnectingAsAServer
regards, Adrian From: [email protected] [mailto:[email protected]] On Behalf Of mike healy Sent: Thursday, June 16, 2011 9:54 AM To: Andres F. Murillo Cc: [email protected] Subject: Re: [Shimmer-users] Mobile java code for Shimmer Bluetooth Master Mode HI Andres, I don't know how this works in Java, but there is a simple python example that I wrote a few months ago that might be helpful. It's called bluetoothMasterTest.py and can be found in tinyos-2.x-contrib/shimmer/scripts: http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x-contrib/shimmer/scripts/bluetoothMasterTest.py?content-type=text%2Fplain It might be helpful to take a look at the book "Bluetooth Essentials for Programmers" by Albert S. Huang and Larry Rudolph, as I pulled sample code for the above python script from there (and it also has the same examples for Java, and C). Mike On Thu, Jun 16, 2011 at 5:20 AM, Andres F. Murillo <[email protected]<mailto:[email protected]>> wrote: Hello everyone, I'm trying to test the Bluetooth Master mode with the shimmer2r. This is because the shimmer2r is acting as a gateway between a 802.15.4 network and a mobile device, I'm configuring the shimmer in master mode so to make it start the data transmision. I'm working with the "SimpleMasterTest" that is in "tinyos-2.x-contrib/shimmer/swtest/BluetoothMaster/". This code tries to connect to a specific device address (wich is ok with my app), but it does not search for any service, so I don't have very clear what should I do at the client side in the mobile device. (I have some code that works when a pc tries to connect with the mobile device, but the pc performs a service discovery) Could someone share a java snippet to show how the client should be configured? or tell me where I can find documentation about this? All the information that I've found includes the service discovery step Any help on this would be appreciated. Regards -- Andrés Felipe Murillo Ingeniero Electrónico Grupo de Investigación en Sistemas de Telemando y Control Distribuido Universidad Autónoma de Occidente Cali, Colombia _______________________________________________ Shimmer-users mailing list [email protected]<mailto:[email protected]> https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users ------------------------------------------------------------- Intel Ireland Limited (Branch) Collinstown Industrial Park, Leixlip, County Kildare, Ireland Registered Number: E902934 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________ Shimmer-users mailing list [email protected] https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
