Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 23:34, 15 February 2008.

API Bluetooth

From Forum Nokia Wiki

Original: Bluetooth API

A Java APIs for Bluetooth (JSR 82) é um pacote opcional que permite a comunicação utilizando a tecnologia sem fio Bluetooth. Essa especificação foi criada para funcionar em cima do GCF (Generic Connection Framework) do Java ME.

Estrutura de aplicações Bluetooth utilizando Java ME (MIDP/CLDC):

Image:btooth_stack.jpg

A JSR 82 é formada por dois pacotes:

  • javax.bluetooth - Contém toda parte de busca por dispositivos, pesquisa por serviços, protocolo de comunicação L2CAP e RFCOMM, ou seja, todo o core.
  • javax.obex - Esse pacote é opcional dentro da própria API, porém com a MSA (Mobile Service Architecture), ele passará a ser obrigatório quando for implementado a JSR 82 no dispositivo. Contém a parte relativa ao protocolo de comunicação OBEX (Object Exchange), que está uma camada acima do RFCOMM.

Veja o exemplo Bluetooth Chat HelloWorld.

Links

Especificação JCP:

http://jcp.org/en/jsr/detail?id=82

Mobile & Embedded Community JSR-82 Wiki Page:

http://wiki.java.net/bin/view/Mobileandembedded/BluetoothResources

Sun:

http://developers.sun.com/techtopics/mobility/midp/articles/bluetooth2/

Nokia:

http://forum.nokia.com/main/resources/technologies/connectivity/documentation.html#java

SonyEricsson:

http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_java_gps_receiver_bluetooth.jsp http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_bluetooth_sketchboard.jsp http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_tips_java_1202.jsp

Vário exemplos e artigos para Bluetooth (JSR 82):

http://www.benhui.net/modules.php?name=Bluetooth

Outras ajudas:

http://www.webpronews.com/topnews/2004/12/13/introduction-to-bluetooth-and-jme http://www.microjava.com/articles/techtalk/bluetooth

Projetos:

Marge, Java Bluetooth Framework - http://marge.dev.java.net/

Related Discussions
Thread Thread Starter Forum Replies Last Post
Send files from PC via OPP Neumaennl Bluetooth Technology 3 2007-04-27 10:22
bluetooth programming alternatives ja_calulot Bluetooth Technology 2 2003-08-20 08:46
Bluetooth communication between 6310 handsets ajaykapur Bluetooth Technology 1 2003-03-04 10:55
Bluetooth on 6151?? qiozas Bluetooth Technology 1 2006-12-28 18:23
Problem while using IVT Corporation BlueSoleil Bluetooth dongle khatrijuned Mobile Java General 3 2007-11-13 11:15
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX