Hi Juan,
I copied this to the discussion list as others may be interested.
The BTRespond sample works with iCommand or other Bluetooth client programs,
such as the Lego Mobile Phone application.
Run the BTRespond example and it waits for a connection. You can then connect
to the NXT using iCommand. An example such as DirectNXT works. You should use
1234 an the PIN. "Connected" is displayed on the LCD when a successful
connection is made.
You can then control the NXT using the Lego Communications protocol. The
emulation of the Lego Communications protocol is not perfect but it allows
several different Bluetooth remote control programs to drive the NXT.
You can extend BTRespond and process MESSAGEWRITE commands sent from a PC or
other client. Currently BTRespond closes the connnection, and waits for a new
connection if you send it any MESSAGEWRITE command, but you can make messages
do whatever you like. (Brian added a Message class to iCommand to make it
easier to send MESSAGEWRITE commands , but I am not sure that it is in an
iCommand release yet).
I have not tested initiating a connection from the NXT mainly because I do not
have a second NXT. There is no high-level support for this in the Bluetooth
class, but it may work by sending the appropriate low-level commands to the
Bluecore chip, in the same way that the LCP class does. This can be done from
Java, but you will need to read the Bluetooth Interface Specification in the
Lego Blueooth Development Kit, to understand how to do this.
In a future release, we will add Bluetooth Java stream processing and
high-level methods for connecting to another NXT.
The next release will also support downloading programs over Bluetooth.
Lawrie
----- Original Message -----
From: Juan Antonio Breña Moral [JAB]
To: [EMAIL PROTECTED]
Sent: Saturday, March 31, 2007 8:25 PM
Subject: Re: [Lejos-developers] Lejos-developers Digest, Vol 8, Issue 37
Hi, Lawrie, I tested 0.2 version with the examples and I dont have any
problem.
Good Work.
But I dont know how to use Bluetooth Communication. I dont understand the
example BTRespond.
Currently I am testing Ultrasonic Sensor and Hitechnic Compass Sensor, and I
dont have any problem.
I have developed a Simple Class R2D2 to test Sound Class:
http://www.juanantonio.info/jab_cms.php?id=91
Please I need help with Bluetooth Feature.
Thanks.
Un abrazo.
Juan Antonio Breña Moral
www.juanantonio.info
------------------------------------------------------------------------------
> From: [EMAIL PROTECTED]
> Subject: Lejos-developers Digest, Vol 8, Issue 37
> To: [EMAIL PROTECTED]
> Date: Sat, 31 Mar 2007 12:15:03 -0700
>
> Send Lejos-developers mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/lejos-developers
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Lejos-developers digest..."
>
>
> Today's Topics:
>
> 1. 0.2alpha release (Lawrie Griffiths)
> 2. Re: Information about NXJ source (Juan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 30 Mar 2007 20:19:25 +0100
> From: "Lawrie Griffiths" <[EMAIL PROTECTED]>
> Subject: [Lejos-developers] 0.2alpha release
> To: "leJOS Developers" <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I have released the Windows and Linux 0.2alpha releases - they are on the
sourceforge download page.
>
> I updated the README.html file as best could for libusb permissions on
Linux.
>
> Brian: could you add the new item etc. to the lejos web site. Also, if you
can get a MAC OS X binary release done by someone, please do. The release notes
and README.html file say that the Linux release should work on MAC OS X and
other Unix systems.
>
> Everyone: please test the release and let me know if there are any problems
with it.
>
> I will be working on USB support next.
>
> Lawrie
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Sat, 31 Mar 2007 15:06:00 +0200
> From: Juan Antonio Bre?a Moral [JAB] <[EMAIL PROTECTED]>
> Subject: Re: [Lejos-developers] Information about NXJ source
> To: 'Lawrie Griffiths' <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ------------------------------
>
> _______________________________________________
> Lejos-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/lejos-developers
>
>
> End of Lejos-developers Digest, Vol 8, Issue 37
> ***********************************************
------------------------------------------------------------------------------
¡Ya está aquí Windows Live Spaces! Ahora podrás crear fácilmente tu propio
sitio Web. Pruébalo
------------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------------
_______________________________________________
Lejos-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lejos-developers
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.23/740 - Release Date: 30/03/2007
13:15
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion