Comments (13)
is there any plan to pull the android branch into the main branch?
from xbee-java.
Hello,
We are working onthe Android support. It is still experimental and is not documented, but you can have a look at this branch:
https://github.com/digidotcom/XBeeJavaLibrary/tree/android_support
from xbee-java.
Thank you,
I used Idea (Android Studio), with Gradle http://android-hispano.blogspot.com.es/ (also Eclipse but not for Android). I'll try, I think it works well.
But my Galaxy S4 not works with XBee, I think I have to buy a smartphone or tablet that supports OTG, is it not? Do you use a device with OTG?
Regards,
from xbee-java.
On second thought I will not use a smartphone or tablet because the battery runs out very quickly.
from xbee-java.
What's the status of the Android Support branch? I need to implement this ASAP; but this branch is 92 commits behind master. Is it useable in any way? Really the only thing I need to do is use a vendor's proprietary serial port class/methods, can IConnectionInterface be used for this?
from xbee-java.
Hello,
I just merged master on the Android branch. Build is ok and all tests are passing so it is safe to use.
Kind regards.
from xbee-java.
Wow, awesome! Thank you!
from xbee-java.
Followup question—is there an example of how to use a separate serial port with the library? Thank you!
from xbee-java.
Hello,
What do you mean with separate serial port? If what you want is to integrate another serial library, no, there is not any example. Best way is to check how it is done with the current one in code. Also, I think there is a pull request with another serial library implementation you could check.
Kind regards.
from xbee-java.
Hi again—I'm fairly new to Android so I'm still trying to figure out the correct way to do this. I have a proprietary android tablet with a built-in serial port. They have their own proprietary serial API (i.e. GemvaryPortSdk.Start("ttyS0",115200)
). I will have to somehow use that serial port with this library. Is that possible? Secondly, I assume the builds available on the Releases page would not be useable since they reflect the master branch? Thank you for your time :)
from xbee-java.
Hello,
In order to achieve it you will need to create a class implementing the IConnectionInterface implementing all the required methods using your Serial Port class. Then you will have o instantiate your XBee Device using your newly created Connection class.
Another option is to use the USB connection directly for which we already have support in the Android branch (it uses the Android USB Host interface). With this option you will not need to implement anything new, it works out of the box.
Hope that helps.
Kind regards.
from xbee-java.
Hi @bveina,
Yes, our plan is to merge and release that functionality very soon.
Best regards.
from xbee-java.
Hi everyone,
We've just released a new version of the library, 1.2.0, which includes full support for Android.
https://github.com/digidotcom/XBeeJavaLibrary/releases/tag/v1.2.0
Thanks!
from xbee-java.
Related Issues (20)
- Library is now crippled with Android dependencies HOT 3
- Receive Timeout doubt HOT 6
- Android code is not compatible with some XBee/USB adapters HOT 1
- XCTU IndexOutOfBounds
- Digi Xbee communication error HOT 11
- Getting InterfaceNotOpenException while sending data HOT 10
- XBee 3 Compatibility HOT 2
- Reading Device Info and channels HOT 3
- what's up with rxtx and rxtx-native HOT 3
- Remote_DIO_Error_XBP9B-DMUT-002
- DataListener not working but PacketListener does HOT 2
- Invalid Operating mode Exception HOT 1
- Trouble with Java Runtime Error - Problem with DLL file? HOT 1
- java.lang.IllegalArgumentException: rxtx.native: Invalid module name: 'native' is not a Java identifier HOT 1
- RXTX Version MIsmatch
- xbee-java crashing with newer java versions HOT 3
- Uncaught exception: java.lang.IllegalArgumentException: 64-bit address cannot be unknown. HOT 3
- DiscoverDevicesSample
- Feature Request: Connecting to IP Gateway
- Xbee RR Java Library issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbee-java.