Doubt about package lejos.internal.dbus

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

Moderators: roger, gloomyandy, skoehler

User avatar
esmetaman
Advanced Member
Posts: 357
Joined: Wed Sep 13, 2006 12:16 am
Location: UK, Milton Keynes
Contact:

Doubt about package lejos.internal.dbus

Postby esmetaman » Thu Sep 07, 2017 7:23 pm

Hi Andy,

I was checking that the project, has a package to integrate with dbus, the package is:

Code: Select all

package lejos.internal.dbus;


Using this project, is able to use Bluez?

Do you know one example to test Bluetooth?
Is it possible to use the classes from NXT?
https://sourceforge.net/p/lejos/nxt/cod ... bluetooth/

Other alternative?

Cheers

Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots

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

Re: Doubt about package lejos.internal.dbus

Postby gloomyandy » Thu Sep 07, 2017 8:58 pm

Of course leJOS supports Bluetooth on the EV3 (via the Linux Bluez and debus interface), how else do you think it handles all of the stuff to search and pair with devices etc? But you should not be using the low level dbus package to do those things, instead you should be using the higher level classes like LocalBTDevice and RemoteBTDevice. Take a look at the menu code to see how to use it.

The classes you have linked to are versions of the "standard Java" Bluetooth control mechanism, but I don't think that has ever really worked and does not really provide all of the functionality required. The dbus and other leJOS Bluetooth classes provide the mechanism to discover, pair and control the Bluetooth stack. Once that has all been setup you can just use the standard Java network API to actually create connections etc. It can also be used to talk to an NXT or other device. There are classes in the remote part of the class library to allow an EV3 to talk via Bluetooth to an NXT. See:
https://lejosnews.wordpress.com/2014/04 ... nntroller/


I'm not sure what it is you want to "test", perhaps you could explain further.

Also rather than posting topics with a title like "Doubt about" perhaps you could use "Questions about", "Doubt about" implies that there is some sort of problem, but most of these topics just seem to be asking for information about things.
leJOS news https://lejosnews.wordpress.com/

User avatar
esmetaman
Advanced Member
Posts: 357
Joined: Wed Sep 13, 2006 12:16 am
Location: UK, Milton Keynes
Contact:

Re: Doubt about package lejos.internal.dbus

Postby esmetaman » Fri Sep 08, 2017 4:38 pm

Hi @Andy,

yes, the question was about the architecture behind the classes. In some point, maybe in 3 months more or less, I will add that support and I would like to check with you the current approach to copy.

In the past, I used the classes in a intensive way for NXT and for EV3 a bit, but I didn´t know the fundamentals about the Bluetooth support.

Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots


Return to “EV3 Software”

Who is online

Users browsing this forum: No registered users and 1 guest