Git Product home page Git Product logo

Comments (1)

attie avatar attie commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.