PC to NXT comms via bluetooth

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

PC to NXT comms via bluetooth

Postby gloomyandy » Fri Sep 28, 2007 2:46 pm

Hi,
I would like some advice on the best way to write the PC side of a set of programs that will communicate via bluetooth. Are there any samples of this (I've not been able to find this combination). Can it be done using the iCommand classes or is the best way to do some something similar to the NXJbrowse program (which is what I've been looking at). Basically I want to be able to report status and mapping information back from the nxt as it moves around...

Andy

PS Thanks for a great project....
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3640
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby roger » Sat Sep 29, 2007 4:09 pm

Hi Andy,
Take a look at DataViewer and Connector in PCTools.
The full path is lejos_nxj\src\java\pctools\lejos\pc\tools


Roger
roger
Moderator
 
Posts: 350
Joined: Fri Jun 01, 2007 4:31 am
Location: Berkeley, CA

Postby gloomyandy » Sun Oct 07, 2007 7:02 pm

Thanks Roger. I have some test code working now... By the way is there any reason for the one byte at a time messaging used by the current bluetooth code? I've removed the restriction in my version of the pccomms lib (I'm using the lower level calls on the NXT side of things), so far so good!

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3640
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby roger » Wed Oct 10, 2007 4:27 am

gloomyandy wrote:By the way is there any reason for the one byte at a time messaging used by the current bluetooth code? I've removed the restriction in my version of the pccomms lib (I'm using the lower level calls on the NXT side of things), so far so good!

Andy

Not that I know of. Perhaps the next release will send longer messages.
roger
Moderator
 
Posts: 350
Joined: Fri Jun 01, 2007 4:31 am
Location: Berkeley, CA

Postby Hattusas » Mon Oct 15, 2007 6:41 pm

Hi Roger
I tried your sample codes in my Eclipse enviroment but the program fails
Here is the output.

search for NXT
BlueCove version 2.0.0 on widcomm
Found: NXT
Connecting to NXT 00165300259a
Open of NXT failed
Failed to open NXT 00165300259a
BlueCove stack shutdown completed

I have bluetooth dongle on MY PC and it manually manages to make a connection.
Any idea(s) would be great.
Today is the first day of rest of your life.
Hattusas
New User
 
Posts: 12
Joined: Sat Oct 06, 2007 11:24 am


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron
more stuff