Remember
Register
Home
/
Support
/
Support Forum
/
Using XBee Java Library from multiple threads
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Digi Remote Manager
(390)
Python
(1,023)
RF Solutions and XBee
(8,464)
Device Cloud-enabled RF Gateways
(97)
XBee3
(486)
IEEE 802.11 (Wi-Fi)
(267)
IEEE 802.15.4
(1,646)
ZigBee PRO Featureset (and legacy ZNet 2.5)
(1,490)
ZigBee Smart Energy Profile 1.1
(111)
DigiMesh Proprietary Mesh Networking
(786)
Multipoint Proprietary
(197)
XLR PRO
(17)
XStream
(40)
XTend
(137)
XCite
(4)
XPress
(8)
Miscellaneous Hardware and Software
(515)
XBee Programmable Development
(779)
XBee Cellular
(121)
MicroPython
(67)
Digi TransPort
(792)
Digi Connect Cellular
(450)
DAL
(5)
Embedded Devices
(4,174)
Google Coral
(2)
Rabbit
(3,202)
Console Servers
(354)
Modbus and Industrial Automation
(246)
Realport
(604)
Serial Servers
(837)
Satellite Modules
(25)
USB
(1,275)
Serial Cards
(715)
ConnectPort Display
(58)
Feedback/Wish List
(93)
Other/Legacy
(380)
Using XBee Java Library from multiple threads
0
votes
I'm using XBee Java Library. Can commands to remote devices (like setDIOValue) be sent over serial port from multiple threads?
If not what are the recommended ways to achieve this?
Thanks,
Prakash
java
xbee
library
thread
asked
Oct 11, 2015
in
DigiMesh Proprietary Mesh Networking
by
prakashkrishna
New to the Community
(
0
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
+1
vote
If you write your code correctly and have one thread for the COM port, then you could send and receive commands on different threads direct to that com port.
answered
Oct 15, 2015
by
mvut
Veteran of the Digi Community
(
15,354
points)
Thanks for your response!
The COM Port is handled by the XBee Java Library internally. We've multiple APIs that can be accessed from the application. Channeling all the API calls in a single thread is not an easy task I believe. Would it be better if the library itself synchronizes all COM Port writes? Just thinking...
Not that I am aware of.
Please
log in
or
register
to add a comment.
...