webOS Nation Forums >  webOS tablets >  HP TouchPad homebrew > bluetooth spp application (java newbie)
bluetooth spp application (java newbie)

  Reply
 
LinkBack Thread Tools Display Modes
Old 09/10/2011, 01:13 PM   #1 (permalink)
Member
 
Join Date: Sep 2011
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default bluetooth spp application (java newbie)

ok here goes.
I'm hoping to develop a simple application for my touchpad. My intention is to use bluetooth to send data from the touchpad to a bluetooth to rs232 convertor. The data will consist of only 4 bytes.

Trouble is I'm very new to java (make that completely new), having programme exclusively in c# ( and assembler for embedded stuff), I'm really struggling to get my head round the hp webos documentation.

so far i've got my eclipse set up with the sdk etc and have successfully created an basic gui that does squat!

does anyone know of some better examples using enyo sdk for bluetooth comms out there.

I need to know how to get a list of connected bluetooth devices and add them to a picker, select a device and send a set of bytes that the user has entered in an input box to it....(at the moment I don't need to receive any data for my purposes).

I'd by very gratefull if the experts out there can point me in the right direction.

Updated: after some liquid insperation/headscratching, I've managed to get the list of connected bluetooth devices, select the one i'm interested in and establish an SPP connection with said device....But now I'm really stuck, how exactly do i write out my Data to the device?

Last edited by switchmode; 09/11/2011 at 10:54 AM. Reason: Update
switchmode is offline   Reply With Quote
Old 09/13/2011, 03:24 PM   #2 (permalink)
Member
 
Join Date: Aug 2011
Posts: 15
Likes Received: 2
Thanks: 2
Thanked 1 Time in 1 Post
Default

I am not experienced in Java as well but I came across this link which might be of use to you.

TuxMobil: Free JAVA Applications for (Linux) PDAs & Mobile Cell Phones

The JavaBluetooth Stack : www.JavaBluetooth.org
The JavaBluetooth Stack is a 100% Java implementation of the Bluetooth specifications version 1.1. It uses the javax.comm package to address the Bluetooth chip, and implements the JSR-82 (javax.bluetooth) API. It currently supports HCI, L2CAP, and SDP. Support for RFCOMM, TCS, and SCO is planned, as well as implementations of specific Bluetooth profiles such as the Handsfree-Profile and the Generic Audio/Video Distribution Profiles. Deployment on the TINI Embedded Java platform is possible.
amit_on_tp is offline   Reply With Quote
Old 09/13/2011, 05:04 PM   #3 (permalink)
Member
 
Join Date: Sep 2011
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the info, i'll check out these resources. Hopefully i'll be able to make some headway.
switchmode is offline   Reply With Quote
Reply

 

Tags
bluetooth, newb, serial data

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0