Send failed

Home Forums mDot/xDot Send failed

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16379
    Martin Pelletier
    Participant

    Hi,
    Sometime I got this error on my debug port: [ERROR] Send failed : code 10. Do you know what does it mean?

    thx!

    #16381
    Jason Reiss
    Keymaster

    Under what circumstances?
    The lorawan layer may be busy with TX or RX.

    #16400
    Martin Pelletier
    Participant

    Hi M.Reiss,
    i use recv() function in peer to peer mode

    here a sample of my code:

    bAckReceived = false;
    status = _dot->send(SendVector,false);
    if (status == mDot::MDOT_OK)
    {
    // wait for send to finish
    int cntA = 0;
    while (_dot->getIsTransmitting() && (cntA < 10))
    {
    cntA++;
    osDelay(10);
    }
    if (cntA < 10)
    {
    data.clear(); //5dec16
    Ack_timer.start();
    while ((bAckReceived == false) && (Ack_timer.read_ms() < 200))
    {
    if (_dot->recv(data) == mDot::MDOT_OK)
    {
    bAckReceived = true;
    DecodeRX(data, foundAA, found49, index);
    }
    }
    Ack_timer.stop();
    Ack_timer.reset();
    }
    }
    else
    {
    _dot->getSerialClearOnError();
    osDelay(15); //5dec16
    }

    thx a lot !!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.