Comments (1)
Hello,
Please could you enable debugging (see #7 here
http://attie.co.uk/libxbee/getting_started/its_not_working).
It's important that and XBEE_LOG_RX are XBEE_LOG_TX enabled.
I'm interested to see if there is any communication between libxbee and the
XBee module, or if this stops completely (my suspicion).
Please re-run your application, and attach the log output.
Attie
On 19 January 2016 at 01:14, Matthew Hsu [email protected] wrote:
Hello,
I'm currently trying to send data using the xbee_connTx(...) method to
send data between two series three XBees, both at 57600 baud on an Ubuntu
13.04. The code that I am using can be found here
https://github.com/CURocketry/LaunchVehicleController2016/blob/c127752cb3e664ce98da45a721671853de15d45e/src/main.c.
I have been testing with the XBees stationary and right next to each other.The transmission code is roughly as follows:
for (;;) {
/* do stuff to the buffer */
if ((ret = xbee_connTx(con, &retVal, buf_start, buf_size)) != XBEE_ENONE) {
if (ret == XBEE_ETX) {
printf("tx error (0x%02X)\n", retVal);
} else {
printf("error: %s\n", xbee_errorToStr(ret));
}
}
usleep(500000); //500ms}
I'm currently running into an issue where, inconsistently after a few
hundred transmissions or so, transmission returns an error of
XBEE_ETIMEOUT. It works again if I terminate the program and restart it.
Each time, the number of transmissions that go through vary: sometimes 50
might work, other times >300. Even though transmission is timing out,
packets can still be successfully received.I have already tried:
- Increasing/decreasing the delay in the infinite loop. (50ms-1000ms)
- Sending only one byte at a time.
- Disabling and enabling ACK.
I saw your documentation on connection types
http://attie.co.uk/libxbee/func_overview#connection-oriented_interface_
and have figured out that the semaphore in (xbee_framewait)[
https://github.com/attie/libxbee3/blob/bc2dae498c3009e7aa50e1124988200f877e436a/frame.c#L130]
is timing out after the default 1 second, but I am not sure how to further
debug the issue or what the root cause might be.Any help would be greatly appreciated!
—
Reply to this email directly or view it on GitHub
#8.
from libxbee3.
Related Issues (20)
- No more open frames
- open(): No such file or directory HOT 6
- "net" mode not working? HOT 3
- For xbee2/data the Transmit Options are wrongly masked with 0x08. HOT 1
- xbee2/data Transmit Options field is not configurable.
- xbee instance shutdown log message not suppressed HOT 1
- Timeout with sample/xbee1/0.simple_at HOT 4
- How to get RSSI using C++ library? HOT 4
- Receiving timeout (-17) on simple AT command on ARM HOT 1
- SH Command failure Local AT without callbacks HOT 2
- xbeeZB source route packet is corrupt
- Overflow in libxbee::Pkt::getData() when handling large PAN ID values? HOT 1
- Callback for any remote address HOT 2
- Retrieve the MAC address of a module HOT 3
- Memory Leak on Transmit HOT 8
- typedef redefinition with different types HOT 2
- Support for Digi SX / SX Pro? HOT 1
- free(): invalid next size (normal)
- issues with radio initialization: flock() resource temporarily unavailable - xbee3
- Integrating linxbee HOT 4
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 libxbee3.