Customer Stories
Blog
How to Buy
Contact Us
About Digi
Leadership
Locations
Awards
Export Policy
Environment
Careers
Investor Relations
IoT Products and Services
Embedded Systems
Digi XBee Ecosystem
Digi XBee RF Modules
Digi XBee Cellular Modems
Digi XBee Gateways
Digi XBee Tools
System-on-Modules
Single Board Computers
IoT Development Kits
Networking
Cellular Routers
Gateways
Infrastructure Management
Console Servers
Serial Connectivity
USB Connectivity
IoT Software and Services
Digi Remote Manager
Wireless Design Services
Professional Services
TrustFence Security Framework
Featured
5G
FirstNet
Private LTE/CBRS
Zigbee
USB Over IP/AnywhereUSB
XCTU
Digi TrustFence
/
Built-in security framework for the IoT
SmartSense
Solutions
Solutions by Application
Public Transit
Traffic Management
Remote Worker
Kiosks and Digital Signage
Branch Networking
Positive Train Control (PTC)
More Applications
Solutions by Technology
The Journey to 5G
Cellular Failover
FirstNet
Private LTE Based on CBRS
SD-WAN
Smart Out-of-Band Management
Zigbee Wireless Mesh Networking
More Technologies
Solutions by Industry
Energy
Smart Cities
Medical
Industrial
Retail
Transportation
Resources
Resource Library
Events
Webinars
Videos
Examples and Guides
Project Gallery
More Resources
Recent News
Press Releases
News Coverage
Security Center
Certifications
Support
Support Services
Support Forum
Product Returns (RMA)
Warranty Registration
Expert Support Login
Knowledge Base
Drivers
Firmware Updates
Documentation
Diagnostics, Utilities & MIBS
Embedded Patches
Sample Applications
Search
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
(352)
Python
(963)
RF Solutions and XBee
(7,998)
Device Cloud-enabled RF Gateways
(92)
XBee3
(319)
IEEE 802.11 (Wi-Fi)
(264)
IEEE 802.15.4
(1,629)
ZigBee PRO Featureset (and legacy ZNet 2.5)
(1,476)
ZigBee Smart Energy Profile 1.1
(108)
DigiMesh Proprietary Mesh Networking
(749)
Multipoint Proprietary
(195)
XLR PRO
(14)
XStream
(40)
XTend
(127)
XCite
(4)
XPress
(8)
Miscellaneous Hardware and Software
(497)
XBee Programmable Development
(755)
XBee Cellular
(101)
MicroPython
(54)
Digi TransPort
(729)
Digi Connect Cellular
(410)
DAL
(2)
Embedded Devices
(4,056)
Rabbit
(3,144)
Console Servers
(340)
Modbus and Industrial Automation
(235)
Realport
(579)
Serial Servers
(806)
Satellite Modules
(24)
USB
(1,216)
Serial Cards
(712)
ConnectPort Display
(54)
Feedback/Wish List
(86)
Other/Legacy
(330)
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
(
13,680
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.
...